From e990e9e11e6cd12aa501af7b06801a8f2de84b9b Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Fri, 23 Dec 2016 20:39:15 +0000 Subject: [PATCH 001/316] added python-shell typings --- python-shell/index.d.ts | 42 ++++++++++++++++++++++++++++++ python-shell/python-shell-tests.ts | 38 +++++++++++++++++++++++++++ python-shell/tsconfig.json | 19 ++++++++++++++ python-shell/tslint.json | 1 + 4 files changed, 100 insertions(+) create mode 100644 python-shell/index.d.ts create mode 100644 python-shell/python-shell-tests.ts create mode 100644 python-shell/tsconfig.json create mode 100644 python-shell/tslint.json diff --git a/python-shell/index.d.ts b/python-shell/index.d.ts new file mode 100644 index 0000000000..cd61953dd7 --- /dev/null +++ b/python-shell/index.d.ts @@ -0,0 +1,42 @@ +// Type definitions for python-shell 0.4 +// Project: https://github.com/extrabacon/python-shell +// Definitions by: Dolan Miu +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "python-shell" { + export class PythonShell { + on(message: string, callback: (message: string) => void): void; + end(callback: (message: string) => void): void; + send(message: string): void; + send(message: any): void; + + constructor(scriptName: string, options?: InstanceOptions); + defaultOptions: RunOptions; + } + + export interface RunOptions { + mode?: string; + formatter?: string; + parser?: string; + encoding?: string; + pythonPath?: string; + pythonOptions?: Array; + scriptPath?: string; + args?: Array; + } + + export interface InstanceOptions { + script?: string; + command?: string; + stdin?: any; + stdout?: any; + stderr?: any; + childProcess?: string; + terminated?: any; + exitCode?: any; + args?: Array; + } + + export function run(scriptName: string, RunOptions: RunOptions, callback: (err: Error, results?: any) => void): void; + export function run(scriptName: string, callback: (err: Error, results?: any) => void): void; +} \ No newline at end of file diff --git a/python-shell/python-shell-tests.ts b/python-shell/python-shell-tests.ts new file mode 100644 index 0000000000..83bca24b6e --- /dev/null +++ b/python-shell/python-shell-tests.ts @@ -0,0 +1,38 @@ +import * as ps from 'python-shell'; + +let PythonShell = ps.PythonShell; + +ps.run('my_script.py', function (err) { + if (err) throw err; + console.log('finished'); +}); + +var options = { + mode: 'text', + pythonPath: 'path/to/python', + pythonOptions: ['-u'], + scriptPath: 'path/to/my/scripts', + args: ['value1', 'value2', 'value3'] +}; + +ps.run('my_script.py', options, function (err, results) { + if (err) throw err; + // results is an array consisting of messages collected during execution + console.log('results: %j', results); +}); + +var pyshell = new PythonShell('my_script.py'); + +// sends a message to the Python script via stdin +pyshell.send('hello'); + +pyshell.on('message', function (message) { + // received a message sent from the Python script (a simple "print" statement) + console.log(message); +}); + +// end the input stream and allow the process to exit +pyshell.end(function (err) { + if (err) throw err; + console.log('finished'); +}); \ No newline at end of file diff --git a/python-shell/tsconfig.json b/python-shell/tsconfig.json new file mode 100644 index 0000000000..1eb29c744b --- /dev/null +++ b/python-shell/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "python-shell-tests.ts" + ] +} \ No newline at end of file diff --git a/python-shell/tslint.json b/python-shell/tslint.json new file mode 100644 index 0000000000..2221e40e4a --- /dev/null +++ b/python-shell/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } \ No newline at end of file From 3b4d72a3c494c2d5157af83a281b4119db04982e Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Fri, 23 Dec 2016 20:43:59 +0000 Subject: [PATCH 002/316] added no implicit this to true --- python-shell/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/python-shell/tsconfig.json b/python-shell/tsconfig.json index 1eb29c744b..27748977a6 100644 --- a/python-shell/tsconfig.json +++ b/python-shell/tsconfig.json @@ -3,6 +3,7 @@ "module": "commonjs", "target": "es6", "noImplicitAny": true, + "noImplicitThis": true, "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ From 5b8190be499676218352d9b473d4e2ce6ff4d131 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Fri, 23 Dec 2016 20:51:53 +0000 Subject: [PATCH 003/316] added tslint fixes --- python-shell/index.d.ts | 63 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/python-shell/index.d.ts b/python-shell/index.d.ts index cd61953dd7..f28cf45693 100644 --- a/python-shell/index.d.ts +++ b/python-shell/index.d.ts @@ -3,40 +3,37 @@ // Definitions by: Dolan Miu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module "python-shell" { - export class PythonShell { - on(message: string, callback: (message: string) => void): void; - end(callback: (message: string) => void): void; - send(message: string): void; - send(message: any): void; +export class PythonShell { + on(message: string, callback: (message: string) => void): void; + end(callback: (message: string) => void): void; + send(message: any | string): void; - constructor(scriptName: string, options?: InstanceOptions); - defaultOptions: RunOptions; - } + constructor(scriptName: string, options?: InstanceOptions); + defaultOptions: RunOptions; +} - export interface RunOptions { - mode?: string; - formatter?: string; - parser?: string; - encoding?: string; - pythonPath?: string; - pythonOptions?: Array; - scriptPath?: string; - args?: Array; - } +export interface RunOptions { + mode?: string; + formatter?: string; + parser?: string; + encoding?: string; + pythonPath?: string; + pythonOptions?: string[]; + scriptPath?: string; + args?: string[]; +} - export interface InstanceOptions { - script?: string; - command?: string; - stdin?: any; - stdout?: any; - stderr?: any; - childProcess?: string; - terminated?: any; - exitCode?: any; - args?: Array; - } +export interface InstanceOptions { + script?: string; + command?: string; + stdin?: any; + stdout?: any; + stderr?: any; + childProcess?: string; + terminated?: any; + exitCode?: any; + args?: any[]; +} - export function run(scriptName: string, RunOptions: RunOptions, callback: (err: Error, results?: any) => void): void; - export function run(scriptName: string, callback: (err: Error, results?: any) => void): void; -} \ No newline at end of file +export function run(scriptName: string, RunOptions: RunOptions, callback: (err: Error, results?: any) => void): void; +export function run(scriptName: string, callback: (err: Error, results?: any) => void): void; From 9a99bb62415a8707f6229b484478cba564bdd364 Mon Sep 17 00:00:00 2001 From: "Piotr \"Hitori\" Bosak" Date: Wed, 2 Aug 2017 12:39:18 +0200 Subject: [PATCH 004/316] Updates for Kefir.js --- types/kefir/index.d.ts | 54 +++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/types/kefir/index.d.ts b/types/kefir/index.d.ts index 09917d7846..7d524b3dda 100644 --- a/types/kefir/index.d.ts +++ b/types/kefir/index.d.ts @@ -1,10 +1,13 @@ -// Type definitions for Kefir 3.3.0 +// Type definitions for Kefir 3.7.3 // Project: http://rpominov.github.io/kefir/ // Definitions by: Aya Morisawa +// Piotr Hitori Bosak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +export type ValueOfAnObservable> = T[''] + export interface Subscription { unsubscribe(): void; closed: boolean; // Actually, `readonly` but it's avaiable in tsc starting with 2.0.0 @@ -28,6 +31,9 @@ export interface Observer { } export interface Observable { + '': T // TypeScript hack to enable value unwrapping for combine/flatMap + + toProperty(getCurrent?: () => T): Property; // Subscribe / add side effects onValue(callback: (value: T) => void): void; offValue(callback: (value: T) => void): void; @@ -37,10 +43,13 @@ export interface Observable { offEnd(callback: () => void): void; onAny(callback: (event: Event) => void): void; offAny(callback: (event: Event) => void): void; - log(name?: string): void; - offLog(name?: string): void; + log(name?: string): this; + spy(name?: string): this; + offLog(name?: string): this; + offSpy(name?: string): this; flatten(transformer?: (value: T) => U[]): Stream; - toPromise(PromiseConstructor?: any): any; + toPromise(): Promise; + toPromise>(PromiseConstructor: () => W): W; toESObservable(): any; // This method is designed to replace all other methods for subscribing observe(params: Observer): Subscription; @@ -49,11 +58,11 @@ export interface Observable { onError?: (error: S) => void, onEnd?: () => void ): Subscription; + setName(source: Observable, selfName: string): this; + setName(selfName: string): this; } export interface Stream extends Observable { - toProperty(getCurrent?: () => T): Property; - // Modify an stream map(fn: (value: T) => U): Stream; filter(predicate?: (value: T) => boolean): Stream; @@ -64,7 +73,8 @@ export interface Stream extends Observable { skipWhile(predicate?: (value: T) => boolean): Stream; skipDuplicates(comparator?: (a: T, b: T) => boolean): Stream; diff(fn?: (prev: T, next: T) => T, seed?: T): Stream; - scan(fn: (prev: T, next: T) => T, seed?: T): Stream; + scan(fn: (prev: T | W, next: T) => W): Stream; + scan(fn: (prev: W, next: T) => W, seed: W): Stream; delay(wait: number): Stream; throttle(wait: number, options?: { leading?: boolean, trailing?: boolean }): Stream; debounce(wait: number, options?: { immediate: boolean }): Stream; @@ -85,19 +95,21 @@ export interface Stream extends Observable { bufferWithTimeOrCount(interval: number, count: number, options?: { flushOnEnd: boolean }): Stream; transduce(transducer: any): Stream; withHandler(handler: (emitter: Emitter, event: Event) => void): Stream; - // Combine streams combine(otherObs: Stream, combinator?: (value: T, ...values: U[]) => W): Stream; zip(otherObs: Stream, combinator?: (value: T, ...values: U[]) => W): Stream; merge(otherObs: Stream): Stream; concat(otherObs: Stream): Stream; flatMap(transform: (value: T) => Stream): Stream; + flatMap>(): Stream, any>; flatMapLatest(fn: (value: T) => Stream): Stream; + flatMapLatest>(): Stream, any>; flatMapFirst(fn: (value: T) => Stream): Stream; + flatMapFirst>(): Stream, any>; flatMapConcat(fn: (value: T) => Stream): Stream; + flatMapConcat>(): Stream, any>; flatMapConcurLimit(fn: (value: T) => Stream, limit: number): Stream; flatMapErrors(transform: (error: S) => Stream): Stream; - // Combine two streams filterBy(otherObs: Observable): Stream; sampledBy(otherObs: Observable, combinator?: (a: T, b: U) => W): Stream; @@ -110,7 +122,6 @@ export interface Stream extends Observable { export interface Property extends Observable { changes(): Stream; - // Modify an property map(fn: (value: T) => U): Property; filter(predicate?: (value: T) => boolean): Property; @@ -141,19 +152,20 @@ export interface Property extends Observable { bufferWithTimeOrCount(interval: number, count: number, options?: { flushOnEnd: boolean }): Property; transduce(transducer: any): Property; withHandler(handler: (emitter: Emitter, event: Event) => void): Property; - // Combine properties combine(otherObs: Property, combinator?: (value: T, ...values: U[]) => W): Property; zip(otherObs: Property, combinator?: (value: T, ...values: U[]) => W): Property; merge(otherObs: Property): Property; concat(otherObs: Property): Property; flatMap(transform: (value: T) => Property): Property; + flatMap>(): Property, any>; flatMapLatest(fn: (value: T) => Property): Property; + flatMapLatest>(): Property, any>; flatMapFirst(fn: (value: T) => Property): Property; + flatMapFirst>(): Property, any>; flatMapConcat(fn: (value: T) => Property): Property; flatMapConcurLimit(fn: (value: T) => Property, limit: number): Property; flatMapErrors(transform: (error: S) => Property): Property; - // Combine two properties filterBy(otherObs: Observable): Property; sampledBy(otherObs: Observable, combinator?: (a: T, b: U) => W): Property; @@ -197,11 +209,21 @@ export declare function fromESObservable(observable: any): Stream // Create a property export declare function constant(value: T): Property; export declare function constantError(error: T): Property; -export declare function fromPromise(promise: any): Property; - +export declare function fromPromise(promise: Promise): Property; // Combine observables -export declare function combine(obss: Observable[], passiveObss: Observable[], combinator?: (...values: T[]) => U): Observable; -export declare function combine(obss: Observable[], combinator?: (...values: T[]) => U): Observable; +export declare function combine(obss: Observable[], passiveObss: Observable[], combinator?: (...values: T[]) => U): Stream; +export declare function combine(obss: Observable[], combinator: (...values: T[]) => U): Stream; +export declare function combine }>(obss: T): Stream<{ [P in keyof T]: ValueOfAnObservable }, any>; +export declare function combine], P extends keyof T>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable, Observable, Observable, Observable, Observable, Observable, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable, Observable, Observable, Observable, Observable, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable, Observable, Observable, Observable, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable, Observable, Observable, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable, Observable, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine, Observable]>(obss: T): Stream<[ValueOfAnObservable, ValueOfAnObservable], any>; +export declare function combine]>(obss: T): Stream<[ValueOfAnObservable], any>; +export declare function combine(obss: T): Stream; export declare function zip(obss: Observable[], passiveObss?: Observable[], combinator?: (...values: T[]) => U): Observable; export declare function merge(obss: Observable[]): Observable; export declare function concat(obss: Observable[]): Observable; From 9e257d00c79b28bd3c0a03f2fb69c6a60d6c896a Mon Sep 17 00:00:00 2001 From: "Piotr \"Hitori\" Bosak" Date: Wed, 2 Aug 2017 13:28:28 +0200 Subject: [PATCH 005/316] Fixed missing semicolon --- types/kefir/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/kefir/index.d.ts b/types/kefir/index.d.ts index 7d524b3dda..ea823f73ff 100644 --- a/types/kefir/index.d.ts +++ b/types/kefir/index.d.ts @@ -6,7 +6,7 @@ /// -export type ValueOfAnObservable> = T[''] +export type ValueOfAnObservable> = T['']; export interface Subscription { unsubscribe(): void; From ce3c41a0a87c6d9b8e3a2dc74ad2c3f6c83a4677 Mon Sep 17 00:00:00 2001 From: "Piotr \"Hitori\" Bosak" Date: Wed, 2 Aug 2017 13:32:55 +0200 Subject: [PATCH 006/316] Added version header --- types/kefir/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/kefir/index.d.ts b/types/kefir/index.d.ts index ea823f73ff..86885f1776 100644 --- a/types/kefir/index.d.ts +++ b/types/kefir/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Aya Morisawa // Piotr Hitori Bosak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 /// @@ -31,7 +32,7 @@ export interface Observer { } export interface Observable { - '': T // TypeScript hack to enable value unwrapping for combine/flatMap + '': T; // TypeScript hack to enable value unwrapping for combine/flatMap toProperty(getCurrent?: () => T): Property; // Subscribe / add side effects From 0402f45814e9b6230e47fe69e02e8ce5fc076cdf Mon Sep 17 00:00:00 2001 From: "Piotr \"Hitori\" Bosak" Date: Mon, 7 Aug 2017 13:28:14 +0200 Subject: [PATCH 007/316] kefir.js: onValue/onError/onAny allows chaining --- types/kefir/index.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/types/kefir/index.d.ts b/types/kefir/index.d.ts index 86885f1776..e892e1b291 100644 --- a/types/kefir/index.d.ts +++ b/types/kefir/index.d.ts @@ -36,14 +36,14 @@ export interface Observable { toProperty(getCurrent?: () => T): Property; // Subscribe / add side effects - onValue(callback: (value: T) => void): void; - offValue(callback: (value: T) => void): void; - onError(callback: (error: S) => void): void; - offError(callback: (error: S) => void): void; - onEnd(callback: () => void): void; - offEnd(callback: () => void): void; - onAny(callback: (event: Event) => void): void; - offAny(callback: (event: Event) => void): void; + onValue(callback: (value: T) => void): this; + offValue(callback: (value: T) => void): this; + onError(callback: (error: S) => void): this; + offError(callback: (error: S) => void): this; + onEnd(callback: () => void): this; + offEnd(callback: () => void): this; + onAny(callback: (event: Event) => void): this; + offAny(callback: (event: Event) => void): this; log(name?: string): this; spy(name?: string): this; offLog(name?: string): this; @@ -178,8 +178,8 @@ export interface Property extends Observable { } export interface ObservablePool extends Observable { - plug(obs: Observable): void; - unPlug(obs: Observable): void; + plug(obs: Observable): this; + unPlug(obs: Observable): this; } export interface Event { From 99c8fcc889813479a454ca3b73aec35f53caec31 Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Mon, 7 Aug 2017 17:56:08 +0300 Subject: [PATCH 008/316] =?UTF-8?q?Created=20definitions=20&=20tests=20for?= =?UTF-8?q?=20pick-weight=20=F0=9F=8E=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/pick-weight/index.d.ts | 13 +++++++++++++ types/pick-weight/pick-weight-tests.ts | 6 ++++++ types/pick-weight/tsconfig.json | 22 ++++++++++++++++++++++ types/pick-weight/tslint.json | 1 + 4 files changed, 42 insertions(+) create mode 100644 types/pick-weight/index.d.ts create mode 100644 types/pick-weight/pick-weight-tests.ts create mode 100644 types/pick-weight/tsconfig.json create mode 100644 types/pick-weight/tslint.json diff --git a/types/pick-weight/index.d.ts b/types/pick-weight/index.d.ts new file mode 100644 index 0000000000..9320cde537 --- /dev/null +++ b/types/pick-weight/index.d.ts @@ -0,0 +1,13 @@ +// Type definitions for pick-weight 1.0 +// Project: https://github.com/mock-end/pick-weight#readme +// Definitions by: Roberts Slisans +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "pick-weight" { + // Dummy function allows to avoid hard to kill or fix tslint warning + // (exporting pluginFunc will make this a non-importable module) + function weighted(arr: T[], weights: number[]): T; + // Let allows typescript to still use ES2015 style imports + let y: typeof weighted; + export = y; +} diff --git a/types/pick-weight/pick-weight-tests.ts b/types/pick-weight/pick-weight-tests.ts new file mode 100644 index 0000000000..5707b1c598 --- /dev/null +++ b/types/pick-weight/pick-weight-tests.ts @@ -0,0 +1,6 @@ +import * as weight from "pick-weight"; + +const x = weight(["a", "b", "c"], [1, 2, 3]); + +// Can only be applied since inferred type is string +x === "string"; diff --git a/types/pick-weight/tsconfig.json b/types/pick-weight/tsconfig.json new file mode 100644 index 0000000000..493177c8f6 --- /dev/null +++ b/types/pick-weight/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pick-weight-tests.ts" + ] +} diff --git a/types/pick-weight/tslint.json b/types/pick-weight/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pick-weight/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From c490fb9147cc37c5bd9aea69f034f3fc3781007c Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Mon, 7 Aug 2017 18:07:49 +0300 Subject: [PATCH 009/316] Fix no-single-module --- types/pick-weight/index.d.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/types/pick-weight/index.d.ts b/types/pick-weight/index.d.ts index 9320cde537..f91da7ee72 100644 --- a/types/pick-weight/index.d.ts +++ b/types/pick-weight/index.d.ts @@ -3,11 +3,9 @@ // Definitions by: Roberts Slisans // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module "pick-weight" { - // Dummy function allows to avoid hard to kill or fix tslint warning - // (exporting pluginFunc will make this a non-importable module) - function weighted(arr: T[], weights: number[]): T; - // Let allows typescript to still use ES2015 style imports - let y: typeof weighted; - export = y; -} +// Dummy function allows to avoid hard to kill or fix tslint warning +// (exporting pluginFunc will make this a non-importable module) +declare function weighted(arr: T[], weights: number[]): T; +// Let allows typescript to still use ES2015 style imports +declare let y: typeof weighted; +export = y; From 6fb2d868017a0a216340ab4df5c915af5371ac58 Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Wed, 9 Aug 2017 12:05:17 +0300 Subject: [PATCH 010/316] Added uniqid definition --- types/uniqid/index.d.ts | 13 +++++++++++++ types/uniqid/tsconfig.json | 22 ++++++++++++++++++++++ types/uniqid/tslint.json | 1 + types/uniqid/uniqid-tests.ts | 7 +++++++ 4 files changed, 43 insertions(+) create mode 100644 types/uniqid/index.d.ts create mode 100644 types/uniqid/tsconfig.json create mode 100644 types/uniqid/tslint.json create mode 100644 types/uniqid/uniqid-tests.ts diff --git a/types/uniqid/index.d.ts b/types/uniqid/index.d.ts new file mode 100644 index 0000000000..e3853a64a3 --- /dev/null +++ b/types/uniqid/index.d.ts @@ -0,0 +1,13 @@ +// Type definitions for uniqid 4.1 +// Project: http://github.com/adamhalasz/diet-uniqid/ +// Definitions by: My Self +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// Commmon function signature +declare function f(prefix: string): string; + +// let x -> Workaround for ES6 imports +// Combined type because of assigning to function object in original module +declare let x: typeof f & { process: typeof f } & { time: typeof f }; + +export = x; diff --git a/types/uniqid/tsconfig.json b/types/uniqid/tsconfig.json new file mode 100644 index 0000000000..437a215958 --- /dev/null +++ b/types/uniqid/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "uniqid-tests.ts" + ] +} diff --git a/types/uniqid/tslint.json b/types/uniqid/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/uniqid/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/uniqid/uniqid-tests.ts b/types/uniqid/uniqid-tests.ts new file mode 100644 index 0000000000..f0f56aa2fd --- /dev/null +++ b/types/uniqid/uniqid-tests.ts @@ -0,0 +1,7 @@ +import * as uniqid from "uniqid"; + +const uniqueID = uniqid("123"); +const processString = uniqid.process("123"); +const timeString = uniqid.time("123"); + +if (uniqueID === "" && processString === "" && timeString === "") { /**/ } From 2860044a4628cc6b19fd2361b1e7accd6138dff8 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Fri, 11 Aug 2017 15:23:30 +1200 Subject: [PATCH 011/316] Updated Marionette types file to match Marionette v3.3.1 --- .../backbone.marionette-tests.ts | 106 +- types/backbone.marionette/index.d.ts | 2149 +++++++++-------- 2 files changed, 1238 insertions(+), 1017 deletions(-) diff --git a/types/backbone.marionette/backbone.marionette-tests.ts b/types/backbone.marionette/backbone.marionette-tests.ts index a7da55495b..ac834f8ead 100644 --- a/types/backbone.marionette/backbone.marionette-tests.ts +++ b/types/backbone.marionette/backbone.marionette-tests.ts @@ -6,12 +6,12 @@ class DestroyWarn extends Marionette.Behavior { // just like you can in your Backbone Models // they will be overriden if you pass in an option with the same key defaults = { - "message": "you are destroying!" + 'message': 'you are destroying!' }; // behaviors have events that are bound to the views DOM events = { - "click @ui.destroy": "warnBeforeDestroy" + 'click @ui.destroy': 'warnBeforeDestroy' }; warnBeforeDestroy() { @@ -24,21 +24,21 @@ class DestroyWarn extends Marionette.Behavior { Marionette.Behaviors.getBehaviorClass = (options, key) => { - if (key === "DestroyWarn") + if (key === 'DestroyWarn') return DestroyWarn; return undefined; }; class MyRouter extends Marionette.AppRouter { - // "someMethod" must exist at controller.someMethod + // 'someMethod' must exist at controller.someMethod appRoutes = { - "some/route": "someMethod" + 'some/route': 'someMethod' }; /* standard routes can be mixed with appRoutes/Controllers above */ routes = { - "some/otherRoute": "someOtherMethod" + 'some/otherRoute': 'someOtherMethod' }; someOtherMethod() { @@ -49,7 +49,7 @@ class MyRouter extends Marionette.AppRouter { class MyApplication extends Marionette.Application { initialize(options?: any) { - console.log("initializing application"); + console.log('initializing application'); this.layoutView = new AppLayoutView(); } @@ -63,9 +63,13 @@ class MyApplication extends Marionette.Application { this.layoutView.showChildView('main', new MyView(new MyModel)); let view: Backbone.View = this.layoutView.getChildView('main'); let regions: {[key: string]: Marionette.Region} = this.layoutView.getRegions(); - let prefix: string = this.layoutView.childViewEventPrefix; let region: Marionette.Region = this.layoutView.removeRegion('main'); let layout: Marionette.View = this.layoutView.destroy(); + + let prefix: string; + if (typeof this.layoutView.childViewEventPrefix === 'string') { + this.layoutView.childViewEventPrefix; + } } } @@ -75,11 +79,11 @@ class AppLayoutView extends Marionette.View { } template() { - return "
"; + return '
'; } initialize(options?: any) { - console.log("initializing layoutview"); + console.log('initializing layoutview'); } } @@ -101,11 +105,11 @@ class MyModel extends Backbone.Model { class MyBaseView extends Marionette.View { constructor() { - super(); - this.getOption('foo'); - this.triggers = { - 'click .foo': 'bar' - }; + super(); + this.getOption('foo'); + this.triggers = { + 'click .foo': 'bar' + }; } } @@ -153,13 +157,13 @@ class MyObject extends Marionette.Object { name: 'Foo' }; - this.on("before:destroy", () => { - console.log("before:destroy"); + this.on('before:destroy', () => { + console.log('before:destroy'); }); } onBeforeDestroy(arg: any) { - console.log("in onBeforeDestroy with arg " + arg); + console.log('in onBeforeDestroy with arg ' + arg); } } @@ -180,7 +184,7 @@ class MyJQueryRegion extends Marionette.Region { class MyHtmlElRegion extends Marionette.Region { constructor() { super(); - this.el = document.querySelector("body"); + this.el = document.querySelector('body'); } } @@ -190,23 +194,22 @@ class MyCollectionView extends Marionette.CollectionView { this.childView = MyView; this.childViewEvents = { render: function () { - console.log("a childView has been rendered"); + console.log('a childView has been rendered'); } }; this.childViewOptions = function (model: any, index: any): any { // do some calculations based on the model return { - foo: "bar", - childIndex: index + id: 'bar' } }; this.childViewOptions = { - foo: "bar" + id: 'bar' }; - this.childViewEventPrefix = "some:prefix"; + this.childViewEventPrefix = 'some:prefix'; this.on('some:prefix:render', function () { @@ -229,33 +232,7 @@ function ApplicationTests() { function ObjectTests() { var obj = new MyObject(); console.log(obj.getOption('name')); - obj.destroy("goodbye"); -} - -function RegionManagerTests() { - var rm = new Marionette.RegionManager(); - rm.addRegions({ - contentRegion: { - el: '#content', - regionClass: MainRegion - }, - - navigationRegion: { - el: '#navigation', - regionClass: MainRegion, - - // Options passed to instance of `MyOtherRegion` for - // the `navigationRegion` on `App` - navigationOption: 42, - anotherNavigationOption: 'foo' - }, - - footerRegion: { - regionClass: MainRegion, - someOption: 42, - someValue: 'value' - } - }); + obj.destroy('goodbye'); } function RegionTests() { @@ -268,7 +245,7 @@ function RegionTests() { app.mainRegion.empty(); myView = new MyView(new MyModel()); - app.mainRegion.show(myView, { preventDestroy: true, forceShow: true, triggerAttach: true, triggerBeforeAttach: false }); + app.mainRegion.show(myView, { preventDestroy: true }); var hasView: boolean = app.mainRegion.hasView(); @@ -279,12 +256,12 @@ function RegionTests() { } myView = new Marionette.View({ - el: $("#existing-view-stuff") + el: $('#existing-view-stuff') }); - app.mainRegion.attachView(myView); + app.mainRegion.show(myView); - app.mainRegion.on("empty", function (view: any, region: any, options: any) { + app.mainRegion.on('empty', function (view: any, region: any, options: any) { // manipulate the `view` or do something extra // with the `region` // you also have access to the `options` that were passed to the Region.show call @@ -303,27 +280,26 @@ function ViewTests() { function CollectionViewTests() { var cv = new MyCollectionView(); cv.collection.add(new MyModel()); - app.mainRegion.attachView(cv); - cv.addEmptyView(new MyModel, MyView); - cv.proxyChildEvents(new MyView(new MyModel)); - let children: Backbone.ChildViewContainer> = cv.destroyChildren(); - let view: Marionette.CollectionView> = cv.destroy(); + app.mainRegion.show(cv); + cv.emptyView = MyView; + let view: Marionette.CollectionView = cv.destroy(); } -class MyController extends Marionette.Controller { +class MyController { + doFoo() { } + doBar() { } } function AppRouterTests() { var myController = new MyController(); var router = new MyRouter(); - router.appRoute("/foo", "fooThat"); + router.appRoute('/foo', 'fooThat'); router.processAppRoutes(myController, { - "foo": "doFoo", - "bar/:id": "doBar" + 'foo': 'doFoo', + 'bar/:id': 'doBar' }); } - diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index ad623aa078..6390d4a75e 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Marionette +// Type definitions for Marionette v3.3.1 // Project: https://github.com/marionettejs/ // Definitions by: Zeeshan Hamid , Natan Vivo , Sven Tschui // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -10,123 +10,194 @@ import * as Radio from 'backbone.radio'; export as namespace Marionette; export = Marionette; -// declarations for Backbone.BabySitter and Backbone.Wreqr, different projects but included in MarionetteJS -declare module 'backbone' { - // Backbone.BabySitter - class ChildViewContainer> { +// These mixins mirror Marionette source and ensure that Marionette classes that +// extend these mixins have the correct methods attached. +interface CommonMixin { + normalizeMethods: any; + mergeOptions: any; + getOption: any; + bindEvents: any; + unbindEvents: any; +} - constructor(initialViews?: any[]); +interface RadioMixinOptions { - add(view: TView, customIndex?: number): void; - findByModel(model: TModel): TView; - findByModelCid(modelCid: string): TView; - findByCustom(index: number): TView; - findByIndex(index: number): TView; - findByCid(cid: string): TView; - remove(view: TView): void; + /** + * Defines the Radio channel that will be used for the requests and/or + * events. + */ + channelName?: string; - //mixins from Collection (copied from Backbone's Collection declaration) + /** + * Defines an events hash with the events to be listened and its respective + * handlers. + */ + radioEvents?: any; - all(iterator: (element: TView, index: number) => boolean, context?: any): boolean; - any(iterator: (element: TView, index: number) => boolean, context?: any): boolean; - contains(value: any): boolean; - detect(iterator: (item: any) => boolean, context?: any): any; - each(iterator: (element: TView, index: number, list?: any) => void, context?: any): any; - every(iterator: (element: TView, index: number) => boolean, context?: any): boolean; - filter(iterator: (element: TView, index: number) => boolean, context?: any): TView[]; - find(iterator: (element: TView, index: number) => boolean, context?: any): TView; - first(): TView; - forEach(iterator: (element: TView, index: number, list?: any) => void, context?: any): void; - include(value: any): boolean; - initial(): TView; - initial(n: number): TView[]; - invoke(methodName: string, args?: any[]): any; - isEmpty(object: any): boolean; - last(): TView; - last(n: number): TView[]; - lastIndexOf(element: TView, fromIndex?: number): number; - map(iterator: (element: TView, index: number, context?: any) => U, context?: any): U[]; - pluck(attribute: string): any[]; - reject(iterator: (element: TView, index: number) => boolean, context?: any): TView[]; - rest(): TView; - rest(n: number): TView[]; - select(iterator: any, context?: any): any[]; - some(iterator: (element: TView, index: number) => boolean, context?: any): boolean; - toArray(): any[]; - without(...values: any[]): TView[]; - } + /** + * Defines an events hash with the requests to be replied and its respective + * handlers + */ + radioRequests?: any; +} - // Backbone.Wreqr - namespace Wreqr { +interface RadioMixin { + getChannel: any; + bindEvents: any; + unbindEvents: any; + bindRequests: any; + unbindRequests: any; +} - namespace radio { +interface DomMixin { + createBuffer: any; + appendChildren: any; + beforeEl: any; + replaceEl: any; + detachContents: any; + setInnerContent: any; + detachEl: any; + removeEl: any; + findEls: any; +} - function channel(channelName: string): Channel; +interface ViewMixinOptions { - } + /** + * Behavior objects to assign to this View. + */ + behaviors?: Marionette.Behavior[]; - class Channel { + /** + * Customize the event prefix for events that are forwarded through the + * collection view. + */ + childViewEventPrefix?: string | false; - constructor(channelName: string); + /** + * Use the childViewEvents attribute to map child events to methods on the + * parent view. + */ + childViewEvents?: Marionette.EventsHash; - vent: Backbone.Wreqr.EventAggregator; - reqres: Backbone.Wreqr.RequestResponse; - commands: Backbone.Wreqr.Commands; - channelName: string; + /** + * A childViewTriggers hash or method permits proxying of child view events + * without manually setting bindings. The values of the hash should be a + * string of the event to trigger on the parent. + */ + childViewTriggers?: Marionette.EventsHash; - reset(): Channel; - connectEvents(hash: string, context: any): Channel; - connectCommands(hash: string, context: any): Channel; - connectRequests(hash: string, context: any): Channel; + /** + * Bind to events that occur on attached collections. + */ + collectionEvents?: Marionette.EventsHash; - } + /** + * Bind to events that occur on attached models. + */ + modelEvents?: Marionette.EventsHash; - class Handlers extends Backbone.Events { + /** + * The view triggers attribute binds DOM events to Marionette View events + * that can be responded to at the view or parent level. + */ + triggers?: Marionette.EventsHash; - constructor(options?: any); + /** + * Name parts of your template to be used + * throughout the view with the ui attribute. + */ + ui?: any; +} - options: any; +interface ViewMixin extends DomMixin, CommonMixin { + supportsRenderLifecycle: any; + supportsDestroyLifecycle: any; + isDestroyed: any; + isRendered: any; + isAttached: any; + delegateEvents: any; + getTriggers: any; + delegateEntityEvents: any; + undelegateEntityEvents: any; + destroy: any; + bindUIElements: any; + unbindUIElements: any; + childViewEventPrefix: any; + triggerMethod: any; +} - setHandler(name: string, handler: any, context?: any): void; - hasHandler(name: string): boolean; - getHandler(name: string): Function; - removeHandler(name: string): void; - removeAllHandlers(): void; - } +interface RegionsMixin { + regionClass: any; + addRegion: any; + addRegions: any; + removeRegion: any; + removeRegions: any; + emptyRegions: any; + hasRegion: any; + getRegion: any; + getRegions: any; + showChildView: any; + detachChildView: any; + getChildView: any; +} - class CommandStorage { +declare class Container { - constructor(options?: any); + /** + * Find a view by it's cid. + */ + findByCid(cid: string): TView; - getCommands(commandName: string): Commands; - addCommand(commandName: string, args: any): void; - clearCommands(commandName: string): void; - } + /** + * Find a view by model. + */ + findByModel(model: TModel): TView; - class Commands extends Handlers { + /** + * Find a view by model cid. + */ + findByModelCid(modelCid: string): TView; - constructor(options?: any); + /** + * Find by custom key. + */ + findByCustom(key: string): TView; - storageType: CommandStorage; - execute(name: string, ...args: any[]): void; - } + /** + * Find by numeric index (unstable). + */ + findByIndex(index: number): TView; - class RequestResponse extends Handlers { + /** + * Find a view by it's cid. + */ + add(view: TView, customIndex?: number): void; - constructor(options?: any); - - request(...args: any[]): any; - } - - class EventAggregator extends Backbone.Events { - - constructor(options?: any); - } - } + /** + * Find a view by it's cid. + */ + remove(view: TView): void; } declare namespace Marionette { + /** + * Alias of Backbones extend function. + */ + function extend(properties: any, classProperties?: any): any; + + /** + * Determines whether the passed-in node is a child of the document or not. + */ + function isNodeAttached(el: HTMLElement): boolean; + + /** + * A handy function to pluck certain options and attach them directly to an + * instance. + */ + function mergeOptions(target: any, options: any, keys: any): void; + /** * Retrieve an object's attribute either directly from the object, or * from the object's this.options, with this.options taking precedence. @@ -139,7 +210,7 @@ declare namespace Marionette { * to both the event and the method, with the exception of the event name not * being passed to the corresponding method. */ - function triggerMethod(name: string, ...args: any[]): any; + function triggerMethod(target: any, name: string, ...args: any[]): any; /** * Invoke triggerMethod on a specific context. @@ -147,50 +218,127 @@ declare namespace Marionette { */ function triggerMethodOn(ctx: any, name: string, ...args: any[]): any; - /** - * Monitor a view's state, and after it has been rendered and shown in the DOM, - * trigger a "dom:refresh" event every time it is re-rendered. - */ - function MonitorDOMRefresh(view: Backbone.View): void; - /** * This method is used to bind a backbone "entity" (collection/model) to methods on a target object. * @param target An object that must have a listenTo method from the EventBinder object. * @param entity The entity (Backbone.Model or Backbone.Collection) to bind the events from. * @param bindings a hash of { "event:name": "eventHandler" } configuration. Multiple handlers can be separated by a space. A function can be supplied instead of a string handler name. */ - function bindEntityEvents(target: any, entity: any, bindings: any): void; + function bindEvents(target: any, entity: any, bindings: any): void; /** - * This method can be used to unbind callbacks from entities' (collection/model) events. It's the opposite of bindEntityEvents + * This method can be used to unbind callbacks from entities' (collection/model) events. It's the opposite of bindEvents * @param target An object that must have a listenTo method from the EventBinder object. * @param entity The entity (Backbone.Model or Backbone.Collection) to bind the events from. * @param bindings a hash of { "event:name": "eventHandler" } configuration. Multiple handlers can be separated by a space. A function can be supplied instead of a string handler name. */ - function unbindEntityEvents(target: any, entity: any, bindings: any): void; + function unbindEvents(target: any, entity: any, bindings: any): void; - class Callbacks { - add(callback: Function, contextOverride: any): void; - run(options: any, context: any): void; - reset(): void; + /** + * This method is used to bind a radio requests to methods on a target + * object. + */ + function bindRequests(target: any, channel: Radio.Channel, bindings: any): void; + + /** + * This method is used to unbind a radio requests to methods on a target + * object. + */ + function unbindRequests(target: any, channel: Radio.Channel, bindings: any): void; + + /** + * Receives a hash of event names and functions and/or function names, and + * returns the same hash with the function names replaced with the function + * references themselves. + */ + function normalizeMethods(target: any, hash: any): T; + + /** + * Allows you to run multiple instances of Marionette in the same + * application. + */ + function noConflict(): void; + + /** + * Overrides Backbone.EventsHash as JQueryEventObject is deprecated and + * doesn't allow you to set the event target + */ + interface EventsHash extends Backbone.EventsHash { + [selector: string]: string | ((eventObject: JQuery.Event) => void); + } + + interface ObjectOptions extends RadioMixinOptions { + /** + * Initialize is called immediately after the Object has been instantiated, + * and is invoked with the same arguments that the constructor received. + */ + initialize?: (options?: ObjectOptions) => void; + + [index: string]: any; } /** * A base class which other classes can extend from. Object incorporates many * backbone conventions and utilities like initialize and Backbone.Events. */ - class Object extends Backbone.Events { + class Object extends Backbone.Events implements CommonMixin, RadioMixin { + + constructor(options?: ObjectOptions); /** - * Defines the Radio channel that will be used for the requests and/or events + * Receives a hash of event names and functions and/or function names, + * and returns the same hash with the function names replaced with the + * function references themselves. */ - channelName: string; + normalizeMethods(hash: any): T; + + /** + * A handy function to pluck certain options and attach them directly + * to an instance. + */ + mergeOptions(options: any, keys: any): void; + + /** + * Retrieve an object's attribute either directly from the object, or from + * the object's this.options, with this.options taking precedence. + * @param optionName the name of the option to retrieve. + */ + getOption(optionName: string): any; + + /** + * This method is used to bind a backbone "entity" (collection/model) to + * methods on a target object. + */ + bindEvents(entity: any, bindings: any): void; + + /** + * This method can be used to unbind callbacks from entities' + * (collection/model) events. + */ + unbindEvents(entity: any, bindings: any): void; /** * Returns a Radio.Channel instance using 'channelName' */ getChannel(): Backbone.Radio.Channel; + /** + * This method is used to bind a radio requests to methods on a target + * object. + */ + bindRequests(channel: Radio.Channel, bindings: any): void; + + /** + * This method is used to unbind a radio requests to methods on a target + * object. + */ + unbindRequests(channel: Radio.Channel, bindings: any): void; + + /** + * Defines the Radio channel that will be used for the requests and/or events + */ + channelName: string; + /** * Defines an events hash with the events to be listened and its respective handlers */ @@ -201,18 +349,16 @@ declare namespace Marionette { */ radioRequests: any; + /** + * Check if this Oject has been destroyed. + */ + isDestroyed(): boolean; + /** * Initialize is called immediately after the Object has been instantiated, * and is invoked with the same arguments that the constructor received. */ - initialize(options?: any): void; - - /** - * Retrieve an object's attribute either directly from the object, or from - * the object's this.options, with this.options taking precedence. - * @param optionName the name of the option to retrieve. - */ - getOption(optionName: string): any; + initialize(options?: ObjectOptions): void; /** * Objects have a destroy method that unbind the events that are directly @@ -223,436 +369,90 @@ declare namespace Marionette { * onBeforeDestroy. */ destroy(...args: any[]): void; - } - - /** - * A Controller is an object used in the Marionette Router. Controllers are - * where you store your Router's callbacks. - */ - class Controller extends Backbone.Events { - /** - * @param options Options that should be stored in this options. Can be retreived via - * getOption. - */ - constructor(options?: any); /** - * Handles unbinding all of the events that are directly attached to the - * controller instance, as well as those that are bound using the - * EventBinder from the controller. - * - * Invoking the destroy method will trigger the "before:destroy" and - * "destroy" events and the corresponding onBeforeDestory and onDestroy - * method calls. These calls will be passed any arguments destroy was - * invoked with. + * Trigger an event and a corresponding method on the target object. + * All arguments that are passed to the triggerMethod call are passed + * along to both the event and the method, with the exception of the + * event name not being passed to the corresponding method. */ - destroy(...args: any[]): void; - - /** - * Retrieve an object's attribute either directly from the object, or from - * the object's this.options, with this.options taking precedence. - * @param optionName the name of the option to retrieve. - */ - getOption(optionName: string): any; - triggerMethod(name: string, ...args: any[]): any; } - interface RegionConstructionOptions { - /** - * Specifies the element for the region to manage. This may be - * a selector string, a raw DOM node reference or a jQuery wrapped - * DOM node. - */ - el?: any; - } - - interface RegionShowOptions { - /** - * If you replace the current view with a new view by calling show, by - * default it will automatically destroy the previous view. You can - * prevent this behavior by setting this option to true. - */ - preventDestroy?: boolean; - - /** - * If you re-call show with the same view, by default nothing will happen - * because the view is already in the region. You can force the view to be - * re-shown by setting this option to true. - */ - forceShow?: boolean; - - /** - * Regions that are attached to the document when you execute show are - * special in that the views that they show will also become attached - * to the document. These regions fire a pair of triggerMethods on all - * of the views that are about to be attached � even the nested ones. - * This can cause a performance issue if you're rendering hundreds or - * thousands of views at once. - * If you think these events might be causing some lag in your app, you - * can selectively turn them off with the triggerBeforeAttach - * and triggerAttach properties. - */ - triggerBeforeAttach?: boolean; - - /** - * Regions that are attached to the document when you execute show are - * special in that the views that they show will also become attached - * to the document. These regions fire a pair of triggerMethods on all - * of the views that are about to be attached � even the nested ones. - * This can cause a performance issue if you're rendering hundreds or - * thousands of views at once. - * If you think these events might be causing some lag in your app, you - * can selectively turn them off with the triggerBeforeAttach - * and triggerAttach properties. - */ - triggerAttach?: boolean; - } - - interface RegionEmptyOptions { - /** - * If you would like to prevent the view currently shown in the region - * from being destroyed you can set this option to true to prevent the - * default destroy behavior. - */ - preventDestroy?: boolean; - } - - /** - * Regions provide consistent methods to manage, show and destroy views in - * your applications and layouts. They use a jQuery selector to show your - * views in the correct place. - */ - class Region extends Marionette.Object { - - /** - * Build an instance of a region by passing in a configuration object and - * a default region class to use if none is specified in the config. - * The config object should either be a string as a jQuery DOM selector, - * a Region class directly, or an object literal that specifies a selector, - * a custom regionClass, and any options to be supplied to the region - */ - static buildRegion(regionConfig: any, defaultRegionType: any): Region; - - /** - * You can specify an el for the region to manage at the time the region - * is instantiated. - */ - constructor(options?: RegionConstructionOptions); - - /** - * Contains the element that this region should manage. - */ - el: any; - - /** - * Renders and displays the specified view in this region. - * @param view the view to display. - */ - show(view: Backbone.View, options?: RegionShowOptions): void; - - /** - * Attaches an existing view to a region, without rendering or showing the view, - * and without replacing the HTML content of the region. - */ - attachView(view: Backbone.View, options?: RegionShowOptions): any; - - /** - * Override this method to change how the new view is - * appended to the `$el` that the region is managing - */ - attachHtml(view: Backbone.View): void; - - /** - * A region can be reset at any time. This destroys any existing view - * being displayed, and deletes the cached el. The next time the region - * shows a view, the region's el is queried from the DOM. - */ - reset(): any; - - /** - * If you wish to check whether a region has a view, you can use the hasView function. This will return a boolean value depending whether or not the region is showing a view. - */ - hasView(): boolean; - - /** - * Empties the current view from the region. - */ - empty(options?: RegionEmptyOptions): any; - - /** - * @returns view that this region has. - */ - currentView: Backbone.View; - } - - interface RegionDefaults { - /** - * A selector string indicating which element to assign the region two. - */ - selector?: string; - - /** - * A selector string, a jQuery object, or an HTML node indicating which element - * the region should use. - */ - el?: any; - - /** - * A custom region class. - */ - regionClass?: any; - - /** - * Ordinarily regions enforce the presence of a backing DOM element. In - * some instances it may be desirable to allow regions to be instantiated - * and used without an element, such as when regions defined by a parent - * LayoutView class are used by only some of its subclasses. In these - * instances, the region can be defined with this option set to true, - * suppressing the missing element error and causing show calls to the - * region to be treated as no-ops. - */ - allowMissingEl?: boolean; - } - - /** - * Region managers provide a consistent way to manage a number of Marionette.Region - * objects within an application. The RegionManager is intended to be used by - * other objects, to facilitate the addition, storage, retrieval, and removal of - * regions from that object. - */ - class RegionManager extends Controller { - - /** - * Constructor. - * @param options May contain an optional `regions` option. These regions - * are passed directly into addRegions for this instance. - */ - constructor(options?: any); - - /** - * Adds one or more regions to this RegionManager instance. - * @param regionDefinitions a function returning an object literal with the region definitions. The function will - * be called with the RegionManager instance context and all the arguments passed to addRegions. - * @param defaults Specifies default options that will be applied to every region added. - * @returns an object literal with all the created regions. - */ - addRegions(regionDefinitions: Function, defaults?: RegionDefaults): any; - - /** - * Adds one or more regions to this RegionManager instance. - * @param regionDefinitions an object literal containing region names as keys and region - * definitions as values. - * @param defaults Specifies default options that will be applied to every region added. - * @returns an object literal with all the created regions. - */ - addRegions(regionDefinitions: { [regionName: string]: any }, defaults?: RegionDefaults): any; - - /** - * Adds a region to this RegionManager. - * @param name the region name. - * @param definition the region definition. This may be a selector, object literal - * with various region creation options or an instance of a region object. - */ - addRegion(name: string, definition: any): Region; - - /** - * Gets the region with the specified name from this RegionManager. - */ - get(name: string): Region; - - /** - * Removes the region with the specified name from this RegionManager. - */ - removeRegion(name: string): void; - - /** - * Removes all regions from the RegionManager. - */ - removeRegions(): void; - - /** - * Empties all regions from the RegionManager instance. - */ - emptyRegions(): void; - - /** - * Destroys the RegionManager instance entierly which both destroys and - * removes all regions from the RegionManager instance. - */ - destroy(): void; - - //mixins from Collection (copied from Backbone's Collection declaration) - - /** - * Returns true if all of the values in the list pass the predicate truth test. - * @alias every - */ - all(iterator: (element: Region, index: number) => boolean, context?: any): boolean; - - /** - * Returns true if any of the values in the list pass the predicate truth test. Short-circuits and stops traversing the list if a true element is found. - */ - any(iterator: (element: Region, index: number) => boolean, context?: any): boolean; - - /** - * Returns true if the value is present in the list. - * @alias include - */ - contains(value: any): boolean; - - /** - * Looks through each value in the list, returning the first one that passes a truth test (predicate), or undefined if no value passes the test.The function returns as soon as it finds an acceptable element, and doesn't traverse the entire list. - * @alias find - */ - detect(iterator: (item: any) => boolean, context?: any): any; - - /** - * Iterates over the regions in this instance, yielding each in turn to an - * iterator function. The iterator is bound to the context object, if one - * is passed. - * @alias forEach - */ - each(iterator: (element: Region, index: number, list?: any) => void, context?: any): void; - - /** - * Returns true if all of the values in the list pass the predicate truth test. - * @alias all - */ - every(iterator: (element: Region, index: number) => boolean, context?: any): boolean; - - /** - * Looks through each Region in the collection, returning an array of all - * the values that pass a truth test (predicate). - * @alias select - */ - filter(iterator: (element: Region, index: number) => boolean, context?: any): Region[]; - - /** - * Looks through each Region in this instance, returning the first one that passes a truth test (predicate), or undefined if no value passes the test.The function returns as soon as it finds an acceptable element, and doesn't traverse the entire list. - * @alias detect - */ - find(iterator: (element: Region, index: number) => boolean, context?: any): Region; - - /** - * Returns the first Region of this RegionManager. - */ - first(): Region; - - /** - * Returns the first n Regions of this RegionManager. - */ - first(n: number): Region[]; - - /** - * Iterates over the regions in this instance, yielding each in turn to an - * iterator function. The iterator is bound to the context object, if one - * is passed. - * @alias each - */ - forEach(iterator: (element: Region, index: number, list?: any) => void, context?: any): void; - - /** - * Returns true if the value is present in the list. - * @alias contains - */ - include(value: any): boolean; - - /** - * Returns everything but the last n Regions of this instance. - * @param n if specified determines the number of regions to exclude, - * otherwise only the last element is excluded. - */ - initial(n: number): Region[]; - - /** - * Calls the method named by methodName on each value in the collection. Any extra - * arguments passed to invoke will be forwarded on to the method invocation. - */ - invoke(methodName: string, args?: any[]): any; - - /** - * Returns true if the RegionManager contains no regions. - */ - isEmpty(object: any): boolean; - - /** - * Returns the last element of a collection. - */ - last(): Region; - - /** - * Returns the last n elements of the collection. - */ - last(n: number): Region[]; - - /** - * Returns the index of the last occurrence of element in the collection, or -1 if - * element is not present. - * @param fromIndex if specified starts the search at the given index. - */ - lastIndexOf(element: Region, fromIndex?: number): number; - - /** - * Produces a new array of values by mapping each value in the collection through a - * transformation function (iterator). - * @alias collect - */ - map(iterator: (element: Region, index: number, context?: any) => any[], context?: any): any[]; - - /** - * Pluck an attribute from each model in the collection. Equivalent to - * calling map and returning a single attribute from the iterator. - */ - pluck(attribute: string): any[]; - - /** - * Returns the values in the collection without the elements that the truth test - * (predicate) passes. The opposite of filter. - */ - reject(iterator: (element: Region, index: number) => boolean, context?: any): Region[]; - - /** - * Returns the rest of the elements of the collection. - * Pass an index to return the values of the array from that index onward. If not - * specified the first item in the collection is dropped. - * @alias tail, drop - */ - rest(n: number): Region[]; - - /** - * Looks through each value in the collection, returning an array of all - * the values that pass a truth test (predicate). - * @alias filter - */ - select(iterator: any, context?: any): Region[]; - - /** - * Returns true if any of the values in the list pass the predicate truth test. Short-circuits and stops traversing the list if a true element is found. - * @alias any - */ - some(iterator: (element: Region, index: number) => boolean, context?: any): boolean; - - /** - * Creates an array containing the regions in this instance. - */ - toArray(): Region[]; - - /** - * Returns an array of all the regions in the RegionManager except the ones specified. - */ - without(...values: any[]): Region[]; - } - /** * The TemplateCache provides a cache for retrieving templates from script blocks * in your HTML. This will improve the speed of subsequent calls to get a template. */ - class TemplateCache { + class TemplateCache implements DomMixin { + + /** + * Returns a new HTML DOM node instance. The resulting node can be + * passed into the other DOM functions. + */ + createBuffer(): DocumentFragment; + + /** + * Takes the DOM node el and appends the rendered children to the end of + * the element's contents. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param children is jQuery.append argument: http://api.jquery.com/append/ + */ + appendChildren(el: any, children: any): void; + + /** + * Add sibling to the DOM immediately before the DOM node el. The + * sibling will be at the same level as el. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param sibling is jQuery.before argument: http://api.jquery.com/before/ + */ + beforeEl(el: any, sibling: any): void; + + /** + * Remove oldEl from the DOM and put newEl in its place. + */ + replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; + + /** + * Remove the inner contents of el from the DOM while leaving el itself + * in the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachContents(el: any): void; + + /** + * Replace the contents of el with the HTML string of html. Unlike other + * DOM functions, this takes a literal string for its second argument. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param html is a jQuery.html argument: https://api.jquery.com/html/ + */ + setInnerContent(el: any, html: string | Function): void; + + /** + * Detach el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachEl(el: any): void; + + /** + * Remove el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + removeEl(el: any): void; + + /** + * Lookup the selector string within the DOM node for context. The + * optional context argument will come in as a DOM Node reference to run + * the selector search. If context hasn't been set, then findEls should + * search the entire document for the selector. + * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ + * @param context is a jQuery argument: https://api.jquery.com/jQuery/ + */ + findEls(selector: any, context: any): void; + /** * To use the TemplateCache, call the get method on TemplateCache directly. Internally, instances of the TemplateCache class will be created and stored but you do not have to manually create these instances yourself. get will return a compiled template function. */ - static get(templateId: string): any; + static get(templateId: string, options?: any): any; /** * You can clear one or more, or all items from the cache using the clear @@ -662,27 +462,239 @@ declare namespace Marionette { */ static clear(...templateId: string[]): void; + /** + * Initial method to load the template. (undocumented) + */ + load(options?: any): any; + /** * The default template retrieval is to select the template contents from the * DOM using jQuery. If you wish to change the way this works, you can * override this method on the TemplateCache object. + * Note that the options argument seems to be unused in the source. */ - loadTemplate(templateId: string): any; + loadTemplate(templateId: string, options?: any): any; /** - * he default template compilation passes the results from loadTemplate to + * The default template compilation passes the results from loadTemplate to * the compileTemplate function, which returns an underscore.js compiled * template function. When overriding compileTemplate remember that it * must return a function which takes an object of parameters and values * and returns a formatted HTML string. */ - compileTemplate(rawTemplate: any): any; + compileTemplate(rawTemplate: any, options?: any): any; + } + + interface RegionConstructionOptions { + /** + * Specifies the element for the region to manage. This may be + * a selector string, a raw DOM node reference or a jQuery wrapped + * DOM node. + */ + el?: any; + + /** + * Prevents error on missing element. (undocumented) + */ + allowMissingEl?: boolean; + + /** + * Element to use as context when finding el via jQuery. Defaults to the + * the document. (undocumented) + */ + parentEl?: string; + + /** + * Overwrite the parent el of the region with the rendered contents of + * the inner View. + */ + replaceElement?: string; + } + + interface RegionViewOptions { + /** + * DEPRECATED: If you replace the current view with a new view by calling show, by + * default it will automatically destroy the previous view. You can + * prevent this behavior by setting this option to true. + */ + preventDestroy?: boolean; } /** - * The Renderer object was extracted from the ItemView rendering process, in - * order to create a consistent and re-usable method of rendering a template - * with or without data. + * Regions provide consistent methods to manage, show and destroy views in + * your applications and layouts. They use a jQuery selector to show your + * views in the correct place. + */ + class Region extends Object implements DomMixin { + + /** + * Returns a new HTML DOM node instance. The resulting node can be + * passed into the other DOM functions. + */ + createBuffer(): DocumentFragment; + + /** + * Takes the DOM node el and appends the rendered children to the end of + * the element's contents. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param children is jQuery.append argument: http://api.jquery.com/append/ + */ + appendChildren(el: any, children: any): void; + + /** + * Add sibling to the DOM immediately before the DOM node el. The + * sibling will be at the same level as el. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param sibling is jQuery.before argument: http://api.jquery.com/before/ + */ + beforeEl(el: any, sibling: any): void; + + /** + * Remove oldEl from the DOM and put newEl in its place. + */ + replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; + + /** + * Remove the inner contents of el from the DOM while leaving el itself + * in the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachContents(el: any): void; + + /** + * Replace the contents of el with the HTML string of html. Unlike other + * DOM functions, this takes a literal string for its second argument. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param html is a jQuery.html argument: https://api.jquery.com/html/ + */ + setInnerContent(el: any, html: string | Function): void; + + /** + * Detach el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachEl(el: any): void; + + /** + * Remove el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + removeEl(el: any): void; + + /** + * Lookup the selector string within the DOM node for context. The + * optional context argument will come in as a DOM Node reference to run + * the selector search. If context hasn't been set, then findEls should + * search the entire document for the selector. + * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ + * @param context is a jQuery argument: https://api.jquery.com/jQuery/ + */ + findEls(selector: any, context: any): void; + + /** + * You can specify an el for the region to manage at the time the region + * is instantiated. + */ + constructor(options?: RegionConstructionOptions); + + /** + * Defaults to 'mnr' (undocumented) + */ + cidPrefix: string; + + /** + * Overwrite the parent el of the region with the rendered contents of + * the inner View. + */ + replaceElement: boolean; + + /** + * Contains the element that this region should manage. + */ + el: any; + + /** + * Renders and displays the specified view in this region. + * @param view the view to display. + */ + show(view: Backbone.View, options?: RegionViewOptions): void; + + /** + * Override this method to change how the region finds the DOM element + * that it manages. Return a jQuery selector object scoped to a provided + * parent el or the document if none exists. (undocumented) + */ + getEl(): any; + + /** + * Check to see if the region’s el was replaced. (undocumented) + */ + isReplaced(): boolean; + + /** + * Check to see if a view is being swapped by another. + */ + isSwappingView(): boolean; + + /** + * Override this method to change how the new view is appended to the + * `$el` that the region is managing + */ + attachHtml(view: Backbone.View): void; + + /** + * Destroy the current view, clean up any event handlers and remove it + * from the DOM. When a region is emptied empty events are triggered. + */ + empty(options?: RegionViewOptions): any; + + /** + * Destroys the view taking into consideration if is a View descendant + * or vanilla Backbone view. + */ + destroyView(view: Backbone.View): Backbone.View; + + /** + * Override the region's removeView method to change how and when the + * view is destroyed / removed from the DOM. + */ + removeView(view: Backbone.View): void; + + /** + * Empties the Region without destroying the view, returns the detached + * view. + */ + detachView(): Backbone.View; + + /** + * Override this method to change how the region detaches current + * content. + */ + detachHtml(): void; + + /** + * If you wish to check whether a region has a view, you can use the + * hasView function. This will return a boolean value depending whether + * or not the region is showing a view. + */ + hasView(): boolean; + + /** + * A region can be reset at any time. This destroys any existing view + * being displayed, and deletes the cached el. The next time the region + * shows a view, the region's el is queried from the DOM. + */ + reset(): any; + + /** + * @returns view that this region has. + */ + currentView: Backbone.View; + } + + /** + * Render a template with data by passing in the template selector and the + * data to render. This is the default renderer that is used by Marionette. */ class Renderer { /** @@ -699,257 +711,495 @@ declare namespace Marionette { static render(template: any, data: any): string; } + interface ViewOptions extends Backbone.ViewOptions, ViewMixinOptions { + + /** + * The events attribute binds DOM events to actions to perform on the + * view. It takes DOM event key and a mapping to the handler. + */ + events?: EventsHash; + + /** + * If you've created a custom region class, you can use it to define + * your region. + */ + regionClass?: any; + + /** + * Add regions to this View. + */ + regions?: any; + + /** + * Set the template of this View. + */ + template?: any; + + /** + * The templateContext attribute can be used to add extra information to + * your templates + */ + templateContext?: any; + } + /** - * This base view provides some common and core functionality for other views - * to take advantage of. - * Note: The Marionette.View class is not intended to be used directly. It - * exists as a base view for other view classes to be extended from, and to - * provide a common location for behaviors that are shared across all views. + * A View is a view that represents an item to be displayed with a template. + * This is typically a Backbone.Model, Backbone.Collection, or nothing at + * all. Views are also used to build up your application hierarchy - you can + * easily nest multiple views through the regions attribute. */ - class View extends Backbone.View { + class View extends Backbone.View implements ViewMixin, RegionsMixin { - constructor(options?: Backbone.ViewOptions); + constructor(options?: ViewOptions); + + events(): EventsHash; /** - * Defines behaviors attached to this view. + * Returns a new HTML DOM node instance. The resulting node can be + * passed into the other DOM functions. */ - behaviors: any; + createBuffer(): DocumentFragment; /** - * Defines `triggers` to forward DOM events to view - * events. `triggers: {"click .foo": "do:foo"}` + * Takes the DOM node el and appends the rendered children to the end of + * the element's contents. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param children is jQuery.append argument: http://api.jquery.com/append/ */ - triggers:{[key:string]:any}; + appendChildren(el: any, children: any): void; /** - * A configuration hash for models. The left side is the event on - * the model, and the right side is the name of the - * method on the view or a function to handle the event. This property - * can also be a function that returns the hash described above. + * Add sibling to the DOM immediately before the DOM node el. The + * sibling will be at the same level as el. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param sibling is jQuery.before argument: http://api.jquery.com/before/ */ - modelEvents: any; + beforeEl(el: any, sibling: any): void; /** - * A configuration hash for collections. The left side is the event on - * the collection, and the right side is the name of the - * method on the view or a function to handle the event. This property - * can also be a function that returns the hash described above. + * Remove oldEl from the DOM and put newEl in its place. */ - collectionEvents: any; + replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; /** - * In several cases you need to access ui elements inside the view to - * retrieve their data or manipulate them. For example you have a certain - * div element you need to show/hide based on some state, or other ui - * element that you wish to set a css class to it. Instead of having - * jQuery selectors hanging around in the view's code you can define a - * ui hash that contains a mapping between the ui element's name and its - * jQuery selector. Afterwards you can simply access it via - * this.ui.elementName. + * Remove the inner contents of el from the DOM while leaving el itself + * in the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ */ - ui: any; + detachContents(el: any): void; /** - * There may be some cases where you need to change the template that is - * used for a view, based on some simple logic such as the value of a - * specific attribute in the view's model. To do this, you can provide a - * getTemplate function on your views and use this to return the template - * that you need. + * Replace the contents of el with the HTML string of html. Unlike other + * DOM functions, this takes a literal string for its second argument. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param html is a jQuery.html argument: https://api.jquery.com/html/ */ - getTemplate(): any; - + setInnerContent(el: any, html: string | Function): void; /** - * Retrieve an object's attribute either directly from the object, or - * from the object's this.options, with this.options taking precedence. + * Detach el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ */ - getOption(optionName:string): T; - - mixinTemplateHelpers(target?: any): any; - configureTriggers(): any; + detachEl(el: any): void; /** - * View implements a destroy method, which is called by the region managers automatically. As part of the implementation. + * Remove el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + removeEl(el: any): void; + + /** + * Lookup the selector string within the DOM node for context. The + * optional context argument will come in as a DOM Node reference to run + * the selector search. If context hasn't been set, then findEls should + * search the entire document for the selector. + * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ + * @param context is a jQuery argument: https://api.jquery.com/jQuery/ + */ + findEls(selector: any, context: any): void; + + /** + * Receives a hash of event names and functions and/or function names, + * and returns the same hash with the function names replaced with the + * function references themselves. + */ + normalizeMethods(hash: any): T; + + /** + * A handy function to pluck certain options and attach them directly + * to an instance. + */ + mergeOptions(options: any, keys: any): void; + + /** + * Retrieve an object's attribute either directly from the object, or from + * the object's this.options, with this.options taking precedence. + * @param optionName the name of the option to retrieve. + */ + getOption(optionName: string): any; + + /** + * This method is used to bind a backbone "entity" (collection/model) to + * methods on a target object. + */ + bindEvents(entity: any, bindings: any): void; + + /** + * This method can be used to unbind callbacks from entities' + * (collection/model) events. + */ + unbindEvents(entity: any, bindings: any): void; + + /** + * Internal property. (undocumented) + */ + supportsRenderLifecycle: boolean; + + /** + * Internal property. (undocumented) + */ + supportsDestroyLifecycle: boolean; + + /** + * Check if this View has been destroyed. + */ + isDestroyed(): boolean; + + /** + * Check if this View has been rendered. + */ + isRendered(): boolean; + + /** + * Check if this View is attached to the DOM. + */ + isAttached(): boolean; + + /** + * Overrides Backbone.View.delegateEvents. By default Marionette uses + * this to add handlers for events and triggers. (undocumented) + */ + delegateEvents(eventsArg: any): View; + + /** + * Get the triggers that are currently attached to this view. + * (undocumented) + */ + getTriggers(): EventsHash; + + /** + * Delegate entity events. (undocumented) + */ + delegateEntityEvents(): View; + + /** + * Undelegate entity events. (undocumented) + */ + undelegateEntityEvents(): View; + + /** + * Manually destroy a view by calling the destroy method. The method + * unbinds the UI elements, removes the view and its children from the + * DOM and unbinds the listeners. It also triggers lifecycle events. */ destroy(...args: any[]): View; /** - * In several cases you need to access ui elements inside the view to - * retrieve their data or manipulate them. For example you have a certain - * div element you need to show/hide based on some state, or other ui - * element that you wish to set a css class to it. Instead of having jQuery - * selectors hanging around in the view's code you can define a ui hash - * that contains a mapping between the ui element's name and its jQuery - * selector. Afterwards you can simply access it via this.ui.elementName. - * This functionality is provided via the bindUIElements method. - * Since View doesn't implement the render method, then if you directly - * extend from View you will need to invoke this method from your render - * method. In ItemView and CompositeView this is already taken care of. + * Bind UI elements to this view. By default this is called in the + * render method. (undocumented) */ bindUIElements(): any; + /** + * Bind UI elements from this view. (undocumented) + */ unbindUIElements(): any; + /** + * Customize the event prefix for events that are forwarded through the + * collection view. + */ + childViewEventPrefix: string | false; + + /** + * Trigger an event and a corresponding method on the target object. + * All arguments that are passed to the triggerMethod call are passed + * along to both the event and the method, with the exception of the + * event name not being passed to the corresponding method. + */ triggerMethod(name: string, ...args: any[]): any; /** - * Item views will serialize a model or collection, by default, by calling - * .toJSON on either the model or collection. If both a model and - * collection are attached to an item view, the model will be used as the - * data source. The results of the data serialization will be passed to - * the template that is rendered. - * - * If you need custom serialization for your data, you can provide a serializeData - * method on your view. It must return a valid JSON object, as if you had - * called .toJSON on a model or collection. - */ - serializeData(): any; - - /** - * Renders the view. It is unwise to override the render method of any - * Marionette view. Instead, you should use the onBeforeRender and - * onRender callbacks to layer in additional functionality to the - * rendering of your view. - */ - render(): any; - - /** - * Triggered before an ItemView is rendered. - */ - onBeforeRender(): void; - - /** - * Triggered after the view has been rendered. You can implement this in - * your view to provide custom code for dealing with the view's el after - * it has been rendered. - */ - onRender(): void; - - /** - * Triggered just after the view has been destroyed. - */ - onDestroy(): void; - - /** - * When destroying a view, an onBeforeDestroy method will be called, if - * it has been provided, just before the view destroys. It will be passed - * any arguments that destroy was invoked with. - */ - onBeforeDestroy(...args: any[]): void; - - /** - * Called anytime that showing the view in a Region causes it to be - * attached to the document. - */ - onAttach(): void; - - /** - * Triggered right before the view is attached to the document. - */ - onBeforeAttach(): void; - - /** - * Triggered after the view has been rendered, has been shown in the DOM via a Marionette.Region, and has been re-rendered. - * This event / callback is useful for DOM-dependent UI plugins such as jQueryUI or KendoUI. - */ - onDomRefresh(): void; - - /** - * Internal properties extended in Marionette.View. - */ - isDestroyed(): boolean; - isRendered(): boolean; - isAttached(): boolean; - delegateEntityEvents(): View; - supportsRenderLifecycle: boolean; - supportsDestroyLifecycle: boolean; - - /** - * If you have the need to replace the Region with a region class of your - * own implementation, you can specify an alternate class to use with this - * property. + * Define the region class used for this View. */ regionClass: any; /** - * Regions hash or a method returning the regions hash that maps - * regions/selectors to methods on your View. - **/ - regions(): any; - - /** Adds a region to the layout view. */ - addRegion(name: string, definition: any): Region; + * Add a region to this View. + */ + addRegion(regionName: string, element: any): any; /** - * Add multiple regions as a {name: definition, name2: def2} object literal. + * Add multiple regions to this View. */ addRegions(regions: any): any; - /** Returns a region from the layout view */ - getRegion(name: string): Region; + /** + * Remove a region from this View. + */ + removeRegion(regionName: string): any; /** - * Removes the region with the specified name. - * @param name the name of the region to remove. + * Remove all regions from this View. */ - removeRegion(name: string): Region; - - /** Enable easy overriding of the default `RegionManager` - * for customized region interactions and business specific - * view logic for better control over single regions. - */ - getRegionManager(): RegionManager; + removeRegions(): any; /** - * Show a view into the region specified by `regionName`. + * Empty all regions from this View. */ - showChildView(regionName: string, view: any, options?: RegionShowOptions): void; + emptyRegions(): any; /** - * Get the current view that is shown in the region specified by - * `regionName`. + * Check if this View has a particular region. */ - getChildView(regionName: string): Backbone.View; + hasRegion(regionName: string): any; /** - * Returns all regions from the layout view. The results contains an - * Object hash that has `string`s as keys and `Region`s as values. + * Return a region from this View. */ - getRegions(): {[key: string]: Region}; + getRegion(regionName: string): Region; /** - * You can customize the event prefix for events that are forwarded through - * the layout view with this property. + * Returns all regions from this View. */ - childViewEventPrefix: string; + getRegions(): any; + + /** + * Show a view inside a region. + */ + showChildView(regionName: string, view: any, options?: RegionViewOptions): void; + + /** + * Detach a view from a region. + */ + detachChildView(regionName: string): Backbone.View; + + /** + * Get the view from a region. + */ + getChildView(regionName: string): Backbone.View; + + /** + * The results of this method ared passed to this View's template. By + * default Marionette will attempt to pass either an attached model or + * collection which has been converted to JSON. + */ + serializeData(): any; + + /** + * Method used by this.serializeData to serialize this View's model + * data. + */ + serializeModel(): any; + + /** + * Method used by this.serializeData to serialize this View's collection + * data. + */ + serializeCollection(): any; + + /** + * Rebind this View to a new element. Overriding Backbone.View’s + * setElement to handle if an element was previously defined. + * (undocumented) + */ + setElement(element: any): View; + + /** + * Renders the view. Given a template this method will build your HTML + * from that template, mixing in model information and any extra + * template context. + */ + render(): View; + + /** + * Used to determine which template to use. Override this method to add + * logic for using multiple templates. + */ + getTemplate(): any; + + /** + * Mix in template context methods. Looks for a templateContext + * attribute, which can either be an object literal, or a function that + * returns an object literal. All methods and attributes from this + * object are copies to the object passed in. (undocumented) + */ + mixinTemplateContext(...args: any[]): any; + + /** + * Used to attached the rendered template to this View's element. + */ + attachElContent(html: string): View; + + /** + * Used to set the renderer for this View. The rendere function is + * passed the template and the data and is expected to return an html + * string. By default this is set to use Renderer. + */ + setRenderer(renderer: (template: any, data: any) => string): void; + + /** + * Event that is triggered before this View is rendered. + */ + onBeforeRender(view: View): void; + + /** + * Event that is triggered after this View is rendered. + */ + onRender(view: View): void; + + /** + * Event that is triggered before this View is added to the DOM. + */ + onBeforeAttach(view: View): void; + + /** + * Event that is triggered after this View's element has been added to + * the DOM. + */ + onAttach(view: View): void; + + /** + * Event that is triggered after this View's content has been added to + * the DOM. Is also triggered every time this.render() is called. + */ + onDomRefresh(view: View): void; + + /** + * Event that is triggered before this View is destroyed. + */ + onBeforeDestroy(view: View, ...args: any[]): void; + + /** + * Event that is triggered before this View's element is removed from + * the DOM. + */ + onBeforeDetach(view: View): void; + + /** + * Event that is triggered before this View's content is removed from + * the DOM. + */ + onDomRemove(view: View): void; + + /** + * Event that is triggered after this View's element has been removed + * from the DOM. + */ + onDetach(view: View): void; + + /** + * Event that is triggered after this View is destroyed. + */ + onDestroy(view: View, ...args: any[]): void; + + /** + * Event that is triggered before a Region is added. + */ + onBeforeAddRegion(regionName: string, region: Region): void; + + /** + * Event that is triggered after a Region has been added. + */ + onAddRegion(regionName: string, region: Region): void; + + /** + * Event that is triggered before a Region is removed. + */ + onBeforeRemoveRegion(regionName: string, region: Region): void; + + /** + * Event that is triggered after a Region has been removed. + */ + onRemoveRegion(regionName: string, region: Region): void; + + /** + * Behavior objects to assign to this View. + */ + behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ + behaviorClass: typeof Behavior; + [index: string]: any; + }>; + + /** + * Bind to events that occur on attached models. + */ + modelEvents: EventsHash; + + /** + * The view triggers attribute binds DOM events to Marionette View events + * that can be responded to at the view or parent level. + */ + triggers: EventsHash; + + /** + * Name parts of your template to be used + * throughout the view with the ui attribute. + */ + ui: any; } - - interface CollectionViewOptions extends Backbone.ViewOptions { + interface CollectionViewOptions = Backbone.Collection> extends Backbone.ViewOptions, ViewMixinOptions { /** - * By default the CollectionView will maintain a sorted collection's order - * in the DOM. This behavior can be disabled by specifying {sort: false} - * on initialize. + * Specify a child view to use. + */ + childView?: (() => typeof Backbone.View) | typeof Backbone.View; + + /** + * Define options to pass to the childView constructor. + */ + childViewOptions?: (() => ViewOptions) | ViewOptions; + + /** + * The events attribute binds DOM events to actions to perform on the + * view. It takes DOM event key and a mapping to the handler. + */ + events?: EventsHash; + + /** + * Prevent some of the underlying collection's models from being + * rendered as child views. + */ + filter?: (child?: TModel, index?: number, collection?: TCollection) => boolean; + + /** + * Specify a view to use if the collection has no children. + */ + emptyView?: (() => typeof Backbone.View) | typeof Backbone.View; + + /** + * Define options to pass to the emptyView constructor. + */ + emptyViewOptions?: (() => ViewOptions) | ViewOptions; + + /** + * If true when you sort your collection there will be no re-rendering, + * only the DOM nodes will be reordered. + */ + reorderOnSort?: boolean; + + /** + * If false the collection view will not maintain a sorted collection's + * order in the DOM. */ sort?: boolean; /** - * This option is useful when you have performance issues when you - * resort your CollectionView. Without this option, your CollectionView - * will be completely re-rendered, which can be costly if you have a - * large number of elements or if your ChildViews are complex. If this - * option is activated, when you sort your Collection, there will be no - * re-rendering, only the DOM nodes will be reordered. This can be a - * problem if your ChildViews use their collection's index in their - * rendering. In this case, you cannot use this option as you need to - * re-render each ChildView. - * - * If you combine this option with a filter that changes the views that - * are to be displayed, reorderOnSort will be bypassed to render new - * children and remove those that are rejected by the filter. + * Render your collection view's children with a different sort order + * than the underlying Backbone collection. */ - reorderOnSort?: boolean; + viewComparator?: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); // Mirrors Backbone.Collection.comparator } /** @@ -960,174 +1210,178 @@ declare namespace Marionette { * DOM. This behavior can be disabled by specifying {sort: false} on * initialize. */ - class CollectionView> extends View { - constructor(options?: CollectionViewOptions); + class CollectionView, TCollection extends Backbone.Collection = Backbone.Collection> extends View { + + constructor(options?: CollectionViewOptions); /** - * Specify a childView in your collection view definition. This must be a - * Backbone view object definition, not an instance. It can be any - * Backbone.View or be derived from Marionette.ItemView + * Specify a child view to use. */ - childView: new (...args:any[]) => TView; + childView: (() => { new(...args: any[]): TView }) | { new(...args: any[]): TView }; /** - * There may be scenarios where you need to pass data from your parent - * collection view in to each of the childView instances. To do this, - * provide a childViewOptions definition on your collection view as an - * object literal. This will be passed to the constructor of your childView - * as part of the options. - * - * You can also specify the childViewOptions as a function, if you need to - * calculate the values to return at runtime. The model will be passed - * into the function should you need access to it when calculating - * childViewOptions. The function must return an object, and the attributes of - * the object will be copied to the childView instance's options. + * Define options to pass to the childView constructor. */ - childViewOptions: any; + childViewOptions: (() => ViewOptions) | ViewOptions; /** - * You can customize the event prefix for events that are forwarded through - * the collection view. To do this, set the childViewEventPrefix on the - * collection view. + * Prevent some of the underlying collection's models from being + * rendered as child views. */ - childViewEventPrefix: string; + filter: (child?: TModel, index?: number, collection?: TCollection) => boolean; /** - * You can specify a childViewEvents hash or method which allows you to - * capture all bubbling childViewEvents without having to manually set bindings. - * The keys of the hash can either be a function or a string that is the - * name of a method on the collection view. + * Modify the CollectionView's filter attribute, and renders the new + * ChildViews in a efficient way, instead of rendering the whole DOM + * structure again. */ - childViewEvents: any; + setFilter: (filter: (child?: TModel, index?: number, collection?: TCollection) => boolean, options: { preventRender: boolean }) => void; /** - * When a collection has no children, and you need to render a view other than - * the list of childViews, you can specify an emptyView attribute on your collection - * view. + * Remove a filter from the CollectionView. */ - emptyView: any; + removeFilter: (options: { preventRender: boolean }) => void; /** - * Similar to childView and childViewOptions, there is an emptyViewOptions - * property that will be passed to the emptyView constructor. It can be - * provided as an object literal or as a function. If emptyViewOptions - * aren't provided the CollectionView will default to passing the - * childViewOptions to the emptyView. + * Specify a view to use if the collection has no children. */ - emptyViewOptions: any; + emptyView: (() => typeof Backbone.View) | typeof Backbone.View; /** - * The CollectionView uses Backbone.BabySitter to store and manage its - * child views. This allows you to easily access the views within the - * collection view, iterate them, find them by a given indexer such as the - * view's model or collection, and more. + * Define options to pass to the emptyView constructor. */ - children: Backbone.ChildViewContainer; + emptyViewOptions: (() => ViewOptions) | ViewOptions; /** - * The render method of the collection view is responsible for rendering the - * entire collection. It loops through each of the children in the collection - * and renders them individually as an childView. - */ - render(): CollectionView; - - /** - * The addChild method is responsible for rendering the childViews and - * adding them to the HTML for the collectionView instance. It is also - * responsible for triggering the events per ChildView. In most cases you - * should not override this method. - */ - addChild(item: any, ChildView: TView, index: Number): void; - - /** Render the child view */ - renderChildView(view: TView, index: Number): void; - - /** - * When a custom view instance needs to be created for the childView that - * represents a child, override the buildChildView method. This method - * takes three parameters and returns a view instance to be used as the - * child view. - */ - buildChildView(child: any, ItemViewType: any, itemViewOptions: any): TView; - - /** - * Remove the child view and destroy it. This function also updates the indices of - * later views in the collection in order to keep the children in sync with the collection. - */ - removeChildView(view: TView): TView; - - /** - * Determines if the view is empty. If you want to control when the empty - * view is rendered, you can override isEmpty. + * Method used to determine when emptyView is rendered. */ isEmpty(): boolean; /** - * If empty, show the empty view + * The render method of the collection view is responsible for rendering + * the entire collection. It loops through each of the children in the + * collection and renders them individually as an childView. */ - checkEmpty(): void; + render(): CollectionView; /** - * Destroy the child views that this collection view - * is holding on to, if any. This returns destroyed children. + * This method is used move the HTML from the element buffer into the + * collection view's el. */ - destroyChildren(): Backbone.ChildViewContainer; + attachHtml(collectionView: CollectionView, childView: TView, index: number): void; /** - * By default the CollectionView will maintain the order of its collection - * in the DOM. However on occasions the view may need to re-render to make - * this possible, for example if you were to change the comparator on the - * collection. By default CollectionView will call render when this happens, - * but there are cases where this may not be suitable. For instance when - * sorting the children in a CompositeView, you want to only render the - * internal collection. + * When overriding attachHtml it may be necessary to also override how + * the buffer is attached. */ - resortView(): void; + attachBuffer(collectionView: CollectionView, buffer: DocumentFragment): void; /** - * By default the collection view will append the HTML of each ChildView - * into the element buffer, and then call jQuery's .append once at the end - * to move the HTML into the collection view's el. - * You can override this by specifying an attachHtml method in your view - * definition. - * @param collectionView the instance of the collection view that will receive the HTML. - * @param childView the current child view instance. - * @param index he index of the model that this childView instance represents, - * in the collection that the model came from. This is useful for sorting - * a collection and displaying the sorted list in the correct order on the - * screen. + * Customize the event prefix for events that are forwarded through the + * collection view. */ - attachHtml(collectionView: CollectionView, childView: TView, index: number): void; - - /** Serialize a collection by serializing each of its models. */ - serializeCollection(): any; + childViewEventPrefix: string | false; /** - * Reorder DOM after sorting. When your element's rendering - * do not use their index, you can pass reorderOnSort: true - * to only reorder the DOM after a sort instead of rendering - * all the collectionView + * Use the childViewEvents attribute to map child events to methods on the + * parent view. + */ + childViewEvents: EventsHash; + + /** + * A childViewTriggers hash or method permits proxying of child view events + * without manually setting bindings. The values of the hash should be a + * string of the event to trigger on the parent. + */ + childViewTriggers: EventsHash; + + /** + * Bind to events that occur on attached collections. + */ + collectionEvents: EventsHash; + + /** + * Bind to events that occur on attached models. + */ + modelEvents: EventsHash; + + /** + * The view triggers attribute binds DOM events to Marionette View events + * that can be responded to at the view or parent level. + */ + triggers: EventsHash; + + /** + * If true when you sort your collection there will be no re-rendering, + * only the DOM nodes will be reordered. + */ + reorderOnSort: boolean; + + /** + * If reorderOnSort is set to true, this function will be used instead + * of re-rendering all children. */ reorder(): void; /** - * Render and show the emptyView. Similar to addChild method - * but "add:child" events are not fired, and the event from - * emptyView are not forwarded + * By default the CollectionView will maintain the order of its + * collection in the DOM. However on occasions the view may need to + * re-render to make this possible, for example if you were to change + * the comparator on the collection. The CollectionView will re-render + * its children or reorder them depending on reorderOnSort. */ - addEmptyView(child: TModel, EmptyView: new (...args: any[]) => any): void; + resortView(): void; /** - * Handle cleanup and other destroying needs for the collection of views + * Render your collection view's children with a different sort order + * than the underlying Backbone collection. */ - destroy(): CollectionView; + viewComparator: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); // Mirrors Backbone.Collection.comparator /** - * Set up the child view event forwarding. Uses a "childview:" - * prefix in front of all forwarded events. - * @param view it might be ChildView or EmptyView. + * Override this method to determine which viewComparator to use. */ - proxyChildEvents(view: any): void; + getViewComparator: () => (string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number)); // Mirrors Backbone.Collection.comparator + + /** + * Behavior objects to assign to this View. + */ + behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ + behaviorClass: typeof Behavior; + [index: string]: any; + }>; + + /** + * Name parts of your template to be used throughout the view with the + * ui attribute. + */ + ui: any; + + /** + * The CollectionView can store and manage its child views. This allows + * you to easily access the views within the collection view, iterate + * them, find them by a given indexer such as the view's model or + * collection, and more. + */ + children: Container; + + /** + * The buildChildView is responsible for taking the ChildView class and + * instantiating it with the appropriate data. + */ + buildChildView(child: TModel, childViewClass: { new(...args: any[]): TView }, childViewOptions: ViewOptions): void; + + /** + * The addChildView method can be used to add a view that is independent + * of your Backbone.Collection. + */ + addChildView(childView: TView, index: number): void; + + /** + * The removeChildView method is useful if you need to remove a view + * from the CollectionView without affecting the view's collection. + */ + removeChildView(childView: TView): void; /** * Called just prior to rendering the collection view. @@ -1167,151 +1421,140 @@ declare namespace Marionette { * instance has been deleted or removed from the collection. */ onRemoveChild(childView: TView): void; + + /** + * Automatically destroys this Collection's children and cleans up + * listeners. + */ + destroy(...args: any[]): CollectionView; } - interface AppRouterOptions extends Backbone.RouterOptions { + interface AppRoutes { + [index: string]: string; + } + + interface AppRouterOptions { /** - * The appRoutes. + * Define the app routes and the method names on the controller that + * will be called when accessing the routes. */ - appRoutes?: any; + appRoutes?: AppRoutes; /** - * The controller to associate with this router. + * Define the app routes and the method names on the router that will be + * called when accessing the routes. + */ + routes?: AppRoutes; + + /** + * An object that contains the methods specified in appRoutes. */ controller?: any; } /** - * Reduce the boilerplate code of handling route events and then calling a - * single method on another object. Have your routers configured to call - * the method on your object, directly. + * The Marionette AppRouter is typically used to set up your app when the + * user loads a specific endpoint directly. */ class AppRouter extends Backbone.Router { - /** - * Configure an AppRouter with appRoutes. The route definition - * is passed on to Backbone's standard routing handlers. This means - * that you define routes like you normally would. However, instead of - * providing a callback method that exists on the router, you provide a - * callback method that exists on the controller, which you specify for - * the router instance (see below.) - */ constructor(options?: AppRouterOptions); /** - * You can specify a controller with the multiple routes at runtime with - * this method. However, In this case the current controller of AppRouter - * will not change. - */ - processAppRoutes(controller: any, appRoutes: any): void; - - /** - * Adds an app route at runtime to this instance. It works the same as the - * built-in router.route() call from Backbone's Router, but has all the - * same semantics and behavior of the appRoutes configuration. + * Add an app route at runtime. */ appRoute(route: string, methodName: string): void; + + /** + * Specify a controller with the multiple routes at runtime. This will + * preserve the existing controller as well. + */ + processAppRoutes(controller: any, appRoutes: AppRoutes): void; + + /** + * An object that contains the methods specified in appRoutes. + */ + controller: any; + + /** + * Fires whenever the user navigates to a new route in your application + * that matches a route. + */ + onRoute(name: string, path: string, args: any[]): void; + } + + interface ApplicationOptions extends ObjectOptions { + /** + * Root entry point for the View tree of your Application. + */ + region: string; } /** - * The Backbone.Marionette.Application object is the hub of your composite - * application. It organizes, initializes and coordinates the various pieces - * of your app. It also provides a starting point for you to call into from - * your HTML script block, or directly from your JavaScript files if you - * prefer to go that route. The Application is meant to be instantiated - * directly, although you can extend it to add your own functionality. + * The Application is used to model your Marionette application under a + * single entry point. The application provides: + * - An obvious entry point to your app + * - A clear hook for global events e.g. the AppRouter + * - An interface to let you inject variables from the wider context into + * your app */ - class Application extends Backbone.Events { + class Application extends Object { - constructor(options?: any); + constructor(options?: ApplicationOptions); /** - * The Event Aggregator is available through this property. It is - * convenient for passively sharing information between pieces of your - * application as events occur. - * Note! To access this application channel from other objects within your - * app you are encouraged to get a handle of the systems through the - * Wreqr API instead of the Application instance itself. + * Root entry point for the View tree of your Application. */ - vent: Backbone.Wreqr.EventAggregator; - - /** - * Commands are used to make any component tell another component to - * perform an action without a direct reference to it. - */ - commands: Backbone.Wreqr.Commands; - - /** - * Request Response is a means for any component to request information - * from another component without being tightly coupled. - */ - reqres: Backbone.Wreqr.RequestResponse; - - submodules: any; - - /** Command execution, facilitated by Backbone.Wreqr.Commands */ - execute(...args: any[]): void; - - /** Request/response, facilitated by Backbone.Wreqr.RequestResponse */ - request(...args: any[]): any; - - /** Deprecated! Initializers, you should use events to manage start-up logic. */ - addInitializer(initializer: any): void; - - /** - * Once you have your application configured, you can kick everything off - * by calling this method. - * @param options This parameter will be passed to each of your initializer functions, as well as the initialize events. This allows you to provide extra configuration for various parts of your app throughout the initialization sequence. - */ - start(options?: any): void; - - /** Root region of the application*/ region: string; - /** Get the root region */ + /** + * Called immediately after the Application has been instantiated, and + * is invoked with the same arguments that the constructor received. + */ + initialize(options: ApplicationOptions): void; + + /** + * Fired just before the application is started. + */ + onBeforeStart(options: ApplicationOptions): void; + + /** + * Fired as part of the application startup. + */ + onStart(options: ApplicationOptions): void; + + /** + * Once you have your application configured, you can kick everything + * off by calling this method. + */ + start(options?: any): void; + + /** + * Return the attached region object for the Application. + */ getRegion(): Region; - /** Show a view in the root region */ - showView(view: Backbone.View): void; - - /** Get the view from the root region*/ - getView(): any; - - module(moduleNames: any, moduleDefinition: any): Module; + /** + * Display View in the region attached to the Application. This runs the + * View lifecycle. + */ + showView(view: View): void; /** - * Called just before the Application starts and before the initializers are executed. + * Return the view currently being displayed in the Application's + * attached region. If the Application is not currently displaying a + * view, this method returns undefined. */ - onBeforeStart(options?: any): void; - - /** - * Called after the Application has started and after the initializers have been executed. - */ - onStart(options?: any): void; - } - - // modules mapped for convenience, but you should probably use TypeScript modules instead - class Module extends Backbone.Events { - - constructor(moduleName: string, app: Application); - - submodules: any; - triggerMethod(name: string, ...args: any[]): any; - - addInitializer(callback: any): void; - addFinalizer(callback: any): void; - start(options?: any): void; - addDefinition(moduleDefinition: any, customArgs: any): any; + getView(): View; } /** - * A Behavior is an isolated set of DOM / user interactions that can be mixed - * into any View or another Behavior. Behaviors allow you to blackbox View - * specific interactions into portable logical chunks, keeping your views - * simple and your code DRY. + * A Behavior provides a clean separation of concerns to your view logic, + * allowing you to share common user-facing operations between your views. */ - class Behavior extends Marionette.Object { - constructor(options?: any, view?: any); + class Behavior extends Object { + + constructor(options?: any); options: any; @@ -1327,23 +1570,26 @@ declare namespace Marionette { /** * Any triggers you define on the Behavior will be triggered in response to the appropriate event on the view. */ - triggers: any; + triggers: EventsHash; /** * modelEvents will respond to the view's model events. */ - modelEvents: any; + modelEvents: EventsHash; /** * collectionEvents will respond to the view's collection events. */ - collectionEvents: any; + collectionEvents: EventsHash; /** * The behaviors key allows a behavior to group multiple behaviors * together. */ - behaviors: any; + behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ + behaviorClass: typeof Behavior; + [index: string]: any; + }>; /** * defaults can be a hash or function to define the default options for @@ -1363,8 +1609,10 @@ declare namespace Marionette { */ $el: JQuery; - /** A reference to the view instance that the behavior is on. */ - view: any; + /** + * The View that this behavior is attached to. + */ + view: View; /** * $ is a direct proxy of the views $ lookup method. @@ -1373,10 +1621,7 @@ declare namespace Marionette { } /** - * Marionette.Behaviors' is a utility class that takes care of glueing your - * behavior instances to their given View. The most important part of this - * class is that you MUST override the class level behaviorsLookup method or - * set the option behaviorClass for things to work properly. + * DEPRECATED */ class Behaviors { /** From fece0e0e6b46241e066062deb23771a23b19319e Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 11 Aug 2017 09:08:47 -0400 Subject: [PATCH 012/316] RSVP: switch to `export =` with `allowSyntheticDefaultExports`. --- types/rsvp/index.d.ts | 299 ++++++++++++++++++++------------------- types/rsvp/tsconfig.json | 5 +- 2 files changed, 153 insertions(+), 151 deletions(-) diff --git a/types/rsvp/index.d.ts b/types/rsvp/index.d.ts index c0a7dc8b07..5372bdd7d5 100644 --- a/types/rsvp/index.d.ts +++ b/types/rsvp/index.d.ts @@ -14,98 +14,98 @@ // Credit for that file goes to: Barrie Nemetchek , Andrew Gaspar , John Reilly declare namespace RSVP { - type Resolution = (value: T) => U | Thenable; - type Rejection = (error: C) => D | Thenable; + type Resolution = (value: T) => U | Thenable; + type Rejection = (error: C) => D | Thenable; - interface Thenable { - then(label?: string): Thenable; - then(onFulfillment: Resolution, label?: string): Thenable; - then( - onFulfillment: Resolution, - onRejected: Rejection, - label?: string - ): Thenable; - } + interface Thenable { + then(label?: string): Thenable; + then(onFulfillment: Resolution, label?: string): Thenable; + then( + onFulfillment: Resolution, + onRejected: Rejection, + label?: string + ): Thenable; + } - interface Catchable { - catch(label?: string): Catchable; - catch(onRejection: (error: C) => D, label?: string): Catchable; - } + interface Catchable { + catch(label?: string): Catchable; + catch(onRejection: (error: C) => D, label?: string): Catchable; + } - interface Deferred { - promise: Promise; - resolve(value: T): void; - reject(reason: C): void; - } + interface Deferred { + promise: Promise; + resolve(value: T): void; + reject(reason: C): void; + } - type PromiseStates = 'fulfilled' | 'rejected' | 'pending'; - interface IPromiseState { - state: PromiseStates; - value: T; - reason: C; - } + type PromiseStates = 'fulfilled' | 'rejected' | 'pending'; + interface IPromiseState { + state: PromiseStates; + value: T; + reason: C; + } - class Resolved implements IPromiseState { - state: 'fulfilled'; - value: T; - reason: never; - } + class Resolved implements IPromiseState { + state: 'fulfilled'; + value: T; + reason: never; + } - class Rejected implements IPromiseState { - state: 'rejected'; - value: never; - reason: C; - } + class Rejected implements IPromiseState { + state: 'rejected'; + value: never; + reason: C; + } - class Pending implements IPromiseState { - state: 'pending'; - value: never; - reason: never; - } + class Pending implements IPromiseState { + state: 'pending'; + value: never; + reason: never; + } - type PromiseState = Resolved | Rejected | Pending; + type PromiseState = Resolved | Rejected | Pending; - type PromiseHash = { [P in keyof T]: Thenable | T[P] }; + type PromiseHash = { [P in keyof T]: Thenable | T[P] }; - type SettledHash = { [P in keyof T]: PromiseState }; + type SettledHash = { [P in keyof T]: PromiseState }; - interface InstrumentEvent { - guid: string; // guid of promise. Must be globally unique, not just within the implementation - childGuid: string; // child of child promise (for chained via `then`) - eventName: string; // one of ['created', 'chained', 'fulfilled', 'rejected'] - detail: any; // fulfillment value or rejection reason, if applicable - label: string; // label passed to promise's constructor - timeStamp: number; // milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now - } + interface InstrumentEvent { + guid: string; // guid of promise. Must be globally unique, not just within the implementation + childGuid: string; // child of child promise (for chained via `then`) + eventName: string; // one of ['created', 'chained', 'fulfilled', 'rejected'] + detail: any; // fulfillment value or rejection reason, if applicable + label: string; // label passed to promise's constructor + timeStamp: number; // milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now + } - interface ObjectWithEventMixins { - on( - eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', - listener: (event: InstrumentEvent) => void - ): void; - on(eventName: 'error', errorHandler: (reason: any) => void): void; - on(eventName: string, callback: (value: any) => void): void; - off(eventName: string, callback?: (value: any) => void): void; - trigger(eventName: string, options?: any, label?: string): void; - } + interface ObjectWithEventMixins { + on( + eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', + listener: (event: InstrumentEvent) => void + ): void; + on(eventName: 'error', errorHandler: (reason: any) => void): void; + on(eventName: string, callback: (value: any) => void): void; + off(eventName: string, callback?: (value: any) => void): void; + trigger(eventName: string, options?: any, label?: string): void; + } - class Promise implements Thenable, Catchable { - /** + class Promise implements Thenable, Catchable { + /** * If you call resolve in the body of the callback passed to the constructor, * your promise is fulfilled with result object passed to resolve. * If you call reject your promise is rejected with the object passed to reject. * For consistency and debugging (eg stack traces), obj should be an instanceof Error. * Any errors thrown in the constructor callback will be implicitly passed to reject(). */ - constructor( - callback: ( - resolve: (result?: T | Thenable) => void, - reject: (error: C | Thenable) => void - ) => void, - label?: string - ); + constructor( + callback: ( + resolve: (result?: T | Thenable) => void, + reject: (error: C | Thenable) => void + ) => void, + label?: string + ); - /** + /** * onFulfillment is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfillment/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. @@ -116,31 +116,31 @@ declare namespace RSVP { * @param onRejected called when/if "promise" rejects * @param label useful for tooling */ - then( - onFulfillment: Resolution, - onRejected: Rejection, - label?: string - ): Promise; - then(onFulfillment: Resolution, label?: string): Promise; - then(label?: string): Promise; + then( + onFulfillment: Resolution, + onRejected: Rejection, + label?: string + ): Promise; + then(onFulfillment: Resolution, label?: string): Promise; + then(label?: string): Promise; - /** + /** * Sugar for promise.then(undefined, onRejected) */ - catch(label?: string): Promise; - catch(onRejection: Rejection, label?: string): Promise; + catch(label?: string): Promise; + catch(onRejection: Rejection, label?: string): Promise; - finally(finallyCallback: Function): Promise; + finally(finallyCallback: Function): Promise; - /** + /** * `RSVP.Promise.all` accepts an array of promises, and returns a new promise which * is fulfilled with an array of fulfillment values for the passed promises, or * rejected with the reason of the first passed promise to be rejected. It casts all * elements of the passed iterable to promises as it runs this algorithm. */ - static all(promises: Thenable[], label?: string): Promise; + static all(promises: Thenable[], label?: string): Promise; - /** + /** * `RSVP.Promise.race` returns a new promise which is settled in the same way as the * first passed promise to settle. * @@ -150,67 +150,67 @@ declare namespace RSVP { * become rejected before the other promises became fulfilled, the returned * promise will become rejected. */ - static race(promises: Promise[]): Promise; + static race(promises: Promise[]): Promise; - /** + /** * Returns a promise that will become resolved with the passed `value` */ - static resolve(value: T, label?: string): Promise; + static resolve(value: T, label?: string): Promise; - /** + /** * Deprecated in favor of resolve */ - static cast(value: T, label?: string): Promise; + static cast(value: T, label?: string): Promise; - /** + /** * Returns a promise rejected with the passed `reason`. */ - static reject(reason: C): Promise; - } + static reject(reason: C): Promise; + } - export namespace EventTarget { - /** `RSVP.EventTarget.mixin` extends an object with EventTarget methods. */ - function mixin(object: object): ObjectWithEventMixins; + export namespace EventTarget { + /** `RSVP.EventTarget.mixin` extends an object with EventTarget methods. */ + function mixin(object: object): ObjectWithEventMixins; - /** Registers a callback to be executed when `eventName` is triggered */ - function on( - eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', - listener: (event: InstrumentEvent) => void - ): void; - function on(eventName: 'error', errorHandler: (reason: any) => void): void; - function on(eventName: string, callback: (value: any) => void): void; + /** Registers a callback to be executed when `eventName` is triggered */ + function on( + eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', + listener: (event: InstrumentEvent) => void + ): void; + function on(eventName: 'error', errorHandler: (reason: any) => void): void; + function on(eventName: string, callback: (value: any) => void): void; - /** + /** * You can use `off` to stop firing a particular callback for an event. * * If you don't pass a `callback` argument to `off`, ALL callbacks for the * event will not be executed when the event fires. */ - function off(eventName: string, callback?: (value: any) => void): void; + function off(eventName: string, callback?: (value: any) => void): void; - /** + /** * Use `trigger` to fire custom events. * * You can also pass a value as a second argument to `trigger` that will be * passed as an argument to all event listeners for the event */ - function trigger(eventName: string, options?: any, label?: string): void; - } + function trigger(eventName: string, options?: any, label?: string): void; + } - export function configure( - configName: 'instrument' | 'instrument-with-stack', - shouldInstrument: boolean - ): void; - export function configure(configName: string, value: any): void; + export function configure( + configName: 'instrument' | 'instrument-with-stack', + shouldInstrument: boolean + ): void; + export function configure(configName: string, value: any): void; - /** + /** * Make a promise that fulfills when every item in the array fulfills, and rejects if (and when) any item rejects. * the array passed to all can be a mixture of promise-like objects and other objects. * The fulfillment value is an array (in order) of fulfillment values. The rejection value is the first rejection value. */ - export function all(promises: Thenable[]): Promise; + export function all(promises: Thenable[]): Promise; - /** + /** * `RSVP.hash` is similar to `RSVP.all`, but takes an object instead of an array * for its `promises` argument. * @@ -223,9 +223,9 @@ declare namespace RSVP { * If any of the `promises` given to `RSVP.hash` are rejected, the first promise * that is rejected will be given as the reason to the rejection handler. */ - export function hash(promises: PromiseHash): Promise; + export function hash(promises: PromiseHash): Promise; - /** + /** * `RSVP.map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called * meaning that as soon as any promise resolves its value will be passed to `mapFn`. * `RSVP.map` returns a promise that will become fulfilled with the result of running @@ -235,21 +235,21 @@ declare namespace RSVP { * that is rejected will be given as an argument to the returned promise's * rejection handler. */ - export function map( - promises: Thenable[], - mapFn: (item: T) => U, - label?: string - ): Promise; + export function map( + promises: Thenable[], + mapFn: (item: T) => U, + label?: string + ): Promise; - /** + /** * `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing * a fail-fast method, it waits until all the promises have returned and * shows you all the results. This is useful if you want to handle multiple * promises' failure states together as a set. */ - export function allSettled(promises: Thenable[]): Promise[], C>; + export function allSettled(promises: Thenable[]): Promise[], C>; - /** + /** * `RSVP.hashSettled` is similar to `RSVP.allSettled`, but takes an object * instead of an array for its `promises` argument. * @@ -259,14 +259,14 @@ declare namespace RSVP { * with their states and values/reasons. This is useful if you want to * handle multiple promises' failure states together as a set. */ - export function hashSettled(promises: PromiseHash): Promise, C>; + export function hashSettled(promises: PromiseHash): Promise, C>; - /** + /** * Make a Promise that fulfills when any item fulfills, and rejects if any item rejects. */ - function race(promises: Promise[]): Promise; + function race(promises: Promise[]): Promise; - /** + /** * `RSVP.denodeify` takes a "node-style" function and returns a function that * will return an `RSVP.Promise`. You can use `denodeify` in Node.js or the * browser when you'd prefer to use promises over using callbacks. For example, @@ -324,12 +324,12 @@ declare namespace RSVP { * }); * ``` */ - export function denodeify( - nodeFunction: Function, - options: boolean | string[] - ): (...args: A[]) => Promise; + export function denodeify( + nodeFunction: Function, + options: boolean | string[] + ): (...args: A[]) => Promise; - /** + /** * `RSVP.defer` returns an object similar to jQuery's `$.Deferred`. * `RSVP.defer` should be used when porting over code reliant on `$.Deferred`'s * interface. New code should use the `RSVP.Promise` constructor instead. @@ -339,32 +339,32 @@ declare namespace RSVP { * * reject - a function that causes the `promise` property on this object to become rejected * * resolve - a function that causes the `promise` property on this object to become fulfilled. */ - export function defer(label?: string): Deferred; + export function defer(label?: string): Deferred; - /** + /** * `RSVP.Promise.reject` returns a promise rejected with the passed `reason`. */ - export function reject(reason: C): Promise; + export function reject(reason: C): Promise; - /** + /** * `RSVP.Promise.resolve` returns a promise that will become resolved with the * passed `value`. */ - export function resolve(value: T): Promise; + export function resolve(value: T): Promise; - /** + /** * `RSVP.filter` is similar to JavaScript's native `filter` method, except that it * waits for all promises to become fulfilled before running the `filterFn` on * each item in given to `promises`. `RSVP.filter` returns a promise that will * become fulfilled with the result of running `filterFn` on the values the * promises become fulfilled with. */ - export function filter( - promises: Thenable[], - filterFn: (value: T) => boolean | Promise - ): Promise; + export function filter( + promises: Thenable[], + filterFn: (value: T) => boolean | Promise + ): Promise; - /** + /** * `RSVP.rethrow` will rethrow an error on the next turn of the JavaScript event * loop in order to aid debugging. * @@ -376,7 +376,8 @@ declare namespace RSVP { * or domain/cause uncaught exception in Node. `rethrow` will also throw the * error again so the error can be handled by the promise per the spec. */ - export function rethrow(reason: C): void; + export function rethrow(reason: C): void; } -export default RSVP; +// export default RSVP; +export = RSVP; diff --git a/types/rsvp/tsconfig.json b/types/rsvp/tsconfig.json index 58c8e605be..fee17b279a 100644 --- a/types/rsvp/tsconfig.json +++ b/types/rsvp/tsconfig.json @@ -13,10 +13,11 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", "rsvp-tests.ts" ] -} \ No newline at end of file +} From 0196f2468ea3f38b96afe01e77fd7980710c8ac2 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 11 Aug 2017 09:18:16 -0400 Subject: [PATCH 013/316] Update RSVP dependencies to allow synthetic imports. --- types/ember-testing-helpers/tsconfig.json | 3 ++- types/ember/tsconfig.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/types/ember-testing-helpers/tsconfig.json b/types/ember-testing-helpers/tsconfig.json index aaf474ecba..cd7634bd25 100644 --- a/types/ember-testing-helpers/tsconfig.json +++ b/types/ember-testing-helpers/tsconfig.json @@ -14,7 +14,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", diff --git a/types/ember/tsconfig.json b/types/ember/tsconfig.json index d2f27dfec9..fbc4052a08 100644 --- a/types/ember/tsconfig.json +++ b/types/ember/tsconfig.json @@ -14,10 +14,11 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", "ember-tests.ts" ] -} \ No newline at end of file +} From 6ecbed72420aa10dac76a64db6ced41e217f645b Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 11 Aug 2017 09:19:55 -0400 Subject: [PATCH 014/316] Fix spacing in RSVP (thanks, Prettier). --- types/rsvp/index.d.ts | 296 +++++++++++++++++++++--------------------- 1 file changed, 148 insertions(+), 148 deletions(-) diff --git a/types/rsvp/index.d.ts b/types/rsvp/index.d.ts index 5372bdd7d5..1aa764d785 100644 --- a/types/rsvp/index.d.ts +++ b/types/rsvp/index.d.ts @@ -14,98 +14,98 @@ // Credit for that file goes to: Barrie Nemetchek , Andrew Gaspar , John Reilly declare namespace RSVP { - type Resolution = (value: T) => U | Thenable; - type Rejection = (error: C) => D | Thenable; + type Resolution = (value: T) => U | Thenable; + type Rejection = (error: C) => D | Thenable; - interface Thenable { - then(label?: string): Thenable; - then(onFulfillment: Resolution, label?: string): Thenable; - then( - onFulfillment: Resolution, - onRejected: Rejection, - label?: string - ): Thenable; - } + interface Thenable { + then(label?: string): Thenable; + then(onFulfillment: Resolution, label?: string): Thenable; + then( + onFulfillment: Resolution, + onRejected: Rejection, + label?: string + ): Thenable; + } - interface Catchable { - catch(label?: string): Catchable; - catch(onRejection: (error: C) => D, label?: string): Catchable; - } + interface Catchable { + catch(label?: string): Catchable; + catch(onRejection: (error: C) => D, label?: string): Catchable; + } - interface Deferred { - promise: Promise; - resolve(value: T): void; - reject(reason: C): void; - } + interface Deferred { + promise: Promise; + resolve(value: T): void; + reject(reason: C): void; + } - type PromiseStates = 'fulfilled' | 'rejected' | 'pending'; - interface IPromiseState { - state: PromiseStates; - value: T; - reason: C; - } + type PromiseStates = 'fulfilled' | 'rejected' | 'pending'; + interface IPromiseState { + state: PromiseStates; + value: T; + reason: C; + } - class Resolved implements IPromiseState { - state: 'fulfilled'; - value: T; - reason: never; - } + class Resolved implements IPromiseState { + state: 'fulfilled'; + value: T; + reason: never; + } - class Rejected implements IPromiseState { - state: 'rejected'; - value: never; - reason: C; - } + class Rejected implements IPromiseState { + state: 'rejected'; + value: never; + reason: C; + } - class Pending implements IPromiseState { - state: 'pending'; - value: never; - reason: never; - } + class Pending implements IPromiseState { + state: 'pending'; + value: never; + reason: never; + } - type PromiseState = Resolved | Rejected | Pending; + type PromiseState = Resolved | Rejected | Pending; - type PromiseHash = { [P in keyof T]: Thenable | T[P] }; + type PromiseHash = { [P in keyof T]: Thenable | T[P] }; - type SettledHash = { [P in keyof T]: PromiseState }; + type SettledHash = { [P in keyof T]: PromiseState }; - interface InstrumentEvent { - guid: string; // guid of promise. Must be globally unique, not just within the implementation - childGuid: string; // child of child promise (for chained via `then`) - eventName: string; // one of ['created', 'chained', 'fulfilled', 'rejected'] - detail: any; // fulfillment value or rejection reason, if applicable - label: string; // label passed to promise's constructor - timeStamp: number; // milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now - } + interface InstrumentEvent { + guid: string; // guid of promise. Must be globally unique, not just within the implementation + childGuid: string; // child of child promise (for chained via `then`) + eventName: string; // one of ['created', 'chained', 'fulfilled', 'rejected'] + detail: any; // fulfillment value or rejection reason, if applicable + label: string; // label passed to promise's constructor + timeStamp: number; // milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now + } - interface ObjectWithEventMixins { - on( - eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', - listener: (event: InstrumentEvent) => void - ): void; - on(eventName: 'error', errorHandler: (reason: any) => void): void; - on(eventName: string, callback: (value: any) => void): void; - off(eventName: string, callback?: (value: any) => void): void; - trigger(eventName: string, options?: any, label?: string): void; - } + interface ObjectWithEventMixins { + on( + eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', + listener: (event: InstrumentEvent) => void + ): void; + on(eventName: 'error', errorHandler: (reason: any) => void): void; + on(eventName: string, callback: (value: any) => void): void; + off(eventName: string, callback?: (value: any) => void): void; + trigger(eventName: string, options?: any, label?: string): void; + } - class Promise implements Thenable, Catchable { - /** + class Promise implements Thenable, Catchable { + /** * If you call resolve in the body of the callback passed to the constructor, * your promise is fulfilled with result object passed to resolve. * If you call reject your promise is rejected with the object passed to reject. * For consistency and debugging (eg stack traces), obj should be an instanceof Error. * Any errors thrown in the constructor callback will be implicitly passed to reject(). */ - constructor( - callback: ( - resolve: (result?: T | Thenable) => void, - reject: (error: C | Thenable) => void - ) => void, - label?: string - ); + constructor( + callback: ( + resolve: (result?: T | Thenable) => void, + reject: (error: C | Thenable) => void + ) => void, + label?: string + ); - /** + /** * onFulfillment is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfillment/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. @@ -116,31 +116,31 @@ declare namespace RSVP { * @param onRejected called when/if "promise" rejects * @param label useful for tooling */ - then( - onFulfillment: Resolution, - onRejected: Rejection, - label?: string - ): Promise; - then(onFulfillment: Resolution, label?: string): Promise; - then(label?: string): Promise; + then( + onFulfillment: Resolution, + onRejected: Rejection, + label?: string + ): Promise; + then(onFulfillment: Resolution, label?: string): Promise; + then(label?: string): Promise; - /** + /** * Sugar for promise.then(undefined, onRejected) */ - catch(label?: string): Promise; - catch(onRejection: Rejection, label?: string): Promise; + catch(label?: string): Promise; + catch(onRejection: Rejection, label?: string): Promise; - finally(finallyCallback: Function): Promise; + finally(finallyCallback: Function): Promise; - /** + /** * `RSVP.Promise.all` accepts an array of promises, and returns a new promise which * is fulfilled with an array of fulfillment values for the passed promises, or * rejected with the reason of the first passed promise to be rejected. It casts all * elements of the passed iterable to promises as it runs this algorithm. */ - static all(promises: Thenable[], label?: string): Promise; + static all(promises: Thenable[], label?: string): Promise; - /** + /** * `RSVP.Promise.race` returns a new promise which is settled in the same way as the * first passed promise to settle. * @@ -150,67 +150,67 @@ declare namespace RSVP { * become rejected before the other promises became fulfilled, the returned * promise will become rejected. */ - static race(promises: Promise[]): Promise; + static race(promises: Promise[]): Promise; - /** + /** * Returns a promise that will become resolved with the passed `value` */ - static resolve(value: T, label?: string): Promise; + static resolve(value: T, label?: string): Promise; - /** + /** * Deprecated in favor of resolve */ - static cast(value: T, label?: string): Promise; + static cast(value: T, label?: string): Promise; - /** + /** * Returns a promise rejected with the passed `reason`. */ - static reject(reason: C): Promise; - } + static reject(reason: C): Promise; + } - export namespace EventTarget { - /** `RSVP.EventTarget.mixin` extends an object with EventTarget methods. */ - function mixin(object: object): ObjectWithEventMixins; + export namespace EventTarget { + /** `RSVP.EventTarget.mixin` extends an object with EventTarget methods. */ + function mixin(object: object): ObjectWithEventMixins; - /** Registers a callback to be executed when `eventName` is triggered */ - function on( - eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', - listener: (event: InstrumentEvent) => void - ): void; - function on(eventName: 'error', errorHandler: (reason: any) => void): void; - function on(eventName: string, callback: (value: any) => void): void; + /** Registers a callback to be executed when `eventName` is triggered */ + function on( + eventName: 'created' | 'chained' | 'fulfilled' | 'rejected', + listener: (event: InstrumentEvent) => void + ): void; + function on(eventName: 'error', errorHandler: (reason: any) => void): void; + function on(eventName: string, callback: (value: any) => void): void; - /** + /** * You can use `off` to stop firing a particular callback for an event. * * If you don't pass a `callback` argument to `off`, ALL callbacks for the * event will not be executed when the event fires. */ - function off(eventName: string, callback?: (value: any) => void): void; + function off(eventName: string, callback?: (value: any) => void): void; - /** + /** * Use `trigger` to fire custom events. * * You can also pass a value as a second argument to `trigger` that will be * passed as an argument to all event listeners for the event */ - function trigger(eventName: string, options?: any, label?: string): void; - } + function trigger(eventName: string, options?: any, label?: string): void; + } - export function configure( - configName: 'instrument' | 'instrument-with-stack', - shouldInstrument: boolean - ): void; - export function configure(configName: string, value: any): void; + export function configure( + configName: 'instrument' | 'instrument-with-stack', + shouldInstrument: boolean + ): void; + export function configure(configName: string, value: any): void; - /** + /** * Make a promise that fulfills when every item in the array fulfills, and rejects if (and when) any item rejects. * the array passed to all can be a mixture of promise-like objects and other objects. * The fulfillment value is an array (in order) of fulfillment values. The rejection value is the first rejection value. */ - export function all(promises: Thenable[]): Promise; + export function all(promises: Thenable[]): Promise; - /** + /** * `RSVP.hash` is similar to `RSVP.all`, but takes an object instead of an array * for its `promises` argument. * @@ -223,9 +223,9 @@ declare namespace RSVP { * If any of the `promises` given to `RSVP.hash` are rejected, the first promise * that is rejected will be given as the reason to the rejection handler. */ - export function hash(promises: PromiseHash): Promise; + export function hash(promises: PromiseHash): Promise; - /** + /** * `RSVP.map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called * meaning that as soon as any promise resolves its value will be passed to `mapFn`. * `RSVP.map` returns a promise that will become fulfilled with the result of running @@ -235,21 +235,21 @@ declare namespace RSVP { * that is rejected will be given as an argument to the returned promise's * rejection handler. */ - export function map( - promises: Thenable[], - mapFn: (item: T) => U, - label?: string - ): Promise; + export function map( + promises: Thenable[], + mapFn: (item: T) => U, + label?: string + ): Promise; - /** + /** * `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing * a fail-fast method, it waits until all the promises have returned and * shows you all the results. This is useful if you want to handle multiple * promises' failure states together as a set. */ - export function allSettled(promises: Thenable[]): Promise[], C>; + export function allSettled(promises: Thenable[]): Promise[], C>; - /** + /** * `RSVP.hashSettled` is similar to `RSVP.allSettled`, but takes an object * instead of an array for its `promises` argument. * @@ -259,14 +259,14 @@ declare namespace RSVP { * with their states and values/reasons. This is useful if you want to * handle multiple promises' failure states together as a set. */ - export function hashSettled(promises: PromiseHash): Promise, C>; + export function hashSettled(promises: PromiseHash): Promise, C>; - /** + /** * Make a Promise that fulfills when any item fulfills, and rejects if any item rejects. */ - function race(promises: Promise[]): Promise; + function race(promises: Promise[]): Promise; - /** + /** * `RSVP.denodeify` takes a "node-style" function and returns a function that * will return an `RSVP.Promise`. You can use `denodeify` in Node.js or the * browser when you'd prefer to use promises over using callbacks. For example, @@ -324,12 +324,12 @@ declare namespace RSVP { * }); * ``` */ - export function denodeify( - nodeFunction: Function, - options: boolean | string[] - ): (...args: A[]) => Promise; + export function denodeify( + nodeFunction: Function, + options: boolean | string[] + ): (...args: A[]) => Promise; - /** + /** * `RSVP.defer` returns an object similar to jQuery's `$.Deferred`. * `RSVP.defer` should be used when porting over code reliant on `$.Deferred`'s * interface. New code should use the `RSVP.Promise` constructor instead. @@ -339,32 +339,32 @@ declare namespace RSVP { * * reject - a function that causes the `promise` property on this object to become rejected * * resolve - a function that causes the `promise` property on this object to become fulfilled. */ - export function defer(label?: string): Deferred; + export function defer(label?: string): Deferred; - /** + /** * `RSVP.Promise.reject` returns a promise rejected with the passed `reason`. */ - export function reject(reason: C): Promise; + export function reject(reason: C): Promise; - /** + /** * `RSVP.Promise.resolve` returns a promise that will become resolved with the * passed `value`. */ - export function resolve(value: T): Promise; + export function resolve(value: T): Promise; - /** + /** * `RSVP.filter` is similar to JavaScript's native `filter` method, except that it * waits for all promises to become fulfilled before running the `filterFn` on * each item in given to `promises`. `RSVP.filter` returns a promise that will * become fulfilled with the result of running `filterFn` on the values the * promises become fulfilled with. */ - export function filter( - promises: Thenable[], - filterFn: (value: T) => boolean | Promise - ): Promise; + export function filter( + promises: Thenable[], + filterFn: (value: T) => boolean | Promise + ): Promise; - /** + /** * `RSVP.rethrow` will rethrow an error on the next turn of the JavaScript event * loop in order to aid debugging. * @@ -376,7 +376,7 @@ declare namespace RSVP { * or domain/cause uncaught exception in Node. `rethrow` will also throw the * error again so the error can be handled by the promise per the spec. */ - export function rethrow(reason: C): void; + export function rethrow(reason: C): void; } // export default RSVP; From bc930b1b85c4e3efa1c6492beb26de3db93d5824 Mon Sep 17 00:00:00 2001 From: kujon Date: Fri, 11 Aug 2017 15:18:58 +0100 Subject: [PATCH 015/316] Improved typings for the following functions: countBy, keys, sortBy, toPairs, values --- types/ramda/index.d.ts | 12 ++++++------ types/ramda/ramda-tests.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 5a8ea8f332..35167c5f23 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -422,8 +422,8 @@ declare namespace R { * the list. Note that all keys are coerced to strings because of how * JavaScript objects work. */ - countBy(fn: (a: any) => string | number, list: any[]): any; - countBy(fn: (a: any) => string | number): (list: any[]) => any; + countBy(fn: (a: T) => string | number, list: T[]): { [index: string]: number }; + countBy(fn: (a: T) => string | number): (list: T[]) => { [index: string]: number }; /** * Returns a curried equivalent of the provided function. The curried function has two unusual capabilities. @@ -842,7 +842,7 @@ declare namespace R { * Returns a list containing the names of all the enumerable own * properties of the supplied object. */ - keys(x: T): string[]; + keys(x: T): Array; /** * Returns a list containing the names of all the @@ -1587,7 +1587,7 @@ declare namespace R { /** * Sorts the list according to a key generated by the supplied function. */ - sortBy(fn: (a: any) => Ord, list: T[]): T[]; + sortBy(fn: (a: T) => Ord, list: T[]): T[]; sortBy(fn: (a: any) => Ord): (list: T[]) => T[]; /** @@ -1736,7 +1736,7 @@ declare namespace R { * Note that the order of the output array is not guaranteed to be * consistent across different JS platforms. */ - toPairs(obj: { [k: string]: S } | { [k: number]: S } | any): Array<[F, S]>; + toPairs(obj: T): Array<[keyof T, T[keyof T]]>; /** * Converts an object into an array of key, value arrays. @@ -1916,7 +1916,7 @@ declare namespace R { * Note that the order of the output array is not guaranteed across * different JS platforms. */ - values(obj: { [index: string]: T } | any): T[]; + values(obj: T): T[keyof T]; /** * Returns a list of all the properties, including prototype properties, of the supplied diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index b5fe8d0e5a..4c87113f9a 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -1557,7 +1557,7 @@ class Rectangle { }; () => { - const a = R.toPairs({a: 1, b: 2, c: 3}); // => [['a', 1], ['b', 2], ['c', 3]] + const a = R.toPairs({a: 1, b: 2, c: 3}); // => [['a', 1], ['b', 2], ['c', 3]] }; () => { From 6abc4252e1672f1b125e54886cd6842e9b036809 Mon Sep 17 00:00:00 2001 From: Deyan Kamburov Date: Fri, 11 Aug 2017 18:24:03 +0300 Subject: [PATCH 016/316] Update ignite-ui typings --- types/ignite-ui/index.d.ts | 38492 ++++++++++++++++++++++------------- 1 file changed, 24578 insertions(+), 13914 deletions(-) diff --git a/types/ignite-ui/index.d.ts b/types/ignite-ui/index.d.ts index d93cb1f9e6..b35e20a39b 100644 --- a/types/ignite-ui/index.d.ts +++ b/types/ignite-ui/index.d.ts @@ -4,6 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface DataSourceSettingsPaging { + /** * Paging is not enabled by default * @@ -57,6 +58,7 @@ interface DataSourceSettingsPaging { } interface DataSourceSettingsFiltering { + /** * Filtering type. * @@ -127,6 +129,7 @@ interface DataSourceSettingsFiltering { } interface DataSourceSettingsSorting { + /** * Sorting direction * @@ -221,12 +224,53 @@ interface DataSourceSettingsSorting { } interface DataSourceSettingsGroupby { + /** * Default collapse state * */ defaultCollapseState?: boolean; + /** + * The name of the property that determines whether a record from the group data view is a group record. + * + */ + groupRecordKey?: string; + + /** + * The name of the property that determines whether a record from the group data view is a summary group record. + * + */ + groupSummaryRecordKey?: string; + + /** + * Array of objects containing the summaries for each field. + * Each summary object has the following format { field:"fieldName", summaryFunctions: [] }, where the summaryFunctions arrays can contain either a summary name (avg, sum, count etc.) or a custom function for caclulating a custom summary. + * + */ + summaries?: any[]; + + /** + * Specifies the postion for the summaries for each field inside each group. + * + * + * Valid values: + * "top" One summary row will be displayed at the top for each group + * "bottom" One summary row will be displayed at the bottom for each group + * "both" Two summary rows will be be display for each group. One on the top and one on the bottom. + */ + summariesPosition?: string; + + /** + * . Specifies how paging should be applied when there is at least one grouped column + * + * + * Valid values: + * "allRecords" Paging is applied for all records - data and non-data records(like group-by records) + * "dataRecordsOnly" Paging is applied ONLY for data records. Non-data records are disregarded in paging calculations. + */ + pagingMode?: string; + /** * Option for DataSourceSettingsGroupby */ @@ -234,6 +278,7 @@ interface DataSourceSettingsGroupby { } interface DataSourceSettingsSummaries { + /** * Specifies whether summaries will be applied locally or remotely (via a remote request) * @@ -280,6 +325,7 @@ interface DataSourceSettingsSummaries { } interface DataSourceSettings { + /** * Setting this is only necessary when the data source is set to a table in string format. we need to create an invisible dummy data container in the body and append the table data to it * @@ -531,479 +577,501 @@ interface DataSourceSettings { } declare namespace Infragistics { - class DataSource { - constructor(settings: DataSourceSettings); +export class DataSource { + constructor(settings: DataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { DataSource: typeof Infragistics.DataSource; } declare namespace Infragistics { - class TypeParser { - toStr(obj: Object): void; +export class TypeParser { + toStr(obj: Object): void; - /** - * L.A. 18 June 2012 Fixing bug #113265 Column 'date' shows empty values as 'NaN' - * - * @param obj - * @param pk - * @param key - */ - toDate(obj: Object, pk: Object, key: Object): void; - toNumber(obj: Object): void; - toBool(obj: Object): void; - isNullOrUndefined(obj: Object): void; - empty(): void; - num(): void; - } + /** + * L.A. 18 June 2012 Fixing bug #113265 Column 'date' shows empty values as 'NaN' + * + * @param obj + */ + toDate(obj: Object): void; + toNumber(obj: Object): void; + toBool(obj: Object): void; + isNullOrUndefined(obj: Object): void; + empty(): void; + num(): void; +} } interface DataSchemaSchemaFields { + /** * Name of the field */ @@ -1029,6 +1097,11 @@ interface DataSchemaSchemaFields { */ mapper?: string|Function; + /** + * ParamType="function" optional="true" formatter function which accepts three parameters: val - value of the field; record - data source record; field - field definition; and return the formatted string. Formatter function is used when filtering by all fields. + */ + formatter?: any; + /** * Option for DataSchemaSchemaFields */ @@ -1036,6 +1109,7 @@ interface DataSchemaSchemaFields { } interface DataSchemaSchema { + /** * A list of field definitions specifying the schema of the data source. Field objects description: {name, [type], [xpath]} * returnType="array" @@ -1059,948 +1133,1012 @@ interface DataSchemaSchema { } declare namespace Infragistics { - class DataSchema { - constructor(schema: DataSchemaSchema); +export class DataSchema { + constructor(schema: DataSchemaSchema); - /** - * Performs a transformation on the schema so that the resulting data matches the schema - * - * @param data the data to transform - */ - transform(data: Object): Object; + /** + * Performs a transformation on the schema so that the resulting data matches the schema + * + * @param data the data to transform + */ + transform(data: Object): Object; - /** - * Specifies if the object is null, undefined, or an empty string - * - * @param o the object to check for being empty - */ - isEmpty(o: Object): Object; + /** + * Specifies if the object is null, undefined, or an empty string + * + * @param o the object to check for being empty + */ + isEmpty(o: Object): Object; - /** - * Specifies if the object has custom properties or not - * - * @param obj the object to check for presence or lack of custom properties - */ - isObjEmpty(obj: Object): Object; + /** + * Specifies if the object has custom properties or not + * + * @param obj the object to check for presence or lack of custom properties + */ + isObjEmpty(obj: Object): Object; - /** - * A list of field definitions specifying the schema of the data source. - * Field objects description: {fieldName, [fieldDataType], [fieldXPath]} - */ - fields(): any[]; - } + /** + * A list of field definitions specifying the schema of the data source. + * Field objects description: {fieldName, [fieldDataType], [fieldXPath]} + */ + fields(): any[]; +} } interface IgniteUIStatic { DataSchema: typeof Infragistics.DataSchema; } declare namespace Infragistics { - class RemoteDataSource { - constructor(settings: DataSourceSettings); +export class RemoteDataSource { + constructor(settings: DataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { RemoteDataSource: typeof Infragistics.RemoteDataSource; } +interface JSONDataSourceSettings { + + /** + * Type of the data source. + */ + type?: string; + + /** + * Option for JSONDataSourceSettings + */ + [optionName: string]: any; +} + declare namespace Infragistics { - class JSONDataSource { - constructor(settings: DataSourceSettings); +export class JSONDataSource { + constructor(settings: JSONDataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { JSONDataSource: typeof Infragistics.JSONDataSource; } interface RESTDataSourceSettingsRestSettingsCreate { + /** * Specifies a remote URL to which create requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -2023,6 +2161,7 @@ interface RESTDataSourceSettingsRestSettingsCreate { } interface RESTDataSourceSettingsRestSettingsUpdate { + /** * Specifies a remote URL to which update requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -2045,6 +2184,7 @@ interface RESTDataSourceSettingsRestSettingsUpdate { } interface RESTDataSourceSettingsRestSettingsRemove { + /** * Specifies a remote URL to which remove requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -2067,6 +2207,7 @@ interface RESTDataSourceSettingsRestSettingsRemove { } interface RESTDataSourceSettingsRestSettings { + /** * Settings for create requests */ @@ -2104,6 +2245,7 @@ interface RESTDataSourceSettingsRestSettings { } interface RESTDataSourceSettings { + /** * Settings related to REST compliant update routine */ @@ -2116,459 +2258,485 @@ interface RESTDataSourceSettings { } declare namespace Infragistics { - class RESTDataSource { - constructor(settings: RESTDataSourceSettings); +export class RESTDataSource { + constructor(settings: RESTDataSourceSettings); - /** - * Posts to the restSettings urls using $.ajax, by serializing the changes as url params. - * - * @param success - * @param error - */ - saveChanges(success: Object, error: Object): void; + /** + * Posts to the restSettings urls using $.ajax, by serializing the changes as url params. + * + * @param success + * @param error + */ + saveChanges(success: Object, error: Object): void; - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { RESTDataSource: typeof Infragistics.RESTDataSource; } interface JSONPDataSourceSettings { + /** * Override the callback function name in a jsonp request. Sets option jsonp in $.ajax functionbool Setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation * @@ -2580,6 +2748,11 @@ interface JSONPDataSourceSettings { */ jsonpCallback?: string|Function; + /** + * Type of the data source. + */ + type?: string; + /** * Option for JSONPDataSourceSettings */ @@ -2587,2271 +2760,2423 @@ interface JSONPDataSourceSettings { } declare namespace Infragistics { - class JSONPDataSource { - constructor(settings: JSONPDataSourceSettings); +export class JSONPDataSource { + constructor(settings: JSONPDataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { JSONPDataSource: typeof Infragistics.JSONPDataSource; } declare namespace Infragistics { - class XmlDataSource { - constructor(settings: DataSourceSettings); +export class XmlDataSource { + constructor(settings: DataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { XmlDataSource: typeof Infragistics.XmlDataSource; } +interface FunctionDataSourceSettings { + + /** + * Type of the data source. + */ + type?: string; + + /** + * Option for FunctionDataSourceSettings + */ + [optionName: string]: any; +} + declare namespace Infragistics { - class FunctionDataSource { - constructor(settings: DataSourceSettings); +export class FunctionDataSource { + constructor(settings: FunctionDataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { FunctionDataSource: typeof Infragistics.FunctionDataSource; } +interface HtmlTableDataSourceSettings { + + /** + * Type of the data source. + */ + type?: string; + + /** + * Option for HtmlTableDataSourceSettings + */ + [optionName: string]: any; +} + declare namespace Infragistics { - class HtmlTableDataSource { - constructor(settings: DataSourceSettings); +export class HtmlTableDataSource { + constructor(settings: HtmlTableDataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { HtmlTableDataSource: typeof Infragistics.HtmlTableDataSource; } declare namespace Infragistics { - class ArrayDataSource { - constructor(settings: DataSourceSettings); +export class ArrayDataSource { + constructor(settings: DataSourceSettings); - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object tree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { ArrayDataSource: typeof Infragistics.ArrayDataSource; } interface MashupDataSourceMashupSettings { + /** * Indicates whether to ignore records that have no corresponding data in all of the provided data sources. */ @@ -4869,443 +5194,469 @@ interface MashupDataSourceMashupSettings { } declare namespace Infragistics { - class MashupDataSource { - constructor(mashupSettings: MashupDataSourceMashupSettings); - constructor(settings: DataSourceSettings); +export class MashupDataSource { + constructor(mashupSettings: MashupDataSourceMashupSettings); + constructor(settings: DataSourceSettings); - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - /** - * Data binds to the current data source. - */ - dataBind(): void; + /** + * Data binds to the current data source. + */ + dataBind(): void; - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; - /** - * Returns summaries data - */ - dataSummaries(): Object; + /** + * Returns summaries data + */ + dataSummaries(): Object; - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource - */ - findRecordByKey(key: string, ds?: string, objPath?: string): Object; + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource + */ + findRecordByKey(key: string, ds?: string, objPath?: string): Object; - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; - /** - * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; + /** + * Sorts the data source locally. The result (filtered data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and - * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalFilter(): void; + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and + * setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * example 3: [{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * + * @param fieldExpressions {filterAllFields: , expr: , fields: } + * + * ``` + * ds = new $.%%WidgetName%%({ + * type: "json", + * dataSource: adventureWorks, + * schema: jsonSchema + * }); + * ds.dataBind(); + * + * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); + * + * // Filter by text + * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); + * ``` + * + * @param boolLogic a list of field expression definitions + * @param keepFilterState boolean logic. Accepted values are AND and OR. + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + */ + filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalFilter(): void; - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; - /** - * Returns the total number of pages - */ - pageCount(): number; + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; + /** + * Returns the total number of pages + */ + pageCount(): number; - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { MashupDataSource: typeof Infragistics.MashupDataSource; } interface HierarchicalDataSourceSettingsPaging { + /** * Option for HierarchicalDataSourceSettingsPaging */ @@ -5313,6 +5664,7 @@ interface HierarchicalDataSourceSettingsPaging { } interface HierarchicalDataSourceSettingsSorting { + /** * Option for HierarchicalDataSourceSettingsSorting */ @@ -5320,6 +5672,7 @@ interface HierarchicalDataSourceSettingsSorting { } interface HierarchicalDataSourceSettingsFiltering { + /** * Option for HierarchicalDataSourceSettingsFiltering */ @@ -5327,6 +5680,7 @@ interface HierarchicalDataSourceSettingsFiltering { } interface HierarchicalDataSourceSettingsSchema { + /** * Option for HierarchicalDataSourceSettingsSchema */ @@ -5373,18 +5727,19 @@ interface HierarchicalDataSourceSettings { } declare namespace Infragistics { - class HierarchicalDataSource { - constructor(settings: HierarchicalDataSourceSettings); - dataBind(callback: Object, callee: Object): void; - root(): void; - dataAt(path: Object, keyspath: Object): void; - } +export class HierarchicalDataSource { + constructor(settings: HierarchicalDataSourceSettings); + dataBind(callback: Object, callee: Object): void; + root(): void; + dataAt(path: Object, keyspath: Object): void; +} } interface IgniteUIStatic { HierarchicalDataSource: typeof Infragistics.HierarchicalDataSource; } interface TreeHierarchicalDataSourceSettingsTreeDSFiltering { + /** * Specifies from which data bound level to be applied filtering - 0 is the first level */ @@ -5412,6 +5767,7 @@ interface TreeHierarchicalDataSourceSettingsTreeDSFiltering { } interface TreeHierarchicalDataSourceSettingsTreeDSSorting { + /** * Specifies from which data bound level to be applied sorting - 0 is the first level */ @@ -5429,6 +5785,7 @@ interface TreeHierarchicalDataSourceSettingsTreeDSSorting { } interface TreeHierarchicalDataSourceSettingsTreeDSPaging { + /** * Sets gets paging mode. * @@ -5455,6 +5812,7 @@ interface TreeHierarchicalDataSourceSettingsTreeDSPaging { } interface TreeHierarchicalDataSourceSettingsTreeDS { + /** * Property name of the array of child data in a hierarchical data source. */ @@ -5496,15 +5854,27 @@ interface TreeHierarchicalDataSourceSettingsTreeDS { requestDataErrorCallback?: Function; /** + * *** IMPORTANT DEPRECATED *** Use the expandedKey option instead. * The name of the property that keeps track of the expansion state of a data item. Defaults to __ig_options.expanded. */ propertyExpanded?: string; /** + * *** IMPORTANT DEPRECATED *** Use the dataLevelKey option instead. * The name of the property that keeps track of the level in the hierarchy.Defaults to __ig_options.dataLevel. */ propertyDataLevel?: string; + /** + * The name of the property that keeps track of the expansion state of a data item. Defaults to __ig_options.expanded. + */ + expandedKey?: string; + + /** + * The name of the property that keeps track of the level in the hierarchy.Defaults to __ig_options.dataLevel. + */ + dataLevelKey?: string; + /** * If set to TRUE it is expected that the source of data is normalized and transformed(has set dataLevel and expansion state). The source of data is used as flatDataView. Usually used when the paging is remote and paging mode is allLevels, or features are remote(and the processing of the returned result should be made on the server) * @@ -5545,6 +5915,7 @@ interface TreeHierarchicalDataSourceSettingsTreeDS { } interface TreeHierarchicalDataSourceSettings { + /** * Configure tree datasource specific settings */ @@ -5557,643 +5928,651 @@ interface TreeHierarchicalDataSourceSettings { } declare namespace Infragistics { - class TreeHierarchicalDataSource { - constructor(settings: TreeHierarchicalDataSourceSettings); - - /** - * Data binds to the current data source - * databinding works using the following workflow: - * 1. fire the databinding event - * 2. based on the data source type (see analyzeDataSource()), do the following: - * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. - * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting - * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. - * if no paging/sorting/filtering are enabled, use just this._data to save space - * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL - * if the data source is invalid, throw an exception - * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if - * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object ree - * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion - * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView - * 6. fire the databound event - * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context - */ - dataBind(callback?: string, callee?: Object): void; - - /** - * Gets the passed record's parent records - * - * @param dataRow the child record. - * @param ds the data source in which to search for the related parent records. - */ - getParentRowsForRow(dataRow: Object, ds?: Object): Object; - - /** - * Gets the current data bound depth of the tree grid hierarchy. - */ - getDataBoundDepth(): void; - - /** - * Gets/Sets whether the data source has been transformed from flat to hierarchical - * - * @param isTransformed Determines if the data source is marked as transformed or not. - */ - isTransformedToHierarchicalData(isTransformed?: boolean): void; - - /** - * Transforms flat data to hierararchical data and returns the result - * - * @param data The flat data that will be transformed to hierarchical - */ - transformToHierarchicalData(data: Object): Object; - - /** - * This processes the passed data for the specified level and applies the schema transformation to it. - * - * @param data The data to be processed and transformed - * @param level The level to which the data belongs to. If this is not set it defaults to 0. - * @param suppressTransformation Determines whether the data should go through schema transformation. If true schema transofrmatin will not be applied. - */ - processDataPerLevel(data: Object, level?: number, suppressTransformation?: boolean): Object; - - /** - * Returnschild data transformed to flat data - * - * @param record The data record whose data is transformed and returned as flat - * @param level The level. If not set defaults to 0. - */ - getFlatDataForRecord(record: Object, level?: number): Object; - - /** - * Generates flat data. - * Returns an object that contains the generated flat data, the flat visible data, records count and visible records count. - * - * @param data The data record whose data is transformed. - * @param level The level from which to start recursively generating the flat data. If not set defaults to 0. - */ - generateFlatData(data: Object, level?: number): Object; - - /** - * Generates a flat data view from the current (hierarchical)data - */ - generateFlatDataView(): void; - - /** - * Returns the current flat data view - */ - flatDataView(): Object; - - /** - * Returns flat visible data. - */ - getVisibleFlatData(): Object; - - /** - * Returns flat data(without taking into account visible/expansion state). - */ - getFlatData(): Object; - - /** - * Returns total records count(without taking into account visible/expansion state). - */ - getFlatDataCount(): number; - - /** - * Sets the expanded/collapsed state of a row by its index - * - * @param index The index of the row. - * @param expanded If true then the row will be expanded. Otherwise it will be collapsed. - * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. - */ - setExpandedStateByRowIndex(index: number, expanded: boolean, callbackArgs: Function): void; - - /** - * Sets the expanded state of a row by its primary key - * - * @param rowId The id of the row. - * @param expanded If true the row will be expanded. Otherwise it will be collapsed. - * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. - */ - setExpandedStateByPrimaryKey(rowId: string, expanded: boolean, callbackArgs: Function): void; - - /** - * Gets whether the row with the specified id is expanded.Returns true if the row is expanded or false if it's not. - * - * @param rowId //The id of the row. - */ - getExpandStateById(rowId: string): boolean; - - /** - * Toggles the row's state by the row's id. - * - * @param rowId The id of the row. - * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. - */ - toggleRow(rowId: string, callbackArgs: Function): void; - - /** - * Sorts the data source locally. The result (sorted data) can be obtained by calling dataView(). - * Remote filtering can be performed by just calling dataBind() and setting the settings.sorting.expressions - * multi-column sorting can be enabled by setting keepSortState to true. - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sort(fields: Object, direction: string): void; - - /** - * Sorts the given data recursively - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param data the data array that will be sorted. - * @param level the level to which the data belongs to - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sortDataRecursive(data: Object, level: number, fields: Object, direction: string): void; - - /** - * Sorts the passed data and returns the sorted result. - * - * @param data the data to be sorted - * - * fields => an array of fields object definitions: - * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] - * - * @param fields an array of fields object definitions - * @param direction asc / desc direction - */ - sortData(data: Object, fields: Object, direction: string): void; - - /** - * Returns the total number of records in the local data source - */ - totalLocalRecordsCount(): number; - - /** - * Returns the total number of pages - */ - pageCount(): number; - - /** - * Returns the total number of match filtering records in the data source. - * When the dataSource is remote and filtering is applied then it is taken value - * of property "filtering.countRecords" in metatadata - if set. If it is not set returns totalRecordsCount - */ - getFilteringMatchRecordsCount(): number; - - /** - * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() - * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] - * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] - * expr is the filter expression text , such as "abc", or a regular expression such as *test* - * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain - * if expr is detected to be a regular expression, the "cond" part is skipped - * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions - * @param fieldExpressionsOnStrings - */ - filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; - - /** - * Gets the count of the filtered records in the dataView - */ - getFilteredRecordsCountFromDataView(): number; - - /** - * Gets the count of the filtered records - */ - getFilteredRecordsCount(): number; - - /** - * This clears local filtering applied to the data view by resetting it to the original data and applying any paging. - */ - clearLocalFilter(): void; - - /** - * Gets whether the flat data view should be generated by calling the generateFlatDataView method. - */ - shouldCallGenerateFlatDataView(): void; - - /** - * Clears __matchFiltering property from the data record objects in the filtered data source. The __matchFiltering property determines whether a record matches the specified filtering condition. - * - * @param data the array of data objects to be cleared. If not set the current filtered data array is used. - */ - clearMatchFiltering(data?: Object): void; - - /** - * Gets the path of a record by the record or the record's key - * - * @param record the record or the record's key as string or number - */ - getPathBy(record: Object): void; - - /** - * Returns a record by a specified key (requires that primaryKey is set in the settings) - * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath path to the object. Example: {path: '5/1'} - */ - findRecordByKey(key: Object, ds?: string, objPath?: Object): Object; - - /** - * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source - * - * @param key primary key of the record - * @param origDs - */ - removeRecordByKey(key: Object, origDs: Object): void; - - /** - * Deletes a row from the data source. - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - deleteRow(rowId: Object, autoCommit: boolean): Object; - - /** - * Gets the chilren records by the parent record's key in the passed data source - * - * @param key primary key of the record - * @param ds the data source - */ - getChildrenByKey(key: Object, ds: Object): Object; - - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to be insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId the value of the primary key of the parent row(if any) - */ - insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; - - /** - * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields - * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } - */ - fields(fields?: Object): Object; - - /** - * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type - */ - analyzeDataSource(): string; - - /** - * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView - */ - dataView(): any[]; - - /** - * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. - */ - data(): Object; - - /** - * Returns transformed data according to transformed execution: - * 1. Before paging and filtering - * 2. After filtering before paging - * 3. After filtering and paging - * - * @param transformedExecution - */ - transformedData(transformedExecution: Object): Object; - - /** - * Returns summaries data - */ - dataSummaries(): Object; - - /** - * Gets/sets the schema definition. - * - * @param s a schema object - * @param t type of the data source. See settings.type - */ - schema(s?: Object, t?: string): void; - - /** - * Gets/sets a list of paging settings - * - * @param p object holding all paging settings. See settings.paging - */ - pagingSettings(p?: Object): Object; - - /** - * Gets/sets a list of filtering settings - * - * @param f object holding all filtering settings. See settings.filtering - */ - filterSettings(f?: Object): void; - - /** - * Gets/sets a list of paging settings - * - * @param s object holding all sorting settings. See settings.sorting - */ - sortSettings(s?: Object): Object; - - /** - * Gets/sets a list of summaries settings. - * - * @param s object holding all summaries settings. See settings.summaries - */ - summariesSettings(s?: Object): void; - - /** - * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource - * - * @param ds - */ - dataSource(ds?: Object): Object; - - /** - * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type - * - * @param t - * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty - */ - type(t?: Object): string; - - /** - * Removes a record from the data source at specific index. - * - * @param index index of record - * @param origDs - */ - removeRecordByIndex(index: number, origDs: Object): void; - - /** - * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it - * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log - */ - setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; - - /** - * Updates a record in the datasource. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - - /** - * Adds a new row to the data source. Creates a transaction that can be committed / rolled back - * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - */ - addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; - - /** - * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - addNode(data: Object): void; - - /** - * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back - * - * @param data the transaction data - */ - removeNode(data: Object): void; - - /** - * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source - * - * @param t a transaction object - */ - getDetachedRecord(t: Object): Object; - - /** - * Update the data source with every transaction from the log - * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. - */ - commit(id?: number): void; - - /** - * Clears the transaction log without updating anything in the data source - * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. - */ - rollback(id?: Object): void; - - /** - * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source - */ - pendingTransactions(): any[]; - - /** - * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - */ - allTransactions(): any[]; - - /** - * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently - */ - transactionsAsString(): string; - - /** - * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params - * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) - */ - saveChanges(success: Function, error: Function): void; - - /** - * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. - * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it - */ - getCellValue(fieldName: string, record: Object): Object; - - /** - * Applicable only when the data source is bound to remote data. - * Gets or sets summaries data. - * If key or dsObj are not set then returns summaries data. - * Takes summary data from passed argument dsObj(using argument key) - * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) - */ - summariesResponse(key?: string, dsObj?: Object): Object; - - /** - * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. - */ - filteredData(): any[]; - - /** - * This clears local sorting applied to the data view by resetting it to the original data and applying any paging - */ - clearLocalSorting(): void; - - /** - * Applicable only when the data source is bound to remote data. - * Gets / sets the total number of records in the data source. - * If data binding is remote, and there's paging or filtering enabled, - * the actual total number of records may not - * match the number of records that exists on the client - * - * @param count the total number of records - * @param key - * @param dsObj - * @param context - */ - totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; - - /** - * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend - * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend - */ - hasTotalRecordsCount(hasCount: boolean): void; - - /** - * Returns metadata object for the specified key - * - * @param key Primary key of the record - */ - metadata(key: string): Object; - - /** - * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. - * - * @param index the page index. If none is specified, returns the current page index. - */ - pageIndex(index?: number): number; - - /** - * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. - * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. - */ - persistedPageIndex(value?: number): number; - - /** - * Sets the page index to be equal to the previous page index and rebinds the data source - */ - prevPage(): void; - - /** - * Sets the page index to be equal to the next page index and rebinds the data source - */ - nextPage(): void; - - /** - * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size - * - * @param s the page size. - */ - pageSize(s?: number): number; - - /** - * For internal use - * - * @param dirty - */ - pageSizeDirty(dirty: Object): void; - - /** - * Returns a list of records for the specified page. Implies that paging is enabled. - * - * @param p the page index for which records will be returned - */ - recordsForPage(p: number): void; - - /** - * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data - * - * @param tableDOM TABLE dom element to transform - */ - tableToObject(tableDOM: Element): Object; - - /** - * Parses the string and returns an evaluated JSON object - * - * @param s the JSON as string. - */ - stringToJSONObject(s: string): void; - - /** - * Parses a string and returns a XML Document - * - * @param s the XML represented as a string - */ - stringToXmlObject(s: string): void; - - /** - * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data - */ - groupByData(): any[]; - - /** - * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) - */ - visibleGroupByData(): any[]; - - /** - * Returns the current normalized/transformed and paged/filtered/sorted group-by data - */ - groupByDataView(): any[]; - - /** - * Toggle grouped record with the specified id and updates collections visible groupby data and data view - * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded - */ - toggleGroupByRecord(id: string, collapsed: boolean): void; - - /** - * Check whether the specified gorupby record is collapsed - * - * @param gbRec id of the grouped record OR grouped record - */ - isGroupByRecordCollapsed(gbRec: Object): boolean; - - /** - * Check whether grouping is applied for the specified sorting expressions. - * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings - */ - isGroupByApplied(exprs?: any[]): boolean; - } +export class TreeHierarchicalDataSource { + constructor(settings: TreeHierarchicalDataSourceSettings); + + /** + * Data binds to the current data source + * databinding works using the following workflow: + * 1. fire the databinding event + * 2. based on the data source type (see analyzeDataSource()), do the following: + * 3. if type is HtmlTable, parse the table and set the data and dataView respectively. + * if the type is Function, call it, apply Paging/Filtering/Sorting, and set this._dataView . If the developer wants to do his own paging, filtering or sorting + * in that case, then he should handle the PageIndexChanging and/or DataFiltering, and/or ColumnSorting client-side events, and cancel them. + * if no paging/sorting/filtering are enabled, use just this._data to save space + * if the data source is of type RemoteUrl, use jQuery's $.ajax API to trigger a remote request to the service. Use the param() API to encode the URL + * if the data source is invalid, throw an exception + * if the analyzed runtime data source type , that is, the result of analyzeDataSource(), is Unknown, check if + * the value of settings.type is set to XML or JSON. If string, eval for JSON, and parse for the XML to build the object ree + * 4. now normalize/transform the data, if a schema is supplied. This inplies any additional data type conversion + * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView + * 6. fire the databound event + * + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + */ + dataBind(callback?: string, callee?: Object): void; + + /** + * Gets the passed record's parent records + * + * @param dataRow the child record. + * @param ds the data source in which to search for the related parent records. + */ + getParentRowsForRow(dataRow: Object, ds?: Object): Object; + + /** + * Gets the current data bound depth of the tree grid hierarchy. + */ + getDataBoundDepth(): void; + + /** + * Gets/Sets whether the data source has been transformed from flat to hierarchical + * + * @param isTransformed Determines if the data source is marked as transformed or not. + */ + isTransformedToHierarchicalData(isTransformed?: boolean): void; + + /** + * Transforms flat data to hierararchical data and returns the result + * + * @param data The flat data that will be transformed to hierarchical + */ + transformToHierarchicalData(data: Object): Object; + + /** + * This processes the passed data for the specified level and applies the schema transformation to it. + * + * @param data The data to be processed and transformed + * @param level The level to which the data belongs to. If this is not set it defaults to 0. + * @param suppressTransformation Determines whether the data should go through schema transformation. If true schema transofrmatin will not be applied. + */ + processDataPerLevel(data: Object, level?: number, suppressTransformation?: boolean): Object; + + /** + * Returnschild data transformed to flat data + * + * @param record The data record whose data is transformed and returned as flat + * @param level The level. If not set defaults to 0. + */ + getFlatDataForRecord(record: Object, level?: number): Object; + + /** + * Generates flat data. + * Returns an object that contains the generated flat data, the flat visible data, records count and visible records count. + * + * @param data The data record whose data is transformed. + * @param level The level from which to start recursively generating the flat data. If not set defaults to 0. + */ + generateFlatData(data: Object, level?: number): Object; + + /** + * Generates a flat data view from the current (hierarchical)data + */ + generateFlatDataView(): void; + + /** + * Returns the current flat data view + */ + flatDataView(): Object; + + /** + * Returns flat visible data. + */ + getVisibleFlatData(): Object; + + /** + * Returns flat data(without taking into account visible/expansion state). + */ + getFlatData(): Object; + + /** + * Returns total records count(without taking into account visible/expansion state). + */ + getFlatDataCount(): number; + + /** + * Sets the expanded/collapsed state of a row by its index + * + * @param index The index of the row. + * @param expanded If true then the row will be expanded. Otherwise it will be collapsed. + * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. + */ + setExpandedStateByRowIndex(index: number, expanded: boolean, callbackArgs: Function): void; + + /** + * Sets the expanded state of a row by its primary key + * + * @param rowId The id of the row. + * @param expanded If true the row will be expanded. Otherwise it will be collapsed. + * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. + */ + setExpandedStateByPrimaryKey(rowId: string, expanded: boolean, callbackArgs: Function): void; + + /** + * Gets whether the row with the specified id is expanded.Returns true if the row is expanded or false if it's not. + * + * @param rowId //The id of the row. + */ + getExpandStateById(rowId: string): boolean; + + /** + * Toggles the row's state by the row's id. + * + * @param rowId The id of the row. + * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. + */ + toggleRow(rowId: string, callbackArgs: Function): void; + + /** + * Sorts the data source locally. The result (sorted data) can be obtained by calling dataView(). + * Remote filtering can be performed by just calling dataBind() and setting the settings.sorting.expressions + * multi-column sorting can be enabled by setting keepSortState to true. + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sort(fields: Object, direction: string): void; + + /** + * Sorts the given data recursively + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param data the data array that will be sorted. + * @param level the level to which the data belongs to + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sortDataRecursive(data: Object, level: number, fields: Object, direction: string): void; + + /** + * Sorts the passed data and returns the sorted result. + * + * @param data the data to be sorted + * + * fields => an array of fields object definitions: + * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] + * + * @param fields an array of fields object definitions + * @param direction asc / desc direction + */ + sortData(data: Object, fields: Object, direction: string): void; + + /** + * Returns the total number of records in the local data source + */ + totalLocalRecordsCount(): number; + + /** + * Returns the total number of pages + */ + pageCount(): number; + + /** + * Returns the total number of match filtering records in the data source. + * When the dataSource is remote and filtering is applied then it is taken value + * of property "filtering.countRecords" in metatadata - if set. If it is not set returns totalRecordsCount + */ + getFilteringMatchRecordsCount(): number; + + /** + * Filters the data source locally. Remote filtering can be performed by just calling dataBind() and setting the settings.filtering.expressions. The result (filtered data) can be obtained by calling dataView() + * example: [{fieldName : "firstName", expr: "abc", cond: "StartsWith"}, {fieldName : "lastName"}] + * example 2: [{fieldIndex : 1} , {fieldIndex : 2, expr: "a", cond : "contains"}] + * expr is the filter expression text , such as "abc", or a regular expression such as *test* + * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain + * if expr is detected to be a regular expression, the "cond" part is skipped + * + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings + */ + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; + + /** + * Gets the count of the filtered records in the dataView + */ + getFilteredRecordsCountFromDataView(): number; + + /** + * Gets the count of the filtered records + */ + getFilteredRecordsCount(): number; + + /** + * This clears local filtering applied to the data view by resetting it to the original data and applying any paging. + */ + clearLocalFilter(): void; + + /** + * Gets whether the flat data view should be generated by calling the generateFlatDataView method. + */ + shouldCallGenerateFlatDataView(): void; + + /** + * Clears __matchFiltering property from the data record objects in the filtered data source. The __matchFiltering property determines whether a record matches the specified filtering condition. + * + * @param data the array of data objects to be cleared. If not set the current filtered data array is used. + */ + clearMatchFiltering(data?: Object): void; + + /** + * Gets the path of a record by the record or the record's key + * + * @param record + */ + getPathBy(record: Object): string; + + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings) + * + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath path to the object. Example: {path: '5/1'} + */ + findRecordByKey(key: Object, ds?: string, objPath?: Object): Object; + + /** + * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source + * + * @param key primary key of the record + * @param origDs + */ + removeRecordByKey(key: Object, origDs: Object): void; + + /** + * Deletes a row from the data source. + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + deleteRow(rowId: Object, autoCommit: boolean): Object; + + /** + * Gets the chilren records by the parent record's key in the passed data source + * + * @param key primary key of the record + * @param ds the data source + */ + getChildrenByKey(key: Object, ds: Object): Object; + + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to be insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId the value of the primary key of the parent row(if any) + */ + insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; + + /** + * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields + * + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + */ + fields(fields?: Object): Object; + + /** + * Analyzes the dataSource setting to automatically determine the type of the data source. Returns the data source type. See settings.type + */ + analyzeDataSource(): string; + + /** + * Returns the current normalized/transformed and paged/filtered/sorted data, i.e. the dataView + */ + dataView(): any[]; + + /** + * Returns all of the bound data, without taking into account local paging, sorting, filtering, etc. + */ + data(): Object; + + /** + * Returns transformed data according to transformed execution: + * 1. Before paging and filtering + * 2. After filtering before paging + * 3. After filtering and paging + * + * @param transformedExecution + */ + transformedData(transformedExecution: Object): Object; + + /** + * Returns summaries data + */ + dataSummaries(): Object; + + /** + * Gets/sets the schema definition. + * + * @param s a schema object + * @param t type of the data source. See settings.type + */ + schema(s?: Object, t?: string): void; + + /** + * Gets/sets a list of paging settings + * + * @param p object holding all paging settings. See settings.paging + */ + pagingSettings(p?: Object): Object; + + /** + * Gets/sets a list of filtering settings + * + * @param f object holding all filtering settings. See settings.filtering + */ + filterSettings(f?: Object): void; + + /** + * Gets/sets a list of paging settings + * + * @param s object holding all sorting settings. See settings.sorting + */ + sortSettings(s?: Object): Object; + + /** + * Gets/sets a list of summaries settings. + * + * @param s object holding all summaries settings. See settings.summaries + */ + summariesSettings(s?: Object): void; + + /** + * Gets/sets the dataSource setting. If no parameter is specified, returns settings.dataSource + * + * @param ds + */ + dataSource(ds?: Object): Object; + + /** + * Gets/sets the type of the dataSource. If no parameter is specified, returns settings.type + * + * @param t + * @return json|xml|unknown|array|function|htmlTableString|htmlTableId|htmlTableDom|invalid|remoteUrl|empty + */ + type(t?: Object): string; + + /** + * Removes a record from the data source at specific index. + * + * @param index index of record + * @param origDs + */ + removeRecordByIndex(index: number, origDs: Object): void; + + /** + * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it + * + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + */ + setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; + + /** + * Updates a record in the datasource. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + + /** + * Adds a new row to the data source. Creates a transaction that can be committed / rolled back + * + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + */ + addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; + + /** + * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + addNode(data: Object): void; + + /** + * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back + * + * @param data the transaction data + */ + removeNode(data: Object): void; + + /** + * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source + * + * @param t a transaction object + */ + getDetachedRecord(t: Object): Object; + + /** + * Update the data source with every transaction from the log + * + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + */ + commit(id?: number): void; + + /** + * Clears the transaction log without updating anything in the data source + * + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + */ + rollback(id?: Object): void; + + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source + */ + pendingTransactions(): any[]; + + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + */ + allTransactions(): any[]; + + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently + */ + transactionsAsString(): string; + + /** + * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; + + /** + * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. + * + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it + */ + getCellValue(fieldName: string, record: Object): Object; + + /** + * Applicable only when the data source is bound to remote data. + * Gets or sets summaries data. + * If key or dsObj are not set then returns summaries data. + * Takes summary data from passed argument dsObj(using argument key) + * + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + */ + summariesResponse(key?: string, dsObj?: Object): Object; + + /** + * Returns filtered data if local filtering is applied. If filtering is not applied OR type of filtering is remote returns undefined. + */ + filteredData(): any[]; + + /** + * This clears local sorting applied to the data view by resetting it to the original data and applying any paging + */ + clearLocalSorting(): void; + + /** + * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. + * + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. + */ + filterByText(expression: string, fields?: any[]): void; + + /** + * Applicable only when the data source is bound to remote data. + * Gets / sets the total number of records in the data source. + * If data binding is remote, and there's paging or filtering enabled, + * the actual total number of records may not + * match the number of records that exists on the client + * + * @param count the total number of records + * @param key + * @param dsObj + * @param context + */ + totalRecordsCount(count?: number, key?: Object, dsObj?: Object, context?: Object): number; + + /** + * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend + * + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + */ + hasTotalRecordsCount(hasCount: boolean): void; + + /** + * Returns metadata object for the specified key + * + * @param key Primary key of the record + */ + metadata(key: string): Object; + + /** + * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. + * + * @param index the page index. If none is specified, returns the current page index. + */ + pageIndex(index?: number): number; + + /** + * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. + * + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + */ + persistedPageIndex(value?: number): number; + + /** + * Sets the page index to be equal to the previous page index and rebinds the data source + */ + prevPage(): void; + + /** + * Sets the page index to be equal to the next page index and rebinds the data source + */ + nextPage(): void; + + /** + * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size + * + * @param s the page size. + */ + pageSize(s?: number): number; + + /** + * For internal use + * + * @param dirty + */ + pageSizeDirty(dirty: Object): void; + + /** + * Returns a list of records for the specified page. Implies that paging is enabled. + * + * @param p the page index for which records will be returned + */ + recordsForPage(p: number): void; + + /** + * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data + * + * @param tableDOM TABLE dom element to transform + */ + tableToObject(tableDOM: Element): Object; + + /** + * Parses the string and returns an evaluated JSON object + * + * @param s the JSON as string. + */ + stringToJSONObject(s: string): void; + + /** + * Parses a string and returns a XML Document + * + * @param s the XML represented as a string + */ + stringToXmlObject(s: string): void; + + /** + * Returns collection of data and non-data(grouped) records. Flat representation of hierarchical data + */ + groupByData(): any[]; + + /** + * Returns collection of data and non-data(grouped) records. Returns only visible records(children of collapsed grouped records are not included in the collection) + */ + visibleGroupByData(): any[]; + + /** + * Returns the current normalized/transformed and paged/filtered/sorted group-by data + */ + groupByDataView(): any[]; + + /** + * Toggle grouped record with the specified id and updates collections visible groupby data and data view + * + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded + */ + toggleGroupByRecord(id: string, collapsed: boolean): void; + + /** + * Check whether the specified gorupby record is collapsed + * + * @param gbRec id of the grouped record OR grouped record + */ + isGroupByRecordCollapsed(gbRec: Object): boolean; + + /** + * Check whether grouping is applied for the specified sorting expressions. + * + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + */ + isGroupByApplied(exprs?: any[]): boolean; +} } interface IgniteUIStatic { TreeHierarchicalDataSource: typeof Infragistics.TreeHierarchicalDataSource; } declare namespace Infragistics { - class DvCommonWidget { - option(key: Object, value: Object): void; - } +export class DvCommonWidget { + option(key: Object, value: Object): void; +} } interface SimpleTextMarkerTemplateSettings { @@ -6212,50 +6591,168 @@ interface SimpleTextMarkerTemplateSettings { } declare namespace Infragistics { - class SimpleTextMarkerTemplate { - constructor(requireThis: boolean); - constructor(settings: SimpleTextMarkerTemplateSettings); - getText(item: Object, textDelegate: Object): void; - measure(measureInfo: Object): void; - render(renderInfo: Object): void; - } +export class SimpleTextMarkerTemplate { + constructor(requireThis: boolean); + constructor(settings: SimpleTextMarkerTemplateSettings); + getText(item: Object, textDelegate: Object): void; + measure(measureInfo: Object): void; + render(renderInfo: Object): void; +} } interface IgniteUIStatic { SimpleTextMarkerTemplate: typeof Infragistics.SimpleTextMarkerTemplate; } +interface GridExcelExporterCallbacks { + + /** + * Set a callback that is fired after the cell is exported. + * Function takes arguments sender and args. + * Use args.columnKey to get the igGrid column key of the cell. + * Use args.columnIndex to get the igGrid column index of the cell. + * Use args.cellValue to get the igGrid cell value. + * Use args.rowId to get key or index of row. + * Use args.xlRow to get reference to the worksheet row. + * Use args.grid to get reference to the igGrid widget. + * + */ + cellExported?: Function; + + /** + * Cancel="true" Set a callback that is fired before the cell exporting. + * Function takes arguments sender and args. + * Use args.columnKey to get the igGrid column key of the cell. + * Use args.columnIndex to get the igGrid column index of the cell. + * Use args.cellValue to get or set the igGrid cell value. + * Use args.rowId to get key or index of row. + * Use args.xlRow to get reference to the worksheet row. + * Use args.grid to get reference to the igGrid widget. + * + */ + cellExporting?: Function; + + /** + * Set a callback that is fired when exporting fails. + * Use error to get the reference of error object. + * + */ + error?: Function; + + /** + * Cancel="true" Set a callback that is fired when export is ending, but the document is not saved. + * Function takes arguments sender and args. + * Use args.grid to get reference to the igGrid widget. + * Use args.workbook to get reference to the excel workbook. + * Use args.worksheet to get reference to the excel worksheet. + * + */ + exportEnding?: Function; + + /** + * Cancel="true" Set a callback that is fired when the exporting has started. + * Function takes arguments sender and args. + * Use args.grid to get reference to igGrid widget. + * + */ + exportStarting?: Function; + + /** + * Set a callback that is fired after the header cell is exported. + * Function takes arguments sender and args. + * Use args.headerText to get the igGrid column key of the header cell. + * Use args.columnKey to get the igGrid column key of the header cell. + * Use args.columnIndex to get the igGrid column index of the header cell. + * + */ + headerCellExported?: Function; + + /** + * Cancel="true" Set a callback that is fired before the header cell exporting. + * Function takes arguments sender and args. + * Use args.headerText to get or set the igGrid column key of the header cell. + * Use args.columnKey to get the igGrid column key of the header cell. + * Use args.columnIndex to get the igGrid column index of the header cell. + * + */ + headerCellExporting?: Function; + + /** + * Cancel="true" Set a callback that is fired after the row is exported. + * Function takes arguments sender and args. + * Use args.rowId to get key or index of row. + * Use args.element to get row TR element. + * Use args.xlRow to get reference to the worksheet row. + * Use args.grid to get reference to the igGrid widget. + * Note: When exporting an igHierarchicalGrid this callback is available only for the root grid rows. + * + */ + rowExported?: Function; + + /** + * Cancel="true" Set a callback that is fired before the row exporting. + * Function takes arguments sender and args. + * Use args.rowId to get key or index of row. + * Use args.element to get row TR element. + * Use args.xlRow to get reference to the worksheet row. + * Use args.grid to get reference to the igGrid widget. + * Note: When exporting an igHierarchicalGrid this callback is available only for the root grid rows. + * + */ + rowExporting?: Function; + + /** + * Set a callback that is fired when exporting is successful. + * Use data to get the reference of saved object. + * + */ + success?: Function; + + /** + * Set a callback that is fired after the summary is exported. + * Function takes arguments sender and args. + * Use args.headerText to get the igGrid column header text. + * Use args.columnKey to get the igGrid column key. + * Use args.columnIndex to get the igGrid column index. + * Use args.summary to get a reference to the summary object. + * Use args.xlRowIndex to get the worksheet row index. + * + */ + summaryExported?: Function; + + /** + * Cancel="true" Set a callback that is fired before the summary exporting. + * Function takes arguments sender and args. + * Use args.headerText to get the igGrid column header text. + * Use args.columnKey to get the igGrid column key. + * Use args.columnIndex to get the igGrid column index. + * Use args.summary to get a reference to the summary object. + * Use args.xlRowIndex to get reference to worksheet row index. + * + */ + summaryExporting?: Function; + + /** + * Option for GridExcelExporterCallbacks + */ + [optionName: string]: any; +} + interface GridExcelExporterSettingsGridFeatureOptions { - /** - * Indicates whether sorting will be applied in the exported table. This is set_ to none by default, but will change to applied if sorting feature is defined in the igGrid. - * - * Valid values: - * "none" No sorting will be applied in the excel document. - * "applied" Sorting will be applied in the excel document. - */ - sorting?: string; /** - * Indicates whether the rows on the current page or entire data will exported. + * Indicates whether fixed columns will be applied in the exported table. This is set to none by default, but will change to applied if column fixing feature is defined in the igGrid. + * * * Valid values: - * "currentPage" Only current page will be exported to the excel document. - * "allRows" All pages will be exported to the excel document. + * "none" No column fixing will be applied in the excel document. + * "applied" Column fixing will be applied in the excel document. */ - paging?: string; - - /** - * Indicates whether hidden columns will be removed from the exported table. This is set to none by default, but will change to applied if hiding feature is defined in the igGrid. - * - * Valid values: - * "none" All hidden columns will be exported to the excel document. - * "applied" Hidden columns will be exported as hidden in the excel document. - * "visibleColumnsOnly" Only visible columns will be exported. - */ - hiding?: string; + columnfixing?: string; /** * Indicates whether filtering will be applied in the exported table. this is set to none by default, but will change to applied if filtering feature is defined in the igGrid. * + * * Valid values: * "none" No filtering will be applied in the excel document. * "applied" Filtering will be applied in the excel document. @@ -6264,17 +6761,40 @@ interface GridExcelExporterSettingsGridFeatureOptions { filtering?: string; /** - * Indicates whether fixed columns will be applied in the exported table. This is set to none by default, but will change to applied if column fixing feature is defined in the igGrid. + * Indicates whether hidden columns will be removed from the exported table. This is set to none by default, but will change to applied if hiding feature is defined in the igGrid. + * * * Valid values: - * "none" No column fixing will be applied in the excel document. - * "applied" Column fixing will be applied in the excel document. + * "none" All hidden columns will be exported to the excel document. + * "applied" Hidden columns will be exported as hidden in the excel document. + * "visibleColumnsOnly" Only visible columns will be exported. */ - columnfixing?: string; + hiding?: string; + + /** + * Indicates whether the rows on the current page or entire data will exported. + * + * + * Valid values: + * "currentPage" Only current page will be exported to the excel document. + * "allRows" All pages will be exported to the excel document. + */ + paging?: string; + + /** + * Indicates whether sorting will be applied in the exported table. This is set_ to none by default, but will change to applied if sorting feature is defined in the igGrid. + * + * + * Valid values: + * "none" No sorting will be applied in the excel document. + * "applied" Sorting will be applied in the excel document. + */ + sorting?: string; /** * Indicates whether summaries will be added in the exported table. This is set to none by default, but will change to applied if summaries feature is defined in the igGrid. * + * * Valid values: * "none" No summaries will be exported to the excel document. * "applied" Summaries will be exported to the excel document. @@ -6288,8 +6808,26 @@ interface GridExcelExporterSettingsGridFeatureOptions { } interface GridExcelExporterSettings { + + /** + * List of strings containing the keys for the columns that will not be exported. + * + */ + columnsToSkip?: any[]; + + /** + * Indicates whether all sublevel data will be exported, or only data under expanded rows. + * + * + * Valid values: + * "allRows" All sublevel data will be exported. + * "expandedRows" Only data under expanded rows will be exported. + */ + dataExportMode?: string; + /** * Specifies the name of the excel file that will be generated. + * */ fileName?: string; @@ -6298,33 +6836,10 @@ interface GridExcelExporterSettings { */ gridFeatureOptions?: GridExcelExporterSettingsGridFeatureOptions; - /** - * Specifies the name of workbook where the igGrid will be exported. - */ - worksheetName?: string; - - /** - * List of strings containing the keys for the worksheet columns which will not be applied any filtering - */ - skipFilteringOn?: any[]; - - /** - * List of strings containing the keys for the columns that will not be exported - */ - columnsToSkip?: any[]; - - /** - * Specifies the excel table style region. - * You can set the following table style - * TableStyleMedium[1-28] - * TableStyleLight[1-21] - * TableStyleDark[1-11] - */ - tableStyle?: string; - /** * Indicates whether excel table styles will be the same as grid styles. This is set to applied by default. Custom grid themes are not supported. * + * * Valid values: * "none" The styles from the grid are not applied to the table region. * "applied" The styles from the grid are applied to the table region. @@ -6332,13 +6847,26 @@ interface GridExcelExporterSettings { gridStyling?: string; /** - * Indicates whether all sublevel data will be exported, or only data under expanded rows. + * List of strings containing the keys for the worksheet columns which will not be applied any filtering * - * Valid values: - * "allRows" All sublevel data will be exported. - * "expandedRows" Only data under expanded rows will be exported. */ - dataExportMode?: string; + skipFilteringOn?: any[]; + + /** + * Specifies the excel table style region. + * You can set the following table style + * TableStyleMedium[1-28] + * TableStyleLight[1-21] + * TableStyleDark[1-11] + * + */ + tableStyle?: string; + + /** + * Specifies the name of workbook where the igGrid will be exported. + * + */ + worksheetName?: string; /** * Option for GridExcelExporterSettings @@ -6346,147 +6874,27 @@ interface GridExcelExporterSettings { [optionName: string]: any; } -interface GridExcelExporterCallbacks { - /** - * Cancel="true" Callback fired when the exporting has started. - * Function takes arguments sender and args. - * Use args.grid to get reference to igGrid widget. - */ - exportStarting?: any; - - /** - * Cancel="true" Callback fired when cell exporting has begin. - * Function takes arguments sender and args. - * Use args.columnKey to get the igGrid column key of the cell. - * Use args.columnIndex to get the igGrid column index of the cell. - * Use args.cellValue to get or set the igGrid cell value. - * Use args.rowId to get key or index of row. - * Use args.xlRow to get reference to the worksheet row. - * Use args.grid to get reference to the igGrid widget. - */ - cellExporting?: any; - - /** - * Callback fired when cell exporting has end. - * Function takes arguments sender and args. - * Use args.columnKey to get the igGrid column key of the cell. - * Use args.columnIndex to get the igGrid column index of the cell. - * Use args.cellValue to get the igGrid cell value. - * Use args.rowId to get key or index of row. - * Use args.xlRow to get reference to the worksheet row. - * Use args.grid to get reference to the igGrid widget. - */ - cellExported?: any; - - /** - * Cancel="true" Callback fired when header cell exporting has begin. - * Function takes arguments sender and args. - * Use args.headerText to get or set the igGrid column key of the header cell. - * Use args.columnKey to get the igGrid column key of the header cell. - * Use args.columnIndex to get the igGrid column index of the header cell. - */ - headerCellExporting?: any; - - /** - * Callback fired when header cell exporting has end. - * Function takes arguments sender and args. - * Use args.headerText to get the igGrid column key of the header cell. - * Use args.columnKey to get the igGrid column key of the header cell. - * Use args.columnIndex to get the igGrid column index of the header cell. - */ - headerCellExported?: any; - - /** - * Cancel="true" Callback fired when row exporting has begin. - * Function takes arguments sender and args. - * Use args.rowId to get key or index of row. - * Use args.element to get row TR element. - * Use args.xlRow to get reference to the worksheet row. - * Use args.grid to get reference to the igGrid widget. - * Note: When exporting an igHierarchicalGrid this callback is available only for the root grid rows. - */ - rowExporting?: any; - - /** - * Cancel="true" Callback fired when row exporting has ended. - * Function takes arguments sender and args. - * Use args.rowId to get key or index of row. - * Use args.element to get row TR element. - * Use args.xlRow to get reference to the worksheet row. - * Use args.grid to get reference to the igGrid widget. - * Note: When exporting an igHierarchicalGrid this callback is available only for the root grid rows. - */ - rowExported?: any; - - /** - * Cancel="true" Callback fired when summary exporting has begun. - * Function takes arguments sender and args. - * Use args.headerText to get the igGrid column header text. - * Use args.columnKey to get the igGrid column key. - * Use args.columnIndex to get the igGrid column index. - * Use args.summary to get a reference to the summary object. - * Use args.xlRowIndex to get reference to worksheet row index. - */ - summaryExporting?: any; - - /** - * Callback fired when cell exporting has end. - * Function takes arguments sender and args. - * Use args.headerText to get the igGrid column header text. - * Use args.columnKey to get the igGrid column key. - * Use args.columnIndex to get the igGrid column index. - * Use args.summary to get a reference to the summary object. - * Use args.xlRowIndex to get the worksheet row index. - */ - summaryExported?: any; - - /** - * Cancel="true" Callback fired when export is ending, but the document is not saved. - * Function takes arguments sender and args. - * Use args.grid to get reference to the igGrid widget. - * Use args.workbook to get reference to the excel workbook. - * Use args.worksheet to get reference to the excel worksheet. - */ - exportEnding?: any; - - /** - * Callback fired when exporting is successful. - * Use data to get the reference of saved object. - */ - success?: any; - - /** - * Callback fired when exporting is failed. - * Use error to get the reference of error object. - */ - error?: any; - - /** - * Option for GridExcelExporterCallbacks - */ - [optionName: string]: any; -} - declare namespace Infragistics { - class GridExcelExporter { - constructor(settings: GridExcelExporterSettings); - constructor(callbacks: GridExcelExporterCallbacks); +export class GridExcelExporter { + constructor(callbacks: GridExcelExporterCallbacks); + constructor(settings: GridExcelExporterSettings); - /** - * Exports the provided igGrid to Excel document. - * - * @param grid Grid to be exported. - * @param userSettings Settings for exporting the grid. - * @param userCallbacks Callbacks for the events. - */ - exportGrid(grid: Object, userSettings: Object, userCallbacks: Object): void; - } + /** + * Exports the provided igGrid to Excel document. + * + * @param grid Grid to be exported. + * @param userSettings Settings for exporting the grid. + * @param userCallbacks Callbacks for the events. + */ + exportGrid(grid: Object, userSettings: Object, userCallbacks: Object): void; +} } interface IgniteUIStatic { GridExcelExporter: typeof Infragistics.GridExcelExporter; } interface OlapXmlaDataSourceOptionsRequestOptions { + /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -6506,6 +6914,7 @@ interface OlapXmlaDataSourceOptionsRequestOptions { } interface OlapXmlaDataSourceOptionsMdxSettings { + /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -6543,6 +6952,7 @@ interface OlapXmlaDataSourceOptionsMdxSettings { } interface OlapXmlaDataSourceOptions { + /** * Optional="false" The URL of the XMLA server. */ @@ -6617,321 +7027,322 @@ interface OlapXmlaDataSourceOptions { } declare namespace Infragistics { - class OlapXmlaDataSource { - constructor(options: OlapXmlaDataSourceOptions); +export class OlapXmlaDataSource { + constructor(options: OlapXmlaDataSourceOptions); - /** - * Initializes the data source and returns a promise that will be resolved once the data source is initialized. - * The promise's result will be the metadata tree for the catalog/cube/measureGroup specified in the settings or null if the settings do not provide a valid cube initialization data. - * The data source is not functional until it has been initialized and all other methods other than initialize() will throw an error if isInitialized() returns false. - */ - initialize(): Object; + /** + * Initializes the data source and returns a promise that will be resolved once the data source is initialized. + * The promise's result will be the metadata tree for the catalog/cube/measureGroup specified in the settings or null if the settings do not provide a valid cube initialization data. + * The data source is not functional until it has been initialized and all other methods other than initialize() will throw an error if isInitialized() returns false. + */ + initialize(): Object; - /** - * Retrieves the initialization state of the data source. - */ - isInitialized(): boolean; + /** + * Retrieves the initialization state of the data source. + */ + isInitialized(): boolean; - /** - * Indicates whether the data source is modified. - */ - isModified(): boolean; + /** + * Indicates whether the data source is modified. + */ + isModified(): boolean; - /** - * Indicates whether the update() method execution is in progress. - */ - isUpdating(): boolean; + /** + * Indicates whether the update() method execution is in progress. + */ + isUpdating(): boolean; - /** - * Retrieves the currently loaded catalogs in the data source. - */ - catalogs(): any[]; + /** + * Retrieves the currently loaded catalogs in the data source. + */ + catalogs(): any[]; - /** - * Retrieves the current catalog in the data source. - */ - catalog(): Object; + /** + * Retrieves the current catalog in the data source. + */ + catalog(): Object; - /** - * Sets the current catalog for the data source and updates the cubes() and catalog() properties. - * - * @param catalogName the name of the catalog. - */ - setCatalog(catalogName: string): Object; + /** + * Sets the current catalog for the data source and updates the cubes() and catalog() properties. + * + * @param catalogName the name of the catalog. + */ + setCatalog(catalogName: string): Object; - /** - * Retrieves the currently loaded cubes in the data source. - */ - cubes(): any[]; + /** + * Retrieves the currently loaded cubes in the data source. + */ + cubes(): any[]; - /** - * Retrieves the current cube in the data source. - */ - cube(): Object; + /** + * Retrieves the current cube in the data source. + */ + cube(): Object; - /** - * Sets the current cube for the data source and updates the cube(), measureGroup() and metadataTree() properties. - * - * @param cubeName the name of the cube. - */ - setCube(cubeName: string): Object; + /** + * Sets the current cube for the data source and updates the cube(), measureGroup() and metadataTree() properties. + * + * @param cubeName the name of the cube. + */ + setCube(cubeName: string): Object; - /** - * Retrieves the currently loaded measure groups in the data source. - */ - measureGroups(): any[]; + /** + * Retrieves the currently loaded measure groups in the data source. + */ + measureGroups(): any[]; - /** - * Retrieves the current measureGroup in the data source. - */ - measureGroup(): Object; + /** + * Retrieves the current measureGroup in the data source. + */ + measureGroup(): Object; - /** - * Sets the current measure group for the data source and updates the measureGroup() and metadataTree() properties. - * Even though the catalogs/cubes/measureGroups items are cascading(e.g. in order to load the cubes a catalog has to be set) in order to construct the metadata tree a measure group is not required as it just filters the resulting metadata. - * Once setCube(cubeName) is called the metadata tree would be loaded and the measureGroup() property would be filled with the default '(All)' measure group which indicates that no measure group is selected. - * - * @param measureGroupName the name of the measure group. - */ - setMeasureGroup(measureGroupName: string): Object; + /** + * Sets the current measure group for the data source and updates the measureGroup() and metadataTree() properties. + * Even though the catalogs/cubes/measureGroups items are cascading(e.g. in order to load the cubes a catalog has to be set) in order to construct the metadata tree a measure group is not required as it just filters the resulting metadata. + * Once setCube(cubeName) is called the metadata tree would be loaded and the measureGroup() property would be filled with the default '(All)' measure group which indicates that no measure group is selected. + * + * @param measureGroupName the name of the measure group. + */ + setMeasureGroup(measureGroupName: string): Object; - /** - * Returns the fully loaded metadata tree. - */ - metadataTree(): Object; + /** + * Returns the fully loaded metadata tree. + */ + metadataTree(): Object; - /** - * Adds a hierarchy to the rows of the pivot grid. - * - * @param rowItem An object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid rows. - */ - addRowItem(rowItem: Object): void; + /** + * Adds a hierarchy to the rows of the pivot grid. + * + * @param rowItem An object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid rows. + */ + addRowItem(rowItem: Object): void; - /** - * Removes a hierarchy or the measure list from the rows of the pivot grid. - * - * @param rowItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "rows". - */ - removeRowItem(rowItem: Object): void; + /** + * Removes a hierarchy or the measure list from the rows of the pivot grid. + * + * @param rowItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "rows". + */ + removeRowItem(rowItem: Object): void; - /** - * Adds a hierarchy to the columns of the pivot grid. - * - * @param columnItem an object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid columns. - */ - addColumnItem(columnItem: Object): void; + /** + * Adds a hierarchy to the columns of the pivot grid. + * + * @param columnItem an object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid columns. + */ + addColumnItem(columnItem: Object): void; - /** - * Removes a hierarchy or the measure list from the columns of the pivot grid. - * - * @param columnItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "columns". - */ - removeColumnItem(columnItem: Object): void; + /** + * Removes a hierarchy or the measure list from the columns of the pivot grid. + * + * @param columnItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "columns". + */ + removeColumnItem(columnItem: Object): void; - /** - * Adds a hierarchy to the filter axis of the pivot grid. - * - * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to add. - */ - addFilterItem(filterItem: Object): void; + /** + * Adds a hierarchy to the filter axis of the pivot grid. + * + * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to add. + */ + addFilterItem(filterItem: Object): void; - /** - * Removes a hierarchy from the filter axis of the pivot grid. - * - * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to remove. - */ - removeFilterItem(filterItem: Object): void; + /** + * Removes a hierarchy from the filter axis of the pivot grid. + * + * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to remove. + */ + removeFilterItem(filterItem: Object): void; - /** - * Adds a measure to the measures of the pivot grid. - * - * @param measureItem an object of type $.ig.Measure which is the measure to add. - */ - addMeasureItem(measureItem: Object): void; + /** + * Adds a measure to the measures of the pivot grid. + * + * @param measureItem an object of type $.ig.Measure which is the measure to add. + */ + addMeasureItem(measureItem: Object): void; - /** - * Removes a measure from the measures of the pivot grid. - * - * @param measureItem An object of type $.ig.Measure which is the measure to remove. - */ - removeMeasureItem(measureItem: Object): void; + /** + * Removes a measure from the measures of the pivot grid. + * + * @param measureItem An object of type $.ig.Measure which is the measure to remove. + */ + removeMeasureItem(measureItem: Object): void; - /** - * Sets the index at which the measure list will be positioned in the rows/columns it resides. - * - * @param index the index where measure list to appear. - */ - setMeasureListIndex(index: number): void; + /** + * Sets the index at which the measure list will be positioned in the rows/columns it resides. + * + * @param index the index where measure list to appear. + */ + setMeasureListIndex(index: number): void; - /** - * Sets the location of the measure list. - * - * @param location accepted values are 'rows' and 'columns'. - */ - setMeasureListLocation(location: Object): void; + /** + * Sets the location of the measure list. + * + * @param location accepted values are 'rows' and 'columns'. + */ + setMeasureListLocation(location: Object): void; - /** - * Sets a tuple member to be expanded next time the update() method is called. - * Calling this method on an already expanded member does nothing. - * - * @param axisName the name of the axis for the tuple. - * @param tupleIndex the index of the tuple in the axis. - * @param memberIndex the index of the member in the tuple. - */ - expandTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; + /** + * Sets a tuple member to be expanded next time the update() method is called. + * Calling this method on an already expanded member does nothing. + * + * @param axisName the name of the axis for the tuple. + * @param tupleIndex the index of the tuple in the axis. + * @param memberIndex the index of the member in the tuple. + */ + expandTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; - /** - * Sets a tuple member to be collapsed next time the update() method is called. - * Calling this method on an already collapsed member does nothing. - * - * @param axisName the name of the axis for the tuple. - * @param tupleIndex the index of the tuple in the axis. - * @param memberIndex the index of the member in the tuple. - */ - collapseTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; + /** + * Sets a tuple member to be collapsed next time the update() method is called. + * Calling this method on an already collapsed member does nothing. + * + * @param axisName the name of the axis for the tuple. + * @param tupleIndex the index of the tuple in the axis. + * @param memberIndex the index of the member in the tuple. + */ + collapseTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; - /** - * Returns the items in the row axis. - */ - rowAxis(): any[]; + /** + * Returns the items in the row axis. + */ + rowAxis(): any[]; - /** - * Returns the items in the column axis. - */ - columnAxis(): any[]; + /** + * Returns the items in the column axis. + */ + columnAxis(): any[]; - /** - * Returns the items in the filter axis. - */ - filters(): any[]; + /** + * Returns the items in the filter axis. + */ + filters(): any[]; - /** - * Returns the items in the measures axis. - */ - measures(): any[]; + /** + * Returns the items in the measures axis. + */ + measures(): any[]; - /** - * Returns the result from the last update or null if the last update was unsuccessful. - */ - result(): Object; + /** + * Returns the result from the last update or null if the last update was unsuccessful. + */ + result(): Object; - /** - * Clears all pending changes since last time the update() method is called. - */ - clearPendingChanges(): void; + /** + * Clears all pending changes since last time the update() method is called. + */ + clearPendingChanges(): void; - /** - * Performs an update with the list of pending changes and updates the data source result. - */ - update(): Object; + /** + * Performs an update with the list of pending changes and updates the data source result. + */ + update(): Object; - /** - * Gets the first element of the specified elementType which matches the specified predicate or null if there is no such element found. - * - * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. - * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. - */ - getCoreElement(predicate: Function, elementType: Object): Object; + /** + * Gets the first element of the specified elementType which matches the specified predicate or null if there is no such element found. + * + * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. + * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. + */ + getCoreElement(predicate: Function, elementType: Object): Object; - /** - * Gets an array with elements of the specified elementType which match the specified predicate or empty array if there is no such element found. - * - * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. - * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. - */ - getCoreElements(predicate: Function, elementType: Object): Object; + /** + * Gets an array with elements of the specified elementType which match the specified predicate or empty array if there is no such element found. + * + * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. + * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. + */ + getCoreElements(predicate: Function, elementType: Object): Object; - /** - * Returns $.ig.Dimension object for the specified unique name. - * - * @param dimensionUniqueName the unique name of the searched dimension object. - */ - getDimension(dimensionUniqueName: string): Object; + /** + * Returns $.ig.Dimension object for the specified unique name. + * + * @param dimensionUniqueName the unique name of the searched dimension object. + */ + getDimension(dimensionUniqueName: string): Object; - /** - * Returns $.ig.Hierarchy object for the specified unique name. - * - * @param hierarchyUniqueName the unique name of the searched hierarchy object. - */ - getHierarchy(hierarchyUniqueName: string): Object; + /** + * Returns $.ig.Hierarchy object for the specified unique name. + * + * @param hierarchyUniqueName the unique name of the searched hierarchy object. + */ + getHierarchy(hierarchyUniqueName: string): Object; - /** - * Returns $.ig.Level object for the specified unique name. - * - * @param levelUniqueName the unique name of the searched level object. - */ - getLevel(levelUniqueName: string): Object; + /** + * Returns $.ig.Level object for the specified unique name. + * + * @param levelUniqueName the unique name of the searched level object. + */ + getLevel(levelUniqueName: string): Object; - /** - * Returns $.ig.Measure object for the specified unique name. - * - * @param measureUniqueName the unique name of the searched measure object. - */ - getMeasure(measureUniqueName: string): Object; + /** + * Returns $.ig.Measure object for the specified unique name. + * + * @param measureUniqueName the unique name of the searched measure object. + */ + getMeasure(measureUniqueName: string): Object; - /** - * Returns $.ig.MeasureList object available when operates with more than one $.ig.Measure object. - */ - getMeasureList(): Object; + /** + * Returns $.ig.MeasureList object available when operates with more than one $.ig.Measure object. + */ + getMeasureList(): Object; - /** - * Returns an array of strings with the unique names of selected for given hierarchy filter members. - * - * @param hierarchyUniqueName the unique name of the hierarchy whose active filter members are returned. - */ - getFilterMemberNames(hierarchyUniqueName: string): any[]; + /** + * Returns an array of strings with the unique names of selected for given hierarchy filter members. + * + * @param hierarchyUniqueName the unique name of the hierarchy whose active filter members are returned. + */ + getFilterMemberNames(hierarchyUniqueName: string): any[]; - /** - * Adds a member to list of filter members that will be present in result. - * If a member of given hierarchy is added to this filter list then only those members which are present in this filter list will be present for that hierarchy in the result. - * - * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. - * @param memberUniqueName the unique name of the member to be added. - */ - addFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; + /** + * Adds a member to list of filter members that will be present in result. + * If a member of given hierarchy is added to this filter list then only those members which are present in this filter list will be present for that hierarchy in the result. + * + * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. + * @param memberUniqueName the unique name of the member to be added. + */ + addFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; - /** - * Removes a member from the list of filter members that will be present in result. - * - * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. - * @param memberUniqueName the unique name of the member to be removed. - */ - removeFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; + /** + * Removes a member from the list of filter members that will be present in result. + * + * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. + * @param memberUniqueName the unique name of the member to be removed. + */ + removeFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; - /** - * Removes all members from the list of filter members and the filter for the specified hierarchy is cleared. - * - * @param hierarchyUniqueName the unique name of the hierarchy which filter members to be cleared. - */ - removeAllFilterMembers(hierarchyUniqueName: string): void; + /** + * Removes all members from the list of filter members and the filter for the specified hierarchy is cleared. + * + * @param hierarchyUniqueName the unique name of the hierarchy which filter members to be cleared. + */ + removeAllFilterMembers(hierarchyUniqueName: string): void; - /** - * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given level filter member. - * - * @param levelUniqueName the unique name of the member whose active filter members are returned. - */ - getMembersOfLevel(levelUniqueName: string): void; + /** + * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given level filter member. + * + * @param levelUniqueName the unique name of the member whose active filter members are returned. + */ + getMembersOfLevel(levelUniqueName: string): void; - /** - * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given hierarchy filter member. - * - * @param hierarchyUniqueName the unique name of the member whose active filter members are returned. - */ - getMembersOfHierarchy(hierarchyUniqueName: string): void; + /** + * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given hierarchy filter member. + * + * @param hierarchyUniqueName the unique name of the member whose active filter members are returned. + */ + getMembersOfHierarchy(hierarchyUniqueName: string): void; - /** - * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects that are children of the current member. - * - * @param memberUniqueName the unique name of the member whose active filter members are returned. - */ - getMembersOfMember(memberUniqueName: string): void; - } + /** + * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects that are children of the current member. + * + * @param memberUniqueName the unique name of the member whose active filter members are returned. + */ + getMembersOfMember(memberUniqueName: string): void; +} } interface IgniteUIStatic { OlapXmlaDataSource: typeof Infragistics.OlapXmlaDataSource; } interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimensionMeasure { + /** * Optional="false" A unique name for the measure. */ @@ -6960,6 +7371,7 @@ interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimensionMeasure { } interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimension { + /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -6985,6 +7397,7 @@ interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimension { } interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchieLevel { + /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -7010,6 +7423,7 @@ interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchieLevel { } interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchie { + /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -7041,6 +7455,7 @@ interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchie { } interface OlapFlatDataSourceOptionsMetadataCubeDimension { + /** * Optional="false" A unique name for the dimension. */ @@ -7063,6 +7478,7 @@ interface OlapFlatDataSourceOptionsMetadataCubeDimension { } interface OlapFlatDataSourceOptionsMetadataCube { + /** * Optional="false" A unique name for the cube. */ @@ -7090,6 +7506,7 @@ interface OlapFlatDataSourceOptionsMetadataCube { } interface OlapFlatDataSourceOptionsMetadata { + /** * Optional="false" Metadata used for the creation of the cube. */ @@ -7102,6 +7519,7 @@ interface OlapFlatDataSourceOptionsMetadata { } interface OlapFlatDataSourceOptions { + /** * Optional="true" Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -7159,345 +7577,347 @@ interface OlapFlatDataSourceOptions { } declare namespace Infragistics { - class OlapFlatDataSource { - constructor(options: OlapFlatDataSourceOptions); +export class OlapFlatDataSource { + constructor(options: OlapFlatDataSourceOptions); - /** - * Initializes the data source and returns a promise that will be resolved once the data source is initialized. - * The promise's result will be the metadata tree for the catalog/cube/measureGroup specified in the settings or null if the settings do not provide a valid cube initialization data. - * The data source is not functional until it has been initialized and all other methods other than initialize() will throw an error if isInitialized() returns false. - */ - initialize(): Object; + /** + * Initializes the data source and returns a promise that will be resolved once the data source is initialized. + * The promise's result will be the metadata tree for the catalog/cube/measureGroup specified in the settings or null if the settings do not provide a valid cube initialization data. + * The data source is not functional until it has been initialized and all other methods other than initialize() will throw an error if isInitialized() returns false. + */ + initialize(): Object; - /** - * Retrieves the initialization state of the data source. - */ - isInitialized(): boolean; + /** + * Retrieves the initialization state of the data source. + */ + isInitialized(): boolean; - /** - * Indicates whether the data source is modified. - */ - isModified(): boolean; + /** + * Indicates whether the data source is modified. + */ + isModified(): boolean; - /** - * Indicates whether the update() method execution is in progress. - */ - isUpdating(): boolean; + /** + * Indicates whether the update() method execution is in progress. + */ + isUpdating(): boolean; - /** - * Retrieves the currently loaded cubes in the data source. - */ - cubes(): any[]; + /** + * Retrieves the currently loaded cubes in the data source. + */ + cubes(): any[]; - /** - * Retrieves the current cube in the data source. - */ - cube(): Object; + /** + * Retrieves the current cube in the data source. + */ + cube(): Object; - /** - * Sets the current cube for the data source and updates the cube(), measureGroup() and metadataTree() properties. - * - * @param cubeName the name of the cube. - */ - setCube(cubeName: string): Object; + /** + * Sets the current cube for the data source and updates the cube(), measureGroup() and metadataTree() properties. + * + * @param cubeName the name of the cube. + */ + setCube(cubeName: string): Object; - /** - * Returns the fully loaded metadata tree. - */ - metadataTree(): Object; + /** + * Returns the fully loaded metadata tree. + */ + metadataTree(): Object; - /** - * Adds a hierarchy to the rows of the pivot grid. - * - * @param rowItem An object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid rows. - */ - addRowItem(rowItem: Object): void; + /** + * Adds a hierarchy to the rows of the pivot grid. + * + * @param rowItem An object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid rows. + */ + addRowItem(rowItem: Object): void; - /** - * Removes a hierarchy or the measure list from the rows of the pivot grid. - * - * @param rowItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "rows". - */ - removeRowItem(rowItem: Object): void; + /** + * Removes a hierarchy or the measure list from the rows of the pivot grid. + * + * @param rowItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "rows". + */ + removeRowItem(rowItem: Object): void; - /** - * Adds a hierarchy to the columns of the pivot grid. - * - * @param columnItem an object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid columns. - */ - addColumnItem(columnItem: Object): void; + /** + * Adds a hierarchy to the columns of the pivot grid. + * + * @param columnItem an object of type $.ig.Hierarchy which is the hierarchy to add in the pivot grid columns. + */ + addColumnItem(columnItem: Object): void; - /** - * Removes a hierarchy or the measure list from the columns of the pivot grid. - * - * @param columnItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "columns". - */ - removeColumnItem(columnItem: Object): void; + /** + * Removes a hierarchy or the measure list from the columns of the pivot grid. + * + * @param columnItem an object of type $.ig.Hierarchy or $.ig.MeasureList which is the hierarchy to remove or the measure list if there are more than one measures added and the measure list location is set to "columns". + */ + removeColumnItem(columnItem: Object): void; - /** - * Adds a hierarchy to the filter axis of the pivot grid. - * - * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to add. - */ - addFilterItem(filterItem: Object): void; + /** + * Adds a hierarchy to the filter axis of the pivot grid. + * + * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to add. + */ + addFilterItem(filterItem: Object): void; - /** - * Removes a hierarchy from the filter axis of the pivot grid. - * - * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to remove. - */ - removeFilterItem(filterItem: Object): void; + /** + * Removes a hierarchy from the filter axis of the pivot grid. + * + * @param filterItem an object of type $.ig.Hierarchy which is the hierarchy to remove. + */ + removeFilterItem(filterItem: Object): void; - /** - * Adds a measure to the measures of the pivot grid. - * - * @param measureItem an object of type $.ig.Measure which is the measure to add. - */ - addMeasureItem(measureItem: Object): void; + /** + * Adds a measure to the measures of the pivot grid. + * + * @param measureItem an object of type $.ig.Measure which is the measure to add. + */ + addMeasureItem(measureItem: Object): void; - /** - * Removes a measure from the measures of the pivot grid. - * - * @param measureItem An object of type $.ig.Measure which is the measure to remove. - */ - removeMeasureItem(measureItem: Object): void; + /** + * Removes a measure from the measures of the pivot grid. + * + * @param measureItem An object of type $.ig.Measure which is the measure to remove. + */ + removeMeasureItem(measureItem: Object): void; - /** - * Sets the index at which the measure list will be positioned in the rows/columns it resides. - * - * @param index the index where measure list to appear. - */ - setMeasureListIndex(index: number): void; + /** + * Sets the index at which the measure list will be positioned in the rows/columns it resides. + * + * @param index the index where measure list to appear. + */ + setMeasureListIndex(index: number): void; - /** - * Sets the location of the measure list. - * - * @param location accepted values are 'rows' and 'columns'. - */ - setMeasureListLocation(location: Object): void; + /** + * Sets the location of the measure list. + * + * @param location accepted values are 'rows' and 'columns'. + */ + setMeasureListLocation(location: Object): void; - /** - * Sets a tuple member to be expanded next time the update() method is called. - * Calling this method on an already expanded member does nothing. - * - * @param axisName the name of the axis for the tuple. - * @param tupleIndex the index of the tuple in the axis. - * @param memberIndex the index of the member in the tuple. - */ - expandTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; + /** + * Sets a tuple member to be expanded next time the update() method is called. + * Calling this method on an already expanded member does nothing. + * + * @param axisName the name of the axis for the tuple. + * @param tupleIndex the index of the tuple in the axis. + * @param memberIndex the index of the member in the tuple. + */ + expandTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; - /** - * Sets a tuple member to be collapsed next time the update() method is called. - * Calling this method on an already collapsed member does nothing. - * - * @param axisName the name of the axis for the tuple. - * @param tupleIndex the index of the tuple in the axis. - * @param memberIndex the index of the member in the tuple. - */ - collapseTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; + /** + * Sets a tuple member to be collapsed next time the update() method is called. + * Calling this method on an already collapsed member does nothing. + * + * @param axisName the name of the axis for the tuple. + * @param tupleIndex the index of the tuple in the axis. + * @param memberIndex the index of the member in the tuple. + */ + collapseTupleMember(axisName: string, tupleIndex: number, memberIndex: number): void; - /** - * Returns the items in the row axis. - */ - rowAxis(): any[]; + /** + * Returns the items in the row axis. + */ + rowAxis(): any[]; - /** - * Returns the items in the column axis. - */ - columnAxis(): any[]; + /** + * Returns the items in the column axis. + */ + columnAxis(): any[]; - /** - * Returns the items in the filter axis. - */ - filters(): any[]; + /** + * Returns the items in the filter axis. + */ + filters(): any[]; - /** - * Returns the items in the measures axis. - */ - measures(): any[]; + /** + * Returns the items in the measures axis. + */ + measures(): any[]; - /** - * Returns the result from the last update or null if the last update was unsuccessful. - */ - result(): Object; + /** + * Returns the result from the last update or null if the last update was unsuccessful. + */ + result(): Object; - /** - * Clears all pending changes since last time the update() method is called. - */ - clearPendingChanges(): void; + /** + * Clears all pending changes since last time the update() method is called. + */ + clearPendingChanges(): void; - /** - * Performs an update with the list of pending changes and updates the data source result. - */ - update(): Object; + /** + * Performs an update with the list of pending changes and updates the data source result. + */ + update(): Object; - /** - * Gets the first element of the specified elementType which matches the specified predicate or null if there is no such element found. - * - * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. - * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. - */ - getCoreElement(predicate: Function, elementType: Object): Object; + /** + * Gets the first element of the specified elementType which matches the specified predicate or null if there is no such element found. + * + * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. + * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. + */ + getCoreElement(predicate: Function, elementType: Object): Object; - /** - * Gets an array with elements of the specified elementType which match the specified predicate or empty array if there is no such element found. - * - * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. - * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. - */ - getCoreElements(predicate: Function, elementType: Object): Object; + /** + * Gets an array with elements of the specified elementType which match the specified predicate or empty array if there is no such element found. + * + * @param predicate a predicate callback invoked against each core element of the specified type. It has to return true when the element has matched the serach criteria, otherwise - false. + * @param elementType an object specified by $.ig.ICoreOlapElement.prototype.$type property. Valid types which prototype can be examined are: $.ig.Dimension, $.ig.Hierarchy, $.ig.Level, $.ig.Measure and $.ig.MeasureList. + */ + getCoreElements(predicate: Function, elementType: Object): Object; - /** - * Returns $.ig.Dimension object for the specified unique name. - * - * @param dimensionUniqueName the unique name of the searched dimension object. - */ - getDimension(dimensionUniqueName: string): Object; + /** + * Returns $.ig.Dimension object for the specified unique name. + * + * @param dimensionUniqueName the unique name of the searched dimension object. + */ + getDimension(dimensionUniqueName: string): Object; - /** - * Returns $.ig.Hierarchy object for the specified unique name. - * - * @param hierarchyUniqueName the unique name of the searched hierarchy object. - */ - getHierarchy(hierarchyUniqueName: string): Object; + /** + * Returns $.ig.Hierarchy object for the specified unique name. + * + * @param hierarchyUniqueName the unique name of the searched hierarchy object. + */ + getHierarchy(hierarchyUniqueName: string): Object; - /** - * Returns $.ig.Level object for the specified unique name. - * - * @param levelUniqueName the unique name of the searched level object. - */ - getLevel(levelUniqueName: string): Object; + /** + * Returns $.ig.Level object for the specified unique name. + * + * @param levelUniqueName the unique name of the searched level object. + */ + getLevel(levelUniqueName: string): Object; - /** - * Returns $.ig.Measure object for the specified unique name. - * - * @param measureUniqueName the unique name of the searched measure object. - */ - getMeasure(measureUniqueName: string): Object; + /** + * Returns $.ig.Measure object for the specified unique name. + * + * @param measureUniqueName the unique name of the searched measure object. + */ + getMeasure(measureUniqueName: string): Object; - /** - * Returns $.ig.MeasureList object available when operates with more than one $.ig.Measure object. - */ - getMeasureList(): Object; + /** + * Returns $.ig.MeasureList object available when operates with more than one $.ig.Measure object. + */ + getMeasureList(): Object; - /** - * Returns an array of strings with the unique names of selected for given hierarchy filter members. - * - * @param hierarchyUniqueName the unique name of the hierarchy whose active filter members are returned. - */ - getFilterMemberNames(hierarchyUniqueName: string): any[]; + /** + * Returns an array of strings with the unique names of selected for given hierarchy filter members. + * + * @param hierarchyUniqueName the unique name of the hierarchy whose active filter members are returned. + */ + getFilterMemberNames(hierarchyUniqueName: string): any[]; - /** - * Adds a member to list of filter members that will be present in result. - * If a member of given hierarchy is added to this filter list then only those members which are present in this filter list will be present for that hierarchy in the result. - * - * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. - * @param memberUniqueName the unique name of the member to be added. - */ - addFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; + /** + * Adds a member to list of filter members that will be present in result. + * If a member of given hierarchy is added to this filter list then only those members which are present in this filter list will be present for that hierarchy in the result. + * + * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. + * @param memberUniqueName the unique name of the member to be added. + */ + addFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; - /** - * Removes a member from the list of filter members that will be present in result. - * - * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. - * @param memberUniqueName the unique name of the member to be removed. - */ - removeFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; + /** + * Removes a member from the list of filter members that will be present in result. + * + * @param hierarchyUniqueName the unique name of the hierarchy this member belongs to. + * @param memberUniqueName the unique name of the member to be removed. + */ + removeFilterMember(hierarchyUniqueName: string, memberUniqueName: string): void; - /** - * Removes all members from the list of filter members and the filter for the specified hierarchy is cleared. - * - * @param hierarchyUniqueName the unique name of the hierarchy which filter members to be cleared. - */ - removeAllFilterMembers(hierarchyUniqueName: string): void; + /** + * Removes all members from the list of filter members and the filter for the specified hierarchy is cleared. + * + * @param hierarchyUniqueName the unique name of the hierarchy which filter members to be cleared. + */ + removeAllFilterMembers(hierarchyUniqueName: string): void; - /** - * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given level filter member. - * - * @param levelUniqueName the unique name of the level whose active filter members are returned. - */ - getMembersOfLevel(levelUniqueName: string): void; + /** + * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given level filter member. + * + * @param levelUniqueName the unique name of the level whose active filter members are returned. + */ + getMembersOfLevel(levelUniqueName: string): void; - /** - * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given hierarchy filter member. - * - * @param hierarchyUniqueName the unique name of the hierarchy whose active filter members are returned. - */ - getMembersOfHierarchy(hierarchyUniqueName: string): void; + /** + * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects of selected for given hierarchy filter member. + * + * @param hierarchyUniqueName the unique name of the hierarchy whose active filter members are returned. + */ + getMembersOfHierarchy(hierarchyUniqueName: string): void; - /** - * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects that are children of the current member. - * - * @param memberUniqueName the unique name of the member whose active filter members are returned. - */ - getMembersOfMember(memberUniqueName: string): void; - } + /** + * Returns Promise which on completion provides an array of $.ig.OlapResultAxisMember objects that are children of the current member. + * + * @param memberUniqueName the unique name of the member whose active filter members are returned. + */ + getMembersOfMember(memberUniqueName: string): void; +} } interface IgniteUIStatic { OlapFlatDataSource: typeof Infragistics.OlapFlatDataSource; } declare namespace Infragistics { - class OlapMetadataTreeItem { - /** - * Returns the OLAP metadata item that this tree item represents which is an object of type $.ig.Cube, $.ig.Dimension, $.ig.Hierarchy, $.ig.Measure, $.ig.Level. - */ - item(): Object; +export class OlapMetadataTreeItem { - /** - * Returns the metadata tree item type which is a value from the $.ig.MetadataTreeItemType enumeration. - * - * $.ig.MetadataTreeItemType.prototype.cube = 0; - * Item type for the cube tree items. Contain an item() of type $.ig.Cube. - * - * $.ig.MetadataTreeItemType.prototype.dimension = 1; - * Item type for the dimension tree items. Contain an item() of type $.ig.Dimension. - * - * $.ig.MetadataTreeItemType.prototype.group = 2; - * Item type for the group tree items. Does not have item(). - * - * $.ig.MetadataTreeItemType.prototype.userDefinedHierarchy = 3; - * Item type for the userDefinedHierarchy tree items. Contain an item() of type $.ig.Hierarchy. - * - * $.ig.MetadataTreeItemType.prototype.systemEnabledHierarchy = 4; - * Item type for the systemEnabledHierarchy tree items. Contain an item() of type $.ig.Hierarchy. - * - * $.ig.MetadataTreeItemType.prototype.parentChildHierarchy = 5; - * Item type for the parentChildHierarchy tree items. Contain an item() of type $.ig.Hierarchy. - * - * $.ig.MetadataTreeItemType.prototype.measure = 6; - * Item type for the measure tree items. Contain an item() of type $.ig.Measure. - * - * $.ig.MetadataTreeItemType.prototype.level1 = 7; - * Item type for the level1 tree items. Contain an item() of type $.ig.Level. - * - * $.ig.MetadataTreeItemType.prototype.level2 = 8; - * Item type for the level2 tree items. Contain an item() of type $.ig.Level. - * - * $.ig.MetadataTreeItemType.prototype.level3 = 9; - * Item type for the level3 tree items. Contain an item() of type $.ig.Level. - * - * $.ig.MetadataTreeItemType.prototype.level4 = 10; - * Item type for the level4 tree items. Contain an item() of type $.ig.Level. - * - * $.ig.MetadataTreeItemType.prototype.level5 = 11; - * Item type for the level5 tree items. Contain an item() of type $.ig.Level. - */ - type(): number; + /** + * Returns the OLAP metadata item that this tree item represents which is an object of type $.ig.Cube, $.ig.Dimension, $.ig.Hierarchy, $.ig.Measure, $.ig.Level. + */ + item(): Object; - /** - * Returns the caption text that should be displayed for this tree item. - */ - caption(): string; + /** + * Returns the metadata tree item type which is a value from the $.ig.MetadataTreeItemType enumeration. + * + * $.ig.MetadataTreeItemType.prototype.cube = 0; + * Item type for the cube tree items. Contain an item() of type $.ig.Cube. + * + * $.ig.MetadataTreeItemType.prototype.dimension = 1; + * Item type for the dimension tree items. Contain an item() of type $.ig.Dimension. + * + * $.ig.MetadataTreeItemType.prototype.group = 2; + * Item type for the group tree items. Does not have item(). + * + * $.ig.MetadataTreeItemType.prototype.userDefinedHierarchy = 3; + * Item type for the userDefinedHierarchy tree items. Contain an item() of type $.ig.Hierarchy. + * + * $.ig.MetadataTreeItemType.prototype.systemEnabledHierarchy = 4; + * Item type for the systemEnabledHierarchy tree items. Contain an item() of type $.ig.Hierarchy. + * + * $.ig.MetadataTreeItemType.prototype.parentChildHierarchy = 5; + * Item type for the parentChildHierarchy tree items. Contain an item() of type $.ig.Hierarchy. + * + * $.ig.MetadataTreeItemType.prototype.measure = 6; + * Item type for the measure tree items. Contain an item() of type $.ig.Measure. + * + * $.ig.MetadataTreeItemType.prototype.level1 = 7; + * Item type for the level1 tree items. Contain an item() of type $.ig.Level. + * + * $.ig.MetadataTreeItemType.prototype.level2 = 8; + * Item type for the level2 tree items. Contain an item() of type $.ig.Level. + * + * $.ig.MetadataTreeItemType.prototype.level3 = 9; + * Item type for the level3 tree items. Contain an item() of type $.ig.Level. + * + * $.ig.MetadataTreeItemType.prototype.level4 = 10; + * Item type for the level4 tree items. Contain an item() of type $.ig.Level. + * + * $.ig.MetadataTreeItemType.prototype.level5 = 11; + * Item type for the level5 tree items. Contain an item() of type $.ig.Level. + */ + type(): number; - /** - * Returns the children ot this tree item. - */ - children(): Object; - } + /** + * Returns the caption text that should be displayed for this tree item. + */ + caption(): string; + + /** + * Returns the children ot this tree item. + */ + children(): Object; +} } interface OlapResultViewOptions { + /** * Optional="false" an object of type $.ig.OlapResult which represents the full cached result. */ @@ -7525,41 +7945,42 @@ interface OlapResultViewOptions { } declare namespace Infragistics { - class OlapResultView { - constructor(options: OlapResultViewOptions); +export class OlapResultView { + constructor(options: OlapResultViewOptions); - /** - * Creates a new $.ig.OlapResultView object with result object having the same structure as the original one and new visibleResult where the tuples which appear as children under specified tuple and member index are no longer present. - * - * @param axisName - * @param tupleIndex - * @param memberIndex - */ - collapseTupleMember(axisName: Object, tupleIndex: Object, memberIndex: Object): Object; + /** + * Creates a new $.ig.OlapResultView object with result object having the same structure as the original one and new visibleResult where the tuples which appear as children under specified tuple and member index are no longer present. + * + * @param axisName + * @param tupleIndex + * @param memberIndex + */ + collapseTupleMember(axisName: Object, tupleIndex: Object, memberIndex: Object): Object; - /** - * Creates a $.ig.OlapResultView view object with result object having the same structure as the original one and new visibleResult where the tuples which appear as children under specified tuple and member index are accessible as part of the visibleResult. - * - * @param axisName - * @param tupleIndex - * @param memberIndex - */ - expandTupleMember(axisName: Object, tupleIndex: Object, memberIndex: Object): Object; + /** + * Creates a $.ig.OlapResultView view object with result object having the same structure as the original one and new visibleResult where the tuples which appear as children under specified tuple and member index are accessible as part of the visibleResult. + * + * @param axisName + * @param tupleIndex + * @param memberIndex + */ + expandTupleMember(axisName: Object, tupleIndex: Object, memberIndex: Object): Object; - /** - * Creates a new $.ig.OlapResultView object as the axis specified by axisName of the original result object is extended with the tuples of the same axis found into supplied partialResult object. - * - * @param partialResult - * @param axisName - */ - extend(partialResult: Object, axisName: Object): Object; - } + /** + * Creates a new $.ig.OlapResultView object as the axis specified by axisName of the original result object is extended with the tuples of the same axis found into supplied partialResult object. + * + * @param partialResult + * @param axisName + */ + extend(partialResult: Object, axisName: Object): Object; +} } interface IgniteUIStatic { OlapResultView: typeof Infragistics.OlapResultView; } interface OlapTableViewOptionsViewSettings { + /** * Optional="false" a value indicating whether parent for columns is in front of its children. * If set to true the query set sorts members in a level in their natural order. Their natural order is the default ordering of the members along the hierarchy when no other sort conditions are specified. @@ -7593,6 +8014,7 @@ interface OlapTableViewOptionsViewSettings { } interface OlapTableViewOptions { + /** * Optional="false" an object of type $.ig.OlapResult. */ @@ -7620,648 +8042,660 @@ interface OlapTableViewOptions { } declare namespace Infragistics { - class OlapTableView { - constructor(options: OlapTableViewOptions); +export class OlapTableView { + constructor(options: OlapTableViewOptions); - /** - * Initializes the table view object as its rowHeaders, columnHeaders and resultCells are created for the result object the table view is related to. - * Applies the items from the columnSortDirections and levelDortDirections to produce the sorted result. - */ - initialize(): void; + /** + * Initializes the table view object as its rowHeaders, columnHeaders and resultCells are created for the result object the table view is related to. + * Applies the items from the columnSortDirections and levelDortDirections to produce the sorted result. + */ + initialize(): void; - /** - * Returns the configuration object this table view is created with. - */ - viewSettings(): Object; + /** + * Returns the configuration object this table view is created with. + */ + viewSettings(): Object; - /** - * Gets or sets the column sort direction items, which will be applied when the $.ig.OlapTableView is initialized. - * - tupleIndex (number): specifies the index of the tuple, which corresponds to a column in the column axis. - * - sortDirection (string: ascending|descending): indicates the sort direction for the column. The allowed values are 'ascending' (default) and 'descending'. - * - comparer (function): an optional function, which will be used to compare the cells from the column. The function should return a number: - * 1. If Cell1 < Cell2, return a value lower than 0. - * 2. If Cell1 == Cell2, return 0. - * 3. If Cell1 > Cell2, return a value greater than 0. - * - * @param columnSortDirections an array of objects, which have the following properties: - */ - columnSortDirections(columnSortDirections?: any[]): any[]; + /** + * Gets or sets the column sort direction items, which will be applied when the $.ig.OlapTableView is initialized. + * - tupleIndex (number): specifies the index of the tuple, which corresponds to a column in the column axis. + * - sortDirection (string: ascending|descending): indicates the sort direction for the column. The allowed values are 'ascending' (default) and 'descending'. + * - comparer (function): an optional function, which will be used to compare the cells from the column. The function should return a number: + * 1. If Cell1 < Cell2, return a value lower than 0. + * 2. If Cell1 == Cell2, return 0. + * 3. If Cell1 > Cell2, return a value greater than 0. + * + * @param columnSortDirections an array of objects, which have the following properties: + */ + columnSortDirections(columnSortDirections?: any[]): any[]; - /** - * Returns the column sort direction items, which were applied during the $.ig.OlapTableView initialization. - */ - appliedColumnSortDirections(): any[]; + /** + * Returns the column sort direction items, which were applied during the $.ig.OlapTableView initialization. + */ + appliedColumnSortDirections(): any[]; - /** - * Gets or sets the level sort direction items, which will be applied when the $.ig.OlapTableView is - * - levelUniqueName (string): the name of the level to be sorted. - * - sortDirection (string: ascending|descending): indicates the sort direction for the level. The allowed values are 'ascending' (default) and 'descending'. - * - sortBehavior (string: alphabetical|system): indicates the type of sorting to be applied. The allowed values are 'alphabetical' (default) and 'system'. - * - * @param levelSortDirections an array of objects, which have the following properties: - */ - levelSortDirections(levelSortDirections?: any[]): any[]; + /** + * Gets or sets the level sort direction items, which will be applied when the $.ig.OlapTableView is + * - levelUniqueName (string): the name of the level to be sorted. + * - sortDirection (string: ascending|descending): indicates the sort direction for the level. The allowed values are 'ascending' (default) and 'descending'. + * - sortBehavior (string:alphabetical|system): indicates the type of sorting to be applied. The allowed values are 'alphabetical' (default) and 'system'. + * + * @param levelSortDirections an array of objects, which have the following properties: + */ + levelSortDirections(levelSortDirections?: any[]): any[]; - /** - * Returns the level sort direction items, which were applied during the $.ig.OlapTableView initialization. - */ - appliedLevelSortDirections(): any[]; + /** + * Returns the level sort direction items, which were applied during the $.ig.OlapTableView initialization. + */ + appliedLevelSortDirections(): any[]; - /** - * Returns a javascript object, which maps the applied level sort directions to the axis name, hierarchy index in the axis and the level depth. - * It is used internally to determine, which $.ig.OlapTableViewHeaderCell needs to display a sorting indicator in the user interface. - */ - appliedSortDirectionsMap(): Object; + /** + * Returns a javascript object, which maps the applied level sort directions to the axis name, hierarchy index in the axis and the level depth. + * It is used internally to determine, which $.ig.OlapTableViewHeaderCell needs to display a sorting indicator in the user interface. + */ + appliedSortDirectionsMap(): Object; - /** - * Returns the table row headers. - */ - rowHeaders(): any[]; + /** + * Returns the table row headers. + */ + rowHeaders(): any[]; - /** - * Returns the table column headers. - */ - columnHeaders(): any[]; + /** + * Returns the table column headers. + */ + columnHeaders(): any[]; - /** - * Returns the table result cells ordered as if the grid is iterated row by row. - */ - resultCells(): any[]; + /** + * Returns the table result cells ordered as if the grid is iterated row by row. + */ + resultCells(): any[]; - /** - * Returns the sorted $.ig.OlapResult object. - */ - result(): Object; - } + /** + * Returns the sorted $.ig.OlapResult object. + */ + result(): Object; +} } interface IgniteUIStatic { OlapTableView: typeof Infragistics.OlapTableView; } declare namespace Infragistics { - class OlapTableViewHeaderCell { - /** - * Returns the caption for the header cell. - */ - caption(): string; +export class OlapTableViewHeaderCell { - /** - * Returns the expaned state for the header cell. - */ - isExpanded(): boolean; + /** + * Returns the caption for the header cell. + */ + caption(): string; - /** - * Indicates whether the header cell can be expanded. - */ - isExpanable(): boolean; + /** + * Returns the expaned state for the header cell. + */ + isExpanded(): boolean; - /** - * Returns the row index for the header cell. - */ - rowIndex(): number; + /** + * Indicates whether the header cell can be expanded. + */ + isExpanable(): boolean; - /** - * Returns the row span for the header cell. - */ - rowSpan(): number; + /** + * Returns the row index for the header cell. + */ + rowIndex(): number; - /** - * Returns the column index for the header cell. - */ - columnIndex(): number; + /** + * Returns the row span for the header cell. + */ + rowSpan(): number; - /** - * Returns the column span for the header cell. - */ - columnSpan(): number; + /** + * Returns the column index for the header cell. + */ + columnIndex(): number; - /** - * Returns the name of the axis this header cell is related to. - */ - axisName(): string; + /** + * Returns the column span for the header cell. + */ + columnSpan(): number; - /** - * Returns the index of tuple in the axis this header cell is related to. - */ - tupleIndex(): number; + /** + * Returns the name of the axis this header cell is related to. + */ + axisName(): string; - /** - * Returns the index of the axis member in the tuple this header cell is related to. - */ - memberIndex(): number; - } + /** + * Returns the index of tuple in the axis this header cell is related to. + */ + tupleIndex(): number; + + /** + * Returns the index of the axis member in the tuple this header cell is related to. + */ + memberIndex(): number; +} } declare namespace Infragistics { - class OlapTableViewResultCell { - /** - * Returns the value provided by $.ig.Cell object. - */ - value(): Object; +export class OlapTableViewResultCell { - /** - * Returns the formmated value to be displayed by the data cell. - */ - formattedValue(): string; + /** + * Returns the value provided by $.ig.Cell object. + */ + value(): Object; - /** - * Returns the ordinal of this cell used to determine its position into the data cells' grid. - */ - cellOrdinal(): number; + /** + * Returns the formmated value to be displayed by the data cell. + */ + formattedValue(): string; - /** - * Returns the index of $.ig.Cell object in $.ig.OlapResult object. - */ - resultCellIndex(): number; - } + /** + * Returns the ordinal of this cell used to determine its position into the data cells' grid. + */ + cellOrdinal(): number; + + /** + * Returns the index of $.ig.Cell object in $.ig.OlapResult object. + */ + resultCellIndex(): number; +} } declare namespace Infragistics { - class Catalog { - /** - * Returns the name of the catalog. - * - * @param value - */ - name(value: Object): string; +export class Catalog { - /** - * Returns the unique name of the catalog. - * - * @param value - */ - uniqueName(value: Object): string; + /** + * Returns the name of the catalog. + * + * @param value + */ + name(value: Object): string; - /** - * Returns the caption of the catalog used when displaying the name of the catalog to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the catalog. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns the description of the catalog which is a human-readable description of the catalog - * - * @param value - */ - description(value: Object): string; - } + /** + * Returns the caption of the catalog used when displaying the name of the catalog to the user. + * + * @param value + */ + caption(value: Object): string; + + /** + * Returns the description of the catalog which is a human-readable description of the catalog + * + * @param value + */ + description(value: Object): string; +} } declare namespace Infragistics { - class Cube { - /** - * Returns the name of the cube. - * - * @param value - */ - name(value: Object): string; +export class Cube { - /** - * Returns the unique name of the cube. - * - * @param value - */ - uniqueName(value: Object): string; + /** + * Returns the name of the cube. + * + * @param value + */ + name(value: Object): string; - /** - * Returns the caption of the cube used when displaying the name of the cube to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the cube. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns a user-friendly description of the cube. - * - * @param value - */ - description(value: Object): string; + /** + * Returns the caption of the cube used when displaying the name of the cube to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the type of the cube which is a value from the $.ig.CubeType enumeration. - * - * $.ig.CubeType.prototype.cube = 0; - * $.ig.CubeType.prototype.dimension = 1; - * $.ig.CubeType.prototype.unknown = 2; - * - * @param value - */ - cubeType(value: Object): number; + /** + * Returns a user-friendly description of the cube. + * + * @param value + */ + description(value: Object): string; - /** - * Returns the date and time on which the cube was last processed. - * - * @param value - */ - lastProcessed(value: Object): Object; + /** + * Returns the type of the cube which is a value from the $.ig.CubeType enumeration. + * + * $.ig.CubeType.prototype.cube = 0; + * $.ig.CubeType.prototype.dimension = 1; + * $.ig.CubeType.prototype.unknown = 2; + * + * @param value + */ + cubeType(value: Object): number; - /** - * Returns the date and time on which the cube was last updated. - * - * @param value - */ - lastUpdated(value: Object): Object; - } + /** + * Returns the date and time on which the cube was last processed. + * + * @param value + */ + lastProcessed(value: Object): Object; + + /** + * Returns the date and time on which the cube was last updated. + * + * @param value + */ + lastUpdated(value: Object): Object; +} } declare namespace Infragistics { - class Dimension { - /** - * Returns the name of the dimension. - * - * @param value - */ - name(value: Object): string; +export class Dimension { - /** - * Returns the unique name of the dimension. - * - * @param value - */ - uniqueName(value: Object): string; + /** + * Returns the name of the dimension. + * + * @param value + */ + name(value: Object): string; - /** - * Returns the caption of the dimension used when displaying the name of the dimension to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the dimension. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns a user-friendly description of the dimension. - * - * @param value - */ - description(value: Object): string; + /** + * Returns the caption of the dimension used when displaying the name of the dimension to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the type of the dimension which is a value from the $.ig.DimensionType enumeration. - * - * $.ig.DimensionType.prototype.unknown = 0; - * $.ig.DimensionType.prototype.time = 1; - * $.ig.DimensionType.prototype.measure = 2; - * $.ig.DimensionType.prototype.other = 3; - * $.ig.DimensionType.prototype.quantitative = 5; - * $.ig.DimensionType.prototype.accounts = 6; - * $.ig.DimensionType.prototype.customers = 7; - * $.ig.DimensionType.prototype.products = 8; - * $.ig.DimensionType.prototype.scenario = 9; - * $.ig.DimensionType.prototype.utility = 10; - * $.ig.DimensionType.prototype.currency = 11; - * $.ig.DimensionType.prototype.rates = 12; - * $.ig.DimensionType.prototype.channel = 13; - * $.ig.DimensionType.prototype.promotion = 14; - * $.ig.DimensionType.prototype.organization = 15; - * $.ig.DimensionType.prototype.billOfMaterials = 16; - * $.ig.DimensionType.prototype.geography = 17; - * - * @param value - */ - dimensionType(value: Object): number; - } + /** + * Returns a user-friendly description of the dimension. + * + * @param value + */ + description(value: Object): string; + + /** + * Returns the type of the dimension which is a value from the $.ig.DimensionType enumeration. + * + * $.ig.DimensionType.prototype.unknown = 0; + * $.ig.DimensionType.prototype.time = 1; + * $.ig.DimensionType.prototype.measure = 2; + * $.ig.DimensionType.prototype.other = 3; + * $.ig.DimensionType.prototype.quantitative = 5; + * $.ig.DimensionType.prototype.accounts = 6; + * $.ig.DimensionType.prototype.customers = 7; + * $.ig.DimensionType.prototype.products = 8; + * $.ig.DimensionType.prototype.scenario = 9; + * $.ig.DimensionType.prototype.utility = 10; + * $.ig.DimensionType.prototype.currency = 11; + * $.ig.DimensionType.prototype.rates = 12; + * $.ig.DimensionType.prototype.channel = 13; + * $.ig.DimensionType.prototype.promotion = 14; + * $.ig.DimensionType.prototype.organization = 15; + * $.ig.DimensionType.prototype.billOfMaterials = 16; + * $.ig.DimensionType.prototype.geography = 17; + * + * @param value + */ + dimensionType(value: Object): number; +} } declare namespace Infragistics { - class Hierarchy { - /** - * Returns the name of the hierarchy. - * - * @param value - */ - name(value: Object): string; +export class Hierarchy { - /** - * Returns the unique name of the hierarchy. - * - * @param value - */ - uniqueName(value: Object): string; + /** + * Returns the name of the hierarchy. + * + * @param value + */ + name(value: Object): string; - /** - * Returns the caption of the hierarchy used when displaying the name of the hierarchy to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the hierarchy. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns a user-friendly description of the hierarchy. - * - * @param value - */ - description(value: Object): string; + /** + * Returns the caption of the hierarchy used when displaying the name of the hierarchy to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the unique name of the default member for the hierarchy. - * - * @param value - */ - defaultMember(value: Object): string; + /** + * Returns a user-friendly description of the hierarchy. + * + * @param value + */ + description(value: Object): string; - /** - * Returns the unique name of the 'All' member for the hierarchy. - * - * @param value - */ - allMember(value: Object): string; + /** + * Returns the unique name of the default member for the hierarchy. + * + * @param value + */ + defaultMember(value: Object): string; - /** - * Returns the unique name of the dimension that contains the hierarchy. - * - * @param value - */ - dimensionUniqueName(value: Object): string; + /** + * Returns the unique name of the 'All' member for the hierarchy. + * + * @param value + */ + allMember(value: Object): string; - /** - * Returns the source of the hierarchy which is a value from the $.ig.HierarchyOrigin enumeration. - * - * $.ig.HierarchyOrigin.prototype.userDefined = 1; - * Identifies user defined hierarchies. - * - * $.ig.HierarchyOrigin.prototype.systemEnabled = 2; - * Identifies attribute hierarchies. - * - * $.ig.HierarchyOrigin.prototype.systemInternal = 4; - * Identifies attributes with no attribute . - * - * @param value - */ - hierarchyOrigin(value: Object): number; + /** + * Returns the unique name of the dimension that contains the hierarchy. + * + * @param value + */ + dimensionUniqueName(value: Object): string; - /** - * Returns the hierarchy display folder path to be used when displaying the hierarchy in the user interface. - * Folder names will be separated by a semicolon (;). Nested folders are indicated by a backslash (\). - * - * @param value - */ - hierarchyDisplayFolder(value: Object): string; - } + /** + * Returns the source of the hierarchy which is a value from the $.ig.HierarchyOrigin enumeration. + * + * $.ig.HierarchyOrigin.prototype.userDefined = 1; + * Identifies user defined hierarchies. + * + * $.ig.HierarchyOrigin.prototype.systemEnabled = 2; + * Identifies attribute hierarchies. + * + * $.ig.HierarchyOrigin.prototype.systemInternal = 4; + * Identifies attributes with no attribute . + * + * @param value + */ + hierarchyOrigin(value: Object): number; + + /** + * Returns the hierarchy display folder path to be used when displaying the hierarchy in the user interface. + * Folder names will be separated by a semicolon (;). Nested folders are indicated by a backslash (\). + * + * @param value + */ + hierarchyDisplayFolder(value: Object): string; +} } declare namespace Infragistics { - class Measure { - /** - * Returns the name of the measure. - * - * @param value - */ - name(value: Object): string; +export class Measure { - /** - * Returns the unique name of the measure. - * - * @param value - */ - uniqueName(value: Object): string; + /** + * Returns the name of the measure. + * + * @param value + */ + name(value: Object): string; - /** - * Returns the caption of the measure used when displaying the name of the measure to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the measure. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns a user-friendly description of the measure. - * - * @param value - */ - description(value: Object): string; + /** + * Returns the caption of the measure used when displaying the name of the measure to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the name of the measure group this measure belongs to. - * - * @param value - */ - measureGroupName(value: Object): string; + /** + * Returns a user-friendly description of the measure. + * + * @param value + */ + description(value: Object): string; - /** - * Returns the aggregator type that identifies how a measure was derived. It is a value from the $.ig.AggregatorType enumeration. - * - * $.ig.AggregatorType.prototype.unknown = 0; - * The aggregated function is undefined. - * - * $.ig.AggregatorType.prototype.sum = 1; - * The aggregated function adds all values. - * - * $.ig.AggregatorType.prototype.count = 2; - * The aggregated function will count the number of the values. - * - * $.ig.AggregatorType.prototype.min = 3; - * The aggregated function will returns the smallest value. - * - * $.ig.AggregatorType.prototype.max = 4; - * The aggregated function will returns the largest value. - * - * $.ig.AggregatorType.prototype.average = 5; - * The aggregated function will returns the average of cells value. - * - * $.ig.AggregatorType.prototype.variance = 6; - * The aggregated function will estimates variance based on the sample. - * - * $.ig.AggregatorType.prototype.std = 7; - * The aggregated function will estimates the standart deviation based on sample. - * - * $.ig.AggregatorType.prototype.distinctCount = 8; - * The aggregated function will returns the number of distinct, nonempty tuples in a set. - * - * $.ig.AggregatorType.prototype.none = 9; - * No aggregation performed. - * - * $.ig.AggregatorType.prototype.averageOfChildren = 10; - * The aggregated function will returns the average of the measure's children. - * - * $.ig.AggregatorType.prototype.firstNonEmpty = 13; - * The aggregated function will returns the measure's first nonempty member. - * - * $.ig.AggregatorType.prototype.lastNonEmpty = 14; - * The aggregated function will returns the measure's last nonempty member. - * - * $.ig.AggregatorType.prototype.byAccount = 15; - * Aggregated by the aggregation function associated with the specified account type of an attribute in an account dimension. - * - * $.ig.AggregatorType.prototype.calculated = 127; - * The aggregated function will returns the result derived from a formula. - * - * @param value - */ - aggregatorType(value: Object): number; + /** + * Returns the name of the measure group this measure belongs to. + * + * @param value + */ + measureGroupName(value: Object): string; - /** - * Returns the default format string for the measure. - * - * @param value - */ - defaultFormatString(value: Object): string; + /** + * Returns the aggregator type that identifies how a measure was derived. It is a value from the $.ig.AggregatorType enumeration. + * + * $.ig.AggregatorType.prototype.unknown = 0; + * The aggregated function is undefined. + * + * $.ig.AggregatorType.prototype.sum = 1; + * The aggregated function adds all values. + * + * $.ig.AggregatorType.prototype.count = 2; + * The aggregated function will count the number of the values. + * + * $.ig.AggregatorType.prototype.min = 3; + * The aggregated function will returns the smallest value. + * + * $.ig.AggregatorType.prototype.max = 4; + * The aggregated function will returns the largest value. + * + * $.ig.AggregatorType.prototype.average = 5; + * The aggregated function will returns the average of cells value. + * + * $.ig.AggregatorType.prototype.variance = 6; + * The aggregated function will estimates variance based on the sample. + * + * $.ig.AggregatorType.prototype.std = 7; + * The aggregated function will estimates the standart deviation based on sample. + * + * $.ig.AggregatorType.prototype.distinctCount = 8; + * The aggregated function will returns the number of distinct, nonempty tuples in a set. + * + * $.ig.AggregatorType.prototype.none = 9; + * No aggregation performed. + * + * $.ig.AggregatorType.prototype.averageOfChildren = 10; + * The aggregated function will returns the average of the measure's children. + * + * $.ig.AggregatorType.prototype.firstNonEmpty = 13; + * The aggregated function will returns the measure's first nonempty member. + * + * $.ig.AggregatorType.prototype.lastNonEmpty = 14; + * The aggregated function will returns the measure's last nonempty member. + * + * $.ig.AggregatorType.prototype.byAccount = 15; + * Aggregated by the aggregation function associated with the specified account type of an attribute in an account dimension. + * + * $.ig.AggregatorType.prototype.calculated = 127; + * The aggregated function will returns the result derived from a formula. + * + * @param value + */ + aggregatorType(value: Object): number; - /** - * Returns the measure display folder path to be used when displaying the measure in the user interface. - * Folder names will be separated by a semicolon (;). Nested folders are indicated by a backslash (\). - * - * @param value - */ - measureDisplayFolder(value: Object): string; - } + /** + * Returns the default format string for the measure. + * + * @param value + */ + defaultFormatString(value: Object): string; + + /** + * Returns the measure display folder path to be used when displaying the measure in the user interface. + * Folder names will be separated by a semicolon (;). Nested folders are indicated by a backslash (\). + * + * @param value + */ + measureDisplayFolder(value: Object): string; +} } declare namespace Infragistics { - class Level { - /** - * Returns the name of the level. - * - * @param value - */ - name(value: Object): string; +export class Level { - /** - * Returns the unique name of the level. - * - * @param value - */ - uniqueName(value: Object): string; + /** + * Returns the name of the level. + * + * @param value + */ + name(value: Object): string; - /** - * Returns the caption of the level used when displaying the name of the level to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the level. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns a user-friendly description of the level. - * - * @param value - */ - description(value: Object): string; + /** + * Returns the caption of the level used when displaying the name of the level to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the distance of the level from the root of the level. Root level is zero (0) - * - * @param value - */ - depth(value: Object): number; + /** + * Returns a user-friendly description of the level. + * + * @param value + */ + description(value: Object): string; - /** - * Returns the unique name of the hierarchy that contains the level. - * - * @param value - */ - hierarchyUniqueName(value: Object): string; + /** + * Returns the distance of the level from the root of the level. Root level is zero (0) + * + * @param value + */ + depth(value: Object): number; - /** - * Returns the unique name of the dimension that contains the level. - * - * @param value - */ - dimensionUniqueName(value: Object): string; + /** + * Returns the unique name of the hierarchy that contains the level. + * + * @param value + */ + hierarchyUniqueName(value: Object): string; - /** - * Returns the count of all members in the level. - * - * @param value - */ - membersCount(value: Object): number; + /** + * Returns the unique name of the dimension that contains the level. + * + * @param value + */ + dimensionUniqueName(value: Object): string; - /** - * Returns a value that defines how the level was sourced. - * - * @param value - */ - levelOrigin(value: Object): number; + /** + * Returns the count of all members in the level. + * + * @param value + */ + membersCount(value: Object): number; - /** - * Returns the ID of the attribute that the level is sorted on. - * - * @param value - */ - levelOrderingProperty(value: Object): number; - } + /** + * Returns a value that defines how the level was sourced. + * + * @param value + */ + levelOrigin(value: Object): number; + + /** + * Returns the ID of the attribute that the level is sorted on. + * + * @param value + */ + levelOrderingProperty(value: Object): number; +} } declare namespace Infragistics { - class MeasureGroup { - /** - * Returns the name of the measure group. - * - * @param value - */ - name(value: Object): string; +export class MeasureGroup { - /** - * Returns the caption of the measure group used when displaying the name of the measure group to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the name of the measure group. + * + * @param value + */ + name(value: Object): string; - /** - * Returns a user-friendly description of the measure group. - * - * @param value - */ - description(value: Object): string; + /** + * Returns the caption of the measure group used when displaying the name of the measure group to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the name of the catalog to which this measure group belongs. - * - * @param value - */ - catalogName(value: Object): string; + /** + * Returns a user-friendly description of the measure group. + * + * @param value + */ + description(value: Object): string; - /** - * Returns the name of the cube to which this measure group belongs - * - * @param value - */ - cubeName(value: Object): string; - } + /** + * Returns the name of the catalog to which this measure group belongs. + * + * @param value + */ + catalogName(value: Object): string; + + /** + * Returns the name of the cube to which this measure group belongs + * + * @param value + */ + cubeName(value: Object): string; +} } declare namespace Infragistics { - class MeasureList { - /** - * Returns the caption of the measure list used when displaying the name of the measure list to the user. - * - * @param value - */ - caption(value: Object): string; +export class MeasureList { - /** - * Returns an array of $.ig.Measure objects this measure list is grouping. - * - * @param value - */ - measures(value: Object): any[]; - } + /** + * Returns the caption of the measure list used when displaying the name of the measure list to the user. + * + * @param value + */ + caption(value: Object): string; + + /** + * Returns an array of $.ig.Measure objects this measure list is grouping. + * + * @param value + */ + measures(value: Object): any[]; +} } declare namespace Infragistics { - class OlapResult { - /** - * Returns a value indicating whether the result object contains any data. - * - * @param value - */ - isEmpty(value: Object): boolean; +export class OlapResult { - /** - * Returns an array of $.ig.OlapResultAxis objects this result is built on. - * - * @param value - */ - axes(value: Object): any[]; + /** + * Returns a value indicating whether the result object contains any data. + * + * @param value + */ + isEmpty(value: Object): boolean; - /** - * Returns an array of $.ig.OlapResultCell objects which hold the result data. - * - * @param value - */ - cells(value: Object): any[]; - } + /** + * Returns an array of $.ig.OlapResultAxis objects this result is built on. + * + * @param value + */ + axes(value: Object): any[]; + + /** + * Returns an array of $.ig.OlapResultCell objects which hold the result data. + * + * @param value + */ + cells(value: Object): any[]; +} } interface OlapResultAxisOptions { + /** * Optional="false" array of $.ig.OlapResultTuple objects which form the axis. */ @@ -8279,25 +8713,26 @@ interface OlapResultAxisOptions { } declare namespace Infragistics { - class OlapResultAxis { - constructor(options: OlapResultAxisOptions); +export class OlapResultAxis { + constructor(options: OlapResultAxisOptions); - /** - * Returns an array of $.ig.OlapResultTuple objects which form the axis. - */ - tuples(): any[]; + /** + * Returns an array of $.ig.OlapResultTuple objects which form the axis. + */ + tuples(): any[]; - /** - * Returns the count of the $.ig.OlapResultAxisMember objects of each tuple. - */ - tupleSize(): number; - } + /** + * Returns the count of the $.ig.OlapResultAxisMember objects of each tuple. + */ + tupleSize(): number; +} } interface IgniteUIStatic { OlapResultAxis: typeof Infragistics.OlapResultAxis; } interface OlapResultTupleOptions { + /** * Optional="false" array of $.ig.OlapResultAxisMember objects which form the tuple object. */ @@ -8310,112 +8745,115 @@ interface OlapResultTupleOptions { } declare namespace Infragistics { - class OlapResultTuple { - constructor(options: OlapResultTupleOptions); +export class OlapResultTuple { + constructor(options: OlapResultTupleOptions); - /** - * Returns an array of $.ig.OlapResultTuple objects which form the axis. - */ - members(): any[]; - } + /** + * Returns an array of $.ig.OlapResultTuple objects which form the axis. + */ + members(): any[]; +} } interface IgniteUIStatic { OlapResultTuple: typeof Infragistics.OlapResultTuple; } declare namespace Infragistics { - class OlapResultAxisMember { - /** - * Returns the unique name of the axis member. - * - * @param value - */ - uniqueName(value: Object): string; +export class OlapResultAxisMember { - /** - * Returns the caption of the axis member used when displaying the name of the axis member to the user. - * - * @param value - */ - caption(value: Object): string; + /** + * Returns the unique name of the axis member. + * + * @param value + */ + uniqueName(value: Object): string; - /** - * Returns the unique name of the level this member belongs to. - * - * @param value - */ - levelUniqueName(value: Object): string; + /** + * Returns the caption of the axis member used when displaying the name of the axis member to the user. + * + * @param value + */ + caption(value: Object): string; - /** - * Returns the unique name of the hierarchy that contains the level. - * - * @param value - */ - hierarchyUniqueName(value: Object): string; + /** + * Returns the unique name of the level this member belongs to. + * + * @param value + */ + levelUniqueName(value: Object): string; - /** - * Returns the distance of member parent level from the root of the level. Root level is zero (0) - * - * @param value - */ - levelNumber(value: Object): number; + /** + * Returns the unique name of the hierarchy that contains the level. + * + * @param value + */ + hierarchyUniqueName(value: Object): string; - /** - * A bitmap of the information projected by childCount, drilledDown and parentSameAsPrev properties. - * - * @param value - */ - displayInfo(value: Object): number; + /** + * Returns the distance of member parent level from the root of the level. Root level is zero (0) + * + * @param value + */ + levelNumber(value: Object): number; - /** - * Returns the count of children members this member has. - * - * @param value - */ - childCount(value: Object): number; + /** + * A bitmap of the information projected by childCount, drilledDown and parentSameAsPrev properties. + * + * @param value + */ + displayInfo(value: Object): number; - /** - * Returns a value that indicates whether at least one child of this member appears on the axis, immediately following all occurrences of that member. This can be used by applications to display a "+" or a "-" next to the member. - * - * @param value - */ - drilledDown(value: Object): boolean; + /** + * Returns the count of children members this member has. + * + * @param value + */ + childCount(value: Object): number; - /** - * Returns a value that indicates whether the parent of this member is the same as the parent of the member preceding all occurrences of the current member. - * - * @param value - */ - parentSameAsPrev(value: Object): boolean; + /** + * Returns a value that indicates whether at least one child of this member appears on the axis, immediately following all occurrences of that member. This can be used by applications to display a "+" or a "-" next to the member. + * + * @param value + */ + drilledDown(value: Object): boolean; - /** - * Returns a key value map of the members' properties. By default only 'PARENT_UNIQUE_NAME' and 'CHILDREN_CARDINALITY' properties are available. - * - * @param value - */ - properties(value: Object): Object; - } + /** + * Returns a value that indicates whether the parent of this member is the same as the parent of the member preceding all occurrences of the current member. + * + * @param value + */ + parentSameAsPrev(value: Object): boolean; + + /** + * Returns a key value map of the members' properties. By default only 'PARENT_UNIQUE_NAME' and 'CHILDREN_CARDINALITY' properties are available. + * + * @param value + */ + properties(value: Object): Object; +} } declare namespace Infragistics { - class OlapResultCell { - /** - * Returns the position of the cell when cells are iterated row by row. - * - * @param value - */ - cellOrdinal(value: Object): number; +export class OlapResultCell { - /** - * Returns a key value map of the cell's properties. Currently only 'Value' and 'FmtValue' properties are available. - * - * @param value - */ - properties(value: Object): Object; - } + /** + * Returns the position of the cell when cells are iterated row by row. + * + * @param value + */ + cellOrdinal(value: Object): number; + + /** + * Returns a key value map of the cell's properties. Currently only 'Value' and 'FmtValue' properties are available. + * + * @param value + */ + properties(value: Object): Object; +} } interface IgTemplatingRegExp { + /** * Option for IgTemplatingRegExp */ @@ -8423,26 +8861,26 @@ interface IgTemplatingRegExp { } declare namespace Infragistics { - class igTemplating { - constructor(regExp: IgTemplatingRegExp); +export class igTemplating { + constructor(regExp: IgTemplatingRegExp); - /** - * Populates the given template with the provided data. If data is a function that requires arguments, the arguments need to be provided as an array following the data. tmpl(template, data[, args]) - * - * @param template Specifies the template string - * @param data Specifies the data to be templated in the template. If function is provided, then it has to be object or array returning function, possible receiving arguments array which can be specified as the third parameter - * @param args If function is provided as the second parameter, then this parameter is the arguments for the function. - */ - tmpl(template: string, data: Object, args?: any[]): string; - clearTmplCache(): void; + /** + * Populates the given template with the provided data. If data is a function that requires arguments, the arguments need to be provided as an array following the data. tmpl(template, data[, args]) + * + * @param template Specifies the template string + * @param data Specifies the data to be templated in the template. If function is provided, then it has to be object or array returning function, possible receiving arguments array which can be specified as the third parameter + * @param args If function is provided as the second parameter, then this parameter is the arguments for the function. + */ + tmpl(template: string, data: Object, args?: any[]): string; + clearTmplCache(): void; - /** - * Encoding < > ' and " - * - * @param value The string to be encoded. - */ - encode(value: string): string; - } + /** + * Encoding < > ' and " + * + * @param value The string to be encoded. + */ + encode(value: string): string; +} } interface IgniteUIStatic { igTemplating: typeof Infragistics.igTemplating; @@ -8453,6 +8891,7 @@ interface ErrorMessageDisplayingEvent { } interface ErrorMessageDisplayingEventUIParam { + /** * Used to obtain reference to the barcode widget. */ @@ -8469,6 +8908,7 @@ interface DataChangedEvent { } interface DataChangedEventUIParam { + /** * Used to obtain reference to the barcode widget. */ @@ -8481,6 +8921,7 @@ interface DataChangedEventUIParam { } interface IgQRCodeBarcode { + /** * The width of the barcode. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -8577,46 +9018,46 @@ interface IgQRCodeBarcode { * * Valid values: * "undefined" If set, the QR code barcode sets internally the smallest version that will accommodate the data. - * "version1" Version1 defines size of 21x21 modules for the symbol. - * "version2" Version2 defines size of 25x25 modules for the symbol. - * "version3" Version3 defines size of 29x29 modules for the symbol. - * "version4" Version4 defines size of 33x33 modules for the symbol. - * "version5" Version5 defines size of 37x37 modules for the symbol. - * "version6" Version6 defines size of 41x41 modules for the symbol. - * "version7" Version7 defines size of 45x45 modules for the symbol. - * "version8" Version8 defines size of 49x49 modules for the symbol. - * "version9" Version9 defines size of 53x53 modules for the symbol. - * "version10" Version10 defines size of 57x57 modules for the symbol. - * "version11" Version11 defines size of 61x61 modules for the symbol. - * "version12" Version12 defines size of 65x65 modules for the symbol. - * "version13" Version13 defines size of 69x69 modules for the symbol. - * "version14" Version14 defines size of 73x73 modules for the symbol. - * "version15" Version15 defines size of 77x77 modules for the symbol. - * "version16" Version16 defines size of 81x81 modules for the symbol. - * "version17" Version17 defines size of 85x85 modules for the symbol. - * "version18" Version18 defines size of 89x89 modules for the symbol. - * "version19" Version19 defines size of 93x93 modules for the symbol. - * "version20" Version20 defines size of 97x97 modules for the symbol. - * "version21" Version21 defines size of 101x101 modules for the symbol. - * "version22" Version22 defines size of 105x105 modules for the symbol. - * "version23" Version23 defines size of 109x109 modules for the symbol. - * "version24" Version24 defines size of 113x113 modules for the symbol. - * "version25" Version25 defines size of 117x117 modules for the symbol. - * "version26" Version26 defines size of 121x121 modules for the symbol. - * "version27" Version27 defines size of 125x125 modules for the symbol. - * "version28" Version28 defines size of 129x129 modules for the symbol. - * "version29" Version29 defines size of 133x133 modules for the symbol. - * "version30" Version30 defines size of 137x137 modules for the symbol. - * "version31" Version31 defines size of 141x141 modules for the symbol. - * "version32" Version32 defines size of 145x145 modules for the symbol. - * "version33" Version33 defines size of 149x149 modules for the symbol. - * "version34" Version34 defines size of 153x153 modules for the symbol. - * "version35" Version35 defines size of 157x157 modules for the symbol. - * "version36" Version36 defines size of 161x161 modules for the symbol. - * "version37" Version37 defines size of 165x165 modules for the symbol. - * "version38" Version38 defines size of 169x169 modules for the symbol. - * "version39" Version39 defines size of 173x173 modules for the symbol. - * "version40" Version40 defines size of 177x177 modules for the symbol. + * "version1" Version1 defines size of 21x21 namespaces for the symbol. + * "version2" Version2 defines size of 25x25 namespaces for the symbol. + * "version3" Version3 defines size of 29x29 namespaces for the symbol. + * "version4" Version4 defines size of 33x33 namespaces for the symbol. + * "version5" Version5 defines size of 37x37 namespaces for the symbol. + * "version6" Version6 defines size of 41x41 namespaces for the symbol. + * "version7" Version7 defines size of 45x45 namespaces for the symbol. + * "version8" Version8 defines size of 49x49 namespaces for the symbol. + * "version9" Version9 defines size of 53x53 namespaces for the symbol. + * "version10" Version10 defines size of 57x57 namespaces for the symbol. + * "version11" Version11 defines size of 61x61 namespaces for the symbol. + * "version12" Version12 defines size of 65x65 namespaces for the symbol. + * "version13" Version13 defines size of 69x69 namespaces for the symbol. + * "version14" Version14 defines size of 73x73 namespaces for the symbol. + * "version15" Version15 defines size of 77x77 namespaces for the symbol. + * "version16" Version16 defines size of 81x81 namespaces for the symbol. + * "version17" Version17 defines size of 85x85 namespaces for the symbol. + * "version18" Version18 defines size of 89x89 namespaces for the symbol. + * "version19" Version19 defines size of 93x93 namespaces for the symbol. + * "version20" Version20 defines size of 97x97 namespaces for the symbol. + * "version21" Version21 defines size of 101x101 namespaces for the symbol. + * "version22" Version22 defines size of 105x105 namespaces for the symbol. + * "version23" Version23 defines size of 109x109 namespaces for the symbol. + * "version24" Version24 defines size of 113x113 namespaces for the symbol. + * "version25" Version25 defines size of 117x117 namespaces for the symbol. + * "version26" Version26 defines size of 121x121 namespaces for the symbol. + * "version27" Version27 defines size of 125x125 namespaces for the symbol. + * "version28" Version28 defines size of 129x129 namespaces for the symbol. + * "version29" Version29 defines size of 133x133 namespaces for the symbol. + * "version30" Version30 defines size of 137x137 namespaces for the symbol. + * "version31" Version31 defines size of 141x141 namespaces for the symbol. + * "version32" Version32 defines size of 145x145 namespaces for the symbol. + * "version33" Version33 defines size of 149x149 namespaces for the symbol. + * "version34" Version34 defines size of 153x153 namespaces for the symbol. + * "version35" Version35 defines size of 157x157 namespaces for the symbol. + * "version36" Version36 defines size of 161x161 namespaces for the symbol. + * "version37" Version37 defines size of 165x165 namespaces for the symbol. + * "version38" Version38 defines size of 169x169 namespaces for the symbol. + * "version39" Version39 defines size of 173x173 namespaces for the symbol. + * "version40" Version40 defines size of 177x177 namespaces for the symbol. */ sizeVersion?: string; @@ -8685,6 +9126,7 @@ interface IgQRCodeBarcode { [optionName: string]: any; } interface IgQRCodeBarcodeMethods { + /** * Returns information about how the barcode is rendered. */ @@ -9017,6 +9459,7 @@ interface DataBindingEvent { } interface DataBindingEventUIParam { + /** * Used to obtain reference to chart widget. */ @@ -9033,6 +9476,7 @@ interface DataBoundEvent { } interface DataBoundEventUIParam { + /** * Used to obtain reference to chart widget. */ @@ -9054,6 +9498,7 @@ interface UpdateTooltipEvent { } interface UpdateTooltipEventUIParam { + /** * Used to obtain reference to chart widget. */ @@ -9090,6 +9535,7 @@ interface HideTooltipEvent { } interface HideTooltipEventUIParam { + /** * Used to obtain reference to chart widget. */ @@ -9107,6 +9553,7 @@ interface HideTooltipEventUIParam { } interface IgBaseChart { + /** * The width of the chart. */ @@ -9202,6 +9649,7 @@ interface IgBaseChart { [optionName: string]: any; } interface IgBaseChartMethods { + /** * Find index of item within actual data used by chart. * @@ -9263,7 +9711,7 @@ interface IgBaseChartMethods { /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. */ @@ -9271,7 +9719,7 @@ interface IgBaseChartMethods { /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source where the new item has been inserted. @@ -9281,7 +9729,7 @@ interface IgBaseChartMethods { /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source from where the old item has been removed. @@ -9303,6 +9751,11 @@ interface IgBaseChartMethods { * Destroys widget. */ destroy(): void; + + /** + * Forces any pending deferred work to render on the chart before continuing + */ + flush(): void; } interface JQuery { data(propertyName: "igBaseChart"): IgBaseChartMethods; @@ -9323,6 +9776,7 @@ interface JQuery { igBaseChart(methodName: "chart"): Object; igBaseChart(methodName: "dataBind"): void; igBaseChart(methodName: "destroy"): void; + igBaseChart(methodName: "flush"): void; /** * The width of the chart. @@ -9534,6 +9988,7 @@ interface JQuery { igBaseChart(methodName: string, ...methodParams: any[]): any; } interface IgBulletGraphRange { + /** * Gets or sets the name of the range. */ @@ -9599,6 +10054,31 @@ interface FormatLabelEvent { } interface FormatLabelEventUIParam { + + /** + * Used to obtain reference to the bullet graph widget. + */ + owner?: any; + + /** + * Used to obtain the minimum value of the bullet graph scale. + */ + actualMinimumValue?: any; + + /** + * Used to obtain the maximum value of the bullet graph scale. + */ + actualMaximumValue?: any; + + /** + * Used to obtain the value on the the bullet graph scale associated with the label. + */ + value?: any; + + /** + * Used to obtain the string value of the label. + */ + label?: any; } interface AlignLabelEvent { @@ -9606,9 +10086,55 @@ interface AlignLabelEvent { } interface AlignLabelEventUIParam { + + /** + * Used to obtain reference to gauge widget. + */ + owner?: any; + + /** + * Used to obtain the minimum value of the bullet graph scale. + */ + actualMinimumValue?: any; + + /** + * Used to obtain the maximum value of the bullet graph scale. + */ + actualMaximumValue?: any; + + /** + * Used to obtain the value on the the bullet graph scale associated with the label. + */ + value?: any; + + /** + * Used to obtain the string value of the label. + */ + label?: any; + + /** + * Used to obtain the width of the label. + */ + width?: any; + + /** + * Used to obtain the height of the label. + */ + height?: any; + + /** + * Used to obtain the X offset of the label on the bullet graph scale. + */ + offsetX?: any; + + /** + * Used to obtain the Y offset of the label on the bullet graph scale. + */ + offsetY?: any; } interface IgBulletGraph { + /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -9643,11 +10169,26 @@ interface IgBulletGraph { * Gets or sets the orientation of the scale. * * Valid values: - * "horizontal" - * "vertical" + * "horizontal" The scale has a horizontal orientation. + * "vertical" The scale has a vertical orientation. */ orientation?: string; + /** + * Gets or sets the background brush for the scale. + */ + scaleBackgroundBrush?: string; + + /** + * Gets or sets the background outline for the scale. + */ + scaleBackgroundOutline?: string; + + /** + * Gets or sets the background outline thickness for the scale. + */ + scaleBackgroundThickness?: number; + /** * Gets or sets a collection of brushes to be used as the palette for bullet graph ranges. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. @@ -9913,8 +10454,38 @@ interface IgBulletGraph { * Gets or sets the font. */ font?: string; + + /** + * Gets or sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + */ pixelScalingRatio?: number; + + /** + * Event which is raised when a label of the bullet graph is formatted. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the bullet graph widget. + * Use ui.actualMinimumValue to obtain the minimum value of the bullet graph scale. + * Use ui.actualMaximumValue to obtain the maximum value of the bullet graph scale. + * Use ui.value to obtain the value on the the bullet graph scale associated with the label. + * Use ui.label to obtain the string value of the label. + */ formatLabel?: FormatLabelEvent; + + /** + * Event which is raised when a label of the bullet graph is aligned along the scale. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the bullet graph scale. + * Use ui.actualMaximumValue to obtain the maximum value of the bullet graph scale. + * Use ui.value to obtain the value on the the bullet graph scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the bullet graph scale. + * Use ui.offsetY to obtain the Y offset of the label on the bullet graph scale. + */ alignLabel?: AlignLabelEvent; /** @@ -9923,6 +10494,7 @@ interface IgBulletGraph { [optionName: string]: any; } interface IgBulletGraphMethods { + /** * Returns a string containing the names of all the ranges delimited with a \n symbol. */ @@ -10067,6 +10639,42 @@ interface JQuery { */ igBulletGraph(optionLiteral: 'option', optionName: "orientation", optionValue: string): void; + /** + * Gets the background brush for the scale. + */ + igBulletGraph(optionLiteral: 'option', optionName: "scaleBackgroundBrush"): string; + + /** + * Sets the background brush for the scale. + * + * @optionValue New value to be set. + */ + igBulletGraph(optionLiteral: 'option', optionName: "scaleBackgroundBrush", optionValue: string): void; + + /** + * Gets the background outline for the scale. + */ + igBulletGraph(optionLiteral: 'option', optionName: "scaleBackgroundOutline"): string; + + /** + * Sets the background outline for the scale. + * + * @optionValue New value to be set. + */ + igBulletGraph(optionLiteral: 'option', optionName: "scaleBackgroundOutline", optionValue: string): void; + + /** + * Gets the background outline thickness for the scale. + */ + igBulletGraph(optionLiteral: 'option', optionName: "scaleBackgroundThickness"): number; + + /** + * Sets the background outline thickness for the scale. + * + * @optionValue New value to be set. + */ + igBulletGraph(optionLiteral: 'option', optionName: "scaleBackgroundThickness", optionValue: number): void; + /** * Gets a collection of brushes to be used as the palette for bullet graph ranges. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. @@ -10700,26 +11308,74 @@ interface JQuery { igBulletGraph(optionLiteral: 'option', optionName: "font", optionValue: string): void; /** + * Gets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ igBulletGraph(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; /** + * Sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + * + * @optionValue New value to be set. */ igBulletGraph(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; /** + * Event which is raised when a label of the bullet graph is formatted. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the bullet graph widget. + * Use ui.actualMinimumValue to obtain the minimum value of the bullet graph scale. + * Use ui.actualMaximumValue to obtain the maximum value of the bullet graph scale. + * Use ui.value to obtain the value on the the bullet graph scale associated with the label. + * Use ui.label to obtain the string value of the label. */ igBulletGraph(optionLiteral: 'option', optionName: "formatLabel"): FormatLabelEvent; /** + * Event which is raised when a label of the bullet graph is formatted. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the bullet graph widget. + * Use ui.actualMinimumValue to obtain the minimum value of the bullet graph scale. + * Use ui.actualMaximumValue to obtain the maximum value of the bullet graph scale. + * Use ui.value to obtain the value on the the bullet graph scale associated with the label. + * Use ui.label to obtain the string value of the label. + * + * @optionValue Define event handler function. */ igBulletGraph(optionLiteral: 'option', optionName: "formatLabel", optionValue: FormatLabelEvent): void; /** + * Event which is raised when a label of the bullet graph is aligned along the scale. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the bullet graph scale. + * Use ui.actualMaximumValue to obtain the maximum value of the bullet graph scale. + * Use ui.value to obtain the value on the the bullet graph scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the bullet graph scale. + * Use ui.offsetY to obtain the Y offset of the label on the bullet graph scale. */ igBulletGraph(optionLiteral: 'option', optionName: "alignLabel"): AlignLabelEvent; /** + * Event which is raised when a label of the bullet graph is aligned along the scale. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the bullet graph scale. + * Use ui.actualMaximumValue to obtain the maximum value of the bullet graph scale. + * Use ui.value to obtain the value on the the bullet graph scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the bullet graph scale. + * Use ui.offsetY to obtain the Y offset of the label on the bullet graph scale. + * + * @optionValue Define event handler function. */ igBulletGraph(optionLiteral: 'option', optionName: "alignLabel", optionValue: AlignLabelEvent): void; igBulletGraph(options: IgBulletGraph): JQuery; @@ -10736,6 +11392,7 @@ interface PropertyChangedEventUIParam { } interface IgCategoryChart { + /** * Gets or sets the data value corresponding to the minimum value of the Y-axis. */ @@ -10746,6 +11403,16 @@ interface IgCategoryChart { */ yAxisMaximumValue?: number; + /** + * Gets or sets the distance between the X-axis and the bottom of the chart. + */ + xAxisExtent?: number; + + /** + * Gets or sets the distance between the Y-axis and the left edge of the chart. + */ + yAxisExtent?: number; + /** * Gets or sets the left margin of chart title */ @@ -10838,16 +11505,6 @@ interface IgCategoryChart { */ yAxisLabelTextColor?: string; - /** - * Gets or sets CSS font property for labels on X-axis - */ - xAxisLabelTextStyle?: string; - - /** - * Gets or sets CSS font property for labels on Y-axis - */ - yAxisLabelTextStyle?: string; - /** * Gets or sets the left margin of chart subtitle */ @@ -10873,51 +11530,31 @@ interface IgCategoryChart { */ subtitleTextColor?: string; - /** - * Gets or sets CSS font property for the chart subtitle - */ - subtitleTextStyle?: string; - /** * Gets or sets color of chart title */ titleTextColor?: string; /** - * Gets or sets CSS font property for the chart title - */ - titleTextStyle?: string; - - /** - * Gets or sets the left margin of the chart content in the canvas + * Gets or sets the left margin of the chart content. */ leftMargin?: number; /** - * Gets or sets the top margin of the chart content in the canvas + * Gets or sets the top margin of the chart content. */ topMargin?: number; /** - * Gets or sets the right margin of the chart content in the canvas + * Gets or sets the right margin of the chart content. */ rightMargin?: number; /** - * Gets or sets the bottom margin around the chart content in the canvas + * Gets or sets the bottom margin around the chart content. */ bottomMargin?: number; - /** - * Gets or sets the extent area dedicated to the a title on the X-axis. If unspecified, this value is auto-calculated. - */ - xAxisTitleExtent?: number; - - /** - * Gets or sets the extent area dedicated to the a title on the Y-axis. If unspecified, this value is auto-calculated. - */ - yAxisTitleExtent?: number; - /** * Gets or sets the margin around a title on the X-axis */ @@ -10968,10 +11605,22 @@ interface IgCategoryChart { */ yAxisTitleBottomMargin?: number; + /** + * Gets or sets color of title on the X-axis + */ + xAxisTitleTextColor?: string; + + /** + * Gets or sets color of title on the Y-axis + */ + yAxisTitleTextColor?: string; + createWrappedTooltip?: any; + /** * Gets or sets the id of a template element to use for tooltips, or markup representing the tooltip template. */ tooltipTemplate?: string; + tooltipTemplates?: any; /** * Gets or sets function which takes an context object and returns a formatted label for the X-axis. @@ -10983,16 +11632,6 @@ interface IgCategoryChart { */ yAxisFormatLabel?: any; - /** - * Gets or sets color of title on the X-axis - */ - xAxisTitleTextColor?: string; - - /** - * Gets or sets color of title on the Y-axis - */ - yAxisTitleTextColor?: string; - /** * Gets or sets CSS font property for title on X-axis */ @@ -11004,6 +11643,26 @@ interface IgCategoryChart { yAxisTitleTextStyle?: string; widget?: any; + /** + * Gets or sets CSS font property for labels on X-axis + */ + xAxisLabelTextStyle?: string; + + /** + * Gets or sets CSS font property for labels on Y-axis + */ + yAxisLabelTextStyle?: string; + + /** + * Gets or sets CSS font property for the chart subtitle + */ + subtitleTextStyle?: string; + + /** + * Gets or sets CSS font property for the chart title + */ + titleTextStyle?: string; + /** * Gets or sets a collection of data items used to generate the chart. * Value of this property can be a list of objects containing one or more numeric properties. Additionally, if the objects in the list implement the IEnumerable interface, the Category Chart will attempt to delve into the sub-collections when reading through the data source. Databinding can be further configured by attributing the data item classes with the DataSeriesMemberIntentAttribute. @@ -11056,12 +11715,12 @@ interface IgCategoryChart { legend?: any; /** - * Gets or sets whether the chart should perform horizontal zoom when the user initiates a mouse wheel or mouse drag operation. + * Gets or sets whether the chart can be horizontally zoomed through user interaction. */ isHorizontalZoomEnabled?: boolean; /** - * Gets or sets whether the chart should perform vertical zoom when the user initiates a mouse wheel or mouse drag operation. + * Gets or sets whether the chart can be vertically zoomed through user interaction. */ isVerticalZoomEnabled?: boolean; @@ -11086,10 +11745,10 @@ interface IgCategoryChart { * Gets or sets horizontal alignment which determines the title position, relative to the left and right edges of the chart. * * Valid values: - * "left" - * "center" - * "right" - * "stretch" + * "left" Align the item to the left + * "center" Center the item + * "right" Align the item to the right + * "stretch" Stretch the item to the full width */ titleAlignment?: string; @@ -11097,29 +11756,29 @@ interface IgCategoryChart { * Gets or sets horizontal alignment which determines the subtitle position, relative to the left and right edges of the chart. * * Valid values: - * "left" - * "center" - * "right" - * "stretch" + * "left" Align the item to the left + * "center" Center the item + * "right" Align the item to the right + * "stretch" Stretch the item to the full width */ subtitleAlignment?: string; /** - * Gets or sets behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. + * Gets or sets the behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. * * * Valid values: - * "linearInterpolate" - * "dontPlot" + * "linearInterpolate" Plot the unknown value as the midpoint between surrounding known values using linear interpolation. + * "dontPlot" Do not plot the unknown value on the chart. */ unknownValuePlotting?: string; /** - * Gets or sets behavior for markers in each series which are placed too close together for the current view, resulting in a collision. + * Gets or sets the behavior for markers in each series which are placed too close together for the current view, resulting in a collision. * * Valid values: - * "none" - * "omit" + * "none" Collision avoidance is disabled. + * "omit" Items colliding with other items will be hidden from view. */ markerCollisionAvoidance?: string; @@ -11132,26 +11791,26 @@ interface IgCategoryChart { * Gets or sets the method that determines how to animate series plots when the chart is loading into view * * Valid values: - * "auto" - * "fromZero" - * "sweepFromLeft" - * "sweepFromRight" - * "sweepFromTop" - * "sweepFromBottom" - * "sweepFromCenter" - * "accordionFromLeft" - * "accordionFromRight" - * "accordionFromTop" - * "accordionFromBottom" - * "expand" - * "sweepFromCategoryAxisMinimum" - * "sweepFromCategoryAxisMaximum" - * "sweepFromValueAxisMinimum" - * "sweepFromValueAxisMaximum" - * "accordionFromCategoryAxisMinimum" - * "accordionFromCategoryAxisMaximum" - * "accordionFromValueAxisMinimum" - * "accordionFromValueAxisMaximum" + * "auto" Series transitions in an automatically chosen based on type of series and its orientation + * "fromZero" Series transitions in from the reference value of the value axis. + * "sweepFromLeft" Series sweeps in from the left + * "sweepFromRight" Series sweeps in from the right + * "sweepFromTop" Series sweeps in from the top. + * "sweepFromBottom" Series sweeps in from the bottom. + * "sweepFromCenter" Series sweeps in from the center. + * "accordionFromLeft" Series accordions in from the left. + * "accordionFromRight" Series accordions in from the right. + * "accordionFromTop" Series accordions in from the top. + * "accordionFromBottom" Series accordions in from the bottom. + * "expand" Series expands from the value midpoints. + * "sweepFromCategoryAxisMinimum" Series sweeps in from the category axis minimum. + * "sweepFromCategoryAxisMaximum" Series sweeps in from the category axis maximum. + * "sweepFromValueAxisMinimum" Series sweeps in from the value axis minimum. + * "sweepFromValueAxisMaximum" Series sweeps in from the value axis maximum. + * "accordionFromCategoryAxisMinimum" Series accordions in from the category axis minimum. + * "accordionFromCategoryAxisMaximum" Series accordions in from the category axis maximum. + * "accordionFromValueAxisMinimum" Series accordions in from the value axis minimum. + * "accordionFromValueAxisMaximum" Series accordions in from the value axis maximum. */ transitionInMode?: string; @@ -11159,11 +11818,11 @@ interface IgCategoryChart { * Gets or sets the arrival speed used for animating series plots when the chart is loading into view * * Valid values: - * "auto" - * "normal" - * "valueScaled" - * "indexScaled" - * "random" + * "auto" A speed type is automatically selected. + * "normal" All speeds are normal, data points will arrive at the same time. + * "valueScaled" Data points will arrive later if their value is further from the start point. + * "indexScaled" Data points will arrive later if their index is further from the axis origin. + * "random" Data points will arrive at random times. */ transitionInSpeedType?: string; @@ -11192,7 +11851,7 @@ interface IgCategoryChart { xAxisOverlap?: number; /** - * Gets or sets the distance between each labels and grid line along the Y-axis. + * Gets or sets the distance between each label and grid line along the Y-axis. */ yAxisInterval?: number; @@ -11343,16 +12002,6 @@ interface IgCategoryChart { */ yAxisLabelAngle?: number; - /** - * Gets or sets the distance between the X-axis and the bottom of the chart. - */ - xAxisExtent?: number; - - /** - * Gets or sets the distance between the Y-axis and the left edge of the chart. - */ - yAxisExtent?: number; - /** * Gets or sets the angle of rotation for the X-axis title. */ @@ -11379,20 +12028,20 @@ interface IgCategoryChart { * Gets or sets the formula used for calculating trend lines in this chart. * * Valid values: - * "none" - * "linearFit" - * "quadraticFit" - * "cubicFit" - * "quarticFit" - * "quinticFit" - * "logarithmicFit" - * "exponentialFit" - * "powerLawFit" - * "simpleAverage" - * "exponentialAverage" - * "modifiedAverage" - * "cumulativeAverage" - * "weightedAverage" + * "none" No trend line will be displayed. + * "linearFit" Linear fit. + * "quadraticFit" Quadratic polynomial fit. + * "cubicFit" Cubic polynomial fit. + * "quarticFit" Quartic polynomial fit. + * "quinticFit" Quintic polynomial fit. + * "logarithmicFit" Logarithmic fit. + * "exponentialFit" Exponential fit. + * "powerLawFit" Powerlaw fit. + * "simpleAverage" Simple moving average. + * "exponentialAverage" Exponential moving average. + * "modifiedAverage" Modified moving average. + * "cumulativeAverage" Cumulative moving average. + * "weightedAverage" Weighted moving average. */ trendLineType?: string; @@ -11402,13 +12051,13 @@ interface IgCategoryChart { thickness?: number; /** - * Gets or sets collection of marker shapes used for representing data points of series in this chart. + * Gets or sets the collection of marker shapes used for representing data points of series in this chart. * When MarkerTypes is null or empty, each series' marker type will be set to none or automatic, depending on the series type. */ markerTypes?: any; /** - * Gets or sets the palette of brushes used for coloring fill of data point markers. + * Gets or sets the palette of brushes used as the fill color for data point markers. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ markerBrushes?: any; @@ -11444,10 +12093,10 @@ interface IgCategoryChart { * Gets or sets the horizontal alignment of the X-axis title. * * Valid values: - * "left" - * "center" - * "right" - * "stretch" + * "left" Align the item to the left + * "center" Center the item + * "right" Align the item to the right + * "stretch" Stretch the item to the full width */ xAxisTitleAlignment?: string; @@ -11455,10 +12104,10 @@ interface IgCategoryChart { * Gets or sets the vertical alignment of the Y-axis title. * * Valid values: - * "top" - * "center" - * "bottom" - * "stretch" + * "top" Align the item to the top + * "center" Center the item + * "bottom" Align the item to the bottom + * "stretch" Stretch the item to the full height */ yAxisTitleAlignment?: string; @@ -11466,10 +12115,10 @@ interface IgCategoryChart { * Gets or sets the horizontal alignment of X-axis labels. * * Valid values: - * "left" - * "center" - * "right" - * "stretch" + * "left" Align the item to the left + * "center" Center the item + * "right" Align the item to the right + * "stretch" Stretch the item to the full width */ xAxisLabelHorizontalAlignment?: string; @@ -11477,10 +12126,10 @@ interface IgCategoryChart { * Gets or sets the horizontal alignment of Y-axis labels. * * Valid values: - * "left" - * "center" - * "right" - * "stretch" + * "left" Align the item to the left + * "center" Center the item + * "right" Align the item to the right + * "stretch" Stretch the item to the full width */ yAxisLabelHorizontalAlignment?: string; @@ -11488,10 +12137,10 @@ interface IgCategoryChart { * Gets or sets the vertical alignment of X-axis labels. * * Valid values: - * "top" - * "center" - * "bottom" - * "stretch" + * "top" Align the item to the top + * "center" Center the item + * "bottom" Align the item to the bottom + * "stretch" Stretch the item to the full height */ xAxisLabelVerticalAlignment?: string; @@ -11499,10 +12148,10 @@ interface IgCategoryChart { * Gets or sets the vertical alignment of Y-axis labels. * * Valid values: - * "top" - * "center" - * "bottom" - * "stretch" + * "top" Align the item to the top + * "center" Center the item + * "bottom" Align the item to the bottom + * "stretch" Stretch the item to the full height */ yAxisLabelVerticalAlignment?: string; @@ -11510,8 +12159,8 @@ interface IgCategoryChart { * Gets or sets the visibility of X-axis labels. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ xAxisLabelVisibility?: string; @@ -11519,10 +12168,15 @@ interface IgCategoryChart { * Gets or sets the visibility of Y-axis labels. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ yAxisLabelVisibility?: string; + + /** + * Brushes to use for drawing negative elements, when using a chart type with contextual coloring, such as Waterfall. + * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. + */ negativeOutlines?: any; /** @@ -11689,7 +12343,7 @@ interface IgCategoryChartMethods { /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. */ @@ -11697,7 +12351,7 @@ interface IgCategoryChartMethods { /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source where the new item has been inserted. @@ -11707,7 +12361,7 @@ interface IgCategoryChartMethods { /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source from where the old item has been removed. @@ -11724,6 +12378,11 @@ interface IgCategoryChartMethods { * Binds data to the chart */ dataBind(): void; + + /** + * Forces any pending deferred work to render on the chart before continuing + */ + flush(): void; } interface JQuery { data(propertyName: "igCategoryChart"): IgCategoryChartMethods; @@ -11746,6 +12405,7 @@ interface JQuery { igCategoryChart(methodName: "notifyRemoveItem", dataSource: Object, index: number, oldItem: Object): Object; igCategoryChart(methodName: "chart"): Object; igCategoryChart(methodName: "dataBind"): void; + igCategoryChart(methodName: "flush"): void; /** * Gets the data value corresponding to the minimum value of the Y-axis. @@ -11771,6 +12431,30 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisMaximumValue", optionValue: number): void; + /** + * Gets the distance between the X-axis and the bottom of the chart. + */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisExtent"): number; + + /** + * Sets the distance between the X-axis and the bottom of the chart. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisExtent", optionValue: number): void; + + /** + * Gets the distance between the Y-axis and the left edge of the chart. + */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisExtent"): number; + + /** + * Sets the distance between the Y-axis and the left edge of the chart. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisExtent", optionValue: number): void; + /** * Gets the left margin of chart title */ @@ -11991,30 +12675,6 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelTextColor", optionValue: string): void; - /** - * Gets CSS font property for labels on X-axis - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelTextStyle"): string; - - /** - * Sets CSS font property for labels on X-axis - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelTextStyle", optionValue: string): void; - - /** - * Gets CSS font property for labels on Y-axis - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelTextStyle"): string; - - /** - * Sets CSS font property for labels on Y-axis - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelTextStyle", optionValue: string): void; - /** * Gets the left margin of chart subtitle */ @@ -12075,18 +12735,6 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "subtitleTextColor", optionValue: string): void; - /** - * Gets CSS font property for the chart subtitle - */ - igCategoryChart(optionLiteral: 'option', optionName: "subtitleTextStyle"): string; - - /** - * Sets CSS font property for the chart subtitle - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "subtitleTextStyle", optionValue: string): void; - /** * Gets color of chart title */ @@ -12100,89 +12748,53 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "titleTextColor", optionValue: string): void; /** - * Gets CSS font property for the chart title - */ - igCategoryChart(optionLiteral: 'option', optionName: "titleTextStyle"): string; - - /** - * Sets CSS font property for the chart title - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "titleTextStyle", optionValue: string): void; - - /** - * Gets the left margin of the chart content in the canvas + * Gets the left margin of the chart content. */ igCategoryChart(optionLiteral: 'option', optionName: "leftMargin"): number; /** - * Sets the left margin of the chart content in the canvas + * Sets the left margin of the chart content. * * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "leftMargin", optionValue: number): void; /** - * Gets the top margin of the chart content in the canvas + * Gets the top margin of the chart content. */ igCategoryChart(optionLiteral: 'option', optionName: "topMargin"): number; /** - * Sets the top margin of the chart content in the canvas + * Sets the top margin of the chart content. * * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "topMargin", optionValue: number): void; /** - * Gets the right margin of the chart content in the canvas + * Gets the right margin of the chart content. */ igCategoryChart(optionLiteral: 'option', optionName: "rightMargin"): number; /** - * Sets the right margin of the chart content in the canvas + * Sets the right margin of the chart content. * * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "rightMargin", optionValue: number): void; /** - * Gets the bottom margin around the chart content in the canvas + * Gets the bottom margin around the chart content. */ igCategoryChart(optionLiteral: 'option', optionName: "bottomMargin"): number; /** - * Sets the bottom margin around the chart content in the canvas + * Sets the bottom margin around the chart content. * * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "bottomMargin", optionValue: number): void; - /** - * Gets the extent area dedicated to the a title on the X-axis. If unspecified, this value is auto-calculated. - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleExtent"): number; - - /** - * Sets the extent area dedicated to the a title on the X-axis. If unspecified, this value is auto-calculated. - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleExtent", optionValue: number): void; - - /** - * Gets the extent area dedicated to the a title on the Y-axis. If unspecified, this value is auto-calculated. - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleExtent"): number; - - /** - * Sets the extent area dedicated to the a title on the Y-axis. If unspecified, this value is auto-calculated. - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleExtent", optionValue: number): void; - /** * Gets the margin around a title on the X-axis */ @@ -12303,6 +12915,38 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleBottomMargin", optionValue: number): void; + /** + * Gets color of title on the X-axis + */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleTextColor"): string; + + /** + * Sets color of title on the X-axis + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleTextColor", optionValue: string): void; + + /** + * Gets color of title on the Y-axis + */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleTextColor"): string; + + /** + * Sets color of title on the Y-axis + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleTextColor", optionValue: string): void; + + /** + */ + igCategoryChart(optionLiteral: 'option', optionName: "createWrappedTooltip"): any; + + /** + */ + igCategoryChart(optionLiteral: 'option', optionName: "createWrappedTooltip", optionValue: any): void; + /** * Gets the id of a template element to use for tooltips, or markup representing the tooltip template. */ @@ -12315,6 +12959,14 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "tooltipTemplate", optionValue: string): void; + /** + */ + igCategoryChart(optionLiteral: 'option', optionName: "tooltipTemplates"): any; + + /** + */ + igCategoryChart(optionLiteral: 'option', optionName: "tooltipTemplates", optionValue: any): void; + /** * Gets function which takes an context object and returns a formatted label for the X-axis. */ @@ -12339,30 +12991,6 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisFormatLabel", optionValue: any): void; - /** - * Gets color of title on the X-axis - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleTextColor"): string; - - /** - * Sets color of title on the X-axis - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleTextColor", optionValue: string): void; - - /** - * Gets color of title on the Y-axis - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleTextColor"): string; - - /** - * Sets color of title on the Y-axis - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleTextColor", optionValue: string): void; - /** * Gets CSS font property for title on X-axis */ @@ -12395,6 +13023,54 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "widget", optionValue: any): void; + /** + * Gets CSS font property for labels on X-axis + */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelTextStyle"): string; + + /** + * Sets CSS font property for labels on X-axis + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelTextStyle", optionValue: string): void; + + /** + * Gets CSS font property for labels on Y-axis + */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelTextStyle"): string; + + /** + * Sets CSS font property for labels on Y-axis + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelTextStyle", optionValue: string): void; + + /** + * Gets CSS font property for the chart subtitle + */ + igCategoryChart(optionLiteral: 'option', optionName: "subtitleTextStyle"): string; + + /** + * Sets CSS font property for the chart subtitle + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "subtitleTextStyle", optionValue: string): void; + + /** + * Gets CSS font property for the chart title + */ + igCategoryChart(optionLiteral: 'option', optionName: "titleTextStyle"): string; + + /** + * Sets CSS font property for the chart title + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "titleTextStyle", optionValue: string): void; + /** * Gets a collection of data items used to generate the chart. * Value of this property can be a list of objects containing one or more numeric properties. Additionally, if the objects in the list implement the IEnumerable interface, the Category Chart will attempt to delve into the sub-collections when reading through the data source. Databinding can be further configured by attributing the data item classes with the DataSeriesMemberIntentAttribute. @@ -12488,24 +13164,24 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "legend", optionValue: any): void; /** - * Gets whether the chart should perform horizontal zoom when the user initiates a mouse wheel or mouse drag operation. + * Gets whether the chart can be horizontally zoomed through user interaction. */ igCategoryChart(optionLiteral: 'option', optionName: "isHorizontalZoomEnabled"): boolean; /** - * Sets whether the chart should perform horizontal zoom when the user initiates a mouse wheel or mouse drag operation. + * Sets whether the chart can be horizontally zoomed through user interaction. * * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "isHorizontalZoomEnabled", optionValue: boolean): void; /** - * Gets whether the chart should perform vertical zoom when the user initiates a mouse wheel or mouse drag operation. + * Gets whether the chart can be vertically zoomed through user interaction. */ igCategoryChart(optionLiteral: 'option', optionName: "isVerticalZoomEnabled"): boolean; /** - * Sets whether the chart should perform vertical zoom when the user initiates a mouse wheel or mouse drag operation. + * Sets whether the chart can be vertically zoomed through user interaction. * * @optionValue New value to be set. */ @@ -12576,13 +13252,13 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "subtitleAlignment", optionValue: string): void; /** - * Gets behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. + * Gets the behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. * */ igCategoryChart(optionLiteral: 'option', optionName: "unknownValuePlotting"): string; /** - * Sets behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. + * Sets the behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. * * * @optionValue New value to be set. @@ -12590,12 +13266,12 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "unknownValuePlotting", optionValue: string): void; /** - * Gets behavior for markers in each series which are placed too close together for the current view, resulting in a collision. + * Gets the behavior for markers in each series which are placed too close together for the current view, resulting in a collision. */ igCategoryChart(optionLiteral: 'option', optionName: "markerCollisionAvoidance"): string; /** - * Sets behavior for markers in each series which are placed too close together for the current view, resulting in a collision. + * Sets the behavior for markers in each series which are placed too close together for the current view, resulting in a collision. * * @optionValue New value to be set. */ @@ -12694,12 +13370,12 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "xAxisOverlap", optionValue: number): void; /** - * Gets the distance between each labels and grid line along the Y-axis. + * Gets the distance between each label and grid line along the Y-axis. */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisInterval"): number; /** - * Sets the distance between each labels and grid line along the Y-axis. + * Sets the distance between each label and grid line along the Y-axis. * * @optionValue New value to be set. */ @@ -13057,30 +13733,6 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelAngle", optionValue: number): void; - /** - * Gets the distance between the X-axis and the bottom of the chart. - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisExtent"): number; - - /** - * Sets the distance between the X-axis and the bottom of the chart. - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "xAxisExtent", optionValue: number): void; - - /** - * Gets the distance between the Y-axis and the left edge of the chart. - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisExtent"): number; - - /** - * Sets the distance between the Y-axis and the left edge of the chart. - * - * @optionValue New value to be set. - */ - igCategoryChart(optionLiteral: 'option', optionName: "yAxisExtent", optionValue: number): void; - /** * Gets the angle of rotation for the X-axis title. */ @@ -13158,13 +13810,13 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "thickness", optionValue: number): void; /** - * Gets collection of marker shapes used for representing data points of series in this chart. + * Gets the collection of marker shapes used for representing data points of series in this chart. * When MarkerTypes is null or empty, each series' marker type will be set to none or automatic, depending on the series type. */ igCategoryChart(optionLiteral: 'option', optionName: "markerTypes"): any; /** - * Sets collection of marker shapes used for representing data points of series in this chart. + * Sets the collection of marker shapes used for representing data points of series in this chart. * When MarkerTypes is null or empty, each series' marker type will be set to none or automatic, depending on the series type. * * @optionValue New value to be set. @@ -13172,13 +13824,13 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "markerTypes", optionValue: any): void; /** - * Gets the palette of brushes used for coloring fill of data point markers. + * Gets the palette of brushes used as the fill color for data point markers. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ igCategoryChart(optionLiteral: 'option', optionName: "markerBrushes"): any; /** - * Sets the palette of brushes used for coloring fill of data point markers. + * Sets the palette of brushes used as the fill color for data point markers. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. * * @optionValue New value to be set. @@ -13346,10 +13998,16 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelVisibility", optionValue: string): void; /** + * Brushes to use for drawing negative elements, when using a chart type with contextual coloring, such as Waterfall. + * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ igCategoryChart(optionLiteral: 'option', optionName: "negativeOutlines"): any; /** + * Brushes to use for drawing negative elements, when using a chart type with contextual coloring, such as Waterfall. + * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. + * + * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "negativeOutlines", optionValue: any): void; @@ -13573,6 +14231,7 @@ interface JQuery { igCategoryChart(methodName: string, ...methodParams: any[]): any; } interface IgDataChartCrosshairPoint { + /** * The x coordinate. */ @@ -13590,6 +14249,7 @@ interface IgDataChartCrosshairPoint { } interface IgDataChartLegend { + /** * The name of the element to turn into a legend. */ @@ -13628,6 +14288,7 @@ interface IgDataChartLegend { } interface IgDataChartAxes { + /** * Type of the axis. * @@ -13780,7 +14441,7 @@ interface IgDataChartAxes { coercionMethods?: any; /** - * Gets or sets the axis label format string. + * Gets or sets the label mapping property to use for axis labels. */ label?: any; @@ -14030,6 +14691,7 @@ interface IgDataChartAxes { } interface IgDataChartSeriesLegend { + /** * The name of the element to turn into a legend. */ @@ -14068,6 +14730,7 @@ interface IgDataChartSeriesLegend { } interface IgDataChartSeries { + /** * Type of the series. * @@ -14794,6 +15457,7 @@ interface TooltipShowingEvent { } interface TooltipShowingEventUIParam { + /** * Used to get reference to tooltip DOM element. */ @@ -14830,6 +15494,7 @@ interface TooltipShownEvent { } interface TooltipShownEventUIParam { + /** * Used to get reference to tooltip DOM element. */ @@ -14866,6 +15531,7 @@ interface TooltipHidingEvent { } interface TooltipHidingEventUIParam { + /** * Used to get reference to tooltip DOM element. */ @@ -14902,6 +15568,7 @@ interface TooltipHiddenEvent { } interface TooltipHiddenEventUIParam { + /** * Used to get reference to tooltip DOM element. */ @@ -14945,6 +15612,7 @@ interface SeriesCursorMouseMoveEvent { } interface SeriesCursorMouseMoveEventUIParam { + /** * Used to get reference to current series item object. */ @@ -14986,6 +15654,7 @@ interface SeriesMouseLeftButtonDownEvent { } interface SeriesMouseLeftButtonDownEventUIParam { + /** * Used to get reference to current series item object. */ @@ -15027,6 +15696,7 @@ interface SeriesMouseLeftButtonUpEvent { } interface SeriesMouseLeftButtonUpEventUIParam { + /** * Used to get reference to current series item object. */ @@ -15068,6 +15738,7 @@ interface SeriesMouseMoveEvent { } interface SeriesMouseMoveEventUIParam { + /** * Used to get reference to current series item object. */ @@ -15109,6 +15780,7 @@ interface SeriesMouseEnterEvent { } interface SeriesMouseEnterEventUIParam { + /** * Used to get reference to current series item object. */ @@ -15150,6 +15822,7 @@ interface SeriesMouseLeaveEvent { } interface SeriesMouseLeaveEventUIParam { + /** * Used to get reference to current series item object. */ @@ -15191,6 +15864,7 @@ interface WindowRectChangedEvent { } interface WindowRectChangedEventUIParam { + /** * Used to get reference to chart object. */ @@ -15242,6 +15916,7 @@ interface GridAreaRectChangedEvent { } interface GridAreaRectChangedEventUIParam { + /** * Used to get reference to chart object. */ @@ -15293,6 +15968,7 @@ interface RefreshCompletedEvent { } interface RefreshCompletedEventUIParam { + /** * Used to get reference to chart object. */ @@ -15304,6 +15980,7 @@ interface AxisRangeChangedEvent { } interface AxisRangeChangedEventUIParam { + /** * Used to get reference to current chart axis object. */ @@ -15340,6 +16017,7 @@ interface TypicalBasedOnEvent { } interface TypicalBasedOnEventUIParam { + /** * Used to get reference to chart object. */ @@ -15381,6 +16059,7 @@ interface ProgressiveLoadStatusChangedEvent { } interface ProgressiveLoadStatusChangedEventUIParam { + /** * Used to get reference to chart object. */ @@ -15402,6 +16081,7 @@ interface AssigningCategoryStyleEvent { } interface AssigningCategoryStyleEventUIParam { + /** * Used to get reference to chart object. */ @@ -15470,6 +16150,7 @@ interface AssigningCategoryMarkerStyleEvent { } interface AssigningCategoryMarkerStyleEventUIParam { + /** * Used to get reference to chart object. */ @@ -15534,6 +16215,7 @@ interface AssigningCategoryMarkerStyleEventUIParam { } interface IgDataChart { + /** * Gets or sets whether the series viewer can allow the page to pan if a control pan is not possible in the requested direction. */ @@ -15569,15 +16251,25 @@ interface IgDataChart { windowRect?: any; /** - * Gets or sets the current Chart's horizontal zoomability. + * Gets or sets the current Chart's horizontal zoomability. This option is deprecated - please use `isHorizontalZoomEnabled` instead. */ horizontalZoomable?: boolean; /** - * Gets or sets the current Chart's vertical zoomability. + * Gets or sets the current Chart's vertical zoomability. This option is deprecated - please use `isVerticalZoomEnabled` instead. */ verticalZoomable?: boolean; + /** + * Gets or sets the current Chart's horizontal zoomability. + */ + isHorizontalZoomEnabled?: boolean; + + /** + * Gets or sets the current Chart's vertical zoomability. + */ + isVerticalZoomEnabled?: boolean; + /** * The response to user panning and zooming: whether to update the view immediately while the user action is happening, or to defer the update to after the user action is complete. The user action will be an action such as a mouse drag which causes panning and/or zooming to occur. * @@ -16362,7 +17054,7 @@ interface IgDataChartMethods { /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. */ @@ -16370,7 +17062,7 @@ interface IgDataChartMethods { /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source where the new item has been inserted. @@ -16380,7 +17072,7 @@ interface IgDataChartMethods { /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source from where the old item has been removed. @@ -16398,7 +17090,7 @@ interface IgDataChartMethods { /** * Notifies the target axis that it should scale the requested value into chart space from axis space. - * For example you can use this method if you want to find where value 50 of the x axis stands scaled to chart's width. + * For example you can use this method if you want to find where value 50 of the x axis stands scaled to chart's width. * * @param targetName The name of the axis to notify. * @param unscaledValue The value in axis space to translate into chart space. @@ -16407,7 +17099,7 @@ interface IgDataChartMethods { /** * Notifies the target axis that it should unscale the requested value into axis space from chart space. - * For example you can use this method if you want to find what is the value of x axis unscaled from 0 width of the chart. + * For example you can use this method if you want to find what is the value of x axis unscaled from 0 width of the chart. * * @param targetName The name of the axis to notify. * @param scaledValue The value in chart space to translate into axis space. @@ -16452,6 +17144,13 @@ interface IgDataChartMethods { */ getActualMaximumValue(targetName: string): void; + /** + * Gets the actual interval of the target numeric or date time axis + * + * @param targetName The name of the axis from which to get the interval. + */ + getActualInterval(targetName: string): void; + /** * Creates a print preview page with the chart, hiding all other elements on the page. */ @@ -16713,6 +17412,7 @@ interface JQuery { } interface IgPieChartLegend { + /** * The name of the element to turn into a legend. */ @@ -16748,6 +17448,7 @@ interface SliceClickEvent { } interface SliceClickEventUIParam { + /** * Used to get reference to chart object. */ @@ -16764,6 +17465,7 @@ interface LabelClickEvent { } interface LabelClickEventUIParam { + /** * Used to get reference to the slice object. */ @@ -16780,6 +17482,7 @@ interface SelectedItemChangingEvent { } interface SelectedItemChangingEventUIParam { + /** * Used to get a reference to the current selected data item. */ @@ -16801,6 +17504,7 @@ interface SelectedItemChangedEvent { } interface SelectedItemChangedEventUIParam { + /** * Used to get a reference to the previous selected data item. */ @@ -16817,6 +17521,7 @@ interface SelectedItemsChangingEvent { } interface SelectedItemsChangingEventUIParam { + /** * Used to get a reference to the current selected data items. */ @@ -16838,6 +17543,7 @@ interface SelectedItemsChangedEvent { } interface SelectedItemsChangedEventUIParam { + /** * Used to get a reference to the previous selected data items. */ @@ -16850,6 +17556,7 @@ interface SelectedItemsChangedEventUIParam { } interface IgPieChart { + /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -16890,6 +17597,11 @@ interface IgPieChart { */ labelMemberPath?: string; + /** + * Gets or sets the property name that contains the legend labels. + */ + legendLabelMemberPath?: string; + /** * Gets or Sets the property name that contains the values. */ @@ -17286,6 +17998,16 @@ interface IgPieChartMethods { * Exports visual data from the pie chart to aid in unit testing */ exportVisualData(): void; + + /** + * Returns data that the pie chart is bound to. + */ + getData(): Object; + + /** + * Forces any pending deferred work to render on the chart before continuing + */ + flush(): void; } interface JQuery { data(propertyName: "igPieChart"): IgPieChartMethods; @@ -17316,6 +18038,7 @@ interface JQuery { igDataChart(methodName: "exportVisualData"): void; igDataChart(methodName: "getActualMinimumValue", targetName: string): void; igDataChart(methodName: "getActualMaximumValue", targetName: string): void; + igDataChart(methodName: "getActualInterval", targetName: string): void; igDataChart(methodName: "print"): void; igDataChart(methodName: "renderSeries", targetName: string, animate: boolean): void; igDataChart(methodName: "getItemIndex", targetName: string, worldPoint: Object): number; @@ -17429,28 +18152,52 @@ interface JQuery { igDataChart(optionLiteral: 'option', optionName: "windowRect", optionValue: any): void; /** - * Gets the current Chart's horizontal zoomability. + * Gets the current Chart's horizontal zoomability. This option is deprecated - please use `isHorizontalZoomEnabled` instead. */ igDataChart(optionLiteral: 'option', optionName: "horizontalZoomable"): boolean; /** - * Sets the current Chart's horizontal zoomability. + * Sets the current Chart's horizontal zoomability. This option is deprecated - please use `isHorizontalZoomEnabled` instead. * * @optionValue New value to be set. */ igDataChart(optionLiteral: 'option', optionName: "horizontalZoomable", optionValue: boolean): void; /** - * Gets the current Chart's vertical zoomability. + * Gets the current Chart's vertical zoomability. This option is deprecated - please use `isVerticalZoomEnabled` instead. */ igDataChart(optionLiteral: 'option', optionName: "verticalZoomable"): boolean; + /** + * Sets the current Chart's vertical zoomability. This option is deprecated - please use `isVerticalZoomEnabled` instead. + * + * @optionValue New value to be set. + */ + igDataChart(optionLiteral: 'option', optionName: "verticalZoomable", optionValue: boolean): void; + + /** + * Gets the current Chart's horizontal zoomability. + */ + igDataChart(optionLiteral: 'option', optionName: "isHorizontalZoomEnabled"): boolean; + + /** + * Sets the current Chart's horizontal zoomability. + * + * @optionValue New value to be set. + */ + igDataChart(optionLiteral: 'option', optionName: "isHorizontalZoomEnabled", optionValue: boolean): void; + + /** + * Gets the current Chart's vertical zoomability. + */ + igDataChart(optionLiteral: 'option', optionName: "isVerticalZoomEnabled"): boolean; + /** * Sets the current Chart's vertical zoomability. * * @optionValue New value to be set. */ - igDataChart(optionLiteral: 'option', optionName: "verticalZoomable", optionValue: boolean): void; + igDataChart(optionLiteral: 'option', optionName: "isVerticalZoomEnabled", optionValue: boolean): void; /** * The response to user panning and zooming: whether to update the view immediately while the user action is happening, or to defer the update to after the user action is complete. The user action will be an action such as a mouse drag which causes panning and/or zooming to occur. @@ -18939,6 +19686,8 @@ interface JQuery { igPieChart(methodName: "widget"): void; igPieChart(methodName: "print"): void; igPieChart(methodName: "exportVisualData"): void; + igPieChart(methodName: "getData"): Object; + igPieChart(methodName: "flush"): void; /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). @@ -19036,6 +19785,18 @@ interface JQuery { */ igPieChart(optionLiteral: 'option', optionName: "labelMemberPath", optionValue: string): void; + /** + * Gets the property name that contains the legend labels. + */ + igPieChart(optionLiteral: 'option', optionName: "legendLabelMemberPath"): string; + + /** + * Sets the property name that contains the legend labels. + * + * @optionValue New value to be set. + */ + igPieChart(optionLiteral: 'option', optionName: "legendLabelMemberPath", optionValue: string): void; + /** * Gets or Sets the property name that contains the values. */ @@ -19732,6 +20493,7 @@ interface LegendItemMouseLeftButtonDownEvent { } interface LegendItemMouseLeftButtonDownEventUIParam { + /** * Used to get reference to current legend object. */ @@ -19768,6 +20530,7 @@ interface LegendItemMouseLeftButtonUpEvent { } interface LegendItemMouseLeftButtonUpEventUIParam { + /** * Used to get reference to current legend object. */ @@ -19804,6 +20567,7 @@ interface LegendItemMouseEnterEvent { } interface LegendItemMouseEnterEventUIParam { + /** * Used to get reference to current legend object. */ @@ -19840,6 +20604,7 @@ interface LegendItemMouseLeaveEvent { } interface LegendItemMouseLeaveEventUIParam { + /** * Used to get reference to current legend object. */ @@ -19872,6 +20637,7 @@ interface LegendItemMouseLeaveEventUIParam { } interface IgChartLegend { + /** * Type of the legend. * @@ -20140,6 +20906,7 @@ interface ColorSelectedEvent { } interface ColorSelectedEventUIParam { + /** * Used to get a reference to the color object. */ @@ -20147,6 +20914,7 @@ interface ColorSelectedEventUIParam { } interface IgColorPicker { + /** * Gets/Sets the default colors. Default colors are the ones displayed in the upper table of the color picker. * The array should contain arrays that contain the color values for every next row. @@ -20175,6 +20943,7 @@ interface IgColorPicker { [optionName: string]: any; } interface IgColorPickerMethods { + /** * Gets a reference to the div element of the color table */ @@ -20282,6 +21051,7 @@ interface ClickEvent { } interface ClickEventUIParam { + /** * Used to get a reference the igSplitButton element. */ @@ -20293,6 +21063,7 @@ interface ExpandedEvent { } interface ExpandedEventUIParam { + /** * Used to get a reference the igSplitButton. */ @@ -20304,6 +21075,7 @@ interface ExpandingEvent { } interface ExpandingEventUIParam { + /** * Used to get a reference the igSplitButton. */ @@ -20315,6 +21087,7 @@ interface CollapsedEvent { } interface CollapsedEventUIParam { + /** * Used to get a reference the igSplitButton. */ @@ -20326,6 +21099,7 @@ interface CollapsingEvent { } interface CollapsingEventUIParam { + /** * Used to get a reference the igSplitButton. */ @@ -20333,6 +21107,7 @@ interface CollapsingEventUIParam { } interface IgColorPickerSplitButton { + /** * Button items. * @@ -20409,6 +21184,7 @@ interface IgColorPickerSplitButton { [optionName: string]: any; } interface IgColorPickerSplitButtonMethods { + /** * Sets the color of the split button * @@ -20629,6 +21405,7 @@ interface JQuery { igColorPickerSplitButton(methodName: string, ...methodParams: any[]): any; } interface IgComboLoadOnDemandSettings { + /** * Gets/Sets option to enable load on demand. * @@ -20648,6 +21425,7 @@ interface IgComboLoadOnDemandSettings { } interface IgComboMultiSelection { + /** * Set enabled to true to turn multi selection on. Set to true by default when target element for the combo is a select with the multiple attribute set. * @@ -20679,6 +21457,7 @@ interface IgComboMultiSelection { } interface IgComboGrouping { + /** * Gets/Sets name of column by which the records will be grouped. Setting this option enables the grouping. * @@ -20702,6 +21481,7 @@ interface IgComboGrouping { } interface IgComboInitialSelectedItem { + /** * Optional="true" Index of item in the list. The index should be greater than -1 and less than the count of the [items](ui.igcombo#methods:items) in the list (rows in dataSource). * @@ -20725,6 +21505,7 @@ interface RenderedEvent { } interface RenderedEventUIParam { + /** * Used to get a reference to the combo performing rendering. */ @@ -20741,6 +21522,7 @@ interface FilteringEvent { } interface FilteringEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20757,6 +21539,7 @@ interface FilteredEvent { } interface FilteredEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20773,6 +21556,7 @@ interface ItemsRenderingEvent { } interface ItemsRenderingEventUIParam { + /** * Used to get a reference to the combo performing rendering. */ @@ -20789,6 +21573,7 @@ interface ItemsRenderedEvent { } interface ItemsRenderedEventUIParam { + /** * Used to get a reference to the combo performing rendering. */ @@ -20805,6 +21590,7 @@ interface DropDownOpeningEvent { } interface DropDownOpeningEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20821,6 +21607,7 @@ interface DropDownOpenedEvent { } interface DropDownOpenedEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20837,6 +21624,7 @@ interface DropDownClosingEvent { } interface DropDownClosingEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20853,6 +21641,7 @@ interface DropDownClosedEvent { } interface DropDownClosedEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20869,6 +21658,7 @@ interface SelectionChangingEvent { } interface SelectionChangingEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20890,6 +21680,7 @@ interface SelectionChangedEvent { } interface SelectionChangedEventUIParam { + /** * Used to obtain reference to igCombo. */ @@ -20907,6 +21698,7 @@ interface SelectionChangedEventUIParam { } interface IgCombo { + /** * Gets/Sets the width of combo. The numeric and string values (valid html units for size) are supported. It includes %, px, em and other units. * @@ -21436,6 +22228,7 @@ interface IgCombo { [optionName: string]: any; } interface IgComboMethods { + /** * Performs databinding on the combo box. The [databinding](ui.igcombo#events:dataBinding) and [dataBound](ui.igcombo#events:dataBound) events are always raised. */ @@ -21444,8 +22237,8 @@ interface IgComboMethods { /** * Forces an update of the igCombo value according to the current text in the igCombo input. * - * The refresh is primarily intended to be used with [allowCustomValue](ui.igcombo#options:allowCustomValue) set to true. - * The refresh will take the current text and, if no selection is applied, will set it as igCombo value provided that [allowCustomValue](ui.igcombo#options:allowCustomValue) true. + * The refresh is primarily intended to be used with [allowCustomValue](ui.igcombo#options:allowCustomValue) set to true. + * The refresh will take the current text and, if no selection is applied, will set it as igCombo value provided that [allowCustomValue](ui.igcombo#options:allowCustomValue) true. */ refreshValue(): Object; @@ -21566,14 +22359,14 @@ interface IgComboMethods { * * @param value Value or array of values matching the valueKey property of item/items to be selected * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ value(value?: Object, options?: Object, event?: Object): Object; @@ -21583,14 +22376,14 @@ interface IgComboMethods { * * @param $items jQuery object with item or items to be selected. * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ select($items: Object, options?: Object, event?: Object): Object; @@ -21600,14 +22393,14 @@ interface IgComboMethods { * * @param index Index or array of indexes of items to be selected * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ index(index?: Object, options?: Object, event?: Object): Object; @@ -21616,13 +22409,13 @@ interface IgComboMethods { * Selects all items from the drop-down list. * * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ selectAll(options?: Object, event?: Object): Object; @@ -21632,8 +22425,8 @@ interface IgComboMethods { * * @param value Value or array of values matching the [valueKey](ui.igcombo#options:valueKey) property of item/items to be deselected * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselectByValue(value: Object, options?: Object, event?: Object): Object; @@ -21643,8 +22436,8 @@ interface IgComboMethods { * * @param $items jQuery object with item or items to be deselected * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselect($items: Object, options?: Object, event?: Object): Object; @@ -21654,8 +22447,8 @@ interface IgComboMethods { * * @param index Index or array of indexes of items to be selected * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselectByIndex(index: Object, options?: Object, event?: Object): Object; @@ -21664,8 +22457,8 @@ interface IgComboMethods { * Deselects all selected items from the drop down list. * * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselectAll(options?: Object, event?: Object): Object; @@ -21871,14 +22664,14 @@ interface JQuery { /** * Sets URL which is used for sending JSON on request for remote filtering (MVC for example). That option is required when [load on demand](ui.igcombo#options:loadOnDemandSettings) is - * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. + * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. * */ igCombo(optionLiteral: 'option', optionName: "dataSourceUrl"): string; /** * Sets URL which is used for sending JSON on request for remote filtering (MVC for example). That option is required when [load on demand](ui.igcombo#options:loadOnDemandSettings) is - * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. + * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. * * * @optionValue New value to be set. @@ -21985,14 +22778,14 @@ interface JQuery { /** * Gets/Sets a template used to render an item in list. The igCombo utilizes igTemplating for generating node content templates. - * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. + * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. * */ igCombo(optionLiteral: 'option', optionName: "itemTemplate"): string; /** * /Sets a template used to render an item in list. The igCombo utilizes igTemplating for generating node content templates. - * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. + * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. * * * @optionValue New value to be set. @@ -22881,6 +23674,7 @@ interface StateChangingEvent { } interface StateChangingEventUIParam { + /** * Used to obtain a reference to the igDialog. */ @@ -22912,6 +23706,7 @@ interface StateChangedEvent { } interface StateChangedEventUIParam { + /** * Used to obtain a reference to the igDialog. */ @@ -22943,6 +23738,7 @@ interface AnimationEndedEvent { } interface AnimationEndedEventUIParam { + /** * Used to obtain a reference to the igDialog. */ @@ -22959,6 +23755,7 @@ interface FocusEvent { } interface FocusEventUIParam { + /** * Used to obtain a reference to the igDialog. */ @@ -22970,6 +23767,7 @@ interface BlurEvent { } interface BlurEventUIParam { + /** * Used to obtain a reference to the igDialog. */ @@ -22977,6 +23775,7 @@ interface BlurEventUIParam { } interface IgDialog { + /** * Gets the jquery DIV object which is used as the main container for the dialog. * Notes: @@ -23327,6 +24126,7 @@ interface IgDialog { [optionName: string]: any; } interface IgDialogMethods { + /** * Destroys the igDialog and moves the target element to its original parent. */ @@ -23334,7 +24134,7 @@ interface IgDialogMethods { /** * Gets/Sets the state of the editor. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. * * @param state New state. */ @@ -23347,10 +24147,10 @@ interface IgDialogMethods { /** * Closes the dialog if it is opened. - * Notes: - * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. - * 2. That method does not change minimized or maximized state of the dialog. - * It means that method "open" will open the dialog and keep previous minimized or maximized state. + * Notes: + * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * 2. That method does not change minimized or maximized state of the dialog. + * It means that method "open" will open the dialog and keep previous minimized or maximized state. * * @param e Browser event: internal use only. */ @@ -23358,42 +24158,42 @@ interface IgDialogMethods { /** * Opens the dialog if it is closed. Notes: - * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. - * 2. That method does not change minimized or maximized state of the dialog. It means that if the dialog was in minimized or maximized stated when closed by "close" method, then the dialog will open in minimized or maximized state respectively. + * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * 2. That method does not change minimized or maximized state of the dialog. It means that if the dialog was in minimized or maximized stated when closed by "close" method, then the dialog will open in minimized or maximized state respectively. */ open(): Object; /** * Minimizes the dialog if it is not minimized. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ minimize(): Object; /** * Maximizes the dialog if it is not maximized. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ maximize(): Object; /** * Sets the normal state for the dialog if it was maximized or minimized. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ restore(): Object; /** * Pins the dialog if it is not pinned. - * When the dialog is pinned, then the html element of the dialog is moved to the original container where the target element was located and position:absolute is removed. - * The pinned dialog does not support modal state, maximized state and it can not be moved. - * Notes: - * 1. If the parent element of the original target-element is invisible, then the pinned dialog becomes invisible as well. - * 2. If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * When the dialog is pinned, then the html element of the dialog is moved to the original container where the target element was located and position:absolute is removed. + * The pinned dialog does not support modal state, maximized state and it can not be moved. + * Notes: + * 1. If the parent element of the original target-element is invisible, then the pinned dialog becomes invisible as well. + * 2. If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ pin(): Object; /** * Unpins the dialog if it is pinned. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ unpin(): Object; @@ -24213,6 +25013,7 @@ interface JQuery { igDialog(methodName: string, ...methodParams: any[]): any; } interface IgDoughnutChartSeries { + /** * Gets or sets the current series type. * @@ -24255,11 +25056,11 @@ interface IgDoughnutChartSeries { * Gets or sets the position of chart labels. * * Valid values: - * "none" - * "center" - * "insideEnd" - * "outsideEnd" - * "bestFit" + * "none" No labels will be displayed. + * "center" Labels will be displayed in the center. + * "insideEnd" Labels will be displayed inside and by the edge of the container. + * "outsideEnd" Labels will be displayed outside the container. + * "bestFit" Labels will automatically decide their location. */ labelsPosition?: string; @@ -24267,8 +25068,8 @@ interface IgDoughnutChartSeries { * Gets or sets whether the leader lines are visible. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ leaderLineVisibility?: string; @@ -24281,9 +25082,9 @@ interface IgDoughnutChartSeries { * Gets or sets what type of leader lines will be used for the outside end labels. * * Valid values: - * "straight" - * "arc" - * "spline" + * "straight" A straight line is drawn between the slice and its label. + * "arc" A curved line is drawn between the slice and its label. The line follows makes a natural turn from the slice to the label. + * "spline" A curved line is drawn between the slice and its label. The line starts radially from the slice and then turns to the label. */ leaderLineType?: string; @@ -24301,8 +25102,8 @@ interface IgDoughnutChartSeries { * Gets or sets whether to use numeric or percent-based threshold value. * * Valid values: - * "number" - * "percent" + * "number" Data value is compared directly to the value of OthersCategoryThreshold. + * "percent" Data value is compared to OthersCategoryThreshold as a percentage of the total. */ othersCategoryType?: string; @@ -24327,7 +25128,7 @@ interface IgDoughnutChartSeries { formatLegendLabel?: any; /** - * Gets or sets the pixel amount, by which the labels are offset from the edge of the slices. + * Gets or sets the pixel amount by which the labels are offset from the edge of the slices. */ labelExtent?: number; @@ -24343,15 +25144,13 @@ interface IgDoughnutChartSeries { selectedStyle?: any; /** - * Gets or sets the Brushes property. - * The brushes property defines the palette from which automatically assigned slice brushes are selected. + * Gets or sets the palette of brushes to use for coloring the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ brushes?: any; /** - * Gets or sets the Outlines property. - * The Outlines property defines the palette from which automatically assigned slice outlines are selected. + * Gets or sets the palette of brushes to use for outlines on the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ outlines?: any; @@ -24380,6 +25179,7 @@ interface HoleDimensionsChangedEventUIParam { } interface IgDoughnutChart { + /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -24568,6 +25368,7 @@ interface IgDoughnutChart { [optionName: string]: any; } interface IgDoughnutChartMethods { + /** * Adds a new series to the doughnut chart. * @@ -24614,6 +25415,13 @@ interface IgDoughnutChartMethods { */ destroy(): void; + /** + * Returns data source of the series. + * + * @param series Optional. The series name. If not provided an array of series data sources is returned. + */ + getData(series: string): Object; + /** * Find index of item within actual data used by chart. * @@ -24628,11 +25436,6 @@ interface IgDoughnutChartMethods { */ getDataItem(index: Object): Object; - /** - * Get reference of actual data used by chart. - */ - getData(): any[]; - /** * Adds a new item to the data source and notifies the chart. * @@ -24675,7 +25478,7 @@ interface IgDoughnutChartMethods { /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. */ @@ -24683,7 +25486,7 @@ interface IgDoughnutChartMethods { /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source where the new item has been inserted. @@ -24693,7 +25496,7 @@ interface IgDoughnutChartMethods { /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source from where the old item has been removed. @@ -24724,9 +25527,9 @@ interface JQuery { igDoughnutChart(methodName: "exportVisualData"): Object; igDoughnutChart(methodName: "flush"): void; igDoughnutChart(methodName: "destroy"): void; + igDoughnutChart(methodName: "getData", series: string): Object; igDoughnutChart(methodName: "findIndexOfItem", item: Object): number; igDoughnutChart(methodName: "getDataItem", index: Object): Object; - igDoughnutChart(methodName: "getData"): any[]; igDoughnutChart(methodName: "addItem", item: Object): Object; igDoughnutChart(methodName: "insertItem", item: Object, index: number): Object; igDoughnutChart(methodName: "removeItem", index: number): Object; @@ -25164,6 +25967,7 @@ interface RenderingEvent { } interface RenderingEventUIParam { + /** * Used to get a reference to the editor performing rendering. */ @@ -25180,6 +25984,7 @@ interface MousedownEvent { } interface MousedownEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25201,6 +26006,7 @@ interface MouseupEvent { } interface MouseupEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25222,6 +26028,7 @@ interface MousemoveEvent { } interface MousemoveEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25243,6 +26050,7 @@ interface MouseoverEvent { } interface MouseoverEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25264,6 +26072,7 @@ interface MouseoutEvent { } interface MouseoutEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25285,6 +26094,7 @@ interface KeydownEvent { } interface KeydownEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25301,6 +26111,7 @@ interface KeypressEvent { } interface KeypressEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25317,6 +26128,7 @@ interface KeyupEvent { } interface KeyupEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25333,6 +26145,7 @@ interface ValueChangingEvent { } interface ValueChangingEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25359,6 +26172,7 @@ interface ValueChangedEvent { } interface ValueChangedEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25381,6 +26195,7 @@ interface ValueChangedEventUIParam { } interface IgBaseEditor { + /** * Gets/Sets the width of the control. * @@ -25586,6 +26401,7 @@ interface IgBaseEditor { [optionName: string]: any; } interface IgBaseEditorMethods { + /** * Gets/Sets name attribute applied to the editor element. * @@ -25655,6 +26471,7 @@ interface DropDownListOpeningEvent { } interface DropDownListOpeningEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25676,6 +26493,7 @@ interface DropDownListOpenedEvent { } interface DropDownListOpenedEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25697,6 +26515,7 @@ interface DropDownListClosingEvent { } interface DropDownListClosingEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25718,6 +26537,7 @@ interface DropDownListClosedEvent { } interface DropDownListClosedEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25739,6 +26559,7 @@ interface DropDownItemSelectingEvent { } interface DropDownItemSelectingEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25765,6 +26586,7 @@ interface DropDownItemSelectedEvent { } interface DropDownItemSelectedEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25791,6 +26613,7 @@ interface TextChangedEvent { } interface TextChangedEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -25808,6 +26631,7 @@ interface TextChangedEventUIParam { } interface IgTextEditor { + /** * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * @@ -25822,7 +26646,7 @@ interface IgTextEditor { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type string. * */ listItems?: any[]; @@ -25922,13 +26746,13 @@ interface IgTextEditor { textMode?: string; /** - * Gets/Sets the ability of the editor to automatically change the hoverd item into the opened dropdown list to its oposide side. When the last item is reached and the spin down is clicked, the first item gets hovered and vice versa. This option has no effect there is no drop-down list. + * Gets/Sets the ability of the editor to automatically move the dropdown list selection item from one end to the opposite side. When the last item is reached and spin down is performed, the first item gets selected and vice versa. This option has no effect there is no drop-down list. * */ spinWrapAround?: boolean; /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed + * Gets/Sets if the editor should only allow values from the list of items. Matching is case-insensitive. * */ isLimitedToListValues?: boolean; @@ -26268,6 +27092,7 @@ interface IgTextEditor { [optionName: string]: any; } interface IgTextEditorMethods { + /** * Gets the visible text in the editor. */ @@ -26324,7 +27149,7 @@ interface IgTextEditorMethods { getSelectedListItem(): string; /** - * Gets the selected text from the editor in edit mode. This can be done on key event like keydown or keyup. This method can be used only when the editor is focused. If you call this method in display mode (The editor input is blured) the returned value will be an empty string. + * Gets the selected text from the editor in edit mode. This can be done inside key event handlers, like keydown or keyup. This method can be used only when the editor is focused. If you invoke this method in display mode, when the editor input is blurred, the returned value will be an empty string. */ getSelectedText(): string; @@ -26340,7 +27165,7 @@ interface IgTextEditorMethods { /** * Inserts the text at the location of the caret or over the current selection. If the editor is focused the method will insert the text over the current selection. If the editor is not focused the method will set the text as value of the editor. - * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. + * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. * * @param string The string to be inserted. */ @@ -26355,12 +27180,12 @@ interface IgTextEditorMethods { select(start: number, end: number): void; /** - * Hovers the previous item in the drop-down list if the list is opened. + * Selects the previous item from the drop-down list. */ spinUp(): void; /** - * Hovers the next item in the drop-down list if the list is opened. + * Selects the next item from the drop-down list. */ spinDown(): void; @@ -26439,9 +27264,10 @@ interface JQuery { } interface IgNumericEditor { + /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * */ listItems?: any[]; @@ -26456,6 +27282,7 @@ interface IgNumericEditor { * Gets/Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * */ negativeSign?: string; @@ -26472,6 +27299,7 @@ interface IgNumericEditor { * Gets/Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ decimalSeparator?: string; @@ -26479,8 +27307,9 @@ interface IgNumericEditor { /** * Gets/Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ groupSeparator?: string; @@ -26491,32 +27320,42 @@ interface IgNumericEditor { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * */ groups?: any[]; /** - * Gets/Sets the maximum number of decimal places which are used in display mode(no focus). + * Gets/Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ maxDecimals?: number; /** - * Gets/Sets the minimum number of decimal places which are used in display (no focus) state. + * Gets/Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ minDecimals?: number; + /** + * Gets/Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + */ + roundDecimals?: boolean; + /** * Gets/Sets the horizontal alignment of the text in the editor. * @@ -26575,7 +27414,7 @@ interface IgNumericEditor { spinDelta?: number; /** - * Gets/Sets support for scientific format in edit mode. + * Gets/Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -26592,10 +27431,17 @@ interface IgNumericEditor { /** * Gets/Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * */ spinWrapAround?: boolean; + /** + * Gets/Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + */ + isLimitedToListValues?: boolean; + /** * Removed from numeric editor options */ @@ -26699,12 +27545,6 @@ interface IgNumericEditor { */ selectionOnFocus?: string; - /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - */ - isLimitedToListValues?: boolean; - /** * Gets/Sets if the editor should revert it's value to the previously valid value in case the value on blur, or enter key is not valid. If the opiton is set to false, editor calls clear functionality. * @@ -26876,6 +27716,7 @@ interface IgNumericEditor { [optionName: string]: any; } interface IgNumericEditorMethods { + /** * Gets/Sets editor value. * @@ -26894,26 +27735,26 @@ interface IgNumericEditorMethods { getSelectionEnd(): void; /** - * Increments value in editor according to the parameter. + * Increments value in editor according to the parameter or selects the previous item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * @param delta Increments value. */ spinUp(delta?: number): void; /** - * Decrements value in editor according to the parameter. + * Decrements value in editor according to the parameter selects the next item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * @param delta Decrement value. */ spinDown(delta?: number): void; /** - * Moves the hovered index to the item that appears above the current one in the list. + * This method is deprecated in favor of [spinUp](ui.%%WidgetNameLowered%%#options:spinUp). */ selectListIndexUp(): void; /** - * Moves the hovered index to the item that appears above the current one in the list. + * This method is deprecated in favor of [spinDown](ui.%%WidgetNameLowered%%#options:spinDown). */ selectListIndexDown(): void; @@ -26971,7 +27812,7 @@ interface IgNumericEditorMethods { /** * Inserts the text at the location of the caret or over the current selection. If the editor is focused the method will insert the text over the current selection. If the editor is not focused the method will set the text as value of the editor. - * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. + * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. * * @param string The string to be inserted. */ @@ -27000,6 +27841,7 @@ interface JQuery { } interface IgCurrencyEditor { + /** * Gets/Sets the string, which is used as positive pattern. The "n" flag represents the value of number. * Note: This option has priority over possible regional settings. @@ -27016,7 +27858,7 @@ interface IgCurrencyEditor { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * */ listItems?: any[]; @@ -27031,6 +27873,7 @@ interface IgCurrencyEditor { * Gets/Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * */ negativeSign?: string; @@ -27047,6 +27890,7 @@ interface IgCurrencyEditor { * Gets/Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ decimalSeparator?: string; @@ -27054,8 +27898,9 @@ interface IgCurrencyEditor { /** * Gets/Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ groupSeparator?: string; @@ -27066,32 +27911,42 @@ interface IgCurrencyEditor { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * */ groups?: any[]; /** - * Gets/Sets the maximum number of decimal places which are used in display mode(no focus). + * Gets/Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ maxDecimals?: number; /** - * Gets/Sets the minimum number of decimal places which are used in display (no focus) state. + * Gets/Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ minDecimals?: number; + /** + * Gets/Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + */ + roundDecimals?: boolean; + /** * Gets/Sets the horizontal alignment of the text in the editor. * @@ -27150,7 +28005,7 @@ interface IgCurrencyEditor { spinDelta?: number; /** - * Gets/Sets support for scientific format in edit mode. + * Gets/Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -27167,10 +28022,17 @@ interface IgCurrencyEditor { /** * Gets/Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * */ spinWrapAround?: boolean; + /** + * Gets/Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + */ + isLimitedToListValues?: boolean; + /** * Removed from numeric editor options */ @@ -27274,12 +28136,6 @@ interface IgCurrencyEditor { */ selectionOnFocus?: string; - /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - */ - isLimitedToListValues?: boolean; - /** * Gets/Sets if the editor should revert it's value to the previously valid value in case the value on blur, or enter key is not valid. If the opiton is set to false, editor calls clear functionality. * @@ -27385,6 +28241,7 @@ interface IgCurrencyEditor { [optionName: string]: any; } interface IgCurrencyEditorMethods { + /** * Gets/sets a string that is used as the currency symbol shown with the number in the input. The value provided as a param is propagated to the currencySymbol option and thus has the same priority as the option. * @@ -27410,26 +28267,26 @@ interface IgCurrencyEditorMethods { getSelectionEnd(): void; /** - * Increments value in editor according to the parameter. + * Increments value in editor according to the parameter or selects the previous item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * @param delta Increments value. */ spinUp(delta?: number): void; /** - * Decrements value in editor according to the parameter. + * Decrements value in editor according to the parameter selects the next item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * @param delta Decrement value. */ spinDown(delta?: number): void; /** - * Moves the hovered index to the item that appears above the current one in the list. + * This method is deprecated in favor of [spinUp](ui.%%WidgetNameLowered%%#options:spinUp). */ selectListIndexUp(): void; /** - * Moves the hovered index to the item that appears above the current one in the list. + * This method is deprecated in favor of [spinDown](ui.%%WidgetNameLowered%%#options:spinDown). */ selectListIndexDown(): void; @@ -27443,6 +28300,7 @@ interface JQuery { } interface IgPercentEditor { + /** * Gets/Sets the pattern for positive numeric values, which is used in display (no focus) state. * If you use the "en-US" culture the default value for "positivePattern" will be "n$" where the "$" flag represents the "numericSymbol" and the "n" flag represents the value of the number. @@ -27497,7 +28355,7 @@ interface IgPercentEditor { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * */ listItems?: any[]; @@ -27512,6 +28370,7 @@ interface IgPercentEditor { * Gets/Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * */ negativeSign?: string; @@ -27528,6 +28387,7 @@ interface IgPercentEditor { * Gets/Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ decimalSeparator?: string; @@ -27535,8 +28395,9 @@ interface IgPercentEditor { /** * Gets/Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ groupSeparator?: string; @@ -27547,32 +28408,42 @@ interface IgPercentEditor { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * */ groups?: any[]; /** - * Gets/Sets the maximum number of decimal places which are used in display mode(no focus). + * Gets/Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ maxDecimals?: number; /** - * Gets/Sets the minimum number of decimal places which are used in display (no focus) state. + * Gets/Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ minDecimals?: number; + /** + * Gets/Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + */ + roundDecimals?: boolean; + /** * Gets/Sets the horizontal alignment of the text in the editor. * @@ -27604,7 +28475,7 @@ interface IgPercentEditor { allowNullValue?: boolean; /** - * Gets/Sets support for scientific format in edit mode. + * Gets/Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -27621,10 +28492,17 @@ interface IgPercentEditor { /** * Gets/Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * */ spinWrapAround?: boolean; + /** + * Gets/Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + */ + isLimitedToListValues?: boolean; + /** * Removed from numeric editor options */ @@ -27728,12 +28606,6 @@ interface IgPercentEditor { */ selectionOnFocus?: string; - /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - */ - isLimitedToListValues?: boolean; - /** * Gets/Sets if the editor should revert it's value to the previously valid value in case the value on blur, or enter key is not valid. If the opiton is set to false, editor calls clear functionality. * @@ -27839,9 +28711,10 @@ interface IgPercentEditor { [optionName: string]: any; } interface IgPercentEditorMethods { + /** * Paste text at location of the caret or over the current selection. Best used during editing, as the method will instead set the text as value (modified by the [displayFactor](ui.igpercenteditor#options:displayFactor)) if the editor is not focused. - * Note: the method raises the [textChanged](ui.igpercenteditor#events:textChanged) event. + * Note: the method raises the [textChanged](ui.igpercenteditor#events:textChanged) event. * * @param string The string to be inserted. */ @@ -27872,26 +28745,26 @@ interface IgPercentEditorMethods { getSelectionEnd(): void; /** - * Increments value in editor according to the parameter. + * Increments value in editor according to the parameter or selects the previous item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * @param delta Increments value. */ spinUp(delta?: number): void; /** - * Decrements value in editor according to the parameter. + * Decrements value in editor according to the parameter selects the next item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * @param delta Decrement value. */ spinDown(delta?: number): void; /** - * Moves the hovered index to the item that appears above the current one in the list. + * This method is deprecated in favor of [spinUp](ui.%%WidgetNameLowered%%#options:spinUp). */ selectListIndexUp(): void; /** - * Moves the hovered index to the item that appears above the current one in the list. + * This method is deprecated in favor of [spinDown](ui.%%WidgetNameLowered%%#options:spinDown). */ selectListIndexDown(): void; @@ -27905,6 +28778,7 @@ interface JQuery { } interface IgMaskEditor { + /** * Gets custom regional settings for editor. If it is string, then $.ig.regional[stringValue] is assumed. * @@ -27914,7 +28788,9 @@ interface IgMaskEditor { /** * Gets visibility of the clear button. That option can be set only on initialization. * - * clear A button to clear the value is located on the right side of the editor. + * + * Valid values: + * "clear" A button to clear the value is located on the right side of the editor. */ buttonType?: string; @@ -27941,7 +28817,7 @@ interface IgMaskEditor { inputMask?: string; /** - * Gets/Sets type of value returned by the get of [value](ui.igmaskeditor#methods:value) method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. + * It affects the value of the control (value method/option and submitted in forms). It defines what the value should contain from text, unfilled prompts and literals. The default is allText and when used value method/option returns the text entered, all prompts (positions) and literals. * * * Valid values: @@ -27961,7 +28837,7 @@ interface IgMaskEditor { unfilledCharsPrompt?: string; /** - * Gets/Sets character which is used as replacement of not-filled required position in mask when editor is in display mode (not focused). Note that this option is visible, only when the [revertIfNotValid](ui.igmaskeditor#options:revertIfNotValid) option is set to false. + * Gets/Sets character which is used as replacement of not-filled required position in mask when editor is in display mode (not focused). * */ padChar?: string; @@ -28212,6 +29088,7 @@ interface IgMaskEditor { [optionName: string]: any; } interface IgMaskEditorMethods { + /** * Gets/Sets mask editor value. * @@ -28247,7 +29124,7 @@ interface IgMaskEditorMethods { clearButton(): string; /** - * Gets the selected text from the editor in edit mode. This can be done on key event like keydown or keyup. This method can be used only when the editor is focused. If you call this method in display mode (The editor input is blured) the returned value will be an empty string. + * Gets the selected text from the editor in edit mode. This can be done inside key event handlers, like keydown or keyup. This method can be used only when the editor is focused. If you invoke this method in display mode, when the editor input is blurred, the returned value will be an empty string. */ getSelectedText(): string; @@ -28263,7 +29140,7 @@ interface IgMaskEditorMethods { /** * Inserts the text at the location of the caret or over the current selection. If the editor is focused the method will insert the text over the current selection. If the editor is not focused the method will set the text as value of the editor. - * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. + * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. * * @param string The string to be inserted. */ @@ -28282,23 +29159,24 @@ interface JQuery { } interface IgDateEditor { + /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ value?: Object; /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ minValue?: Object; /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ maxValue?: Object; @@ -28377,17 +29255,27 @@ interface IgDateEditor { dateInputFormat?: string; /** - * Gets/Sets the value type returned by the get of value() method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. - * Note: That is used as default. + * Gets the value type returned by the get of value() method and option. Also affects how the value is stored for form submit. + * The [enableUTCDates](ui.%%WidgetNameLowered%%#options:enableUTCDates) option can be used to output an UTC ISO string instead. + * For example 10:00 AM from a client with local offset of 5 hours ahead of GMT will be serialized as: + * "2016-11-11T10:00:00+05:00" * * * Valid values: - * "date" The Date object is used. When that mode is set the value send to the server on submit is string value converter from the javascript Date object using "toISOString" method. - * "displayModeText" The String object is used and the "text" in display mode (no focus) format (pattern). - * "editModeText" The String object is used and the "text" in edit mode (focus) format (pattern). + * "date" The value method returns a Date object. When this mode is set the value sent to the server on submit is serialized as ISO 8061 string with local time and zone values by default. + * "displayModeText" The "text" in display mode (no focus) format (pattern) is used to be send to the server and is returned from the value() method (returns a string object). + * "editModeText" The "text" in edit mode (focus) format (pattern) is used to be send to the server and is returned from the value() method (returns a string object). */ dataMode?: string; + /** + * Gets/Sets time zone offset from UTC, in minutes. The client date values are displayed with this offset instead of the local one. + * Note: It is recommended that this option is used with an UTC value (e.g. "2016-11-03T14:08:08.504Z") so the outcome is consistent. + * Values with ambiguous time zone could map to unpredictable times depending on the user agent local zone. + * + */ + displayTimeOffset?: any; + /** * Gets visibility of the spin and clear buttons. That option can be set only on initialization. Combinations like 'spin,clear' are supported too. * @@ -28399,7 +29287,10 @@ interface IgDateEditor { buttonType?: string; /** - * Gets/Sets delta-value which is used to increment or decrement value in editor on spin events. If value is set to negative value an exception is thrown. Non integer value is supported only for dataMode double and float. + * Gets/Sets delta-value which is used to increment or decrement the editor date on spin actions. + * When not editing (focused) the delta is applied on the day if available in the input mask or the lowest available period. + * When in edit mode the time period, where the cursor is positioned, is incremented or decremented with the defined delta value. + * The value can be only a positive integer number, otherwise it will be set as 1, or in the cases with double or float the the whole part will be taken. * */ spinDelta?: number; @@ -28413,14 +29304,8 @@ interface IgDateEditor { limitSpinToCurrentField?: boolean; /** - * Gets/Sets formatting of the dates as UTC. - * That option is supported only when dataMode option is 'date' and Date objects are used to get/set value of editor. - * Notes: - * That option affects only functionality of get/set value method and the Date-value, which was set on initialization. - * When application uses the set-value, then internal Date-value and displayed-text is incremented by TimezoneOffset. - * When application uses the get-value, then editor returns internal Date-value decremented by TimezoneOffset. - * When that option is modified after initialization, then displayed text and internal Date-value are not affected. - * It is not recommended to change that option without resetting Date-value. + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * The option is only applied in "date" [dataMode](ui.%%WidgetNameLowered%%#options:dataMode). * */ enableUTCDates?: boolean; @@ -28443,7 +29328,7 @@ interface IgDateEditor { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ - nullValue?: string|number; + nullValue?: string|number|Date; /** * This option is inherited from a parent widget and it's not applicable for igDateEditor @@ -28708,22 +29593,25 @@ interface IgDateEditor { [optionName: string]: any; } interface IgDateEditorMethods { + /** * Gets/Sets editor value. * - * Note! This option doesn't use the displayInputFormat to extract the date + * Note! This option doesn't use the dateInputFormat to extract the date * * @param newValue New editor value. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. For example Date(/"thicks"/). */ value(newValue?: Object): Object; /** - * Gets selected date. + * Gets selected date as a date object. This method can be used when dataMode is set as either displayModeText or editModeText. + * In such cases the value() method will not return date object and getSelectedDate() can be used to replace that functionality. */ getSelectedDate(): Object; /** - * Sets selected date. + * Sets selected date. This method can be used when dataMode is set as either displayModeText or editModeText. + * In such cases the value() cannot accept a date object as a new value and getSelectedDate() can be used to replace that functionality. * * @param date */ @@ -28775,6 +29663,7 @@ interface ItemSelectedEvent { } interface ItemSelectedEventUIParam { + /** * Used to obtain reference to igEditor. */ @@ -28797,6 +29686,7 @@ interface ItemSelectedEventUIParam { } interface IgDatePicker { + /** * Gets/Sets the custom regional settings for the editor. If it is a string, then $.ig.regional[stringValue] is assumed. * @@ -28854,21 +29744,21 @@ interface IgDatePicker { /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ value?: Object; /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ minValue?: Object; /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ maxValue?: Object; @@ -28947,19 +29837,32 @@ interface IgDatePicker { dateInputFormat?: string; /** - * Gets/Sets the value type returned by the get of value() method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. - * Note: That is used as default. + * Gets the value type returned by the get of value() method and option. Also affects how the value is stored for form submit. + * The [enableUTCDates](ui.%%WidgetNameLowered%%#options:enableUTCDates) option can be used to output an UTC ISO string instead. + * For example 10:00 AM from a client with local offset of 5 hours ahead of GMT will be serialized as: + * "2016-11-11T10:00:00+05:00" * * * Valid values: - * "date" The Date object is used. When that mode is set the value send to the server on submit is string value converter from the javascript Date object using "toISOString" method. - * "displayModeText" The String object is used and the "text" in display mode (no focus) format (pattern). - * "editModeText" The String object is used and the "text" in edit mode (focus) format (pattern). + * "date" The value method returns a Date object. When this mode is set the value sent to the server on submit is serialized as ISO 8061 string with local time and zone values by default. + * "displayModeText" The "text" in display mode (no focus) format (pattern) is used to be send to the server and is returned from the value() method (returns a string object). + * "editModeText" The "text" in edit mode (focus) format (pattern) is used to be send to the server and is returned from the value() method (returns a string object). */ dataMode?: string; /** - * Gets/Sets delta-value which is used to increment or decrement value in editor on spin events. If value is set to negative value an exception is thrown. Non integer value is supported only for dataMode double and float. + * Gets/Sets time zone offset from UTC, in minutes. The client date values are displayed with this offset instead of the local one. + * Note: It is recommended that this option is used with an UTC value (e.g. "2016-11-03T14:08:08.504Z") so the outcome is consistent. + * Values with ambiguous time zone could map to unpredictable times depending on the user agent local zone. + * + */ + displayTimeOffset?: any; + + /** + * Gets/Sets delta-value which is used to increment or decrement the editor date on spin actions. + * When not editing (focused) the delta is applied on the day if available in the input mask or the lowest available period. + * When in edit mode the time period, where the cursor is positioned, is incremented or decremented with the defined delta value. + * The value can be only a positive integer number, otherwise it will be set as 1, or in the cases with double or float the the whole part will be taken. * */ spinDelta?: number; @@ -28973,14 +29876,8 @@ interface IgDatePicker { limitSpinToCurrentField?: boolean; /** - * Gets/Sets formatting of the dates as UTC. - * That option is supported only when dataMode option is 'date' and Date objects are used to get/set value of editor. - * Notes: - * That option affects only functionality of get/set value method and the Date-value, which was set on initialization. - * When application uses the set-value, then internal Date-value and displayed-text is incremented by TimezoneOffset. - * When application uses the get-value, then editor returns internal Date-value decremented by TimezoneOffset. - * When that option is modified after initialization, then displayed text and internal Date-value are not affected. - * It is not recommended to change that option without resetting Date-value. + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * The option is only applied in "date" [dataMode](ui.%%WidgetNameLowered%%#options:dataMode). * */ enableUTCDates?: boolean; @@ -29003,7 +29900,7 @@ interface IgDatePicker { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ - nullValue?: string|number; + nullValue?: string|number|Date; /** * This option is inherited from a parent widget and it's not applicable for igDateEditor @@ -29254,6 +30151,7 @@ interface IgDatePicker { [optionName: string]: any; } interface IgDatePickerMethods { + /** * Returns a reference to the jQuery calendar used as a picker selector */ @@ -29291,19 +30189,21 @@ interface IgDatePickerMethods { /** * Gets/Sets editor value. * - * Note! This option doesn't use the displayInputFormat to extract the date + * Note! This option doesn't use the dateInputFormat to extract the date * * @param newValue New editor value. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. For example Date(/"thicks"/). */ value(newValue?: Object): Object; /** - * Gets selected date. + * Gets selected date as a date object. This method can be used when dataMode is set as either displayModeText or editModeText. + * In such cases the value() method will not return date object and getSelectedDate() can be used to replace that functionality. */ getSelectedDate(): Object; /** - * Sets selected date. + * Sets selected date. This method can be used when dataMode is set as either displayModeText or editModeText. + * In such cases the value() cannot accept a date object as a new value and getSelectedDate() can be used to replace that functionality. * * @param date */ @@ -29343,6 +30243,7 @@ interface JQuery { } interface IgCheckboxEditor { + /** * Gets/Sets whether the checkbox is checked. * @@ -29566,6 +30467,7 @@ interface IgCheckboxEditor { [optionName: string]: any; } interface IgCheckboxEditorMethods { + /** * Checks if the value in the editor is valid. Note: This function will not trigger automatic notifications. */ @@ -29573,10 +30475,10 @@ interface IgCheckboxEditorMethods { /** * Gets/Sets Current checked state/Value of the igCheckboxEditor that will be submitted by the HTML form. - * 1. If the [value](ui.igcheckboxeditor#options:value) option IS NOT defined, then 'value' method will match the checked state of the editor. - * This option is used when the checkbox is intended to operate as a Boolean editor. In that case the return type is bool. - * 2. If the [value](ui.igcheckboxeditor#options:value) option IS defined, then 'value' method will return the value that will be submitted when the editor is checked and the form is submitted. - * To get checked state regardless of the 'value' option, use $(".selector").igCheckboxEditor("option", "checked"); + * 1. If the [value](ui.igcheckboxeditor#options:value) option IS NOT defined, then 'value' method will match the checked state of the editor. + * This option is used when the checkbox is intended to operate as a Boolean editor. In that case the return type is bool. + * 2. If the [value](ui.igcheckboxeditor#options:value) option IS defined, then 'value' method will return the value that will be submitted when the editor is checked and the form is submitted. + * To get checked state regardless of the 'value' option, use $(".selector").igCheckboxEditor("option", "checked"); * * @param newValue */ @@ -30149,14 +31051,14 @@ interface JQuery { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type string. * */ igTextEditor(optionLiteral: 'option', optionName: "listItems"): any[]; /** * /Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type string. * * * @optionValue New value to be set. @@ -30342,13 +31244,13 @@ interface JQuery { igTextEditor(optionLiteral: 'option', optionName: "textMode", optionValue: string): void; /** - * Gets/Sets the ability of the editor to automatically change the hoverd item into the opened dropdown list to its oposide side. When the last item is reached and the spin down is clicked, the first item gets hovered and vice versa. This option has no effect there is no drop-down list. + * Gets/Sets the ability of the editor to automatically move the dropdown list selection item from one end to the opposite side. When the last item is reached and spin down is performed, the first item gets selected and vice versa. This option has no effect there is no drop-down list. * */ igTextEditor(optionLiteral: 'option', optionName: "spinWrapAround"): boolean; /** - * /Sets the ability of the editor to automatically change the hoverd item into the opened dropdown list to its oposide side. When the last item is reached and the spin down is clicked, the first item gets hovered and vice versa. This option has no effect there is no drop-down list. + * /Sets the ability of the editor to automatically move the dropdown list selection item from one end to the opposite side. When the last item is reached and spin down is performed, the first item gets selected and vice versa. This option has no effect there is no drop-down list. * * * @optionValue New value to be set. @@ -30356,13 +31258,13 @@ interface JQuery { igTextEditor(optionLiteral: 'option', optionName: "spinWrapAround", optionValue: boolean): void; /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed + * Gets/Sets if the editor should only allow values from the list of items. Matching is case-insensitive. * */ igTextEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; /** - * /Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed + * /Sets if the editor should only allow values from the list of items. Matching is case-insensitive. * * * @optionValue New value to be set. @@ -31117,14 +32019,14 @@ interface JQuery { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * */ igNumericEditor(optionLiteral: 'option', optionName: "listItems"): any[]; /** * /Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * * * @optionValue New value to be set. @@ -31149,6 +32051,7 @@ interface JQuery { * Gets/Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * */ igNumericEditor(optionLiteral: 'option', optionName: "negativeSign"): string; @@ -31157,6 +32060,7 @@ interface JQuery { * /Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * * * @optionValue New value to be set. @@ -31185,6 +32089,7 @@ interface JQuery { * Gets/Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ igNumericEditor(optionLiteral: 'option', optionName: "decimalSeparator"): string; @@ -31193,6 +32098,7 @@ interface JQuery { * /Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * * * @optionValue New value to be set. @@ -31202,8 +32108,9 @@ interface JQuery { /** * Gets/Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ igNumericEditor(optionLiteral: 'option', optionName: "groupSeparator"): string; @@ -31211,8 +32118,9 @@ interface JQuery { /** * /Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * * * @optionValue New value to be set. @@ -31225,7 +32133,8 @@ interface JQuery { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * */ @@ -31237,7 +32146,8 @@ interface JQuery { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * * @@ -31246,19 +32156,21 @@ interface JQuery { igNumericEditor(optionLiteral: 'option', optionName: "groups", optionValue: any[]): void; /** - * Gets/Sets the maximum number of decimal places which are used in display mode(no focus). + * Gets/Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ igNumericEditor(optionLiteral: 'option', optionName: "maxDecimals"): number; /** - * /Sets the maximum number of decimal places which are used in display mode(no focus). + * /Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * * * @optionValue New value to be set. @@ -31266,29 +32178,47 @@ interface JQuery { igNumericEditor(optionLiteral: 'option', optionName: "maxDecimals", optionValue: number): void; /** - * Gets/Sets the minimum number of decimal places which are used in display (no focus) state. + * Gets/Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ igNumericEditor(optionLiteral: 'option', optionName: "minDecimals"): number; /** - * /Sets the minimum number of decimal places which are used in display (no focus) state. + * /Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * * * @optionValue New value to be set. */ igNumericEditor(optionLiteral: 'option', optionName: "minDecimals", optionValue: number): void; + /** + * Gets/Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + */ + igNumericEditor(optionLiteral: 'option', optionName: "roundDecimals"): boolean; + + /** + * /Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + * + * @optionValue New value to be set. + */ + igNumericEditor(optionLiteral: 'option', optionName: "roundDecimals", optionValue: boolean): void; + /** * Gets/Sets the horizontal alignment of the text in the editor. * @@ -31382,7 +32312,7 @@ interface JQuery { igNumericEditor(optionLiteral: 'option', optionName: "spinDelta", optionValue: number): void; /** - * Gets/Sets support for scientific format in edit mode. + * Gets/Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -31391,7 +32321,7 @@ interface JQuery { igNumericEditor(optionLiteral: 'option', optionName: "scientificFormat"): string; /** - * /Sets support for scientific format in edit mode. + * /Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -31403,18 +32333,34 @@ interface JQuery { /** * Gets/Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * */ igNumericEditor(optionLiteral: 'option', optionName: "spinWrapAround"): boolean; /** * /Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * * @optionValue New value to be set. */ igNumericEditor(optionLiteral: 'option', optionName: "spinWrapAround", optionValue: boolean): void; + /** + * Gets/Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + */ + igNumericEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; + + /** + * /Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + * + * @optionValue New value to be set. + */ + igNumericEditor(optionLiteral: 'option', optionName: "isLimitedToListValues", optionValue: boolean): void; + /** * Removed from numeric editor options */ @@ -31625,20 +32571,6 @@ interface JQuery { */ igNumericEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; - /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - */ - igNumericEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; - - /** - * /Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - * - * @optionValue New value to be set. - */ - igNumericEditor(optionLiteral: 'option', optionName: "isLimitedToListValues", optionValue: boolean): void; - /** * Gets/Sets if the editor should revert it's value to the previously valid value in case the value on blur, or enter key is not valid. If the opiton is set to false, editor calls clear functionality. * @@ -32041,14 +32973,14 @@ interface JQuery { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "listItems"): any[]; /** * /Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * * * @optionValue New value to be set. @@ -32073,6 +33005,7 @@ interface JQuery { * Gets/Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "negativeSign"): string; @@ -32081,6 +33014,7 @@ interface JQuery { * /Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * * * @optionValue New value to be set. @@ -32109,6 +33043,7 @@ interface JQuery { * Gets/Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "decimalSeparator"): string; @@ -32117,6 +33052,7 @@ interface JQuery { * /Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * * * @optionValue New value to be set. @@ -32126,8 +33062,9 @@ interface JQuery { /** * Gets/Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "groupSeparator"): string; @@ -32135,8 +33072,9 @@ interface JQuery { /** * /Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * * * @optionValue New value to be set. @@ -32149,7 +33087,8 @@ interface JQuery { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * */ @@ -32161,7 +33100,8 @@ interface JQuery { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * * @@ -32170,19 +33110,21 @@ interface JQuery { igCurrencyEditor(optionLiteral: 'option', optionName: "groups", optionValue: any[]): void; /** - * Gets/Sets the maximum number of decimal places which are used in display mode(no focus). + * Gets/Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "maxDecimals"): number; /** - * /Sets the maximum number of decimal places which are used in display mode(no focus). + * /Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * * * @optionValue New value to be set. @@ -32190,29 +33132,47 @@ interface JQuery { igCurrencyEditor(optionLiteral: 'option', optionName: "maxDecimals", optionValue: number): void; /** - * Gets/Sets the minimum number of decimal places which are used in display (no focus) state. + * Gets/Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "minDecimals"): number; /** - * /Sets the minimum number of decimal places which are used in display (no focus) state. + * /Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * * * @optionValue New value to be set. */ igCurrencyEditor(optionLiteral: 'option', optionName: "minDecimals", optionValue: number): void; + /** + * Gets/Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + */ + igCurrencyEditor(optionLiteral: 'option', optionName: "roundDecimals"): boolean; + + /** + * /Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + * + * @optionValue New value to be set. + */ + igCurrencyEditor(optionLiteral: 'option', optionName: "roundDecimals", optionValue: boolean): void; + /** * Gets/Sets the horizontal alignment of the text in the editor. * @@ -32306,7 +33266,7 @@ interface JQuery { igCurrencyEditor(optionLiteral: 'option', optionName: "spinDelta", optionValue: number): void; /** - * Gets/Sets support for scientific format in edit mode. + * Gets/Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -32315,7 +33275,7 @@ interface JQuery { igCurrencyEditor(optionLiteral: 'option', optionName: "scientificFormat"): string; /** - * /Sets support for scientific format in edit mode. + * /Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -32327,18 +33287,34 @@ interface JQuery { /** * Gets/Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * */ igCurrencyEditor(optionLiteral: 'option', optionName: "spinWrapAround"): boolean; /** * /Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * * @optionValue New value to be set. */ igCurrencyEditor(optionLiteral: 'option', optionName: "spinWrapAround", optionValue: boolean): void; + /** + * Gets/Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + */ + igCurrencyEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; + + /** + * /Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + * + * @optionValue New value to be set. + */ + igCurrencyEditor(optionLiteral: 'option', optionName: "isLimitedToListValues", optionValue: boolean): void; + /** * Removed from numeric editor options */ @@ -32549,20 +33525,6 @@ interface JQuery { */ igCurrencyEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; - /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - */ - igCurrencyEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; - - /** - * /Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - * - * @optionValue New value to be set. - */ - igCurrencyEditor(optionLiteral: 'option', optionName: "isLimitedToListValues", optionValue: boolean): void; - /** * Gets/Sets if the editor should revert it's value to the previously valid value in case the value on blur, or enter key is not valid. If the opiton is set to false, editor calls clear functionality. * @@ -32878,14 +33840,14 @@ interface JQuery { /** * Gets/Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * */ igPercentEditor(optionLiteral: 'option', optionName: "listItems"): any[]; /** * /Sets list of items which are used as a source for the drop-down list. - * Items in the list can be of type string, number or object. The items are directly rendered without any casting, or manipulation. + * Items in the list can be of type number. * * * @optionValue New value to be set. @@ -32910,6 +33872,7 @@ interface JQuery { * Gets/Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * */ igPercentEditor(optionLiteral: 'option', optionName: "negativeSign"): string; @@ -32918,6 +33881,7 @@ interface JQuery { * /Sets the character, which is used as negative sign. * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) options. * * * @optionValue New value to be set. @@ -32946,6 +33910,7 @@ interface JQuery { * Gets/Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ igPercentEditor(optionLiteral: 'option', optionName: "decimalSeparator"): string; @@ -32954,6 +33919,7 @@ interface JQuery { * /Sets the character, which is used as decimal separator. * Note: this option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [groupSeparator](ui.igNumericEditor#options:groupSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * * * @optionValue New value to be set. @@ -32963,8 +33929,9 @@ interface JQuery { /** * Gets/Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * */ igPercentEditor(optionLiteral: 'option', optionName: "groupSeparator"): string; @@ -32972,8 +33939,9 @@ interface JQuery { /** * /Sets the character, which is used as separator for groups (like thousands). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option's value should not be equal to the value of [decimalSeparator](ui.igNumericEditor#options:decimalSeparator) or [negativeSign](ui.igNumericEditor#options:negativeSign) options. * * * @optionValue New value to be set. @@ -32986,7 +33954,8 @@ interface JQuery { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * */ @@ -32998,7 +33967,8 @@ interface JQuery { * If the sum of all values in array is smaller than the length of integer part, then the last item in array is used for all following groups. * Count of groups starts from the decimal point (from right to left). * That option has effect only in display mode(no focus). - * Note: this option has priority over possible regional settings. + * Note: The numbers in the array must be positive integers. + * Note: This option has priority over possible regional settings. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. * * @@ -33007,19 +33977,21 @@ interface JQuery { igPercentEditor(optionLiteral: 'option', optionName: "groups", optionValue: any[]): void; /** - * Gets/Sets the maximum number of decimal places which are used in display mode(no focus). + * Gets/Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ igPercentEditor(optionLiteral: 'option', optionName: "maxDecimals"): number; /** - * /Sets the maximum number of decimal places which are used in display mode(no focus). + * /Sets the maximum number of decimal places supported by the editor. * Note: this option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * * * @optionValue New value to be set. @@ -33027,29 +33999,47 @@ interface JQuery { igPercentEditor(optionLiteral: 'option', optionName: "maxDecimals", optionValue: number): void; /** - * Gets/Sets the minimum number of decimal places which are used in display (no focus) state. + * Gets/Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * */ igPercentEditor(optionLiteral: 'option', optionName: "minDecimals"): number; /** - * /Sets the minimum number of decimal places which are used in display (no focus) state. + * /Sets the minimum number of decimal places supported by the editor. * If number of digits in fractional part of number is less than the value of this option, then the "0" characters are used to fill missing digits. * Note: This option has priority over possible regional settings. * Note: In case of min decimals value higher than max decimals - max decimals are equaled to min decimals property. * Note: Even if the default value is null - if internationalization file is provided and it contains default values for those properties the values are imlicitly set. - * Note: This option supports values below or equal to 20. + * Note: This option supports values between 0 and 15, when dataMode is 'double' (default) and values between 0 and 7 in 'float' mode. * * * @optionValue New value to be set. */ igPercentEditor(optionLiteral: 'option', optionName: "minDecimals", optionValue: number): void; + /** + * Gets/Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + */ + igPercentEditor(optionLiteral: 'option', optionName: "roundDecimals"): boolean; + + /** + * /Sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. + * For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, + * then editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456. + * + * + * @optionValue New value to be set. + */ + igPercentEditor(optionLiteral: 'option', optionName: "roundDecimals", optionValue: boolean): void; + /** * Gets/Sets the horizontal alignment of the text in the editor. * @@ -33109,7 +34099,7 @@ interface JQuery { igPercentEditor(optionLiteral: 'option', optionName: "allowNullValue", optionValue: boolean): void; /** - * Gets/Sets support for scientific format in edit mode. + * Gets/Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -33118,7 +34108,7 @@ interface JQuery { igPercentEditor(optionLiteral: 'option', optionName: "scientificFormat"): string; /** - * /Sets support for scientific format in edit mode. + * /Sets support for scientific format. * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * @@ -33130,18 +34120,34 @@ interface JQuery { /** * Gets/Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * */ igPercentEditor(optionLiteral: 'option', optionName: "spinWrapAround"): boolean; /** * /Set the ability of the editor to automatically set value in the editor to the opposite side of the limit, when the spin action reaches minimum or maximum limit. + * This applies to [minValue](ui.%%WidgetNameLowered%%#options:minValue) and [maxValue](ui.%%WidgetNameLowered%%#options:maxValue) or cycling through list items if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * * * @optionValue New value to be set. */ igPercentEditor(optionLiteral: 'option', optionName: "spinWrapAround", optionValue: boolean): void; + /** + * Gets/Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + */ + igPercentEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; + + /** + * /Sets if the editor should only allow values from the list of items. Enabling this also causes spin actions to cycle through list items instead. + * + * + * @optionValue New value to be set. + */ + igPercentEditor(optionLiteral: 'option', optionName: "isLimitedToListValues", optionValue: boolean): void; + /** * Removed from numeric editor options */ @@ -33352,20 +34358,6 @@ interface JQuery { */ igPercentEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; - /** - * Gets/Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - */ - igPercentEditor(optionLiteral: 'option', optionName: "isLimitedToListValues"): boolean; - - /** - * /Sets if the editor should only allow values set into the list of items. This validation is done only when the editor is blured, or enter key is pressed - * - * - * @optionValue New value to be set. - */ - igPercentEditor(optionLiteral: 'option', optionName: "isLimitedToListValues", optionValue: boolean): void; - /** * Gets/Sets if the editor should revert it's value to the previously valid value in case the value on blur, or enter key is not valid. If the opiton is set to false, editor calls clear functionality. * @@ -33615,14 +34607,12 @@ interface JQuery { /** * Gets visibility of the clear button. That option can be set only on initialization. * - * clear A button to clear the value is located on the right side of the editor. */ igMaskEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** * Visibility of the clear button. That option can be set only on initialization. * - * clear A button to clear the value is located on the right side of the editor. * * @optionValue New value to be set. */ @@ -33675,13 +34665,13 @@ interface JQuery { igMaskEditor(optionLiteral: 'option', optionName: "inputMask", optionValue: string): void; /** - * Gets/Sets type of value returned by the get of [value](ui.igmaskeditor#methods:value) method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. + * It affects the value of the control (value method/option and submitted in forms). It defines what the value should contain from text, unfilled prompts and literals. The default is allText and when used value method/option returns the text entered, all prompts (positions) and literals. * */ igMaskEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** - * /Sets type of value returned by the get of [value](ui.igmaskeditor#methods:value) method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. + * It affects the value of the control (value method/option and submitted in forms). It defines what the value should contain from text, unfilled prompts and literals. The default is allText and when used value method/option returns the text entered, all prompts (positions) and literals. * * * @optionValue New value to be set. @@ -33703,13 +34693,13 @@ interface JQuery { igMaskEditor(optionLiteral: 'option', optionName: "unfilledCharsPrompt", optionValue: string): void; /** - * Gets/Sets character which is used as replacement of not-filled required position in mask when editor is in display mode (not focused). Note that this option is visible, only when the [revertIfNotValid](ui.igmaskeditor#options:revertIfNotValid) option is set to false. + * Gets/Sets character which is used as replacement of not-filled required position in mask when editor is in display mode (not focused). * */ igMaskEditor(optionLiteral: 'option', optionName: "padChar"): string; /** - * /Sets character which is used as replacement of not-filled required position in mask when editor is in display mode (not focused). Note that this option is visible, only when the [revertIfNotValid](ui.igmaskeditor#options:revertIfNotValid) option is set to false. + * /Sets character which is used as replacement of not-filled required position in mask when editor is in display mode (not focused). * * * @optionValue New value to be set. @@ -34289,14 +35279,14 @@ interface JQuery { /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ igDateEditor(optionLiteral: 'option', optionName: "value"): Object; /** * /Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * * * @optionValue New value to be set. @@ -34305,14 +35295,14 @@ interface JQuery { /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ igDateEditor(optionLiteral: 'option', optionName: "minValue"): Object; /** * The minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * * * @optionValue New value to be set. @@ -34321,14 +35311,14 @@ interface JQuery { /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ igDateEditor(optionLiteral: 'option', optionName: "maxValue"): Object; /** * The maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * * * @optionValue New value to be set. @@ -34486,21 +35476,43 @@ interface JQuery { igDateEditor(optionLiteral: 'option', optionName: "dateInputFormat", optionValue: string): void; /** - * Gets/Sets the value type returned by the get of value() method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. - * Note: That is used as default. + * Gets the value type returned by the get of value() method and option. Also affects how the value is stored for form submit. + * The [enableUTCDates](ui.%%WidgetNameLowered%%#options:enableUTCDates) option can be used to output an UTC ISO string instead. + * For example 10:00 AM from a client with local offset of 5 hours ahead of GMT will be serialized as: + * "2016-11-11T10:00:00+05:00" * */ igDateEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** - * /Sets the value type returned by the get of value() method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. - * Note: That is used as default. + * The value type returned by the get of value() method and option. Also affects how the value is stored for form submit. + * The [enableUTCDates](ui.%%WidgetNameLowered%%#options:enableUTCDates) option can be used to output an UTC ISO string instead. + * For example 10:00 AM from a client with local offset of 5 hours ahead of GMT will be serialized as: + * "2016-11-11T10:00:00+05:00" * * * @optionValue New value to be set. */ igDateEditor(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; + /** + * Gets/Sets time zone offset from UTC, in minutes. The client date values are displayed with this offset instead of the local one. + * Note: It is recommended that this option is used with an UTC value (e.g. "2016-11-03T14:08:08.504Z") so the outcome is consistent. + * Values with ambiguous time zone could map to unpredictable times depending on the user agent local zone. + * + */ + igDateEditor(optionLiteral: 'option', optionName: "displayTimeOffset"): any; + + /** + * /Sets time zone offset from UTC, in minutes. The client date values are displayed with this offset instead of the local one. + * Note: It is recommended that this option is used with an UTC value (e.g. "2016-11-03T14:08:08.504Z") so the outcome is consistent. + * Values with ambiguous time zone could map to unpredictable times depending on the user agent local zone. + * + * + * @optionValue New value to be set. + */ + igDateEditor(optionLiteral: 'option', optionName: "displayTimeOffset", optionValue: any): void; + /** * Gets visibility of the spin and clear buttons. That option can be set only on initialization. Combinations like 'spin,clear' are supported too. * @@ -34516,13 +35528,19 @@ interface JQuery { igDateEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** - * Gets/Sets delta-value which is used to increment or decrement value in editor on spin events. If value is set to negative value an exception is thrown. Non integer value is supported only for dataMode double and float. + * Gets/Sets delta-value which is used to increment or decrement the editor date on spin actions. + * When not editing (focused) the delta is applied on the day if available in the input mask or the lowest available period. + * When in edit mode the time period, where the cursor is positioned, is incremented or decremented with the defined delta value. + * The value can be only a positive integer number, otherwise it will be set as 1, or in the cases with double or float the the whole part will be taken. * */ igDateEditor(optionLiteral: 'option', optionName: "spinDelta"): number; /** - * /Sets delta-value which is used to increment or decrement value in editor on spin events. If value is set to negative value an exception is thrown. Non integer value is supported only for dataMode double and float. + * /Sets delta-value which is used to increment or decrement the editor date on spin actions. + * When not editing (focused) the delta is applied on the day if available in the input mask or the lowest available period. + * When in edit mode the time period, where the cursor is positioned, is incremented or decremented with the defined delta value. + * The value can be only a positive integer number, otherwise it will be set as 1, or in the cases with double or float the the whole part will be taken. * * * @optionValue New value to be set. @@ -34548,27 +35566,15 @@ interface JQuery { igDateEditor(optionLiteral: 'option', optionName: "limitSpinToCurrentField", optionValue: boolean): void; /** - * Gets/Sets formatting of the dates as UTC. - * That option is supported only when dataMode option is 'date' and Date objects are used to get/set value of editor. - * Notes: - * That option affects only functionality of get/set value method and the Date-value, which was set on initialization. - * When application uses the set-value, then internal Date-value and displayed-text is incremented by TimezoneOffset. - * When application uses the get-value, then editor returns internal Date-value decremented by TimezoneOffset. - * When that option is modified after initialization, then displayed text and internal Date-value are not affected. - * It is not recommended to change that option without resetting Date-value. + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * The option is only applied in "date" [dataMode](ui.%%WidgetNameLowered%%#options:dataMode). * */ igDateEditor(optionLiteral: 'option', optionName: "enableUTCDates"): boolean; /** - * /Sets formatting of the dates as UTC. - * That option is supported only when dataMode option is 'date' and Date objects are used to get/set value of editor. - * Notes: - * That option affects only functionality of get/set value method and the Date-value, which was set on initialization. - * When application uses the set-value, then internal Date-value and displayed-text is incremented by TimezoneOffset. - * When application uses the get-value, then editor returns internal Date-value decremented by TimezoneOffset. - * When that option is modified after initialization, then displayed text and internal Date-value are not affected. - * It is not recommended to change that option without resetting Date-value. + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * The option is only applied in "date" [dataMode](ui.%%WidgetNameLowered%%#options:dataMode). * * * @optionValue New value to be set. @@ -34611,7 +35617,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ - igDateEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; + igDateEditor(optionLiteral: 'option', optionName: "nullValue"): string|number|Date; /** * /Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string @@ -34619,7 +35625,7 @@ interface JQuery { * * @optionValue New value to be set. */ - igDateEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; + igDateEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number|Date): void; /** * This option is inherited from a parent widget and it's not applicable for igDateEditor @@ -35326,14 +36332,14 @@ interface JQuery { /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ igDatePicker(optionLiteral: 'option', optionName: "value"): Object; /** * /Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * * * @optionValue New value to be set. @@ -35342,14 +36348,14 @@ interface JQuery { /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ igDatePicker(optionLiteral: 'option', optionName: "minValue"): Object; /** * The minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * * * @optionValue New value to be set. @@ -35358,14 +36364,14 @@ interface JQuery { /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * */ igDatePicker(optionLiteral: 'option', optionName: "maxValue"): Object; /** * The maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. - * Note! This option doesn't use the displayInputFormat to extract the date. + * Note! This option doesn't use the dateInputFormat to extract the date. * * * @optionValue New value to be set. @@ -35523,15 +36529,19 @@ interface JQuery { igDatePicker(optionLiteral: 'option', optionName: "dateInputFormat", optionValue: string): void; /** - * Gets/Sets the value type returned by the get of value() method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. - * Note: That is used as default. + * Gets the value type returned by the get of value() method and option. Also affects how the value is stored for form submit. + * The [enableUTCDates](ui.%%WidgetNameLowered%%#options:enableUTCDates) option can be used to output an UTC ISO string instead. + * For example 10:00 AM from a client with local offset of 5 hours ahead of GMT will be serialized as: + * "2016-11-11T10:00:00+05:00" * */ igDatePicker(optionLiteral: 'option', optionName: "dataMode"): string; /** - * /Sets the value type returned by the get of value() method. That also affects functionality of the set value(val) method and the copy/paste operations of browser. - * Note: That is used as default. + * The value type returned by the get of value() method and option. Also affects how the value is stored for form submit. + * The [enableUTCDates](ui.%%WidgetNameLowered%%#options:enableUTCDates) option can be used to output an UTC ISO string instead. + * For example 10:00 AM from a client with local offset of 5 hours ahead of GMT will be serialized as: + * "2016-11-11T10:00:00+05:00" * * * @optionValue New value to be set. @@ -35539,13 +36549,37 @@ interface JQuery { igDatePicker(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** - * Gets/Sets delta-value which is used to increment or decrement value in editor on spin events. If value is set to negative value an exception is thrown. Non integer value is supported only for dataMode double and float. + * Gets/Sets time zone offset from UTC, in minutes. The client date values are displayed with this offset instead of the local one. + * Note: It is recommended that this option is used with an UTC value (e.g. "2016-11-03T14:08:08.504Z") so the outcome is consistent. + * Values with ambiguous time zone could map to unpredictable times depending on the user agent local zone. + * + */ + igDatePicker(optionLiteral: 'option', optionName: "displayTimeOffset"): any; + + /** + * /Sets time zone offset from UTC, in minutes. The client date values are displayed with this offset instead of the local one. + * Note: It is recommended that this option is used with an UTC value (e.g. "2016-11-03T14:08:08.504Z") so the outcome is consistent. + * Values with ambiguous time zone could map to unpredictable times depending on the user agent local zone. + * + * + * @optionValue New value to be set. + */ + igDatePicker(optionLiteral: 'option', optionName: "displayTimeOffset", optionValue: any): void; + + /** + * Gets/Sets delta-value which is used to increment or decrement the editor date on spin actions. + * When not editing (focused) the delta is applied on the day if available in the input mask or the lowest available period. + * When in edit mode the time period, where the cursor is positioned, is incremented or decremented with the defined delta value. + * The value can be only a positive integer number, otherwise it will be set as 1, or in the cases with double or float the the whole part will be taken. * */ igDatePicker(optionLiteral: 'option', optionName: "spinDelta"): number; /** - * /Sets delta-value which is used to increment or decrement value in editor on spin events. If value is set to negative value an exception is thrown. Non integer value is supported only for dataMode double and float. + * /Sets delta-value which is used to increment or decrement the editor date on spin actions. + * When not editing (focused) the delta is applied on the day if available in the input mask or the lowest available period. + * When in edit mode the time period, where the cursor is positioned, is incremented or decremented with the defined delta value. + * The value can be only a positive integer number, otherwise it will be set as 1, or in the cases with double or float the the whole part will be taken. * * * @optionValue New value to be set. @@ -35571,27 +36605,15 @@ interface JQuery { igDatePicker(optionLiteral: 'option', optionName: "limitSpinToCurrentField", optionValue: boolean): void; /** - * Gets/Sets formatting of the dates as UTC. - * That option is supported only when dataMode option is 'date' and Date objects are used to get/set value of editor. - * Notes: - * That option affects only functionality of get/set value method and the Date-value, which was set on initialization. - * When application uses the set-value, then internal Date-value and displayed-text is incremented by TimezoneOffset. - * When application uses the get-value, then editor returns internal Date-value decremented by TimezoneOffset. - * When that option is modified after initialization, then displayed text and internal Date-value are not affected. - * It is not recommended to change that option without resetting Date-value. + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * The option is only applied in "date" [dataMode](ui.%%WidgetNameLowered%%#options:dataMode). * */ igDatePicker(optionLiteral: 'option', optionName: "enableUTCDates"): boolean; /** - * /Sets formatting of the dates as UTC. - * That option is supported only when dataMode option is 'date' and Date objects are used to get/set value of editor. - * Notes: - * That option affects only functionality of get/set value method and the Date-value, which was set on initialization. - * When application uses the set-value, then internal Date-value and displayed-text is incremented by TimezoneOffset. - * When application uses the get-value, then editor returns internal Date-value decremented by TimezoneOffset. - * When that option is modified after initialization, then displayed text and internal Date-value are not affected. - * It is not recommended to change that option without resetting Date-value. + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * The option is only applied in "date" [dataMode](ui.%%WidgetNameLowered%%#options:dataMode). * * * @optionValue New value to be set. @@ -35634,7 +36656,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ - igDatePicker(optionLiteral: 'option', optionName: "nullValue"): string|number; + igDatePicker(optionLiteral: 'option', optionName: "nullValue"): string|number|Date; /** * /Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string @@ -35642,7 +36664,7 @@ interface JQuery { * * @optionValue New value to be set. */ - igDatePicker(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; + igDatePicker(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number|Date): void; /** * This option is inherited from a parent widget and it's not applicable for igDateEditor @@ -36666,6 +37688,7 @@ interface SliceClickedEvent { } interface SliceClickedEventUIParam { + /** * Used to obtain reference to igFunnelChart. */ @@ -36688,6 +37711,7 @@ interface SliceClickedEventUIParam { } interface IgFunnelChart { + /** * Gets or sets values for upper and lower bezier points. That option has effect only when useBezierCurve is enabled. * Value should provide 4 numeric values in range from 0 to 1 separated by space character. @@ -36718,15 +37742,13 @@ interface IgFunnelChart { valueMemberPath?: string; /** - * Gets or sets the Brushes property. - * The brushes property defines the palette from which automatically assigned brushes are selected. + * Gets or sets the palette of brushes to use for coloring the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ brushes?: any; /** - * Gets or sets the Outlines property. - * The Outlines property defines the palette from which automatically assigned Outlines are selected. + * Gets or sets the palette of brushes to use for outlines on the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ outlines?: any; @@ -36750,8 +37772,8 @@ interface IgFunnelChart { * Gets or sets whether the inner labels are visible. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ innerLabelVisibility?: string; @@ -36759,8 +37781,8 @@ interface IgFunnelChart { * Gets or sets whether the outer labels are visible. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ outerLabelVisibility?: string; @@ -36873,6 +37895,12 @@ interface IgFunnelChart { * Gets or sets the thickness of outline around slices. */ outlineThickness?: number; + + /** + * Gets or sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + */ pixelScalingRatio?: number; outerLabelTextColor?: any; textColor?: any; @@ -36982,6 +38010,7 @@ interface IgFunnelChart { [optionName: string]: any; } interface IgFunnelChartMethods { + /** * Gets array of selected slice items. * @@ -37079,7 +38108,7 @@ interface IgFunnelChartMethods { /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. */ @@ -37087,7 +38116,7 @@ interface IgFunnelChartMethods { /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source where the new item has been inserted. @@ -37097,7 +38126,7 @@ interface IgFunnelChartMethods { /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source from where the old item has been removed. @@ -37114,6 +38143,11 @@ interface IgFunnelChartMethods { * Binds data to the chart */ dataBind(): void; + + /** + * Forces any pending deferred work to render on the chart before continuing + */ + flush(): void; } interface JQuery { data(propertyName: "igFunnelChart"): IgFunnelChartMethods; @@ -37139,6 +38173,7 @@ interface JQuery { igFunnelChart(methodName: "notifyRemoveItem", dataSource: Object, index: number, oldItem: Object): Object; igFunnelChart(methodName: "chart"): Object; igFunnelChart(methodName: "dataBind"): void; + igFunnelChart(methodName: "flush"): void; /** * Gets values for upper and lower bezier points. That option has effect only when useBezierCurve is enabled. @@ -37205,15 +38240,13 @@ interface JQuery { igFunnelChart(optionLiteral: 'option', optionName: "valueMemberPath", optionValue: string): void; /** - * Gets the Brushes property. - * The brushes property defines the palette from which automatically assigned brushes are selected. + * Gets the palette of brushes to use for coloring the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ igFunnelChart(optionLiteral: 'option', optionName: "brushes"): any; /** - * Sets the Brushes property. - * The brushes property defines the palette from which automatically assigned brushes are selected. + * Sets the palette of brushes to use for coloring the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. * * @optionValue New value to be set. @@ -37221,15 +38254,13 @@ interface JQuery { igFunnelChart(optionLiteral: 'option', optionName: "brushes", optionValue: any): void; /** - * Gets the Outlines property. - * The Outlines property defines the palette from which automatically assigned Outlines are selected. + * Gets the palette of brushes to use for outlines on the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. */ igFunnelChart(optionLiteral: 'option', optionName: "outlines"): any; /** - * Sets the Outlines property. - * The Outlines property defines the palette from which automatically assigned Outlines are selected. + * Sets the palette of brushes to use for outlines on the slices. * The value provided should be an array of css color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection. * * @optionValue New value to be set. @@ -37533,10 +38564,18 @@ interface JQuery { igFunnelChart(optionLiteral: 'option', optionName: "outlineThickness", optionValue: number): void; /** + * Gets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ igFunnelChart(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; /** + * Sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + * + * @optionValue New value to be set. */ igFunnelChart(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; @@ -37787,7 +38826,1966 @@ interface JQuery { igFunnelChart(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igFunnelChart(methodName: string, ...methodParams: any[]): any; } +interface RowsRequestingEvent { + (event: Event, ui: RowsRequestingEventUIParam): void; +} + +interface RowsRequestingEventUIParam { +} + +interface RowsRequestedEvent { + (event: Event, ui: RowsRequestedEventUIParam): void; +} + +interface RowsRequestedEventUIParam { +} + +interface IgGridAppendRowsOnDemand { + + /** + * Defines local or remote type of appending rows on demand in igGrid + * + * + * Valid values: + * "remote" request data from the remote endpoint + * "local" loading data on the client-side + */ + type?: string; + + /** + * Default number of records per chunk + * + */ + chunkSize?: number; + + /** + * The property in the response that will hold the total number of records in the data source + * + */ + recordCountKey?: string; + + /** + * Denotes the name of the encoded URL parameter that will state what is the currently requested chunk size + * + */ + chunkSizeUrlKey?: string; + + /** + * Denotes the name of the encoded URL parameter that will state what is the currently requested chunk index + * + */ + chunkIndexUrlKey?: string; + + /** + * Initial chunk index position + * + */ + defaultChunkIndex?: number; + + /** + * Current chunk index position + * + */ + currentChunkIndex?: number; + + /** + * denotes the append rows on demand request method + * + * + * Valid values: + * "auto" new record will be appended to the grid while the user scrolls the scrollbar + * "button" a button will be rendered at the bottom of the grid. The user should press it to load more rows + */ + loadTrigger?: string; + + /** + * Specifies caption text for the "load more data" button. + * + */ + loadMoreDataButtonText?: string; + + /** + * Event fired before the rows are requested from the remote endpoint. + * Return false in order to cancel requesting of rows. + */ + rowsRequesting?: RowsRequestingEvent; + + /** + * Event fired after the requested rows are returned from the remote endpoint, but before grid data rebinds + */ + rowsRequested?: RowsRequestedEvent; + + /** + * Option for igGridAppendRowsOnDemand + */ + [optionName: string]: any; +} +interface IgGridAppendRowsOnDemandMethods { + + /** + * Destroys the append rows on demand widget + */ + destroy(): void; + + /** + * Loads the next chunk of data. + */ + nextChunk(): void; +} +interface JQuery { + data(propertyName: "igGridAppendRowsOnDemand"): IgGridAppendRowsOnDemandMethods; +} + +interface JQuery { + igGridAppendRowsOnDemand(methodName: "destroy"): void; + igGridAppendRowsOnDemand(methodName: "nextChunk"): void; + + /** + * Defines local or remote type of appending rows on demand in igGrid + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "type"): string; + + /** + * Defines local or remote type of appending rows on demand in igGrid + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "type", optionValue: string): void; + + /** + * Default number of records per chunk + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "chunkSize"): number; + + /** + * Default number of records per chunk + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "chunkSize", optionValue: number): void; + + /** + * The property in the response that will hold the total number of records in the data source + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "recordCountKey"): string; + + /** + * The property in the response that will hold the total number of records in the data source + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "recordCountKey", optionValue: string): void; + + /** + * Denotes the name of the encoded URL parameter that will state what is the currently requested chunk size + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "chunkSizeUrlKey"): string; + + /** + * Denotes the name of the encoded URL parameter that will state what is the currently requested chunk size + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "chunkSizeUrlKey", optionValue: string): void; + + /** + * Denotes the name of the encoded URL parameter that will state what is the currently requested chunk index + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "chunkIndexUrlKey"): string; + + /** + * Denotes the name of the encoded URL parameter that will state what is the currently requested chunk index + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "chunkIndexUrlKey", optionValue: string): void; + + /** + * Initial chunk index position + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "defaultChunkIndex"): number; + + /** + * Initial chunk index position + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "defaultChunkIndex", optionValue: number): void; + + /** + * Current chunk index position + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "currentChunkIndex"): number; + + /** + * Current chunk index position + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "currentChunkIndex", optionValue: number): void; + + /** + * Denotes the append rows on demand request method + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "loadTrigger"): string; + + /** + * Denotes the append rows on demand request method + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "loadTrigger", optionValue: string): void; + + /** + * Gets caption text for the "load more data" button. + * + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "loadMoreDataButtonText"): string; + + /** + * Sets caption text for the "load more data" button. + * + * + * @optionValue New value to be set. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "loadMoreDataButtonText", optionValue: string): void; + + /** + * Event fired before the rows are requested from the remote endpoint. + * Return false in order to cancel requesting of rows. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "rowsRequesting"): RowsRequestingEvent; + + /** + * Event fired before the rows are requested from the remote endpoint. + * Return false in order to cancel requesting of rows. + * + * @optionValue Define event handler function. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "rowsRequesting", optionValue: RowsRequestingEvent): void; + + /** + * Event fired after the requested rows are returned from the remote endpoint, but before grid data rebinds + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "rowsRequested"): RowsRequestedEvent; + + /** + * Event fired after the requested rows are returned from the remote endpoint, but before grid data rebinds + * + * @optionValue Define event handler function. + */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "rowsRequested", optionValue: RowsRequestedEvent): void; + igGridAppendRowsOnDemand(options: IgGridAppendRowsOnDemand): JQuery; + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: string): any; + igGridAppendRowsOnDemand(optionLiteral: 'option', options: IgGridAppendRowsOnDemand): JQuery; + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igGridAppendRowsOnDemand(methodName: string, ...methodParams: any[]): any; +} +interface CellsMergingEvent { + (event: Event, ui: CellsMergingEventUIParam): void; +} + +interface CellsMergingEventUIParam { +} + +interface CellsMergedEvent { + (event: Event, ui: CellsMergedEventUIParam): void; +} + +interface CellsMergedEventUIParam { +} + +interface IgGridCellMerging { + + /** + * controls the initial state + * + * + * Valid values: + * "regular" the grid won't be initialized with cells merged + * "merged" the grid will be initialized with cells merged + */ + initialState?: string; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + */ + inherit?: boolean; + + /** + * Event fired before a new merged cells group is created. + */ + cellsMerging?: CellsMergingEvent; + cellsMerged?: CellsMergedEvent; + + /** + * Option for igGridCellMerging + */ + [optionName: string]: any; +} +interface IgGridCellMergingMethods { + destroy(): void; +} +interface JQuery { + data(propertyName: "igGridCellMerging"): IgGridCellMergingMethods; +} + +interface JQuery { + igGridCellMerging(methodName: "destroy"): void; + + /** + * Controls the initial state + * + */ + igGridCellMerging(optionLiteral: 'option', optionName: "initialState"): string; + + /** + * Controls the initial state + * + * + * @optionValue New value to be set. + */ + igGridCellMerging(optionLiteral: 'option', optionName: "initialState", optionValue: string): void; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + */ + igGridCellMerging(optionLiteral: 'option', optionName: "inherit"): boolean; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + * + * @optionValue New value to be set. + */ + igGridCellMerging(optionLiteral: 'option', optionName: "inherit", optionValue: boolean): void; + + /** + * Event fired before a new merged cells group is created. + */ + igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerging"): CellsMergingEvent; + + /** + * Event fired before a new merged cells group is created. + * + * @optionValue Define event handler function. + */ + igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerging", optionValue: CellsMergingEvent): void; + + /** + */ + igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerged"): CellsMergedEvent; + + /** + */ + igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerged", optionValue: CellsMergedEvent): void; + igGridCellMerging(options: IgGridCellMerging): JQuery; + igGridCellMerging(optionLiteral: 'option', optionName: string): any; + igGridCellMerging(optionLiteral: 'option', options: IgGridCellMerging): JQuery; + igGridCellMerging(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igGridCellMerging(methodName: string, ...methodParams: any[]): any; +} +interface IgGridColumnFixingColumnSetting { + + /** + * Identifies the grid column by key. Either key or index must be set in every column setting. + * + */ + columnKey?: string; + + /** + * Identifies the grid column by index. Either key or index must be set in every column setting. + * + */ + columnIndex?: number; + + /** + * Specifies whether the column can be fixed or not. If allow fixing is false, then the fixing pin will not be rendered for the column. + * + */ + allowFixing?: boolean; + + /** + * Specifies whether the column is initially fixed or not. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#initial-state) out for more information. + * + */ + isFixed?: boolean; + + /** + * Option for IgGridColumnFixingColumnSetting + */ + [optionName: string]: any; +} + +interface ColumnFixingEvent { + (event: Event, ui: ColumnFixingEventUIParam): void; +} + +interface ColumnFixingEventUIParam { +} + +interface ColumnFixedEvent { + (event: Event, ui: ColumnFixedEventUIParam): void; +} + +interface ColumnFixedEventUIParam { +} + +interface ColumnUnfixingEvent { + (event: Event, ui: ColumnUnfixingEventUIParam): void; +} + +interface ColumnUnfixingEventUIParam { +} + +interface ColumnUnfixedEvent { + (event: Event, ui: ColumnUnfixedEventUIParam): void; +} + +interface ColumnUnfixedEventUIParam { +} + +interface ColumnFixingRefusedEvent { + (event: Event, ui: ColumnFixingRefusedEventUIParam): void; +} + +interface ColumnFixingRefusedEventUIParam { +} + +interface ColumnUnfixingRefusedEvent { + (event: Event, ui: ColumnUnfixingRefusedEventUIParam): void; +} + +interface ColumnUnfixingRefusedEventUIParam { +} + +interface IgGridColumnFixing { + + /** + * Specifies the tooltip text on the column fixing header icon when column is not fixed. + * + */ + headerFixButtonText?: string; + + /** + * Specifies the tooltip text on the column fixing header icon when column is fixed. + * + */ + headerUnfixButtonText?: string; + + /** + * Specifies whether to show the column fixing buttons in header cells/feature chooser. + * + */ + showFixButtons?: boolean; + + /** + * Enable row height sync for the fixed and unfixed portion of the grid. If you're observing row misalignment, please refer to [this article](http://www.igniteui.com/help/iggrid-known-issues#misalignment-ie9). + * + */ + syncRowHeights?: boolean; + + /** + * Scroll delta in pixels when scrolling with the mouse wheel or the keyboard in the fixed columns area of the grid. + * + */ + scrollDelta?: number; + + /** + * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. + * + * + * Valid values: + * "left" Fixed columns are rendered on the left side of the main grid. + * "right" Fixed columns are rendered on the right side of the main grid. + */ + fixingDirection?: string; + + /** + * List of column settings that specifies custom column fixing options on a per column basis. + * + */ + columnSettings?: IgGridColumnFixingColumnSetting[]; + + /** + * Text of the feature chooser button for fixing a currently unfixed column. + * + */ + featureChooserTextFixedColumn?: string; + + /** + * Text of the feature chooser button for unfixing a currently fixed column. + * + */ + featureChooserTextUnfixedColumn?: string; + + /** + * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. + * + * + * Valid values: + * "string" The width can be set in pixels (px) and percentage (%). + * "number" The width can be set in pixels as a number. + */ + minimalVisibleAreaWidth?: string|number; + + /** + * Specify initial fixing of all non data columns. Non-data columns are columns in the grid rendered for specific features, like the row selectors feature. The column containing the row numbering is such a column. This option is applicable when [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is set to left. For a full column fixing configuration summary please refer to [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#configuration-summary). + * + */ + fixNondataColumns?: boolean; + + /** + * When true all the TR DOM attributes of the unfixed row will be copied to the fixed row. Note that when enabled this option negatively affects performance when fixing a column. + */ + populateDataRowsAttributes?: boolean; + + /** + * Event which is fired when column fixing operation is initiated. + */ + columnFixing?: ColumnFixingEvent; + + /** + * Event which is fired when column fixing operation is finished + */ + columnFixed?: ColumnFixedEvent; + + /** + * Event which is fired when column unfixing operation is initiated + */ + columnUnfixing?: ColumnUnfixingEvent; + + /** + * Event which is fired when column unfixing operation is done + */ + columnUnfixed?: ColumnUnfixedEvent; + + /** + * Event which is fired when column fixing operation has failed - e.g. sum of the width of the fixed columns container and width of the column to be fixed exceeds the grid width + */ + columnFixingRefused?: ColumnFixingRefusedEvent; + + /** + * Event which is fired when column unfixing operation has failed - e.g.: there is only one fixed visible column(and tries to unfix it) and at least one fixed hidden column + */ + columnUnfixingRefused?: ColumnUnfixingRefusedEvent; + + /** + * Option for igGridColumnFixing + */ + [optionName: string]: any; +} +interface IgGridColumnFixingMethods { + + /** + * Unfixes a column by specified column identifier - column key or column index. + * + * @param colIdentifier An identifier of the column to be unfixed - column index or column key. + * @param target Key of the column where the unfixed column should move to. + * @param after Specifies where the unfixed column should be rendered after or before the target column. This parameter is disregarded if there is no target column specified. + */ + unfixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; + + /** + * Checks whether the heights of fixed and unfixed tables are equal - if not sync them. Similar check is made for heights of table rows. + */ + checkAndSyncHeights(): void; + + /** + * If the 'check' argument is set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. Similar check is made for heights of table rows. If the clearRowsHeights argument is set to true, clears rows heights before syncing them. + * + * @param check If set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. If this argument is set to false sync is performed regardless of the current heights. + * @param clearRowsHeights Clears row heigths for all visible rows. + */ + syncHeights(check?: boolean, clearRowsHeights?: boolean): void; + + /** + * Returns whether the column with the specified key is a column group header, when the [multi-column headers](http://www.igniteui.com/help/iggrid-multicolumnheaders-landingpage) feature is used. + * + * @param colKey The key of the column to perform the check for. + */ + isGroupHeader(colKey: string): boolean; + + /** + * Checks whether column fixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the unfixed area. + * + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + */ + checkFixingAllowed(columns: any[]): boolean; + + /** + * Checks whether unfixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the fixed area. + * + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + */ + checkUnfixingAllowed(columns: any[]): boolean; + + /** + * Fixes a column by specified column identifier - column index or column key. + * + * @param colIdentifier An identifier of the column to be fixed - column index or column key. + * @param target Key of the column where the fixed column should move to. + * @param after Specifies where the fixed column should be moved after or before the target column. This parameter is disregarded if there is no target column specified. + */ + fixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; + + /** + * Fixes non-data columns (such as the row numbering column of row selectors) if any and if [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is left. Does nothing if the non-data columns are already fixed. + */ + fixNonDataColumns(): void; + + /** + * This function is deprecated - use function fixNonDataColumns. + */ + fixDataSkippedColumns(): void; + + /** + * Unfixes non-data columns (such as the row numbering column of row selectors) if any and if [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is left. Does nothing if the non-data columns are already fixed. + */ + unfixNonDataColumns(): void; + + /** + * This function is deprecated - use function unfixNonDataColumns. + */ + unfixDataSkippedColumns(): void; + + /** + * Unfixes all fixed columns. + */ + unfixAllColumns(): void; + + /** + * Syncs rows heights between two collections of rows. + * + * @param $trs An array of rows of the first(fixed/unfixed) container. + * @param $anotherRows An array of rows of the second(fixed/unfixed) container. + */ + syncRowsHeights($trs: any[], $anotherRows: any[]): void; + + /** + * Calculates widths of the fixed columns. + * + * @param fCols Array of grid columns. If not set then the total width of the fixed columns are returned. + * @param excludeNonDataColumns If set to true do not calculate the width of non-data fixed columns (like the row selector row numbering column). + * @param includeHidden If set to true calculates width of the hidden fixed columns (their initial width before hiding). + */ + getWidthOfFixedColumns(fCols?: any[], excludeNonDataColumns?: boolean, includeHidden?: boolean): number; + + /** + * Destroys the column fixing widget + */ + destroy(): void; +} +interface JQuery { + data(propertyName: "igGridColumnFixing"): IgGridColumnFixingMethods; +} + +interface JQuery { + igGridColumnFixing(methodName: "unfixColumn", colIdentifier: Object, target?: string, after?: boolean): Object; + igGridColumnFixing(methodName: "checkAndSyncHeights"): void; + igGridColumnFixing(methodName: "syncHeights", check?: boolean, clearRowsHeights?: boolean): void; + igGridColumnFixing(methodName: "isGroupHeader", colKey: string): boolean; + igGridColumnFixing(methodName: "checkFixingAllowed", columns: any[]): boolean; + igGridColumnFixing(methodName: "checkUnfixingAllowed", columns: any[]): boolean; + igGridColumnFixing(methodName: "fixColumn", colIdentifier: Object, target?: string, after?: boolean): Object; + igGridColumnFixing(methodName: "fixNonDataColumns"): void; + igGridColumnFixing(methodName: "fixDataSkippedColumns"): void; + igGridColumnFixing(methodName: "unfixNonDataColumns"): void; + igGridColumnFixing(methodName: "unfixDataSkippedColumns"): void; + igGridColumnFixing(methodName: "unfixAllColumns"): void; + igGridColumnFixing(methodName: "syncRowsHeights", $trs: any[], $anotherRows: any[]): void; + igGridColumnFixing(methodName: "getWidthOfFixedColumns", fCols?: any[], excludeNonDataColumns?: boolean, includeHidden?: boolean): number; + igGridColumnFixing(methodName: "destroy"): void; + + /** + * Gets the tooltip text on the column fixing header icon when column is not fixed. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "headerFixButtonText"): string; + + /** + * Sets the tooltip text on the column fixing header icon when column is not fixed. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "headerFixButtonText", optionValue: string): void; + + /** + * Gets the tooltip text on the column fixing header icon when column is fixed. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "headerUnfixButtonText"): string; + + /** + * Sets the tooltip text on the column fixing header icon when column is fixed. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "headerUnfixButtonText", optionValue: string): void; + + /** + * Gets whether to show the column fixing buttons in header cells/feature chooser. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "showFixButtons"): boolean; + + /** + * Sets whether to show the column fixing buttons in header cells/feature chooser. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "showFixButtons", optionValue: boolean): void; + + /** + * Enable row height sync for the fixed and unfixed portion of the grid. If you're observing row misalignment, please refer to [this article](http://www.igniteui.com/help/iggrid-known-issues#misalignment-ie9). + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "syncRowHeights"): boolean; + + /** + * Enable row height sync for the fixed and unfixed portion of the grid. If you're observing row misalignment, please refer to [this article](http://www.igniteui.com/help/iggrid-known-issues#misalignment-ie9). + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "syncRowHeights", optionValue: boolean): void; + + /** + * Scroll delta in pixels when scrolling with the mouse wheel or the keyboard in the fixed columns area of the grid. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "scrollDelta"): number; + + /** + * Scroll delta in pixels when scrolling with the mouse wheel or the keyboard in the fixed columns area of the grid. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "scrollDelta", optionValue: number): void; + + /** + * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection"): string; + + /** + * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection", optionValue: string): void; + + /** + * List of column settings that specifies custom column fixing options on a per column basis. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnSettings"): IgGridColumnFixingColumnSetting[]; + + /** + * List of column settings that specifies custom column fixing options on a per column basis. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnSettings", optionValue: IgGridColumnFixingColumnSetting[]): void; + + /** + * Text of the feature chooser button for fixing a currently unfixed column. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextFixedColumn"): string; + + /** + * Text of the feature chooser button for fixing a currently unfixed column. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextFixedColumn", optionValue: string): void; + + /** + * Text of the feature chooser button for unfixing a currently fixed column. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextUnfixedColumn"): string; + + /** + * Text of the feature chooser button for unfixing a currently fixed column. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextUnfixedColumn", optionValue: string): void; + + /** + * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth"): string|number; + + /** + * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth", optionValue: string|number): void; + + /** + * Specify initial fixing of all non data columns. Non-data columns are columns in the grid rendered for specific features, like the row selectors feature. The column containing the row numbering is such a column. This option is applicable when [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is set to left. For a full column fixing configuration summary please refer to [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#configuration-summary). + * + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "fixNondataColumns"): boolean; + + /** + * Specify initial fixing of all non data columns. Non-data columns are columns in the grid rendered for specific features, like the row selectors feature. The column containing the row numbering is such a column. This option is applicable when [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is set to left. For a full column fixing configuration summary please refer to [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#configuration-summary). + * + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "fixNondataColumns", optionValue: boolean): void; + + /** + * When true all the TR DOM attributes of the unfixed row will be copied to the fixed row. Note that when enabled this option negatively affects performance when fixing a column. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "populateDataRowsAttributes"): boolean; + + /** + * When true all the TR DOM attributes of the unfixed row will be copied to the fixed row. Note that when enabled this option negatively affects performance when fixing a column. + * + * @optionValue New value to be set. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "populateDataRowsAttributes", optionValue: boolean): void; + + /** + * Event which is fired when column fixing operation is initiated. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnFixing"): ColumnFixingEvent; + + /** + * Event which is fired when column fixing operation is initiated. + * + * @optionValue Define event handler function. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnFixing", optionValue: ColumnFixingEvent): void; + + /** + * Event which is fired when column fixing operation is finished + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnFixed"): ColumnFixedEvent; + + /** + * Event which is fired when column fixing operation is finished + * + * @optionValue Define event handler function. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnFixed", optionValue: ColumnFixedEvent): void; + + /** + * Event which is fired when column unfixing operation is initiated + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixing"): ColumnUnfixingEvent; + + /** + * Event which is fired when column unfixing operation is initiated + * + * @optionValue Define event handler function. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixing", optionValue: ColumnUnfixingEvent): void; + + /** + * Event which is fired when column unfixing operation is done + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixed"): ColumnUnfixedEvent; + + /** + * Event which is fired when column unfixing operation is done + * + * @optionValue Define event handler function. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixed", optionValue: ColumnUnfixedEvent): void; + + /** + * Event which is fired when column fixing operation has failed - e.g. sum of the width of the fixed columns container and width of the column to be fixed exceeds the grid width + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnFixingRefused"): ColumnFixingRefusedEvent; + + /** + * Event which is fired when column fixing operation has failed - e.g. sum of the width of the fixed columns container and width of the column to be fixed exceeds the grid width + * + * @optionValue Define event handler function. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnFixingRefused", optionValue: ColumnFixingRefusedEvent): void; + + /** + * Event which is fired when column unfixing operation has failed - e.g.: there is only one fixed visible column(and tries to unfix it) and at least one fixed hidden column + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixingRefused"): ColumnUnfixingRefusedEvent; + + /** + * Event which is fired when column unfixing operation has failed - e.g.: there is only one fixed visible column(and tries to unfix it) and at least one fixed hidden column + * + * @optionValue Define event handler function. + */ + igGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixingRefused", optionValue: ColumnUnfixingRefusedEvent): void; + igGridColumnFixing(options: IgGridColumnFixing): JQuery; + igGridColumnFixing(optionLiteral: 'option', optionName: string): any; + igGridColumnFixing(optionLiteral: 'option', options: IgGridColumnFixing): JQuery; + igGridColumnFixing(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igGridColumnFixing(methodName: string, ...methodParams: any[]): any; +} +interface IgGridColumnMovingColumnSetting { + + /** + * Column key. This is a required property in every column setting if columnIndex is not set. + * + */ + columnKey?: string; + + /** + * Column index. Can be used in place of column key. The preferred way of populating a column setting is to always use the column keys as identifiers. + * + */ + columnIndex?: number; + + /** + * Allows the column to be moved. + * + */ + allowMoving?: boolean; + + /** + * Option for IgGridColumnMovingColumnSetting + */ + [optionName: string]: any; +} + +interface ColumnDragStartEvent { + (event: Event, ui: ColumnDragStartEventUIParam): void; +} + +interface ColumnDragStartEventUIParam { +} + +interface ColumnDragEndEvent { + (event: Event, ui: ColumnDragEndEventUIParam): void; +} + +interface ColumnDragEndEventUIParam { +} + +interface ColumnDragCanceledEvent { + (event: Event, ui: ColumnDragCanceledEventUIParam): void; +} + +interface ColumnDragCanceledEventUIParam { +} + +interface ColumnMovingEvent { + (event: Event, ui: ColumnMovingEventUIParam): void; +} + +interface ColumnMovingEventUIParam { +} + +interface ColumnMovedEvent { + (event: Event, ui: ColumnMovedEventUIParam): void; +} + +interface ColumnMovedEventUIParam { +} + +interface MovingDialogOpeningEvent { + (event: Event, ui: MovingDialogOpeningEventUIParam): void; +} + +interface MovingDialogOpeningEventUIParam { +} + +interface MovingDialogOpenedEvent { + (event: Event, ui: MovingDialogOpenedEventUIParam): void; +} + +interface MovingDialogOpenedEventUIParam { +} + +interface MovingDialogDraggedEvent { + (event: Event, ui: MovingDialogDraggedEventUIParam): void; +} + +interface MovingDialogDraggedEventUIParam { +} + +interface MovingDialogClosingEvent { + (event: Event, ui: MovingDialogClosingEventUIParam): void; +} + +interface MovingDialogClosingEventUIParam { +} + +interface MovingDialogClosedEvent { + (event: Event, ui: MovingDialogClosedEventUIParam): void; +} + +interface MovingDialogClosedEventUIParam { +} + +interface MovingDialogContentsRenderingEvent { + (event: Event, ui: MovingDialogContentsRenderingEventUIParam): void; +} + +interface MovingDialogContentsRenderingEventUIParam { +} + +interface MovingDialogContentsRenderedEvent { + (event: Event, ui: MovingDialogContentsRenderedEventUIParam): void; +} + +interface MovingDialogContentsRenderedEventUIParam { +} + +interface MovingDialogMoveUpButtonPressedEvent { + (event: Event, ui: MovingDialogMoveUpButtonPressedEventUIParam): void; +} + +interface MovingDialogMoveUpButtonPressedEventUIParam { +} + +interface MovingDialogMoveDownButtonPressedEvent { + (event: Event, ui: MovingDialogMoveDownButtonPressedEventUIParam): void; +} + +interface MovingDialogMoveDownButtonPressedEventUIParam { +} + +interface MovingDialogDragColumnMovingEvent { + (event: Event, ui: MovingDialogDragColumnMovingEventUIParam): void; +} + +interface MovingDialogDragColumnMovingEventUIParam { +} + +interface MovingDialogDragColumnMovedEvent { + (event: Event, ui: MovingDialogDragColumnMovedEventUIParam): void; +} + +interface MovingDialogDragColumnMovedEventUIParam { +} + +interface IgGridColumnMoving { + + /** + * A list of column settings that specifies moving options on a per column basis. + * + */ + columnSettings?: IgGridColumnMovingColumnSetting[]; + + /** + * Specify the drag-and-drop mode for the feature + * + * + * Valid values: + * "immediate" Column headers will rearange as you drag with a space opening under the cursor for the header to be dropped on + * "deferred" A clone of the header dragged will be created and indicators will be shown between columns to help navigate the drop. + */ + mode?: string; + + /** + * Specify the way columns will be rearranged + * + * + * Valid values: + * "dom" Columns will be rearranged through dom manipulation + * "render" Columns will not be rearranged but the grid will be rendered again with the new column order. Please note this option is incompatible with immediate move mode. + */ + moveType?: string; + + /** + * Specifies if header cells should include an additional button that opens a moving helper dropdown. + * + */ + addMovingDropdown?: boolean; + + /** + * Specifies width of column moving dialog + * + */ + movingDialogWidth?: number; + + /** + * Specifies height of column moving dialog + * + */ + movingDialogHeight?: number; + + /** + * Specifies time in milliseconds for animation duration to show/hide modal dialog + * + */ + movingDialogAnimationDuration?: number; + + /** + * Specifies the length (in pixels) between the dragged column and the column edges below which the move operation is accepted + * + */ + movingAcceptanceTolerance?: number; + + /** + * Specifies the length (in pixels) between the dragged column and the grid edges below which horizontal scrolling occurs + * + */ + movingScrollTolerance?: number; + + /** + * Specifies a multiplier for the delay between subsequent scroll operations. The larger this number is, the slower scrolling will appear to be. + * + */ + scrollSpeedMultiplier?: number; + + /** + * Specifies the length (in pixels) of each individual scroll operation + * + */ + scrollDelta?: number; + + /** + * Specifies whether the contents of the column being dragged will get hidden. The option is only + * relevant in immediate moving mode. + * + */ + hideHeaderContentsDuringDrag?: boolean; + + /** + * Specifies the opacity of the drag markup, while a column header is being dragged. + * The value must be between 0 and 1. When GroupBy is enabled, the corresponding option in the GroupBy configuration + * will be used with priority over this one. + * + */ + dragHelperOpacity?: number; + + /** + * Specifies caption for each move down button in the column moving dialog + * + */ + movingDialogCaptionButtonDesc?: string; + + /** + * Specifies caption for each move up button in the column moving dialog + * + */ + movingDialogCaptionButtonAsc?: string; + + /** + * Specifies caption text for the column moving dialog + * + */ + movingDialogCaptionText?: string; + + /** + * Specifies caption text for the feature chooser entry + * + */ + movingDialogDisplayText?: string; + + /** + * Specifies text for drop tooltip in column moving dialog + * + */ + movingDialogDropTooltipText?: string; + + /** + * Specifies markup for drop tooltip in column moving dialog + * + */ + movingDialogDropTooltipMarkup?: string; + + /** + * Specifies caption for the move left dropdown button + * + */ + dropDownMoveLeftText?: string; + + /** + * Specifies caption for the move right dropdown button + * + */ + dropDownMoveRightText?: string; + + /** + * Specifies caption for the move first dropdown button + * + */ + dropDownMoveFirstText?: string; + + /** + * Specifies caption for the move last dropdown button + * + */ + dropDownMoveLastText?: string; + + /** + * Specifies tooltip text for the move indicator + * + */ + movingToolTipMove?: string; + + /** + * Specifies caption text for the feature chooser submenu button + * + */ + featureChooserSubmenuText?: string; + + /** + * Controls containment behavior of column moving dialog. + * + * owner The dialog will be draggable only in the grid area + * window The dialog will be draggable in the whole window area + */ + columnMovingDialogContainment?: string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + dialogWidget?: string; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + */ + inherit?: boolean; + + /** + * Event which is fired when a drag operation begins on a column header + */ + columnDragStart?: ColumnDragStartEvent; + + /** + * Event which is fired when a drag operation ends on a column header + */ + columnDragEnd?: ColumnDragEndEvent; + + /** + * Event which is fired when a drag operation is canceled + */ + columnDragCanceled?: ColumnDragCanceledEvent; + + /** + * Event which is fired when a column moving operation is initiated + */ + columnMoving?: ColumnMovingEvent; + + /** + * Event which is fired when a column moving operation completes + */ + columnMoved?: ColumnMovedEvent; + + /** + * Event fired before the moving dialog is opened. + */ + movingDialogOpening?: MovingDialogOpeningEvent; + + /** + * Event fired after the column chooser is already opened. + */ + movingDialogOpened?: MovingDialogOpenedEvent; + + /** + * Event fired every time the moving dialog changes its position. + */ + movingDialogDragged?: MovingDialogDraggedEvent; + + /** + * Event fired before the moving dialog is closed. + */ + movingDialogClosing?: MovingDialogClosingEvent; + + /** + * Event fired after the moving dialog has been closed. + */ + movingDialogClosed?: MovingDialogClosedEvent; + + /** + * Event fired before the contents of the model dialog are rendered. + */ + movingDialogContentsRendering?: MovingDialogContentsRenderingEvent; + + /** + * Event fired after the contents of the model dialog are rendered. + */ + movingDialogContentsRendered?: MovingDialogContentsRenderedEvent; + + /** + * Event fired when move up button is pressed in the moving dialog + */ + movingDialogMoveUpButtonPressed?: MovingDialogMoveUpButtonPressedEvent; + + /** + * Event fired when move down button is pressed in the moving dialog + */ + movingDialogMoveDownButtonPressed?: MovingDialogMoveDownButtonPressedEvent; + + /** + * Event fired when column moving is initiated through dragging it in the moving dialog + */ + movingDialogDragColumnMoving?: MovingDialogDragColumnMovingEvent; + + /** + * Event fired when column moving is completed through dragging it in the moving dialog + */ + movingDialogDragColumnMoved?: MovingDialogDragColumnMovedEvent; + + /** + * Option for igGridColumnMoving + */ + [optionName: string]: any; +} +interface IgGridColumnMovingMethods { + + /** + * Restoring overwritten functions + */ + destroy(): void; + + /** + * Moves a visible column at a specified place, in front or behind a target column or at a target index + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. + */ + moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; +} +interface JQuery { + data(propertyName: "igGridColumnMoving"): IgGridColumnMovingMethods; +} + +interface JQuery { + igGridColumnMoving(methodName: "destroy"): void; + igGridColumnMoving(methodName: "moveColumn", column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; + + /** + * A list of column settings that specifies moving options on a per column basis. + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnSettings"): IgGridColumnMovingColumnSetting[]; + + /** + * A list of column settings that specifies moving options on a per column basis. + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnSettings", optionValue: IgGridColumnMovingColumnSetting[]): void; + + /** + * Specify the drag-and-drop mode for the feature + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "mode"): string; + + /** + * Specify the drag-and-drop mode for the feature + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "mode", optionValue: string): void; + + /** + * Specify the way columns will be rearranged + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "moveType"): string; + + /** + * Specify the way columns will be rearranged + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "moveType", optionValue: string): void; + + /** + * Gets if header cells should include an additional button that opens a moving helper dropdown. + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "addMovingDropdown"): boolean; + + /** + * Sets if header cells should include an additional button that opens a moving helper dropdown. + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "addMovingDropdown", optionValue: boolean): void; + + /** + * Gets width of column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogWidth"): number; + + /** + * Sets width of column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogWidth", optionValue: number): void; + + /** + * Gets height of column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogHeight"): number; + + /** + * Sets height of column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogHeight", optionValue: number): void; + + /** + * Gets time in milliseconds for animation duration to show/hide modal dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogAnimationDuration"): number; + + /** + * Sets time in milliseconds for animation duration to show/hide modal dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogAnimationDuration", optionValue: number): void; + + /** + * Gets the length (in pixels) between the dragged column and the column edges below which the move operation is accepted + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingAcceptanceTolerance"): number; + + /** + * Sets the length (in pixels) between the dragged column and the column edges below which the move operation is accepted + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingAcceptanceTolerance", optionValue: number): void; + + /** + * Gets the length (in pixels) between the dragged column and the grid edges below which horizontal scrolling occurs + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingScrollTolerance"): number; + + /** + * Sets the length (in pixels) between the dragged column and the grid edges below which horizontal scrolling occurs + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingScrollTolerance", optionValue: number): void; + + /** + * Gets a multiplier for the delay between subsequent scroll operations. The larger this number is, the slower scrolling will appear to be. + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "scrollSpeedMultiplier"): number; + + /** + * Sets a multiplier for the delay between subsequent scroll operations. The larger this number is, the slower scrolling will appear to be. + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "scrollSpeedMultiplier", optionValue: number): void; + + /** + * Gets the length (in pixels) of each individual scroll operation + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "scrollDelta"): number; + + /** + * Sets the length (in pixels) of each individual scroll operation + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "scrollDelta", optionValue: number): void; + + /** + * Gets whether the contents of the column being dragged will get hidden. The option is only + * relevant in immediate moving mode. + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "hideHeaderContentsDuringDrag"): boolean; + + /** + * Sets whether the contents of the column being dragged will get hidden. The option is only + * relevant in immediate moving mode. + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "hideHeaderContentsDuringDrag", optionValue: boolean): void; + + /** + * Gets the opacity of the drag markup, while a column header is being dragged. + * The value must be between 0 and 1. When GroupBy is enabled, the corresponding option in the GroupBy configuration + * will be used with priority over this one. + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dragHelperOpacity"): number; + + /** + * Sets the opacity of the drag markup, while a column header is being dragged. + * The value must be between 0 and 1. When GroupBy is enabled, the corresponding option in the GroupBy configuration + * will be used with priority over this one. + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dragHelperOpacity", optionValue: number): void; + + /** + * Gets caption for each move down button in the column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonDesc"): string; + + /** + * Sets caption for each move down button in the column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonDesc", optionValue: string): void; + + /** + * Gets caption for each move up button in the column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonAsc"): string; + + /** + * Sets caption for each move up button in the column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonAsc", optionValue: string): void; + + /** + * Gets caption text for the column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionText"): string; + + /** + * Sets caption text for the column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionText", optionValue: string): void; + + /** + * Gets caption text for the feature chooser entry + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDisplayText"): string; + + /** + * Sets caption text for the feature chooser entry + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDisplayText", optionValue: string): void; + + /** + * Gets text for drop tooltip in column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipText"): string; + + /** + * Sets text for drop tooltip in column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipText", optionValue: string): void; + + /** + * Gets markup for drop tooltip in column moving dialog + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipMarkup"): string; + + /** + * Sets markup for drop tooltip in column moving dialog + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipMarkup", optionValue: string): void; + + /** + * Gets caption for the move left dropdown button + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLeftText"): string; + + /** + * Sets caption for the move left dropdown button + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLeftText", optionValue: string): void; + + /** + * Gets caption for the move right dropdown button + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveRightText"): string; + + /** + * Sets caption for the move right dropdown button + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveRightText", optionValue: string): void; + + /** + * Gets caption for the move first dropdown button + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveFirstText"): string; + + /** + * Sets caption for the move first dropdown button + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveFirstText", optionValue: string): void; + + /** + * Gets caption for the move last dropdown button + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLastText"): string; + + /** + * Sets caption for the move last dropdown button + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLastText", optionValue: string): void; + + /** + * Gets tooltip text for the move indicator + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingToolTipMove"): string; + + /** + * Sets tooltip text for the move indicator + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingToolTipMove", optionValue: string): void; + + /** + * Gets caption text for the feature chooser submenu button + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "featureChooserSubmenuText"): string; + + /** + * Sets caption text for the feature chooser submenu button + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "featureChooserSubmenuText", optionValue: string): void; + + /** + * Controls containment behavior of column moving dialog. + * + * owner The dialog will be draggable only in the grid area + * window The dialog will be draggable in the whole window area + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnMovingDialogContainment"): string; + + /** + * Controls containment behavior of column moving dialog. + * + * owner The dialog will be draggable only in the grid area + * window The dialog will be draggable in the whole window area + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnMovingDialogContainment", optionValue: string): void; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dialogWidget"): string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "dialogWidget", optionValue: string): void; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "inherit"): boolean; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + * + * @optionValue New value to be set. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "inherit", optionValue: boolean): void; + + /** + * Event which is fired when a drag operation begins on a column header + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnDragStart"): ColumnDragStartEvent; + + /** + * Event which is fired when a drag operation begins on a column header + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnDragStart", optionValue: ColumnDragStartEvent): void; + + /** + * Event which is fired when a drag operation ends on a column header + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnDragEnd"): ColumnDragEndEvent; + + /** + * Event which is fired when a drag operation ends on a column header + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnDragEnd", optionValue: ColumnDragEndEvent): void; + + /** + * Event which is fired when a drag operation is canceled + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnDragCanceled"): ColumnDragCanceledEvent; + + /** + * Event which is fired when a drag operation is canceled + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnDragCanceled", optionValue: ColumnDragCanceledEvent): void; + + /** + * Event which is fired when a column moving operation is initiated + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnMoving"): ColumnMovingEvent; + + /** + * Event which is fired when a column moving operation is initiated + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnMoving", optionValue: ColumnMovingEvent): void; + + /** + * Event which is fired when a column moving operation completes + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnMoved"): ColumnMovedEvent; + + /** + * Event which is fired when a column moving operation completes + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "columnMoved", optionValue: ColumnMovedEvent): void; + + /** + * Event fired before the moving dialog is opened. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpening"): MovingDialogOpeningEvent; + + /** + * Event fired before the moving dialog is opened. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpening", optionValue: MovingDialogOpeningEvent): void; + + /** + * Event fired after the column chooser is already opened. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpened"): MovingDialogOpenedEvent; + + /** + * Event fired after the column chooser is already opened. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpened", optionValue: MovingDialogOpenedEvent): void; + + /** + * Event fired every time the moving dialog changes its position. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragged"): MovingDialogDraggedEvent; + + /** + * Event fired every time the moving dialog changes its position. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragged", optionValue: MovingDialogDraggedEvent): void; + + /** + * Event fired before the moving dialog is closed. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosing"): MovingDialogClosingEvent; + + /** + * Event fired before the moving dialog is closed. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosing", optionValue: MovingDialogClosingEvent): void; + + /** + * Event fired after the moving dialog has been closed. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosed"): MovingDialogClosedEvent; + + /** + * Event fired after the moving dialog has been closed. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosed", optionValue: MovingDialogClosedEvent): void; + + /** + * Event fired before the contents of the model dialog are rendered. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendering"): MovingDialogContentsRenderingEvent; + + /** + * Event fired before the contents of the model dialog are rendered. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendering", optionValue: MovingDialogContentsRenderingEvent): void; + + /** + * Event fired after the contents of the model dialog are rendered. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendered"): MovingDialogContentsRenderedEvent; + + /** + * Event fired after the contents of the model dialog are rendered. + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendered", optionValue: MovingDialogContentsRenderedEvent): void; + + /** + * Event fired when move up button is pressed in the moving dialog + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveUpButtonPressed"): MovingDialogMoveUpButtonPressedEvent; + + /** + * Event fired when move up button is pressed in the moving dialog + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveUpButtonPressed", optionValue: MovingDialogMoveUpButtonPressedEvent): void; + + /** + * Event fired when move down button is pressed in the moving dialog + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveDownButtonPressed"): MovingDialogMoveDownButtonPressedEvent; + + /** + * Event fired when move down button is pressed in the moving dialog + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveDownButtonPressed", optionValue: MovingDialogMoveDownButtonPressedEvent): void; + + /** + * Event fired when column moving is initiated through dragging it in the moving dialog + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoving"): MovingDialogDragColumnMovingEvent; + + /** + * Event fired when column moving is initiated through dragging it in the moving dialog + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoving", optionValue: MovingDialogDragColumnMovingEvent): void; + + /** + * Event fired when column moving is completed through dragging it in the moving dialog + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoved"): MovingDialogDragColumnMovedEvent; + + /** + * Event fired when column moving is completed through dragging it in the moving dialog + * + * @optionValue Define event handler function. + */ + igGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoved", optionValue: MovingDialogDragColumnMovedEvent): void; + igGridColumnMoving(options: IgGridColumnMoving): JQuery; + igGridColumnMoving(optionLiteral: 'option', optionName: string): any; + igGridColumnMoving(optionLiteral: 'option', options: IgGridColumnMoving): JQuery; + igGridColumnMoving(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igGridColumnMoving(methodName: string, ...methodParams: any[]): any; +} interface IgPopoverHeaderTemplate { + /** * Controls whether the popover renders a functional close button */ @@ -37809,25 +40807,6 @@ interface ShowingEvent { } interface ShowingEventUIParam { - /** - * Used to get the element the popover will show for. - */ - element?: any; - - /** - * Used to get or set the content to be shown as a string. - */ - content?: any; - - /** - * Used to get the popover element showing. - */ - popover?: any; - - /** - * Used to get reference to the igPopover widget - */ - owner?: any; } interface ShownEvent { @@ -37835,25 +40814,6 @@ interface ShownEvent { } interface ShownEventUIParam { - /** - * Used to get the element the popover showed for. - */ - element?: any; - - /** - * Used to get the content that was shown as a string. - */ - content?: any; - - /** - * Used to get the popover element shown. - */ - popover?: any; - - /** - * Used to get reference to the igPopover widget - */ - owner?: any; } interface HidingEvent { @@ -37861,25 +40821,6 @@ interface HidingEvent { } interface HidingEventUIParam { - /** - * Used to get the element the popover will hide for. - */ - element?: any; - - /** - * Used to get the current content displayed in the popover as a string. - */ - content?: any; - - /** - * Used to get the popover element hiding. - */ - popover?: any; - - /** - * Used to get reference to the igPopover widget - */ - owner?: any; } interface HiddenEvent { @@ -37887,25 +40828,6 @@ interface HiddenEvent { } interface HiddenEventUIParam { - /** - * Used to get the element the popover is hidden for. - */ - element?: any; - - /** - * Used to get the content displayed in the popover as a string. - */ - content?: any; - - /** - * Used to get the popover element hidden. - */ - popover?: any; - - /** - * Used to get reference to the igPopover widget - */ - owner?: any; } interface IgGridFeatureChooserPopover { @@ -37918,7 +40840,7 @@ interface IgGridFeatureChooserPopover { * controls the direction in which the control shows relative to the target element * * Valid values: - * "auto" lets the control show on the side where enough space is available with the following priority top > bottom > right > left + * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.igpopover#options:directionPriority) property * "left" shows popover on the left side of the target element * "right" shows popover on the right side of the target element * "top" shows popover on the top of the target element @@ -37926,6 +40848,12 @@ interface IgGridFeatureChooserPopover { */ direction?: string; + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + */ + directionPriority?: any[]; + /** * controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * @@ -38008,41 +40936,21 @@ interface IgGridFeatureChooserPopover { /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget */ showing?: ShowingEvent; /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget */ shown?: ShownEvent; /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget */ hiding?: HidingEvent; /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget */ hidden?: HiddenEvent; @@ -38271,6 +41179,20 @@ interface JQuery { */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "direction", optionValue: string): void; + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "directionPriority"): any[]; + + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * + * @optionValue New value to be set. + */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "directionPriority", optionValue: any[]): void; + /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area */ @@ -38419,21 +41341,11 @@ interface JQuery { /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "showing"): ShowingEvent; /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -38441,21 +41353,11 @@ interface JQuery { /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "shown"): ShownEvent; /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -38463,21 +41365,11 @@ interface JQuery { /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "hiding"): HidingEvent; /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -38485,21 +41377,11 @@ interface JQuery { /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "hidden"): HiddenEvent; /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -38595,7 +41477,4057 @@ interface JQuery { igGridFeatureChooser(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igGridFeatureChooser(methodName: string, ...methodParams: any[]): any; } +interface IgGridFilteringColumnSettingDefaultExpressions { + + /** + * Option for IgGridFilteringColumnSettingDefaultExpressions + */ + [optionName: string]: any; +} + +interface IgGridFilteringColumnSetting { + + /** + * Identifies the grid column by key. Either key or index must be set in every column setting. + * + */ + columnKey?: string; + + /** + * Identifies the grid column by index. Either key or index must be set in every column setting. + * + */ + columnIndex?: number; + + /** + * Enables/disables filtering for the column. + * + */ + allowFiltering?: boolean; + + /** + * Initial filtering condition for the column. + * + * + * Valid values: + * "empty" + * "notEmpty" + * "null" + * "notNull" + * "equals" + * "doesNotEqual" + * "startsWith" + * "contains" + * "doesNotContain" + * "endsWith" + * "greaterThan" + * "lessThan" + * "greaterThanOrEqualTo" + * "lessThanOrEqualTo" + * "true" + * "false" + * "on" + * "notOn" + * "before" + * "after" + * "today" + * "yesterday" + * "thisMonth" + * "lastMonth" + * "nextMonth" + * "thisYear" + * "nextYear" + * "lastYear" + */ + condition?: string|boolean; + + /** + * An array of strings that determine which [conditions](ui.iggridfiltering#options:columnSettings.condition) to display for this column. + * + */ + conditionList?: any[]; + + /** + * Initial filtering expressions - if set they will be applied on initialization together with the preset [condition](ui.iggridfiltering#options:columnSettings.condition). + * + */ + defaultExpressions?: IgGridFilteringColumnSettingDefaultExpressions; + + /** + * An object used to specify custom filtering conditions as objects for this column. + * + * labelText The label as it will appear in the column's condition dropdown. + * expressionText The text to display in the editor when requireExpr is false. + * requireExpr If this condition requires the user to input a filtering expression. + * filterImgIcon Class applied to the dropdown item when in simple mode. + * filterFunc The custom comparing filter function. Signature: function (value, expression, dataType, ignoreCase, preciseDateFormat). + */ + customConditions?: any; + + /** + * Option for IgGridFilteringColumnSetting + */ + [optionName: string]: any; +} + +interface IgGridFilteringNullTexts { + startsWith?: string; + endsWith?: string; + contains?: string; + doesNotContain?: string; + equals?: string; + doesNotEqual?: string; + greaterThan?: string; + lessThan?: string; + greaterThanOrEqualTo?: string; + lessThanOrEqualTo?: string; + on?: string; + notOn?: string; + after?: string; + before?: string; + thisMonth?: string; + lastMonth?: string; + nextMonth?: string; + thisYear?: string; + lastYear?: string; + nextYear?: string; + empty?: string; + notEmpty?: string; + null?: string; + notNull?: string; + + /** + * Option for IgGridFilteringNullTexts + */ + [optionName: string]: any; +} + +interface IgGridFilteringLabels { + noFilter?: string; + clear?: string; + startsWith?: string; + endsWith?: string; + contains?: string; + doesNotContain?: string; + equals?: string; + doesNotEqual?: string; + greaterThan?: string; + lessThan?: string; + greaterThanOrEqualTo?: string; + lessThanOrEqualTo?: string; + trueLabel?: string; + falseLabel?: string; + after?: string; + before?: string; + today?: string; + yesterday?: string; + thisMonth?: string; + lastMonth?: string; + nextMonth?: string; + thisYear?: string; + lastYear?: string; + nextYear?: string; + on?: string; + notOn?: string; + advancedButtonLabel?: string; + filterDialogCaptionLabel?: string; + filterDialogConditionLabel1?: string; + filterDialogConditionLabel2?: string; + filterDialogOkLabel?: string; + filterDialogCancelLabel?: string; + filterDialogAnyLabel?: string; + filterDialogAllLabel?: string; + filterDialogAddLabel?: string; + filterDialogErrorLabel?: string; + filterSummaryTitleLabel?: string; + filterDialogClearAllLabel?: string; + empty?: string; + notEmpty?: string; + nullLabel?: string; + notNull?: string; + true?: string; + false?: string; + + /** + * Option for IgGridFilteringLabels + */ + [optionName: string]: any; +} + +interface DataFilteringEvent { + (event: Event, ui: DataFilteringEventUIParam): void; +} + +interface DataFilteringEventUIParam { +} + +interface DataFilteredEvent { + (event: Event, ui: DataFilteredEventUIParam): void; +} + +interface DataFilteredEventUIParam { +} + +interface FilterDialogOpeningEvent { + (event: Event, ui: FilterDialogOpeningEventUIParam): void; +} + +interface FilterDialogOpeningEventUIParam { +} + +interface FilterDialogOpenedEvent { + (event: Event, ui: FilterDialogOpenedEventUIParam): void; +} + +interface FilterDialogOpenedEventUIParam { +} + +interface FilterDialogMovingEvent { + (event: Event, ui: FilterDialogMovingEventUIParam): void; +} + +interface FilterDialogMovingEventUIParam { +} + +interface FilterDialogFilterAddingEvent { + (event: Event, ui: FilterDialogFilterAddingEventUIParam): void; +} + +interface FilterDialogFilterAddingEventUIParam { +} + +interface FilterDialogFilterAddedEvent { + (event: Event, ui: FilterDialogFilterAddedEventUIParam): void; +} + +interface FilterDialogFilterAddedEventUIParam { +} + +interface FilterDialogClosingEvent { + (event: Event, ui: FilterDialogClosingEventUIParam): void; +} + +interface FilterDialogClosingEventUIParam { +} + +interface FilterDialogClosedEvent { + (event: Event, ui: FilterDialogClosedEventUIParam): void; +} + +interface FilterDialogClosedEventUIParam { +} + +interface FilterDialogContentsRenderingEvent { + (event: Event, ui: FilterDialogContentsRenderingEventUIParam): void; +} + +interface FilterDialogContentsRenderingEventUIParam { +} + +interface FilterDialogContentsRenderedEvent { + (event: Event, ui: FilterDialogContentsRenderedEventUIParam): void; +} + +interface FilterDialogContentsRenderedEventUIParam { +} + +interface FilterDialogFilteringEvent { + (event: Event, ui: FilterDialogFilteringEventUIParam): void; +} + +interface FilterDialogFilteringEventUIParam { +} + +interface IgGridFiltering { + + /** + * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. + * + */ + caseSensitive?: boolean; + + /** + * Enable/disable footer visibility with summary info about the filter. + * When false, the filter summary row (in the footer) will only be visible when paging is enabled (or some other feature that renders a footer). + * When true, the filter summary row will only be visible when a filter is applied i.e. it's not visible by default. + * + */ + filterSummaryAlwaysVisible?: boolean; + + /** + * Render in [Feature Chooser](http://www.igniteui.com/help/iggrid-feature-chooser) + * + */ + renderFC?: boolean; + + /** + * Summary template that will appear in the bottom left corner of the footer. Has the format '${matches} matching records'. + * + */ + filterSummaryTemplate?: string; + + /** + * Type of animations for the column filter dropdowns. + * + * + * Valid values: + * "linear" The column filtering drop downs are shown with a linear animation. + * "none" No animation is used when showing the filtering drop downs. + */ + filterDropDownAnimations?: string; + + /** + * Animation duration in milliseconds for the [filterDropDownAnimations](ui.iggridfiltering#options:filterDropDownAnimations). + * + */ + filterDropDownAnimationDuration?: number; + + /** + * Width of the column filter dropdowns. + * + * + * Valid values: + * "string" The width in pixels (0px) + * "number" The width in pixels as a number (0) + */ + filterDropDownWidth?: string|number; + + /** + * Height of the column filter dropdowns. + * + * string The height of the column filter dropdowns in pixels (0px). + * number The height of the column filter dropdowns in pixels as a number (0). + */ + filterDropDownHeight?: any; + + /** + * URL key name that specifies how the filtering expressions will be encoded for remote requests, e.g. &filter('col') = startsWith. Default is OData. + * + */ + filterExprUrlKey?: string; + + /** + * Enable/disable filter icons visibility. + * + * + * Valid values: + * "true" All predefined filters in the filter dropdowns will have icons rendered in front of the text. + * "false" No icons will be rendered. + */ + filterDropDownItemIcons?: boolean; + + /** + * A list of column settings that specifies custom filtering options on a per column basis. + * + */ + columnSettings?: IgGridFilteringColumnSetting[]; + + /** + * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). + * + * + * Valid values: + * "remote" Filtering is performed by a remote end-point. + * "local" Filtering is performed locally by the [$.ig.DataSource](ig.datasource). + */ + type?: string; + + /** + * Time in milliseconds for which widget will wait between keystrokes before sending filtering requests. + * + */ + filterDelay?: number; + + /** + * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. + * + * + * Valid values: + * "simple" Renders just a filter row. + * "advanced" Allows to configure multiple filters from a dialog - Excel style. + */ + mode?: string; + + /** + * Defines whether to render editors in advanced [mode](ui.iggridfiltering#options:mode). If false, no editors will be rendered in the advanced [mode](ui.iggridfiltering#options:mode). + * + */ + advancedModeEditorsVisible?: boolean; + + /** + * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). + * + * + * Valid values: + * "left" + * "right" + */ + advancedModeHeaderButtonLocation?: string; + + /** + * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * Valid values: + * "string" The dialog window width in pixels (370px). + * "number" The dialog window width in pixels as a number (370). + */ + filterDialogWidth?: string|number; + + /** + * default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * Valid values: + * "string" The dialog window height in pixels (350px). + * "number" The dialog window height in pixels as a number (350). + */ + filterDialogHeight?: string|number; + + /** + * Width of the filtering condition dropdowns in the advanced filter dialog. + * + * + * Valid values: + * "string" The filtering condition dropdowns width in pixels (80px). + * "number" The filtering condition dropdowns width in pixels as a number (80). + */ + filterDialogFilterDropDownDefaultWidth?: string|number; + + /** + * Width of the filtering expression input boxes in the advanced filter dialog. + * + * + * Valid values: + * "string" The filtering expression input boxes width in pixels (80px). + * "number" The filtering expression input boxes width in pixels as a number (80). + */ + filterDialogExprInputDefaultWidth?: string|number; + + /** + * Width of the column chooser dropdowns in the advanced filter dialog. + * + * + * Valid values: + * "string" The column chooser dropdowns width in pixels (80px). + * "number" The column chooser dropdowns width in pixels as a number (80). + */ + filterDialogColumnDropDownDefaultWidth?: string|number; + + /** + * Enable/disable filter button visibility. If false, no filter dropdown buttons will be rendered and a predefined list of filters will not be rendered for the columns. + * + */ + renderFilterButton?: boolean; + + /** + * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. + * + * + * Valid values: + * "left" The button is rendered on the left. + * "right" The button is rendered on the right. + */ + filterButtonLocation?: string; + + /** + * List of configurable and localized null texts that will be used for the filter editors. + * + */ + nullTexts?: IgGridFilteringNullTexts; + + /** + * A list of configurable and localized labels that are used for the predefined filtering conditions in the filter dropdowns. + * + */ + labels?: IgGridFilteringLabels; + + /** + * Custom tooltip template for the filter button, when a filter is applied. + * + */ + tooltipTemplate?: string; + + /** + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * + */ + filterDialogAddConditionTemplate?: string; + + /** + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * + */ + filterDialogAddConditionDropDownTemplate?: string; + + /** + * Custom template for filter dialog. + * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. + * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". + * NOTE: The template is supported only with . + * The default template is " ". + * + */ + filterDialogFilterTemplate?: string; + + /** + * Custom template for options in condition list in filter dialog. The default template is "". + * + */ + filterDialogFilterConditionTemplate?: string; + + /** + * Add button width - in the advanced filter dialog. + * + * + * Valid values: + * "string" The dialog Add button width in pixels (100px). + * "number" The dialog Add button width in pixels as a number (100). + */ + filterDialogAddButtonWidth?: string|number; + + /** + * Width of the Ok and Cancel buttons in the advanced filtering dialogs. + * + * + * Valid values: + * "string" The advanced filter dialog Ok and Cancel buttons width in pixels (120px). + * "number" The advanced filter dialog Ok and Cancel buttons width in pixels as a number (120). + */ + filterDialogOkCancelButtonWidth?: string|number; + + /** + * Maximum number of filter rows in the advanced filtering dialog. If this number is exceeded, an error message will be rendered. + * + */ + filterDialogMaxFilterCount?: number; + + /** + * Controls containment behavior. + * + * owner The filter dialog will be draggable only within the grid area. + * window The filter dialog will be draggable within the whole window area. + */ + filterDialogContainment?: string; + + /** + * Enable/disable empty condition visibility in the filter. If true, shows empty and not empty filtering conditions in the dropdowns. + * + */ + showEmptyConditions?: boolean; + + /** + * Enable/disable visibility of null and not null filtering conditions in the dropdowns. If true, shows null and not null filtering conditions in the dropdowns. + * + */ + showNullConditions?: boolean; + + /** + * Feature chooser text when filter is shown and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + featureChooserText?: string; + + /** + * Feature chooser text when filter is hidden and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + featureChooserTextHide?: string; + + /** + * Feature chooser text when filter [mode](ui.iggridfiltering#options:mode) is advanced. + * + */ + featureChooserTextAdvancedFilter?: string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + dialogWidget?: string; + + /** + * Enables/disables filtering persistence between states. + * + */ + persist?: boolean; + + /** + * Enables/disables feature inheritance for the child [layouts](ui.ighierarchicalgrid#options:columnLayouts). NOTE: It only applies for [igHierarchicalGrid](ui.ighierarchicalgrid). + * + */ + inherit?: boolean; + + /** + * Event fired before a filtering operation is executed (remote request or local). + * Return false in order to cancel filtering operation. + */ + dataFiltering?: DataFilteringEvent; + + /** + * Event fired after the filtering has been executed and results are rendered. + */ + dataFiltered?: DataFilteredEvent; + + /** + * Event fired before the filter dropdown is opened for a specific column. + * Return false in order to cancel dropdown opening. + */ + dropDownOpening?: DropDownOpeningEvent; + + /** + * Event fired after the filter dropdown is opened for a specific column. + */ + dropDownOpened?: DropDownOpenedEvent; + + /** + * Event fired before the filter dropdown starts closing. + * Return false in order to cancel dropdown closing. + */ + dropDownClosing?: DropDownClosingEvent; + + /** + * Event fired after a filter column dropdown is completely closed. + */ + dropDownClosed?: DropDownClosedEvent; + + /** + * Event fired before the advanced filtering dialog is opened. + * Return false in order to cancel filter dialog opening. + */ + filterDialogOpening?: FilterDialogOpeningEvent; + + /** + * Event fired after the advanced filter dialog is already opened. + */ + filterDialogOpened?: FilterDialogOpenedEvent; + + /** + * Event fired every time the advanced filter dialog changes its position. + */ + filterDialogMoving?: FilterDialogMovingEvent; + + /** + * Event fired before a filter row is added to the advanced filter dialog. + * Return false in order to cancel filter adding to the advanced filtering dialog. + */ + filterDialogFilterAdding?: FilterDialogFilterAddingEvent; + + /** + * Event fired after a filter row is added to the advanced filter dialog. + */ + filterDialogFilterAdded?: FilterDialogFilterAddedEvent; + + /** + * Event fired before the advanced filter dialog is closed. + * Return false in order to cancel filtering dialog closing. + */ + filterDialogClosing?: FilterDialogClosingEvent; + + /** + * Event fired after the advanced filter dialog has been closed. + */ + filterDialogClosed?: FilterDialogClosedEvent; + + /** + * Event fired before the contents of the advanced filter dialog are rendered. + * Return false in order to cancel filtering dialog rendering. + */ + filterDialogContentsRendering?: FilterDialogContentsRenderingEvent; + + /** + * Event fired after the contents of the advanced filter dialog are rendered. + */ + filterDialogContentsRendered?: FilterDialogContentsRenderedEvent; + + /** + * Event fired when the OK button in the advanced filter dialog is pressed. + */ + filterDialogFiltering?: FilterDialogFilteringEvent; + + /** + * Option for igGridFiltering + */ + [optionName: string]: any; +} +interface IgGridFilteringMethods { + + /** + * Destroys the filtering widget - remove fitler row, unbinds events, returns the grid to its previous state. + */ + destroy(): void; + + /** + * Returns the count of data records that match filtering conditions + */ + getFilteringMatchesCount(): number; + + /** + * Toggle filter row when mode is simple or [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is true. Otherwise show/hide advanced dialog. + * + * @param event Column key + */ + toggleFilterRowByFeatureChooser(event: string): void; + + /** + * Applies filtering programmatically and updates the UI by default. + * + * @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string. + * @param updateUI specifies whether the filter row should be also updated once the grid is filtered + * @param addedFromAdvanced + */ + filter(expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void; + + /** + * Check whether filterCondition requires or not filtering expression - e.g. if filterCondition is "lastMonth", "thisMonth", "null", "notNull", "true", "false", etc. then filtering expression is NOT required + * + * @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc. + */ + requiresFilteringExpression(filterCondition: string): boolean; +} +interface JQuery { + data(propertyName: "igGridFiltering"): IgGridFilteringMethods; +} + +interface JQuery { + igGridFiltering(methodName: "destroy"): void; + igGridFiltering(methodName: "getFilteringMatchesCount"): number; + igGridFiltering(methodName: "toggleFilterRowByFeatureChooser", event: string): void; + igGridFiltering(methodName: "filter", expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void; + igGridFiltering(methodName: "requiresFilteringExpression", filterCondition: string): boolean; + + /** + * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "caseSensitive"): boolean; + + /** + * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "caseSensitive", optionValue: boolean): void; + + /** + * Enable/disable footer visibility with summary info about the filter. + * When false, the filter summary row (in the footer) will only be visible when paging is enabled (or some other feature that renders a footer). + * When true, the filter summary row will only be visible when a filter is applied i.e. it's not visible by default. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterSummaryAlwaysVisible"): boolean; + + /** + * Enable/disable footer visibility with summary info about the filter. + * When false, the filter summary row (in the footer) will only be visible when paging is enabled (or some other feature that renders a footer). + * When true, the filter summary row will only be visible when a filter is applied i.e. it's not visible by default. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterSummaryAlwaysVisible", optionValue: boolean): void; + + /** + * Render in [Feature Chooser](http://www.igniteui.com/help/iggrid-feature-chooser) + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "renderFC"): boolean; + + /** + * Render in [Feature Chooser](http://www.igniteui.com/help/iggrid-feature-chooser) + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "renderFC", optionValue: boolean): void; + + /** + * Summary template that will appear in the bottom left corner of the footer. Has the format '${matches} matching records'. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterSummaryTemplate"): string; + + /** + * Summary template that will appear in the bottom left corner of the footer. Has the format '${matches} matching records'. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterSummaryTemplate", optionValue: string): void; + + /** + * Type of animations for the column filter dropdowns. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations"): string; + + /** + * Type of animations for the column filter dropdowns. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations", optionValue: string): void; + + /** + * Animation duration in milliseconds for the [filterDropDownAnimations](ui.iggridfiltering#options:filterDropDownAnimations). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimationDuration"): number; + + /** + * Animation duration in milliseconds for the [filterDropDownAnimations](ui.iggridfiltering#options:filterDropDownAnimations). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimationDuration", optionValue: number): void; + + /** + * Width of the column filter dropdowns. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth"): string|number; + + /** + * Width of the column filter dropdowns. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth", optionValue: string|number): void; + + /** + * Height of the column filter dropdowns. + * + * string The height of the column filter dropdowns in pixels (0px). + * number The height of the column filter dropdowns in pixels as a number (0). + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownHeight"): any; + + /** + * Height of the column filter dropdowns. + * + * string The height of the column filter dropdowns in pixels (0px). + * number The height of the column filter dropdowns in pixels as a number (0). + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownHeight", optionValue: any): void; + + /** + * URL key name that specifies how the filtering expressions will be encoded for remote requests, e.g. &filter('col') = startsWith. Default is OData. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterExprUrlKey"): string; + + /** + * URL key name that specifies how the filtering expressions will be encoded for remote requests, e.g. &filter('col') = startsWith. Default is OData. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterExprUrlKey", optionValue: string): void; + + /** + * Enable/disable filter icons visibility. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons"): boolean; + + /** + * Enable/disable filter icons visibility. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons", optionValue: boolean): void; + + /** + * A list of column settings that specifies custom filtering options on a per column basis. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "columnSettings"): IgGridFilteringColumnSetting[]; + + /** + * A list of column settings that specifies custom filtering options on a per column basis. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "columnSettings", optionValue: IgGridFilteringColumnSetting[]): void; + + /** + * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "type"): string; + + /** + * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "type", optionValue: string): void; + + /** + * Time in milliseconds for which widget will wait between keystrokes before sending filtering requests. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDelay"): number; + + /** + * Time in milliseconds for which widget will wait between keystrokes before sending filtering requests. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDelay", optionValue: number): void; + + /** + * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "mode"): string; + + /** + * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "mode", optionValue: string): void; + + /** + * Defines whether to render editors in advanced [mode](ui.iggridfiltering#options:mode). If false, no editors will be rendered in the advanced [mode](ui.iggridfiltering#options:mode). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "advancedModeEditorsVisible"): boolean; + + /** + * Defines whether to render editors in advanced [mode](ui.iggridfiltering#options:mode). If false, no editors will be rendered in the advanced [mode](ui.iggridfiltering#options:mode). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "advancedModeEditorsVisible", optionValue: boolean): void; + + /** + * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation"): string; + + /** + * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation", optionValue: string): void; + + /** + * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth"): string|number; + + /** + * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth", optionValue: string|number): void; + + /** + * Default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight"): string|number; + + /** + * Default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight", optionValue: string|number): void; + + /** + * Width of the filtering condition dropdowns in the advanced filter dialog. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth"): string|number; + + /** + * Width of the filtering condition dropdowns in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth", optionValue: string|number): void; + + /** + * Width of the filtering expression input boxes in the advanced filter dialog. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth"): string|number; + + /** + * Width of the filtering expression input boxes in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth", optionValue: string|number): void; + + /** + * Width of the column chooser dropdowns in the advanced filter dialog. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth"): string|number; + + /** + * Width of the column chooser dropdowns in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth", optionValue: string|number): void; + + /** + * Enable/disable filter button visibility. If false, no filter dropdown buttons will be rendered and a predefined list of filters will not be rendered for the columns. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "renderFilterButton"): boolean; + + /** + * Enable/disable filter button visibility. If false, no filter dropdown buttons will be rendered and a predefined list of filters will not be rendered for the columns. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "renderFilterButton", optionValue: boolean): void; + + /** + * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation"): string; + + /** + * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation", optionValue: string): void; + + /** + * List of configurable and localized null texts that will be used for the filter editors. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "nullTexts"): IgGridFilteringNullTexts; + + /** + * List of configurable and localized null texts that will be used for the filter editors. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "nullTexts", optionValue: IgGridFilteringNullTexts): void; + + /** + * A list of configurable and localized labels that are used for the predefined filtering conditions in the filter dropdowns. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "labels"): IgGridFilteringLabels; + + /** + * A list of configurable and localized labels that are used for the predefined filtering conditions in the filter dropdowns. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "labels", optionValue: IgGridFilteringLabels): void; + + /** + * Custom tooltip template for the filter button, when a filter is applied. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "tooltipTemplate"): string; + + /** + * Custom tooltip template for the filter button, when a filter is applied. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "tooltipTemplate", optionValue: string): void; + + /** + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate"): string; + + /** + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate", optionValue: string): void; + + /** + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionDropDownTemplate"): string; + + /** + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionDropDownTemplate", optionValue: string): void; + + /** + * Custom template for filter dialog. + * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. + * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". + * NOTE: The template is supported only with . + * The default template is " ". + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate"): string; + + /** + * Custom template for filter dialog. + * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. + * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". + * NOTE: The template is supported only with . + * The default template is " ". + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate", optionValue: string): void; + + /** + * Custom template for options in condition list in filter dialog. The default template is "". + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterConditionTemplate"): string; + + /** + * Custom template for options in condition list in filter dialog. The default template is "". + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterConditionTemplate", optionValue: string): void; + + /** + * Add button width - in the advanced filter dialog. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth"): string|number; + + /** + * Add button width - in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth", optionValue: string|number): void; + + /** + * Width of the Ok and Cancel buttons in the advanced filtering dialogs. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth"): string|number; + + /** + * Width of the Ok and Cancel buttons in the advanced filtering dialogs. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth", optionValue: string|number): void; + + /** + * Maximum number of filter rows in the advanced filtering dialog. If this number is exceeded, an error message will be rendered. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogMaxFilterCount"): number; + + /** + * Maximum number of filter rows in the advanced filtering dialog. If this number is exceeded, an error message will be rendered. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogMaxFilterCount", optionValue: number): void; + + /** + * Controls containment behavior. + * + * owner The filter dialog will be draggable only within the grid area. + * window The filter dialog will be draggable within the whole window area. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogContainment"): string; + + /** + * Controls containment behavior. + * + * owner The filter dialog will be draggable only within the grid area. + * window The filter dialog will be draggable within the whole window area. + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogContainment", optionValue: string): void; + + /** + * Enable/disable empty condition visibility in the filter. If true, shows empty and not empty filtering conditions in the dropdowns. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "showEmptyConditions"): boolean; + + /** + * Enable/disable empty condition visibility in the filter. If true, shows empty and not empty filtering conditions in the dropdowns. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "showEmptyConditions", optionValue: boolean): void; + + /** + * Enable/disable visibility of null and not null filtering conditions in the dropdowns. If true, shows null and not null filtering conditions in the dropdowns. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "showNullConditions"): boolean; + + /** + * Enable/disable visibility of null and not null filtering conditions in the dropdowns. If true, shows null and not null filtering conditions in the dropdowns. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "showNullConditions", optionValue: boolean): void; + + /** + * Feature chooser text when filter is shown and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "featureChooserText"): string; + + /** + * Feature chooser text when filter is shown and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "featureChooserText", optionValue: string): void; + + /** + * Feature chooser text when filter is hidden and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextHide"): string; + + /** + * Feature chooser text when filter is hidden and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextHide", optionValue: string): void; + + /** + * Feature chooser text when filter [mode](ui.iggridfiltering#options:mode) is advanced. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextAdvancedFilter"): string; + + /** + * Feature chooser text when filter [mode](ui.iggridfiltering#options:mode) is advanced. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextAdvancedFilter", optionValue: string): void; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "dialogWidget"): string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dialogWidget", optionValue: string): void; + + /** + * Enables/disables filtering persistence between states. + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "persist"): boolean; + + /** + * Enables/disables filtering persistence between states. + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "persist", optionValue: boolean): void; + + /** + * Enables/disables feature inheritance for the child [layouts](ui.ighierarchicalgrid#options:columnLayouts). NOTE: It only applies for [igHierarchicalGrid](ui.ighierarchicalgrid). + * + */ + igGridFiltering(optionLiteral: 'option', optionName: "inherit"): boolean; + + /** + * Enables/disables feature inheritance for the child [layouts](ui.ighierarchicalgrid#options:columnLayouts). NOTE: It only applies for [igHierarchicalGrid](ui.ighierarchicalgrid). + * + * + * @optionValue New value to be set. + */ + igGridFiltering(optionLiteral: 'option', optionName: "inherit", optionValue: boolean): void; + + /** + * Event fired before a filtering operation is executed (remote request or local). + * Return false in order to cancel filtering operation. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dataFiltering"): DataFilteringEvent; + + /** + * Event fired before a filtering operation is executed (remote request or local). + * Return false in order to cancel filtering operation. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dataFiltering", optionValue: DataFilteringEvent): void; + + /** + * Event fired after the filtering has been executed and results are rendered. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dataFiltered"): DataFilteredEvent; + + /** + * Event fired after the filtering has been executed and results are rendered. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dataFiltered", optionValue: DataFilteredEvent): void; + + /** + * Event fired before the filter dropdown is opened for a specific column. + * Return false in order to cancel dropdown opening. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownOpening"): DropDownOpeningEvent; + + /** + * Event fired before the filter dropdown is opened for a specific column. + * Return false in order to cancel dropdown opening. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownOpening", optionValue: DropDownOpeningEvent): void; + + /** + * Event fired after the filter dropdown is opened for a specific column. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownOpened"): DropDownOpenedEvent; + + /** + * Event fired after the filter dropdown is opened for a specific column. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownOpened", optionValue: DropDownOpenedEvent): void; + + /** + * Event fired before the filter dropdown starts closing. + * Return false in order to cancel dropdown closing. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownClosing"): DropDownClosingEvent; + + /** + * Event fired before the filter dropdown starts closing. + * Return false in order to cancel dropdown closing. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownClosing", optionValue: DropDownClosingEvent): void; + + /** + * Event fired after a filter column dropdown is completely closed. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownClosed"): DropDownClosedEvent; + + /** + * Event fired after a filter column dropdown is completely closed. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "dropDownClosed", optionValue: DropDownClosedEvent): void; + + /** + * Event fired before the advanced filtering dialog is opened. + * Return false in order to cancel filter dialog opening. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpening"): FilterDialogOpeningEvent; + + /** + * Event fired before the advanced filtering dialog is opened. + * Return false in order to cancel filter dialog opening. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpening", optionValue: FilterDialogOpeningEvent): void; + + /** + * Event fired after the advanced filter dialog is already opened. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpened"): FilterDialogOpenedEvent; + + /** + * Event fired after the advanced filter dialog is already opened. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpened", optionValue: FilterDialogOpenedEvent): void; + + /** + * Event fired every time the advanced filter dialog changes its position. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogMoving"): FilterDialogMovingEvent; + + /** + * Event fired every time the advanced filter dialog changes its position. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogMoving", optionValue: FilterDialogMovingEvent): void; + + /** + * Event fired before a filter row is added to the advanced filter dialog. + * Return false in order to cancel filter adding to the advanced filtering dialog. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdding"): FilterDialogFilterAddingEvent; + + /** + * Event fired before a filter row is added to the advanced filter dialog. + * Return false in order to cancel filter adding to the advanced filtering dialog. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdding", optionValue: FilterDialogFilterAddingEvent): void; + + /** + * Event fired after a filter row is added to the advanced filter dialog. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdded"): FilterDialogFilterAddedEvent; + + /** + * Event fired after a filter row is added to the advanced filter dialog. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdded", optionValue: FilterDialogFilterAddedEvent): void; + + /** + * Event fired before the advanced filter dialog is closed. + * Return false in order to cancel filtering dialog closing. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosing"): FilterDialogClosingEvent; + + /** + * Event fired before the advanced filter dialog is closed. + * Return false in order to cancel filtering dialog closing. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosing", optionValue: FilterDialogClosingEvent): void; + + /** + * Event fired after the advanced filter dialog has been closed. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosed"): FilterDialogClosedEvent; + + /** + * Event fired after the advanced filter dialog has been closed. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosed", optionValue: FilterDialogClosedEvent): void; + + /** + * Event fired before the contents of the advanced filter dialog are rendered. + * Return false in order to cancel filtering dialog rendering. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendering"): FilterDialogContentsRenderingEvent; + + /** + * Event fired before the contents of the advanced filter dialog are rendered. + * Return false in order to cancel filtering dialog rendering. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendering", optionValue: FilterDialogContentsRenderingEvent): void; + + /** + * Event fired after the contents of the advanced filter dialog are rendered. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendered"): FilterDialogContentsRenderedEvent; + + /** + * Event fired after the contents of the advanced filter dialog are rendered. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendered", optionValue: FilterDialogContentsRenderedEvent): void; + + /** + * Event fired when the OK button in the advanced filter dialog is pressed. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFiltering"): FilterDialogFilteringEvent; + + /** + * Event fired when the OK button in the advanced filter dialog is pressed. + * + * @optionValue Define event handler function. + */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFiltering", optionValue: FilterDialogFilteringEvent): void; + igGridFiltering(options: IgGridFiltering): JQuery; + igGridFiltering(optionLiteral: 'option', optionName: string): any; + igGridFiltering(optionLiteral: 'option', options: IgGridFiltering): JQuery; + igGridFiltering(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igGridFiltering(methodName: string, ...methodParams: any[]): any; +} +interface IgGridColumnGroupOptions { + + /** + * Sets whether the group is expanded or collapsed. Applied only if the allowGroupCollapsing is set to true. + * + */ + expanded?: boolean; + + /** + * Sets whether expansion indicators are visible in the group header. + * + */ + allowGroupCollapsing?: boolean; + + /** + * Sets when should the group be hidden. Applied only if the allowGroupCollapsing is set to true. + * + * + * Valid values: + * "never" never hide the group + * "always" always hide the group + * "parentcollapsed" hide the group when its parent group is collapsed + * "parentexpanded" hide the group when its parent group is expanded + */ + hidden?: string; + + /** + * Option for IgGridColumnGroupOptions + */ + [optionName: string]: any; +} + +interface IgGridColumn { + + /** + * Header text for the specified column. + * + */ + headerText?: string; + + /** + * The property in the data source to which the column is bound. Also used to identify the column by, and find specific columns with API methods such as [columnByKey](ui.iggrid#methods:columnByKey). + * + */ + key?: string; + + /** + * Reference to a function (string or function) which will be used for formatting the cell values. The function should accept a value and return the new formatted value. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * Valid values: + * "string" The name of the function which will be used for formatting the cell values. + * "function" Function which will be used for formatting the cell values. The function should accept a value and return the new formatted value. + */ + formatter?: string|Function; + + /** + * Gets/Sets the type of formatting for cells of the column. Default value is null. Checkout [Formatting Dates, Numbers and Strings](http://www.igniteui.com/help/formatting-dates-numbers-and-strings) for details on the valid formatting specifiers. + * + * If dataType is "date", then supported formats are following: "date", "dateLong", "dateTime", "time", "timeLong", "MM/dd/yyyy", "MMM-d, yy, h:mm:ss tt", "dddd d MMM", etc. + * If dataType is "number", then supported numeric formats are following: "number", "currency", "percent", "int", "double", "0.00", "#.0####", "0", "#.#######", etc. + * The value of "double" will be similar to "number", but with unlimited maximum number of decimal places. + * The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. + * If dataType is "string" or not set, then format is rendered as it is with replacement of possible "{0}" flag by value in cell. Example, if format is set to "Name: {0}" and value in cell is "Bob", then value will appear as "Name: Bob" + * If value is set to "checkbox", then checkboxes are used regardless of renderCheckboxes option of the grid. That has effect only when dataType option of column is set to "bool". + */ + format?: string; + + /** + * Data type of the column cell values: string, number, bool, date, object. + * + */ + dataType?: string|number|boolean|Date|Object; + + /** + * Width of the column in pixels or percentage. Can also be set as '*', in which case the width auto-size based on the content of the column cells (including the header text).If width is not defined and [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) is set, it is assumed for all columns. + * + * + * + * Valid values: + * "string" The column width can be set in pixels (px), percentage (%) or as '*' in order to auto-size based on the cells and header content. + * "number" The column width can be set as a number + */ + width?: string|number; + + /** + * Initial visibility of the column. A column can be hidden without the Hiding feature being enabled but there will be no UI for unhiding it. Columns can be defined as hidden in the options of the Hiding feature as well and those definitions take precedence. + * + */ + hidden?: boolean; + + /** + * Sets a template for an individual column. the contents of the template should be the HTML markup that goes inside the table cell, or the entire table cell markup. [Here's an example of creating a basic column template](http://www.igniteui.com/help/creating-a-basic-column-template-in-the-iggrid) + * + */ + template?: string; + + /** + * Sets whether column data is derived from the datasource. If set to true, then the cells in this column are not bound to the data source. The data in this column is populated using [formula](ui.iggrid#options:columns.formula), or using [unboundValues](ui.iggrid#options:columns.unboundValues), or through the [setUnboundValues](ui.iggrid#methods:setUnboundValues) API method. [Here's an overview of the unbound columns feature](http://www.igniteui.com/help/iggrid-unboundcolumns-overview) + * + */ + unbound?: boolean; + + /** + * Options used to configure collapsible column [groups](ui.iggrid#options:columns.group). + * + */ + groupOptions?: IgGridColumnGroupOptions; + + /** + * Array of child column definitions. If the column has the property group than the grid has multi column headers. + * + */ + group?: any[]; + + /** + * Determines the way in which dates will be displayed in the grid for this column. + * + * + * Valid values: + * "local" The dates for this column will be rendered in the client's local timezone. + * "utc" The dates for this column will be rendered in their UTC representation. + */ + dateDisplayType?: string; + + /** + * This option has been deprecated as of the June 2016 service release. + * Adjust span of multi column header cell. Use option rowSpan. + */ + rowspan?: number; + + /** + * A reference to or the name of a JavaScript function, which will calculate the value of the current cell based on other cell values in the same row. Used with [unbound columns](ui.iggrid#options:columns.unbound). + * + * + * Valid values: + * "string" The name of the JavaScript function. + * "function" Reference to the JavaScript function. + */ + formula?: string|Function; + + /** + * Array of values which will be populated in the column cells at initialization, if the column is [unbound](ui.iggrid#options:columns.unbound). + * + */ + unboundValues?: any[]; + + /** + * Space-separated list of CSS classes to be applied on the header cell of this column. + * + */ + headerCssClass?: string; + + /** + * Space-separated list of CSS classes to be applied on the data cells of this column. The class is not applied if the column has a column [template](ui.iggrid#options:columns.template) defined, which contains full definition in the template. + * + */ + columnCssClass?: string; + + /** + * This option is applicable only for columns with [dataType](ui.iggrid#options:columns.dataType) of object. Reference to a function, or the name of the function, that will be used for complex data extraction from the data records, whose return value will be used for all data operations associated with this column and will be displayed as cell value. [Here you can find more examples of how to setup a column mapper](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-mapper) + * + * + * Valid values: + * "string" The name of the mapper function. + * "function" Reference to the mapper function. + */ + mapper?: string|Function; + + /** + * Specifies the row index of the cell in a Multi-Row Layout configuration. All columns must have this property set for the multi-row-layout mode to be enabled. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + rowIndex?: number; + + /** + * Specifies the column index of the cell in a Multi-Row Layout configuration. All columns must have this property set for the multi-row-layout mode to be enabled. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + columnIndex?: number; + + /** + * Specifies the navigation index of the cell for the TAB sequence when the cells are in edit mode in a Multi-Row Layout grid. Has no effect otherwise. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + navigationIndex?: number; + + /** + * Specifies the colSpan of the cell in a Multi-Row Layout configuration. colSpan 0 is not supported and will be changed to 1 by the grid. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + colSpan?: number; + + /** + * Specifies the rowSpan of the cell in a Multi-Row Layout configuration. rowSpan 0 is not supported and will be changed to 1 by the grid. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout). If multi-row-layout is not used but multi-column-header is set then this option is used to adjust span of header cell. + * + */ + rowSpan?: number; + + /** + * Option for IgGridColumn + */ + [optionName: string]: any; +} + +interface IgGridFeature { + + /** + * Name of the feature to be enabled. + */ + name?: string; + + /** + * Option for IgGridFeature + */ + [optionName: string]: any; +} + +interface IgGridRestSettingsCreate { + + /** + * Specifies a remote URL to which create requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. + * + */ + url?: string; + + /** + * Specifies a remote URL template. Use ${id} in place of the resource id. + * + */ + template?: string; + + /** + * Specifies whether create requests will be sent in batches + * + */ + batch?: boolean; + + /** + * Option for IgGridRestSettingsCreate + */ + [optionName: string]: any; +} + +interface IgGridRestSettingsUpdate { + + /** + * Specifies a remote URL to which update requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. + */ + url?: string; + + /** + * Specifies a remote URL template. Use ${id} in place of the resource id. + */ + template?: string; + + /** + * Specifies whether update requests will be sent in batches + */ + batch?: boolean; + + /** + * Option for IgGridRestSettingsUpdate + */ + [optionName: string]: any; +} + +interface IgGridRestSettingsRemove { + + /** + * Specifies a remote URL to which remove requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. + */ + url?: string; + + /** + * Specifies a remote URL template. Use ${id} in place of the resource id. + */ + template?: string; + + /** + * Specifies whether update requests will be sent in batches + */ + batch?: boolean; + + /** + * Option for IgGridRestSettingsRemove + */ + [optionName: string]: any; +} + +interface IgGridRestSettings { + + /** + * Settings for create requests + * + */ + create?: IgGridRestSettingsCreate; + + /** + * Settings for update requests + */ + update?: IgGridRestSettingsUpdate; + + /** + * Settings for remove requests + */ + remove?: IgGridRestSettingsRemove; + + /** + * Specifies whether the ids of the removed resources are send through the request URI + */ + encodeRemoveInRequestUri?: boolean; + + /** + * Specifies a custom function to serialize content sent to the server. It should accept a single object or an array of objects and return a string. If not specified, JSON.stringify() will be used. + * + */ + contentSerializer?: Function; + + /** + * Specifies the content type of the request. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + contentType?: string; + + /** + * Option for IgGridRestSettings + */ + [optionName: string]: any; +} + +interface IgGridScrollSettings { + + /** + * Sets gets current vertical position. + * + */ + scrollTop?: number; + + /** + * Sets gets current horizontal position. + * + */ + scrollLeft?: number; + + /** + * Sets gets the step of the default scrolling behavior when using the mouse wheel. + * + */ + wheelStep?: number; + + /** + * Sets gets if smoother scrolling with small intertia should be used when using the mouse wheel. + * + */ + smoothing?: boolean; + + /** + * Sets or gets the modifier for how many pixels will be scrolled when using the mouse wheel once. This is used only for the [smooth scrolling behavior](ui.iggrid#options:scrollSettings.smoothing). + * + */ + smoothingStep?: number; + + /** + * Sets or gets the modifier for how long the scroll ‘animation’ lasts when using the mouse wheel once. This is used only for the [smooth scrolling behavior](ui.iggrid#options:scrollSettings.smoothing). + * + */ + smoothingDuration?: number; + + /** + * Sets gets the modifier for how much the inertia scrolls on touch devices. Note: Value set to 0 would disable touch movements. Value set to -1 would invert them. + * + */ + inertiaStep?: number; + + /** + * Sets gets the modifier for how long the inertia last on touch devices. + * + */ + inertiaDuration?: number; + + /** + * Option for IgGridScrollSettings + */ + [optionName: string]: any; +} + +interface CellClickEvent { + (event: Event, ui: CellClickEventUIParam): void; +} + +interface CellClickEventUIParam { +} + +interface CellRightClickEvent { + (event: Event, ui: CellRightClickEventUIParam): void; +} + +interface CellRightClickEventUIParam { +} + +interface DataRenderingEvent { + (event: Event, ui: DataRenderingEventUIParam): void; +} + +interface DataRenderingEventUIParam { +} + +interface DataRenderedEvent { + (event: Event, ui: DataRenderedEventUIParam): void; +} + +interface DataRenderedEventUIParam { +} + +interface HeaderRenderingEvent { + (event: Event, ui: HeaderRenderingEventUIParam): void; +} + +interface HeaderRenderingEventUIParam { +} + +interface HeaderRenderedEvent { + (event: Event, ui: HeaderRenderedEventUIParam): void; +} + +interface HeaderRenderedEventUIParam { +} + +interface CaptionRenderingEvent { + (event: Event, ui: CaptionRenderingEventUIParam): void; +} + +interface CaptionRenderingEventUIParam { +} + +interface CaptionRenderedEvent { + (event: Event, ui: CaptionRenderedEventUIParam): void; +} + +interface CaptionRenderedEventUIParam { +} + +interface FooterRenderingEvent { + (event: Event, ui: FooterRenderingEventUIParam): void; +} + +interface FooterRenderingEventUIParam { +} + +interface FooterRenderedEvent { + (event: Event, ui: FooterRenderedEventUIParam): void; +} + +interface FooterRenderedEventUIParam { +} + +interface HeaderCellRenderedEvent { + (event: Event, ui: HeaderCellRenderedEventUIParam): void; +} + +interface HeaderCellRenderedEventUIParam { +} + +interface RowsRenderingEvent { + (event: Event, ui: RowsRenderingEventUIParam): void; +} + +interface RowsRenderingEventUIParam { +} + +interface RowsRenderedEvent { + (event: Event, ui: RowsRenderedEventUIParam): void; +} + +interface RowsRenderedEventUIParam { +} + +interface SchemaGeneratedEvent { + (event: Event, ui: SchemaGeneratedEventUIParam): void; +} + +interface SchemaGeneratedEventUIParam { +} + +interface ColumnsCollectionModifiedEvent { + (event: Event, ui: ColumnsCollectionModifiedEventUIParam): void; +} + +interface ColumnsCollectionModifiedEventUIParam { +} + +interface RequestErrorEvent { + (event: Event, ui: RequestErrorEventUIParam): void; +} + +interface RequestErrorEventUIParam { +} + +interface CreatedEvent { + (event: Event, ui: CreatedEventUIParam): void; +} + +interface CreatedEventUIParam { +} + +interface DestroyedEvent { + (event: Event, ui: DestroyedEventUIParam): void; +} + +interface DestroyedEventUIParam { +} + +interface IgGrid { + + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * Valid values: + * "string" The widget width can be set in pixels (px) or percentage (%). Example values: "800px", "800" (defaults to pixels), "100%". + * "number" The widget width can be set in pixels as a number. Example values: 800, 700. + * "null" will stretch to fit the sum of the columns widths. + */ + width?: string|number; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * Valid values: + * "string" The widget height can be set in pixels (px) and percentage (%). + * "number" The widget height can be set as a number + * "null" will stretch vertically to fit data. + */ + height?: string|number; + + /** + * If autoAdjustHeight is set to false, the [height](ui.iggrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data sets ( > 1000 rows rendered at once, no [virtualization](ui.iggrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + */ + autoAdjustHeight?: boolean; + + /** + * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + * + * Valid values: + * "string" The avarage row height can be set in pixels ("25px"). + * "number" The avarage row height can be set in pixels as a number (25). + */ + avgRowHeight?: string|number; + + /** + * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + * + * Valid values: + * "string" The avarage column width can be set in pixels ("25px"). + * "number" The avarage column width can be set in pixels as a number (25). + */ + avgColumnWidth?: string|number; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. + * + * + * Valid values: + * "string" The default column width can be set in pixels ("100px"). + * "number" The default column width can be set in pixels as a number (100). + */ + defaultColumnWidth?: string|number; + + /** + * If no [columns](ui.iggrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.iggrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.iggrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.iggrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) as well. + * + */ + autoGenerateColumns?: boolean; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + */ + virtualization?: boolean; + + /** + * Determines row virtualization mode. + * + * + * Valid values: + * "fixed" Renders only the visible rows and/or columns in the grid. On scrolling the same rows and/or columns are updated with new data from the data source. Only fixed virtualization can work with column virtualization at the same time. Fixed virtualization is not supported by some grid features: Resizing, Group By, Responsive. + * "continuous" renders a pre-defined number of rows in the grid. On scrolling the continuous virtualization loads another portion of rows and disposes the current one. + */ + virtualizationMode?: string; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + */ + rowVirtualization?: boolean; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.iggrid#options:virtualization) to true and [virtualizationMode](ui.iggrid#options:virtualizationMode) to "fixed". + * + */ + columnVirtualization?: boolean; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.iggrid#options:avgRowHeight). + * + */ + virtualizationMouseWheelStep?: number; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.iggrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.iggrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + */ + adjustVirtualHeights?: boolean; + + /** + * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + * + * Valid values: + * "infragistics" The grid will use the Infragistics Templating engine to render its [column templates](ui.iggrid#options:columns.template) and specific parts of the UI. + * "jsRender" The grid will use jsRender to render its [column templates](ui.iggrid#options:columns.template) and specific parts of the UI. + */ + templatingEngine?: string; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + */ + columns?: IgGridColumn[]; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + * + * Valid values: + * "array" dataSource as an array + * "object" ddataSource as an object + * "string" dataSource as a string + */ + dataSource?: Array|Object|string; + + /** + * Specifies a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + */ + dataSourceUrl?: string; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + */ + dataSourceType?: string; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + */ + responseDataKey?: string; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + */ + responseTotalRecCountKey?: string; + + /** + * Specifies the HTTP verb to be used to issue the requests to a remote data source. + * + */ + requestType?: string; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + responseContentType?: string; + + /** + * Controls the visibility of the grid header. + * + */ + showHeader?: boolean; + + /** + * Controls the visibility of the grid footer. + * + */ + showFooter?: boolean; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + */ + fixedHeaders?: boolean; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + */ + fixedFooters?: boolean; + + /** + * Caption text that will be shown above the grid header. + * + */ + caption?: string; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + */ + features?: IgGridFeature[]; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + */ + tabIndex?: number; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.iggrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.iggrid#options:columns) defined will be extracted in a new object and used. + * + */ + localSchemaTransform?: boolean; + + /** + * Key of the column containing unique identifiers for the data records. + * + */ + primaryKey?: string; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + */ + serializeTransactionLog?: boolean; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.iggrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + */ + autoCommit?: boolean; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.iggrid#options:autoCommit) is set to false. + * + */ + aggregateTransactions?: boolean; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * Valid values: + * "date" formats only Date columns + * "number" formats only number columns + * "dateandnumber" formats both Date and number columns + * "true" formats Date and number columns + * "false" auto formatting is disabled + */ + autoFormat?: string|boolean; + + /** + * Gets sets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.iggrid#options:columns.template). + * + */ + renderCheckboxes?: boolean; + + /** + * URL to which updating requests will be made. + * + */ + updateUrl?: string; + + /** + * Settings related to REST compliant update routines. + * + */ + restSettings?: IgGridRestSettings; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + */ + alternateRowStyles?: boolean; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + */ + autofitLastColumn?: boolean; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + */ + enableHoverStyles?: boolean; + + /** + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + */ + enableUTCDates?: boolean; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + */ + mergeUnboundColumns?: boolean; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + */ + jsonpRequest?: boolean; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.iggrid#options:width) and/or [height](ui.iggrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + */ + enableResizeContainerCheck?: boolean; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + * + * Valid values: + * "none" Always hide the feature chooser icon; The feature chooser is shown on tapping/clicking the column header. + * "desktopOnly" Always show the icon on desktop but hide when touch device detected. + * "always" Always show it in any environment. Chooser is shown when tapping the gear icon or column header. + */ + featureChooserIconDisplay?: string; + + /** + * Settings related to content scrolling. + * + */ + scrollSettings?: IgGridScrollSettings; + + /** + * Event fired when a cell is clicked. + */ + cellClick?: CellClickEvent; + + /** + * Event fired when a cell is right clicked. + */ + cellRightClick?: CellRightClickEvent; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + */ + dataBinding?: DataBindingEvent; + + /** + * Event fired after data binding is complete. + */ + dataBound?: DataBoundEvent; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + */ + rendering?: RenderingEvent; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + */ + rendered?: RenderedEvent; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + */ + dataRendering?: DataRenderingEvent; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + */ + dataRendered?: DataRenderedEvent; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + */ + headerRendering?: HeaderRenderingEvent; + + /** + * Event fired after the header has been rendered. + */ + headerRendered?: HeaderRenderedEvent; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + */ + captionRendering?: CaptionRenderingEvent; + + /** + * Event fired after the caption has been rendered. + */ + captionRendered?: CaptionRenderedEvent; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + */ + footerRendering?: FooterRenderingEvent; + + /** + * Event fired after the footer has been rendered. + */ + footerRendered?: FooterRenderedEvent; + + /** + * Event fired after every TH in the grid header has been rendered. + */ + headerCellRendered?: HeaderCellRenderedEvent; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + */ + rowsRendering?: RowsRenderingEvent; + + /** + * Event fired after data rows are rendered. + */ + rowsRendered?: RowsRenderedEvent; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + */ + schemaGenerated?: SchemaGeneratedEvent; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + */ + columnsCollectionModified?: ColumnsCollectionModifiedEvent; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + */ + requestError?: RequestErrorEvent; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + */ + created?: CreatedEvent; + + /** + * Fired when the grid is destroyed + */ + destroyed?: DestroyedEvent; + + /** + * Option for igGrid + */ + [optionName: string]: any; +} +interface IgGridMethods { + + /** + * Returns the element holding the data records + */ + widget(): void; + + /** + * Returns whether grid has non-data fixed columns(e.g. row selectors column) + */ + hasFixedDataSkippedColumns(): boolean; + + /** + * Returns true if grid has at least one fixed columns(even if a non-data column - like row-selectors column) + */ + hasFixedColumns(): boolean; + + /** + * Returns the current fixing direction. NOTE - use only if ColumnFixing feature is enabled + * @return left|right + */ + fixingDirection(): string; + + /** + * Returns whether the column with identifier colKey is fixed + * + * @param colKey An identifier of the column which should be checked. It can be a key or visible index. + */ + isFixedColumn(colKey: Object): boolean; + + /** + * Called to detect whether grid container is resized. When autoAdjustHeight is true and height of the grid is changed then the height of grid is re-set. + */ + resizeContainer(): void; + + /** + * Returns whether the header identified by colKey is multicolumn header(has children) + * + * @param colKey value of the column key + */ + isGroupHeader(colKey: string): Object; + + /** + * Returns an object that contains information on the passed Dom element + * + * rowId - the id of the record associated with the element - if primaryKey is not set this will be null. + * rowIndex - the index (in the DOM) of the row associated with the element. + * recordIndex - index of the data record associated with this element in the current dataView. + * columnObject - the column object associated with this element ( if the element is tr this will be null) + * + * @param elem The Dom element or jQuery object which can be a TD or TR element from the grid. + */ + getElementInfo(elem: Element): Object; + + /** + * Returns the ID of the TABLE element where data records are rendered + */ + id(): string; + + /** + * Returns the DIV that is the topmost container of the grid widget + */ + container(): Element; + + /** + * Returns the table that contains the header cells + */ + headersTable(): Element; + + /** + * Returns the table that contains the footer cells + */ + footersTable(): Element; + + /** + * Returns the DIV that is used as a scroll container for the grid contents + */ + scrollContainer(): Element; + + /** + * Returns the DIV that is the topmost container of the fixed grid - contains fixed columns(in ColumnFixing scenario) + */ + fixedContainer(): Element; + + /** + * Returns the DIV that is the topmost container of the fixed body grid - contains fixed columns(in ColumnFixing scenario) + */ + fixedBodyContainer(): Element; + + /** + * Returns container(jQuery representation) containing fixed footer - contains fixed columns(in ColumnFixing scenario) + */ + fixedFooterContainer(): Object; + + /** + * Returns container(jQuery representation) containing fixed header - contains fixed columns(in ColumnFixing scenario) + */ + fixedHeaderContainer(): Object; + + /** + * Returns the table that contains the FIXED header cells - contains fixed columns(in ColumnFixing scenario) + */ + fixedHeadersTable(): Element; + + /** + * Returns the table that contains the footer cells - contains fixed columns(in ColumnFixing scenario) + */ + fixedFootersTable(): Element; + + /** + * Returns the cell TD element at the specified location + * + * @param x The column index. + * @param y The row index. + * @param isFixed Optional parameter - if true get cell TD at the specified location from the fixed table + */ + cellAt(x: number, y: number, isFixed: boolean): Element; + + /** + * Returns the cell TD element by row id and column key + * + * @param rowId The id of the row. + * @param columnKey The column key. + */ + cellById(rowId: Object, columnKey: string): Element; + + /** + * Returns the fixed table - contains fixed columns(in ColumnFixing scenario). If there aren't fixed columns returns the grid table + */ + fixedTable(): Object; + + /** + * Gets all immediate children of the current grid + */ + immediateChildrenWidgets(): any[]; + + /** + * Gets all children of the current grid, recursively + */ + childrenWidgets(): any[]; + + /** + * Gets all children's elements of the current grid, recursively + */ + children(): any[]; + + /** + * Gets all immediate children's elements of the current grid + */ + immediateChildren(): any[]; + + /** + * Returns the row (TR element) at the specified index. jQuery selectors aren't used for performance reasons + * + * @param i The row index. + */ + rowAt(i: number): Element; + + /** + * Returns the row TR element by row id + * + * @param rowId The id of the row. + * @param isFixed Specify search in the fixed container. + */ + rowById(rowId: Object, isFixed?: boolean): Element; + + /** + * Returns the fixed row (TR element) at the specified index. jQuery selectors aren't used for performance reasons(in ColumnFixing scenario - only when there is at least one fixed column) + * + * @param i The row index. + */ + fixedRowAt(i: number): Element; + + /** + * Returns a list of all fixed TR elements holding data in the grid(in ColumnFixing scenario - only when there is at least one fixed column) + */ + fixedRows(): any[]; + + /** + * Returns a list of all TR elements holding data in the grid(when there is at least one fixed column returns rows only in the UNFIXED table) + */ + rows(): any[]; + + /** + * Returns all data fixed rows recursively, not only the immediate ones(in ColumnFixing scenario - only when there is at least one fixed column) + */ + allFixedRows(): any[]; + + /** + * Returns all data rows recursively, not only the immediate ones(when there is at least one fixed column returns rows only in the UNFIXED table) + */ + allRows(): any[]; + + /** + * Returns a column object by the specified column key + * + * @param key The column key. + */ + columnByKey(key: string): Object; + + /** + * Returns a column object by the specified header text. If there are multiple matches, returns the first one. + * + * @param text The column header text. + */ + columnByText(text: string): Object; + + /** + * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . + * If multiple selection is disabled the function will return null. + */ + selectedCells(): any[]; + + /** + * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . + * If multiple selection is disabled the function will return null. + */ + selectedRows(): any[]; + + /** + * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. + * If multiple selection is enabled the function will return null. + */ + selectedCell(): Object; + + /** + * Returns the currently selected row that has the format { element: , index: }, if any. + * If multiple selection is enabled the function will return null. + */ + selectedRow(): Object; + + /** + * Returns the currently active (focused) cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. + */ + activeCell(): Object; + + /** + * Returns the currently active (focused) row that has the format { element: , index: }, if any. + */ + activeRow(): Object; + + /** + * Retrieves a cell value using the row index and the column key. If a primaryKey is defined, rowId is assumed to be the row Key (not index). + * If primary key is not defined, then rowId is converted to a number and is used as a row index. + * + * @param rowId Row index or row key (primary key). + * @param colKey The column key. + */ + getCellValue(rowId: Object, colKey: string): Object; + + /** + * Returns the cell text. If colKey is a number, the index of the column is used (instead of a column name)- does not apply when using a Multi-Row Layout grid. + * This is the actual text (or HTML string) for the contents of the cell. + * + * @param rowId Row index or row data key (primary key) + * @param colKey Column key. + */ + getCellText(rowId: Object, colKey: string): string; + + /** + * Sets a new template for a column after initialization and renders the grid if not explicitly disabled. This method will replace any existing explicitly set row template and will build one anew from the column ones. + * + * @param col An identifier of the column to set template for (index or key) + * @param tmpl The column template to set + * @param render Should the grid rerender after template is set + */ + setColumnTemplate(col: Object, tmpl: string, render?: boolean): void; + + /** + * Commits all pending transactions to the client data source. Note that there won't be anything to commit on the UI, since it is updated instantly. In order to rollback the actual UI, a call to dataBind() is required. + * + * @param rowId If specified, will commit only that transaction corresponding to the specified record key. + */ + commit(rowId?: Object): void; + + /** + * Clears the transaction log (delegates to igDataSource). Note that this does not update the UI. In case the UI must be updated, set the second parameter "updateUI" to true, which will trigger a call to dataBind() to re-render the contents. + * + * @param rowId If specified, will only rollback the transactions with that row id. + * @param updateUI Whether to update the UI or not. + */ + rollback(rowId?: Object, updateUI?: boolean): any[]; + + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings). + * That is a wrapper for this.dataSource.findRecordByKey(key). + * + * @param key Primary key of the record + */ + findRecordByKey(key: Object): Object; + + /** + * Returns a standalone object (copy) that represents the committed transactions, but detached from the data source. + * That is a wrapper for this.dataSource.getDetachedRecord(t). + * + * @param t A transaction object. + */ + getDetachedRecord(t: Object): Object; + + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source. + * That is a wrapper for this.dataSource.pendingTransactions(). + */ + pendingTransactions(): any[]; + + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + * That is a wrapper for this.dataSource.allTransactions(). + */ + allTransactions(): any[]; + + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently. + * That is a wrapper for this.dataSource.transactionsAsString(). + */ + transactionsAsString(): string; + + /** + * Invokes an AJAX request to the updateUrl option (if specified) and passes the serialized transaction log (a serialized JSON string) as part of the POST request. + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; + + /** + * Adds a new row (TR) to the grid, by taking a data row object. Assumes the record will have the primary key. + * + * @param rec Identifier/key of row. If missing, then number of rows in grid is used. + */ + renderNewRow(rec?: string): void; + + /** + * If the data source points to a local JSON array of data, and it is necessary to reset it at runtime, it must be done through this API member instead of the options (options.dataSource) + * + * @param dataSource New data source object. + */ + dataSourceObject(dataSource: Object): void; + + /** + * Returns the total number of records in the underlying backend. If paging or filtering is enabled, this may differ from the number of records in the client-side data source. + * In order for this to work, the response JSON/XML must include a property that specifies the total number of records, which name is specified by options.responseTotalRecCountKey. + * This functionality is completely delegated to the data source control. + */ + totalRecordsCount(): number; + + /** + * Causes the grid to data bind to the data source (local or remote) , and re-render all of the data as well + * + * @param internal + */ + dataBind(internal: Object): void; + + /** + * Moves a visible column at a specified place, in front or behind a target column or at a target index + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. This parameter is disregarded if there is no target column specified but a target index is used. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. + */ + moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; + + /** + * Shows a hidden column. If the column is not hidden the method does nothing. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier for the column. If a number is provided it will be used as a column index. If a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is shown(optional) + */ + showColumn(column: Object, callback: Function): void; + + /** + * Hides a visible column. If the column is hidden the method does nothing. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is hidden(optional) + */ + hideColumn(column: Object, callback: Function): void; + + /** + * Gets unbound values for the specified column key. If key is not specified returns all unboundvalues + * + * @param key column key + */ + getUnboundValues(key: string): Object; + + /** + * Sets unbound values for the unbound column with the specified key. If removeOldValues is true then values(if any) for the unbound columns are re-set with the new values + * + * @param key key of the unbound column + * @param values array of values to be set on unbound values + * @param removeOldValues if true removes current unbound values(if any) for the specified column and apply the new ones specified in parameter values. Otherwise merge current values with the specified in parameter values + */ + setUnboundValues(key: string, values: any[], removeOldValues: Object): void; + + /** + * Sets unbound value for the unbound cell by the specified column key and row primary key. + * + * @param col key of the unbound column + * @param rowId primary key value of the row + * @param val value to be set on unbound cell + * @param notToRender if false will re-render the row + */ + setUnboundValueByPK(col: string, rowId: string, val: Object, notToRender: Object): void; + + /** + * Returns an unbound column with the specified key. If not found returns null + * + * @param key a column key + */ + getUnboundColumnByKey(key: string): Object; + + /** + * Returns whether there is vertical scrollbar. Because of perfrormance issues in older Internet Explorer especially 8,9 - there is no need to check if height is not set - there is no scrollbar OR if row virtualization is enabled - it is supposed there is vertical scrollbar + */ + hasVerticalScrollbar(): Object; + + /** + * Auto resize columns that have property width set to "*" so content to be auto-fitted(not shrinked/cutted). Auto-resizing is applied ONLY for visible columns + */ + autoSizeColumns(): void; + + /** + * Calculates the width of the column so its content to be auto-fitted to the width of the data in it(the content should NOT be shrinked/cutted) + * + * @param columnIndex Visible column index + */ + calculateAutoFitColumnWidth(columnIndex: number): number; + + /** + * Get visible index by specified column key. If column is not found or is hidden then returns -1. + * Note: Method does not count column groups (Multi-Column Headers). + * + * @param columnKey columnKey + * @param includeDataSkip Optional parameter - if set to true include non data columns(like expander column, row selectors column, etc.) in calculations + */ + getVisibleIndexByKey(columnKey: string, includeDataSkip: boolean): number; + + /** + * When called the method re-renders the whole grid(also rebinds to the data source) and renders the cols object + * + * @param cols an array of column objects + */ + renderMultiColumnHeader(cols: any[]): void; + + /** + * Scroll to the specified row or specified position(in pixels) + * + * @param scrollerPosition An identifier of the vertical scroll position. When it is string then it is interpreted as pixels otherwise it is the row number + */ + virtualScrollTo(scrollerPosition: Object): void; + + /** + * Returns column object and visible index for the table cell(TD) which is passed as argument + * + * @param $td cell(TD) - either DOM TD element or jQuery object + */ + getColumnByTD($td: Object): Object; + + /** + * Destroy is part of the jQuery UI widget API and does the following: + * 1. Remove custom CSS classes that were added. + * 2. Unwrap any wrapping elements such as scrolling divs and other containers. + * 3. Unbind all events that were bound. + * + * @param notToCallDestroy + */ + destroy(notToCallDestroy: Object): void; +} +interface JQuery { + data(propertyName: "igGrid"): IgGridMethods; +} + +interface JQuery { + igGrid(methodName: "widget"): void; + igGrid(methodName: "hasFixedDataSkippedColumns"): boolean; + igGrid(methodName: "hasFixedColumns"): boolean; + igGrid(methodName: "fixingDirection"): string; + igGrid(methodName: "isFixedColumn", colKey: Object): boolean; + igGrid(methodName: "resizeContainer"): void; + igGrid(methodName: "isGroupHeader", colKey: string): Object; + igGrid(methodName: "getElementInfo", elem: Element): Object; + igGrid(methodName: "id"): string; + igGrid(methodName: "container"): Element; + igGrid(methodName: "headersTable"): Element; + igGrid(methodName: "footersTable"): Element; + igGrid(methodName: "scrollContainer"): Element; + igGrid(methodName: "fixedContainer"): Element; + igGrid(methodName: "fixedBodyContainer"): Element; + igGrid(methodName: "fixedFooterContainer"): Object; + igGrid(methodName: "fixedHeaderContainer"): Object; + igGrid(methodName: "fixedHeadersTable"): Element; + igGrid(methodName: "fixedFootersTable"): Element; + igGrid(methodName: "cellAt", x: number, y: number, isFixed: boolean): Element; + igGrid(methodName: "cellById", rowId: Object, columnKey: string): Element; + igGrid(methodName: "fixedTable"): Object; + igGrid(methodName: "immediateChildrenWidgets"): any[]; + igGrid(methodName: "childrenWidgets"): any[]; + igGrid(methodName: "children"): any[]; + igGrid(methodName: "immediateChildren"): any[]; + igGrid(methodName: "rowAt", i: number): Element; + igGrid(methodName: "rowById", rowId: Object, isFixed?: boolean): Element; + igGrid(methodName: "fixedRowAt", i: number): Element; + igGrid(methodName: "fixedRows"): any[]; + igGrid(methodName: "rows"): any[]; + igGrid(methodName: "allFixedRows"): any[]; + igGrid(methodName: "allRows"): any[]; + igGrid(methodName: "columnByKey", key: string): Object; + igGrid(methodName: "columnByText", text: string): Object; + igGrid(methodName: "selectedCells"): any[]; + igGrid(methodName: "selectedRows"): any[]; + igGrid(methodName: "selectedCell"): Object; + igGrid(methodName: "selectedRow"): Object; + igGrid(methodName: "activeCell"): Object; + igGrid(methodName: "activeRow"): Object; + igGrid(methodName: "getCellValue", rowId: Object, colKey: string): Object; + igGrid(methodName: "getCellText", rowId: Object, colKey: string): string; + igGrid(methodName: "setColumnTemplate", col: Object, tmpl: string, render?: boolean): void; + igGrid(methodName: "commit", rowId?: Object): void; + igGrid(methodName: "rollback", rowId?: Object, updateUI?: boolean): any[]; + igGrid(methodName: "findRecordByKey", key: Object): Object; + igGrid(methodName: "getDetachedRecord", t: Object): Object; + igGrid(methodName: "pendingTransactions"): any[]; + igGrid(methodName: "allTransactions"): any[]; + igGrid(methodName: "transactionsAsString"): string; + igGrid(methodName: "saveChanges", success: Function, error: Function): void; + igGrid(methodName: "renderNewRow", rec?: string): void; + igGrid(methodName: "dataSourceObject", dataSource: Object): void; + igGrid(methodName: "totalRecordsCount"): number; + igGrid(methodName: "dataBind", internal: Object): void; + igGrid(methodName: "moveColumn", column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; + igGrid(methodName: "showColumn", column: Object, callback: Function): void; + igGrid(methodName: "hideColumn", column: Object, callback: Function): void; + igGrid(methodName: "getUnboundValues", key: string): Object; + igGrid(methodName: "setUnboundValues", key: string, values: any[], removeOldValues: Object): void; + igGrid(methodName: "setUnboundValueByPK", col: string, rowId: string, val: Object, notToRender: Object): void; + igGrid(methodName: "getUnboundColumnByKey", key: string): Object; + igGrid(methodName: "hasVerticalScrollbar"): Object; + igGrid(methodName: "autoSizeColumns"): void; + igGrid(methodName: "calculateAutoFitColumnWidth", columnIndex: number): number; + igGrid(methodName: "getVisibleIndexByKey", columnKey: string, includeDataSkip: boolean): number; + igGrid(methodName: "renderMultiColumnHeader", cols: any[]): void; + igGrid(methodName: "virtualScrollTo", scrollerPosition: Object): void; + igGrid(methodName: "getColumnByTD", $td: Object): Object; + igGrid(methodName: "destroy", notToCallDestroy: Object): void; + + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + */ + igGrid(optionLiteral: 'option', optionName: "width"): string|number; + + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + */ + igGrid(optionLiteral: 'option', optionName: "height"): string|number; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; + + /** + * If autoAdjustHeight is set to false, the [height](ui.iggrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data ( > 1000 rows rendered at once, no [virtualization](ui.iggrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + */ + igGrid(optionLiteral: 'option', optionName: "autoAdjustHeight"): boolean; + + /** + * If autoAdjustHeight is set to false, the [height](ui.iggrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data sets ( > 1000 rows rendered at once, no [virtualization](ui.iggrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "autoAdjustHeight", optionValue: boolean): void; + + /** + * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + */ + igGrid(optionLiteral: 'option', optionName: "avgRowHeight"): string|number; + + /** + * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "avgRowHeight", optionValue: string|number): void; + + /** + * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + */ + igGrid(optionLiteral: 'option', optionName: "avgColumnWidth"): string|number; + + /** + * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "avgColumnWidth", optionValue: string|number): void; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. + * + */ + igGrid(optionLiteral: 'option', optionName: "defaultColumnWidth"): string|number; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "defaultColumnWidth", optionValue: string|number): void; + + /** + * If no [columns](ui.iggrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.iggrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.iggrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.iggrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) as well. + * + */ + igGrid(optionLiteral: 'option', optionName: "autoGenerateColumns"): boolean; + + /** + * If no [columns](ui.iggrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.iggrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.iggrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.iggrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) as well. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "autoGenerateColumns", optionValue: boolean): void; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + */ + igGrid(optionLiteral: 'option', optionName: "virtualization"): boolean; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "virtualization", optionValue: boolean): void; + + /** + * Determines row virtualization mode. + * + */ + igGrid(optionLiteral: 'option', optionName: "virtualizationMode"): string; + + /** + * Determines row virtualization mode. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "virtualizationMode", optionValue: string): void; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + */ + igGrid(optionLiteral: 'option', optionName: "rowVirtualization"): boolean; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "rowVirtualization", optionValue: boolean): void; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.iggrid#options:virtualization) to true and [virtualizationMode](ui.iggrid#options:virtualizationMode) to "fixed". + * + */ + igGrid(optionLiteral: 'option', optionName: "columnVirtualization"): boolean; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.iggrid#options:virtualization) to true and [virtualizationMode](ui.iggrid#options:virtualizationMode) to "fixed". + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "columnVirtualization", optionValue: boolean): void; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.iggrid#options:avgRowHeight). + * + */ + igGrid(optionLiteral: 'option', optionName: "virtualizationMouseWheelStep"): number; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.iggrid#options:avgRowHeight). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "virtualizationMouseWheelStep", optionValue: number): void; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.iggrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.iggrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + */ + igGrid(optionLiteral: 'option', optionName: "adjustVirtualHeights"): boolean; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.iggrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.iggrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "adjustVirtualHeights", optionValue: boolean): void; + + /** + * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + */ + igGrid(optionLiteral: 'option', optionName: "templatingEngine"): string; + + /** + * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "templatingEngine", optionValue: string): void; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + */ + igGrid(optionLiteral: 'option', optionName: "columns"): IgGridColumn[]; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "columns", optionValue: IgGridColumn[]): void; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + */ + igGrid(optionLiteral: 'option', optionName: "dataSource"): Array|Object|string; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "dataSource", optionValue: Array|Object|string): void; + + /** + * Gets a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + */ + igGrid(optionLiteral: 'option', optionName: "dataSourceUrl"): string; + + /** + * Sets a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "dataSourceUrl", optionValue: string): void; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + */ + igGrid(optionLiteral: 'option', optionName: "dataSourceType"): string; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "dataSourceType", optionValue: string): void; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + */ + igGrid(optionLiteral: 'option', optionName: "responseDataKey"): string; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "responseDataKey", optionValue: string): void; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + */ + igGrid(optionLiteral: 'option', optionName: "responseTotalRecCountKey"): string; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "responseTotalRecCountKey", optionValue: string): void; + + /** + * Gets the HTTP verb to be used to issue the requests to a remote data source. + * + */ + igGrid(optionLiteral: 'option', optionName: "requestType"): string; + + /** + * Sets the HTTP verb to be used to issue the requests to a remote data source. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "requestType", optionValue: string): void; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + igGrid(optionLiteral: 'option', optionName: "responseContentType"): string; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "responseContentType", optionValue: string): void; + + /** + * Controls the visibility of the grid header. + * + */ + igGrid(optionLiteral: 'option', optionName: "showHeader"): boolean; + + /** + * Controls the visibility of the grid header. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "showHeader", optionValue: boolean): void; + + /** + * Controls the visibility of the grid footer. + * + */ + igGrid(optionLiteral: 'option', optionName: "showFooter"): boolean; + + /** + * Controls the visibility of the grid footer. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "showFooter", optionValue: boolean): void; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + */ + igGrid(optionLiteral: 'option', optionName: "fixedHeaders"): boolean; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "fixedHeaders", optionValue: boolean): void; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + */ + igGrid(optionLiteral: 'option', optionName: "fixedFooters"): boolean; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "fixedFooters", optionValue: boolean): void; + + /** + * Caption text that will be shown above the grid header. + * + */ + igGrid(optionLiteral: 'option', optionName: "caption"): string; + + /** + * Caption text that will be shown above the grid header. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "caption", optionValue: string): void; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + */ + igGrid(optionLiteral: 'option', optionName: "features"): IgGridFeature[]; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "features", optionValue: IgGridFeature[]): void; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + */ + igGrid(optionLiteral: 'option', optionName: "tabIndex"): number; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "tabIndex", optionValue: number): void; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.iggrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.iggrid#options:columns) defined will be extracted in a new object and used. + * + */ + igGrid(optionLiteral: 'option', optionName: "localSchemaTransform"): boolean; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.iggrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.iggrid#options:columns) defined will be extracted in a new object and used. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "localSchemaTransform", optionValue: boolean): void; + + /** + * Key of the column containing unique identifiers for the data records. + * + */ + igGrid(optionLiteral: 'option', optionName: "primaryKey"): string; + + /** + * Key of the column containing unique identifiers for the data records. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "primaryKey", optionValue: string): void; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + */ + igGrid(optionLiteral: 'option', optionName: "serializeTransactionLog"): boolean; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "serializeTransactionLog", optionValue: boolean): void; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.iggrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + */ + igGrid(optionLiteral: 'option', optionName: "autoCommit"): boolean; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.iggrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "autoCommit", optionValue: boolean): void; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.iggrid#options:autoCommit) is set to false. + * + */ + igGrid(optionLiteral: 'option', optionName: "aggregateTransactions"): boolean; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.iggrid#options:autoCommit) is set to false. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "aggregateTransactions", optionValue: boolean): void; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + */ + igGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "autoFormat", optionValue: string|boolean): void; + + /** + * Gets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.iggrid#options:columns.template). + * + */ + igGrid(optionLiteral: 'option', optionName: "renderCheckboxes"): boolean; + + /** + * Sets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.iggrid#options:columns.template). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "renderCheckboxes", optionValue: boolean): void; + + /** + * URL to which updating requests will be made. + * + */ + igGrid(optionLiteral: 'option', optionName: "updateUrl"): string; + + /** + * URL to which updating requests will be made. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "updateUrl", optionValue: string): void; + + /** + * Settings related to REST compliant update routines. + * + */ + igGrid(optionLiteral: 'option', optionName: "restSettings"): IgGridRestSettings; + + /** + * Settings related to REST compliant update routines. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "restSettings", optionValue: IgGridRestSettings): void; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + */ + igGrid(optionLiteral: 'option', optionName: "alternateRowStyles"): boolean; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "alternateRowStyles", optionValue: boolean): void; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + */ + igGrid(optionLiteral: 'option', optionName: "autofitLastColumn"): boolean; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "autofitLastColumn", optionValue: boolean): void; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + */ + igGrid(optionLiteral: 'option', optionName: "enableHoverStyles"): boolean; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "enableHoverStyles", optionValue: boolean): void; + + /** + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + */ + igGrid(optionLiteral: 'option', optionName: "enableUTCDates"): boolean; + + /** + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "enableUTCDates", optionValue: boolean): void; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + */ + igGrid(optionLiteral: 'option', optionName: "mergeUnboundColumns"): boolean; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "mergeUnboundColumns", optionValue: boolean): void; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + */ + igGrid(optionLiteral: 'option', optionName: "jsonpRequest"): boolean; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "jsonpRequest", optionValue: boolean): void; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.iggrid#options:width) and/or [height](ui.iggrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + */ + igGrid(optionLiteral: 'option', optionName: "enableResizeContainerCheck"): boolean; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.iggrid#options:width) and/or [height](ui.iggrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "enableResizeContainerCheck", optionValue: boolean): void; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + */ + igGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay"): string; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay", optionValue: string): void; + + /** + * Settings related to content scrolling. + * + */ + igGrid(optionLiteral: 'option', optionName: "scrollSettings"): IgGridScrollSettings; + + /** + * Settings related to content scrolling. + * + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "scrollSettings", optionValue: IgGridScrollSettings): void; + + /** + * Event fired when a cell is clicked. + */ + igGrid(optionLiteral: 'option', optionName: "cellClick"): CellClickEvent; + + /** + * Event fired when a cell is clicked. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "cellClick", optionValue: CellClickEvent): void; + + /** + * Event fired when a cell is right clicked. + */ + igGrid(optionLiteral: 'option', optionName: "cellRightClick"): CellRightClickEvent; + + /** + * Event fired when a cell is right clicked. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "cellRightClick", optionValue: CellRightClickEvent): void; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + */ + igGrid(optionLiteral: 'option', optionName: "dataBinding"): DataBindingEvent; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "dataBinding", optionValue: DataBindingEvent): void; + + /** + * Event fired after data binding is complete. + */ + igGrid(optionLiteral: 'option', optionName: "dataBound"): DataBoundEvent; + + /** + * Event fired after data binding is complete. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "dataBound", optionValue: DataBoundEvent): void; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + */ + igGrid(optionLiteral: 'option', optionName: "rendering"): RenderingEvent; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "rendering", optionValue: RenderingEvent): void; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + */ + igGrid(optionLiteral: 'option', optionName: "rendered"): RenderedEvent; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "rendered", optionValue: RenderedEvent): void; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + */ + igGrid(optionLiteral: 'option', optionName: "dataRendering"): DataRenderingEvent; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "dataRendering", optionValue: DataRenderingEvent): void; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + */ + igGrid(optionLiteral: 'option', optionName: "dataRendered"): DataRenderedEvent; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "dataRendered", optionValue: DataRenderedEvent): void; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + */ + igGrid(optionLiteral: 'option', optionName: "headerRendering"): HeaderRenderingEvent; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "headerRendering", optionValue: HeaderRenderingEvent): void; + + /** + * Event fired after the header has been rendered. + */ + igGrid(optionLiteral: 'option', optionName: "headerRendered"): HeaderRenderedEvent; + + /** + * Event fired after the header has been rendered. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "headerRendered", optionValue: HeaderRenderedEvent): void; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + */ + igGrid(optionLiteral: 'option', optionName: "captionRendering"): CaptionRenderingEvent; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "captionRendering", optionValue: CaptionRenderingEvent): void; + + /** + * Event fired after the caption has been rendered. + */ + igGrid(optionLiteral: 'option', optionName: "captionRendered"): CaptionRenderedEvent; + + /** + * Event fired after the caption has been rendered. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "captionRendered", optionValue: CaptionRenderedEvent): void; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + */ + igGrid(optionLiteral: 'option', optionName: "footerRendering"): FooterRenderingEvent; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "footerRendering", optionValue: FooterRenderingEvent): void; + + /** + * Event fired after the footer has been rendered. + */ + igGrid(optionLiteral: 'option', optionName: "footerRendered"): FooterRenderedEvent; + + /** + * Event fired after the footer has been rendered. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "footerRendered", optionValue: FooterRenderedEvent): void; + + /** + * Event fired after every TH in the grid header has been rendered. + */ + igGrid(optionLiteral: 'option', optionName: "headerCellRendered"): HeaderCellRenderedEvent; + + /** + * Event fired after every TH in the grid header has been rendered. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "headerCellRendered", optionValue: HeaderCellRenderedEvent): void; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + */ + igGrid(optionLiteral: 'option', optionName: "rowsRendering"): RowsRenderingEvent; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "rowsRendering", optionValue: RowsRenderingEvent): void; + + /** + * Event fired after data rows are rendered. + */ + igGrid(optionLiteral: 'option', optionName: "rowsRendered"): RowsRenderedEvent; + + /** + * Event fired after data rows are rendered. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "rowsRendered", optionValue: RowsRenderedEvent): void; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + */ + igGrid(optionLiteral: 'option', optionName: "schemaGenerated"): SchemaGeneratedEvent; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "schemaGenerated", optionValue: SchemaGeneratedEvent): void; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + */ + igGrid(optionLiteral: 'option', optionName: "columnsCollectionModified"): ColumnsCollectionModifiedEvent; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "columnsCollectionModified", optionValue: ColumnsCollectionModifiedEvent): void; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + */ + igGrid(optionLiteral: 'option', optionName: "requestError"): RequestErrorEvent; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + * + * @optionValue Define event handler function. + */ + igGrid(optionLiteral: 'option', optionName: "requestError", optionValue: RequestErrorEvent): void; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + */ + igGrid(optionLiteral: 'option', optionName: "created"): CreatedEvent; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "created", optionValue: CreatedEvent): void; + + /** + * Fired when the grid is destroyed + */ + igGrid(optionLiteral: 'option', optionName: "destroyed"): DestroyedEvent; + + /** + * Fired when the grid is destroyed + * + * @optionValue New value to be set. + */ + igGrid(optionLiteral: 'option', optionName: "destroyed", optionValue: DestroyedEvent): void; + igGrid(options: IgGrid): JQuery; + igGrid(optionLiteral: 'option', optionName: string): any; + igGrid(optionLiteral: 'option', options: IgGrid): JQuery; + igGrid(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igGrid(methodName: string, ...methodParams: any[]): any; +} interface IgGridGroupByGroupedColumn { + /** * Key of the column that's grouped */ @@ -38626,6 +45558,7 @@ interface IgGridGroupByGroupedColumn { } interface IgGridGroupBySummarySettings { + /** * Specifies the delimiter for multiple summaries. * @@ -38645,6 +45578,7 @@ interface IgGridGroupBySummarySettings { } interface IgGridGroupByColumnSettingsSummaries { + /** * the summary function key * @@ -38687,6 +45621,7 @@ interface IgGridGroupByColumnSettingsSummaries { } interface IgGridGroupByColumnSettings { + /** * Enables/disables grouping a column from the UI. By default all columns can be grouped. * @@ -38744,6 +45679,12 @@ interface IgGridGroupByColumnSettings { */ summaries?: IgGridGroupByColumnSettingsSummaries; + /** + * Enables/disables default summaries per group data island or specifies summaries that are applied to specific column no matter the group. + * + */ + groupSummaries?: any; + /** * Option for IgGridGroupByColumnSettings */ @@ -38755,40 +45696,6 @@ interface GroupedColumnsChangingEvent { } interface GroupedColumnsChangingEventUIParam { - /** - * Used to access the GroupBy widget object - */ - owner?: any; - - /** - * Used to get a reference to the current groupedColumns. - */ - groupedColumns?: any; - - /** - * Used to get an object of the new grouped columns that should be applied.(it is set ONLY if called from modal dialog) - */ - newGroupedColumns?: any; - - /** - * Used to get a reference to the current column"s key that"s being grouped(not set if called from modal dialog) - */ - key?: any; - - /** - * Used to get a reference to the current layout object, if any(not set if called from modal dialog) - */ - layout?: any; - - /** - * Used to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - */ - grid?: any; - - /** - * Used to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup - */ - triggeredBy?: any; } interface GroupedColumnsChangedEvent { @@ -38796,35 +45703,6 @@ interface GroupedColumnsChangedEvent { } interface GroupedColumnsChangedEventUIParam { - /** - * Used to access the GroupBy widget object - */ - owner?: any; - - /** - * Used to get a reference to the current groupedColumns - */ - groupedColumns?: any; - - /** - * Used to get a reference to the current column"s key that"s being grouped - */ - key?: any; - - /** - * Used to get a reference to the current layout object, if any - */ - layout?: any; - - /** - * Used to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - */ - grid?: any; - - /** - * Used to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup - */ - triggeredBy?: any; } interface ModalDialogMovingEvent { @@ -38832,25 +45710,6 @@ interface ModalDialogMovingEvent { } interface ModalDialogMovingEventUIParam { - /** - * Used to get the reference to the igGridGroupBy widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - modalDialogElement?: any; - - /** - * Used to get the original position of the GroupBy Dialog div as { top, left } object, relative to the page. - */ - originalPosition?: any; - - /** - * Used to get the current position of the GroupBy Dialog div as { top, left } object, relative to the page. - */ - position?: any; } interface ModalDialogClosingEvent { @@ -38858,15 +45717,6 @@ interface ModalDialogClosingEvent { } interface ModalDialogClosingEventUIParam { - /** - * Used to get the reference to the igGridGroupBy widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogClosedEvent { @@ -38874,15 +45724,6 @@ interface ModalDialogClosedEvent { } interface ModalDialogClosedEventUIParam { - /** - * Used to get the reference to the igGridGroupBy widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogOpeningEvent { @@ -38890,15 +45731,6 @@ interface ModalDialogOpeningEvent { } interface ModalDialogOpeningEventUIParam { - /** - * Used to get the reference to the igGridGroupBy widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogOpenedEvent { @@ -38906,15 +45738,6 @@ interface ModalDialogOpenedEvent { } interface ModalDialogOpenedEventUIParam { - /** - * Used to get the reference to the igGridGroupBy widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogContentsRenderingEvent { @@ -38922,15 +45745,6 @@ interface ModalDialogContentsRenderingEvent { } interface ModalDialogContentsRenderingEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogContentsRenderedEvent { @@ -38938,15 +45752,6 @@ interface ModalDialogContentsRenderedEvent { } interface ModalDialogContentsRenderedEventUIParam { - /** - * Used to get the reference to the igGridGroupBy widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogButtonApplyClickEvent { @@ -38954,30 +45759,6 @@ interface ModalDialogButtonApplyClickEvent { } interface ModalDialogButtonApplyClickEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; - - /** - * Used to get the array of grouped columns - */ - groupedColumns?: any; - - /** - * Used to get array of column layouts - */ - groupedColumnLayouts?: any; - - /** - * Used to get array of sorted columns - */ - sortingExpr?: any; } interface ModalDialogButtonResetClickEvent { @@ -38985,15 +45766,6 @@ interface ModalDialogButtonResetClickEvent { } interface ModalDialogButtonResetClickEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; } interface ModalDialogGroupingColumnEvent { @@ -39001,20 +45773,6 @@ interface ModalDialogGroupingColumnEvent { } interface ModalDialogGroupingColumnEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get the key of the column to be grouped. - */ - key?: any; - - /** - * Used to get the layout of the columns - */ - layout?: any; } interface ModalDialogGroupColumnEvent { @@ -39022,25 +45780,6 @@ interface ModalDialogGroupColumnEvent { } interface ModalDialogGroupColumnEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get the key of the column to be grouped. - */ - key?: any; - - /** - * Used to get a reference to the current groupedColumns - */ - groupedColumns?: any; - - /** - * Used to get the layout of the columns - */ - layout?: any; } interface ModalDialogUngroupingColumnEvent { @@ -39048,20 +45787,6 @@ interface ModalDialogUngroupingColumnEvent { } interface ModalDialogUngroupingColumnEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get the key of the column to be grouped. - */ - key?: any; - - /** - * Used to get the layout of the columns - */ - layout?: any; } interface ModalDialogUngroupColumnEvent { @@ -39069,25 +45794,6 @@ interface ModalDialogUngroupColumnEvent { } interface ModalDialogUngroupColumnEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get a reference to the current groupedColumns - */ - groupedColumns?: any; - - /** - * Used to get the key of the column to be grouped. - */ - key?: any; - - /** - * Used to get the layout of the columns - */ - layout?: any; } interface ModalDialogSortGroupedColumnEvent { @@ -39095,28 +45801,10 @@ interface ModalDialogSortGroupedColumnEvent { } interface ModalDialogSortGroupedColumnEventUIParam { - /** - * Used to get the reference to the igGridGroupby widget. - */ - owner?: any; - - /** - * Used to get the key of the column to be grouped. - */ - key?: any; - - /** - * Used to get the layout of the columns - */ - layout?: any; - - /** - * Used to get whether column should be sorted ascending or descending - */ - isAsc?: any; } interface IgGridGroupBy { + /** * Sets the place in the grid where the GroupBy area will be * @@ -39134,6 +45822,16 @@ interface IgGridGroupBy { */ initialExpand?: boolean; + /** + * Specifies when paging is applied and there is at least one grouped column which records should be included in page processing. + * + * + * Valid values: + * "allRecords" All records are included in page processing - data records and group-by metadata records + * "dataRecordsOnly" Only data records are included in page processing(metadata group-by records are ignored) + */ + pagingMode?: string; + /** * Text that will be shown in the GroupBy area when there are no grouped columns * @@ -39405,167 +46103,102 @@ interface IgGridGroupBy { */ inherit?: boolean; + /** + * Specifies default summaries that will appear when grouping by a column on the bottom of each group as a row.This option has a lower priority than the groupSummaries defined under columnSettings for each column. + * All default summaries are defined under $.ig.util.defaultSummaryMethods + * + * + */ + groupSummaries?: any; + + /** + * Specifies the groupSummaries postion inside each group. + * + * + * Valid values: + * "top" One summary row will be displayed at the top for each group + * "bottom" One summary row will be displayed at the bottom for each group + * "both" Two summary rows will be be display for each group. One on the top and one on the bottom. + */ + groupSummariesPosition?: string; + /** * Event which is fired when the grouped columns collection is about to change. This event is fired even when button OK is clicked from the modal dialog(after event modalDialogButtonApplyClick is fired) - * use args.owner in order to access the GroupBy widget object - * use args.owner.grid to access the grid widget option - * use args.groupedColumns to get a reference to the current groupedColumns. - * use args.newGroupedColumns to get an object of the new grouped columns that should be applied.(it is set ONLY if called from modal dialog) - * use args.key to get a reference to the current column"s key that"s being grouped(not set if called from modal dialog) - * use args.layout to get a reference to the current layout object, if any(not set if called from modal dialog) - * use args.grid to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - * use args.triggeredBy to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup */ groupedColumnsChanging?: GroupedColumnsChangingEvent; /** * Event which is fired when the groupedColumns collection has changed. This event is fired also when group/ungroup from GroupBy modal dialog but key, layout and grid are not set - * use args.owner in order to access the GroupBy widget object - * use args.owner.grid to access the grid widget option - * use args.groupedColumns to get a reference to the current groupedColumns - * use args.key to get a reference to the current column"s key that"s being grouped - * use args.layout to get a reference to the current layout object, if any - * use args.grid to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - * use args.triggeredBy to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup */ groupedColumnsChanged?: GroupedColumnsChangedEvent; /** * Event fired every time the GroupBy Dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the GroupBy Dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the GroupBy Dialog div as { top, left } object, relative to the page. */ modalDialogMoving?: ModalDialogMovingEvent; /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogClosing?: ModalDialogClosingEvent; /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogClosed?: ModalDialogClosedEvent; /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogOpening?: ModalDialogOpeningEvent; /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogOpened?: ModalDialogOpenedEvent; /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogContentsRendering?: ModalDialogContentsRenderingEvent; /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogContentsRendered?: ModalDialogContentsRenderedEvent; /** * Event fired when the button is Apply is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.groupedColumns to get the array of grouped columns - * Use ui.groupedColumnLayouts to get array of column layouts - * Use ui.sortingExpr to get array of sorted columns */ modalDialogButtonApplyClick?: ModalDialogButtonApplyClickEvent; /** * Event fired when reset button is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogButtonResetClick?: ModalDialogButtonResetClickEvent; /** * Event fired when column in modal dialog is clicked to be grouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns */ modalDialogGroupingColumn?: ModalDialogGroupingColumnEvent; /** * Event fired when column in modal dialog is clicked to be grouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use args.groupedColumns to get a reference to the current groupedColumns - * Use ui.layout to get the layout of the columns */ modalDialogGroupColumn?: ModalDialogGroupColumnEvent; /** * Event fired when column in modal dialog is clicked to be ungrouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns */ modalDialogUngroupingColumn?: ModalDialogUngroupingColumnEvent; /** * Event fired when column in modal dialog is clicked to be ungrouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use args.groupedColumns to get a reference to the current groupedColumns - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns */ modalDialogUngroupColumn?: ModalDialogUngroupColumnEvent; /** * Event fired when column in modal dialog is sorted. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns - * Use ui.isAsc to get whether column should be sorted ascending or descending */ modalDialogSortGroupedColumn?: ModalDialogSortGroupedColumnEvent; @@ -39575,6 +46208,7 @@ interface IgGridGroupBy { [optionName: string]: any; } interface IgGridGroupByMethods { + /** * Open groupby modal dialog */ @@ -39711,6 +46345,20 @@ interface JQuery { */ igGridGroupBy(optionLiteral: 'option', optionName: "initialExpand", optionValue: boolean): void; + /** + * Gets when paging is applied and there is at least one grouped column which records should be included in page processing. + * + */ + igGridGroupBy(optionLiteral: 'option', optionName: "pagingMode"): string; + + /** + * Sets when paging is applied and there is at least one grouped column which records should be included in page processing. + * + * + * @optionValue New value to be set. + */ + igGridGroupBy(optionLiteral: 'option', optionName: "pagingMode", optionValue: string): void; + /** * Text that will be shown in the GroupBy area when there are no grouped columns * @@ -40297,29 +46945,45 @@ interface JQuery { */ igGridGroupBy(optionLiteral: 'option', optionName: "inherit", optionValue: boolean): void; + /** + * Gets default summaries that will appear when grouping by a column on the bottom of each group as a row.This option has a lower priority than the groupSummaries defined under columnSettings for each column. + * All default summaries are defined under $.ig.util.defaultSummaryMethods + * + * + */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupSummaries"): any; + + /** + * Sets default summaries that will appear when grouping by a column on the bottom of each group as a row.This option has a lower priority than the groupSummaries defined under columnSettings for each column. + * All default summaries are defined under $.ig.util.defaultSummaryMethods + * + * + * + * @optionValue New value to be set. + */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupSummaries", optionValue: any): void; + + /** + * Gets the groupSummaries postion inside each group. + * + */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupSummariesPosition"): string; + + /** + * Sets the groupSummaries postion inside each group. + * + * + * @optionValue New value to be set. + */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupSummariesPosition", optionValue: string): void; + /** * Event which is fired when the grouped columns collection is about to change. This event is fired even when button OK is clicked from the modal dialog(after event modalDialogButtonApplyClick is fired) - * use args.owner in order to access the GroupBy widget object - * use args.owner.grid to access the grid widget option - * use args.groupedColumns to get a reference to the current groupedColumns. - * use args.newGroupedColumns to get an object of the new grouped columns that should be applied.(it is set ONLY if called from modal dialog) - * use args.key to get a reference to the current column"s key that"s being grouped(not set if called from modal dialog) - * use args.layout to get a reference to the current layout object, if any(not set if called from modal dialog) - * use args.grid to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - * use args.triggeredBy to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup */ igGridGroupBy(optionLiteral: 'option', optionName: "groupedColumnsChanging"): GroupedColumnsChangingEvent; /** * Event which is fired when the grouped columns collection is about to change. This event is fired even when button OK is clicked from the modal dialog(after event modalDialogButtonApplyClick is fired) - * use args.owner in order to access the GroupBy widget object - * use args.owner.grid to access the grid widget option - * use args.groupedColumns to get a reference to the current groupedColumns. - * use args.newGroupedColumns to get an object of the new grouped columns that should be applied.(it is set ONLY if called from modal dialog) - * use args.key to get a reference to the current column"s key that"s being grouped(not set if called from modal dialog) - * use args.layout to get a reference to the current layout object, if any(not set if called from modal dialog) - * use args.grid to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - * use args.triggeredBy to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup * * @optionValue Define event handler function. */ @@ -40327,25 +46991,11 @@ interface JQuery { /** * Event which is fired when the groupedColumns collection has changed. This event is fired also when group/ungroup from GroupBy modal dialog but key, layout and grid are not set - * use args.owner in order to access the GroupBy widget object - * use args.owner.grid to access the grid widget option - * use args.groupedColumns to get a reference to the current groupedColumns - * use args.key to get a reference to the current column"s key that"s being grouped - * use args.layout to get a reference to the current layout object, if any - * use args.grid to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - * use args.triggeredBy to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup */ igGridGroupBy(optionLiteral: 'option', optionName: "groupedColumnsChanged"): GroupedColumnsChangedEvent; /** * Event which is fired when the groupedColumns collection has changed. This event is fired also when group/ungroup from GroupBy modal dialog but key, layout and grid are not set - * use args.owner in order to access the GroupBy widget object - * use args.owner.grid to access the grid widget option - * use args.groupedColumns to get a reference to the current groupedColumns - * use args.key to get a reference to the current column"s key that"s being grouped - * use args.layout to get a reference to the current layout object, if any - * use args.grid to get a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog) - * use args.triggeredBy to get which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup * * @optionValue Define event handler function. */ @@ -40353,23 +47003,11 @@ interface JQuery { /** * Event fired every time the GroupBy Dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the GroupBy Dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the GroupBy Dialog div as { top, left } object, relative to the page. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogMoving"): ModalDialogMovingEvent; /** * Event fired every time the GroupBy Dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the GroupBy Dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the GroupBy Dialog div as { top, left } object, relative to the page. * * @optionValue Define event handler function. */ @@ -40377,19 +47015,11 @@ interface JQuery { /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogClosing"): ModalDialogClosingEvent; /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40397,19 +47027,11 @@ interface JQuery { /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogClosed"): ModalDialogClosedEvent; /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40417,19 +47039,11 @@ interface JQuery { /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogOpening"): ModalDialogOpeningEvent; /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40437,19 +47051,11 @@ interface JQuery { /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogOpened"): ModalDialogOpenedEvent; /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40457,19 +47063,11 @@ interface JQuery { /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogContentsRendering"): ModalDialogContentsRenderingEvent; /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40477,19 +47075,11 @@ interface JQuery { /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogContentsRendered"): ModalDialogContentsRenderedEvent; /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupBy widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40497,25 +47087,11 @@ interface JQuery { /** * Event fired when the button is Apply is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.groupedColumns to get the array of grouped columns - * Use ui.groupedColumnLayouts to get array of column layouts - * Use ui.sortingExpr to get array of sorted columns */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogButtonApplyClick"): ModalDialogButtonApplyClickEvent; /** * Event fired when the button is Apply is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.groupedColumns to get the array of grouped columns - * Use ui.groupedColumnLayouts to get array of column layouts - * Use ui.sortingExpr to get array of sorted columns * * @optionValue Define event handler function. */ @@ -40523,19 +47099,11 @@ interface JQuery { /** * Event fired when reset button is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogButtonResetClick"): ModalDialogButtonResetClickEvent; /** * Event fired when reset button is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -40543,21 +47111,11 @@ interface JQuery { /** * Event fired when column in modal dialog is clicked to be grouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogGroupingColumn"): ModalDialogGroupingColumnEvent; /** * Event fired when column in modal dialog is clicked to be grouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns * * @optionValue Define event handler function. */ @@ -40565,23 +47123,11 @@ interface JQuery { /** * Event fired when column in modal dialog is clicked to be grouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use args.groupedColumns to get a reference to the current groupedColumns - * Use ui.layout to get the layout of the columns */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogGroupColumn"): ModalDialogGroupColumnEvent; /** * Event fired when column in modal dialog is clicked to be grouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use args.groupedColumns to get a reference to the current groupedColumns - * Use ui.layout to get the layout of the columns * * @optionValue Define event handler function. */ @@ -40589,21 +47135,11 @@ interface JQuery { /** * Event fired when column in modal dialog is clicked to be ungrouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogUngroupingColumn"): ModalDialogUngroupingColumnEvent; /** * Event fired when column in modal dialog is clicked to be ungrouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns * * @optionValue Define event handler function. */ @@ -40611,23 +47147,11 @@ interface JQuery { /** * Event fired when column in modal dialog is clicked to be ungrouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use args.groupedColumns to get a reference to the current groupedColumns - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogUngroupColumn"): ModalDialogUngroupColumnEvent; /** * Event fired when column in modal dialog is clicked to be ungrouped. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use args.groupedColumns to get a reference to the current groupedColumns - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns * * @optionValue Define event handler function. */ @@ -40635,23 +47159,11 @@ interface JQuery { /** * Event fired when column in modal dialog is sorted. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns - * Use ui.isAsc to get whether column should be sorted ascending or descending */ igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogSortGroupedColumn"): ModalDialogSortGroupedColumnEvent; /** * Event fired when column in modal dialog is sorted. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridGroupby widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.key to get the key of the column to be grouped. - * Use ui.layout to get the layout of the columns - * Use ui.isAsc to get whether column should be sorted ascending or descending * * @optionValue Define event handler function. */ @@ -40663,6 +47175,7 @@ interface JQuery { igGridGroupBy(methodName: string, ...methodParams: any[]): any; } interface IgGridHidingColumnSetting { + /** * Column key. this is a required property in every column setting if columnIndex is not set. * @@ -40698,20 +47211,6 @@ interface ColumnHidingEvent { } interface ColumnHidingEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get the hidden column index. Has a value only if the column's key is a number. - */ - columnIndex?: any; - - /** - * Used to get the hidden column key. Has a value only if the column's key is a string. - */ - columnKey?: any; } interface ColumnHidingRefusedEvent { @@ -40719,11 +47218,6 @@ interface ColumnHidingRefusedEvent { } interface ColumnHidingRefusedEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - columnKeys?: any; } interface ColumnShowingRefusedEvent { @@ -40731,11 +47225,6 @@ interface ColumnShowingRefusedEvent { } interface ColumnShowingRefusedEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - columnKeys?: any; } interface MultiColumnHidingEvent { @@ -40743,15 +47232,6 @@ interface MultiColumnHidingEvent { } interface MultiColumnHidingEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. - */ - columnKeys?: any; } interface ColumnHiddenEvent { @@ -40759,20 +47239,6 @@ interface ColumnHiddenEvent { } interface ColumnHiddenEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get the hidden column index. Has a value only if the column's key is a number. - */ - columnIndex?: any; - - /** - * Used to get the hidden column key. Has a value only if the column's key is a string. - */ - columnKey?: any; } interface ColumnShowingEvent { @@ -40780,20 +47246,6 @@ interface ColumnShowingEvent { } interface ColumnShowingEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get the shown column index. - */ - columnIndex?: any; - - /** - * Used to get the shown column key. - */ - columnKey?: any; } interface ColumnShownEvent { @@ -40801,20 +47253,6 @@ interface ColumnShownEvent { } interface ColumnShownEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get the shown column index. - */ - columnIndex?: any; - - /** - * Used to get the shown column key. - */ - columnKey?: any; } interface ColumnChooserOpeningEvent { @@ -40822,15 +47260,6 @@ interface ColumnChooserOpeningEvent { } interface ColumnChooserOpeningEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface ColumnChooserOpenedEvent { @@ -40838,15 +47267,6 @@ interface ColumnChooserOpenedEvent { } interface ColumnChooserOpenedEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface ColumnChooserMovingEvent { @@ -40854,25 +47274,6 @@ interface ColumnChooserMovingEvent { } interface ColumnChooserMovingEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; - - /** - * Used to get the original position of the column chooser div as { top, left } object, relative to the page. - */ - originalPosition?: any; - - /** - * Used to get the current position of the column chooser div as { top, left } object, relative to the page. - */ - position?: any; } interface ColumnChooserClosingEvent { @@ -40880,15 +47281,6 @@ interface ColumnChooserClosingEvent { } interface ColumnChooserClosingEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface ColumnChooserClosedEvent { @@ -40896,15 +47288,6 @@ interface ColumnChooserClosedEvent { } interface ColumnChooserClosedEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface ColumnChooserContentsRenderingEvent { @@ -40912,15 +47295,6 @@ interface ColumnChooserContentsRenderingEvent { } interface ColumnChooserContentsRenderingEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface ColumnChooserContentsRenderedEvent { @@ -40928,15 +47302,6 @@ interface ColumnChooserContentsRenderedEvent { } interface ColumnChooserContentsRenderedEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface ColumnChooserButtonApplyClickEvent { @@ -40944,25 +47309,6 @@ interface ColumnChooserButtonApplyClickEvent { } interface ColumnChooserButtonApplyClickEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; - - /** - * Used to get array of columns identifiers which should be shown - */ - columnsToShow?: any; - - /** - * Used to get array of columns identifiers which should be hidden - */ - columnsToHide?: any; } interface ColumnChooserButtonResetClickEvent { @@ -40970,18 +47316,10 @@ interface ColumnChooserButtonResetClickEvent { } interface ColumnChooserButtonResetClickEventUIParam { - /** - * Used to get the reference to the GridHiding widget. - */ - owner?: any; - - /** - * Used to get a reference to the Column Chooser element. This is a jQuery object. - */ - columnChooserElement?: any; } interface IgGridHiding { + /** * A list of column settings that specifies hiding options on a per column basis. * @@ -41100,153 +47438,81 @@ interface IgGridHiding { /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ columnHiding?: ColumnHidingEvent; /** * Event fired when trying to hide all columns in fixed or unfixed area. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ columnHidingRefused?: ColumnHidingRefusedEvent; /** * Event fired when trying to show column(s) in fixed area and total width of fixed are will be larger than whole grid width. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ columnShowingRefused?: ColumnShowingRefusedEvent; /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. */ multiColumnHiding?: MultiColumnHidingEvent; /** * Event fired after the hiding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ columnHidden?: ColumnHiddenEvent; /** * Event fired before a showing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ columnShowing?: ColumnShowingEvent; /** * Event fired after the showing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ columnShown?: ColumnShownEvent; /** * Event fired before the column chooser is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserOpening?: ColumnChooserOpeningEvent; /** * Event fired after the column chooser is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserOpened?: ColumnChooserOpenedEvent; /** * Event fired every time the column chooser changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the column chooser div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the column chooser div as { top, left } object, relative to the page. */ columnChooserMoving?: ColumnChooserMovingEvent; /** * Event fired before the column chooser is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserClosing?: ColumnChooserClosingEvent; /** * Event fired after the column chooser has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserClosed?: ColumnChooserClosedEvent; /** * Event fired before the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserContentsRendering?: ColumnChooserContentsRenderingEvent; /** * Event fired after the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserContentsRendered?: ColumnChooserContentsRenderedEvent; /** * Event fired when button Apply in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.columnsToShow to get array of columns identifiers which should be shown - * Use ui.columnsToHide to get array of columns identifiers which should be hidden */ columnChooserButtonApplyClick?: ColumnChooserButtonApplyClickEvent; /** * Event fired when button Reset in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserButtonResetClick?: ColumnChooserButtonResetClickEvent; @@ -41256,6 +47522,7 @@ interface IgGridHiding { [optionName: string]: any; } interface IgGridHidingMethods { + /** * Destroys the hiding widget */ @@ -41618,21 +47885,11 @@ interface JQuery { /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ igGridHiding(optionLiteral: 'option', optionName: "columnHiding"): ColumnHidingEvent; /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -41640,19 +47897,11 @@ interface JQuery { /** * Event fired when trying to hide all columns in fixed or unfixed area. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ igGridHiding(optionLiteral: 'option', optionName: "columnHidingRefused"): ColumnHidingRefusedEvent; /** * Event fired when trying to hide all columns in fixed or unfixed area. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -41660,19 +47909,11 @@ interface JQuery { /** * Event fired when trying to show column(s) in fixed area and total width of fixed are will be larger than whole grid width. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ igGridHiding(optionLiteral: 'option', optionName: "columnShowingRefused"): ColumnShowingRefusedEvent; /** * Event fired when trying to show column(s) in fixed area and total width of fixed are will be larger than whole grid width. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -41680,19 +47921,11 @@ interface JQuery { /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. */ igGridHiding(optionLiteral: 'option', optionName: "multiColumnHiding"): MultiColumnHidingEvent; /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. * * @optionValue Define event handler function. */ @@ -41700,21 +47933,11 @@ interface JQuery { /** * Event fired after the hiding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ igGridHiding(optionLiteral: 'option', optionName: "columnHidden"): ColumnHiddenEvent; /** * Event fired after the hiding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -41722,21 +47945,11 @@ interface JQuery { /** * Event fired before a showing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ igGridHiding(optionLiteral: 'option', optionName: "columnShowing"): ColumnShowingEvent; /** * Event fired before a showing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. * * @optionValue Define event handler function. */ @@ -41744,21 +47957,11 @@ interface JQuery { /** * Event fired after the showing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ igGridHiding(optionLiteral: 'option', optionName: "columnShown"): ColumnShownEvent; /** * Event fired after the showing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. * * @optionValue Define event handler function. */ @@ -41766,19 +47969,11 @@ interface JQuery { /** * Event fired before the column chooser is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserOpening"): ColumnChooserOpeningEvent; /** * Event fired before the column chooser is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41786,19 +47981,11 @@ interface JQuery { /** * Event fired after the column chooser is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserOpened"): ColumnChooserOpenedEvent; /** * Event fired after the column chooser is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41806,23 +47993,11 @@ interface JQuery { /** * Event fired every time the column chooser changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the column chooser div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the column chooser div as { top, left } object, relative to the page. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserMoving"): ColumnChooserMovingEvent; /** * Event fired every time the column chooser changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the column chooser div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the column chooser div as { top, left } object, relative to the page. * * @optionValue Define event handler function. */ @@ -41830,19 +48005,11 @@ interface JQuery { /** * Event fired before the column chooser is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserClosing"): ColumnChooserClosingEvent; /** * Event fired before the column chooser is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41850,19 +48017,11 @@ interface JQuery { /** * Event fired after the column chooser has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserClosed"): ColumnChooserClosedEvent; /** * Event fired after the column chooser has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41870,19 +48029,11 @@ interface JQuery { /** * Event fired before the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserContentsRendering"): ColumnChooserContentsRenderingEvent; /** * Event fired before the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41890,19 +48041,11 @@ interface JQuery { /** * Event fired after the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserContentsRendered"): ColumnChooserContentsRenderedEvent; /** * Event fired after the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41910,23 +48053,11 @@ interface JQuery { /** * Event fired when button Apply in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.columnsToShow to get array of columns identifiers which should be shown - * Use ui.columnsToHide to get array of columns identifiers which should be hidden */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserButtonApplyClick"): ColumnChooserButtonApplyClickEvent; /** * Event fired when button Apply in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.columnsToShow to get array of columns identifiers which should be shown - * Use ui.columnsToHide to get array of columns identifiers which should be hidden * * @optionValue Define event handler function. */ @@ -41934,19 +48065,11 @@ interface JQuery { /** * Event fired when button Reset in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igGridHiding(optionLiteral: 'option', optionName: "columnChooserButtonResetClick"): ColumnChooserButtonResetClickEvent; /** * Event fired when button Reset in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -41958,6 +48081,7 @@ interface JQuery { igGridHiding(methodName: string, ...methodParams: any[]): any; } interface IgHierarchicalGridColumnLayout { + /** * Specifies the columnLayout key. This is the property that holds the data records for the current column layout. */ @@ -41979,20 +48103,398 @@ interface IgHierarchicalGridColumnLayout { [optionName: string]: any; } +interface IgHierarchicalGridColumnGroupOptions { + + /** + * Sets whether the group is expanded or collapsed. Applied only if the allowGroupCollapsing is set to true. + * + */ + expanded?: boolean; + + /** + * Sets whether expansion indicators are visible in the group header. + * + */ + allowGroupCollapsing?: boolean; + + /** + * Sets when should the group be hidden. Applied only if the allowGroupCollapsing is set to true. + * + * + * Valid values: + * "never" never hide the group + * "always" always hide the group + * "parentcollapsed" hide the group when its parent group is collapsed + * "parentexpanded" hide the group when its parent group is expanded + */ + hidden?: string; + + /** + * Option for IgHierarchicalGridColumnGroupOptions + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridColumn { + + /** + * Header text for the specified column. + * + */ + headerText?: string; + + /** + * The property in the data source to which the column is bound. Also used to identify the column by, and find specific columns with API methods such as [columnByKey](ui.ighierarchicalgrid#methods:columnByKey). + * + */ + key?: string; + + /** + * Reference to a function (string or function) which will be used for formatting the cell values. The function should accept a value and return the new formatted value. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * Valid values: + * "string" The name of the function which will be used for formatting the cell values. + * "function" Function which will be used for formatting the cell values. The function should accept a value and return the new formatted value. + */ + formatter?: string|Function; + + /** + * Gets/Sets the type of formatting for cells of the column. Default value is null. Checkout [Formatting Dates, Numbers and Strings](http://www.igniteui.com/help/formatting-dates-numbers-and-strings) for details on the valid formatting specifiers. + * + * If dataType is "date", then supported formats are following: "date", "dateLong", "dateTime", "time", "timeLong", "MM/dd/yyyy", "MMM-d, yy, h:mm:ss tt", "dddd d MMM", etc. + * If dataType is "number", then supported numeric formats are following: "number", "currency", "percent", "int", "double", "0.00", "#.0####", "0", "#.#######", etc. + * The value of "double" will be similar to "number", but with unlimited maximum number of decimal places. + * The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. + * If dataType is "string" or not set, then format is rendered as it is with replacement of possible "{0}" flag by value in cell. Example, if format is set to "Name: {0}" and value in cell is "Bob", then value will appear as "Name: Bob" + * If value is set to "checkbox", then checkboxes are used regardless of renderCheckboxes option of the grid. That has effect only when dataType option of column is set to "bool". + */ + format?: string; + + /** + * Data type of the column cell values: string, number, bool, date, object. + * + */ + dataType?: string|number|boolean|Date|Object; + + /** + * Width of the column in pixels or percentage. Can also be set as '*', in which case the width auto-size based on the content of the column cells (including the header text).If width is not defined and [defaultColumnWidth](ui.ighierarchicalgrid#options:defaultColumnWidth) is set, it is assumed for all columns. + * + * + * + * Valid values: + * "string" The column width can be set in pixels (px), percentage (%) or as '*' in order to auto-size based on the cells and header content. + * "number" The column width can be set as a number + */ + width?: string|number; + + /** + * Initial visibility of the column. A column can be hidden without the Hiding feature being enabled but there will be no UI for unhiding it. Columns can be defined as hidden in the options of the Hiding feature as well and those definitions take precedence. + * + */ + hidden?: boolean; + + /** + * Sets a template for an individual column. the contents of the template should be the HTML markup that goes inside the table cell, or the entire table cell markup. [Here's an example of creating a basic column template](http://www.igniteui.com/help/creating-a-basic-column-template-in-the-iggrid) + * + */ + template?: string; + + /** + * Sets whether column data is derived from the datasource. If set to true, then the cells in this column are not bound to the data source. The data in this column is populated using [formula](ui.ighierarchicalgrid#options:columns.formula), or using [unboundValues](ui.ighierarchicalgrid#options:columns.unboundValues), or through the [setUnboundValues](ui.ighierarchicalgrid#methods:setUnboundValues) API method. [Here's an overview of the unbound columns feature](http://www.igniteui.com/help/iggrid-unboundcolumns-overview) + * + */ + unbound?: boolean; + + /** + * Options used to configure collapsible column [groups](ui.ighierarchicalgrid#options:columns.group). + * + */ + groupOptions?: IgHierarchicalGridColumnGroupOptions; + + /** + * Array of child column definitions. If the column has the property group than the grid has multi column headers. + * + */ + group?: any[]; + + /** + * Determines the way in which dates will be displayed in the grid for this column. + * + * + * Valid values: + * "local" The dates for this column will be rendered in the client's local timezone. + * "utc" The dates for this column will be rendered in their UTC representation. + */ + dateDisplayType?: string; + + /** + * This option has been deprecated as of the June 2016 service release. + * Adjust span of multi column header cell. Use option rowSpan. + */ + rowspan?: number; + + /** + * A reference to or the name of a JavaScript function, which will calculate the value of the current cell based on other cell values in the same row. Used with [unbound columns](ui.ighierarchicalgrid#options:columns.unbound). + * + * + * Valid values: + * "string" The name of the JavaScript function. + * "function" Reference to the JavaScript function. + */ + formula?: string|Function; + + /** + * Array of values which will be populated in the column cells at initialization, if the column is [unbound](ui.ighierarchicalgrid#options:columns.unbound). + * + */ + unboundValues?: any[]; + + /** + * Space-separated list of CSS classes to be applied on the header cell of this column. + * + */ + headerCssClass?: string; + + /** + * Space-separated list of CSS classes to be applied on the data cells of this column. The class is not applied if the column has a column [template](ui.ighierarchicalgrid#options:columns.template) defined, which contains full definition in the template. + * + */ + columnCssClass?: string; + + /** + * This option is applicable only for columns with [dataType](ui.ighierarchicalgrid#options:columns.dataType) of object. Reference to a function, or the name of the function, that will be used for complex data extraction from the data records, whose return value will be used for all data operations associated with this column and will be displayed as cell value. [Here you can find more examples of how to setup a column mapper](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-mapper) + * + * + * Valid values: + * "string" The name of the mapper function. + * "function" Reference to the mapper function. + */ + mapper?: string|Function; + + /** + * Specifies the row index of the cell in a Multi-Row Layout configuration. All columns must have this property set for the multi-row-layout mode to be enabled. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + rowIndex?: number; + + /** + * Specifies the column index of the cell in a Multi-Row Layout configuration. All columns must have this property set for the multi-row-layout mode to be enabled. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + columnIndex?: number; + + /** + * Specifies the navigation index of the cell for the TAB sequence when the cells are in edit mode in a Multi-Row Layout grid. Has no effect otherwise. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + navigationIndex?: number; + + /** + * Specifies the colSpan of the cell in a Multi-Row Layout configuration. colSpan 0 is not supported and will be changed to 1 by the grid. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout) + * + */ + colSpan?: number; + + /** + * Specifies the rowSpan of the cell in a Multi-Row Layout configuration. rowSpan 0 is not supported and will be changed to 1 by the grid. [Here you can find more about the Multi-Row Layout feature](http://www.igniteui.com/help/iggrid-multirowlayout). If multi-row-layout is not used but multi-column-header is set then this option is used to adjust span of header cell. + * + */ + rowSpan?: number; + + /** + * Option for IgHierarchicalGridColumn + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridFeature { + + /** + * Name of the feature to be enabled. + */ + name?: string; + + /** + * Option for IgHierarchicalGridFeature + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridRestSettingsCreate { + + /** + * Specifies a remote URL to which create requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. + * + */ + url?: string; + + /** + * Specifies a remote URL template. Use ${id} in place of the resource id. + * + */ + template?: string; + + /** + * Specifies whether create requests will be sent in batches + * + */ + batch?: boolean; + + /** + * Option for IgHierarchicalGridRestSettingsCreate + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridRestSettingsUpdate { + + /** + * Specifies a remote URL to which update requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. + */ + url?: string; + + /** + * Specifies a remote URL template. Use ${id} in place of the resource id. + */ + template?: string; + + /** + * Specifies whether update requests will be sent in batches + */ + batch?: boolean; + + /** + * Option for IgHierarchicalGridRestSettingsUpdate + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridRestSettingsRemove { + + /** + * Specifies a remote URL to which remove requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. + */ + url?: string; + + /** + * Specifies a remote URL template. Use ${id} in place of the resource id. + */ + template?: string; + + /** + * Specifies whether update requests will be sent in batches + */ + batch?: boolean; + + /** + * Option for IgHierarchicalGridRestSettingsRemove + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridRestSettings { + + /** + * Settings for create requests + * + */ + create?: IgHierarchicalGridRestSettingsCreate; + + /** + * Settings for update requests + */ + update?: IgHierarchicalGridRestSettingsUpdate; + + /** + * Settings for remove requests + */ + remove?: IgHierarchicalGridRestSettingsRemove; + + /** + * Specifies whether the ids of the removed resources are send through the request URI + */ + encodeRemoveInRequestUri?: boolean; + + /** + * Specifies a custom function to serialize content sent to the server. It should accept a single object or an array of objects and return a string. If not specified, JSON.stringify() will be used. + * + */ + contentSerializer?: Function; + + /** + * Specifies the content type of the request. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + contentType?: string; + + /** + * Option for IgHierarchicalGridRestSettings + */ + [optionName: string]: any; +} + +interface IgHierarchicalGridScrollSettings { + + /** + * Sets gets current vertical position. + * + */ + scrollTop?: number; + + /** + * Sets gets current horizontal position. + * + */ + scrollLeft?: number; + + /** + * Sets gets the step of the default scrolling behavior when using the mouse wheel. + * + */ + wheelStep?: number; + + /** + * Sets gets if smoother scrolling with small intertia should be used when using the mouse wheel. + * + */ + smoothing?: boolean; + + /** + * Sets or gets the modifier for how many pixels will be scrolled when using the mouse wheel once. This is used only for the [smooth scrolling behavior](ui.ighierarchicalgrid#options:scrollSettings.smoothing). + * + */ + smoothingStep?: number; + + /** + * Sets or gets the modifier for how long the scroll ‘animation’ lasts when using the mouse wheel once. This is used only for the [smooth scrolling behavior](ui.ighierarchicalgrid#options:scrollSettings.smoothing). + * + */ + smoothingDuration?: number; + + /** + * Sets gets the modifier for how much the inertia scrolls on touch devices. Note: Value set to 0 would disable touch movements. Value set to -1 would invert them. + * + */ + inertiaStep?: number; + + /** + * Sets gets the modifier for how long the inertia last on touch devices. + * + */ + inertiaDuration?: number; + + /** + * Option for IgHierarchicalGridScrollSettings + */ + [optionName: string]: any; +} + interface RowExpandingEvent { (event: Event, ui: RowExpandingEventUIParam): void; } interface RowExpandingEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that's about to be expanded - */ - parentrow?: any; } interface RowExpandedEvent { @@ -42000,15 +48502,6 @@ interface RowExpandedEvent { } interface RowExpandedEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that was expanded - */ - parentrow?: any; } interface RowCollapsingEvent { @@ -42016,15 +48509,6 @@ interface RowCollapsingEvent { } interface RowCollapsingEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that's about to be collapsed - */ - parentrow?: any; } interface RowCollapsedEvent { @@ -42032,15 +48516,6 @@ interface RowCollapsedEvent { } interface RowCollapsedEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that was collapsd - */ - parentrow?: any; } interface ChildrenPopulatingEvent { @@ -42048,20 +48523,6 @@ interface ChildrenPopulatingEvent { } interface ChildrenPopulatingEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that's about to be populated - */ - parentrow?: any; - - /** - * Used to get the data ID of the row - */ - id?: any; } interface ChildrenPopulatedEvent { @@ -42069,20 +48530,6 @@ interface ChildrenPopulatedEvent { } interface ChildrenPopulatedEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that was populated - */ - parentrow?: any; - - /** - * Used to get the data ID of the row - */ - id?: any; } interface ChildGridRenderedEvent { @@ -42090,20 +48537,6 @@ interface ChildGridRenderedEvent { } interface ChildGridRenderedEventUIParam { - /** - * Used to access the hierarchical grid object - */ - owner?: any; - - /** - * Used to access the row element for the row that's about to be populated - */ - parentrow?: any; - - /** - * Used to get reference to the child grid - */ - childgrid?: any; } interface ChildGridCreatingEvent { @@ -42121,132 +48554,456 @@ interface ChildGridCreatedEventUIParam { } interface IgHierarchicalGrid { + /** * Only the first level will be data-bound initially. Also serves as "render" depth, meaning that depending on this prop, the grid will + * */ initialDataBindDepth?: number; /** * No levels will be automatically expanded when the widget is instantiated for the first time + * */ initialExpandDepth?: number; /** * If true, encodes all requests using OData conventions and the $expand syntax + * */ odata?: boolean; /** * If true, load on demand will be achieved using REST compliant resource access with appropriate url-s for * the ajax GET calls. + * */ rest?: boolean; /** * Specifies the limit on the number of levels to bind to + * */ maxDataBindDepth?: number; /** * Specifies the default property in the response where children will be located + * */ defaultChildrenDataProperty?: string; /** * If true, will autogenerate all layouts assuming default values for "childrenDataProperty" * When autoGenerateLayouts is enabled, it will automatically generate all columns recursively. (all columns on all levels) + * */ autoGenerateLayouts?: boolean; /** * Applies a linear animation - either expanding or collapsing depending on the parent row state + * */ expandCollapseAnimations?: boolean; /** * Specifies the expand column width + * */ expandColWidth?: number; /** * Specifies the delimiter for constructing paths , for hierarchical lookup of data + * */ pathSeparator?: string; /** * The row expanding/collapsing animation duration in ms. + * */ animationDuration?: number; /** * Specifies the default tooltip applied to an expand column cell, that is currently collapsed + * */ expandTooltip?: string; /** * Specifies the default tooltip applied to an expand column cell, that is currently expanded + * */ collapseTooltip?: string; - /** - * An array of column objects - */ - columns?: any[]; - /** * List of columnLayout objects that specify the structure of the child grids. All options that are applicable to a flat grid are also applicable here + * */ columnLayouts?: IgHierarchicalGridColumnLayout[]; + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * Valid values: + * "string" The widget width can be set in pixels (px) or percentage (%). Example values: "800px", "800" (defaults to pixels), "100%". + * "number" The widget width can be set in pixels as a number. Example values: 800, 700. + * "null" will stretch to fit the sum of the columns widths. + */ + width?: string|number; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * Valid values: + * "string" The widget height can be set in pixels (px) and percentage (%). + * "number" The widget height can be set as a number + * "null" will stretch vertically to fit data. + */ + height?: string|number; + + /** + * If autoAdjustHeight is set to false, the [height](ui.ighierarchicalgrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data sets ( > 1000 rows rendered at once, no [virtualization](ui.ighierarchicalgrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + */ + autoAdjustHeight?: boolean; + + /** + * Used for [row virtualization](ui.ighierarchicalgrid#options:rowVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + * + * Valid values: + * "string" The avarage row height can be set in pixels ("25px"). + * "number" The avarage row height can be set in pixels as a number (25). + */ + avgRowHeight?: string|number; + + /** + * Used for [column virtualization](ui.ighierarchicalgrid#options:columnVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + * + * Valid values: + * "string" The avarage column width can be set in pixels ("25px"). + * "number" The avarage column width can be set in pixels as a number (25). + */ + avgColumnWidth?: string|number; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.ighierarchicalgrid#options:columns.width) defined. + * + * + * Valid values: + * "string" The default column width can be set in pixels ("100px"). + * "number" The default column width can be set in pixels as a number (100). + */ + defaultColumnWidth?: string|number; + + /** + * If no [columns](ui.ighierarchicalgrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.ighierarchicalgrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.ighierarchicalgrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.ighierarchicalgrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.ighierarchicalgrid#options:defaultColumnWidth) as well. + * + */ + autoGenerateColumns?: boolean; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + */ + virtualization?: boolean; + + /** + * Determines row virtualization mode. + * + * + * Valid values: + * "fixed" Renders only the visible rows and/or columns in the grid. On scrolling the same rows and/or columns are updated with new data from the data source. Only fixed virtualization can work with column virtualization at the same time. Fixed virtualization is not supported by some grid features: Resizing, Group By, Responsive. + * "continuous" renders a pre-defined number of rows in the grid. On scrolling the continuous virtualization loads another portion of rows and disposes the current one. + */ + virtualizationMode?: string; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + */ + rowVirtualization?: boolean; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.ighierarchicalgrid#options:virtualization) to true and [virtualizationMode](ui.ighierarchicalgrid#options:virtualizationMode) to "fixed". + * + */ + columnVirtualization?: boolean; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight). + * + */ + virtualizationMouseWheelStep?: number; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + */ + adjustVirtualHeights?: boolean; + + /** + * The templating engine that will be used to render the grid [column templates](ui.ighierarchicalgrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + * + * Valid values: + * "infragistics" The grid will use the Infragistics Templating engine to render its [column templates](ui.ighierarchicalgrid#options:columns.template) and specific parts of the UI. + * "jsRender" The grid will use jsRender to render its [column templates](ui.ighierarchicalgrid#options:columns.template) and specific parts of the UI. + */ + templatingEngine?: string; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + */ + columns?: IgHierarchicalGridColumn[]; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + */ + dataSource?: any; + + /** + * Specifies a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + */ + dataSourceUrl?: string; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + */ + dataSourceType?: string; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + */ + responseDataKey?: string; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + */ + responseTotalRecCountKey?: string; + + /** + * Specifies the HTTP verb to be used to issue the requests to a remote data source. + * + */ + requestType?: string; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + responseContentType?: string; + + /** + * Controls the visibility of the grid header. + * + */ + showHeader?: boolean; + + /** + * Controls the visibility of the grid footer. + * + */ + showFooter?: boolean; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.ighierarchicalgrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + */ + fixedHeaders?: boolean; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.ighierarchicalgrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + */ + fixedFooters?: boolean; + + /** + * Caption text that will be shown above the grid header. + * + */ + caption?: string; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + */ + features?: IgHierarchicalGridFeature[]; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + */ + tabIndex?: number; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.ighierarchicalgrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.ighierarchicalgrid#options:columns) defined will be extracted in a new object and used. + * + */ + localSchemaTransform?: boolean; + + /** + * Key of the column containing unique identifiers for the data records. + * + */ + primaryKey?: string; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + */ + serializeTransactionLog?: boolean; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.ighierarchicalgrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + */ + autoCommit?: boolean; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.ighierarchicalgrid#options:autoCommit) is set to false. + * + */ + aggregateTransactions?: boolean; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * Valid values: + * "date" formats only Date columns + * "number" formats only number columns + * "dateandnumber" formats both Date and number columns + * "true" formats Date and number columns + * "false" auto formatting is disabled + */ + autoFormat?: string|boolean; + + /** + * Gets sets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.ighierarchicalgrid#options:columns.template). + * + */ + renderCheckboxes?: boolean; + + /** + * URL to which updating requests will be made. + * + */ + updateUrl?: string; + + /** + * Settings related to REST compliant update routines. + * + */ + restSettings?: IgHierarchicalGridRestSettings; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + */ + alternateRowStyles?: boolean; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + */ + autofitLastColumn?: boolean; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + */ + enableHoverStyles?: boolean; + + /** + * Nables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + */ + enableUTCDates?: boolean; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + */ + mergeUnboundColumns?: boolean; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + */ + jsonpRequest?: boolean; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.ighierarchicalgrid#options:width) and/or [height](ui.ighierarchicalgrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + */ + enableResizeContainerCheck?: boolean; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + * + * Valid values: + * "none" Always hide the feature chooser icon; The feature chooser is shown on tapping/clicking the column header. + * "desktopOnly" Always show the icon on desktop but hide when touch device detected. + * "always" Always show it in any environment. Chooser is shown when tapping the gear icon or column header. + */ + featureChooserIconDisplay?: string; + + /** + * Settings related to content scrolling. + * + */ + scrollSettings?: IgHierarchicalGridScrollSettings; + /** * Event which is fired when a hierarchical row is about to be expanded - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be expanded */ rowExpanding?: RowExpandingEvent; /** * Event which is fired after a hierarchical row has been expanded - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was expanded */ rowExpanded?: RowExpandedEvent; /** * Event which is fired when a hierarchical row is about to be collapsed - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be collapsed */ rowCollapsing?: RowCollapsingEvent; /** * Event which is fired when a hierarchical row has been collapsed - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was collapsd */ rowCollapsed?: RowCollapsedEvent; /** * Event which is fired when children are about to be populated (Load on demand) - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be populated - * use args.id to get the data ID of the row */ childrenPopulating?: ChildrenPopulatingEvent; /** * Event which is fired when children have been populated (Load on demand) - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was populated - * use args.id to get the data ID of the row */ childrenPopulated?: ChildrenPopulatedEvent; /** * Event fired when child grid is rendered - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be populated - * use args.childgrid to get reference to the child grid */ childGridRendered?: ChildGridRenderedEvent; @@ -42260,12 +49017,141 @@ interface IgHierarchicalGrid { */ childGridCreated?: ChildGridCreatedEvent; + /** + * Event fired when a cell is clicked. + */ + cellClick?: CellClickEvent; + + /** + * Event fired when a cell is right clicked. + */ + cellRightClick?: CellRightClickEvent; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + */ + dataBinding?: DataBindingEvent; + + /** + * Event fired after data binding is complete. + */ + dataBound?: DataBoundEvent; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + */ + rendering?: RenderingEvent; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + */ + rendered?: RenderedEvent; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + */ + dataRendering?: DataRenderingEvent; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + */ + dataRendered?: DataRenderedEvent; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + */ + headerRendering?: HeaderRenderingEvent; + + /** + * Event fired after the header has been rendered. + */ + headerRendered?: HeaderRenderedEvent; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + */ + captionRendering?: CaptionRenderingEvent; + + /** + * Event fired after the caption has been rendered. + */ + captionRendered?: CaptionRenderedEvent; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + */ + footerRendering?: FooterRenderingEvent; + + /** + * Event fired after the footer has been rendered. + */ + footerRendered?: FooterRenderedEvent; + + /** + * Event fired after every TH in the grid header has been rendered. + */ + headerCellRendered?: HeaderCellRenderedEvent; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + */ + rowsRendering?: RowsRenderingEvent; + + /** + * Event fired after data rows are rendered. + */ + rowsRendered?: RowsRenderedEvent; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + */ + schemaGenerated?: SchemaGeneratedEvent; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + */ + columnsCollectionModified?: ColumnsCollectionModifiedEvent; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + */ + requestError?: RequestErrorEvent; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + */ + created?: CreatedEvent; + + /** + * Fired when the grid is destroyed + */ + destroyed?: DestroyedEvent; + /** * Option for igHierarchicalGrid */ [optionName: string]: any; } interface IgHierarchicalGridMethods { + /** * Data binds the hierarchical grid. No child grids will be created or rendered by default, unless there is initialExpandDepth >= 0 set. */ @@ -42293,7 +49179,7 @@ interface IgHierarchicalGridMethods { /** * Expands or collapses (toggles) a parent row - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row * @param callback Specifies a custom function to be called when parent row is toggled(optional). Takes 2 arguments - first is hierarchical grid object, second is the row element that was toggled @@ -42302,7 +49188,7 @@ interface IgHierarchicalGridMethods { /** * Expands (toggles) a parent row - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * * @param id accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row * @param callback Specifies a custom function to be called when parent row is expanded(optional). Takes 2 arguments first is hierarchical grid object, second is the row element that was expanded @@ -42318,7 +49204,7 @@ interface IgHierarchicalGridMethods { /** * Collapses a parent row - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * * @param id accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row * @param callback Specifies a custom function to be called when parent row is expanded(optional). Takes 2 arguments - first is hierarchical grid object, second is the row element that was collapsed @@ -42387,36 +49273,42 @@ interface JQuery { /** * Only the first level will be data-bound initially. Also serves as "render" depth, meaning that depending on this prop, the grid will + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "initialDataBindDepth"): number; /** * Only the first level will be data-bound initially. Also serves as "render" depth, meaning that depending on this prop, the grid will * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "initialDataBindDepth", optionValue: number): void; /** * No levels will be automatically expanded when the widget is instantiated for the first time + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "initialExpandDepth"): number; /** * No levels will be automatically expanded when the widget is instantiated for the first time * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "initialExpandDepth", optionValue: number): void; /** * If true, encodes all requests using OData conventions and the $expand syntax + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "odata"): boolean; /** * If true, encodes all requests using OData conventions and the $expand syntax * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "odata", optionValue: boolean): void; @@ -42424,6 +49316,7 @@ interface JQuery { /** * If true, load on demand will be achieved using REST compliant resource access with appropriate url-s for * the ajax GET calls. + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "rest"): boolean; @@ -42431,30 +49324,35 @@ interface JQuery { * If true, load on demand will be achieved using REST compliant resource access with appropriate url-s for * the ajax GET calls. * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "rest", optionValue: boolean): void; /** * Gets the limit on the number of levels to bind to + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "maxDataBindDepth"): number; /** * Sets the limit on the number of levels to bind to * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "maxDataBindDepth", optionValue: number): void; /** * Gets the default property in the response where children will be located + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "defaultChildrenDataProperty"): string; /** * Sets the default property in the response where children will be located * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "defaultChildrenDataProperty", optionValue: string): void; @@ -42462,6 +49360,7 @@ interface JQuery { /** * If true, will autogenerate all layouts assuming default values for "childrenDataProperty" * When autoGenerateLayouts is enabled, it will automatically generate all columns recursively. (all columns on all levels) + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "autoGenerateLayouts"): boolean; @@ -42469,117 +49368,788 @@ interface JQuery { * If true, will autogenerate all layouts assuming default values for "childrenDataProperty" * When autoGenerateLayouts is enabled, it will automatically generate all columns recursively. (all columns on all levels) * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "autoGenerateLayouts", optionValue: boolean): void; /** * Applies a linear animation - either expanding or collapsing depending on the parent row state + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "expandCollapseAnimations"): boolean; /** * Applies a linear animation - either expanding or collapsing depending on the parent row state * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "expandCollapseAnimations", optionValue: boolean): void; /** * Gets the expand column width + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "expandColWidth"): number; /** * Sets the expand column width * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "expandColWidth", optionValue: number): void; /** * Gets the delimiter for constructing paths , for hierarchical lookup of data + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "pathSeparator"): string; /** * Sets the delimiter for constructing paths , for hierarchical lookup of data * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "pathSeparator", optionValue: string): void; /** * The row expanding/collapsing animation duration in ms. + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "animationDuration"): number; /** * The row expanding/collapsing animation duration in ms. * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "animationDuration", optionValue: number): void; /** * Gets the default tooltip applied to an expand column cell, that is currently collapsed + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "expandTooltip"): string; /** * Sets the default tooltip applied to an expand column cell, that is currently collapsed * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "expandTooltip", optionValue: string): void; /** * Gets the default tooltip applied to an expand column cell, that is currently expanded + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "collapseTooltip"): string; /** * Sets the default tooltip applied to an expand column cell, that is currently expanded * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "collapseTooltip", optionValue: string): void; - /** - * An array of column objects - */ - igHierarchicalGrid(optionLiteral: 'option', optionName: "columns"): any[]; - - /** - * An array of column objects - * - * @optionValue New value to be set. - */ - igHierarchicalGrid(optionLiteral: 'option', optionName: "columns", optionValue: any[]): void; - /** * List of columnLayout objects that specify the structure of the child grids. All options that are applicable to a flat grid are also applicable here + * */ igHierarchicalGrid(optionLiteral: 'option', optionName: "columnLayouts"): IgHierarchicalGridColumnLayout[]; /** * List of columnLayout objects that specify the structure of the child grids. All options that are applicable to a flat grid are also applicable here * + * * @optionValue New value to be set. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "columnLayouts", optionValue: IgHierarchicalGridColumnLayout[]): void; + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "width"): string|number; + + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "height"): string|number; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; + + /** + * If autoAdjustHeight is set to false, the [height](ui.ighierarchicalgrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data ( > 1000 rows rendered at once, no [virtualization](ui.ighierarchicalgrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoAdjustHeight"): boolean; + + /** + * If autoAdjustHeight is set to false, the [height](ui.ighierarchicalgrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data sets ( > 1000 rows rendered at once, no [virtualization](ui.ighierarchicalgrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoAdjustHeight", optionValue: boolean): void; + + /** + * Used for [row virtualization](ui.ighierarchicalgrid#options:rowVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgRowHeight"): string|number; + + /** + * Used for [row virtualization](ui.ighierarchicalgrid#options:rowVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgRowHeight", optionValue: string|number): void; + + /** + * Used for [column virtualization](ui.ighierarchicalgrid#options:columnVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgColumnWidth"): string|number; + + /** + * Used for [column virtualization](ui.ighierarchicalgrid#options:columnVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgColumnWidth", optionValue: string|number): void; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.ighierarchicalgrid#options:columns.width) defined. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "defaultColumnWidth"): string|number; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.ighierarchicalgrid#options:columns.width) defined. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "defaultColumnWidth", optionValue: string|number): void; + + /** + * If no [columns](ui.ighierarchicalgrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.ighierarchicalgrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.ighierarchicalgrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.ighierarchicalgrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.ighierarchicalgrid#options:defaultColumnWidth) as well. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoGenerateColumns"): boolean; + + /** + * If no [columns](ui.ighierarchicalgrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.ighierarchicalgrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.ighierarchicalgrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.ighierarchicalgrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.ighierarchicalgrid#options:defaultColumnWidth) as well. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoGenerateColumns", optionValue: boolean): void; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualization"): boolean; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualization", optionValue: boolean): void; + + /** + * Determines row virtualization mode. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualizationMode"): string; + + /** + * Determines row virtualization mode. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualizationMode", optionValue: string): void; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rowVirtualization"): boolean; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rowVirtualization", optionValue: boolean): void; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.ighierarchicalgrid#options:virtualization) to true and [virtualizationMode](ui.ighierarchicalgrid#options:virtualizationMode) to "fixed". + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "columnVirtualization"): boolean; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.ighierarchicalgrid#options:virtualization) to true and [virtualizationMode](ui.ighierarchicalgrid#options:virtualizationMode) to "fixed". + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "columnVirtualization", optionValue: boolean): void; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualizationMouseWheelStep"): number; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualizationMouseWheelStep", optionValue: number): void; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "adjustVirtualHeights"): boolean; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.ighierarchicalgrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "adjustVirtualHeights", optionValue: boolean): void; + + /** + * The templating engine that will be used to render the grid [column templates](ui.ighierarchicalgrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "templatingEngine"): string; + + /** + * The templating engine that will be used to render the grid [column templates](ui.ighierarchicalgrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "templatingEngine", optionValue: string): void; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "columns"): IgHierarchicalGridColumn[]; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "columns", optionValue: IgHierarchicalGridColumn[]): void; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataSource"): any; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataSource", optionValue: any): void; + + /** + * Gets a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataSourceUrl"): string; + + /** + * Sets a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataSourceUrl", optionValue: string): void; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataSourceType"): string; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataSourceType", optionValue: string): void; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "responseDataKey"): string; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "responseDataKey", optionValue: string): void; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "responseTotalRecCountKey"): string; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "responseTotalRecCountKey", optionValue: string): void; + + /** + * Gets the HTTP verb to be used to issue the requests to a remote data source. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "requestType"): string; + + /** + * Sets the HTTP verb to be used to issue the requests to a remote data source. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "requestType", optionValue: string): void; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "responseContentType"): string; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "responseContentType", optionValue: string): void; + + /** + * Controls the visibility of the grid header. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "showHeader"): boolean; + + /** + * Controls the visibility of the grid header. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "showHeader", optionValue: boolean): void; + + /** + * Controls the visibility of the grid footer. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "showFooter"): boolean; + + /** + * Controls the visibility of the grid footer. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "showFooter", optionValue: boolean): void; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.ighierarchicalgrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "fixedHeaders"): boolean; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.ighierarchicalgrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "fixedHeaders", optionValue: boolean): void; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.ighierarchicalgrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "fixedFooters"): boolean; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.ighierarchicalgrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "fixedFooters", optionValue: boolean): void; + + /** + * Caption text that will be shown above the grid header. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "caption"): string; + + /** + * Caption text that will be shown above the grid header. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "caption", optionValue: string): void; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "features"): IgHierarchicalGridFeature[]; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "features", optionValue: IgHierarchicalGridFeature[]): void; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "tabIndex"): number; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "tabIndex", optionValue: number): void; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.ighierarchicalgrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.ighierarchicalgrid#options:columns) defined will be extracted in a new object and used. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "localSchemaTransform"): boolean; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.ighierarchicalgrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.ighierarchicalgrid#options:columns) defined will be extracted in a new object and used. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "localSchemaTransform", optionValue: boolean): void; + + /** + * Key of the column containing unique identifiers for the data records. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "primaryKey"): string; + + /** + * Key of the column containing unique identifiers for the data records. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "primaryKey", optionValue: string): void; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "serializeTransactionLog"): boolean; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "serializeTransactionLog", optionValue: boolean): void; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.ighierarchicalgrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoCommit"): boolean; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.ighierarchicalgrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoCommit", optionValue: boolean): void; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.ighierarchicalgrid#options:autoCommit) is set to false. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "aggregateTransactions"): boolean; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.ighierarchicalgrid#options:autoCommit) is set to false. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "aggregateTransactions", optionValue: boolean): void; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoFormat", optionValue: string|boolean): void; + + /** + * Gets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.ighierarchicalgrid#options:columns.template). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "renderCheckboxes"): boolean; + + /** + * Sets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.ighierarchicalgrid#options:columns.template). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "renderCheckboxes", optionValue: boolean): void; + + /** + * URL to which updating requests will be made. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "updateUrl"): string; + + /** + * URL to which updating requests will be made. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "updateUrl", optionValue: string): void; + + /** + * Settings related to REST compliant update routines. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "restSettings"): IgHierarchicalGridRestSettings; + + /** + * Settings related to REST compliant update routines. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "restSettings", optionValue: IgHierarchicalGridRestSettings): void; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "alternateRowStyles"): boolean; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "alternateRowStyles", optionValue: boolean): void; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autofitLastColumn"): boolean; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autofitLastColumn", optionValue: boolean): void; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "enableHoverStyles"): boolean; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "enableHoverStyles", optionValue: boolean): void; + + /** + * Nables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "enableUTCDates"): boolean; + + /** + * Nables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "enableUTCDates", optionValue: boolean): void; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "mergeUnboundColumns"): boolean; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "mergeUnboundColumns", optionValue: boolean): void; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "jsonpRequest"): boolean; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "jsonpRequest", optionValue: boolean): void; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.ighierarchicalgrid#options:width) and/or [height](ui.ighierarchicalgrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "enableResizeContainerCheck"): boolean; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.ighierarchicalgrid#options:width) and/or [height](ui.ighierarchicalgrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "enableResizeContainerCheck", optionValue: boolean): void; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay"): string; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay", optionValue: string): void; + + /** + * Settings related to content scrolling. + * + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "scrollSettings"): IgHierarchicalGridScrollSettings; + + /** + * Settings related to content scrolling. + * + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "scrollSettings", optionValue: IgHierarchicalGridScrollSettings): void; + /** * Event which is fired when a hierarchical row is about to be expanded - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be expanded */ igHierarchicalGrid(optionLiteral: 'option', optionName: "rowExpanding"): RowExpandingEvent; /** * Event which is fired when a hierarchical row is about to be expanded - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be expanded * * @optionValue Define event handler function. */ @@ -42587,15 +50157,11 @@ interface JQuery { /** * Event which is fired after a hierarchical row has been expanded - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was expanded */ igHierarchicalGrid(optionLiteral: 'option', optionName: "rowExpanded"): RowExpandedEvent; /** * Event which is fired after a hierarchical row has been expanded - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was expanded * * @optionValue Define event handler function. */ @@ -42603,15 +50169,11 @@ interface JQuery { /** * Event which is fired when a hierarchical row is about to be collapsed - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be collapsed */ igHierarchicalGrid(optionLiteral: 'option', optionName: "rowCollapsing"): RowCollapsingEvent; /** * Event which is fired when a hierarchical row is about to be collapsed - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be collapsed * * @optionValue Define event handler function. */ @@ -42619,15 +50181,11 @@ interface JQuery { /** * Event which is fired when a hierarchical row has been collapsed - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was collapsd */ igHierarchicalGrid(optionLiteral: 'option', optionName: "rowCollapsed"): RowCollapsedEvent; /** * Event which is fired when a hierarchical row has been collapsed - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was collapsd * * @optionValue Define event handler function. */ @@ -42635,17 +50193,11 @@ interface JQuery { /** * Event which is fired when children are about to be populated (Load on demand) - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be populated - * use args.id to get the data ID of the row */ igHierarchicalGrid(optionLiteral: 'option', optionName: "childrenPopulating"): ChildrenPopulatingEvent; /** * Event which is fired when children are about to be populated (Load on demand) - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be populated - * use args.id to get the data ID of the row * * @optionValue Define event handler function. */ @@ -42653,17 +50205,11 @@ interface JQuery { /** * Event which is fired when children have been populated (Load on demand) - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was populated - * use args.id to get the data ID of the row */ igHierarchicalGrid(optionLiteral: 'option', optionName: "childrenPopulated"): ChildrenPopulatedEvent; /** * Event which is fired when children have been populated (Load on demand) - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that was populated - * use args.id to get the data ID of the row * * @optionValue Define event handler function. */ @@ -42671,17 +50217,11 @@ interface JQuery { /** * Event fired when child grid is rendered - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be populated - * use args.childgrid to get reference to the child grid */ igHierarchicalGrid(optionLiteral: 'option', optionName: "childGridRendered"): ChildGridRenderedEvent; /** * Event fired when child grid is rendered - * use args.owner to access the hierarchical grid object - * use args.parentrow to access the row element for the row that's about to be populated - * use args.childgrid to get reference to the child grid * * @optionValue Define event handler function. */ @@ -42710,6 +50250,306 @@ interface JQuery { * @optionValue Define event handler function. */ igHierarchicalGrid(optionLiteral: 'option', optionName: "childGridCreated", optionValue: ChildGridCreatedEvent): void; + + /** + * Event fired when a cell is clicked. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "cellClick"): CellClickEvent; + + /** + * Event fired when a cell is clicked. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "cellClick", optionValue: CellClickEvent): void; + + /** + * Event fired when a cell is right clicked. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "cellRightClick"): CellRightClickEvent; + + /** + * Event fired when a cell is right clicked. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "cellRightClick", optionValue: CellRightClickEvent): void; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataBinding"): DataBindingEvent; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataBinding", optionValue: DataBindingEvent): void; + + /** + * Event fired after data binding is complete. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataBound"): DataBoundEvent; + + /** + * Event fired after data binding is complete. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataBound", optionValue: DataBoundEvent): void; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rendering"): RenderingEvent; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rendering", optionValue: RenderingEvent): void; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rendered"): RenderedEvent; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rendered", optionValue: RenderedEvent): void; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataRendering"): DataRenderingEvent; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataRendering", optionValue: DataRenderingEvent): void; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataRendered"): DataRenderedEvent; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "dataRendered", optionValue: DataRenderedEvent): void; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "headerRendering"): HeaderRenderingEvent; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "headerRendering", optionValue: HeaderRenderingEvent): void; + + /** + * Event fired after the header has been rendered. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "headerRendered"): HeaderRenderedEvent; + + /** + * Event fired after the header has been rendered. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "headerRendered", optionValue: HeaderRenderedEvent): void; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "captionRendering"): CaptionRenderingEvent; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "captionRendering", optionValue: CaptionRenderingEvent): void; + + /** + * Event fired after the caption has been rendered. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "captionRendered"): CaptionRenderedEvent; + + /** + * Event fired after the caption has been rendered. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "captionRendered", optionValue: CaptionRenderedEvent): void; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "footerRendering"): FooterRenderingEvent; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "footerRendering", optionValue: FooterRenderingEvent): void; + + /** + * Event fired after the footer has been rendered. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "footerRendered"): FooterRenderedEvent; + + /** + * Event fired after the footer has been rendered. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "footerRendered", optionValue: FooterRenderedEvent): void; + + /** + * Event fired after every TH in the grid header has been rendered. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "headerCellRendered"): HeaderCellRenderedEvent; + + /** + * Event fired after every TH in the grid header has been rendered. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "headerCellRendered", optionValue: HeaderCellRenderedEvent): void; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rowsRendering"): RowsRenderingEvent; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rowsRendering", optionValue: RowsRenderingEvent): void; + + /** + * Event fired after data rows are rendered. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rowsRendered"): RowsRenderedEvent; + + /** + * Event fired after data rows are rendered. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "rowsRendered", optionValue: RowsRenderedEvent): void; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "schemaGenerated"): SchemaGeneratedEvent; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "schemaGenerated", optionValue: SchemaGeneratedEvent): void; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "columnsCollectionModified"): ColumnsCollectionModifiedEvent; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "columnsCollectionModified", optionValue: ColumnsCollectionModifiedEvent): void; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "requestError"): RequestErrorEvent; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + * + * @optionValue Define event handler function. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "requestError", optionValue: RequestErrorEvent): void; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "created"): CreatedEvent; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "created", optionValue: CreatedEvent): void; + + /** + * Fired when the grid is destroyed + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "destroyed"): DestroyedEvent; + + /** + * Fired when the grid is destroyed + * + * @optionValue New value to be set. + */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "destroyed", optionValue: DestroyedEvent): void; igHierarchicalGrid(options: IgHierarchicalGrid): JQuery; igHierarchicalGrid(optionLiteral: 'option', optionName: string): any; igHierarchicalGrid(optionLiteral: 'option', options: IgHierarchicalGrid): JQuery; @@ -42721,20 +50561,6 @@ interface GroupCollapsingEvent { } interface GroupCollapsingEventUIParam { - /** - * Used to get the reference to the GridMultiColumnHeaders widget. - */ - owner?: any; - - /** - * Used to get the column object for the current group that is collapsing. - */ - column?: any; - - /** - * Used to get a reference to the jQuery object for the column being collapsing (th). - */ - element?: any; } interface GroupCollapsedEvent { @@ -42742,20 +50568,6 @@ interface GroupCollapsedEvent { } interface GroupCollapsedEventUIParam { - /** - * Used to get the reference to the GridMultiColumnHeaders widget. - */ - owner?: any; - - /** - * Used to get the column object for the current group that is collapsed. - */ - column?: any; - - /** - * Used to get a reference to the jQuery object for the column being collapsed (th). - */ - element?: any; } interface GroupExpandingEvent { @@ -42763,20 +50575,6 @@ interface GroupExpandingEvent { } interface GroupExpandingEventUIParam { - /** - * Used to get the reference to the GridMultiColumnHeaders widget. - */ - owner?: any; - - /** - * Used to get the column object for the current group that is expanding. - */ - column?: any; - - /** - * Used to get a reference to the jQuery object for the column being expanded (th). - */ - element?: any; } interface GroupExpandedEvent { @@ -42784,23 +50582,10 @@ interface GroupExpandedEvent { } interface GroupExpandedEventUIParam { - /** - * Used to get the reference to the GridMultiColumnHeaders widget. - */ - owner?: any; - - /** - * Used to get the column object for the current group that is expanded. - */ - column?: any; - - /** - * Used to get a reference to the jQuery object for the column being expanded (th). - */ - element?: any; } interface IgGridMultiColumnHeaders { + /** * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. */ @@ -42808,41 +50593,21 @@ interface IgGridMultiColumnHeaders { /** * Event fired before a group collapsing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsing. - * Use ui.element to get a reference to the jQuery object for the column being collapsing (th). */ groupCollapsing?: GroupCollapsingEvent; /** * Event fired after the group collapsing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsed. - * Use ui.element to get a reference to the jQuery object for the column being collapsed (th). */ groupCollapsed?: GroupCollapsedEvent; /** * Event fired before a group expanding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanding. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ groupExpanding?: GroupExpandingEvent; /** * Event fired after the group expanding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanded. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ groupExpanded?: GroupExpandedEvent; @@ -42852,6 +50617,7 @@ interface IgGridMultiColumnHeaders { [optionName: string]: any; } interface IgGridMultiColumnHeadersMethods { + /** * Expands a collapsed group. If the group is expanded, the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. @@ -42914,21 +50680,11 @@ interface JQuery { /** * Event fired before a group collapsing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsing. - * Use ui.element to get a reference to the jQuery object for the column being collapsing (th). */ igGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupCollapsing"): GroupCollapsingEvent; /** * Event fired before a group collapsing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsing. - * Use ui.element to get a reference to the jQuery object for the column being collapsing (th). * * @optionValue Define event handler function. */ @@ -42936,21 +50692,11 @@ interface JQuery { /** * Event fired after the group collapsing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsed. - * Use ui.element to get a reference to the jQuery object for the column being collapsed (th). */ igGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupCollapsed"): GroupCollapsedEvent; /** * Event fired after the group collapsing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsed. - * Use ui.element to get a reference to the jQuery object for the column being collapsed (th). * * @optionValue Define event handler function. */ @@ -42958,21 +50704,11 @@ interface JQuery { /** * Event fired before a group expanding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanding. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ igGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupExpanding"): GroupExpandingEvent; /** * Event fired before a group expanding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanding. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). * * @optionValue Define event handler function. */ @@ -42980,21 +50716,11 @@ interface JQuery { /** * Event fired after the group expanding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanded. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ igGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupExpanded"): GroupExpandedEvent; /** * Event fired after the group expanding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanded. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). * * @optionValue Define event handler function. */ @@ -43010,20 +50736,6 @@ interface PageIndexChangingEvent { } interface PageIndexChangingEventUIParam { - /** - * Used to get reference to GridPaging. - */ - owner?: any; - - /** - * Used to get current page index. - */ - currentPageIndex?: any; - - /** - * Used to get new page index. - */ - newPageIndex?: any; } interface PageIndexChangedEvent { @@ -43031,15 +50743,6 @@ interface PageIndexChangedEvent { } interface PageIndexChangedEventUIParam { - /** - * Used to get reference to GridPaging. - */ - owner?: any; - - /** - * Used to get current page index. - */ - pageIndex?: any; } interface PageSizeChangingEvent { @@ -43047,15 +50750,6 @@ interface PageSizeChangingEvent { } interface PageSizeChangingEventUIParam { - /** - * Used to get reference to GridPaging. - */ - owner?: any; - - /** - * Used to get current page size. - */ - currentPageSize?: any; /** * Used to get new page size. @@ -43068,15 +50762,6 @@ interface PageSizeChangedEvent { } interface PageSizeChangedEventUIParam { - /** - * Used to get reference to GridPaging. - */ - owner?: any; - - /** - * Used to get current page size. - */ - pageSize?: any; } interface PagerRenderingEvent { @@ -43084,15 +50769,6 @@ interface PagerRenderingEvent { } interface PagerRenderingEventUIParam { - /** - * Used to get reference to GridPaging. - */ - owner?: any; - - /** - * Used to get reference to grid's data source. - */ - dataSource?: any; } interface PagerRenderedEvent { @@ -43100,18 +50776,10 @@ interface PagerRenderedEvent { } interface PagerRenderedEventUIParam { - /** - * Used to get reference to GridPaging. - */ - owner?: any; - - /** - * Used to get reference to grid's data source. - */ - dataSource?: any; } interface IgGridPaging { + /** * Number of records loaded and displayed per page. * @@ -43333,59 +51001,34 @@ interface IgGridPaging { /** * Event fired before the page index is changed. * Return false in order to cancel page index changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageIndex to get current page index. - * Use ui.newPageIndex to get new page index. */ pageIndexChanging?: PageIndexChangingEvent; /** * Event fired after the page index is changed , but before grid data rebinds - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageIndex to get current page index. */ pageIndexChanged?: PageIndexChangedEvent; /** * Event fired when the page size is about to be changed from the page size dropdown. * Return false in order to cancel page size changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageSize to get current page size. * Use ui.newPageSize to get new page size. */ pageSizeChanging?: PageSizeChangingEvent; /** * Event fired after the page size is changed from the page size dropdown. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageSize to get current page size. */ pageSizeChanged?: PageSizeChangedEvent; /** * Event fired before the pager footer is rendered (the whole area below the grid records). - * Return false in order to cancel pager footer rendering. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. + * Event fired after the page size is changed from the page size dropdown. */ pagerRendering?: PagerRenderingEvent; /** * Event fired after the pager footer is rendered - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. */ pagerRendered?: PagerRenderedEvent; @@ -43395,6 +51038,7 @@ interface IgGridPaging { [optionName: string]: any; } interface IgGridPagingMethods { + /** * Gets/Sets the current page index, delegates data binding and paging to [$.ig.DataSource](ig.datasource). * @@ -43916,22 +51560,12 @@ interface JQuery { /** * Event fired before the page index is changed. * Return false in order to cancel page index changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageIndex to get current page index. - * Use ui.newPageIndex to get new page index. */ igGridPaging(optionLiteral: 'option', optionName: "pageIndexChanging"): PageIndexChangingEvent; /** * Event fired before the page index is changed. * Return false in order to cancel page index changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageIndex to get current page index. - * Use ui.newPageIndex to get new page index. * * @optionValue Define event handler function. */ @@ -43939,19 +51573,11 @@ interface JQuery { /** * Event fired after the page index is changed , but before grid data rebinds - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageIndex to get current page index. */ igGridPaging(optionLiteral: 'option', optionName: "pageIndexChanged"): PageIndexChangedEvent; /** * Event fired after the page index is changed , but before grid data rebinds - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageIndex to get current page index. * * @optionValue Define event handler function. */ @@ -43960,10 +51586,6 @@ interface JQuery { /** * Event fired when the page size is about to be changed from the page size dropdown. * Return false in order to cancel page size changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageSize to get current page size. * Use ui.newPageSize to get new page size. */ igGridPaging(optionLiteral: 'option', optionName: "pageSizeChanging"): PageSizeChangingEvent; @@ -43971,10 +51593,6 @@ interface JQuery { /** * Event fired when the page size is about to be changed from the page size dropdown. * Return false in order to cancel page size changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageSize to get current page size. * Use ui.newPageSize to get new page size. * * @optionValue Define event handler function. @@ -43983,19 +51601,11 @@ interface JQuery { /** * Event fired after the page size is changed from the page size dropdown. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageSize to get current page size. */ igGridPaging(optionLiteral: 'option', optionName: "pageSizeChanged"): PageSizeChangedEvent; /** * Event fired after the page size is changed from the page size dropdown. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageSize to get current page size. * * @optionValue Define event handler function. */ @@ -44003,21 +51613,13 @@ interface JQuery { /** * Event fired before the pager footer is rendered (the whole area below the grid records). - * Return false in order to cancel pager footer rendering. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. + * Event fired after the page size is changed from the page size dropdown. */ igGridPaging(optionLiteral: 'option', optionName: "pagerRendering"): PagerRenderingEvent; /** * Event fired before the pager footer is rendered (the whole area below the grid records). - * Return false in order to cancel pager footer rendering. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. + * Event fired after the page size is changed from the page size dropdown. * * @optionValue Define event handler function. */ @@ -44025,19 +51627,11 @@ interface JQuery { /** * Event fired after the pager footer is rendered - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. */ igGridPaging(optionLiteral: 'option', optionName: "pagerRendered"): PagerRenderedEvent; /** * Event fired after the pager footer is rendered - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. * * @optionValue Define event handler function. */ @@ -44049,6 +51643,7 @@ interface JQuery { igGridPaging(methodName: string, ...methodParams: any[]): any; } interface IgGridResizingColumnSetting { + /** * Column key. this is a required property in every column setting if columnIndex is not set. * @@ -44090,25 +51685,6 @@ interface ColumnResizingEvent { } interface ColumnResizingEventUIParam { - /** - * Used to get the reference to the GridResizing widget. - */ - owner?: any; - - /** - * Used to get the resized column index. - */ - columnIndex?: any; - - /** - * Used to get the resized column key. - */ - columnKey?: any; - - /** - * Used to get the desired width(before min/max coercion) for the resized column. - */ - desiredWidth?: any; } interface ColumnResizingRefusedEvent { @@ -44116,25 +51692,6 @@ interface ColumnResizingRefusedEvent { } interface ColumnResizingRefusedEventUIParam { - /** - * Used to get the reference to the GridResizing widget. - */ - owner?: any; - - /** - * Used to get the resized column index. - */ - columnIndex?: any; - - /** - * Used to get the resized column key. - */ - columnKey?: any; - - /** - * Used to get the desired width(before min/max coercion) for the resized column. - */ - desiredWidth?: any; } interface ColumnResizedEvent { @@ -44142,33 +51699,10 @@ interface ColumnResizedEvent { } interface ColumnResizedEventUIParam { - /** - * Used to get the reference to the GridResizing widget. - */ - owner?: any; - - /** - * Used to get the resized column index. - */ - columnIndex?: any; - - /** - * Used to get the resized column key. - */ - columnKey?: any; - - /** - * Used to get the original column width. - */ - originalWidth?: any; - - /** - * Used to get the final column width after resizing. - */ - newWidth?: any; } interface IgGridResizing { + /** * Resize the column to the size of the longest currently visible cell value. * @@ -44200,35 +51734,16 @@ interface IgGridResizing { /** * Event fired before a resizing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ columnResizing?: ColumnResizingEvent; /** * Event fired(only when columnFixing is enabled) when trying to resize column in fixed area so total width of unfixed area to be less than minimalVisibleAreaWidth(option defined in columnFixing) - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ columnResizingRefused?: ColumnResizingRefusedEvent; /** * Event fired after the resizing has been executed and results are rendered - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.originalWidth to get the original column width. - * Use ui.newWidth to get the final column width after resizing. */ columnResized?: ColumnResizedEvent; @@ -44238,6 +51753,7 @@ interface IgGridResizing { [optionName: string]: any; } interface IgGridResizingMethods { + /** * Destroys the resizing widget */ @@ -44329,23 +51845,11 @@ interface JQuery { /** * Event fired before a resizing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ igGridResizing(optionLiteral: 'option', optionName: "columnResizing"): ColumnResizingEvent; /** * Event fired before a resizing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. * * @optionValue Define event handler function. */ @@ -44353,23 +51857,11 @@ interface JQuery { /** * Event fired(only when columnFixing is enabled) when trying to resize column in fixed area so total width of unfixed area to be less than minimalVisibleAreaWidth(option defined in columnFixing) - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ igGridResizing(optionLiteral: 'option', optionName: "columnResizingRefused"): ColumnResizingRefusedEvent; /** * Event fired(only when columnFixing is enabled) when trying to resize column in fixed area so total width of unfixed area to be less than minimalVisibleAreaWidth(option defined in columnFixing) - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. * * @optionValue Define event handler function. */ @@ -44377,25 +51869,11 @@ interface JQuery { /** * Event fired after the resizing has been executed and results are rendered - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.originalWidth to get the original column width. - * Use ui.newWidth to get the final column width after resizing. */ igGridResizing(optionLiteral: 'option', optionName: "columnResized"): ColumnResizedEvent; /** * Event fired after the resizing has been executed and results are rendered - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.originalWidth to get the original column width. - * Use ui.newWidth to get the final column width after resizing. * * @optionValue Define event handler function. */ @@ -44407,6 +51885,7 @@ interface JQuery { igGridResizing(methodName: string, ...methodParams: any[]): any; } interface IgGridResponsiveColumnSetting { + /** * Column key. This is a required property in every column setting if columnIndex is not set. * @@ -44438,6 +51917,7 @@ interface IgGridResponsiveColumnSetting { } interface IgGridResponsiveAllowedColumnWidthPerType { + /** * Minimal width in pixels string columns can take before forcing vertical rendering * @@ -44479,20 +51959,6 @@ interface ResponsiveColumnHidingEvent { } interface ResponsiveColumnHidingEventUIParam { - /** - * Used to get the reference to the igGridResponsive widget. - */ - owner?: any; - - /** - * Used to get the hidden column index. Has a value only if the column's key is a number. - */ - columnIndex?: any; - - /** - * Used to get the hidden column key. Has a value only if the column's key is a string. - */ - columnKey?: any; } interface ResponsiveColumnHiddenEvent { @@ -44500,20 +51966,6 @@ interface ResponsiveColumnHiddenEvent { } interface ResponsiveColumnHiddenEventUIParam { - /** - * Used to get the reference to the igGridResponsive widget. - */ - owner?: any; - - /** - * Used to get the hidden column index. Has a value only if the column's key is a number. - */ - columnIndex?: any; - - /** - * Used to get the hidden column key. Has a value only if the column's key is a string. - */ - columnKey?: any; } interface ResponsiveColumnShowingEvent { @@ -44521,20 +51973,6 @@ interface ResponsiveColumnShowingEvent { } interface ResponsiveColumnShowingEventUIParam { - /** - * Used to get the reference to the igGridResponsive widget. - */ - owner?: any; - - /** - * Used to get the shown column index. Has a value only if the column's key is a number. - */ - columnIndex?: any; - - /** - * Used to get the shown column key. Has a value only if the column's key is a string. - */ - columnKey?: any; } interface ResponsiveColumnShownEvent { @@ -44542,20 +51980,6 @@ interface ResponsiveColumnShownEvent { } interface ResponsiveColumnShownEventUIParam { - /** - * Used to get the reference to the igGridResponsive widget. - */ - owner?: any; - - /** - * Used to get the shown column index. Has a value only if the column's key is a number. - */ - columnIndex?: any; - - /** - * Used to get the shown column key. Has a value only if the column's key is a string. - */ - columnKey?: any; } interface ResponsiveModeChangedEvent { @@ -44563,23 +51987,10 @@ interface ResponsiveModeChangedEvent { } interface ResponsiveModeChangedEventUIParam { - /** - * Used to get the reference to the igGridResponsive widget. - */ - owner?: any; - - /** - * Used to get the previously assumed mode. - */ - previousMode?: any; - - /** - * Used to get the newly assumed mode. - */ - mode?: any; } interface IgGridResponsive { + /** * A list of column settings that specifies how columns will react based on the environment the grid is run on. * @@ -44667,51 +52078,26 @@ interface IgGridResponsive { /** * Event fired before a hiding operation is executed on a collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ responsiveColumnHiding?: ResponsiveColumnHidingEvent; /** * Event fired after a hiding operation is executed on the collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ responsiveColumnHidden?: ResponsiveColumnHiddenEvent; /** * Event fired before a showing operation is executed on a collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the shown column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the shown column key. Has a value only if the column's key is a string. */ responsiveColumnShowing?: ResponsiveColumnShowingEvent; /** * Event fired after a showing operation is executed on the collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the shown column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the shown column key. Has a value only if the column's key is a string. */ responsiveColumnShown?: ResponsiveColumnShownEvent; /** * Event which is fired when the widget detects an environment change. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.previousMode to get the previously assumed mode. - * Use ui.mode to get the newly assumed mode. */ responsiveModeChanged?: ResponsiveModeChangedEvent; @@ -44721,6 +52107,7 @@ interface IgGridResponsive { [optionName: string]: any; } interface IgGridResponsiveMethods { + /** * Destroys the responsive widget. */ @@ -44748,10 +52135,10 @@ interface ResponsiveModeSettings { } declare namespace Infragistics { - class ResponsiveMode { - constructor(settings: ResponsiveModeSettings); - isActive(): void; - } +export class ResponsiveMode { + constructor(settings: ResponsiveModeSettings); + isActive(): void; +} } interface IgniteUIStatic { ResponsiveMode: typeof Infragistics.ResponsiveMode; @@ -44768,10 +52155,10 @@ interface InfragisticsModeSettings { } declare namespace Infragistics { - class InfragisticsMode { - constructor(settings: InfragisticsModeSettings); - isActive(): void; - } +export class InfragisticsMode { + constructor(settings: InfragisticsModeSettings); + isActive(): void; +} } interface IgniteUIStatic { InfragisticsMode: typeof Infragistics.InfragisticsMode; @@ -44788,10 +52175,10 @@ interface BootstrapModeSettings { } declare namespace Infragistics { - class BootstrapMode { - constructor(settings: BootstrapModeSettings); - isActive(): void; - } +export class BootstrapMode { + constructor(settings: BootstrapModeSettings); + isActive(): void; +} } interface IgniteUIStatic { BootstrapMode: typeof Infragistics.BootstrapMode; @@ -44971,21 +52358,11 @@ interface JQuery { /** * Event fired before a hiding operation is executed on a collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ igGridResponsive(optionLiteral: 'option', optionName: "responsiveColumnHiding"): ResponsiveColumnHidingEvent; /** * Event fired before a hiding operation is executed on a collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -44993,21 +52370,11 @@ interface JQuery { /** * Event fired after a hiding operation is executed on the collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ igGridResponsive(optionLiteral: 'option', optionName: "responsiveColumnHidden"): ResponsiveColumnHiddenEvent; /** * Event fired after a hiding operation is executed on the collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -45015,21 +52382,11 @@ interface JQuery { /** * Event fired before a showing operation is executed on a collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the shown column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the shown column key. Has a value only if the column's key is a string. */ igGridResponsive(optionLiteral: 'option', optionName: "responsiveColumnShowing"): ResponsiveColumnShowingEvent; /** * Event fired before a showing operation is executed on a collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the shown column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the shown column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -45037,21 +52394,11 @@ interface JQuery { /** * Event fired after a showing operation is executed on the collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the shown column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the shown column key. Has a value only if the column's key is a string. */ igGridResponsive(optionLiteral: 'option', optionName: "responsiveColumnShown"): ResponsiveColumnShownEvent; /** * Event fired after a showing operation is executed on the collection of columns. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.columnIndex to get the shown column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the shown column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -45059,21 +52406,11 @@ interface JQuery { /** * Event which is fired when the widget detects an environment change. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.previousMode to get the previously assumed mode. - * Use ui.mode to get the newly assumed mode. */ igGridResponsive(optionLiteral: 'option', optionName: "responsiveModeChanged"): ResponsiveModeChangedEvent; /** * Event which is fired when the widget detects an environment change. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridResponsive widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * Use ui.previousMode to get the previously assumed mode. - * Use ui.mode to get the newly assumed mode. * * @optionValue Define event handler function. */ @@ -45089,40 +52426,6 @@ interface RowSelectorClickedEvent { } interface RowSelectorClickedEventUIParam { - /** - * Used to get reference to the row the clicked row selector resides in. - */ - row?: any; - - /** - * Used to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - */ - fixedRow?: any; - - /** - * Used to get the index of the row the clicked row selector resides in. - */ - rowIndex?: any; - - /** - * Used to get the key of the row the clicked row selector resides in. - */ - rowKey?: any; - - /** - * Used tor to get reference to the row selector cell. - */ - rowSelector?: any; - - /** - * Used to get reference to RowSelectors. - */ - owner?: any; - - /** - * Used to get reference to the grid the RowSelectors are initialized for. - */ - grid?: any; } interface CheckBoxStateChangingEvent { @@ -45130,50 +52433,6 @@ interface CheckBoxStateChangingEvent { } interface CheckBoxStateChangingEventUIParam { - /** - * Used to get reference to the row the clicked row selector resides in. - */ - row?: any; - - /** - * Used to get the index of the row the clicked row selector resides in. - */ - rowIndex?: any; - - /** - * Used to get the key of the row the clicked row selector resides in. - */ - rowKey?: any; - - /** - * Used tor to get reference to the row selector cell. - */ - rowSelector?: any; - - /** - * Used to get reference to igRowSelectors. - */ - owner?: any; - - /** - * Used to get reference to the grid the RowSelectors are initialized for. - */ - grid?: any; - - /** - * Used to get the current state of the checkbox ("on","off"). - */ - currentState?: any; - - /** - * Used to get the new state of the checkbox ("on","off"). - */ - newState?: any; - - /** - * Used to check if the header check box is the one being clicked. In this case no row related args are passed. - */ - isHeader?: any; } interface CheckBoxStateChangedEvent { @@ -45181,48 +52440,10 @@ interface CheckBoxStateChangedEvent { } interface CheckBoxStateChangedEventUIParam { - /** - * Used to get reference to the row the clicked row selector resides in. - */ - row?: any; - - /** - * Used to get the index of the row the clicked row selector resides in. - */ - rowIndex?: any; - - /** - * Used to get the key of the row the clicked row selector resides in. - */ - rowKey?: any; - - /** - * Used tor to get reference to the row selector cell. - */ - rowSelector?: any; - - /** - * Used to get reference to igRowSelectors. - */ - owner?: any; - - /** - * Used to get reference to the grid the RowSelectors are initialized for. - */ - grid?: any; - - /** - * Used to get the state of the checkbox ("on","off"). - */ - state?: any; - - /** - * Used to check if the header check box is the one being clicked. In this case no row related args are passed. - */ - isHeader?: any; } interface IgGridRowSelectors { + /** * Determines whether the row selectors column should contain row numbering * @@ -45242,6 +52463,7 @@ interface IgGridRowSelectors { rowNumberingSeed?: number; /** + * defines width of the row selector`s column in pixels or percentage. * * * Valid values: @@ -45298,43 +52520,16 @@ interface IgGridRowSelectors { /** * Event fired after a row selector is clicked. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.fixedRow to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to RowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. */ rowSelectorClicked?: RowSelectorClickedEvent; /** * Event fired when a row selector checkbox is changing. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.currentState to get the current state of the checkbox ("on","off"). - * Use ui.newState to get the new state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ checkBoxStateChanging?: CheckBoxStateChangingEvent; /** * Event fired after a row selector checkbox had changed state. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.state to get the state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ checkBoxStateChanged?: CheckBoxStateChangedEvent; @@ -45396,12 +52591,14 @@ interface JQuery { igGridRowSelectors(optionLiteral: 'option', optionName: "rowNumberingSeed", optionValue: number): void; /** - * * + * Defines width of the row selector`s column in pixels or percentage. + * */ igGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorColumnWidth"): string|number; /** - * * + * Defines width of the row selector`s column in pixels or percentage. + * * * @optionValue New value to be set. */ @@ -45511,27 +52708,11 @@ interface JQuery { /** * Event fired after a row selector is clicked. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.fixedRow to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to RowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. */ igGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorClicked"): RowSelectorClickedEvent; /** * Event fired after a row selector is clicked. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.fixedRow to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to RowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. * * @optionValue Define event handler function. */ @@ -45539,31 +52720,11 @@ interface JQuery { /** * Event fired when a row selector checkbox is changing. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.currentState to get the current state of the checkbox ("on","off"). - * Use ui.newState to get the new state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ igGridRowSelectors(optionLiteral: 'option', optionName: "checkBoxStateChanging"): CheckBoxStateChangingEvent; /** * Event fired when a row selector checkbox is changing. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.currentState to get the current state of the checkbox ("on","off"). - * Use ui.newState to get the new state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. * * @optionValue Define event handler function. */ @@ -45571,29 +52732,11 @@ interface JQuery { /** * Event fired after a row selector checkbox had changed state. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.state to get the state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ igGridRowSelectors(optionLiteral: 'option', optionName: "checkBoxStateChanged"): CheckBoxStateChangedEvent; /** * Event fired after a row selector checkbox had changed state. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.state to get the state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. * * @optionValue Define event handler function. */ @@ -45609,30 +52752,6 @@ interface RowSelectionChangingEvent { } interface RowSelectionChangingEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to row object. - */ - row?: any; - - /** - * Used to get reference to rows object array. - */ - selectedRows?: any; - - /** - * Used to get the start index for a range row selection. - */ - startIndex?: any; - - /** - * Used to get the end index for a range row selection. - */ - endIndex?: any; } interface RowSelectionChangedEvent { @@ -45640,20 +52759,6 @@ interface RowSelectionChangedEvent { } interface RowSelectionChangedEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to row object. - */ - row?: any; - - /** - * Used to get reference to rows object array. - */ - selectedRows?: any; } interface CellSelectionChangingEvent { @@ -45661,40 +52766,6 @@ interface CellSelectionChangingEvent { } interface CellSelectionChangingEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to cell object. - */ - cell?: any; - - /** - * Used to get reference to selected cells object array. - */ - selectedCells?: any; - - /** - * Used to get the column index for the first cell in a range selection. - */ - firstColumnIndex?: any; - - /** - * Used to get the row index for the first cell in a range selection. - */ - firstRowIndex?: any; - - /** - * Used to get the column index for the last cell in a range selection. - */ - lastColumnIndex?: any; - - /** - * Used to get the row index for the last cell in a range selection. - */ - lastRowIndex?: any; } interface CellSelectionChangedEvent { @@ -45702,20 +52773,6 @@ interface CellSelectionChangedEvent { } interface CellSelectionChangedEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to cell object. - */ - cell?: any; - - /** - * Used to get reference to selected cells object array. - */ - selectedCells?: any; } interface ActiveCellChangingEvent { @@ -45723,15 +52780,6 @@ interface ActiveCellChangingEvent { } interface ActiveCellChangingEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to cell object. - */ - cell?: any; } interface ActiveCellChangedEvent { @@ -45739,15 +52787,6 @@ interface ActiveCellChangedEvent { } interface ActiveCellChangedEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to cell object. - */ - cell?: any; } interface ActiveRowChangingEvent { @@ -45755,15 +52794,6 @@ interface ActiveRowChangingEvent { } interface ActiveRowChangingEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to row object. - */ - row?: any; } interface ActiveRowChangedEvent { @@ -45771,18 +52801,10 @@ interface ActiveRowChangedEvent { } interface ActiveRowChangedEventUIParam { - /** - * Used to get reference to GridSelection. - */ - owner?: any; - - /** - * Used to get reference to row object. - */ - row?: any; } interface IgGridSelection { + /** * Enables / Disables multiple selection of cells and rows - depending on the mode * @@ -45850,122 +52872,44 @@ interface IgGridSelection { /** * Event fired before row(s) are about to be selected (cancellable). * Return false in order to cancel selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. - * Use ui.startIndex to get the start index for a range row selection. - * Use ui.endIndex to get the end index for a range row selection. */ rowSelectionChanging?: RowSelectionChangingEvent; /** * Event fired after row(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. */ rowSelectionChanged?: RowSelectionChangedEvent; /** * Event fired before cell(s) are about to be selected (cancellable). * Return false in order to cancel cell selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. - * Use ui.firstColumnIndex to get the column index for the first cell in a range selection. - * Use ui.firstRowIndex to get the row index for the first cell in a range selection. - * Use ui.lastColumnIndex to get the column index for the last cell in a range selection. - * Use ui.lastRowIndex to get the row index for the last cell in a range selection. */ cellSelectionChanging?: CellSelectionChangingEvent; /** * Event fired after cell(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. */ cellSelectionChanged?: CellSelectionChangedEvent; /** * Event fired before a cell becomes active (focus style applied) (cancellable). * Return false in order to cancel active cell changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ activeCellChanging?: ActiveCellChangingEvent; /** * Event fired after a cell becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ activeCellChanged?: ActiveCellChangedEvent; /** * Event fired before a row becomes active (focus style applied) (cancellable). * Return false in order to cancel active row changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ activeRowChanging?: ActiveRowChangingEvent; /** * Event fired after a row becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ activeRowChanged?: ActiveRowChangedEvent; @@ -45975,6 +52919,7 @@ interface IgGridSelection { [optionName: string]: any; } interface IgGridSelectionMethods { + /** * Destroys the selection widget. */ @@ -46050,28 +52995,28 @@ interface IgGridSelectionMethods { /** * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedCells(): any[]; /** * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedRows(): any[]; /** * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedCell(): Object; /** * Returns the currently selected row that has the format { element: , index: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedRow(): Object; @@ -46090,6 +53035,7 @@ interface JQuery { } interface SelectionCollectionSettingsSubscribers { + /** * Option for SelectionCollectionSettingsSubscribers */ @@ -46108,93 +53054,93 @@ interface SelectionCollectionSettings { } declare namespace Infragistics { - class SelectionCollection { - constructor(settings: SelectionCollectionSettings); - addSubscriber(subscriber: Object, owner: Object): void; - removeSubscriber(subscriberId: Object, owner: Object): void; - changeOwner(newOwner: Object): void; - isSelected(identifier: Object, forOwner: Object): void; - isActive(identifier: Object, forOwner: Object): void; - elementFromIdentifier(identifier: Object): void; - toggle(element: Object): void; - activate(identifier: Object, element: Object, suppress: Object): void; - deactivate(suppress: Object): void; - select(identifier: Object, add: Object, info: Object, suppress: Object): void; - rangeSelect(range: Object, add: Object, prevRange: Object, info: Object, suppress: Object): void; - rangeDeselect(range: Object, info: Object, suppress: Object): void; - deselect(identifier: Object, info: Object, suppress: Object): void; - deselectAll(suppress: Object): void; - clearSelection(forOwner: Object): void; - cleanAll(forOwner: Object): void; - onlyOneSelected(): void; - selectedCells(): void; - selectedRows(): void; - selectionLength(): void; - } +export class SelectionCollection { + constructor(settings: SelectionCollectionSettings); + addSubscriber(subscriber: Object, owner: Object): void; + removeSubscriber(subscriberId: Object, owner: Object): void; + changeOwner(newOwner: Object): void; + isSelected(identifier: Object, forOwner: Object): void; + isActive(identifier: Object, forOwner: Object): void; + elementFromIdentifier(identifier: Object): void; + toggle(element: Object): void; + activate(identifier: Object, element: Object, suppress: Object): void; + deactivate(suppress: Object): void; + select(identifier: Object, add: Object, info: Object, suppress: Object): void; + rangeSelect(range: Object, add: Object, prevRange: Object, info: Object, suppress: Object): void; + rangeDeselect(range: Object, info: Object, suppress: Object): void; + deselect(identifier: Object, info: Object, suppress: Object): void; + deselectAll(suppress: Object): void; + clearSelection(forOwner: Object): void; + cleanAll(forOwner: Object): void; + onlyOneSelected(): void; + selectedCells(): void; + selectedRows(): void; + selectionLength(): void; +} } interface IgniteUIStatic { SelectionCollection: typeof Infragistics.SelectionCollection; } declare namespace Infragistics { - class SelectedRowsCollection { - constructor(settings: SelectionCollectionSettings); - isSelected(identifier: Object, forOwner: Object): void; - isActive(identifier: Object, forOwner: Object): void; - selectedDataRows(): void; - selectedRows(): void; - activeRow(): void; - elementFromIdentifier(identifier: Object): void; - elementPosition(identifier: Object, element: Object): void; - onlyOneSelected(): void; - addSubscriber(subscriber: Object, owner: Object): void; - removeSubscriber(subscriberId: Object, owner: Object): void; - changeOwner(newOwner: Object): void; - toggle(element: Object): void; - activate(identifier: Object, element: Object, suppress: Object): void; - deactivate(suppress: Object): void; - select(identifier: Object, add: Object, info: Object, suppress: Object): void; - rangeSelect(range: Object, add: Object, prevRange: Object, info: Object, suppress: Object): void; - rangeDeselect(range: Object, info: Object, suppress: Object): void; - deselect(identifier: Object, info: Object, suppress: Object): void; - deselectAll(suppress: Object): void; - clearSelection(forOwner: Object): void; - cleanAll(forOwner: Object): void; - selectedCells(): void; - selectionLength(): void; - } +export class SelectedRowsCollection { + constructor(settings: SelectionCollectionSettings); + isSelected(identifier: Object, forOwner: Object): void; + isActive(identifier: Object, forOwner: Object): void; + selectedDataRows(): void; + selectedRows(): void; + activeRow(): void; + elementFromIdentifier(identifier: Object): void; + elementPosition(identifier: Object, element: Object): void; + onlyOneSelected(): void; + addSubscriber(subscriber: Object, owner: Object): void; + removeSubscriber(subscriberId: Object, owner: Object): void; + changeOwner(newOwner: Object): void; + toggle(element: Object): void; + activate(identifier: Object, element: Object, suppress: Object): void; + deactivate(suppress: Object): void; + select(identifier: Object, add: Object, info: Object, suppress: Object): void; + rangeSelect(range: Object, add: Object, prevRange: Object, info: Object, suppress: Object): void; + rangeDeselect(range: Object, info: Object, suppress: Object): void; + deselect(identifier: Object, info: Object, suppress: Object): void; + deselectAll(suppress: Object): void; + clearSelection(forOwner: Object): void; + cleanAll(forOwner: Object): void; + selectedCells(): void; + selectionLength(): void; +} } interface IgniteUIStatic { SelectedRowsCollection: typeof Infragistics.SelectedRowsCollection; } declare namespace Infragistics { - class SelectedCellsCollection { - constructor(settings: SelectionCollectionSettings); - isSelected(identifier: Object, forOwner: Object): void; - atLeastOneSelected(rowId: Object, forOwner: Object): void; - isActive(identifier: Object, forOwner: Object): void; - selectedCells(): void; - activeCell(): void; - elementFromIdentifier(identifier: Object): void; - elementPosition(identifier: Object, element: Object): void; - onlyOneSelected(): void; - addSubscriber(subscriber: Object, owner: Object): void; - removeSubscriber(subscriberId: Object, owner: Object): void; - changeOwner(newOwner: Object): void; - toggle(element: Object): void; - activate(identifier: Object, element: Object, suppress: Object): void; - deactivate(suppress: Object): void; - select(identifier: Object, add: Object, info: Object, suppress: Object): void; - rangeSelect(range: Object, add: Object, prevRange: Object, info: Object, suppress: Object): void; - rangeDeselect(range: Object, info: Object, suppress: Object): void; - deselect(identifier: Object, info: Object, suppress: Object): void; - deselectAll(suppress: Object): void; - clearSelection(forOwner: Object): void; - cleanAll(forOwner: Object): void; - selectedRows(): void; - selectionLength(): void; - } +export class SelectedCellsCollection { + constructor(settings: SelectionCollectionSettings); + isSelected(identifier: Object, forOwner: Object): void; + atLeastOneSelected(rowId: Object, forOwner: Object): void; + isActive(identifier: Object, forOwner: Object): void; + selectedCells(): void; + activeCell(): void; + elementFromIdentifier(identifier: Object): void; + elementPosition(identifier: Object, element: Object): void; + onlyOneSelected(): void; + addSubscriber(subscriber: Object, owner: Object): void; + removeSubscriber(subscriberId: Object, owner: Object): void; + changeOwner(newOwner: Object): void; + toggle(element: Object): void; + activate(identifier: Object, element: Object, suppress: Object): void; + deactivate(suppress: Object): void; + select(identifier: Object, add: Object, info: Object, suppress: Object): void; + rangeSelect(range: Object, add: Object, prevRange: Object, info: Object, suppress: Object): void; + rangeDeselect(range: Object, info: Object, suppress: Object): void; + deselect(identifier: Object, info: Object, suppress: Object): void; + deselectAll(suppress: Object): void; + clearSelection(forOwner: Object): void; + cleanAll(forOwner: Object): void; + selectedRows(): void; + selectionLength(): void; +} } interface IgniteUIStatic { SelectedCellsCollection: typeof Infragistics.SelectedCellsCollection; @@ -46361,32 +53307,12 @@ interface JQuery { /** * Event fired before row(s) are about to be selected (cancellable). * Return false in order to cancel selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. - * Use ui.startIndex to get the start index for a range row selection. - * Use ui.endIndex to get the end index for a range row selection. */ igGridSelection(optionLiteral: 'option', optionName: "rowSelectionChanging"): RowSelectionChangingEvent; /** * Event fired before row(s) are about to be selected (cancellable). * Return false in order to cancel selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. - * Use ui.startIndex to get the start index for a range row selection. - * Use ui.endIndex to get the end index for a range row selection. * * @optionValue Define event handler function. */ @@ -46394,27 +53320,11 @@ interface JQuery { /** * Event fired after row(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. */ igGridSelection(optionLiteral: 'option', optionName: "rowSelectionChanged"): RowSelectionChangedEvent; /** * Event fired after row(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. * * @optionValue Define event handler function. */ @@ -46423,42 +53333,12 @@ interface JQuery { /** * Event fired before cell(s) are about to be selected (cancellable). * Return false in order to cancel cell selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. - * Use ui.firstColumnIndex to get the column index for the first cell in a range selection. - * Use ui.firstRowIndex to get the row index for the first cell in a range selection. - * Use ui.lastColumnIndex to get the column index for the last cell in a range selection. - * Use ui.lastRowIndex to get the row index for the last cell in a range selection. */ igGridSelection(optionLiteral: 'option', optionName: "cellSelectionChanging"): CellSelectionChangingEvent; /** * Event fired before cell(s) are about to be selected (cancellable). * Return false in order to cancel cell selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. - * Use ui.firstColumnIndex to get the column index for the first cell in a range selection. - * Use ui.firstRowIndex to get the row index for the first cell in a range selection. - * Use ui.lastColumnIndex to get the column index for the last cell in a range selection. - * Use ui.lastRowIndex to get the row index for the last cell in a range selection. * * @optionValue Define event handler function. */ @@ -46466,33 +53346,11 @@ interface JQuery { /** * Event fired after cell(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. */ igGridSelection(optionLiteral: 'option', optionName: "cellSelectionChanged"): CellSelectionChangedEvent; /** * Event fired after cell(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. * * @optionValue Define event handler function. */ @@ -46501,32 +53359,12 @@ interface JQuery { /** * Event fired before a cell becomes active (focus style applied) (cancellable). * Return false in order to cancel active cell changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ igGridSelection(optionLiteral: 'option', optionName: "activeCellChanging"): ActiveCellChangingEvent; /** * Event fired before a cell becomes active (focus style applied) (cancellable). * Return false in order to cancel active cell changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. * * @optionValue Define event handler function. */ @@ -46534,31 +53372,11 @@ interface JQuery { /** * Event fired after a cell becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ igGridSelection(optionLiteral: 'option', optionName: "activeCellChanged"): ActiveCellChangedEvent; /** * Event fired after a cell becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. * * @optionValue Define event handler function. */ @@ -46567,26 +53385,12 @@ interface JQuery { /** * Event fired before a row becomes active (focus style applied) (cancellable). * Return false in order to cancel active row changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ igGridSelection(optionLiteral: 'option', optionName: "activeRowChanging"): ActiveRowChangingEvent; /** * Event fired before a row becomes active (focus style applied) (cancellable). * Return false in order to cancel active row changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. * * @optionValue Define event handler function. */ @@ -46594,25 +53398,11 @@ interface JQuery { /** * Event fired after a row becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ igGridSelection(optionLiteral: 'option', optionName: "activeRowChanged"): ActiveRowChangedEvent; /** * Event fired after a row becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. * * @optionValue Define event handler function. */ @@ -46623,739 +53413,8 @@ interface JQuery { igGridSelection(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igGridSelection(methodName: string, ...methodParams: any[]): any; } -interface ButtonOKClickEvent { - (event: Event, ui: ButtonOKClickEventUIParam): void; -} - -interface ButtonOKClickEventUIParam { - /** - * Used to get the reference to the igGridModalDialog widget. - */ - owner?: any; - - /** - * Used to get the reference to the igGridModalDialog element - */ - modalDialog?: any; -} - -interface ButtonCancelClickEvent { - (event: Event, ui: ButtonCancelClickEventUIParam): void; -} - -interface ButtonCancelClickEventUIParam { - /** - * Used to get the reference to the igGridModalDialog widget. - */ - owner?: any; - - /** - * Used to get the reference to the igGridModalDialog element - */ - modalDialog?: any; -} - -interface IgGridModalDialog { - buttonApplyText?: string; - buttonCancelText?: string; - buttonApplyTitle?: any; - buttonCancelTitle?: any; - modalDialogCaptionText?: string; - - /** - * The default modal dialog width in pixels. - */ - modalDialogWidth?: number; - - /** - * The default modal dialog height in pixels. - */ - modalDialogHeight?: number; - renderFooterButtons?: boolean; - animationDuration?: number; - buttonApplyDisabled?: boolean; - - /** - * If true and Enter is pressed - close modal dialog(NOTE: buttonApplyDisabled should be set to false - otherwise this options is ignored) - */ - closeModalDialogOnEnter?: boolean; - - /** - * Tab index to assign to containers and buttons inside the dialog - */ - tabIndex?: number; - - /** - * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - */ - modalDialogOpening?: ModalDialogOpeningEvent; - - /** - * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - modalDialogOpened?: ModalDialogOpenedEvent; - - /** - * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. - */ - modalDialogMoving?: ModalDialogMovingEvent; - - /** - * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - modalDialogClosing?: ModalDialogClosingEvent; - - /** - * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - modalDialogClosed?: ModalDialogClosedEvent; - - /** - * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - modalDialogContentsRendering?: ModalDialogContentsRenderingEvent; - - /** - * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - modalDialogContentsRendered?: ModalDialogContentsRenderedEvent; - - /** - * Event fired when the button OK/Apply is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - buttonOKClick?: ButtonOKClickEvent; - - /** - * Event fired when the button Cancel is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - buttonCancelClick?: ButtonCancelClickEvent; - - /** - * Option for igGridModalDialog - */ - [optionName: string]: any; -} -interface IgGridModalDialogMethods { - openModalDialog(): void; - closeModalDialog(accepted: Object, fromUI: Object): void; - getCaptionButtonContainer(): void; - getFooter(): void; - getContent(): void; - destroy(): void; -} -interface JQuery { - data(propertyName: "igGridModalDialog"): IgGridModalDialogMethods; -} - -interface IgEditorFilter { - /** - * Option for igEditorFilter - */ - [optionName: string]: any; -} -interface IgEditorFilterMethods { - setFocus(delay: Object, toggle: Object): void; - remove(): void; - exitEditMode(): void; - validator(): void; - hasInvalidMessage(): void; - destroy(): void; -} -interface JQuery { - data(propertyName: "igEditorFilter"): IgEditorFilterMethods; -} - -declare namespace Infragistics { - class EditorProvider { - /** - * Create handlers cache - * - * @param callbacks - * @param key - * @param editorOptions - * @param tabIndex - * @param format - * @param element - */ - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - keyDown(evt: Object, ui: Object): void; - attachErrorEvents(errorShowing: Object, errorShown: Object, errorHidden: Object): void; - getEditor(): void; - refreshValue(): void; - getValue(): void; - setValue(val: Object): void; - setFocus(toggle: Object): void; - setSize(width: Object, height: Object): void; - removeFromParent(): void; - destroy(): void; - validator(): void; - validate(): void; - requestValidate(evt: Object): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderBase { - /** - * Call parent createEditor - * - * @param callbacks - * @param key - * @param editorOptions - * @param tabIndex - * @param format - * @param element - */ - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - keyDown(evt: Object, ui: Object): void; - attachErrorEvents(errorShowing: Object, errorShown: Object, errorHidden: Object): void; - getEditor(): void; - getValue(): void; - setValue(val: Object): void; - validate(): void; - requestValidate(evt: Object): void; - } -} - -declare namespace Infragistics { - class EditorProviderText { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - keyDown(evt: Object, ui: Object): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderNumeric { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - getValue(): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderCurrency { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderPercent { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderMask { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderDate { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderDatePicker { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - removeFromParent(): void; - textChanged(evt: Object, ui: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - destroy(): void; - refreshValue(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderBoolean { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - valueChanged(evt: Object, ui: Object): void; - refreshValue(): void; - getValue(): void; - setValue(val: Object): void; - setSize(width: Object, height: Object): void; - removeFromParent(): void; - destroy(): void; - textChanged(evt: Object, ui: Object): void; - setFocus(): void; - validator(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderCombo { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - keyDown(evt: Object, ui: Object): void; - internalSelectionChanged(evt: Object, ui: Object): void; - selectionChanged(evt: Object, ui: Object): void; - refreshValue(): void; - getValue(): void; - setValue(val: Object, fire: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - validator(): void; - destroy(): void; - isValid(): void; - attachErrorEvents(errorShowing: Object, errorShown: Object, errorHidden: Object): void; - getEditor(): void; - validate(): void; - requestValidate(evt: Object): void; - } -} - -declare namespace Infragistics { - class EditorProviderObjectCombo { - getValue(): void; - setValue(val: Object, fire: Object): void; - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - keyDown(evt: Object, ui: Object): void; - internalSelectionChanged(evt: Object, ui: Object): void; - selectionChanged(evt: Object, ui: Object): void; - refreshValue(): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - removeFromParent(): void; - validator(): void; - destroy(): void; - isValid(): void; - } -} - -declare namespace Infragistics { - class EditorProviderRating { - createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; - internalValueChange(evt: Object, ui: Object): void; - valueChange(evt: Object, ui: Object): void; - setValue(val: Object): void; - setSize(width: Object, height: Object): void; - setFocus(): void; - validator(): void; - destroy(): void; - isValid(): void; - keyDown(evt: Object, ui: Object): void; - attachErrorEvents(errorShowing: Object, errorShown: Object, errorHidden: Object): void; - getEditor(): void; - refreshValue(): void; - getValue(): void; - removeFromParent(): void; - validate(): void; - requestValidate(evt: Object): void; - } -} - -declare namespace Infragistics { - class SortingExpressionsManager { - setGridInstance(grid: Object): void; - - /** - * Insert expr at the first position of the se (sorting expressions) if there are not any other expressions with flag group by - * otherwise if there are such expressions inserts after the last - * - * @param se - * @param expr - * @param feature - */ - addSortingExpression(se: Object, expr: Object, feature: Object): void; - setFormattersForSortingExprs(exprs: Object, grid: Object): void; - } -} - -interface JQuery { - igGridModalDialog(methodName: "openModalDialog"): void; - igGridModalDialog(methodName: "closeModalDialog", accepted: Object, fromUI: Object): void; - igGridModalDialog(methodName: "getCaptionButtonContainer"): void; - igGridModalDialog(methodName: "getFooter"): void; - igGridModalDialog(methodName: "getContent"): void; - igGridModalDialog(methodName: "destroy"): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonApplyText"): string; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonApplyText", optionValue: string): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonCancelText"): string; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonCancelText", optionValue: string): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonApplyTitle"): any; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonApplyTitle", optionValue: any): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonCancelTitle"): any; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonCancelTitle", optionValue: any): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogCaptionText"): string; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogCaptionText", optionValue: string): void; - - /** - * The default modal dialog width in pixels. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogWidth"): number; - - /** - * The default modal dialog width in pixels. - * - * @optionValue New value to be set. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogWidth", optionValue: number): void; - - /** - * The default modal dialog height in pixels. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogHeight"): number; - - /** - * The default modal dialog height in pixels. - * - * @optionValue New value to be set. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogHeight", optionValue: number): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "renderFooterButtons"): boolean; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "renderFooterButtons", optionValue: boolean): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "animationDuration"): number; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "animationDuration", optionValue: number): void; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonApplyDisabled"): boolean; - - /** - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonApplyDisabled", optionValue: boolean): void; - - /** - * If true and Enter is pressed - close modal dialog(NOTE: buttonApplyDisabled should be set to false - otherwise this options is ignored) - */ - igGridModalDialog(optionLiteral: 'option', optionName: "closeModalDialogOnEnter"): boolean; - - /** - * If true and Enter is pressed - close modal dialog(NOTE: buttonApplyDisabled should be set to false - otherwise this options is ignored) - * - * @optionValue New value to be set. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "closeModalDialogOnEnter", optionValue: boolean): void; - - /** - * Tab index to assign to containers and buttons inside the dialog - */ - igGridModalDialog(optionLiteral: 'option', optionName: "tabIndex"): number; - - /** - * Tab index to assign to containers and buttons inside the dialog - * - * @optionValue New value to be set. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "tabIndex", optionValue: number): void; - - /** - * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogOpening"): ModalDialogOpeningEvent; - - /** - * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.owner.grid to get the reference to the igGrid widget. - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogOpening", optionValue: ModalDialogOpeningEvent): void; - - /** - * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogOpened"): ModalDialogOpenedEvent; - - /** - * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogOpened", optionValue: ModalDialogOpenedEvent): void; - - /** - * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogMoving"): ModalDialogMovingEvent; - - /** - * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogMoving", optionValue: ModalDialogMovingEvent): void; - - /** - * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogClosing"): ModalDialogClosingEvent; - - /** - * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogClosing", optionValue: ModalDialogClosingEvent): void; - - /** - * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogClosed"): ModalDialogClosedEvent; - - /** - * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogClosed", optionValue: ModalDialogClosedEvent): void; - - /** - * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogContentsRendering"): ModalDialogContentsRenderingEvent; - - /** - * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogContentsRendering", optionValue: ModalDialogContentsRenderingEvent): void; - - /** - * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogContentsRendered"): ModalDialogContentsRenderedEvent; - - /** - * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "modalDialogContentsRendered", optionValue: ModalDialogContentsRenderedEvent): void; - - /** - * Event fired when the button OK/Apply is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonOKClick"): ButtonOKClickEvent; - - /** - * Event fired when the button OK/Apply is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonOKClick", optionValue: ButtonOKClickEvent): void; - - /** - * Event fired when the button Cancel is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonCancelClick"): ButtonCancelClickEvent; - - /** - * Event fired when the button Cancel is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the igGridModalDialog widget. - * Use ui.modalDialog to get the reference to the igGridModalDialog element - * - * @optionValue Define event handler function. - */ - igGridModalDialog(optionLiteral: 'option', optionName: "buttonCancelClick", optionValue: ButtonCancelClickEvent): void; - igGridModalDialog(options: IgGridModalDialog): JQuery; - igGridModalDialog(optionLiteral: 'option', optionName: string): any; - igGridModalDialog(optionLiteral: 'option', options: IgGridModalDialog): JQuery; - igGridModalDialog(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; - igGridModalDialog(methodName: string, ...methodParams: any[]): any; -} -interface JQuery { - igEditorFilter(methodName: "setFocus", delay: Object, toggle: Object): void; - igEditorFilter(methodName: "remove"): void; - igEditorFilter(methodName: "exitEditMode"): void; - igEditorFilter(methodName: "validator"): void; - igEditorFilter(methodName: "hasInvalidMessage"): void; - igEditorFilter(methodName: "destroy"): void; - igEditorFilter(options: IgEditorFilter): JQuery; - igEditorFilter(optionLiteral: 'option', optionName: string): any; - igEditorFilter(optionLiteral: 'option', options: IgEditorFilter): JQuery; - igEditorFilter(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; - igEditorFilter(methodName: string, ...methodParams: any[]): any; -} interface IgGridSortingColumnSetting { + /** * Identifies the grid column by key. Either key or index must be set in every column setting. * @@ -47423,25 +53482,6 @@ interface ColumnSortingEvent { } interface ColumnSortingEventUIParam { - /** - * Used to get reference to GridSorting. - */ - owner?: any; - - /** - * Used to get column key. - */ - columnKey?: any; - - /** - * Used to get sorting direction. - */ - direction?: any; - - /** - * Used to get sorting expressions. - */ - newExpressions?: any; } interface ColumnSortedEvent { @@ -47449,25 +53489,6 @@ interface ColumnSortedEvent { } interface ColumnSortedEventUIParam { - /** - * Used to get reference to GridSorting. - */ - owner?: any; - - /** - * Used to get column key. - */ - columnKey?: any; - - /** - * Used to get sorting direction. - */ - direction?: any; - - /** - * Used to get sorted expressions. - */ - expressions?: any; } interface ModalDialogSortingChangedEvent { @@ -47475,25 +53496,6 @@ interface ModalDialogSortingChangedEvent { } interface ModalDialogSortingChangedEventUIParam { - /** - * Used to get the reference to the GridSorting widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; - - /** - * Used to get the column key - */ - columnKey?: any; - - /** - * Used to get whether column should be ascending or not. If true it should be ascending - */ - isAsc?: any; } interface ModalDialogButtonUnsortClickEvent { @@ -47501,20 +53503,6 @@ interface ModalDialogButtonUnsortClickEvent { } interface ModalDialogButtonUnsortClickEventUIParam { - /** - * Used to get the reference to the GridSorting widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; - - /** - * Used to get the column key - */ - columnKey?: any; } interface ModalDialogSortClickEvent { @@ -47522,23 +53510,10 @@ interface ModalDialogSortClickEvent { } interface ModalDialogSortClickEventUIParam { - /** - * Used to get the reference to the GridSorting widget. - */ - owner?: any; - - /** - * Used to get a reference to the modal dialog element. This is a jQuery object. - */ - modalDialogElement?: any; - - /** - * Used to get the column key - */ - columnKey?: any; } interface IgGridSorting { + /** * Defines local or remote sorting operations. * @@ -47749,138 +53724,71 @@ interface IgGridSorting { /** * Event fired before sorting is invoked for a certain column. * Return false in order to cancel column sorting. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.newExpressions to get sorting expressions. */ columnSorting?: ColumnSortingEvent; /** * Event fired after the column has already been sorted and data - re-rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.expressions to get sorted expressions. */ columnSorted?: ColumnSortedEvent; /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogOpening?: ModalDialogOpeningEvent; /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogOpened?: ModalDialogOpenedEvent; /** * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. */ modalDialogMoving?: ModalDialogMovingEvent; /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogClosing?: ModalDialogClosingEvent; /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogClosed?: ModalDialogClosedEvent; /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogContentsRendering?: ModalDialogContentsRenderingEvent; /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogContentsRendered?: ModalDialogContentsRenderedEvent; /** * Event fired when sorting of column is changed in modal dialog. Column should be sorted - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key - * Use ui.isAsc to get whether column should be ascending or not. If true it should be ascending */ modalDialogSortingChanged?: ModalDialogSortingChangedEvent; /** * Event fired when button to unsort column is clicked in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ modalDialogButtonUnsortClick?: ModalDialogButtonUnsortClickEvent; /** * Event fired when column(which is not sorted) is clicked to be sorted in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ modalDialogSortClick?: ModalDialogSortClickEvent; /** * Event fired when button Apply in modal dialog is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnsToSort to get array of columns which should be sorted - array of objects of sort order - Asc/Desc and columnIdentifier */ modalDialogButtonApplyClick?: ModalDialogButtonApplyClickEvent; /** * Event fired when the button to reset sorting is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogButtonResetClick?: ModalDialogButtonResetClickEvent; @@ -47890,6 +53798,7 @@ interface IgGridSorting { [optionName: string]: any; } interface IgGridSortingMethods { + /** * Sorts the data in a grid column and updates the UI. * @@ -48398,24 +54307,12 @@ interface JQuery { /** * Event fired before sorting is invoked for a certain column. * Return false in order to cancel column sorting. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.newExpressions to get sorting expressions. */ igGridSorting(optionLiteral: 'option', optionName: "columnSorting"): ColumnSortingEvent; /** * Event fired before sorting is invoked for a certain column. * Return false in order to cancel column sorting. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.newExpressions to get sorting expressions. * * @optionValue Define event handler function. */ @@ -48423,23 +54320,11 @@ interface JQuery { /** * Event fired after the column has already been sorted and data - re-rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.expressions to get sorted expressions. */ igGridSorting(optionLiteral: 'option', optionName: "columnSorted"): ColumnSortedEvent; /** * Event fired after the column has already been sorted and data - re-rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.expressions to get sorted expressions. * * @optionValue Define event handler function. */ @@ -48447,19 +54332,11 @@ interface JQuery { /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogOpening"): ModalDialogOpeningEvent; /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48467,19 +54344,11 @@ interface JQuery { /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogOpened"): ModalDialogOpenedEvent; /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48487,23 +54356,11 @@ interface JQuery { /** * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogMoving"): ModalDialogMovingEvent; /** * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. * * @optionValue Define event handler function. */ @@ -48511,19 +54368,11 @@ interface JQuery { /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogClosing"): ModalDialogClosingEvent; /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48531,19 +54380,11 @@ interface JQuery { /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogClosed"): ModalDialogClosedEvent; /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48551,19 +54392,11 @@ interface JQuery { /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogContentsRendering"): ModalDialogContentsRenderingEvent; /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48571,19 +54404,11 @@ interface JQuery { /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogContentsRendered"): ModalDialogContentsRenderedEvent; /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48591,23 +54416,11 @@ interface JQuery { /** * Event fired when sorting of column is changed in modal dialog. Column should be sorted - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key - * Use ui.isAsc to get whether column should be ascending or not. If true it should be ascending */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogSortingChanged"): ModalDialogSortingChangedEvent; /** * Event fired when sorting of column is changed in modal dialog. Column should be sorted - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key - * Use ui.isAsc to get whether column should be ascending or not. If true it should be ascending * * @optionValue Define event handler function. */ @@ -48615,21 +54428,11 @@ interface JQuery { /** * Event fired when button to unsort column is clicked in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogButtonUnsortClick"): ModalDialogButtonUnsortClickEvent; /** * Event fired when button to unsort column is clicked in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key * * @optionValue Define event handler function. */ @@ -48637,21 +54440,11 @@ interface JQuery { /** * Event fired when column(which is not sorted) is clicked to be sorted in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogSortClick"): ModalDialogSortClickEvent; /** * Event fired when column(which is not sorted) is clicked to be sorted in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key * * @optionValue Define event handler function. */ @@ -48659,21 +54452,11 @@ interface JQuery { /** * Event fired when button Apply in modal dialog is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnsToSort to get array of columns which should be sorted - array of objects of sort order - Asc/Desc and columnIdentifier */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogButtonApplyClick"): ModalDialogButtonApplyClickEvent; /** * Event fired when button Apply in modal dialog is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnsToSort to get array of columns which should be sorted - array of objects of sort order - Asc/Desc and columnIdentifier * * @optionValue Define event handler function. */ @@ -48681,19 +54464,11 @@ interface JQuery { /** * Event fired when the button to reset sorting is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igGridSorting(optionLiteral: 'option', optionName: "modalDialogButtonResetClick"): ModalDialogButtonResetClickEvent; /** * Event fired when the button to reset sorting is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -48705,6 +54480,7 @@ interface JQuery { igGridSorting(methodName: string, ...methodParams: any[]): any; } interface IgGridSummariesColumnSettingSummaryOperand { + /** * Text of the summary method which is shown in summary cell * @@ -48744,16 +54520,13 @@ interface IgGridSummariesColumnSettingSummaryOperand { order?: number; /** - * Specifies the number of digits after the decimal point for result of the current summary operand. This property will be ignored when isGridFormatter is true + * Specifies a format that will be applied to the current summary operant. + * When this option is not set, the [format](ui.iggrid#options:columns.format) of the column it is in will taken into account. + * When this option and the column [format](ui.iggrid#options:columns.format) is not set, the regional settings will be taken depending on the [autoFormat](ui.iggrid#options:autoFormat) option. + * If the column type is not specified in the [autoFormat](ui.iggrid#options:autoFormat) option and no format is set for both column and summary operand, no formatting is applied. * */ - decimalDisplay?: number; - - /** - * Specifies whether to be used grid formatter for result for the current summary operand. - * - */ - isGridFormatter?: boolean; + format?: string; /** * Option for IgGridSummariesColumnSettingSummaryOperand @@ -48762,6 +54535,7 @@ interface IgGridSummariesColumnSettingSummaryOperand { } interface IgGridSummariesColumnSetting { + /** * Enables disables summaries for the column * @@ -48797,10 +54571,6 @@ interface SummariesCalculatingEvent { } interface SummariesCalculatingEventUIParam { - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface SummariesCalculatedEvent { @@ -48808,15 +54578,6 @@ interface SummariesCalculatedEvent { } interface SummariesCalculatedEventUIParam { - /** - * Used to get data for calculated summaries - */ - data?: any; - - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface SummariesMethodSelectionChangedEvent { @@ -48824,25 +54585,6 @@ interface SummariesMethodSelectionChangedEvent { } interface SummariesMethodSelectionChangedEventUIParam { - /** - * Used to get column key of the column where it is changed selection of summary method - */ - columnKey?: any; - - /** - * Used to get whether method is selected or not - */ - isSelected?: any; - - /** - * Used to get summary method name - */ - methodName?: any; - - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface SummariesTogglingEvent { @@ -48850,15 +54592,6 @@ interface SummariesTogglingEvent { } interface SummariesTogglingEventUIParam { - /** - * Used to get whether summaries are shown or not. - */ - isToShow?: any; - - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface SummariesToggledEvent { @@ -48866,15 +54599,6 @@ interface SummariesToggledEvent { } interface SummariesToggledEventUIParam { - /** - * Used to get whether summaries are shown or not. - */ - isToShow?: any; - - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface DropDownOKClickedEvent { @@ -48882,20 +54606,6 @@ interface DropDownOKClickedEvent { } interface DropDownOKClickedEventUIParam { - /** - * Used to get column key for which OK button is clicked. - */ - columnKey?: any; - - /** - * Used to get data about which summary methods are(not) selected. Format of event data is {type: "min", active: false}; - */ - eventData?: any; - - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface DropDownCancelClickedEvent { @@ -48903,18 +54613,10 @@ interface DropDownCancelClickedEvent { } interface DropDownCancelClickedEventUIParam { - /** - * Used to get column key for which Cancel button is clicked. - */ - columnKey?: any; - - /** - * Used to access the igGridSummaries widget object. - */ - owner?: any; } interface IgGridSummaries { + /** * type of summaries calculating. * @@ -48968,12 +54670,6 @@ interface IgGridSummaries { */ compactRenderingMode?: any; - /** - * The number of digits after the decimal point. If gridFormatter is True then this option is ignored. - * - */ - defaultDecimalDisplay?: number; - /** * Show header button icon in the header cell. On click - shows/hides summaries. If false then summary icon should not be shown in the feature chooser(if shown). * @@ -49051,12 +54747,6 @@ interface IgGridSummaries { */ resultTemplate?: string; - /** - * If this property is enabled and in summaryOperand isGridFormatter is undefined then use grid formatting for cells - * - */ - isGridFormatter?: boolean; - /** * a reference or name of a javascript function - renders summary cell in grid footer.(if not set it is used default render function) It takes 3 parameters - methodName(summary method), columnKey, data(summary data which should be rendered) * @@ -49077,94 +54767,59 @@ interface IgGridSummaries { /** * Event fired before drop down is opened for a specific column summary * Return false in order to cancel opening the drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is opening. - * Use ui.owner in order to access the igGridSummaries widget object. */ dropDownOpening?: DropDownOpeningEvent; /** * Event fired after the summaries dropdown is opened for a specific column - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is shown. - * Use ui.owner in order to access the igGridSummaries widget object. */ dropDownOpened?: DropDownOpenedEvent; /** * Event fired before the dropdown for a summary column starts closing * Return false in order to cancel closing the drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is closing. - * Use ui.owner in order to access the igGridSummaries widget object. */ dropDownClosing?: DropDownClosingEvent; /** * Event fired after the dropdown for a summary column is closed - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is closing. - * Use ui.owner in order to access the igGridSummaries widget object. */ dropDownClosed?: DropDownClosedEvent; /** * Event fired before summaries calculations are made * Return false in order to cancel calculation of summaries. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igGridSummaries widget object. */ summariesCalculating?: SummariesCalculatingEvent; /** * Event fired after summaries calculation are completely made - * Function takes arguments evt and ui. - * Use ui.data to get data for calculated summaries - * Use ui.owner in order to access the igGridSummaries widget object. */ summariesCalculated?: SummariesCalculatedEvent; /** * Event fired when user selects/deselects summary method from checkbox - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where it is changed selection of summary method - * Use ui.isSelected to get whether method is selected or not - * Use ui.methodName to get summary method name - * Use ui.owner in order to access the igGridSummaries widget object. */ summariesMethodSelectionChanged?: SummariesMethodSelectionChangedEvent; /** * Event is fired bofore summary rows start toggling * Return false in order to cancel showing/hiding of summaries. - * Function takes arguments evt and ui. - * Use ui.isToShow to get whether summaries are shown or not. - * Use ui.owner in order to access the igGridSummaries widget object. */ summariesToggling?: SummariesTogglingEvent; /** * Event is fired after summary rows are toggled - * Function takes arguments evt and ui. - * Use ui.isToShow to get whether summaries are shown or not. - * Use ui.owner in order to access the igGridSummaries widget object. */ summariesToggled?: SummariesToggledEvent; /** * Event is fired when OK button is clicked in drop down - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key for which OK button is clicked. - * Use ui.eventData to get data about which summary methods are(not) selected. Format of event data is {type: "min", active: false}; - * Use ui.owner in order to access the igGridSummaries widget object. */ dropDownOKClicked?: DropDownOKClickedEvent; /** * Event is fired when Cancel button is clicked in drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key for which Cancel button is clicked. - * Use ui.owner in order to access the igGridSummaries widget object. */ dropDownCancelClicked?: DropDownCancelClickedEvent; @@ -49374,20 +55029,6 @@ interface JQuery { */ igGridSummaries(optionLiteral: 'option', optionName: "compactRenderingMode", optionValue: any): void; - /** - * The number of digits after the decimal point. If gridFormatter is True then this option is ignored. - * - */ - igGridSummaries(optionLiteral: 'option', optionName: "defaultDecimalDisplay"): number; - - /** - * The number of digits after the decimal point. If gridFormatter is True then this option is ignored. - * - * - * @optionValue New value to be set. - */ - igGridSummaries(optionLiteral: 'option', optionName: "defaultDecimalDisplay", optionValue: number): void; - /** * Show header button icon in the header cell. On click - shows/hides summaries. If false then summary icon should not be shown in the feature chooser(if shown). * @@ -49556,20 +55197,6 @@ interface JQuery { */ igGridSummaries(optionLiteral: 'option', optionName: "resultTemplate", optionValue: string): void; - /** - * If this property is enabled and in summaryOperand isGridFormatter is undefined then use grid formatting for cells - * - */ - igGridSummaries(optionLiteral: 'option', optionName: "isGridFormatter"): boolean; - - /** - * If this property is enabled and in summaryOperand isGridFormatter is undefined then use grid formatting for cells - * - * - * @optionValue New value to be set. - */ - igGridSummaries(optionLiteral: 'option', optionName: "isGridFormatter", optionValue: boolean): void; - /** * A reference or name of a javascript function - renders summary cell in grid footer.(if not set it is used default render function) It takes 3 parameters - methodName(summary method), columnKey, data(summary data which should be rendered) * @@ -49613,18 +55240,12 @@ interface JQuery { /** * Event fired before drop down is opened for a specific column summary * Return false in order to cancel opening the drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is opening. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "dropDownOpening"): DropDownOpeningEvent; /** * Event fired before drop down is opened for a specific column summary * Return false in order to cancel opening the drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is opening. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49632,17 +55253,11 @@ interface JQuery { /** * Event fired after the summaries dropdown is opened for a specific column - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is shown. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "dropDownOpened"): DropDownOpenedEvent; /** * Event fired after the summaries dropdown is opened for a specific column - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is shown. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49651,18 +55266,12 @@ interface JQuery { /** * Event fired before the dropdown for a summary column starts closing * Return false in order to cancel closing the drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is closing. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "dropDownClosing"): DropDownClosingEvent; /** * Event fired before the dropdown for a summary column starts closing * Return false in order to cancel closing the drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is closing. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49670,17 +55279,11 @@ interface JQuery { /** * Event fired after the dropdown for a summary column is closed - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is closing. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "dropDownClosed"): DropDownClosedEvent; /** * Event fired after the dropdown for a summary column is closed - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where drop down is closing. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49689,16 +55292,12 @@ interface JQuery { /** * Event fired before summaries calculations are made * Return false in order to cancel calculation of summaries. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "summariesCalculating"): SummariesCalculatingEvent; /** * Event fired before summaries calculations are made * Return false in order to cancel calculation of summaries. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49706,17 +55305,11 @@ interface JQuery { /** * Event fired after summaries calculation are completely made - * Function takes arguments evt and ui. - * Use ui.data to get data for calculated summaries - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "summariesCalculated"): SummariesCalculatedEvent; /** * Event fired after summaries calculation are completely made - * Function takes arguments evt and ui. - * Use ui.data to get data for calculated summaries - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49724,21 +55317,11 @@ interface JQuery { /** * Event fired when user selects/deselects summary method from checkbox - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where it is changed selection of summary method - * Use ui.isSelected to get whether method is selected or not - * Use ui.methodName to get summary method name - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "summariesMethodSelectionChanged"): SummariesMethodSelectionChangedEvent; /** * Event fired when user selects/deselects summary method from checkbox - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key of the column where it is changed selection of summary method - * Use ui.isSelected to get whether method is selected or not - * Use ui.methodName to get summary method name - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49747,18 +55330,12 @@ interface JQuery { /** * Event is fired bofore summary rows start toggling * Return false in order to cancel showing/hiding of summaries. - * Function takes arguments evt and ui. - * Use ui.isToShow to get whether summaries are shown or not. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "summariesToggling"): SummariesTogglingEvent; /** * Event is fired bofore summary rows start toggling * Return false in order to cancel showing/hiding of summaries. - * Function takes arguments evt and ui. - * Use ui.isToShow to get whether summaries are shown or not. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49766,17 +55343,11 @@ interface JQuery { /** * Event is fired after summary rows are toggled - * Function takes arguments evt and ui. - * Use ui.isToShow to get whether summaries are shown or not. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "summariesToggled"): SummariesToggledEvent; /** * Event is fired after summary rows are toggled - * Function takes arguments evt and ui. - * Use ui.isToShow to get whether summaries are shown or not. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49784,19 +55355,11 @@ interface JQuery { /** * Event is fired when OK button is clicked in drop down - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key for which OK button is clicked. - * Use ui.eventData to get data about which summary methods are(not) selected. Format of event data is {type: "min", active: false}; - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "dropDownOKClicked"): DropDownOKClickedEvent; /** * Event is fired when OK button is clicked in drop down - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key for which OK button is clicked. - * Use ui.eventData to get data about which summary methods are(not) selected. Format of event data is {type: "min", active: false}; - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49804,17 +55367,11 @@ interface JQuery { /** * Event is fired when Cancel button is clicked in drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key for which Cancel button is clicked. - * Use ui.owner in order to access the igGridSummaries widget object. */ igGridSummaries(optionLiteral: 'option', optionName: "dropDownCancelClicked"): DropDownCancelClickedEvent; /** * Event is fired when Cancel button is clicked in drop down. - * Function takes arguments evt and ui. - * Use ui.columnKey to get column key for which Cancel button is clicked. - * Use ui.owner in order to access the igGridSummaries widget object. * * @optionValue Define event handler function. */ @@ -49826,6 +55383,7 @@ interface JQuery { igGridSummaries(methodName: string, ...methodParams: any[]): any; } interface IgGridTooltipsColumnSettings { + /** * Either key or index must be set in every column setting. * @@ -49857,6 +55415,7 @@ interface IgGridTooltipsColumnSettings { } interface IgGridTooltips { + /** * determines the tooltip visibility option * @@ -49923,49 +55482,21 @@ interface IgGridTooltips { /** * Event fired when the mouse has hovered on an element long enough to display a tooltip - * use args.owner to get a reference to the widget - * use args.tooltip to get or set the string to be displayed - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ tooltipShowing?: TooltipShowingEvent; /** * Event fired after a tooltip is shown - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ tooltipShown?: TooltipShownEvent; /** * Event fired when the mouse has left an element and the tooltip is about to hide - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ tooltipHiding?: TooltipHidingEvent; /** * Event fired after a tooltip is hidden - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip was displayed for - * use args.element to get a reference to the cell the tooltip was displayed for - * use args.index to get the row index of the cell the tooltip was displayed for - * use args.columnKey to get the column key of the cell the tooltip was displayed for - * use args.columnIndex to get the column index of the cell the tooltip was displayed for */ tooltipHidden?: TooltipHiddenEvent; @@ -49975,6 +55506,7 @@ interface IgGridTooltips { [optionName: string]: any; } interface IgGridTooltipsMethods { + /** * Destroys the tooltip widget. */ @@ -50123,25 +55655,11 @@ interface JQuery { /** * Event fired when the mouse has hovered on an element long enough to display a tooltip - * use args.owner to get a reference to the widget - * use args.tooltip to get or set the string to be displayed - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ igGridTooltips(optionLiteral: 'option', optionName: "tooltipShowing"): TooltipShowingEvent; /** * Event fired when the mouse has hovered on an element long enough to display a tooltip - * use args.owner to get a reference to the widget - * use args.tooltip to get or set the string to be displayed - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for * * @optionValue Define event handler function. */ @@ -50149,25 +55667,11 @@ interface JQuery { /** * Event fired after a tooltip is shown - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ igGridTooltips(optionLiteral: 'option', optionName: "tooltipShown"): TooltipShownEvent; /** * Event fired after a tooltip is shown - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for * * @optionValue Define event handler function. */ @@ -50175,25 +55679,11 @@ interface JQuery { /** * Event fired when the mouse has left an element and the tooltip is about to hide - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ igGridTooltips(optionLiteral: 'option', optionName: "tooltipHiding"): TooltipHidingEvent; /** * Event fired when the mouse has left an element and the tooltip is about to hide - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for * * @optionValue Define event handler function. */ @@ -50201,25 +55691,11 @@ interface JQuery { /** * Event fired after a tooltip is hidden - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip was displayed for - * use args.element to get a reference to the cell the tooltip was displayed for - * use args.index to get the row index of the cell the tooltip was displayed for - * use args.columnKey to get the column key of the cell the tooltip was displayed for - * use args.columnIndex to get the column index of the cell the tooltip was displayed for */ igGridTooltips(optionLiteral: 'option', optionName: "tooltipHidden"): TooltipHiddenEvent; /** * Event fired after a tooltip is hidden - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip was displayed for - * use args.element to get a reference to the cell the tooltip was displayed for - * use args.index to get the row index of the cell the tooltip was displayed for - * use args.columnKey to get the column key of the cell the tooltip was displayed for - * use args.columnIndex to get the column index of the cell the tooltip was displayed for * * @optionValue Define event handler function. */ @@ -50231,6 +55707,7 @@ interface JQuery { igGridTooltips(methodName: string, ...methodParams: any[]): any; } interface IgGridUpdatingColumnSetting { + /** * Identifies the grid column by key. * @@ -50314,6 +55791,7 @@ interface IgGridUpdatingColumnSetting { } interface IgGridUpdatingRowEditDialogOptions { + /** * Specifies the caption of the dialog. If not set, $.ig.GridUpdating.locale.rowEditDialogCaptionLabel is used. * @@ -50436,20 +55914,6 @@ interface EditRowStartingEvent { } interface EditRowStartingEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; } interface EditRowStartedEvent { @@ -50457,20 +55921,6 @@ interface EditRowStartedEvent { } interface EditRowStartedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; } interface EditRowEndingEvent { @@ -50478,35 +55928,6 @@ interface EditRowEndingEvent { } interface EditRowEndingEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - */ - update?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; - - /** - * Used to get or set the new value for the column with the specified key. - */ - values?: any; - - /** - * Used to get the old value for the column with the specified key. - */ - oldValues?: any; } interface EditRowEndedEvent { @@ -50514,35 +55935,6 @@ interface EditRowEndedEvent { } interface EditRowEndedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to check if any of the values is changed which will cause update in the data source. - */ - update?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; - - /** - * Used to get the new value for the column with the specified key. - */ - values?: any; - - /** - * Used to get the old value for the column with the specified key. - */ - oldValues?: any; } interface EditCellStartingEvent { @@ -50550,40 +55942,6 @@ interface EditCellStartingEvent { } interface EditCellStartingEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to get the index of the column. - */ - columnIndex?: any; - - /** - * Used to get the key of the column. - */ - columnKey?: any; - - /** - * Used tor to get a reference to the editor used for editing the column. - */ - editor?: any; - - /** - * Used to get or set the value of the editor. - */ - value?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; } interface EditCellStartedEvent { @@ -50591,40 +55949,6 @@ interface EditCellStartedEvent { } interface EditCellStartedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to get the index of the column. - */ - columnIndex?: any; - - /** - * Used to get the key of the column. - */ - columnKey?: any; - - /** - * Used tor to get a reference to the editor used for editing the column. - */ - editor?: any; - - /** - * Used to get the value of the editor. - */ - value?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; } interface EditCellEndingEvent { @@ -50632,50 +55956,6 @@ interface EditCellEndingEvent { } interface EditCellEndingEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to get the index of the column. - */ - columnIndex?: any; - - /** - * Used to get the key of the column. - */ - columnKey?: any; - - /** - * Used tor to get a reference to the editor used for editing the column. - */ - editor?: any; - - /** - * Used to get or set the value to be used when updating the data source. - */ - value?: any; - - /** - * Used to get the old value. - */ - oldValue?: any; - - /** - * Used to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - */ - update?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; } interface EditCellEndedEvent { @@ -50683,50 +55963,6 @@ interface EditCellEndedEvent { } interface EditCellEndedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; - - /** - * Used to get the index of the column. - */ - columnIndex?: any; - - /** - * Used to get the key of the column. - */ - columnKey?: any; - - /** - * Used tor to get a reference to the editor used for editing the column. - */ - editor?: any; - - /** - * Used to get the new value. - */ - value?: any; - - /** - * Used to get the old value. - */ - oldValue?: any; - - /** - * Used to check if the value is changed which will cause update in the data source. - */ - update?: any; - - /** - * Used to check if the edit mode is for adding a new row. - */ - rowAdding?: any; } interface RowAddingEvent { @@ -50734,20 +55970,6 @@ interface RowAddingEvent { } interface RowAddingEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the value for the column with the specified key. - */ - values?: any; - - /** - * Used to get the default value (before editing) for the column with the specified key. - */ - oldValues?: any; } interface RowAddedEvent { @@ -50755,20 +55977,6 @@ interface RowAddedEvent { } interface RowAddedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the value for the column with the specified key. - */ - values?: any; - - /** - * Used to get the default value (before editing) for the column with the specified key. - */ - oldValues?: any; } interface RowDeletingEvent { @@ -50776,20 +55984,6 @@ interface RowDeletingEvent { } interface RowDeletingEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get a jQuery object containing the TR element of the row to delete. - */ - element?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; } interface RowDeletedEvent { @@ -50797,20 +55991,6 @@ interface RowDeletedEvent { } interface RowDeletedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get a jQuery object containing the TR element of the deleted row. - */ - element?: any; - - /** - * Used to get the row's PK value. - */ - rowID?: any; } interface DataDirtyEvent { @@ -50818,10 +55998,6 @@ interface DataDirtyEvent { } interface DataDirtyEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; } interface GeneratePrimaryKeyValueEvent { @@ -50829,15 +56005,6 @@ interface GeneratePrimaryKeyValueEvent { } interface GeneratePrimaryKeyValueEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. - */ - value?: any; } interface RowEditDialogBeforeOpenEvent { @@ -50845,15 +56012,6 @@ interface RowEditDialogBeforeOpenEvent { } interface RowEditDialogBeforeOpenEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get reference to row edit dialog DOM element. - */ - dialogElement?: any; } interface RowEditDialogAfterOpenEvent { @@ -50861,15 +56019,6 @@ interface RowEditDialogAfterOpenEvent { } interface RowEditDialogAfterOpenEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get reference to row edit dialog DOM element. - */ - dialogElement?: any; } interface RowEditDialogBeforeCloseEvent { @@ -50877,15 +56026,6 @@ interface RowEditDialogBeforeCloseEvent { } interface RowEditDialogBeforeCloseEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get reference to row edit dialog DOM element. - */ - dialogElement?: any; } interface RowEditDialogAfterCloseEvent { @@ -50893,15 +56033,6 @@ interface RowEditDialogAfterCloseEvent { } interface RowEditDialogAfterCloseEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get reference to row edit dialog DOM element. - */ - dialogElement?: any; } interface RowEditDialogContentsRenderedEvent { @@ -50909,18 +56040,10 @@ interface RowEditDialogContentsRenderedEvent { } interface RowEditDialogContentsRenderedEventUIParam { - /** - * Used to get a reference to GridUpdating. - */ - owner?: any; - - /** - * Used to get reference to row edit dialog DOM element. - */ - dialogElement?: any; } interface IgGridUpdating { + /** * A list of custom column options that specify editing and validation settings for a specific column. * @@ -51018,7 +56141,7 @@ interface IgGridUpdating { enableDataDirtyException?: boolean; /** - * Specifies how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by comma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. + * Specifies how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * */ startEditTriggers?: string|Array; @@ -51079,215 +56202,102 @@ interface IgGridUpdating { /** * Event fired before row editing begins. * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editRowStarting?: EditRowStartingEvent; /** * Event fired after row editing begins. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editRowStarted?: EditRowStartedEvent; /** * Event fired before row editing ends. * Return false in order to prevent the grid from exiting edit mode. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get or set the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ editRowEnding?: EditRowEndingEvent; /** * Event fired after row editing ends. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ editRowEnded?: EditRowEndedEvent; /** * Event fired before cell editing begins (including when row editing opens editing for a cell). * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellStarting?: EditCellStartingEvent; /** * Event fired after cell editing begins (including when row editing opens editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellStarted?: EditCellStartedEvent; /** * Event fired before cell editing ends (including when row editing closes editing for a cell). * Return false in order to prevent the grid from exiting edit mode (only functions if [editMode](ui.iggridupdating#options:editMode) is 'cell'). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value to be used when updating the data source. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellEnding?: EditCellEndingEvent; /** * Event fired after cell editing ends (including when row editing closes editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the new value. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellEnded?: EditCellEndedEvent; /** * Event fired before adding a new row. * Return false in order to cancel the adding of the new row to the data source. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ rowAdding?: RowAddingEvent; /** * Event fired after adding a new row. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ rowAdded?: RowAddedEvent; /** * Event fired before deleting a row. * Return false in order to cancel the row's deletion. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the row to delete. - * Use ui.rowID to get the row's PK value. */ rowDeleting?: RowDeletingEvent; /** * Event fired after a row is deleted. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the deleted row. - * Use ui.rowID to get the row's PK value. */ rowDeleted?: RowDeletedEvent; /** * Event fired before the dataDirtyException is thrown. This can be controlled by the [enableDataDirtyException](ui.iggridupdating#options:enableDataDirtyException) property. Any pending changes may be committed in the handler of this event in order to prevent dataDirtyException from being thrown. * Return false in order to prevent the exception. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. */ dataDirty?: DataDirtyEvent; /** * Event fired before editing starts for adding a new row, when Updating generates an automatic primary key for it. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.value to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. */ generatePrimaryKeyValue?: GeneratePrimaryKeyValueEvent; /** * Event fired before the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogBeforeOpen?: RowEditDialogBeforeOpenEvent; /** * Event fired after the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogAfterOpen?: RowEditDialogAfterOpenEvent; /** * Event fired before the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogBeforeClose?: RowEditDialogBeforeCloseEvent; /** * Event fired after the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogAfterClose?: RowEditDialogAfterCloseEvent; /** * Event fired after the row edit dialog is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogContentsRendered?: RowEditDialogContentsRenderedEvent; @@ -51297,6 +56307,7 @@ interface IgGridUpdating { [optionName: string]: any; } interface IgGridUpdatingMethods { + /** * Sets a cell value for the specified cell. It also creates a transaction and updates the UI. * If the specified cell is currently in edit mode, the function will set the desired value in the cell's editor instead. @@ -51627,13 +56638,13 @@ interface JQuery { igGridUpdating(optionLiteral: 'option', optionName: "enableDataDirtyException", optionValue: boolean): void; /** - * Gets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by comma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. + * Gets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * */ igGridUpdating(optionLiteral: 'option', optionName: "startEditTriggers"): string|Array; /** - * Sets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by comma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. + * Sets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * * * @optionValue New value to be set. @@ -51767,22 +56778,12 @@ interface JQuery { /** * Event fired before row editing begins. * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igGridUpdating(optionLiteral: 'option', optionName: "editRowStarting"): EditRowStartingEvent; /** * Event fired before row editing begins. * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -51790,21 +56791,11 @@ interface JQuery { /** * Event fired after row editing begins. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igGridUpdating(optionLiteral: 'option', optionName: "editRowStarted"): EditRowStartedEvent; /** * Event fired after row editing begins. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -51813,28 +56804,12 @@ interface JQuery { /** * Event fired before row editing ends. * Return false in order to prevent the grid from exiting edit mode. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get or set the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ igGridUpdating(optionLiteral: 'option', optionName: "editRowEnding"): EditRowEndingEvent; /** * Event fired before row editing ends. * Return false in order to prevent the grid from exiting edit mode. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get or set the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. * * @optionValue Define event handler function. */ @@ -51842,27 +56817,11 @@ interface JQuery { /** * Event fired after row editing ends. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ igGridUpdating(optionLiteral: 'option', optionName: "editRowEnded"): EditRowEndedEvent; /** * Event fired after row editing ends. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. * * @optionValue Define event handler function. */ @@ -51871,30 +56830,12 @@ interface JQuery { /** * Event fired before cell editing begins (including when row editing opens editing for a cell). * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igGridUpdating(optionLiteral: 'option', optionName: "editCellStarting"): EditCellStartingEvent; /** * Event fired before cell editing begins (including when row editing opens editing for a cell). * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -51902,29 +56843,11 @@ interface JQuery { /** * Event fired after cell editing begins (including when row editing opens editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igGridUpdating(optionLiteral: 'option', optionName: "editCellStarted"): EditCellStartedEvent; /** * Event fired after cell editing begins (including when row editing opens editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -51933,34 +56856,12 @@ interface JQuery { /** * Event fired before cell editing ends (including when row editing closes editing for a cell). * Return false in order to prevent the grid from exiting edit mode (only functions if [editMode](ui.iggridupdating#options:editMode) is 'cell'). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value to be used when updating the data source. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igGridUpdating(optionLiteral: 'option', optionName: "editCellEnding"): EditCellEndingEvent; /** * Event fired before cell editing ends (including when row editing closes editing for a cell). * Return false in order to prevent the grid from exiting edit mode (only functions if [editMode](ui.iggridupdating#options:editMode) is 'cell'). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value to be used when updating the data source. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -51968,33 +56869,11 @@ interface JQuery { /** * Event fired after cell editing ends (including when row editing closes editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the new value. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igGridUpdating(optionLiteral: 'option', optionName: "editCellEnded"): EditCellEndedEvent; /** * Event fired after cell editing ends (including when row editing closes editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the new value. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -52003,22 +56882,12 @@ interface JQuery { /** * Event fired before adding a new row. * Return false in order to cancel the adding of the new row to the data source. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ igGridUpdating(optionLiteral: 'option', optionName: "rowAdding"): RowAddingEvent; /** * Event fired before adding a new row. * Return false in order to cancel the adding of the new row to the data source. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. * * @optionValue Define event handler function. */ @@ -52026,21 +56895,11 @@ interface JQuery { /** * Event fired after adding a new row. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ igGridUpdating(optionLiteral: 'option', optionName: "rowAdded"): RowAddedEvent; /** * Event fired after adding a new row. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. * * @optionValue Define event handler function. */ @@ -52049,22 +56908,12 @@ interface JQuery { /** * Event fired before deleting a row. * Return false in order to cancel the row's deletion. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the row to delete. - * Use ui.rowID to get the row's PK value. */ igGridUpdating(optionLiteral: 'option', optionName: "rowDeleting"): RowDeletingEvent; /** * Event fired before deleting a row. * Return false in order to cancel the row's deletion. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the row to delete. - * Use ui.rowID to get the row's PK value. * * @optionValue Define event handler function. */ @@ -52072,21 +56921,11 @@ interface JQuery { /** * Event fired after a row is deleted. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the deleted row. - * Use ui.rowID to get the row's PK value. */ igGridUpdating(optionLiteral: 'option', optionName: "rowDeleted"): RowDeletedEvent; /** * Event fired after a row is deleted. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the deleted row. - * Use ui.rowID to get the row's PK value. * * @optionValue Define event handler function. */ @@ -52095,18 +56934,12 @@ interface JQuery { /** * Event fired before the dataDirtyException is thrown. This can be controlled by the [enableDataDirtyException](ui.iggridupdating#options:enableDataDirtyException) property. Any pending changes may be committed in the handler of this event in order to prevent dataDirtyException from being thrown. * Return false in order to prevent the exception. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. */ igGridUpdating(optionLiteral: 'option', optionName: "dataDirty"): DataDirtyEvent; /** * Event fired before the dataDirtyException is thrown. This can be controlled by the [enableDataDirtyException](ui.iggridupdating#options:enableDataDirtyException) property. Any pending changes may be committed in the handler of this event in order to prevent dataDirtyException from being thrown. * Return false in order to prevent the exception. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. * * @optionValue Define event handler function. */ @@ -52114,19 +56947,11 @@ interface JQuery { /** * Event fired before editing starts for adding a new row, when Updating generates an automatic primary key for it. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.value to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. */ igGridUpdating(optionLiteral: 'option', optionName: "generatePrimaryKeyValue"): GeneratePrimaryKeyValueEvent; /** * Event fired before editing starts for adding a new row, when Updating generates an automatic primary key for it. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.value to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. * * @optionValue Define event handler function. */ @@ -52134,19 +56959,11 @@ interface JQuery { /** * Event fired before the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogBeforeOpen"): RowEditDialogBeforeOpenEvent; /** * Event fired before the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -52154,19 +56971,11 @@ interface JQuery { /** * Event fired after the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogAfterOpen"): RowEditDialogAfterOpenEvent; /** * Event fired after the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -52174,19 +56983,11 @@ interface JQuery { /** * Event fired before the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogBeforeClose"): RowEditDialogBeforeCloseEvent; /** * Event fired before the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -52194,19 +56995,11 @@ interface JQuery { /** * Event fired after the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogAfterClose"): RowEditDialogAfterCloseEvent; /** * Event fired after the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -52214,19 +57007,11 @@ interface JQuery { /** * Event fired after the row edit dialog is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogContentsRendered"): RowEditDialogContentsRenderedEvent; /** * Event fired after the row edit dialog is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -52322,6 +57107,7 @@ interface WorkspaceResizedEventUIParam { } interface IgHtmlEditor { + /** * Shows/hides the "Formatting" toolbar. * @@ -52458,6 +57244,7 @@ interface IgHtmlEditor { [optionName: string]: any; } interface IgHtmlEditorMethods { + /** * Returns the element on which the widget was instantiated */ @@ -52663,26 +57450,26 @@ interface JQuery { } declare namespace Infragistics { - class SelectionWrapper { - constructor(NODE: any); - getSelectedItem(): void; - getSelectionAsText(): void; - select(element: Object): void; - insertElement(element: Object): void; - execCommand(name: Object, args: Object): void; - replaceNode(newNode: Object): void; - insertTable(table: Object): void; - focus(): void; - } +export class SelectionWrapper { + constructor(NODE: any); + getSelectedItem(): void; + getSelectionAsText(): void; + select(element: Object): void; + insertElement(element: Object): void; + execCommand(name: Object, args: Object): void; + replaceNode(newNode: Object): void; + insertTable(table: Object): void; + focus(): void; +} } interface IgniteUIStatic { - SelectionWrapper: typeof Infragistics.SelectionWrapper; +SelectionWrapper: typeof Infragistics.SelectionWrapper; } declare namespace Infragistics { - class ToolbarHelper { - analyse(el: Object): void; - } +export class ToolbarHelper { + analyse(el: Object): void; +} } interface JQuery { @@ -53014,6 +57801,7 @@ interface JQuery { igHtmlEditor(methodName: string, ...methodParams: any[]): any; } interface JQuery { + /** */ igPathFinder(optionLiteral: 'option', optionName: "items"): any; @@ -53288,6 +58076,7 @@ interface JQuery { igImagePropertiesDialog(methodName: string, ...methodParams: any[]): any; } interface IgLayoutManagerBorderLayout { + /** * Option specifying the width of the left region, either in px or percentages * @@ -53331,6 +58120,7 @@ interface IgLayoutManagerBorderLayout { } interface IgLayoutManagerGridLayout { + /** * Specifies the duration of the animations in the layout manager"s grid layout * @@ -53375,7 +58165,7 @@ interface IgLayoutManagerGridLayout { /** * Specified whether the items should rearrange to fit in the container when it is resized. - * Have effect only when fixed columnWidth option is set. + * Have effect only when fixed columnWidth option is set. * */ rearrangeItems?: boolean; @@ -53393,6 +58183,7 @@ interface IgLayoutManagerGridLayout { } interface IgLayoutManagerItem { + /** * Column index of the item in the grid * @@ -53407,7 +58198,7 @@ interface IgLayoutManagerItem { /** * Gets/Sets individual item height, either in px or percentage - * string The default height can be set in pixels (px), %, em and other units. + * string The default height can be set in pixels (px), %, em and other units. * */ height?: string; @@ -53426,7 +58217,7 @@ interface IgLayoutManagerItem { /** * Gets/Sets individual item width, either in px or percentage - * string The default width can be set in pixels (px), %, em and other units. + * string The default width can be set in pixels (px), %, em and other units. * */ width?: number; @@ -53442,6 +58233,7 @@ interface InternalResizedEvent { } interface InternalResizedEventUIParam { + /** * Used to get a reference to the layout manager performing resizing. */ @@ -53453,6 +58245,7 @@ interface InternalResizingEvent { } interface InternalResizingEventUIParam { + /** * Used to get a reference to the layout manager performing resizing. */ @@ -53464,6 +58257,7 @@ interface ItemRenderedEvent { } interface ItemRenderedEventUIParam { + /** * Used to get reference to the igLayoutManager. */ @@ -53490,6 +58284,7 @@ interface ItemRenderingEvent { } interface ItemRenderingEventUIParam { + /** * Used to get reference to the igLayoutManager. */ @@ -53512,6 +58307,7 @@ interface ItemRenderingEventUIParam { } interface IgLayoutManager { + /** * Options specific to a border layout * @@ -53538,23 +58334,23 @@ interface IgLayoutManager { /** * An array of item descriptions - * this assumes the container is empty, and every item - * is described by rowspan, colspan, etc. - otherwise values of - * 1 are assumed - * items can have various properties some of which may not be applicable - * depending on the layoutMode. - * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout + * this assumes the container is empty, and every item + * is described by rowspan, colspan, etc. - otherwise values of + * 1 are assumed + * items can have various properties some of which may not be applicable + * depending on the layoutMode. + * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout * */ items?: IgLayoutManagerItem[]; /** * Defines the layout type - * grid Column type can be set with grid layout - * border Column type can be set with border layout - * flow Column type can be set with flow layout - * column Column type can be set with column layout - * vertical Column type can be set with vertical layout + * grid Column type can be set with grid layout + * border Column type can be set with border layout + * flow Column type can be set with flow layout + * column Column type can be set with column layout + * vertical Column type can be set with vertical layout * * * Valid values: @@ -53574,40 +58370,40 @@ interface IgLayoutManager { /** * Event fired after items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ internalResized?: InternalResizedEvent; /** * Event fired before items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ internalResizing?: InternalResizingEvent; /** * Event fired after an item has been rendered in the container. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to the igLayoutManager. - * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. - * Use ui.index to get a reference of the item's index, if the layout is flow or vertical - * Use ui.item to get a reference to the rendered item + * Function takes arguments evt and ui. + * Use ui.owner to get reference to the igLayoutManager. + * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. + * Use ui.index to get a reference of the item's index, if the layout is flow or vertical + * Use ui.item to get a reference to the rendered item */ itemRendered?: ItemRenderedEvent; /** * Event fired before an item is rendered in the container. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to the igLayoutManager. - * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. - * Use ui.index to get a reference of the item's index, if the layout is flow or vertical - * Use ui.item to get a reference to the rendered item + * Function takes arguments evt and ui. + * Use ui.owner to get reference to the igLayoutManager. + * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. + * Use ui.index to get a reference of the item's index, if the layout is flow or vertical + * Use ui.item to get a reference to the rendered item */ itemRendering?: ItemRenderingEvent; /** * Event fired after all items are rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to the igLayoutManager. + * Function takes arguments evt and ui. + * Use ui.owner to get reference to the igLayoutManager. */ rendered?: RenderedEvent; @@ -53617,9 +58413,10 @@ interface IgLayoutManager { [optionName: string]: any; } interface IgLayoutManagerMethods { + /** * Triggers recalculation of the layout dimensions. Layouts may not need to be reflowed manually, if their sizes are in percentages (i.e. they are responsive by default) - * this can be particularly useful with a grid layout, when the container has percentage sizes, but items are calculated in pixels and positioned absolutely in the container. + * this can be particularly useful with a grid layout, when the container has percentage sizes, but items are calculated in pixels and positioned absolutely in the container. * * @param forceReflow Indicates whether the reflow should be forced. Useful in cases where the items size and position was changed manually. * @param animationDuration The animation duration to be used for this reflow only. Supported only for Grid Layout mode. @@ -53629,9 +58426,9 @@ interface IgLayoutManagerMethods { /** * Destroy is part of the jQuery UI widget API and does the following: - * 1. Remove custom CSS classes that were added. - * 2. Remove any elements that were added at widget's initialization and after that, which didn't below to the original markup - * 3. Unbind all events that were bound. + * 1. Remove custom CSS classes that were added. + * 2. Remove any elements that were added at widget's initialization and after that, which didn't below to the original markup + * 3. Unbind all events that were bound. */ destroy(): void; } @@ -53701,24 +58498,24 @@ interface JQuery { /** * An array of item descriptions - * this assumes the container is empty, and every item - * is described by rowspan, colspan, etc. - otherwise values of - * 1 are assumed - * items can have various properties some of which may not be applicable - * depending on the layoutMode. - * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout + * this assumes the container is empty, and every item + * is described by rowspan, colspan, etc. - otherwise values of + * 1 are assumed + * items can have various properties some of which may not be applicable + * depending on the layoutMode. + * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout * */ igLayoutManager(optionLiteral: 'option', optionName: "items"): IgLayoutManagerItem[]; /** * An array of item descriptions - * this assumes the container is empty, and every item - * is described by rowspan, colspan, etc. - otherwise values of - * 1 are assumed - * items can have various properties some of which may not be applicable - * depending on the layoutMode. - * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout + * this assumes the container is empty, and every item + * is described by rowspan, colspan, etc. - otherwise values of + * 1 are assumed + * items can have various properties some of which may not be applicable + * depending on the layoutMode. + * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout * * * @optionValue New value to be set. @@ -53727,22 +58524,22 @@ interface JQuery { /** * Defines the layout type - * grid Column type can be set with grid layout - * border Column type can be set with border layout - * flow Column type can be set with flow layout - * column Column type can be set with column layout - * vertical Column type can be set with vertical layout + * grid Column type can be set with grid layout + * border Column type can be set with border layout + * flow Column type can be set with flow layout + * column Column type can be set with column layout + * vertical Column type can be set with vertical layout * */ igLayoutManager(optionLiteral: 'option', optionName: "layoutMode"): any; /** * Defines the layout type - * grid Column type can be set with grid layout - * border Column type can be set with border layout - * flow Column type can be set with flow layout - * column Column type can be set with column layout - * vertical Column type can be set with vertical layout + * grid Column type can be set with grid layout + * border Column type can be set with border layout + * flow Column type can be set with flow layout + * column Column type can be set with column layout + * vertical Column type can be set with vertical layout * * * @optionValue New value to be set. @@ -53765,13 +58562,13 @@ interface JQuery { /** * Event fired after items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ igLayoutManager(optionLiteral: 'option', optionName: "internalResized"): InternalResizedEvent; /** * Event fired after items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. * * @optionValue Define event handler function. */ @@ -53779,7 +58576,7 @@ interface JQuery { /** * Event fired before items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ igLayoutManager(optionLiteral: 'option', optionName: "internalResizing"): InternalResizingEvent; @@ -53857,6 +58654,7 @@ interface JQuery { igLayoutManager(methodName: string, ...methodParams: any[]): any; } interface IgLinearGaugeRange { + /** * Gets or sets the name of the range. */ @@ -53918,6 +58716,7 @@ interface IgLinearGaugeRange { } interface IgLinearGauge { + /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -53947,8 +58746,8 @@ interface IgLinearGauge { * Gets or sets the orientation of the scale. * * Valid values: - * "horizontal" - * "vertical" + * "horizontal" The scale has a horizontal orientation. + * "vertical" The scale has a vertical orientation. */ orientation?: string; @@ -53983,11 +58782,11 @@ interface IgLinearGauge { * Gets or sets the shape to use when rendering the needle from a number of options. * * Valid values: - * "custom" - * "rectangle" - * "triangle" - * "needle" - * "trapezoid" + * "custom" A custom user defined needle shape. + * "rectangle" A needle shaped like a rectangle. + * "triangle" A needle shaped like a triangle. + * "needle" A needle shaped like a needle. + * "trapezoid" A needle shaped like a trapezoid. */ needleShape?: string; @@ -54256,10 +59055,36 @@ interface IgLinearGauge { font?: string; /** - * Gets or sets the pixel scaling ratio for the gauge. + * Gets or sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ pixelScalingRatio?: number; + + /** + * Event which is raised when a label of the the gauge is formatted. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of the gauge scale. + * Use ui.value to obtain the value on the the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + */ formatLabel?: FormatLabelEvent; + + /** + * Event which is raised when a label of the linear gauge is aligned along the scale. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of the gauge scale. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the gauge scale. + * Use ui.offsetY to obtain the Y offset of the label on the gauge scale. + */ alignLabel?: AlignLabelEvent; /** @@ -54273,6 +59098,7 @@ interface IgLinearGauge { [optionName: string]: any; } interface IgLinearGaugeMethods { + /** * Returns a string containing the names of all the ranges delimited with a \n symbol. */ @@ -55128,30 +59954,74 @@ interface JQuery { igLinearGauge(optionLiteral: 'option', optionName: "font", optionValue: string): void; /** - * Gets the pixel scaling ratio for the gauge. + * Gets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ igLinearGauge(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; /** - * Sets the pixel scaling ratio for the gauge. + * Sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. * * @optionValue New value to be set. */ igLinearGauge(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; /** + * Event which is raised when a label of the the gauge is formatted. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of the gauge scale. + * Use ui.value to obtain the value on the the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. */ igLinearGauge(optionLiteral: 'option', optionName: "formatLabel"): FormatLabelEvent; /** + * Event which is raised when a label of the the gauge is formatted. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of the gauge scale. + * Use ui.value to obtain the value on the the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * + * @optionValue Define event handler function. */ igLinearGauge(optionLiteral: 'option', optionName: "formatLabel", optionValue: FormatLabelEvent): void; /** + * Event which is raised when a label of the linear gauge is aligned along the scale. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of the gauge scale. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the gauge scale. + * Use ui.offsetY to obtain the Y offset of the label on the gauge scale. */ igLinearGauge(optionLiteral: 'option', optionName: "alignLabel"): AlignLabelEvent; /** + * Event which is raised when a label of the linear gauge is aligned along the scale. + * Function takes first argument evt and second argument ui. + * Use ui.owner to obtain reference to the gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of the gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of the gauge scale. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the gauge scale. + * Use ui.offsetY to obtain the Y offset of the label on the gauge scale. + * + * @optionValue Define event handler function. */ igLinearGauge(optionLiteral: 'option', optionName: "alignLabel", optionValue: AlignLabelEvent): void; @@ -55173,6 +60043,7 @@ interface JQuery { igLinearGauge(methodName: string, ...methodParams: any[]): any; } interface IgMapCrosshairPoint { + /** * The x coordinate. */ @@ -55190,6 +60061,7 @@ interface IgMapCrosshairPoint { } interface IgMapBackgroundContent { + /** * Type of the background content for the map. * @@ -55211,7 +60083,9 @@ interface IgMapBackgroundContent { parameter?: string; /** - * Gets or sets the map tile image uri. This is a bing maps specific option + * Gets or sets the map tile image uri. + * For Bing Maps this is populated by bing imagery. + * For Open Street Map this option can accept custom URL for the tiles. Default is: 'tile.openstreetmap.org/{Z}/{X}/{Y}.png'. No protocol set means that 'http://' or 'https://' will be prepended automatically depending on the hosting site protocol. {Z} - denotes tile zoom, {X} - denotes tile horizontal position, {Y} - denotes tile vertical position. */ tilePath?: string; @@ -55232,6 +60106,7 @@ interface IgMapBackgroundContent { } interface IgMapSeries { + /** * Type of the series. * @@ -55726,6 +60601,7 @@ interface TriangulationStatusChangedEvent { } interface TriangulationStatusChangedEventUIParam { + /** * Used to get reference to map object. */ @@ -55743,6 +60619,7 @@ interface TriangulationStatusChangedEventUIParam { } interface IgMap { + /** * The width of the map. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -56301,7 +61178,7 @@ interface IgMapMethods { /** * Either xAxis or yAxis (longitude or latitude) that it should scale the requested value into map space from axis space. - * For example you can use this method if you want to find where longitude 50 stands scaled to map's width. + * For example you can use this method if you want to find where longitude 50 stands scaled to map's width. * * @param targetName Either xAxis or yAxis to notify. * @param unscaledValue The value in axis space to translate into map space. @@ -56310,7 +61187,7 @@ interface IgMapMethods { /** * Either xAxis or yAxis (longitude or latitude) that it should unscale the requested value into axis space from map space. - * For example you can use this method if you want to find what is the longitude unscaled from 0 width of the map. + * For example you can use this method if you want to find what is the longitude unscaled from 0 width of the map. * * @param targetName Either xAxis or yAxis to notify. * @param scaledValue The value in map space to translate into axis space. @@ -56400,6 +61277,7 @@ interface JQuery { } interface ShapeDataSourceSettings { + /** * The unique identifier. */ @@ -56456,30 +61334,31 @@ interface ShapeDataSourceSettings { } declare namespace Infragistics { - class ShapeDataSource { - constructor(settings: ShapeDataSourceSettings); +export class ShapeDataSource { + constructor(settings: ShapeDataSourceSettings); - /** - * Loads to the current data source - */ - dataBind(): void; + /** + * Loads to the current data source + */ + dataBind(): void; - /** - * Returns true if data is loaded - */ - isBound(): boolean; + /** + * Returns true if data is loaded + */ + isBound(): boolean; - /** - * Returns the current converter instance - */ - converter(): Object; - } + /** + * Returns the current converter instance + */ + converter(): Object; +} } interface IgniteUIStatic { - ShapeDataSource: typeof Infragistics.ShapeDataSource; +ShapeDataSource: typeof Infragistics.ShapeDataSource; } interface TriangulationDataSourceSettings { + /** * The unique identifier. */ @@ -56512,27 +61391,27 @@ interface TriangulationDataSourceSettings { } declare namespace Infragistics { - class TriangulationDataSource { - constructor(settings: TriangulationDataSourceSettings); +export class TriangulationDataSource { + constructor(settings: TriangulationDataSourceSettings); - /** - * Loads to the current data source - */ - dataBind(): void; + /** + * Loads to the current data source + */ + dataBind(): void; - /** - * Returns true if data is loaded - */ - isBound(): boolean; + /** + * Returns true if data is loaded + */ + isBound(): boolean; - /** - * Returns the current converter instance - */ - converter(): Object; - } + /** + * Returns the current converter instance + */ + converter(): Object; +} } interface IgniteUIStatic { - TriangulationDataSource: typeof Infragistics.TriangulationDataSource; +TriangulationDataSource: typeof Infragistics.TriangulationDataSource; } interface JQuery { @@ -57523,6 +62402,7 @@ interface IgNotifierMessages { } interface IgNotifierHeaderTemplate { + /** * Controls whether the popover renders a functional close button * @@ -57542,6 +62422,7 @@ interface IgNotifierHeaderTemplate { } interface IgNotifier { + /** * Gets/Sets the current state of the igNotifier messages. State controls what CSS classes are applied to the messages and target and has interactions with other options as well. * @@ -57661,7 +62542,7 @@ interface IgNotifier { * controls the direction in which the control shows relative to the target element * * Valid values: - * "auto" lets the control show on the side where enough space is available with the following priority top > bottom > right > left + * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.igpopover#options:directionPriority) property * "left" shows popover on the left side of the target element * "right" shows popover on the right side of the target element * "top" shows popover on the top of the target element @@ -57669,6 +62550,12 @@ interface IgNotifier { */ direction?: string; + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + */ + directionPriority?: any[]; + /** * controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * @@ -57712,41 +62599,21 @@ interface IgNotifier { /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget */ showing?: ShowingEvent; /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget */ shown?: ShownEvent; /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget */ hiding?: HidingEvent; /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget */ hidden?: HiddenEvent; @@ -57756,6 +62623,7 @@ interface IgNotifier { [optionName: string]: any; } interface IgNotifierMethods { + /** * Triggers a notification with a certain state and optional message. The [notifyLevel](ui.ignotifier#options:notifyLevel) option determines if the notification will be displayed. * @@ -58052,6 +62920,20 @@ interface JQuery { */ igNotifier(optionLiteral: 'option', optionName: "direction", optionValue: string): void; + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + */ + igNotifier(optionLiteral: 'option', optionName: "directionPriority"): any[]; + + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * + * @optionValue New value to be set. + */ + igNotifier(optionLiteral: 'option', optionName: "directionPriority", optionValue: any[]): void; + /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area */ @@ -58138,21 +63020,11 @@ interface JQuery { /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget */ igNotifier(optionLiteral: 'option', optionName: "showing"): ShowingEvent; /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -58160,21 +63032,11 @@ interface JQuery { /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget */ igNotifier(optionLiteral: 'option', optionName: "shown"): ShownEvent; /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -58182,21 +63044,11 @@ interface JQuery { /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget */ igNotifier(optionLiteral: 'option', optionName: "hiding"): HidingEvent; /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -58204,21 +63056,11 @@ interface JQuery { /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget */ igNotifier(optionLiteral: 'option', optionName: "hidden"): HiddenEvent; /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -58230,6 +63072,7 @@ interface JQuery { igNotifier(methodName: string, ...methodParams: any[]): any; } interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsRequestOptions { + /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -58249,6 +63092,7 @@ interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsRequestOptions { } interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsMdxSettings { + /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -58286,6 +63130,7 @@ interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsMdxSettings { } interface IgPivotDataSelectorDataSourceOptionsXmlaOptions { + /** * Optional="false" The URL of the XMLA server. */ @@ -58340,6 +63185,7 @@ interface IgPivotDataSelectorDataSourceOptionsXmlaOptions { } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensionMeasure { + /** * Optional="false" A unique name for the measure. */ @@ -58368,6 +63214,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasure } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimension { + /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -58393,6 +63240,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasure } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchieLevel { + /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -58418,6 +63266,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensi } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchie { + /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -58449,6 +63298,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensi } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimension { + /** * Optional="false" A unique name for the dimension. */ @@ -58471,6 +63321,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensi } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCube { + /** * Optional="false" A unique name for the cube. */ @@ -58498,6 +63349,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCube { } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadata { + /** * Optional="false" Metadata used for the creation of the cube. */ @@ -58510,6 +63362,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadata { } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptions { + /** * Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -58550,6 +63403,7 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptions { } interface IgPivotDataSelectorDataSourceOptions { + /** * Settings for creating an instance of $.ig.OlapXmlaDataSource. */ @@ -58587,6 +63441,7 @@ interface IgPivotDataSelectorDataSourceOptions { } interface IgPivotDataSelectorDragAndDropSettings { + /** * Which element the draggable helper should be appended to while dragging. */ @@ -58614,6 +63469,7 @@ interface DataSelectorRenderedEvent { } interface DataSelectorRenderedEventUIParam { + /** * Used to get a reference to the data selector. */ @@ -58625,6 +63481,7 @@ interface DataSourceInitializedEvent { } interface DataSourceInitializedEventUIParam { + /** * Used to get a reference to the data selector. */ @@ -58651,6 +63508,7 @@ interface DataSourceUpdatedEvent { } interface DataSourceUpdatedEventUIParam { + /** * Used to get a reference to the data selector. */ @@ -58677,6 +63535,7 @@ interface DeferUpdateChangedEvent { } interface DeferUpdateChangedEventUIParam { + /** * Used to get a reference to the data selector. */ @@ -58693,6 +63552,7 @@ interface DragStartEvent { } interface DragStartEventUIParam { + /** * Used to get a reference to the data. */ @@ -58724,6 +63584,7 @@ interface DragEvent { } interface DragEventUIParam { + /** * Used to get a reference to the data. */ @@ -58755,6 +63616,7 @@ interface DragStopEvent { } interface DragStopEventUIParam { + /** * Used to get a reference to the helper. */ @@ -58781,6 +63643,7 @@ interface MetadataDroppingEvent { } interface MetadataDroppingEventUIParam { + /** * Used to the drop target. */ @@ -58822,6 +63685,7 @@ interface MetadataDroppedEvent { } interface MetadataDroppedEventUIParam { + /** * Used to the drop target. */ @@ -58863,6 +63727,7 @@ interface MetadataRemovingEvent { } interface MetadataRemovingEventUIParam { + /** * Used to the dragged element. */ @@ -58879,6 +63744,7 @@ interface MetadataRemovedEvent { } interface MetadataRemovedEventUIParam { + /** * Used to get a reference to the data. */ @@ -58890,6 +63756,7 @@ interface FilterDropDownOpeningEvent { } interface FilterDropDownOpeningEventUIParam { + /** * Used to the hierarchy. */ @@ -58901,6 +63768,7 @@ interface FilterDropDownOpenedEvent { } interface FilterDropDownOpenedEventUIParam { + /** * Used to the hierarchy. */ @@ -58917,6 +63785,7 @@ interface FilterMembersLoadedEvent { } interface FilterMembersLoadedEventUIParam { + /** * Used to get the parent node or the igTree instance in the initial load. */ @@ -58930,6 +63799,7 @@ interface FilterDropDownOkEvent { } interface FilterDropDownOkEventUIParam { + /** * Used to the hierarchy. */ @@ -58947,6 +63817,7 @@ interface FilterDropDownClosingEvent { } interface FilterDropDownClosingEventUIParam { + /** * Used to the hierarchy. */ @@ -58963,6 +63834,7 @@ interface FilterDropDownClosedEvent { } interface FilterDropDownClosedEventUIParam { + /** * Used to the hierarchy. */ @@ -59186,6 +64058,7 @@ interface IgPivotDataSelector { [optionName: string]: any; } interface IgPivotDataSelectorMethods { + /** * Updates the data source. */ @@ -59683,6 +64556,7 @@ interface JQuery { igPivotDataSelector(methodName: string, ...methodParams: any[]): any; } interface IgPivotGridDataSourceOptionsXmlaOptionsRequestOptions { + /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -59702,6 +64576,7 @@ interface IgPivotGridDataSourceOptionsXmlaOptionsRequestOptions { } interface IgPivotGridDataSourceOptionsXmlaOptionsMdxSettings { + /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -59739,6 +64614,7 @@ interface IgPivotGridDataSourceOptionsXmlaOptionsMdxSettings { } interface IgPivotGridDataSourceOptionsXmlaOptions { + /** * Optional="false" The URL of the XMLA server. */ @@ -59793,6 +64669,7 @@ interface IgPivotGridDataSourceOptionsXmlaOptions { } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensionMeasure { + /** * Optional="false" A unique name for the measure. */ @@ -59821,6 +64698,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimension { + /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -59846,6 +64724,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchieLevel { + /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -59871,6 +64750,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchie { + /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -59902,6 +64782,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimension { + /** * Optional="false" A unique name for the dimension. */ @@ -59924,6 +64805,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimension { } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCube { + /** * Optional="false" A unique name for the cube. */ @@ -59951,6 +64833,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCube { } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadata { + /** * Optional="false" Metadata used for the creation of the cube. */ @@ -59963,6 +64846,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadata { } interface IgPivotGridDataSourceOptionsFlatDataOptions { + /** * Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -60003,6 +64887,7 @@ interface IgPivotGridDataSourceOptionsFlatDataOptions { } interface IgPivotGridDataSourceOptions { + /** * Settings for creating an instance of $.ig.OlapXmlaDataSource. */ @@ -60040,6 +64925,7 @@ interface IgPivotGridDataSourceOptions { } interface IgPivotGridLevelSortDirection { + /** * Specifies the unique name of the level, which will be sorted. */ @@ -60066,6 +64952,7 @@ interface IgPivotGridLevelSortDirection { } interface IgPivotGridGridOptionsFeatures { + /** * Option for IgPivotGridGridOptionsFeatures */ @@ -60073,6 +64960,7 @@ interface IgPivotGridGridOptionsFeatures { } interface IgPivotGridGridOptions { + /** * Default column width that will be set for all columns. */ @@ -60115,13 +65003,14 @@ interface IgPivotGridGridOptions { } interface IgPivotGridDragAndDropSettings { + /** * Which element the draggable helper should be appended to while dragging. */ appendTo?: any; /** - * Specifies the containment for the drag helper. The area inside of which the helper is contained would be scrollable while dragging. + * Specifies the containment for the drag helper. The area inside of which the helper is contained would be scrollable while dragging. * */ containment?: boolean|string|Array; @@ -60142,6 +65031,7 @@ interface PivotGridHeadersRenderedEvent { } interface PivotGridHeadersRenderedEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60163,6 +65053,7 @@ interface PivotGridRenderedEvent { } interface PivotGridRenderedEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60179,6 +65070,7 @@ interface TupleMemberExpandingEvent { } interface TupleMemberExpandingEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60210,6 +65102,7 @@ interface TupleMemberExpandedEvent { } interface TupleMemberExpandedEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60241,6 +65134,7 @@ interface TupleMemberCollapsingEvent { } interface TupleMemberCollapsingEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60272,6 +65166,7 @@ interface TupleMemberCollapsedEvent { } interface TupleMemberCollapsedEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60303,6 +65198,7 @@ interface SortingEvent { } interface SortingEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60319,6 +65215,7 @@ interface SortedEvent { } interface SortedEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60340,6 +65237,7 @@ interface HeadersSortingEvent { } interface HeadersSortingEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60356,6 +65254,7 @@ interface HeadersSortedEvent { } interface HeadersSortedEventUIParam { + /** * Used to get a reference to the pivot grid. */ @@ -60793,6 +65692,7 @@ interface IgPivotGrid { [optionName: string]: any; } interface IgPivotGridMethods { + /** * Returns the igGrid instance used to render the OLAP data. */ @@ -61789,6 +66689,7 @@ interface JQuery { igPivotGrid(methodName: string, ...methodParams: any[]): any; } interface IgPivotViewDataSourceOptionsXmlaOptionsRequestOptions { + /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -61808,6 +66709,7 @@ interface IgPivotViewDataSourceOptionsXmlaOptionsRequestOptions { } interface IgPivotViewDataSourceOptionsXmlaOptionsMdxSettings { + /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -61845,6 +66747,7 @@ interface IgPivotViewDataSourceOptionsXmlaOptionsMdxSettings { } interface IgPivotViewDataSourceOptionsXmlaOptions { + /** * Optional="false" The URL of the XMLA server. */ @@ -61899,6 +66802,7 @@ interface IgPivotViewDataSourceOptionsXmlaOptions { } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensionMeasure { + /** * Optional="false" A unique name for the measure. */ @@ -61927,6 +66831,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimension { + /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -61952,6 +66857,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchieLevel { + /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -61977,6 +66883,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchie { + /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -62008,6 +66915,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimension { + /** * Optional="false" A unique name for the dimension. */ @@ -62030,6 +66938,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimension { } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCube { + /** * Optional="false" A unique name for the cube. */ @@ -62057,6 +66966,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCube { } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadata { + /** * Optional="false" Metadata used for the creation of the cube. */ @@ -62069,6 +66979,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadata { } interface IgPivotViewDataSourceOptionsFlatDataOptions { + /** * Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -62109,6 +67020,7 @@ interface IgPivotViewDataSourceOptionsFlatDataOptions { } interface IgPivotViewDataSourceOptions { + /** * Settings for creating an instance of $.ig.OlapXmlaDataSource. */ @@ -62146,6 +67058,7 @@ interface IgPivotViewDataSourceOptions { } interface IgPivotViewPivotGridOptionsLevelSortDirection { + /** * Specifies the unique name of the level, which will be sorted. */ @@ -62164,6 +67077,7 @@ interface IgPivotViewPivotGridOptionsLevelSortDirection { } interface IgPivotViewPivotGridOptionsGridOptionsFeatures { + /** * Option for IgPivotViewPivotGridOptionsGridOptionsFeatures */ @@ -62171,6 +67085,7 @@ interface IgPivotViewPivotGridOptionsGridOptionsFeatures { } interface IgPivotViewPivotGridOptionsGridOptions { + /** * Default column width that will be set for all columns. * @@ -62217,6 +67132,7 @@ interface IgPivotViewPivotGridOptionsGridOptions { } interface IgPivotViewPivotGridOptionsDragAndDropSettings { + /** * Which element the draggable helper should be appended to while dragging. */ @@ -62240,6 +67156,7 @@ interface IgPivotViewPivotGridOptionsDragAndDropSettings { } interface IgPivotViewPivotGridOptions { + /** * A boolean value indicating whether a parent in the columns is in front of its children. * If set to true, the query set sorts members in a level in their natural order - child members immediately follow their parent members. @@ -62380,6 +67297,7 @@ interface IgPivotViewPivotGridOptions { } interface IgPivotViewDataSelectorOptionsDragAndDropSettings { + /** * Which element the draggable helper should be appended to while dragging. */ @@ -62403,6 +67321,7 @@ interface IgPivotViewDataSelectorOptionsDragAndDropSettings { } interface IgPivotViewDataSelectorOptions { + /** * Settings for the drag and drop functionality of the igPivotDataSelector. */ @@ -62429,6 +67348,7 @@ interface IgPivotViewDataSelectorOptions { } interface IgPivotViewPivotGridPanel { + /** * Determines if the panel containing the igPivotGrid will be resizable. */ @@ -62461,6 +67381,7 @@ interface IgPivotViewPivotGridPanel { } interface IgPivotViewDataSelectorPanel { + /** * Determines the position of the data selector panel inside the igPivotView widget. */ @@ -62538,6 +67459,7 @@ interface IgPivotView { [optionName: string]: any; } interface IgPivotViewMethods { + /** * Returns the igPivotGrid instance of the pivot view. */ @@ -62555,9 +67477,9 @@ interface IgPivotViewMethods { /** * Destroy is part of the jQuery UI widget API and does the following: - * 1. Remove custom CSS classes that were added. - * 2. Unwrap any wrapping elements such as scrolling divs and other containers. - * 3. Unbind all events that were bound. + * 1. Remove custom CSS classes that were added. + * 2. Unwrap any wrapping elements such as scrolling divs and other containers. + * 3. Unbind all events that were bound. */ destroy(): void; } @@ -62667,6 +67589,7 @@ interface JQuery { igPivotView(methodName: string, ...methodParams: any[]): any; } interface IgPopover { + /** * Controls whether the popover will close on blur or not */ @@ -62676,7 +67599,7 @@ interface IgPopover { * controls the direction in which the control shows relative to the target element * * Valid values: - * "auto" lets the control show on the side where enough space is available with the following priority top > bottom > right > left + * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.igpopover#options:directionPriority) property * "left" shows popover on the left side of the target element * "right" shows popover on the right side of the target element * "top" shows popover on the top of the target element @@ -62684,6 +67607,12 @@ interface IgPopover { */ direction?: string; + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + */ + directionPriority?: any[]; + /** * controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * @@ -62771,41 +67700,21 @@ interface IgPopover { /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget */ showing?: ShowingEvent; /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget */ shown?: ShownEvent; /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget */ hiding?: HidingEvent; /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget */ hidden?: HiddenEvent; @@ -62815,6 +67724,7 @@ interface IgPopover { [optionName: string]: any; } interface IgPopoverMethods { + /** * Destroys the popover widget. */ @@ -62912,6 +67822,20 @@ interface JQuery { */ igPopover(optionLiteral: 'option', optionName: "direction", optionValue: string): void; + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + */ + igPopover(optionLiteral: 'option', optionName: "directionPriority"): any[]; + + /** + * Controls the priority in which the control searches for space to show relative to the target element. + * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * + * @optionValue New value to be set. + */ + igPopover(optionLiteral: 'option', optionName: "directionPriority", optionValue: any[]): void; + /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area */ @@ -63072,21 +67996,11 @@ interface JQuery { /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget */ igPopover(optionLiteral: 'option', optionName: "showing"): ShowingEvent; /** * Event fired before popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will show for. - * Use ui.content to get or set the content to be shown as a string. - * Use ui.popover to get the popover element showing. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -63094,21 +68008,11 @@ interface JQuery { /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget */ igPopover(optionLiteral: 'option', optionName: "shown"): ShownEvent; /** * Event fired after popover is shown. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover showed for. - * Use ui.content to get the content that was shown as a string. - * Use ui.popover to get the popover element shown. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -63116,21 +68020,11 @@ interface JQuery { /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget */ igPopover(optionLiteral: 'option', optionName: "hiding"): HidingEvent; /** * Event fired before popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover will hide for. - * Use ui.content to get the current content displayed in the popover as a string. - * Use ui.popover to get the popover element hiding. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -63138,21 +68032,11 @@ interface JQuery { /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget */ igPopover(optionLiteral: 'option', optionName: "hidden"): HiddenEvent; /** * Event fired after popover is hidden. - * Function takes arguments evt and ui. - * Use ui.element to get the element the popover is hidden for. - * Use ui.content to get the content displayed in the popover as a string. - * Use ui.popover to get the popover element hidden. - * Use ui.owner to get reference to the igPopover widget * * @optionValue Define event handler function. */ @@ -63164,6 +68048,7 @@ interface JQuery { igPopover(methodName: string, ...methodParams: any[]): any; } interface IgRadialGaugeRange { + /** * Gets or sets the name of the range. */ @@ -63226,6 +68111,7 @@ interface IgRadialGaugeRange { } interface IgRadialGauge { + /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -63297,8 +68183,8 @@ interface IgRadialGauge { * Gets or sets the direction in which the scale sweeps around the center from the start angle to end angle. * * Valid values: - * "counterclockwise" - * "clockwise" + * "counterclockwise" In a direction opposite the typical forward movement of the hands of a clock. + * "clockwise" In a direction corresponding to the typical forward movement of the hands of a clock. */ scaleSweepDirection?: string; @@ -63338,15 +68224,15 @@ interface IgRadialGauge { * Gets or sets the shape to use when rendering the needle from a number of options. * * Valid values: - * "none" - * "rectangle" - * "triangle" - * "needle" - * "trapezoid" - * "rectangleWithBulb" - * "triangleWithBulb" - * "needleWithBulb" - * "trapezoidWithBulb" + * "none" No shape. + * "rectangle" A rectangle shape. + * "triangle" A triangle shape. + * "needle" A needle shape. + * "trapezoid" A trapezoid shape. + * "rectangleWithBulb" A rectangle shape with a bulb at the end. + * "triangleWithBulb" A triangle shape with a bulb at the end. + * "needleWithBulb" A needle shape with a bulb at the end. + * "trapezoidWithBulb" A trapezoid shape with a bulb at the end. */ needleShape?: string; @@ -63363,13 +68249,13 @@ interface IgRadialGauge { needleEndWidthRatio?: number; /** - * Gets or sets the width of the needle at its feature which is closest to the base (e.g. a bulb) with a value from 0 to 1. Note: Only some needle shapes respect this property. + * Gets or sets the width of the needle at its feature which is closest to the base (e.g. a bulb) with a value from 0 to 1. Note: Only some needle shapes respect this property, namely: NeedleWithBulb, RectangleWithBulb, TrapezoidWithBulb, and TriangleWithBulb. * Values further from zero than 1 can be used to make this extend further than the normal radius of the gauge. */ needleBaseFeatureWidthRatio?: number; /** - * Gets or sets the extent of the feature which is closest to the base (e.g. a bulb) with a value from -1 to 1. Note: Only some needle shapes respect this property. + * Gets or sets the extent of the feature which is closest to the base (e.g. a bulb) with a value from -1 to 1. Note: Only some needle shapes respect this property, namely: NeedleWithBulb, RectangleWithBulb, TrapezoidWithBulb, and TriangleWithBulb. * Values further from zero than 1 can be used to make this extend further than the normal radius of the gauge. */ needleBaseFeatureExtent?: number; @@ -63401,13 +68287,13 @@ interface IgRadialGauge { * Gets or sets the shape to use for the needle cap. * * Valid values: - * "none" - * "circle" - * "circleWithHole" - * "circleOverlay" - * "circleOverlayWithHole" - * "circleUnderlay" - * "circleUnderlayWithHole" + * "none" No pivot shape. + * "circle" A circle shaped pivot. + * "circleWithHole" A circle pivot with a hole in it. + * "circleOverlay" A circle pivot overlayed on top of the needle. + * "circleOverlayWithHole" A circle pivot with a hole in it overlayed on top of the needle. + * "circleUnderlay" A circle pivot rendered underneath the needle. + * "circleUnderlayWithHole" A circle pivot with a hold in it rendered underneath the needle. */ needlePivotShape?: string; @@ -63544,12 +68430,12 @@ interface IgRadialGauge { scaleOversweep?: number; /** - * Gets or sets the over or shape to use for the excess fill area for the scale. + * Gets or sets the oversweep shape to use for the excess fill area for the scale. * * Valid values: - * "auto" - * "circular" - * "fitted" + * "auto" A default oversweep shape. + * "circular" A circular oversweep shape. + * "fitted" A fitted oversweep shape. */ scaleOversweepShape?: string; @@ -63567,8 +68453,8 @@ interface IgRadialGauge { * Gets or sets the type of shape to use for the backing of the gauge. * * Valid values: - * "circular" - * "fitted" + * "circular" A circular backing shape. + * "fitted" A fitted backing shape. */ backingShape?: string; @@ -63583,10 +68469,10 @@ interface IgRadialGauge { * Gets or sets the strategy to use for omitting labels if the first and last label have the same value. * * Valid values: - * "omitLast" - * "omitFirst" - * "omitNeither" - * "omitBoth" + * "omitLast" Omit the last label. + * "omitFirst" Omit the first label. + * "omitNeither" Omit no labels. + * "omitBoth" Omit both labels. */ duplicateLabelOmissionStrategy?: string; @@ -63611,10 +68497,42 @@ interface IgRadialGauge { transitionProgress?: number; /** - * Gets or sets the scaling value used by the main canvas rendering context to apply a scale transform to it. + * Gets or sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ pixelScalingRatio?: number; + + /** + * Event which is raised when a label of the gauge is formatted. + * Function takes first argument null and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of gauge scale. + * Use ui.startAngle to obtain the starting angle of gauge scale. + * Use ui.endAngle to obtain the ending angle of gauge scale. + * Use ui.angle to obtain the angle on the gauge scale at which the label will be located. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + */ formatLabel?: FormatLabelEvent; + + /** + * Event which is raised when a label of the gauge is aligned along the scale. + * Function takes first argument null and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of gauge scale. + * Use ui.startAngle to obtain the starting angle of gauge scale. + * Use ui.endAngle to obtain the ending angle of gauge scale. + * Use ui.angle to obtain the angle on the gauge scale at which the label will be located. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the gauge scale. + * Use ui.offsetY to obtain the Y offset of the label on the gauge scale. + */ alignLabel?: AlignLabelEvent; /** @@ -63628,6 +68546,7 @@ interface IgRadialGauge { [optionName: string]: any; } interface IgRadialGaugeMethods { + /** * Returns a string containing the names of all the ranges delimited with a \n symbol. */ @@ -64026,13 +68945,13 @@ interface JQuery { igRadialGauge(optionLiteral: 'option', optionName: "needleEndWidthRatio", optionValue: number): void; /** - * Gets the width of the needle at its feature which is closest to the base (e.g. a bulb) with a value from 0 to 1. Note: Only some needle shapes respect this property. + * Gets the width of the needle at its feature which is closest to the base (e.g. a bulb) with a value from 0 to 1. Note: Only some needle shapes respect this property, namely: NeedleWithBulb, RectangleWithBulb, TrapezoidWithBulb, and TriangleWithBulb. * Values further from zero than 1 can be used to make this extend further than the normal radius of the gauge. */ igRadialGauge(optionLiteral: 'option', optionName: "needleBaseFeatureWidthRatio"): number; /** - * Sets the width of the needle at its feature which is closest to the base (e.g. a bulb) with a value from 0 to 1. Note: Only some needle shapes respect this property. + * Sets the width of the needle at its feature which is closest to the base (e.g. a bulb) with a value from 0 to 1. Note: Only some needle shapes respect this property, namely: NeedleWithBulb, RectangleWithBulb, TrapezoidWithBulb, and TriangleWithBulb. * Values further from zero than 1 can be used to make this extend further than the normal radius of the gauge. * * @optionValue New value to be set. @@ -64040,13 +68959,13 @@ interface JQuery { igRadialGauge(optionLiteral: 'option', optionName: "needleBaseFeatureWidthRatio", optionValue: number): void; /** - * Gets the extent of the feature which is closest to the base (e.g. a bulb) with a value from -1 to 1. Note: Only some needle shapes respect this property. + * Gets the extent of the feature which is closest to the base (e.g. a bulb) with a value from -1 to 1. Note: Only some needle shapes respect this property, namely: NeedleWithBulb, RectangleWithBulb, TrapezoidWithBulb, and TriangleWithBulb. * Values further from zero than 1 can be used to make this extend further than the normal radius of the gauge. */ igRadialGauge(optionLiteral: 'option', optionName: "needleBaseFeatureExtent"): number; /** - * Sets the extent of the feature which is closest to the base (e.g. a bulb) with a value from -1 to 1. Note: Only some needle shapes respect this property. + * Sets the extent of the feature which is closest to the base (e.g. a bulb) with a value from -1 to 1. Note: Only some needle shapes respect this property, namely: NeedleWithBulb, RectangleWithBulb, TrapezoidWithBulb, and TriangleWithBulb. * Values further from zero than 1 can be used to make this extend further than the normal radius of the gauge. * * @optionValue New value to be set. @@ -64434,12 +69353,12 @@ interface JQuery { igRadialGauge(optionLiteral: 'option', optionName: "scaleOversweep", optionValue: number): void; /** - * Gets the over or shape to use for the excess fill area for the scale. + * Gets the oversweep shape to use for the excess fill area for the scale. */ igRadialGauge(optionLiteral: 'option', optionName: "scaleOversweepShape"): string; /** - * Sets the over or shape to use for the excess fill area for the scale. + * Sets the oversweep shape to use for the excess fill area for the scale. * * @optionValue New value to be set. */ @@ -64558,30 +69477,86 @@ interface JQuery { igRadialGauge(optionLiteral: 'option', optionName: "transitionProgress", optionValue: number): void; /** - * Gets the scaling value used by the main canvas rendering context to apply a scale transform to it. + * Gets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ igRadialGauge(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; /** - * Sets the scaling value used by the main canvas rendering context to apply a scale transform to it. + * Sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. * * @optionValue New value to be set. */ igRadialGauge(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; /** + * Event which is raised when a label of the gauge is formatted. + * Function takes first argument null and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of gauge scale. + * Use ui.startAngle to obtain the starting angle of gauge scale. + * Use ui.endAngle to obtain the ending angle of gauge scale. + * Use ui.angle to obtain the angle on the gauge scale at which the label will be located. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. */ igRadialGauge(optionLiteral: 'option', optionName: "formatLabel"): FormatLabelEvent; /** + * Event which is raised when a label of the gauge is formatted. + * Function takes first argument null and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of gauge scale. + * Use ui.startAngle to obtain the starting angle of gauge scale. + * Use ui.endAngle to obtain the ending angle of gauge scale. + * Use ui.angle to obtain the angle on the gauge scale at which the label will be located. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * + * @optionValue Define event handler function. */ igRadialGauge(optionLiteral: 'option', optionName: "formatLabel", optionValue: FormatLabelEvent): void; /** + * Event which is raised when a label of the gauge is aligned along the scale. + * Function takes first argument null and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of gauge scale. + * Use ui.startAngle to obtain the starting angle of gauge scale. + * Use ui.endAngle to obtain the ending angle of gauge scale. + * Use ui.angle to obtain the angle on the gauge scale at which the label will be located. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the gauge scale. + * Use ui.offsetY to obtain the Y offset of the label on the gauge scale. */ igRadialGauge(optionLiteral: 'option', optionName: "alignLabel"): AlignLabelEvent; /** + * Event which is raised when a label of the gauge is aligned along the scale. + * Function takes first argument null and second argument ui. + * Use ui.owner to obtain reference to gauge widget. + * Use ui.actualMinimumValue to obtain the minimum value of gauge scale. + * Use ui.actualMaximumValue to obtain the maximum value of gauge scale. + * Use ui.startAngle to obtain the starting angle of gauge scale. + * Use ui.endAngle to obtain the ending angle of gauge scale. + * Use ui.angle to obtain the angle on the gauge scale at which the label will be located. + * Use ui.value to obtain the value on the gauge scale associated with the label. + * Use ui.label to obtain the string value of the label. + * Use ui.width to obtain the width of the label. + * Use ui.height to obtain the height of the label. + * Use ui.offsetX to obtain the X offset of the label on the gauge scale. + * Use ui.offsetY to obtain the Y offset of the label on the gauge scale. + * + * @optionValue Define event handler function. */ igRadialGauge(optionLiteral: 'option', optionName: "alignLabel", optionValue: AlignLabelEvent): void; @@ -64603,6 +69578,7 @@ interface JQuery { igRadialGauge(methodName: string, ...methodParams: any[]): any; } interface IgRadialMenuItem { + /** * Gets or sets a value indicating what type of item is being provided. * @@ -64923,6 +69899,7 @@ interface ClosedEvent { } interface ClosedEventUIParam { + /** * Used to obtain reference to menu widget. */ @@ -64934,6 +69911,7 @@ interface OpenedEvent { } interface OpenedEventUIParam { + /** * Used to obtain reference to menu widget. */ @@ -64941,6 +69919,7 @@ interface OpenedEventUIParam { } interface IgRadialMenu { + /** * Gets or sets the items in the menu. */ @@ -65092,6 +70071,7 @@ interface IgRadialMenu { [optionName: string]: any; } interface IgRadialMenuMethods { + /** * Gets or sets the value of a property for the item created with the specified key * @@ -65494,6 +70474,7 @@ interface HoverChangeEvent { } interface HoverChangeEventUIParam { + /** * Used to get new value. */ @@ -65510,6 +70491,7 @@ interface ValueChangeEvent { } interface ValueChangeEventUIParam { + /** * Used to get new value. */ @@ -65522,6 +70504,7 @@ interface ValueChangeEventUIParam { } interface IgRating { + /** * Gets a vertical or horizontal orientation for the votes. * Change of that option is not supported after igRating was created. @@ -65671,6 +70654,7 @@ interface IgRating { [optionName: string]: any; } interface IgRatingMethods { + /** * Gets reference to [igValidator](ui.igvalidator) used by igRating. * @@ -66042,40 +71026,802 @@ interface JQuery { igRating(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igRating(methodName: string, ...methodParams: any[]): any; } +interface IgSchedulerAgendaViewSettings { + + /** + * Gets/Sets the number of days shown in AgendaView mode. + * + */ + dateRangeInterval?: number; + + /** + * Option for IgSchedulerAgendaViewSettings + */ + [optionName: string]: any; +} + +interface IgSchedulerMonthViewSettings { + + /** + * Gets/Sets the type of content displayed in a MonthView day. + * + * auto Depending on the screen size, indicates square indicator mode for the appointment in the Month View, if scheduler size is larger than 768px, otherwise identifies horizontal one. + * indicator Indicates that a square indicator should be displayed. + * detailed Indicates that the subject should be displayed. + */ + appointmentMode?: string; + + /** + * Gets/Sets the visibility of an AgendaView in a MonthView. When true, the MonthView will display an AgendaView showing the Appointments for the currently selected day at the top of its list of Appointments. + * + */ + isAgendaVisible?: boolean; + + /** + * Gets/Sets the scope of appointments that are displayed in a MonthView's AgendaView. + * + * allAppointments Indicates that appointments for all days should be displayed in an AgendaView when it is a secondary view within a MonthView. + * onlyAppointmentsForSelectedMonthViewDay Indicates that only appointments for the day that is current selected in the associated MonthView should be displayed in an AgendaView that is associated with a MonthView as a secondary view. + */ + agendaVisibilityType?: string; + + /** + * Gets/Sets the orientation, which determines whether the MonthView and AgendaView views are split vertically or horizontally. This option can be used when the AgendaView is displayed in the MonthView. + * + * auto Depending on the screen size, identifies vertical split if scheduler size is larger than 768px, otherwise identifies horizontal one. + * vertical Identifies a vertical split between the Scheduler's views. + * horizontal Identifies a horizontal split between the Scheduler's views. + */ + viewSplitOrientation?: string; + + /** + * Gets/sets the visibility of the horizontal separators between weeks in the MonthView. + * + */ + isHorizontalSeparatorVisibile?: boolean; + + /** + * Gets/sets the visibility of the vertical separators between days of the week in a MonthView. + * + */ + isVerticalSeparatorVisibile?: boolean; + + /** + * Gets/sets the visibility of the weekday names in MonthView. + * + */ + isWeekdayVisible?: boolean; + + /** + * Gets/sets the visibility of the week numbers in a MonthView. + * + */ + isWeekNumberVisible?: boolean; + + /** + * Gets/sets the visibility of the days from the previous month that occur in the first week of a given month. + * + */ + isPreviousMonthShown?: boolean; + + /** + * Gets/sets the visibility of the days from the next month that occur in the last week of a given month. + * + */ + isNextMonthShown?: boolean; + + /** + * Option for IgSchedulerMonthViewSettings + */ + [optionName: string]: any; +} + +interface AgendaRangeChangingEvent { + (event: Event, ui: AgendaRangeChangingEventUIParam): void; +} + +interface AgendaRangeChangingEventUIParam { +} + +interface AgendaRangeChangedEvent { + (event: Event, ui: AgendaRangeChangedEventUIParam): void; +} + +interface AgendaRangeChangedEventUIParam { +} + +interface DaySelectedEvent { + (event: Event, ui: DaySelectedEventUIParam): void; +} + +interface DaySelectedEventUIParam { +} + +interface MonthChangingEvent { + (event: Event, ui: MonthChangingEventUIParam): void; +} + +interface MonthChangingEventUIParam { +} + +interface MonthChangedEvent { + (event: Event, ui: MonthChangedEventUIParam): void; +} + +interface MonthChangedEventUIParam { +} + +interface ViewChangingEvent { + (event: Event, ui: ViewChangingEventUIParam): void; +} + +interface ViewChangingEventUIParam { +} + +interface ViewChangedEvent { + (event: Event, ui: ViewChangedEventUIParam): void; +} + +interface ViewChangedEventUIParam { +} + +interface AppointmentDialogOpeningEvent { + (event: Event, ui: AppointmentDialogOpeningEventUIParam): void; +} + +interface AppointmentDialogOpeningEventUIParam { +} + +interface AppointmentDialogOpenedEvent { + (event: Event, ui: AppointmentDialogOpenedEventUIParam): void; +} + +interface AppointmentDialogOpenedEventUIParam { +} + +interface AppointmentDialogClosingEvent { + (event: Event, ui: AppointmentDialogClosingEventUIParam): void; +} + +interface AppointmentDialogClosingEventUIParam { +} + +interface AppointmentDialogClosedEvent { + (event: Event, ui: AppointmentDialogClosedEventUIParam): void; +} + +interface AppointmentDialogClosedEventUIParam { +} + +interface AppointmentCreatingEvent { + (event: Event, ui: AppointmentCreatingEventUIParam): void; +} + +interface AppointmentCreatingEventUIParam { +} + +interface AppointmentCreatedEvent { + (event: Event, ui: AppointmentCreatedEventUIParam): void; +} + +interface AppointmentCreatedEventUIParam { +} + +interface AppointmentDeletingEvent { + (event: Event, ui: AppointmentDeletingEventUIParam): void; +} + +interface AppointmentDeletingEventUIParam { +} + +interface AppointmentDeletedEvent { + (event: Event, ui: AppointmentDeletedEventUIParam): void; +} + +interface AppointmentDeletedEventUIParam { +} + +interface AppointmentEditingEvent { + (event: Event, ui: AppointmentEditingEventUIParam): void; +} + +interface AppointmentEditingEventUIParam { +} + +interface AppointmentEditedEvent { + (event: Event, ui: AppointmentEditedEventUIParam): void; +} + +interface AppointmentEditedEventUIParam { +} + +interface IgScheduler { + + /** + * Lists of all the views, rendered in the Scheduler. + * + */ + views?: any[]; + + /** + * Gets/Sets current view mode in the Scheduler. If this options is not defined, then the first defined view in the views property is taken. + * + * + * Valid values: + * "monthView" Enables MonthView in the Scheduler. + * "agendaView" Enables AgendaView in the Scheduler. + */ + viewMode?: string; + + /** + * Enables/Disables today button. + * + */ + selectedDate?: boolean; + + /** + * Gets/Sets the width of the control. + * + * + * Valid values: + * "null" will stretch to fit data, if no other widths are defined. + */ + width?: string|number; + + /** + * Gets/Sets the height of the control. + * + * + * Valid values: + * "null" will fit the editor inside its parent container, if no other heights are defined. + */ + height?: string|number; + + /** + * Gets/Sets AgendaView settings. + * + */ + agendaViewSettings?: IgSchedulerAgendaViewSettings; + + /** + * Gets/Sets MonthView settings. + * + */ + monthViewSettings?: IgSchedulerMonthViewSettings; + + /** + * Gets/Sets whether the appointment dialog and the related day and appointment popups should be shown. + * + */ + appointmentDialogSuppress?: boolean; + + /** + * Fired before agenda view range is changed when using previous and next buttons (fired only in Agenda View) + */ + agendaRangeChanging?: AgendaRangeChangingEvent; + + /** + * Fired after agenda view range is changed when using previous and next buttons (fired only in Agenda View) + */ + agendaRangeChanged?: AgendaRangeChangedEvent; + + /** + * Fired when a day is selected from the datepicker calendar. + */ + daySelected?: DaySelectedEvent; + + /** + * Fired before changing the month begins, when using previous and next buttons (fired only in Month View) + */ + monthChanging?: MonthChangingEvent; + + /** + * Fired after month is changed when using previous and next buttons (fired only in Month View) + */ + monthChanged?: MonthChangedEvent; + + /** + * Fired before rendering of the scheduler begins. + */ + rendering?: RenderingEvent; + + /** + * Fired after rendering of the scheduler has finished. + */ + rendered?: RenderedEvent; + + /** + * Fired before the view is changed, when using the menu buttons. + */ + viewChanging?: ViewChangingEvent; + + /** + * Fired after the view is changed, when using the menu buttons. + */ + viewChanged?: ViewChangedEvent; + + /** + * Fired before opening the dialog for creating/editing appointment. + */ + appointmentDialogOpening?: AppointmentDialogOpeningEvent; + + /** + * Fired after opening the dialog for creating/editing appointment. + */ + appointmentDialogOpened?: AppointmentDialogOpenedEvent; + + /** + * Fired before closing the dialog for adding/editing appointment. + */ + appointmentDialogClosing?: AppointmentDialogClosingEvent; + + /** + * Fired after closing the dialog window for adding/editing appointment. + */ + appointmentDialogClosed?: AppointmentDialogClosedEvent; + + /** + * Fired before an appointment is created. + */ + appointmentCreating?: AppointmentCreatingEvent; + + /** + * Fired after an appointment is created. + */ + appointmentCreated?: AppointmentCreatedEvent; + + /** + * Fired before an appointment is deleted. + */ + appointmentDeleting?: AppointmentDeletingEvent; + + /** + * Fired after an appointment is deleted. + */ + appointmentDeleted?: AppointmentDeletedEvent; + + /** + * Fired before an appointment is edited. + */ + appointmentEditing?: AppointmentEditingEvent; + + /** + * Fired after an appointment is edited. + */ + appointmentEdited?: AppointmentEditedEvent; + + /** + * Option for igScheduler + */ + [optionName: string]: any; +} +interface IgSchedulerMethods { + + /** + * Gets reference to appointment by id + * + * @param id + */ + getAppointmentById(id: Object): Object; + + /** + * Creates a new appointment and renders it to the scheduler + * + * @param appointment + */ + createAppointment(appointment: Object): Object; + + /** + * Deletes appointment from the appointment collection + * + * @param appointment appointment + */ + deleteAppointment(appointment: Object): Object; + + /** + * Deletes appointment from the appointment collection + * + * @param appointment appointment + * @param updateAppoinment updateAppoinment + */ + editAppointment(appointment: Object, updateAppoinment: Object): Object; + + /** + * Destroys the widget + */ + destroy(): void; + + /** + * Gets reference to the today UI button. + */ + todayButton(): string; + + /** + * Gets reference to the previous UI button. + */ + previousButton(): string; + + /** + * Gets reference to the date range UI button. + */ + dateRangeButton(): string; + + /** + * Gets reference to the next UI button. + */ + nextButton(): string; + + /** + * Gets reference to the jQuery calendar UI control. + */ + getCalendar(): string; +} +interface JQuery { + data(propertyName: "igScheduler"): IgSchedulerMethods; +} + +interface JQuery { + igScheduler(methodName: "getAppointmentById", id: Object): Object; + igScheduler(methodName: "createAppointment", appointment: Object): Object; + igScheduler(methodName: "deleteAppointment", appointment: Object): Object; + igScheduler(methodName: "editAppointment", appointment: Object, updateAppoinment: Object): Object; + igScheduler(methodName: "destroy"): void; + igScheduler(methodName: "todayButton"): string; + igScheduler(methodName: "previousButton"): string; + igScheduler(methodName: "dateRangeButton"): string; + igScheduler(methodName: "nextButton"): string; + igScheduler(methodName: "getCalendar"): string; + + /** + * Lists of all the views, rendered in the Scheduler. + * + */ + igScheduler(optionLiteral: 'option', optionName: "views"): any[]; + + /** + * Lists of all the views, rendered in the Scheduler. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "views", optionValue: any[]): void; + + /** + * Gets/Sets current view mode in the Scheduler. If this options is not defined, then the first defined view in the views property is taken. + * + */ + igScheduler(optionLiteral: 'option', optionName: "viewMode"): string; + + /** + * /Sets current view mode in the Scheduler. If this options is not defined, then the first defined view in the views property is taken. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "viewMode", optionValue: string): void; + + /** + * Enables/Disables today button. + * + */ + igScheduler(optionLiteral: 'option', optionName: "selectedDate"): boolean; + + /** + * Enables/Disables today button. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "selectedDate", optionValue: boolean): void; + + /** + * Gets/Sets the width of the control. + * + */ + igScheduler(optionLiteral: 'option', optionName: "width"): string|number; + + /** + * /Sets the width of the control. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; + + /** + * Gets/Sets the height of the control. + * + */ + igScheduler(optionLiteral: 'option', optionName: "height"): string|number; + + /** + * /Sets the height of the control. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; + + /** + * Gets/Sets AgendaView settings. + * + */ + igScheduler(optionLiteral: 'option', optionName: "agendaViewSettings"): IgSchedulerAgendaViewSettings; + + /** + * /Sets AgendaView settings. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "agendaViewSettings", optionValue: IgSchedulerAgendaViewSettings): void; + + /** + * Gets/Sets MonthView settings. + * + */ + igScheduler(optionLiteral: 'option', optionName: "monthViewSettings"): IgSchedulerMonthViewSettings; + + /** + * /Sets MonthView settings. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "monthViewSettings", optionValue: IgSchedulerMonthViewSettings): void; + + /** + * Gets/Sets whether the appointment dialog and the related day and appointment popups should be shown. + * + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogSuppress"): boolean; + + /** + * /Sets whether the appointment dialog and the related day and appointment popups should be shown. + * + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogSuppress", optionValue: boolean): void; + + /** + * Fired before agenda view range is changed when using previous and next buttons (fired only in Agenda View) + */ + igScheduler(optionLiteral: 'option', optionName: "agendaRangeChanging"): AgendaRangeChangingEvent; + + /** + * Fired before agenda view range is changed when using previous and next buttons (fired only in Agenda View) + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "agendaRangeChanging", optionValue: AgendaRangeChangingEvent): void; + + /** + * Fired after agenda view range is changed when using previous and next buttons (fired only in Agenda View) + */ + igScheduler(optionLiteral: 'option', optionName: "agendaRangeChanged"): AgendaRangeChangedEvent; + + /** + * Fired after agenda view range is changed when using previous and next buttons (fired only in Agenda View) + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "agendaRangeChanged", optionValue: AgendaRangeChangedEvent): void; + + /** + * Fired when a day is selected from the datepicker calendar. + */ + igScheduler(optionLiteral: 'option', optionName: "daySelected"): DaySelectedEvent; + + /** + * Fired when a day is selected from the datepicker calendar. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "daySelected", optionValue: DaySelectedEvent): void; + + /** + * Fired before changing the month begins, when using previous and next buttons (fired only in Month View) + */ + igScheduler(optionLiteral: 'option', optionName: "monthChanging"): MonthChangingEvent; + + /** + * Fired before changing the month begins, when using previous and next buttons (fired only in Month View) + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "monthChanging", optionValue: MonthChangingEvent): void; + + /** + * Fired after month is changed when using previous and next buttons (fired only in Month View) + */ + igScheduler(optionLiteral: 'option', optionName: "monthChanged"): MonthChangedEvent; + + /** + * Fired after month is changed when using previous and next buttons (fired only in Month View) + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "monthChanged", optionValue: MonthChangedEvent): void; + + /** + * Fired before rendering of the scheduler begins. + */ + igScheduler(optionLiteral: 'option', optionName: "rendering"): RenderingEvent; + + /** + * Fired before rendering of the scheduler begins. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "rendering", optionValue: RenderingEvent): void; + + /** + * Fired after rendering of the scheduler has finished. + */ + igScheduler(optionLiteral: 'option', optionName: "rendered"): RenderedEvent; + + /** + * Fired after rendering of the scheduler has finished. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "rendered", optionValue: RenderedEvent): void; + + /** + * Fired before the view is changed, when using the menu buttons. + */ + igScheduler(optionLiteral: 'option', optionName: "viewChanging"): ViewChangingEvent; + + /** + * Fired before the view is changed, when using the menu buttons. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "viewChanging", optionValue: ViewChangingEvent): void; + + /** + * Fired after the view is changed, when using the menu buttons. + */ + igScheduler(optionLiteral: 'option', optionName: "viewChanged"): ViewChangedEvent; + + /** + * Fired after the view is changed, when using the menu buttons. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "viewChanged", optionValue: ViewChangedEvent): void; + + /** + * Fired before opening the dialog for creating/editing appointment. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogOpening"): AppointmentDialogOpeningEvent; + + /** + * Fired before opening the dialog for creating/editing appointment. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogOpening", optionValue: AppointmentDialogOpeningEvent): void; + + /** + * Fired after opening the dialog for creating/editing appointment. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogOpened"): AppointmentDialogOpenedEvent; + + /** + * Fired after opening the dialog for creating/editing appointment. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogOpened", optionValue: AppointmentDialogOpenedEvent): void; + + /** + * Fired before closing the dialog for adding/editing appointment. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogClosing"): AppointmentDialogClosingEvent; + + /** + * Fired before closing the dialog for adding/editing appointment. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogClosing", optionValue: AppointmentDialogClosingEvent): void; + + /** + * Fired after closing the dialog window for adding/editing appointment. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogClosed"): AppointmentDialogClosedEvent; + + /** + * Fired after closing the dialog window for adding/editing appointment. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDialogClosed", optionValue: AppointmentDialogClosedEvent): void; + + /** + * Fired before an appointment is created. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentCreating"): AppointmentCreatingEvent; + + /** + * Fired before an appointment is created. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentCreating", optionValue: AppointmentCreatingEvent): void; + + /** + * Fired after an appointment is created. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentCreated"): AppointmentCreatedEvent; + + /** + * Fired after an appointment is created. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentCreated", optionValue: AppointmentCreatedEvent): void; + + /** + * Fired before an appointment is deleted. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDeleting"): AppointmentDeletingEvent; + + /** + * Fired before an appointment is deleted. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDeleting", optionValue: AppointmentDeletingEvent): void; + + /** + * Fired after an appointment is deleted. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDeleted"): AppointmentDeletedEvent; + + /** + * Fired after an appointment is deleted. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentDeleted", optionValue: AppointmentDeletedEvent): void; + + /** + * Fired before an appointment is edited. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentEditing"): AppointmentEditingEvent; + + /** + * Fired before an appointment is edited. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentEditing", optionValue: AppointmentEditingEvent): void; + + /** + * Fired after an appointment is edited. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentEdited"): AppointmentEditedEvent; + + /** + * Fired after an appointment is edited. + * + * @optionValue New value to be set. + */ + igScheduler(optionLiteral: 'option', optionName: "appointmentEdited", optionValue: AppointmentEditedEvent): void; + igScheduler(options: IgScheduler): JQuery; + igScheduler(optionLiteral: 'option', optionName: string): any; + igScheduler(optionLiteral: 'option', options: IgScheduler): JQuery; + igScheduler(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igScheduler(methodName: string, ...methodParams: any[]): any; +} interface ScrollingEvent { (event: Event, ui: ScrollingEventUIParam): void; } interface ScrollingEventUIParam { - /** - * Used to obtain reference to igScroll. - */ - owner?: any; - - /** - * Used to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - */ - smallIncrement?: any; - - /** - * Used to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - */ - bigIncrement?: any; - - /** - * Used to obtain which axis is being used to scroll - horizontal(true) or vertical(false). - */ - horizontal?: any; - - /** - * Used to obtain how much the content will be scrolled horizontally - */ - stepX?: any; - - /** - * Used to obtain how much the content will be scrolled vertically - */ - stepY?: any; } interface ScrolledEvent { @@ -66083,25 +71829,6 @@ interface ScrolledEvent { } interface ScrolledEventUIParam { - /** - * Used to obtain reference to igScroll. - */ - owner?: any; - - /** - * Used to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - */ - smallIncrement?: any; - - /** - * Used to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - */ - bigIncrement?: any; - - /** - * Used to obtain which axis is being used to scroll - horizontal(true) or vertical(false). - */ - horizontal?: any; } interface ThumbDragStartEvent { @@ -66109,15 +71836,6 @@ interface ThumbDragStartEvent { } interface ThumbDragStartEventUIParam { - /** - * Used to obtain reference to igScroll. - */ - owner?: any; - - /** - * Used to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). - */ - horizontal?: any; } interface ThumbDragMoveEvent { @@ -66125,25 +71843,6 @@ interface ThumbDragMoveEvent { } interface ThumbDragMoveEventUIParam { - /** - * Used to obtain reference to igScroll. - */ - owner?: any; - - /** - * Used to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). - */ - horizontal?: any; - - /** - * Used to obtain how much the content will be scrolled horizontally - */ - stepX?: any; - - /** - * Used to obtain how much the content will be scrolled vertically - */ - stepY?: any; } interface ThumbDragEndEvent { @@ -66151,18 +71850,34 @@ interface ThumbDragEndEvent { } interface ThumbDragEndEventUIParam { +} + +interface ResizingEvent { + (event: Event, ui: ResizingEventUIParam): void; +} + +interface ResizingEventUIParam { + /** * Used to obtain reference to igScroll. */ owner?: any; +} + +interface ResizedEvent { + (event: Event, ui: ResizedEventUIParam): void; +} + +interface ResizedEventUIParam { /** - * Used to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). + * Used to obtain reference to igScroll. */ - horizontal?: any; + owner?: any; } interface IgScroll { + /** * Sets or gets if the scrollbars should be always visible (on all environments). Otherwise it will be the default behavior. Note: this option is only for the custom scrollbars set through the scrollbarType option. * @@ -66326,66 +72041,50 @@ interface IgScroll { /** * Event which is raised after the scroller has been rendered fully - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. */ rendered?: RenderedEvent; /** * Event which is raised before scrolling or before each step when having inertia. * Return false in order to cancel action. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.smallIncrement to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - * Use args.bigIncrement to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - * Use args.horizontal to obtain which axis is being used to scroll - horizontal(true) or vertical(false). - * Use args.stepX to obtain how much the content will be scrolled horizontally - * Use args.stepY to obtain how much the content will be scrolled vertically */ scrolling?: ScrollingEvent; /** * Event which is raised after scrolling has stopped. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.smallIncrement to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - * Use args.bigIncrement to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - * Use args.horizontal to obtain which axis is being used to scroll - horizontal(true) or vertical(false). */ scrolled?: ScrolledEvent; /** * Event which is raised when there is mouse click on the scrollbar's thumb drag. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). */ thumbDragStart?: ThumbDragStartEvent; /** * Event which is raised when the thumb drag is being moved. - * Return false in order to cancel action. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). - * Use args.stepX to obtain how much the content will be scrolled horizontally - * Use args.stepY to obtain how much the content will be scrolled vertically */ thumbDragMove?: ThumbDragMoveEvent; /** * Event which is raised on mouse up from the scrollbar's thumb drag. + */ + thumbDragEnd?: ThumbDragEndEvent; + + /** + * Event which is raised when the igScroll detects that the element is reizing. * Function takes arguments evt and args. * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). */ - thumbDragEnd?: ThumbDragEndEvent; + resizing?: ResizingEvent; + + /** + * Event which is raised after the igScroll has finished resizing. + * Function takes arguments evt and args. + * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. + * Use args.owner to obtain reference to igScroll. + */ + resized?: ResizedEvent; /** * Option for igScroll @@ -66772,17 +72471,11 @@ interface JQuery { /** * Event which is raised after the scroller has been rendered fully - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. */ igScroll(optionLiteral: 'option', optionName: "rendered"): RenderedEvent; /** * Event which is raised after the scroller has been rendered fully - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. * * @optionValue Define event handler function. */ @@ -66791,28 +72484,12 @@ interface JQuery { /** * Event which is raised before scrolling or before each step when having inertia. * Return false in order to cancel action. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.smallIncrement to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - * Use args.bigIncrement to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - * Use args.horizontal to obtain which axis is being used to scroll - horizontal(true) or vertical(false). - * Use args.stepX to obtain how much the content will be scrolled horizontally - * Use args.stepY to obtain how much the content will be scrolled vertically */ igScroll(optionLiteral: 'option', optionName: "scrolling"): ScrollingEvent; /** * Event which is raised before scrolling or before each step when having inertia. * Return false in order to cancel action. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.smallIncrement to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - * Use args.bigIncrement to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - * Use args.horizontal to obtain which axis is being used to scroll - horizontal(true) or vertical(false). - * Use args.stepX to obtain how much the content will be scrolled horizontally - * Use args.stepY to obtain how much the content will be scrolled vertically * * @optionValue Define event handler function. */ @@ -66820,23 +72497,11 @@ interface JQuery { /** * Event which is raised after scrolling has stopped. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.smallIncrement to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - * Use args.bigIncrement to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - * Use args.horizontal to obtain which axis is being used to scroll - horizontal(true) or vertical(false). */ igScroll(optionLiteral: 'option', optionName: "scrolled"): ScrolledEvent; /** * Event which is raised after scrolling has stopped. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.smallIncrement to obtain if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. - * Use args.bigIncrement to obtain if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. - * Use args.horizontal to obtain which axis is being used to scroll - horizontal(true) or vertical(false). * * @optionValue Define event handler function. */ @@ -66844,19 +72509,11 @@ interface JQuery { /** * Event which is raised when there is mouse click on the scrollbar's thumb drag. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). */ igScroll(optionLiteral: 'option', optionName: "thumbDragStart"): ThumbDragStartEvent; /** * Event which is raised when there is mouse click on the scrollbar's thumb drag. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). * * @optionValue Define event handler function. */ @@ -66864,25 +72521,11 @@ interface JQuery { /** * Event which is raised when the thumb drag is being moved. - * Return false in order to cancel action. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). - * Use args.stepX to obtain how much the content will be scrolled horizontally - * Use args.stepY to obtain how much the content will be scrolled vertically */ igScroll(optionLiteral: 'option', optionName: "thumbDragMove"): ThumbDragMoveEvent; /** * Event which is raised when the thumb drag is being moved. - * Return false in order to cancel action. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). - * Use args.stepX to obtain how much the content will be scrolled horizontally - * Use args.stepY to obtain how much the content will be scrolled vertically * * @optionValue Define event handler function. */ @@ -66890,23 +72533,51 @@ interface JQuery { /** * Event which is raised on mouse up from the scrollbar's thumb drag. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). */ igScroll(optionLiteral: 'option', optionName: "thumbDragEnd"): ThumbDragEndEvent; /** * Event which is raised on mouse up from the scrollbar's thumb drag. - * Function takes arguments evt and args. - * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. - * Use args.owner to obtain reference to igScroll. - * Use args.horizontal to obtain which scrollbar thumb is being used - horizontal(true) or vertical(false). * * @optionValue Define event handler function. */ igScroll(optionLiteral: 'option', optionName: "thumbDragEnd", optionValue: ThumbDragEndEvent): void; + + /** + * Event which is raised when the igScroll detects that the element is reizing. + * Function takes arguments evt and args. + * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. + * Use args.owner to obtain reference to igScroll. + */ + igScroll(optionLiteral: 'option', optionName: "resizing"): ResizingEvent; + + /** + * Event which is raised when the igScroll detects that the element is reizing. + * Function takes arguments evt and args. + * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. + * Use args.owner to obtain reference to igScroll. + * + * @optionValue Define event handler function. + */ + igScroll(optionLiteral: 'option', optionName: "resizing", optionValue: ResizingEvent): void; + + /** + * Event which is raised after the igScroll has finished resizing. + * Function takes arguments evt and args. + * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. + * Use args.owner to obtain reference to igScroll. + */ + igScroll(optionLiteral: 'option', optionName: "resized"): ResizedEvent; + + /** + * Event which is raised after the igScroll has finished resizing. + * Function takes arguments evt and args. + * Use evt.originalEvent (with validation for not null of evt) to obtain reference to event of browser. + * Use args.owner to obtain reference to igScroll. + * + * @optionValue Define event handler function. + */ + igScroll(optionLiteral: 'option', optionName: "resized", optionValue: ResizedEvent): void; igScroll(options: IgScroll): JQuery; igScroll(optionLiteral: 'option', optionName: string): any; igScroll(optionLiteral: 'option', options: IgScroll): JQuery; @@ -66935,6 +72606,7 @@ interface JQuery { } interface IgSliderBookmarks { + /** * Get or set the bookmark value. Should be between slider min and max values. */ @@ -67004,6 +72676,7 @@ interface BookmarkClickEventUIParam { } interface IgSlider { + /** * Get or set whether the slide handle will animate when it is moved. */ @@ -67217,6 +72890,7 @@ interface JQuery { } interface IgResponsiveContainer { + /** * The time between two resize checks in milliseconds. */ @@ -67228,6 +72902,7 @@ interface IgResponsiveContainer { [optionName: string]: any; } interface IgResponsiveContainerMethods { + /** * Destroys the ResponsiveContainer widget */ @@ -67789,6 +73464,7 @@ interface JQuery { igResponsiveContainer(methodName: string, ...methodParams: any[]): any; } interface IgSparkline { + /** * The width of the sparkline. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -67863,8 +73539,8 @@ interface IgSparkline { * Gets or sets the display state of the horizontal axis. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ horizontalAxisVisibility?: string; @@ -67872,8 +73548,8 @@ interface IgSparkline { * Gets or sets the display state of the vertical axis. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ verticalAxisVisibility?: string; @@ -67881,8 +73557,8 @@ interface IgSparkline { * Gets or sets the marker visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ markerVisibility?: string; @@ -67890,8 +73566,8 @@ interface IgSparkline { * Gets or sets the negative marker visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ negativeMarkerVisibility?: string; @@ -67899,8 +73575,8 @@ interface IgSparkline { * Gets or sets the first marker visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ firstMarkerVisibility?: string; @@ -67908,8 +73584,8 @@ interface IgSparkline { * Gets or sets the last marker visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ lastMarkerVisibility?: string; @@ -67917,8 +73593,8 @@ interface IgSparkline { * Gets or sets the low marker visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ lowMarkerVisibility?: string; @@ -67926,8 +73602,8 @@ interface IgSparkline { * Gets or sets the high marker visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ highMarkerVisibility?: string; @@ -67935,8 +73611,8 @@ interface IgSparkline { * Gets or sets the normal range visibility of the sparkline. * * Valid values: - * "visible" - * "collapsed" + * "visible" Display the element. + * "collapsed" Do not display the element. */ normalRangeVisibility?: string; @@ -67994,20 +73670,20 @@ interface IgSparkline { * Gets or sets the type of trendline used by the sparkline. * * Valid values: - * "none" - * "linearFit" - * "quadraticFit" - * "cubicFit" - * "quarticFit" - * "quinticFit" - * "logarithmicFit" - * "exponentialFit" - * "powerLawFit" - * "simpleAverage" - * "exponentialAverage" - * "modifiedAverage" - * "cumulativeAverage" - * "weightedAverage" + * "none" No trend line will be displayed. + * "linearFit" Linear fit. + * "quadraticFit" Quadratic polynomial fit. + * "cubicFit" Cubic polynomial fit. + * "quarticFit" Quartic polynomial fit. + * "quinticFit" Quintic polynomial fit. + * "logarithmicFit" Logarithmic fit. + * "exponentialFit" Exponential fit. + * "powerLawFit" Powerlaw fit. + * "simpleAverage" Simple moving average. + * "exponentialAverage" Exponential moving average. + * "modifiedAverage" Modified moving average. + * "cumulativeAverage" Cumulative moving average. + * "weightedAverage" Weighted moving average. */ trendLineType?: string; @@ -68046,8 +73722,8 @@ interface IgSparkline { * Gets or sets the way null values are interpreted. * * Valid values: - * "linearInterpolate" - * "dontPlot" + * "linearInterpolate" Plot the unknown value as the midpoint between surrounding known values using linear interpolation. + * "dontPlot" Do not plot the unknown value on the chart. */ unknownValuePlotting?: string; @@ -68067,6 +73743,12 @@ interface IgSparkline { * Sets or gets a function which takes an object that produces a formatted label for displaying in the chart. */ formatLabel?: any; + + /** + * Gets or sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + */ pixelScalingRatio?: number; /** @@ -68216,7 +73898,7 @@ interface IgSparklineMethods { /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. */ @@ -68224,7 +73906,7 @@ interface IgSparklineMethods { /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source where the new item has been inserted. @@ -68234,7 +73916,7 @@ interface IgSparklineMethods { /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * * @param dataSource The data source in which the change happened. * @param index The index in the items source from where the old item has been removed. @@ -68251,6 +73933,11 @@ interface IgSparklineMethods { * Binds data to the chart */ dataBind(): void; + + /** + * Forces any pending deferred work to render on the chart before continuing + */ + flush(): void; } interface JQuery { data(propertyName: "igSparkline"): IgSparklineMethods; @@ -68271,6 +73958,7 @@ interface JQuery { igSparkline(methodName: "notifyRemoveItem", dataSource: Object, index: number, oldItem: Object): Object; igSparkline(methodName: "chart"): Object; igSparkline(methodName: "dataBind"): void; + igSparkline(methodName: "flush"): void; /** * The width of the sparkline. It can be set as a number in pixels, string (px) or percentage (%). @@ -68793,10 +74481,18 @@ interface JQuery { igSparkline(optionLiteral: 'option', optionName: "formatLabel", optionValue: any): void; /** + * Gets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. */ igSparkline(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; /** + * Sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + * + * @optionValue New value to be set. */ igSparkline(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; @@ -68984,6 +74680,7 @@ interface JQuery { igSparkline(methodName: string, ...methodParams: any[]): any; } interface IgSplitButtonItem { + /** * Item name */ @@ -69006,6 +74703,7 @@ interface IgSplitButtonItem { } interface IgSplitButton { + /** * Button items. * @@ -69070,6 +74768,7 @@ interface IgSplitButton { [optionName: string]: any; } interface IgSplitButtonMethods { + /** * Switch to given igToolbar button. * @@ -69254,6 +74953,7 @@ interface JQuery { igSplitButton(methodName: string, ...methodParams: any[]): any; } interface IgSplitterPanel { + /** * Gets the size of the panel * @@ -69301,17 +75001,7 @@ interface ResizeStartedEvent { } interface ResizeStartedEventUIParam { - /** - * Used to get a reference to the splitter instance. - */ - owner?: any; -} -interface ResizingEvent { - (event: Event, ui: ResizingEventUIParam): void; -} - -interface ResizingEventUIParam { /** * Used to get a reference to the splitter instance. */ @@ -69323,6 +75013,7 @@ interface ResizeEndedEvent { } interface ResizeEndedEventUIParam { + /** * Used to get a reference to the splitter instance. */ @@ -69334,6 +75025,7 @@ interface LayoutRefreshingEvent { } interface LayoutRefreshingEventUIParam { + /** * Used to get a reference to the splitter instance. */ @@ -69345,6 +75037,7 @@ interface LayoutRefreshedEvent { } interface LayoutRefreshedEventUIParam { + /** * Used to get a reference to the splitter instance. */ @@ -69352,6 +75045,7 @@ interface LayoutRefreshedEventUIParam { } interface IgSplitter { + /** * Gets/Sets the width of the container. * @@ -69462,6 +75156,7 @@ interface IgSplitter { [optionName: string]: any; } interface IgSplitterMethods { + /** * Returns the element that represents this widget. */ @@ -69749,7 +75444,766 @@ interface JQuery { igSplitter(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igSplitter(methodName: string, ...methodParams: any[]): any; } +interface ActivePaneChangedEvent { + (event: Event, ui: ActivePaneChangedEventUIParam): void; +} + +interface ActivePaneChangedEventUIParam { +} + +interface ActiveWorksheetChangedEvent { + (event: Event, ui: ActiveWorksheetChangedEventUIParam): void; +} + +interface ActiveWorksheetChangedEventUIParam { +} + +interface EditRangePasswordNeededEvent { + (event: Event, ui: EditRangePasswordNeededEventUIParam): void; +} + +interface EditRangePasswordNeededEventUIParam { +} + +interface HyperlinkExecutingEvent { + (event: Event, ui: HyperlinkExecutingEventUIParam): void; +} + +interface HyperlinkExecutingEventUIParam { +} + +interface UserPromptDisplayingEvent { + (event: Event, ui: UserPromptDisplayingEventUIParam): void; +} + +interface UserPromptDisplayingEventUIParam { +} + +interface WorkbookDirtiedEvent { + (event: Event, ui: WorkbookDirtiedEventUIParam): void; +} + +interface WorkbookDirtiedEventUIParam { +} + +interface IgSpreadsheet { + + /** + * The width of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). + * + * + * Valid values: + * "string" The widget width can be set in pixels (px) and percentage (%). + * "number" The widget width can be set as a number + */ + width?: string|number; + + /** + * The height of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). + * + * + * Valid values: + * "string" The widget height can be set in pixels (px) and percentage (%). + * "number" The widget height can be set as a number + */ + height?: string|number; + + /** + * Returns or sets the A1 format address of the current active cell within the selected worksheet. + * + */ + activeCell?: string; + + /** + * Returns or sets a boolean indicating whether the scroll lock key is toggled. + * This property is used when certain keys are pressed while the control has focus. For example + * if an arrow key is pressed while the scroll lock is enabled the cell area will be scrolled rather than changing + * the active cell. Note: This property is not maintained/changed by the control. It is just queried when + * performing actions that consider whether the scroll lock is enabled. + * + */ + isScrollLocked?: boolean; + + /** + * Returns or sets the Worksheet from the workbook whose content should be displayed within the control. + * + */ + activeWorksheet?: any; + + /** + * Returns or sets a boolean indicating whether the spreadsheet allows adding worksheets. + * + */ + allowAddWorksheet?: boolean; + + /** + * Returns or sets a boolean indicating whether the spreadsheet allows deleting worksheets. + * + */ + allowDeleteWorksheet?: boolean; + + /** + * Returns or sets a boolean indicating if the grid lines are displayed in the selected worksheets. + * + */ + areGridlinesVisible?: boolean; + + /** + * Returns or sets a boolean indicating if the row and column headers are displayed for the selected worksheets. + * + */ + areHeadersVisible?: boolean; + + /** + * Returns or sets an enumeration indicating the direction of the cell adjacent to the activeCell that should be activated when the enter key is pressed.This property is only used if the isEnterKeyNavigationEnabled is set to true. Also, the reverse direction is + * navigated when Shift + Enter are pressed. + * + * + * + * Valid values: + * "down" The cell below should be activated. + * "right" The cell to the right should be activated + * "up" The cell above should be activated. + * "left" The cell to the left should be activated + */ + enterKeyNavigationDirection?: string; + + /** + * Returns or sets a boolean indicating whether the adjacent cell indicated by the enterKeyNavigationDirection should be navigated to when the enter key is pressed. + * + */ + isEnterKeyNavigationEnabled?: boolean; + + /** + * Returns or sets a boolean indicating if the formula bar is displayed within the Spreadsheet. + * + */ + isFormulaBarVisible?: boolean; + + /** + * Returns or sets a boolean indicating whether the control is in "End mode". + * End mode is a mode that affects certain keyboard navigation such as navigating with the arrow keys. For example when in + * end mode and one presses the right arrow, the activeCell will be changed to be the first cell to the right of the current ActiveCell + * that has a value (even if the value is ""). If there were no cells to the right with a value then it would activate the right most cell in that row. End + * mode will end automatically such as when one presses an arrow key. + * + */ + isInEndMode?: boolean; + + /** + * Returns or sets a boolean indicating whether undo is enabled for the control. + * + */ + isUndoEnabled?: boolean; + + /** + * Returns or sets the width of the name box within the formula bar. + * + */ + nameBoxWidth?: number; + + /** + * Returns or sets a value indicating how the selection is updated when interacting with the cells via the mouse or keyboard. + * + * + * Valid values: + * "normal" The selection is replaced when dragging the mouse to select a cell or range of cells. Similarly when navigating via the keyboard a new selection is created. One may add a new range by holding the Ctrl key and using the mouse and one may alter the selection range containing the active cell by holding the Shift key down while clicking with the mouse or navigating with the keyboard such as with the arrow keys. + * "extendSelection" The selection range in the cellRanges representing the active cell is updated as one uses the mouse to select a cell or navigating via the keyboard. + * "addToSelection" New cell ranges are added to the cellRanges without needing to hold down the ctrl key when dragging via the mouse and a range is added with the first arrow key navigation after entering the mode. One can enter the mode by pressing Shift+F8. + */ + selectionMode?: string; + + /** + * Type="ig.excel.Worksheet[]" Returns or sets an array of the Worksheets whose tabs are selected. + * + */ + selectedWorksheets?: any; + + /** + * Returns or sets the position of the screen tip used to display the input message for the data validation rule associated with the active cell. + * + * The provided object should have numeric properties called x and y. + */ + validationInputMessagePosition?: any; + + /** + * Returns or sets the workbook whose information is displayed in the control. + * + */ + workbook?: any; + + /** + * Returns or sets the magnification of the selected worksheets. + * + */ + zoomLevel?: number; + + /** + * Invoked when an action is executed on the Spreadsheet. + */ + actionExecuted?: ActionExecutedEvent; + + /** + * Invoked when an action is about to be executed by the Spreadsheet. + */ + actionExecuting?: ActionExecutingEvent; + + /** + * Invoked when the activeCell of the Spreadsheet has changed. + */ + activeCellChanged?: ActiveCellChangedEvent; + + /** + * Invoked when the activePane of the Spreadsheet has changed. + */ + activePaneChanged?: ActivePaneChangedEvent; + + /** + * Invoked when the activeWorksheet of the Spreadsheet has changed. + */ + activeWorksheetChanged?: ActiveWorksheetChangedEvent; + + /** + * Invoked when the Spreadsheet is performing an operation on a protected Worksheet and there is a single range that may be unlocked to allow the operation to be performed. + */ + editRangePasswordNeeded?: EditRangePasswordNeededEvent; + + /** + * Invoked when a hyperlink is being followed in the Spreadsheet. + */ + hyperlinkExecuting?: HyperlinkExecutingEvent; + + /** + * Invoked when the selection for a ig.spreadsheet.SpreadsheetPane of the Spreadsheet is changed. + */ + selectionChanged?: SelectionChangedEvent; + + /** + * Invoked when the user will be prompted with a message regarding an operation that is being performed. + */ + userPromptDisplaying?: UserPromptDisplayingEvent; + + /** + * Invoked when a change has been made to the workbook that might require a save. + * Note: This event is invoked asynchronously with regards to the change(s) that + * have occurred. Also some changes alone are not considered to dirty the Workbook even though it + * does change state on the Workbook or one of its subobjects. An example of that would be a zoom + * type operation (e.g. changing the magnificationInNormalView). + */ + workbookDirtied?: WorkbookDirtiedEvent; + + /** + * Option for igSpreadsheet + */ + [optionName: string]: any; +} +interface IgSpreadsheetMethods { + + /** + * Returns an object that represents the pane with the focus. + */ + getActivePane(): Object; + + /** + * Returns an object that represents the current selection of the active pane. + */ + getActiveSelection(): Object; + + /** + * Returns an object used to get the formatting of the activeCell and where modifications are applied to the entire active selection. + * Any changes made to this object will affect all the objects in the selection. So for example, the + * Font.Name may return "Arial" because the active cell has that as its resolved font name even though the other + * cells are using a different font but if you set the Font.Name of this object to "Arial" then all the objects + * affected by the selection will have their Font.Name updated to that value. + */ + getActiveSelectionCellRangeFormat(): Object; + + /** + * Returns a boolean indicating if the user is currently editing the name of the active worksheet. + */ + getIsRenamingWorksheet(): boolean; + + /** + * Returns an array of the panes for the activeWorksheet. + * + * returnType="ig.spreadsheet.SpreadsheetPane[]" + */ + getPanes(): void; + + /** + * Executes the action associated with the specified id. + * + * @param action An [enumeration](ig.spreadsheet.SpreadsheetAction) or string that identifies the action to execute. + */ + executeAction(action: Object): boolean; + + /** + * Forces any pending deferred work to render on the spreadsheet before continuing + */ + flush(): void; + + /** + * Destroys the widget. + */ + destroy(): void; + + /** + * Notify the spreadsheet that style information used for rendering the spreadsheet may have been updated. + */ + styleUpdated(): void; +} +interface JQuery { + data(propertyName: "igSpreadsheet"): IgSpreadsheetMethods; +} + +interface JQuery { + igSpreadsheet(methodName: "getActivePane"): Object; + igSpreadsheet(methodName: "getActiveSelection"): Object; + igSpreadsheet(methodName: "getActiveSelectionCellRangeFormat"): Object; + igSpreadsheet(methodName: "getIsRenamingWorksheet"): boolean; + igSpreadsheet(methodName: "getPanes"): void; + igSpreadsheet(methodName: "executeAction", action: Object): boolean; + igSpreadsheet(methodName: "flush"): void; + igSpreadsheet(methodName: "destroy"): void; + igSpreadsheet(methodName: "styleUpdated"): void; + + /** + * The width of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "width"): string|number; + + /** + * The width of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; + + /** + * The height of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "height"): string|number; + + /** + * The height of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; + + /** + * Returns the A1 format address of the current active cell within the selected worksheet. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeCell"): string; + + /** + * Returns or sets the A1 format address of the current active cell within the selected worksheet. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeCell", optionValue: string): void; + + /** + * Returns a boolean indicating whether the scroll lock key is toggled. + * This property is used when certain keys are pressed while the control has focus. For example + * if an arrow key is pressed while the scroll lock is enabled the cell area will be scrolled rather than changing + * the active cell. Note: This property is not maintained/changed by the control. It is just queried when + * performing actions that consider whether the scroll lock is enabled. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isScrollLocked"): boolean; + + /** + * Returns or sets a boolean indicating whether the scroll lock key is toggled. + * This property is used when certain keys are pressed while the control has focus. For example + * if an arrow key is pressed while the scroll lock is enabled the cell area will be scrolled rather than changing + * the active cell. Note: This property is not maintained/changed by the control. It is just queried when + * performing actions that consider whether the scroll lock is enabled. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isScrollLocked", optionValue: boolean): void; + + /** + * Returns the Worksheet from the workbook whose content should be displayed within the control. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeWorksheet"): any; + + /** + * Returns or sets the Worksheet from the workbook whose content should be displayed within the control. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeWorksheet", optionValue: any): void; + + /** + * Returns a boolean indicating whether the spreadsheet allows adding worksheets. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "allowAddWorksheet"): boolean; + + /** + * Returns or sets a boolean indicating whether the spreadsheet allows adding worksheets. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "allowAddWorksheet", optionValue: boolean): void; + + /** + * Returns a boolean indicating whether the spreadsheet allows deleting worksheets. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "allowDeleteWorksheet"): boolean; + + /** + * Returns or sets a boolean indicating whether the spreadsheet allows deleting worksheets. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "allowDeleteWorksheet", optionValue: boolean): void; + + /** + * Returns a boolean indicating if the grid lines are displayed in the selected worksheets. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "areGridlinesVisible"): boolean; + + /** + * Returns or sets a boolean indicating if the grid lines are displayed in the selected worksheets. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "areGridlinesVisible", optionValue: boolean): void; + + /** + * Returns a boolean indicating if the row and column headers are displayed for the selected worksheets. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "areHeadersVisible"): boolean; + + /** + * Returns or sets a boolean indicating if the row and column headers are displayed for the selected worksheets. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "areHeadersVisible", optionValue: boolean): void; + + /** + * Returns an enumeration indicating the direction of the cell adjacent to the activeCell that should be activated when the enter key is pressed.This property is only used if the isEnterKeyNavigationEnabled is set to true. Also, the reverse direction is + * navigated when Shift + Enter are pressed. + * + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "enterKeyNavigationDirection"): string; + + /** + * Returns or sets an enumeration indicating the direction of the cell adjacent to the activeCell that should be activated when the enter key is pressed.This property is only used if the isEnterKeyNavigationEnabled is set to true. Also, the reverse direction is + * navigated when Shift + Enter are pressed. + * + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "enterKeyNavigationDirection", optionValue: string): void; + + /** + * Returns a boolean indicating whether the adjacent cell indicated by the enterKeyNavigationDirection should be navigated to when the enter key is pressed. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isEnterKeyNavigationEnabled"): boolean; + + /** + * Returns or sets a boolean indicating whether the adjacent cell indicated by the enterKeyNavigationDirection should be navigated to when the enter key is pressed. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isEnterKeyNavigationEnabled", optionValue: boolean): void; + + /** + * Returns a boolean indicating if the formula bar is displayed within the Spreadsheet. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isFormulaBarVisible"): boolean; + + /** + * Returns or sets a boolean indicating if the formula bar is displayed within the Spreadsheet. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isFormulaBarVisible", optionValue: boolean): void; + + /** + * Returns a boolean indicating whether the control is in "End mode". + * End mode is a mode that affects certain keyboard navigation such as navigating with the arrow keys. For example when in + * end mode and one presses the right arrow, the activeCell will be changed to be the first cell to the right of the current ActiveCell + * that has a value (even if the value is ""). If there were no cells to the right with a value then it would activate the right most cell in that row. End + * mode will end automatically such as when one presses an arrow key. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isInEndMode"): boolean; + + /** + * Returns or sets a boolean indicating whether the control is in "End mode". + * End mode is a mode that affects certain keyboard navigation such as navigating with the arrow keys. For example when in + * end mode and one presses the right arrow, the activeCell will be changed to be the first cell to the right of the current ActiveCell + * that has a value (even if the value is ""). If there were no cells to the right with a value then it would activate the right most cell in that row. End + * mode will end automatically such as when one presses an arrow key. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isInEndMode", optionValue: boolean): void; + + /** + * Returns a boolean indicating whether undo is enabled for the control. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isUndoEnabled"): boolean; + + /** + * Returns or sets a boolean indicating whether undo is enabled for the control. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "isUndoEnabled", optionValue: boolean): void; + + /** + * Returns the width of the name box within the formula bar. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "nameBoxWidth"): number; + + /** + * Returns or sets the width of the name box within the formula bar. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "nameBoxWidth", optionValue: number): void; + + /** + * Returns a value indicating how the selection is updated when interacting with the cells via the mouse or keyboard. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectionMode"): string; + + /** + * Returns or sets a value indicating how the selection is updated when interacting with the cells via the mouse or keyboard. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectionMode", optionValue: string): void; + + /** + * Type="ig.excel.Worksheet[]" Returns an array of the Worksheets whose tabs are selected. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectedWorksheets"): any; + + /** + * Type="ig.excel.Worksheet[]" Returns or sets an array of the Worksheets whose tabs are selected. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectedWorksheets", optionValue: any): void; + + /** + * Returns the position of the screen tip used to display the input message for the data validation rule associated with the active cell. + * + * The provided object should have numeric properties called x and y. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "validationInputMessagePosition"): any; + + /** + * Returns or sets the position of the screen tip used to display the input message for the data validation rule associated with the active cell. + * + * The provided object should have numeric properties called x and y. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "validationInputMessagePosition", optionValue: any): void; + + /** + * Returns the workbook whose information is displayed in the control. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "workbook"): any; + + /** + * Returns or sets the workbook whose information is displayed in the control. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "workbook", optionValue: any): void; + + /** + * Returns the magnification of the selected worksheets. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "zoomLevel"): number; + + /** + * Returns or sets the magnification of the selected worksheets. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "zoomLevel", optionValue: number): void; + + /** + * Invoked when an action is executed on the Spreadsheet. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "actionExecuted"): ActionExecutedEvent; + + /** + * Invoked when an action is executed on the Spreadsheet. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "actionExecuted", optionValue: ActionExecutedEvent): void; + + /** + * Invoked when an action is about to be executed by the Spreadsheet. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "actionExecuting"): ActionExecutingEvent; + + /** + * Invoked when an action is about to be executed by the Spreadsheet. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "actionExecuting", optionValue: ActionExecutingEvent): void; + + /** + * Invoked when the activeCell of the Spreadsheet has changed. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeCellChanged"): ActiveCellChangedEvent; + + /** + * Invoked when the activeCell of the Spreadsheet has changed. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeCellChanged", optionValue: ActiveCellChangedEvent): void; + + /** + * Invoked when the activePane of the Spreadsheet has changed. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activePaneChanged"): ActivePaneChangedEvent; + + /** + * Invoked when the activePane of the Spreadsheet has changed. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activePaneChanged", optionValue: ActivePaneChangedEvent): void; + + /** + * Invoked when the activeWorksheet of the Spreadsheet has changed. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeWorksheetChanged"): ActiveWorksheetChangedEvent; + + /** + * Invoked when the activeWorksheet of the Spreadsheet has changed. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "activeWorksheetChanged", optionValue: ActiveWorksheetChangedEvent): void; + + /** + * Invoked when the Spreadsheet is performing an operation on a protected Worksheet and there is a single range that may be unlocked to allow the operation to be performed. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "editRangePasswordNeeded"): EditRangePasswordNeededEvent; + + /** + * Invoked when the Spreadsheet is performing an operation on a protected Worksheet and there is a single range that may be unlocked to allow the operation to be performed. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "editRangePasswordNeeded", optionValue: EditRangePasswordNeededEvent): void; + + /** + * Invoked when a hyperlink is being followed in the Spreadsheet. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "hyperlinkExecuting"): HyperlinkExecutingEvent; + + /** + * Invoked when a hyperlink is being followed in the Spreadsheet. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "hyperlinkExecuting", optionValue: HyperlinkExecutingEvent): void; + + /** + * Invoked when the selection for a ig.spreadsheet.SpreadsheetPane of the Spreadsheet is changed. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectionChanged"): SelectionChangedEvent; + + /** + * Invoked when the selection for a ig.spreadsheet.SpreadsheetPane of the Spreadsheet is changed. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectionChanged", optionValue: SelectionChangedEvent): void; + + /** + * Invoked when the user will be prompted with a message regarding an operation that is being performed. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "userPromptDisplaying"): UserPromptDisplayingEvent; + + /** + * Invoked when the user will be prompted with a message regarding an operation that is being performed. + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "userPromptDisplaying", optionValue: UserPromptDisplayingEvent): void; + + /** + * Invoked when a change has been made to the workbook that might require a save. + * Note: This event is invoked asynchronously with regards to the change(s) that + * have occurred. Also some changes alone are not considered to dirty the Workbook even though it + * does change state on the Workbook or one of its subobjects. An example of that would be a zoom + * type operation (e.g. changing the magnificationInNormalView). + */ + igSpreadsheet(optionLiteral: 'option', optionName: "workbookDirtied"): WorkbookDirtiedEvent; + + /** + * Invoked when a change has been made to the workbook that might require a save. + * Note: This event is invoked asynchronously with regards to the change(s) that + * have occurred. Also some changes alone are not considered to dirty the Workbook even though it + * does change state on the Workbook or one of its subobjects. An example of that would be a zoom + * type operation (e.g. changing the magnificationInNormalView). + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "workbookDirtied", optionValue: WorkbookDirtiedEvent): void; + igSpreadsheet(options: IgSpreadsheet): JQuery; + igSpreadsheet(optionLiteral: 'option', optionName: string): any; + igSpreadsheet(optionLiteral: 'option', options: IgSpreadsheet): JQuery; + igSpreadsheet(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igSpreadsheet(methodName: string, ...methodParams: any[]): any; +} interface IgTileManagerSplitterOptionsEvents { + /** * Event fired after collapsing is performed. Not cancellable. * @@ -69775,6 +76229,7 @@ interface IgTileManagerSplitterOptionsEvents { } interface IgTileManagerSplitterOptions { + /** * Gets/Sets whether the splitter should be enabled. * @@ -69810,6 +76265,7 @@ interface TileRenderingEvent { } interface TileRenderingEventUIParam { + /** * Used to get a reference to the tile manager performing rendering. */ @@ -69826,6 +76282,7 @@ interface TileRenderedEvent { } interface TileRenderedEventUIParam { + /** * Used to get a reference to the tile manager performing rendering. */ @@ -69842,6 +76299,7 @@ interface TileMaximizingEvent { } interface TileMaximizingEventUIParam { + /** * Used to get a reference to the tile manager performing the maximizing the tile belongs to. */ @@ -69863,6 +76321,7 @@ interface TileMaximizedEvent { } interface TileMaximizedEventUIParam { + /** * Used to get a reference to the tile manager the maximized tile belongs to. */ @@ -69879,6 +76338,7 @@ interface TileMinimizingEvent { } interface TileMinimizingEventUIParam { + /** * Used to get a reference to the tile manager performing the minimizing the tile belongs to. */ @@ -69900,6 +76360,7 @@ interface TileMinimizedEvent { } interface TileMinimizedEventUIParam { + /** * Used to get a reference to the tile manager the minimized tile belongs to. */ @@ -69912,6 +76373,7 @@ interface TileMinimizedEventUIParam { } interface IgTileManager { + /** * * @@ -70238,6 +76700,7 @@ interface IgTileManager { [optionName: string]: any; } interface IgTileManagerMethods { + /** * Maximizes a given tile. * @@ -70976,6 +77439,7 @@ interface WindowResizedEventUIParam { } interface IgToolbar { + /** * Set/Get the widget height. * @@ -71101,6 +77565,7 @@ interface IgToolbar { [optionName: string]: any; } interface IgToolbarMethods { + /** * Returns the element on which the widget was instantiated */ @@ -71459,6 +77924,7 @@ interface ActivatingEvent { } interface ActivatingEventUIParam { + /** * Used to get reference to this igToolbarButton. */ @@ -71470,6 +77936,7 @@ interface ActivatedEvent { } interface ActivatedEventUIParam { + /** * Used to get reference to this igToolbarButton. */ @@ -71481,6 +77948,7 @@ interface DeactivatingEvent { } interface DeactivatingEventUIParam { + /** * Used to get reference to this igToolbarButton. */ @@ -71492,6 +77960,7 @@ interface DeactivatedEvent { } interface DeactivatedEventUIParam { + /** * Used to get reference to this igToolbarButton. */ @@ -71499,6 +77968,7 @@ interface DeactivatedEventUIParam { } interface IgToolbarButton { + /** * Enable/Disable the "Toggling" of a button. * @@ -71545,6 +78015,7 @@ interface IgToolbarButton { [optionName: string]: any; } interface IgToolbarButtonMethods { + /** * Toggle toolbar button */ @@ -71682,7 +78153,1707 @@ interface JQuery { igToolbarButton(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igToolbarButton(methodName: string, ...methodParams: any[]): any; } +interface IgTreeBindingsBindings { + + /** + * Option for IgTreeBindingsBindings + */ + [optionName: string]: any; +} + +interface IgTreeBindings { + + /** + * Gets the name of the data source property the value of which would be the node text. + * + */ + textKey?: string; + + /** + * Gets the XPath to the text attribute/node. Used in client-only binding directly to XML. + * + */ + textXPath?: string; + + /** + * Gets the name of the data source property the value of which would be the node value. + * + */ + valueKey?: string; + + /** + * Gets the XPath to the value attribute/node. Used in client-only binding directly to XML. + * + */ + valueXPath?: string; + + /** + * Gets the name of the data source property the value of which would be used as a URL for the node image. + * + */ + imageUrlKey?: string; + + /** + * Gets the XPath to the image URL attribute/node. Used in client-only binding directly to XML. + * + */ + imageUrlXPath?: string; + + /** + * Gets the name of the data source property the value of which would be used as an href attribute for the node anchor. + * + */ + navigateUrlKey?: string; + + /** + * Gets the XPath to the navigate URL attribute/node. Used in client-only binding directly to XML. + * + */ + navigateUrlXPath?: string; + + /** + * Gets the name of the data source property the value of which would be used as a target + * attribute for the node anchor. + * + */ + targetKey?: string; + + /** + * Gets the name of the data source property the value of which would indicate that the + * node is expanded on initial load. + * + */ + expandedKey?: string; + + /** + * Gets the name of the data source property the value of which is the primary key attribute + * for the data. This property is used when load on demand is enabled and if specified the node paths + * would be generated using primary keys instead of indices. + * + */ + primaryKey?: string; + + /** + * Gets the node content template for the current layer of bindings. The igTree utilizes igTemplating + * for generating node content templates. A good example of how to setup templating can be found here http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/06/17/how-to-use-templates-to-style-the-different-nodes-of-the-ignite-ui-tree-control.aspx + * + */ + nodeContentTemplate?: string; + + /** + * Gets the name of the data source property that holds the child data of the current layer node. + * + */ + childDataProperty?: string; + + /** + * Gets the XPath to the child data node. Used in client-only binding directly to XML. + * + */ + childDataXPath?: string; + + /** + * Gets the XPath to the root data node. Used in client-only binding directly to XML. + * + */ + searchFieldXPath?: string; + + /** + * Gets the next layer of bindings in a recursive fashion. + * + */ + bindings?: IgTreeBindingsBindings; + + /** + * Option for IgTreeBindings + */ + [optionName: string]: any; +} + +interface IgTreeDragAndDropSettings { + + /** + * Gets whether the widget will accept drag and drop from other controls. + * + */ + allowDrop?: boolean; + + /** + * Gets the drag and drop mode. + * + * + * Valid values: + * "default" Performs "copy" when holding the Ctrl key, otherwise "move" is performed. + * "copy" Makes a copy of the dragged node at the drop location. + * "move" Moves the dragged node at the drop location. + */ + dragAndDropMode?: string; + + /** + * Gets the opacity of the drag helper: 0 is fully transparent while 1 is fully opaque. + * + */ + dragOpacity?: number; + + /** + * Gets whether the helper would revert to its original position upon an invalid drop. + * + */ + revert?: boolean; + + /** + * Gets the duration of the revert animation. + * + */ + revertDuration?: number; + + /** + * Gets the z-index that would be set for the drag helper. + * + */ + zIndex?: number; + + /** + * Gets the delay between mousedown and the start of the actual drag. Smaller values make the nodes + * more sensitive to drag and may interfere with selection. + * + */ + dragStartDelay?: number; + + /** + * Gets whether when dragging over a collapsed node with children will trigger the node to expand. + * + */ + expandOnDragOver?: boolean; + + /** + * Gets the delay after hovering a parent node before expanding that node during drag when [expandOnDragOver](ui.igtree#options:dragAndDropSettings.expandOnDragOver) is set to true. + * + */ + expandDelay?: number; + + /** + * Gets the type of helper to be rendered for the drag operation. + * + * + * Valid values: + * "function" A function that will return a DOMElement to use while dragging. + * "default" would render the default igTree helper. + */ + helper?: Function|string; + + /** + * Gets the method for custom drop point validation. Returning true from this function would render the drop point valid, while false would make it invalid. The function has one parameter which is the current drop point and the context (this) of the function is the drag element. + * + * + * Valid values: + * "function" A function that will be used for validating drop points. + * "null" Only built-in validation is applied. + */ + customDropValidation?: Function; + + /** + * Gets the containment for the drag helper. The area inside of which thehelper is contained would be scrollable while dragging. + * + * + * + * Valid values: + * "boolean" If set to false, then the draggable elements will be contained in their window. + * "selector" The draggable element will be contained to the bounding box of the first element found by the selector. If no element is found, no containment will be set. + * "element" The draggable element will be contained to the bounding box of this element. + * "string" Possible values: "parent", "document", "window". + * "array" An array defining a bounding box in the form [ x1, y1, x2, y2 ]. + */ + containment?: boolean|string|Object|Array; + + /** + * Gets the HTML markup for the invalid helper. + * + */ + invalidMoveToMarkup?: string; + + /** + * Gets the HTML markup for the "move to" helper. + * + */ + moveToMarkup?: string; + + /** + * Gets the HTML markup for the "move between" helper. + * + */ + moveBetweenMarkup?: string; + + /** + * Gets the HTML markup for the "move after" helper. + * + */ + moveAfterMarkup?: string; + + /** + * Gets the HTML markup for the "move before" helper. + * + */ + moveBeforeMarkup?: string; + + /** + * Gets the HTML markup for the "copy to" helper. + * + */ + copyToMarkup?: string; + + /** + * Gets the HTML markup for the "copy between" helper. + * + */ + copyBetweenMarkup?: string; + + /** + * Gets the HTML markup for the "copy after" helper. + * + */ + copyAfterMarkup?: string; + + /** + * Gets the HTML markup for the "copy before" helper. + * + */ + copyBeforeMarkup?: string; + + /** + * Option for IgTreeDragAndDropSettings + */ + [optionName: string]: any; +} + +interface NodeCheckstateChangingEvent { + (event: Event, ui: NodeCheckstateChangingEventUIParam): void; +} + +interface NodeCheckstateChangingEventUIParam { +} + +interface NodeCheckstateChangedEvent { + (event: Event, ui: NodeCheckstateChangedEventUIParam): void; +} + +interface NodeCheckstateChangedEventUIParam { +} + +interface NodePopulatingEvent { + (event: Event, ui: NodePopulatingEventUIParam): void; +} + +interface NodePopulatingEventUIParam { +} + +interface NodePopulatedEvent { + (event: Event, ui: NodePopulatedEventUIParam): void; +} + +interface NodePopulatedEventUIParam { +} + +interface NodeCollapsingEvent { + (event: Event, ui: NodeCollapsingEventUIParam): void; +} + +interface NodeCollapsingEventUIParam { +} + +interface NodeCollapsedEvent { + (event: Event, ui: NodeCollapsedEventUIParam): void; +} + +interface NodeCollapsedEventUIParam { +} + +interface NodeExpandingEvent { + (event: Event, ui: NodeExpandingEventUIParam): void; +} + +interface NodeExpandingEventUIParam { +} + +interface NodeExpandedEvent { + (event: Event, ui: NodeExpandedEventUIParam): void; +} + +interface NodeExpandedEventUIParam { +} + +interface NodeClickEvent { + (event: Event, ui: NodeClickEventUIParam): void; +} + +interface NodeClickEventUIParam { +} + +interface NodeDoubleClickEvent { + (event: Event, ui: NodeDoubleClickEventUIParam): void; +} + +interface NodeDoubleClickEventUIParam { +} + +interface NodeDroppingEvent { + (event: Event, ui: NodeDroppingEventUIParam): void; +} + +interface NodeDroppingEventUIParam { +} + +interface NodeDroppedEvent { + (event: Event, ui: NodeDroppedEventUIParam): void; +} + +interface NodeDroppedEventUIParam { +} + +interface IgTree { + + /** + * Gets/Sets the width of the control container. + * + * + * Valid values: + * "string" The widget width can be set in pixels (px) and percentage (%). + * "number" The widget width can be set as a number in pixels. + * "null" No width will be applied to the container and it will be rendered by default for the browser rendering engine. + */ + width?: string|number; + + /** + * Gets/Sets how the height of of the control container. + * + * + * Valid values: + * "string" The widget height can be set in pixels (px) and percentage (%). + * "number" The widget height can be set as a number in pixels. + * "null" No height will be applied to the container and it will be rendered default for the browser rendering engine. + */ + height?: string|number; + + /** + * Gets the behavior and type of the checkboxes rendered for the tree nodes. Can be set only at initialization. + * + * + * Valid values: + * "off" Checkboxes are turned off and are not rendered for the tree. + * "biState" Checkboxes are rendered and support two states (checked and unchecked). Checkboxes do not cascade down or up in this mode. + * "triState" Checkboxes are rendered and support three states (checked, partial and unchecked). Checkboxes cascade up and down in this mode. + */ + checkboxMode?: string; + + /** + * Gets/Sets one or more branches to be expanded at a time. If set to true then only one branch at each level of the tree can be expanded at a time. Otherwise multiple branches can be expanded at a time. + * + */ + singleBranchExpand?: boolean; + + /** + * Gets/Sets whether nodes are hoverable. Setting this option to false would make the tree to not apply hover styles on the nodes when they are hovered. + * + */ + hotTracking?: boolean; + + /** + * Gets/Sets the image url applied to all parent nodes. + * + * + * Valid values: + * "string" Image with the specified URL will be rendered for each node that has children (If you define both parentNodeImageUrl and parentNodeImageClass the parentNodeImageUrl would take priority). + * "null" Option is ignored + */ + parentNodeImageUrl?: string; + + /** + * Gets/Sets the CSS class applied to all parent nodes. + * + * + * Valid values: + * "string" Specified class with a CSS sprite that would be rendered for each node that has children (If you define both parentNodeImageUrl and parentNodeImageClass the parentNodeImageUrl would take priority). + * "null" Option is ignored + */ + parentNodeImageClass?: string; + + /** + * Gets/Sets the tooltip applied to all parent node images. + * + * + * Valid values: + * "string" Specified a tooltip that would be rendered for each node that has children. + * "null" Option is ignored + */ + parentNodeImageTooltip?: string; + + /** + * Gets/Sets the image url applied to all leaf nodes. + * + * + * Valid values: + * "string" Image with the specified URL will be rendered for each node that has no children (If you define both leafNodeImageUrl and leafNodeImageClass the leafNodeImageUrl would take priority). + * "null" Option is ignored + */ + leafNodeImageUrl?: string; + + /** + * Gets/Sets the CSS class applied to all leaf nodes. + * + * + * Valid values: + * "string" Specified class with a CSS sprite that would be rendered for each node that has no children (If you define both leafNodeImageUrl and leafNodeImageClass the leafNodeImageUrl would take priority). + * "null" Option is ignored + */ + leafNodeImageClass?: string; + + /** + * Gets/Sets the tooltip applied to all leaf node images. + * + * + * Valid values: + * "string" Specified a tooltip that would be rendered for each node that has no children. + * "null" Option is ignored + */ + leafNodeImageTooltip?: string; + + /** + * Gets/Sets the duration of each animation such as the expand/collapse. + * + */ + animationDuration?: number; + + /** + * Gets the node data-path attribute separator character. + * + */ + pathSeparator?: string; + + /** + * Gets/Sets the igTree data source. Accepts any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. + * Once the data source is initialized, this option becomes an instance of the $.ig.HierarchicalDataSource. + * + */ + dataSource?: any; + + /** + * Gets/Sets a remote URL accepted by [$.ig.DataSource](ig.datasource) in order to request data from it. + * + * + * Valid values: + * "string" Specifies the remote url. + * "null" Option is ignored. + */ + dataSourceUrl?: string; + + /** + * Gets the type of the data source. Delegates the value to [$.ig.DataSource.settings.type](ig.datasource#options:settings.type). Explicitly set data source type (such as "json"). Please refer to the documentation of $.ig.DataSource.settings.type. + * + * + * Valid values: + * "string" Specifies the data source type implicitly. + * "null" Type is inferred. + */ + dataSourceType?: string; + + /** + * Gets the JSON key at which a remote data source will write the data. Delegates the value to [$.ig.DataSource.settings.responseDataKey](ig.datasource#options:settings.responseDataKey). Please refer to the documentation of $.ig.DataSource.settings.responseDataKey. + * + * + * Valid values: + * "string" Specifies the name of the property in which data records are held if the response is wrapped. + * "null" Option is ignored. + */ + responseDataKey?: string; + + /** + * Gets the data type of the remote data source response. Delegates the value to [$.ig.DataSource.settings.responseDataType](ig.datasource#options:settings.responseDataType). Please refer to the documentation of $.ig.DataSource.settings.responseDataType. + * + * + * Valid values: + * "string" Response type when a URL is set as the data source. See http://api.jquery.com/jQuery.ajax/ => dataType. + * "null" Type is inferred. + */ + responseDataType?: string; + + /** + * Gets the HTTP verb used for remote requests. Specifies the HTTP verb to be used to issue the requests to the [dataSourceUrl](ui.igtree#options:dataSourceUrl). + * + */ + requestType?: string; + + /** + * Gets the type of the content in a remote data source response. Content type of the response from the [dataSourceUrl](ui.igtree#options:dataSourceUrl). See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + responseContentType?: string; + + /** + * Gets the initial depth the igTree is going to be expanded to upon initial render. + * + */ + initialExpandDepth?: number; + + /** + * Gets whether all the data would be bound initially or each child collection would be bound upon expand. + * + */ + loadOnDemand?: boolean; + + /** + * Gets the data binding properties and keys. The igTree uses these to extract the corresponding data from the dataSource. + * + */ + bindings?: IgTreeBindings; + + /** + * Gets the default target attribute value for the node anchors. + * + */ + defaultNodeTarget?: string; + + /** + * Gets/Sets whether drag and drop functionality is enabled. + * + */ + dragAndDrop?: boolean; + + /** + * Gets the URL to which updating requests will be made. + * + */ + updateUrl?: string; + + /** + * Gets/Sets specific settings for the drag and drop functionality. + * + */ + dragAndDropSettings?: IgTreeDragAndDropSettings; + + /** + * Fired before databinding is performed. + */ + dataBinding?: DataBindingEvent; + + /** + * Fired after databinding is finished. + */ + dataBound?: DataBoundEvent; + + /** + * Fired before rendering of the tree begins. + */ + rendering?: RenderingEvent; + + /** + * Fired after rendering of the tree has finished. + */ + rendered?: RenderedEvent; + + /** + * Fired before a new node is selected. + */ + selectionChanging?: SelectionChangingEvent; + + /** + * Fired after a new node is selected. + */ + selectionChanged?: SelectionChangedEvent; + + /** + * Fired before the checkbox state of a node is changed. + */ + nodeCheckstateChanging?: NodeCheckstateChangingEvent; + + /** + * Fired after the checkstate of a node is changed. + */ + nodeCheckstateChanged?: NodeCheckstateChangedEvent; + + /** + * Fired before the children of a node are populated in the case of load on demand. + */ + nodePopulating?: NodePopulatingEvent; + + /** + * Fired after the children of a node are populated in the case of load on demand. + */ + nodePopulated?: NodePopulatedEvent; + + /** + * Fired before a node is collapsed. + */ + nodeCollapsing?: NodeCollapsingEvent; + + /** + * Fired after a node is collapsed. + */ + nodeCollapsed?: NodeCollapsedEvent; + + /** + * Fired before a node is expanded. + */ + nodeExpanding?: NodeExpandingEvent; + + /** + * Fired after a node is expanded. + */ + nodeExpanded?: NodeExpandedEvent; + + /** + * Fired on node click. + */ + nodeClick?: NodeClickEvent; + + /** + * Fired on node double click. + */ + nodeDoubleClick?: NodeDoubleClickEvent; + + /** + * Fired on node drag start. + */ + dragStart?: DragStartEvent; + + /** + * Fired on node drag. + */ + drag?: DragEvent; + + /** + * Fired after a drag operation has completed. + */ + dragStop?: DragStopEvent; + + /** + * Fired before a node is dropped. + */ + nodeDropping?: NodeDroppingEvent; + + /** + * Fired after a node is dropped. + */ + nodeDropped?: NodeDroppedEvent; + + /** + * Option for igTree + */ + [optionName: string]: any; +} +interface IgTreeMethods { + + /** + * Performs databinding on the igTree. + */ + dataBind(): void; + + /** + * Toggles the checkstate of a node if checkboxMode is not set to off, otherwise does nothing. + * + * @param node Specifies the node element the checkbox of which would be toggled. + * @param event Indicates the browser event which triggered this action, if this is not an API call. + */ + toggleCheckstate(node: Object, event?: Object): void; + + /** + * Toggles the collapse/expand state for the specified node. + * + * @param node Specifies the node element the checkbox of which would be toggled. + * @param event Indicates the browser event which triggered this action, if this is not an API call. + */ + toggle(node: Object, event?: Object): void; + + /** + * Expands the tree down to the specified node and selects the node if specified. + * + * @param node Specifies the node element down to which the tree would be expanded. + * @param toSelect Specifies the whether to select the node after expanding to it. + */ + expandToNode(node: Object, toSelect?: boolean): void; + + /** + * Expands the specified node. + * + * @param node Specifies the node element to expand. + */ + expand(node: Object): void; + + /** + * Collapses the specified node. + * + * @param node Specifies the node element to collapse. + */ + collapse(node: Object): void; + + /** + * Retrieves the parent node element of the specified node element. + * + * @param node Specifies the jQuery selected node element to collapse. + */ + parentNode(node: Object): Object; + + /** + * Retrieves the jQuery element of the node with the specified path. + * + * @param nodePath Specifies the path to the required node. + */ + nodeByPath(nodePath: string): Object; + + /** + * Retrieves the jQuery element of the node with the specified value. + * + * @param value Specifies the value of the required node. + */ + nodesByValue(value: string): Object; + + /** + * Retrieves all the node objects for the nodes that have their checkboxes checked. + */ + checkedNodes(): any[]; + + /** + * Retrieves all the node objects for the nodes that have their checkboxes unchecked. + */ + uncheckedNodes(): any[]; + + /** + * Retrieves all the node objects for the nodes that have their checkboxes partially checked. + */ + partiallyCheckedNodes(): any[]; + + /** + * Selects a node. + * + * @param node Specifies the node element to be selected. + * @param event Indicates the browser event which triggered this action, if this is not an API call. + */ + select(node: Object, event?: Object): void; + + /** + * Deselects the specified node. + * + * @param node Specifies the node element to be deselected. + */ + deselect(node: Object): void; + + /** + * Deselects all the selected nodes. + */ + clearSelection(): void; + + /** + * Retrieves the node object for the selected node. + */ + selectedNode(): Object; + + /** + * Retrieves all node objects with the specified text (case sensitive). + * + * @param text The text to search for. + * @param parent The node element to start the search from. If not specified then search would start from the root of the tree. + */ + findNodesByText(text: string, parent?: Object): any[]; + + /** + * Retrieves all node objects for the immediate children of the specified parent with the specified text (case sensitive). + * + * @param text The text to search for. + * @param parent The node element the children of which would be searched. + */ + findImmediateNodesByText(text: string, parent?: Object): any[]; + + /** + * Retrieves the n-th jQuery node element child of the specified parent. + * + * @param index Specifies the index the node at which to be retrieved. + * @param parent The parent node element to start the search from. + */ + nodeByIndex(index: number, parent?: Object): Object; + + /** + * Retrieves a node object for the specified node element. + * + * @param element Specifies the node element. + */ + nodeFromElement(element: Object): Object; + + /** + * Retrieves a node object collection of the immediate children of the provided node element. + * + * @param parent Specifies the node element. + */ + children(parent: Object): any[]; + + /** + * Retrieves a node object collection of the immediate children of the node with the provided path. + * + * @param path Specifies the path of the node the children of which are to be retrieved. + */ + childrenByPath(path: string): any[]; + + /** + * Returns true if the provided node element is selected and false otherwise. + * + * @param node Specifies the node element. + */ + isSelected(node: Object): boolean; + + /** + * Returns true if the provided node element is expanded and false otherwise. + * + * @param node Specifies the node element. + */ + isExpanded(node: Object): boolean; + + /** + * Returns true if the provided node element has its checkbox checkstate checked and false otherwise. + * + * @param node Specifies the node element. + */ + isChecked(node: Object): boolean; + + /** + * Returns the specified node checkstate. + * + * @param node Specifies the node element. + */ + checkState(node: Object): string; + + /** + * Adds a new array of nodes to the tree. New nodes are appended to the root or to a specified parent node, at a specified index. + * + * @param node Specifies the data used to create the new nodeс. + * @param parent Specifies the element of the parent node the nodes are to be appended to. + * @param nodeIndex Specifies the index at which the nodes to be inserted. + */ + addNode(node: Object, parent?: Object, nodeIndex?: number): void; + + /** + * Removes the node with with the specified path and all of its children. + * + * @param path Specifies the path of the node to be removed. + */ + removeAt(path: string): void; + + /** + * Removing all the nodes with the specified value. + * + * @param value Specifies the value of the nodes to be removed. + */ + removeNodesByValue(value: string): void; + + /** + * Performs a UI update on the provided node element with the provided data. + * + * @param element Specifies the node to be updated. + * @param data Specifies the new data item the node would update according to. + */ + applyChangesToNode(element: Object, data: Object): void; + + /** + * Returns the transaction log stack. + */ + transactionLog(): any[]; + + /** + * Returns the data for the node with specified path. + * + * @param path Specifies the node path for which the data is returned. + */ + nodeDataFor(path: string): Object; + + /** + * Destructor for the igTree widget. + */ + destroy(): void; +} +interface JQuery { + data(propertyName: "igTree"): IgTreeMethods; +} + +interface JQuery { + igTree(methodName: "dataBind"): void; + igTree(methodName: "toggleCheckstate", node: Object, event?: Object): void; + igTree(methodName: "toggle", node: Object, event?: Object): void; + igTree(methodName: "expandToNode", node: Object, toSelect?: boolean): void; + igTree(methodName: "expand", node: Object): void; + igTree(methodName: "collapse", node: Object): void; + igTree(methodName: "parentNode", node: Object): Object; + igTree(methodName: "nodeByPath", nodePath: string): Object; + igTree(methodName: "nodesByValue", value: string): Object; + igTree(methodName: "checkedNodes"): any[]; + igTree(methodName: "uncheckedNodes"): any[]; + igTree(methodName: "partiallyCheckedNodes"): any[]; + igTree(methodName: "select", node: Object, event?: Object): void; + igTree(methodName: "deselect", node: Object): void; + igTree(methodName: "clearSelection"): void; + igTree(methodName: "selectedNode"): Object; + igTree(methodName: "findNodesByText", text: string, parent?: Object): any[]; + igTree(methodName: "findImmediateNodesByText", text: string, parent?: Object): any[]; + igTree(methodName: "nodeByIndex", index: number, parent?: Object): Object; + igTree(methodName: "nodeFromElement", element: Object): Object; + igTree(methodName: "children", parent: Object): any[]; + igTree(methodName: "childrenByPath", path: string): any[]; + igTree(methodName: "isSelected", node: Object): boolean; + igTree(methodName: "isExpanded", node: Object): boolean; + igTree(methodName: "isChecked", node: Object): boolean; + igTree(methodName: "checkState", node: Object): string; + igTree(methodName: "addNode", node: Object, parent?: Object, nodeIndex?: number): void; + igTree(methodName: "removeAt", path: string): void; + igTree(methodName: "removeNodesByValue", value: string): void; + igTree(methodName: "applyChangesToNode", element: Object, data: Object): void; + igTree(methodName: "transactionLog"): any[]; + igTree(methodName: "nodeDataFor", path: string): Object; + igTree(methodName: "destroy"): void; + + /** + * Gets/Sets the width of the control container. + * + */ + igTree(optionLiteral: 'option', optionName: "width"): string|number; + + /** + * /Sets the width of the control container. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; + + /** + * Gets/Sets how the height of of the control container. + * + */ + igTree(optionLiteral: 'option', optionName: "height"): string|number; + + /** + * /Sets how the height of of the control container. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; + + /** + * Gets the behavior and type of the checkboxes rendered for the tree nodes. Can be set only at initialization. + * + */ + igTree(optionLiteral: 'option', optionName: "checkboxMode"): string; + + /** + * The behavior and type of the checkboxes rendered for the tree nodes. Can be set only at initialization. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "checkboxMode", optionValue: string): void; + + /** + * Gets/Sets one or more branches to be expanded at a time. If set to true then only one branch at each level of the tree can be expanded at a time. Otherwise multiple branches can be expanded at a time. + * + */ + igTree(optionLiteral: 'option', optionName: "singleBranchExpand"): boolean; + + /** + * /Sets one or more branches to be expanded at a time. If set to true then only one branch at each level of the tree can be expanded at a time. Otherwise multiple branches can be expanded at a time. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "singleBranchExpand", optionValue: boolean): void; + + /** + * Gets/Sets whether nodes are hoverable. Setting this option to false would make the tree to not apply hover styles on the nodes when they are hovered. + * + */ + igTree(optionLiteral: 'option', optionName: "hotTracking"): boolean; + + /** + * /Sets whether nodes are hoverable. Setting this option to false would make the tree to not apply hover styles on the nodes when they are hovered. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "hotTracking", optionValue: boolean): void; + + /** + * Gets/Sets the image url applied to all parent nodes. + * + */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageUrl"): string; + + /** + * /Sets the image url applied to all parent nodes. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageUrl", optionValue: string): void; + + /** + * Gets/Sets the CSS class applied to all parent nodes. + * + */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageClass"): string; + + /** + * /Sets the CSS class applied to all parent nodes. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageClass", optionValue: string): void; + + /** + * Gets/Sets the tooltip applied to all parent node images. + * + */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageTooltip"): string; + + /** + * /Sets the tooltip applied to all parent node images. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageTooltip", optionValue: string): void; + + /** + * Gets/Sets the image url applied to all leaf nodes. + * + */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageUrl"): string; + + /** + * /Sets the image url applied to all leaf nodes. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageUrl", optionValue: string): void; + + /** + * Gets/Sets the CSS class applied to all leaf nodes. + * + */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageClass"): string; + + /** + * /Sets the CSS class applied to all leaf nodes. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageClass", optionValue: string): void; + + /** + * Gets/Sets the tooltip applied to all leaf node images. + * + */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageTooltip"): string; + + /** + * /Sets the tooltip applied to all leaf node images. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageTooltip", optionValue: string): void; + + /** + * Gets/Sets the duration of each animation such as the expand/collapse. + * + */ + igTree(optionLiteral: 'option', optionName: "animationDuration"): number; + + /** + * /Sets the duration of each animation such as the expand/collapse. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "animationDuration", optionValue: number): void; + + /** + * Gets the node data-path attribute separator character. + * + */ + igTree(optionLiteral: 'option', optionName: "pathSeparator"): string; + + /** + * The node data-path attribute separator character. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "pathSeparator", optionValue: string): void; + + /** + * Gets/Sets the igTree data source. Accepts any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. + * Once the data source is initialized, this option becomes an instance of the $.ig.HierarchicalDataSource. + * + */ + igTree(optionLiteral: 'option', optionName: "dataSource"): any; + + /** + * /Sets the igTree data source. Accepts any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. + * Once the data source is initialized, this option becomes an instance of the $.ig.HierarchicalDataSource. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dataSource", optionValue: any): void; + + /** + * Gets/Sets a remote URL accepted by [$.ig.DataSource](ig.datasource) in order to request data from it. + * + */ + igTree(optionLiteral: 'option', optionName: "dataSourceUrl"): string; + + /** + * /Sets a remote URL accepted by [$.ig.DataSource](ig.datasource) in order to request data from it. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dataSourceUrl", optionValue: string): void; + + /** + * Gets the type of the data source. Delegates the value to [$.ig.DataSource.settings.type](ig.datasource#options:settings.type). Explicitly set data source type (such as "json"). Please refer to the documentation of $.ig.DataSource.settings.type. + * + */ + igTree(optionLiteral: 'option', optionName: "dataSourceType"): string; + + /** + * The type of the data source. Delegates the value to [$.ig.DataSource.settings.type](ig.datasource#options:settings.type). Explicitly set data source type (such as "json"). Please refer to the documentation of $.ig.DataSource.settings.type. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dataSourceType", optionValue: string): void; + + /** + * Gets the JSON key at which a remote data source will write the data. Delegates the value to [$.ig.DataSource.settings.responseDataKey](ig.datasource#options:settings.responseDataKey). Please refer to the documentation of $.ig.DataSource.settings.responseDataKey. + * + */ + igTree(optionLiteral: 'option', optionName: "responseDataKey"): string; + + /** + * The JSON key at which a remote data source will write the data. Delegates the value to [$.ig.DataSource.settings.responseDataKey](ig.datasource#options:settings.responseDataKey). Please refer to the documentation of $.ig.DataSource.settings.responseDataKey. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "responseDataKey", optionValue: string): void; + + /** + * Gets the data type of the remote data source response. Delegates the value to [$.ig.DataSource.settings.responseDataType](ig.datasource#options:settings.responseDataType). Please refer to the documentation of $.ig.DataSource.settings.responseDataType. + * + */ + igTree(optionLiteral: 'option', optionName: "responseDataType"): string; + + /** + * The data type of the remote data source response. Delegates the value to [$.ig.DataSource.settings.responseDataType](ig.datasource#options:settings.responseDataType). Please refer to the documentation of $.ig.DataSource.settings.responseDataType. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "responseDataType", optionValue: string): void; + + /** + * Gets the HTTP verb used for remote requests. Gets the HTTP verb to be used to issue the requests to the [dataSourceUrl](ui.igtree#options:dataSourceUrl). + * + */ + igTree(optionLiteral: 'option', optionName: "requestType"): string; + + /** + * The HTTP verb used for remote requests. Sets the HTTP verb to be used to issue the requests to the [dataSourceUrl](ui.igtree#options:dataSourceUrl). + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "requestType", optionValue: string): void; + + /** + * Gets the type of the content in a remote data source response. Content type of the response from the [dataSourceUrl](ui.igtree#options:dataSourceUrl). See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + igTree(optionLiteral: 'option', optionName: "responseContentType"): string; + + /** + * The type of the content in a remote data source response. Content type of the response from the [dataSourceUrl](ui.igtree#options:dataSourceUrl). See http://api.jquery.com/jQuery.ajax/ => contentType + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "responseContentType", optionValue: string): void; + + /** + * Gets the initial depth the igTree is going to be expanded to upon initial render. + * + */ + igTree(optionLiteral: 'option', optionName: "initialExpandDepth"): number; + + /** + * The initial depth the igTree is going to be expanded to upon initial render. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "initialExpandDepth", optionValue: number): void; + + /** + * Gets whether all the data would be bound initially or each child collection would be bound upon expand. + * + */ + igTree(optionLiteral: 'option', optionName: "loadOnDemand"): boolean; + + /** + * Whether all the data would be bound initially or each child collection would be bound upon expand. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "loadOnDemand", optionValue: boolean): void; + + /** + * Gets the data binding properties and keys. The igTree uses these to extract the corresponding data from the dataSource. + * + */ + igTree(optionLiteral: 'option', optionName: "bindings"): IgTreeBindings; + + /** + * The data binding properties and keys. The igTree uses these to extract the corresponding data from the dataSource. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "bindings", optionValue: IgTreeBindings): void; + + /** + * Gets the default target attribute value for the node anchors. + * + */ + igTree(optionLiteral: 'option', optionName: "defaultNodeTarget"): string; + + /** + * The default target attribute value for the node anchors. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "defaultNodeTarget", optionValue: string): void; + + /** + * Gets/Sets whether drag and drop functionality is enabled. + * + */ + igTree(optionLiteral: 'option', optionName: "dragAndDrop"): boolean; + + /** + * /Sets whether drag and drop functionality is enabled. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dragAndDrop", optionValue: boolean): void; + + /** + * Gets the URL to which updating requests will be made. + * + */ + igTree(optionLiteral: 'option', optionName: "updateUrl"): string; + + /** + * The URL to which updating requests will be made. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "updateUrl", optionValue: string): void; + + /** + * Gets/Sets specific settings for the drag and drop functionality. + * + */ + igTree(optionLiteral: 'option', optionName: "dragAndDropSettings"): IgTreeDragAndDropSettings; + + /** + * /Sets specific settings for the drag and drop functionality. + * + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dragAndDropSettings", optionValue: IgTreeDragAndDropSettings): void; + + /** + * Fired before databinding is performed. + */ + igTree(optionLiteral: 'option', optionName: "dataBinding"): DataBindingEvent; + + /** + * Fired before databinding is performed. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dataBinding", optionValue: DataBindingEvent): void; + + /** + * Fired after databinding is finished. + */ + igTree(optionLiteral: 'option', optionName: "dataBound"): DataBoundEvent; + + /** + * Fired after databinding is finished. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dataBound", optionValue: DataBoundEvent): void; + + /** + * Fired before rendering of the tree begins. + */ + igTree(optionLiteral: 'option', optionName: "rendering"): RenderingEvent; + + /** + * Fired before rendering of the tree begins. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "rendering", optionValue: RenderingEvent): void; + + /** + * Fired after rendering of the tree has finished. + */ + igTree(optionLiteral: 'option', optionName: "rendered"): RenderedEvent; + + /** + * Fired after rendering of the tree has finished. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "rendered", optionValue: RenderedEvent): void; + + /** + * Fired before a new node is selected. + */ + igTree(optionLiteral: 'option', optionName: "selectionChanging"): SelectionChangingEvent; + + /** + * Fired before a new node is selected. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "selectionChanging", optionValue: SelectionChangingEvent): void; + + /** + * Fired after a new node is selected. + */ + igTree(optionLiteral: 'option', optionName: "selectionChanged"): SelectionChangedEvent; + + /** + * Fired after a new node is selected. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "selectionChanged", optionValue: SelectionChangedEvent): void; + + /** + * Fired before the checkbox state of a node is changed. + */ + igTree(optionLiteral: 'option', optionName: "nodeCheckstateChanging"): NodeCheckstateChangingEvent; + + /** + * Fired before the checkbox state of a node is changed. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeCheckstateChanging", optionValue: NodeCheckstateChangingEvent): void; + + /** + * Fired after the checkstate of a node is changed. + */ + igTree(optionLiteral: 'option', optionName: "nodeCheckstateChanged"): NodeCheckstateChangedEvent; + + /** + * Fired after the checkstate of a node is changed. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeCheckstateChanged", optionValue: NodeCheckstateChangedEvent): void; + + /** + * Fired before the children of a node are populated in the case of load on demand. + */ + igTree(optionLiteral: 'option', optionName: "nodePopulating"): NodePopulatingEvent; + + /** + * Fired before the children of a node are populated in the case of load on demand. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodePopulating", optionValue: NodePopulatingEvent): void; + + /** + * Fired after the children of a node are populated in the case of load on demand. + */ + igTree(optionLiteral: 'option', optionName: "nodePopulated"): NodePopulatedEvent; + + /** + * Fired after the children of a node are populated in the case of load on demand. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodePopulated", optionValue: NodePopulatedEvent): void; + + /** + * Fired before a node is collapsed. + */ + igTree(optionLiteral: 'option', optionName: "nodeCollapsing"): NodeCollapsingEvent; + + /** + * Fired before a node is collapsed. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeCollapsing", optionValue: NodeCollapsingEvent): void; + + /** + * Fired after a node is collapsed. + */ + igTree(optionLiteral: 'option', optionName: "nodeCollapsed"): NodeCollapsedEvent; + + /** + * Fired after a node is collapsed. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeCollapsed", optionValue: NodeCollapsedEvent): void; + + /** + * Fired before a node is expanded. + */ + igTree(optionLiteral: 'option', optionName: "nodeExpanding"): NodeExpandingEvent; + + /** + * Fired before a node is expanded. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeExpanding", optionValue: NodeExpandingEvent): void; + + /** + * Fired after a node is expanded. + */ + igTree(optionLiteral: 'option', optionName: "nodeExpanded"): NodeExpandedEvent; + + /** + * Fired after a node is expanded. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeExpanded", optionValue: NodeExpandedEvent): void; + + /** + * Fired on node click. + */ + igTree(optionLiteral: 'option', optionName: "nodeClick"): NodeClickEvent; + + /** + * Fired on node click. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeClick", optionValue: NodeClickEvent): void; + + /** + * Fired on node double click. + */ + igTree(optionLiteral: 'option', optionName: "nodeDoubleClick"): NodeDoubleClickEvent; + + /** + * Fired on node double click. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeDoubleClick", optionValue: NodeDoubleClickEvent): void; + + /** + * Fired on node drag start. + */ + igTree(optionLiteral: 'option', optionName: "dragStart"): DragStartEvent; + + /** + * Fired on node drag start. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dragStart", optionValue: DragStartEvent): void; + + /** + * Fired on node drag. + */ + igTree(optionLiteral: 'option', optionName: "drag"): DragEvent; + + /** + * Fired on node drag. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "drag", optionValue: DragEvent): void; + + /** + * Fired after a drag operation has completed. + */ + igTree(optionLiteral: 'option', optionName: "dragStop"): DragStopEvent; + + /** + * Fired after a drag operation has completed. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "dragStop", optionValue: DragStopEvent): void; + + /** + * Fired before a node is dropped. + */ + igTree(optionLiteral: 'option', optionName: "nodeDropping"): NodeDroppingEvent; + + /** + * Fired before a node is dropped. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeDropping", optionValue: NodeDroppingEvent): void; + + /** + * Fired after a node is dropped. + */ + igTree(optionLiteral: 'option', optionName: "nodeDropped"): NodeDroppedEvent; + + /** + * Fired after a node is dropped. + * + * @optionValue New value to be set. + */ + igTree(optionLiteral: 'option', optionName: "nodeDropped", optionValue: NodeDroppedEvent): void; + igTree(options: IgTree): JQuery; + igTree(optionLiteral: 'option', optionName: string): any; + igTree(optionLiteral: 'option', options: IgTree): JQuery; + igTree(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; + igTree(methodName: string, ...methodParams: any[]): any; +} interface IgTreeGridColumnFixing { + + /** + * Specifies the tooltip text on the column fixing header icon when column is not fixed. + * + */ + headerFixButtonText?: string; + + /** + * Specifies the tooltip text on the column fixing header icon when column is fixed. + * + */ + headerUnfixButtonText?: string; + + /** + * Specifies whether to show the column fixing buttons in header cells/feature chooser. + * + */ + showFixButtons?: boolean; + + /** + * Enable row height sync for the fixed and unfixed portion of the grid. If you're observing row misalignment, please refer to [this article](http://www.igniteui.com/help/iggrid-known-issues#misalignment-ie9). + * + */ + syncRowHeights?: boolean; + + /** + * Scroll delta in pixels when scrolling with the mouse wheel or the keyboard in the fixed columns area of the grid. + * + */ + scrollDelta?: number; + + /** + * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. + * + * + * Valid values: + * "left" Fixed columns are rendered on the left side of the main grid. + * "right" Fixed columns are rendered on the right side of the main grid. + */ + fixingDirection?: string; + + /** + * List of column settings that specifies custom column fixing options on a per column basis. + * + */ + columnSettings?: IgGridColumnFixingColumnSetting[]; + + /** + * Text of the feature chooser button for fixing a currently unfixed column. + * + */ + featureChooserTextFixedColumn?: string; + + /** + * Text of the feature chooser button for unfixing a currently fixed column. + * + */ + featureChooserTextUnfixedColumn?: string; + + /** + * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. + * + * + * Valid values: + * "string" The width can be set in pixels (px) and percentage (%). + * "number" The width can be set in pixels as a number. + */ + minimalVisibleAreaWidth?: string|number; + + /** + * Specify initial fixing of all non data columns. Non-data columns are columns in the grid rendered for specific features, like the row selectors feature. The column containing the row numbering is such a column. This option is applicable when [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is set to left. For a full column fixing configuration summary please refer to [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#configuration-summary). + * + */ + fixNondataColumns?: boolean; + + /** + * When true all the TR DOM attributes of the unfixed row will be copied to the fixed row. Note that when enabled this option negatively affects performance when fixing a column. + */ + populateDataRowsAttributes?: boolean; + + /** + * Event which is fired when column fixing operation is initiated. + */ + columnFixing?: ColumnFixingEvent; + + /** + * Event which is fired when column fixing operation is finished + */ + columnFixed?: ColumnFixedEvent; + + /** + * Event which is fired when column unfixing operation is initiated + */ + columnUnfixing?: ColumnUnfixingEvent; + + /** + * Event which is fired when column unfixing operation is done + */ + columnUnfixed?: ColumnUnfixedEvent; + + /** + * Event which is fired when column fixing operation has failed - e.g. sum of the width of the fixed columns container and width of the column to be fixed exceeds the grid width + */ + columnFixingRefused?: ColumnFixingRefusedEvent; + + /** + * Event which is fired when column unfixing operation has failed - e.g.: there is only one fixed visible column(and tries to unfix it) and at least one fixed hidden column + */ + columnUnfixingRefused?: ColumnUnfixingRefusedEvent; + /** * Option for igTreeGridColumnFixing */ @@ -71690,6 +79861,100 @@ interface IgTreeGridColumnFixing { } interface IgTreeGridColumnFixingMethods { destroy(): void; + + /** + * Unfixes a column by specified column identifier - column key or column index. + * + * @param colIdentifier An identifier of the column to be unfixed - column index or column key. + * @param target Key of the column where the unfixed column should move to. + * @param after Specifies where the unfixed column should be rendered after or before the target column. This parameter is disregarded if there is no target column specified. + */ + unfixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; + + /** + * Checks whether the heights of fixed and unfixed tables are equal - if not sync them. Similar check is made for heights of table rows. + */ + checkAndSyncHeights(): void; + + /** + * If the 'check' argument is set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. Similar check is made for heights of table rows. If the clearRowsHeights argument is set to true, clears rows heights before syncing them. + * + * @param check If set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. If this argument is set to false sync is performed regardless of the current heights. + * @param clearRowsHeights Clears row heigths for all visible rows. + */ + syncHeights(check?: boolean, clearRowsHeights?: boolean): void; + + /** + * Returns whether the column with the specified key is a column group header, when the [multi-column headers](http://www.igniteui.com/help/iggrid-multicolumnheaders-landingpage) feature is used. + * + * @param colKey The key of the column to perform the check for. + */ + isGroupHeader(colKey: string): boolean; + + /** + * Checks whether column fixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the unfixed area. + * + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + */ + checkFixingAllowed(columns: any[]): boolean; + + /** + * Checks whether unfixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the fixed area. + * + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + */ + checkUnfixingAllowed(columns: any[]): boolean; + + /** + * Fixes a column by specified column identifier - column index or column key. + * + * @param colIdentifier An identifier of the column to be fixed - column index or column key. + * @param target Key of the column where the fixed column should move to. + * @param after Specifies where the fixed column should be moved after or before the target column. This parameter is disregarded if there is no target column specified. + */ + fixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; + + /** + * Fixes non-data columns (such as the row numbering column of row selectors) if any and if [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is left. Does nothing if the non-data columns are already fixed. + */ + fixNonDataColumns(): void; + + /** + * This function is deprecated - use function fixNonDataColumns. + */ + fixDataSkippedColumns(): void; + + /** + * Unfixes non-data columns (such as the row numbering column of row selectors) if any and if [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is left. Does nothing if the non-data columns are already fixed. + */ + unfixNonDataColumns(): void; + + /** + * This function is deprecated - use function unfixNonDataColumns. + */ + unfixDataSkippedColumns(): void; + + /** + * Unfixes all fixed columns. + */ + unfixAllColumns(): void; + + /** + * Syncs rows heights between two collections of rows. + * + * @param $trs An array of rows of the first(fixed/unfixed) container. + * @param $anotherRows An array of rows of the second(fixed/unfixed) container. + */ + syncRowsHeights($trs: any[], $anotherRows: any[]): void; + + /** + * Calculates widths of the fixed columns. + * + * @param fCols Array of grid columns. If not set then the total width of the fixed columns are returned. + * @param excludeNonDataColumns If set to true do not calculate the width of non-data fixed columns (like the row selector row numbering column). + * @param includeHidden If set to true calculates width of the hidden fixed columns (their initial width before hiding). + */ + getWidthOfFixedColumns(fCols?: any[], excludeNonDataColumns?: boolean, includeHidden?: boolean): number; } interface JQuery { data(propertyName: "igTreeGridColumnFixing"): IgTreeGridColumnFixingMethods; @@ -71697,6 +79962,258 @@ interface JQuery { interface JQuery { igTreeGridColumnFixing(methodName: "destroy"): void; + igTreeGridColumnFixing(methodName: "unfixColumn", colIdentifier: Object, target?: string, after?: boolean): Object; + igTreeGridColumnFixing(methodName: "checkAndSyncHeights"): void; + igTreeGridColumnFixing(methodName: "syncHeights", check?: boolean, clearRowsHeights?: boolean): void; + igTreeGridColumnFixing(methodName: "isGroupHeader", colKey: string): boolean; + igTreeGridColumnFixing(methodName: "checkFixingAllowed", columns: any[]): boolean; + igTreeGridColumnFixing(methodName: "checkUnfixingAllowed", columns: any[]): boolean; + igTreeGridColumnFixing(methodName: "fixColumn", colIdentifier: Object, target?: string, after?: boolean): Object; + igTreeGridColumnFixing(methodName: "fixNonDataColumns"): void; + igTreeGridColumnFixing(methodName: "fixDataSkippedColumns"): void; + igTreeGridColumnFixing(methodName: "unfixNonDataColumns"): void; + igTreeGridColumnFixing(methodName: "unfixDataSkippedColumns"): void; + igTreeGridColumnFixing(methodName: "unfixAllColumns"): void; + igTreeGridColumnFixing(methodName: "syncRowsHeights", $trs: any[], $anotherRows: any[]): void; + igTreeGridColumnFixing(methodName: "getWidthOfFixedColumns", fCols?: any[], excludeNonDataColumns?: boolean, includeHidden?: boolean): number; + + /** + * Gets the tooltip text on the column fixing header icon when column is not fixed. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "headerFixButtonText"): string; + + /** + * Sets the tooltip text on the column fixing header icon when column is not fixed. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "headerFixButtonText", optionValue: string): void; + + /** + * Gets the tooltip text on the column fixing header icon when column is fixed. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "headerUnfixButtonText"): string; + + /** + * Sets the tooltip text on the column fixing header icon when column is fixed. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "headerUnfixButtonText", optionValue: string): void; + + /** + * Gets whether to show the column fixing buttons in header cells/feature chooser. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "showFixButtons"): boolean; + + /** + * Sets whether to show the column fixing buttons in header cells/feature chooser. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "showFixButtons", optionValue: boolean): void; + + /** + * Enable row height sync for the fixed and unfixed portion of the grid. If you're observing row misalignment, please refer to [this article](http://www.igniteui.com/help/iggrid-known-issues#misalignment-ie9). + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "syncRowHeights"): boolean; + + /** + * Enable row height sync for the fixed and unfixed portion of the grid. If you're observing row misalignment, please refer to [this article](http://www.igniteui.com/help/iggrid-known-issues#misalignment-ie9). + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "syncRowHeights", optionValue: boolean): void; + + /** + * Scroll delta in pixels when scrolling with the mouse wheel or the keyboard in the fixed columns area of the grid. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "scrollDelta"): number; + + /** + * Scroll delta in pixels when scrolling with the mouse wheel or the keyboard in the fixed columns area of the grid. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "scrollDelta", optionValue: number): void; + + /** + * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection"): string; + + /** + * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection", optionValue: string): void; + + /** + * List of column settings that specifies custom column fixing options on a per column basis. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnSettings"): IgGridColumnFixingColumnSetting[]; + + /** + * List of column settings that specifies custom column fixing options on a per column basis. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnSettings", optionValue: IgGridColumnFixingColumnSetting[]): void; + + /** + * Text of the feature chooser button for fixing a currently unfixed column. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextFixedColumn"): string; + + /** + * Text of the feature chooser button for fixing a currently unfixed column. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextFixedColumn", optionValue: string): void; + + /** + * Text of the feature chooser button for unfixing a currently fixed column. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextUnfixedColumn"): string; + + /** + * Text of the feature chooser button for unfixing a currently fixed column. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "featureChooserTextUnfixedColumn", optionValue: string): void; + + /** + * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth"): string|number; + + /** + * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth", optionValue: string|number): void; + + /** + * Specify initial fixing of all non data columns. Non-data columns are columns in the grid rendered for specific features, like the row selectors feature. The column containing the row numbering is such a column. This option is applicable when [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is set to left. For a full column fixing configuration summary please refer to [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#configuration-summary). + * + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "fixNondataColumns"): boolean; + + /** + * Specify initial fixing of all non data columns. Non-data columns are columns in the grid rendered for specific features, like the row selectors feature. The column containing the row numbering is such a column. This option is applicable when [fixingDirection](ui.iggridcolumnfixing#options:fixingDirection) is set to left. For a full column fixing configuration summary please refer to [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#configuration-summary). + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "fixNondataColumns", optionValue: boolean): void; + + /** + * When true all the TR DOM attributes of the unfixed row will be copied to the fixed row. Note that when enabled this option negatively affects performance when fixing a column. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "populateDataRowsAttributes"): boolean; + + /** + * When true all the TR DOM attributes of the unfixed row will be copied to the fixed row. Note that when enabled this option negatively affects performance when fixing a column. + * + * @optionValue New value to be set. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "populateDataRowsAttributes", optionValue: boolean): void; + + /** + * Event which is fired when column fixing operation is initiated. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnFixing"): ColumnFixingEvent; + + /** + * Event which is fired when column fixing operation is initiated. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnFixing", optionValue: ColumnFixingEvent): void; + + /** + * Event which is fired when column fixing operation is finished + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnFixed"): ColumnFixedEvent; + + /** + * Event which is fired when column fixing operation is finished + * + * @optionValue Define event handler function. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnFixed", optionValue: ColumnFixedEvent): void; + + /** + * Event which is fired when column unfixing operation is initiated + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixing"): ColumnUnfixingEvent; + + /** + * Event which is fired when column unfixing operation is initiated + * + * @optionValue Define event handler function. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixing", optionValue: ColumnUnfixingEvent): void; + + /** + * Event which is fired when column unfixing operation is done + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixed"): ColumnUnfixedEvent; + + /** + * Event which is fired when column unfixing operation is done + * + * @optionValue Define event handler function. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixed", optionValue: ColumnUnfixedEvent): void; + + /** + * Event which is fired when column fixing operation has failed - e.g. sum of the width of the fixed columns container and width of the column to be fixed exceeds the grid width + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnFixingRefused"): ColumnFixingRefusedEvent; + + /** + * Event which is fired when column fixing operation has failed - e.g. sum of the width of the fixed columns container and width of the column to be fixed exceeds the grid width + * + * @optionValue Define event handler function. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnFixingRefused", optionValue: ColumnFixingRefusedEvent): void; + + /** + * Event which is fired when column unfixing operation has failed - e.g.: there is only one fixed visible column(and tries to unfix it) and at least one fixed hidden column + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixingRefused"): ColumnUnfixingRefusedEvent; + + /** + * Event which is fired when column unfixing operation has failed - e.g.: there is only one fixed visible column(and tries to unfix it) and at least one fixed hidden column + * + * @optionValue Define event handler function. + */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "columnUnfixingRefused", optionValue: ColumnUnfixingRefusedEvent): void; igTreeGridColumnFixing(options: IgTreeGridColumnFixing): JQuery; igTreeGridColumnFixing(optionLiteral: 'option', optionName: string): any; igTreeGridColumnFixing(optionLiteral: 'option', options: IgTreeGridColumnFixing): JQuery; @@ -71704,6 +80221,267 @@ interface JQuery { igTreeGridColumnFixing(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridColumnMoving { + + /** + * A list of column settings that specifies moving options on a per column basis. + * + */ + columnSettings?: IgGridColumnMovingColumnSetting[]; + + /** + * Specify the drag-and-drop mode for the feature + * + * + * Valid values: + * "immediate" Column headers will rearange as you drag with a space opening under the cursor for the header to be dropped on + * "deferred" A clone of the header dragged will be created and indicators will be shown between columns to help navigate the drop. + */ + mode?: string; + + /** + * Specify the way columns will be rearranged + * + * + * Valid values: + * "dom" Columns will be rearranged through dom manipulation + * "render" Columns will not be rearranged but the grid will be rendered again with the new column order. Please note this option is incompatible with immediate move mode. + */ + moveType?: string; + + /** + * Specifies if header cells should include an additional button that opens a moving helper dropdown. + * + */ + addMovingDropdown?: boolean; + + /** + * Specifies width of column moving dialog + * + */ + movingDialogWidth?: number; + + /** + * Specifies height of column moving dialog + * + */ + movingDialogHeight?: number; + + /** + * Specifies time in milliseconds for animation duration to show/hide modal dialog + * + */ + movingDialogAnimationDuration?: number; + + /** + * Specifies the length (in pixels) between the dragged column and the column edges below which the move operation is accepted + * + */ + movingAcceptanceTolerance?: number; + + /** + * Specifies the length (in pixels) between the dragged column and the grid edges below which horizontal scrolling occurs + * + */ + movingScrollTolerance?: number; + + /** + * Specifies a multiplier for the delay between subsequent scroll operations. The larger this number is, the slower scrolling will appear to be. + * + */ + scrollSpeedMultiplier?: number; + + /** + * Specifies the length (in pixels) of each individual scroll operation + * + */ + scrollDelta?: number; + + /** + * Specifies whether the contents of the column being dragged will get hidden. The option is only + * relevant in immediate moving mode. + * + */ + hideHeaderContentsDuringDrag?: boolean; + + /** + * Specifies the opacity of the drag markup, while a column header is being dragged. + * The value must be between 0 and 1. When GroupBy is enabled, the corresponding option in the GroupBy configuration + * will be used with priority over this one. + * + */ + dragHelperOpacity?: number; + + /** + * Specifies caption for each move down button in the column moving dialog + * + */ + movingDialogCaptionButtonDesc?: string; + + /** + * Specifies caption for each move up button in the column moving dialog + * + */ + movingDialogCaptionButtonAsc?: string; + + /** + * Specifies caption text for the column moving dialog + * + */ + movingDialogCaptionText?: string; + + /** + * Specifies caption text for the feature chooser entry + * + */ + movingDialogDisplayText?: string; + + /** + * Specifies text for drop tooltip in column moving dialog + * + */ + movingDialogDropTooltipText?: string; + + /** + * Specifies markup for drop tooltip in column moving dialog + * + */ + movingDialogDropTooltipMarkup?: string; + + /** + * Specifies caption for the move left dropdown button + * + */ + dropDownMoveLeftText?: string; + + /** + * Specifies caption for the move right dropdown button + * + */ + dropDownMoveRightText?: string; + + /** + * Specifies caption for the move first dropdown button + * + */ + dropDownMoveFirstText?: string; + + /** + * Specifies caption for the move last dropdown button + * + */ + dropDownMoveLastText?: string; + + /** + * Specifies tooltip text for the move indicator + * + */ + movingToolTipMove?: string; + + /** + * Specifies caption text for the feature chooser submenu button + * + */ + featureChooserSubmenuText?: string; + + /** + * Controls containment behavior of column moving dialog. + * + * owner The dialog will be draggable only in the grid area + * window The dialog will be draggable in the whole window area + */ + columnMovingDialogContainment?: string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + dialogWidget?: string; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + */ + inherit?: boolean; + + /** + * Event which is fired when a drag operation begins on a column header + */ + columnDragStart?: ColumnDragStartEvent; + + /** + * Event which is fired when a drag operation ends on a column header + */ + columnDragEnd?: ColumnDragEndEvent; + + /** + * Event which is fired when a drag operation is canceled + */ + columnDragCanceled?: ColumnDragCanceledEvent; + + /** + * Event which is fired when a column moving operation is initiated + */ + columnMoving?: ColumnMovingEvent; + + /** + * Event which is fired when a column moving operation completes + */ + columnMoved?: ColumnMovedEvent; + + /** + * Event fired before the moving dialog is opened. + */ + movingDialogOpening?: MovingDialogOpeningEvent; + + /** + * Event fired after the column chooser is already opened. + */ + movingDialogOpened?: MovingDialogOpenedEvent; + + /** + * Event fired every time the moving dialog changes its position. + */ + movingDialogDragged?: MovingDialogDraggedEvent; + + /** + * Event fired before the moving dialog is closed. + */ + movingDialogClosing?: MovingDialogClosingEvent; + + /** + * Event fired after the moving dialog has been closed. + */ + movingDialogClosed?: MovingDialogClosedEvent; + + /** + * Event fired before the contents of the model dialog are rendered. + */ + movingDialogContentsRendering?: MovingDialogContentsRenderingEvent; + + /** + * Event fired after the contents of the model dialog are rendered. + */ + movingDialogContentsRendered?: MovingDialogContentsRenderedEvent; + + /** + * Event fired when move up button is pressed in the moving dialog + */ + movingDialogMoveUpButtonPressed?: MovingDialogMoveUpButtonPressedEvent; + + /** + * Event fired when move down button is pressed in the moving dialog + */ + movingDialogMoveDownButtonPressed?: MovingDialogMoveDownButtonPressedEvent; + + /** + * Event fired when column moving is initiated through dragging it in the moving dialog + */ + movingDialogDragColumnMoving?: MovingDialogDragColumnMovingEvent; + + /** + * Event fired when column moving is completed through dragging it in the moving dialog + */ + movingDialogDragColumnMoved?: MovingDialogDragColumnMovedEvent; + /** * Option for igTreeGridColumnMoving */ @@ -71711,6 +80489,18 @@ interface IgTreeGridColumnMoving { } interface IgTreeGridColumnMovingMethods { destroy(): void; + + /** + * Moves a visible column at a specified place, in front or behind a target column or at a target index + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. + */ + moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; } interface JQuery { data(propertyName: "igTreeGridColumnMoving"): IgTreeGridColumnMovingMethods; @@ -71718,6 +80508,599 @@ interface JQuery { interface JQuery { igTreeGridColumnMoving(methodName: "destroy"): void; + igTreeGridColumnMoving(methodName: "moveColumn", column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; + + /** + * A list of column settings that specifies moving options on a per column basis. + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnSettings"): IgGridColumnMovingColumnSetting[]; + + /** + * A list of column settings that specifies moving options on a per column basis. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnSettings", optionValue: IgGridColumnMovingColumnSetting[]): void; + + /** + * Specify the drag-and-drop mode for the feature + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "mode"): string; + + /** + * Specify the drag-and-drop mode for the feature + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "mode", optionValue: string): void; + + /** + * Specify the way columns will be rearranged + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "moveType"): string; + + /** + * Specify the way columns will be rearranged + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "moveType", optionValue: string): void; + + /** + * Gets if header cells should include an additional button that opens a moving helper dropdown. + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "addMovingDropdown"): boolean; + + /** + * Sets if header cells should include an additional button that opens a moving helper dropdown. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "addMovingDropdown", optionValue: boolean): void; + + /** + * Gets width of column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogWidth"): number; + + /** + * Sets width of column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogWidth", optionValue: number): void; + + /** + * Gets height of column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogHeight"): number; + + /** + * Sets height of column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogHeight", optionValue: number): void; + + /** + * Gets time in milliseconds for animation duration to show/hide modal dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogAnimationDuration"): number; + + /** + * Sets time in milliseconds for animation duration to show/hide modal dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogAnimationDuration", optionValue: number): void; + + /** + * Gets the length (in pixels) between the dragged column and the column edges below which the move operation is accepted + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingAcceptanceTolerance"): number; + + /** + * Sets the length (in pixels) between the dragged column and the column edges below which the move operation is accepted + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingAcceptanceTolerance", optionValue: number): void; + + /** + * Gets the length (in pixels) between the dragged column and the grid edges below which horizontal scrolling occurs + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingScrollTolerance"): number; + + /** + * Sets the length (in pixels) between the dragged column and the grid edges below which horizontal scrolling occurs + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingScrollTolerance", optionValue: number): void; + + /** + * Gets a multiplier for the delay between subsequent scroll operations. The larger this number is, the slower scrolling will appear to be. + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "scrollSpeedMultiplier"): number; + + /** + * Sets a multiplier for the delay between subsequent scroll operations. The larger this number is, the slower scrolling will appear to be. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "scrollSpeedMultiplier", optionValue: number): void; + + /** + * Gets the length (in pixels) of each individual scroll operation + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "scrollDelta"): number; + + /** + * Sets the length (in pixels) of each individual scroll operation + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "scrollDelta", optionValue: number): void; + + /** + * Gets whether the contents of the column being dragged will get hidden. The option is only + * relevant in immediate moving mode. + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "hideHeaderContentsDuringDrag"): boolean; + + /** + * Sets whether the contents of the column being dragged will get hidden. The option is only + * relevant in immediate moving mode. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "hideHeaderContentsDuringDrag", optionValue: boolean): void; + + /** + * Gets the opacity of the drag markup, while a column header is being dragged. + * The value must be between 0 and 1. When GroupBy is enabled, the corresponding option in the GroupBy configuration + * will be used with priority over this one. + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dragHelperOpacity"): number; + + /** + * Sets the opacity of the drag markup, while a column header is being dragged. + * The value must be between 0 and 1. When GroupBy is enabled, the corresponding option in the GroupBy configuration + * will be used with priority over this one. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dragHelperOpacity", optionValue: number): void; + + /** + * Gets caption for each move down button in the column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonDesc"): string; + + /** + * Sets caption for each move down button in the column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonDesc", optionValue: string): void; + + /** + * Gets caption for each move up button in the column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonAsc"): string; + + /** + * Sets caption for each move up button in the column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionButtonAsc", optionValue: string): void; + + /** + * Gets caption text for the column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionText"): string; + + /** + * Sets caption text for the column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogCaptionText", optionValue: string): void; + + /** + * Gets caption text for the feature chooser entry + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDisplayText"): string; + + /** + * Sets caption text for the feature chooser entry + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDisplayText", optionValue: string): void; + + /** + * Gets text for drop tooltip in column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipText"): string; + + /** + * Sets text for drop tooltip in column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipText", optionValue: string): void; + + /** + * Gets markup for drop tooltip in column moving dialog + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipMarkup"): string; + + /** + * Sets markup for drop tooltip in column moving dialog + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDropTooltipMarkup", optionValue: string): void; + + /** + * Gets caption for the move left dropdown button + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLeftText"): string; + + /** + * Sets caption for the move left dropdown button + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLeftText", optionValue: string): void; + + /** + * Gets caption for the move right dropdown button + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveRightText"): string; + + /** + * Sets caption for the move right dropdown button + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveRightText", optionValue: string): void; + + /** + * Gets caption for the move first dropdown button + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveFirstText"): string; + + /** + * Sets caption for the move first dropdown button + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveFirstText", optionValue: string): void; + + /** + * Gets caption for the move last dropdown button + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLastText"): string; + + /** + * Sets caption for the move last dropdown button + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dropDownMoveLastText", optionValue: string): void; + + /** + * Gets tooltip text for the move indicator + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingToolTipMove"): string; + + /** + * Sets tooltip text for the move indicator + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingToolTipMove", optionValue: string): void; + + /** + * Gets caption text for the feature chooser submenu button + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "featureChooserSubmenuText"): string; + + /** + * Sets caption text for the feature chooser submenu button + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "featureChooserSubmenuText", optionValue: string): void; + + /** + * Controls containment behavior of column moving dialog. + * + * owner The dialog will be draggable only in the grid area + * window The dialog will be draggable in the whole window area + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnMovingDialogContainment"): string; + + /** + * Controls containment behavior of column moving dialog. + * + * owner The dialog will be draggable only in the grid area + * window The dialog will be draggable in the whole window area + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnMovingDialogContainment", optionValue: string): void; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dialogWidget"): string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "dialogWidget", optionValue: string): void; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "inherit"): boolean; + + /** + * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. + * + * @optionValue New value to be set. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "inherit", optionValue: boolean): void; + + /** + * Event which is fired when a drag operation begins on a column header + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnDragStart"): ColumnDragStartEvent; + + /** + * Event which is fired when a drag operation begins on a column header + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnDragStart", optionValue: ColumnDragStartEvent): void; + + /** + * Event which is fired when a drag operation ends on a column header + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnDragEnd"): ColumnDragEndEvent; + + /** + * Event which is fired when a drag operation ends on a column header + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnDragEnd", optionValue: ColumnDragEndEvent): void; + + /** + * Event which is fired when a drag operation is canceled + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnDragCanceled"): ColumnDragCanceledEvent; + + /** + * Event which is fired when a drag operation is canceled + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnDragCanceled", optionValue: ColumnDragCanceledEvent): void; + + /** + * Event which is fired when a column moving operation is initiated + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnMoving"): ColumnMovingEvent; + + /** + * Event which is fired when a column moving operation is initiated + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnMoving", optionValue: ColumnMovingEvent): void; + + /** + * Event which is fired when a column moving operation completes + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnMoved"): ColumnMovedEvent; + + /** + * Event which is fired when a column moving operation completes + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "columnMoved", optionValue: ColumnMovedEvent): void; + + /** + * Event fired before the moving dialog is opened. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpening"): MovingDialogOpeningEvent; + + /** + * Event fired before the moving dialog is opened. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpening", optionValue: MovingDialogOpeningEvent): void; + + /** + * Event fired after the column chooser is already opened. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpened"): MovingDialogOpenedEvent; + + /** + * Event fired after the column chooser is already opened. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogOpened", optionValue: MovingDialogOpenedEvent): void; + + /** + * Event fired every time the moving dialog changes its position. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragged"): MovingDialogDraggedEvent; + + /** + * Event fired every time the moving dialog changes its position. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragged", optionValue: MovingDialogDraggedEvent): void; + + /** + * Event fired before the moving dialog is closed. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosing"): MovingDialogClosingEvent; + + /** + * Event fired before the moving dialog is closed. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosing", optionValue: MovingDialogClosingEvent): void; + + /** + * Event fired after the moving dialog has been closed. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosed"): MovingDialogClosedEvent; + + /** + * Event fired after the moving dialog has been closed. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogClosed", optionValue: MovingDialogClosedEvent): void; + + /** + * Event fired before the contents of the model dialog are rendered. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendering"): MovingDialogContentsRenderingEvent; + + /** + * Event fired before the contents of the model dialog are rendered. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendering", optionValue: MovingDialogContentsRenderingEvent): void; + + /** + * Event fired after the contents of the model dialog are rendered. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendered"): MovingDialogContentsRenderedEvent; + + /** + * Event fired after the contents of the model dialog are rendered. + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogContentsRendered", optionValue: MovingDialogContentsRenderedEvent): void; + + /** + * Event fired when move up button is pressed in the moving dialog + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveUpButtonPressed"): MovingDialogMoveUpButtonPressedEvent; + + /** + * Event fired when move up button is pressed in the moving dialog + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveUpButtonPressed", optionValue: MovingDialogMoveUpButtonPressedEvent): void; + + /** + * Event fired when move down button is pressed in the moving dialog + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveDownButtonPressed"): MovingDialogMoveDownButtonPressedEvent; + + /** + * Event fired when move down button is pressed in the moving dialog + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogMoveDownButtonPressed", optionValue: MovingDialogMoveDownButtonPressedEvent): void; + + /** + * Event fired when column moving is initiated through dragging it in the moving dialog + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoving"): MovingDialogDragColumnMovingEvent; + + /** + * Event fired when column moving is initiated through dragging it in the moving dialog + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoving", optionValue: MovingDialogDragColumnMovingEvent): void; + + /** + * Event fired when column moving is completed through dragging it in the moving dialog + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoved"): MovingDialogDragColumnMovedEvent; + + /** + * Event fired when column moving is completed through dragging it in the moving dialog + * + * @optionValue Define event handler function. + */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "movingDialogDragColumnMoved", optionValue: MovingDialogDragColumnMovedEvent): void; igTreeGridColumnMoving(options: IgTreeGridColumnMoving): JQuery; igTreeGridColumnMoving(optionLiteral: 'option', optionName: string): any; igTreeGridColumnMoving(optionLiteral: 'option', options: IgTreeGridColumnMoving): JQuery; @@ -71725,6 +81108,7 @@ interface JQuery { igTreeGridColumnMoving(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridFiltering { + /** * The property in the response that will hold the total number of records in the data source * @@ -71768,17 +81152,446 @@ interface IgTreeGridFiltering { */ filterSummaryInPagerTemplate?: string; + /** + * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. + * + */ + caseSensitive?: boolean; + + /** + * Enable/disable footer visibility with summary info about the filter. + * When false, the filter summary row (in the footer) will only be visible when paging is enabled (or some other feature that renders a footer). + * When true, the filter summary row will only be visible when a filter is applied i.e. it's not visible by default. + * + */ + filterSummaryAlwaysVisible?: boolean; + + /** + * Render in [Feature Chooser](http://www.igniteui.com/help/iggrid-feature-chooser) + * + */ + renderFC?: boolean; + + /** + * Summary template that will appear in the bottom left corner of the footer. Has the format '${matches} matching records'. + * + */ + filterSummaryTemplate?: string; + + /** + * Type of animations for the column filter dropdowns. + * + * + * Valid values: + * "linear" The column filtering drop downs are shown with a linear animation. + * "none" No animation is used when showing the filtering drop downs. + */ + filterDropDownAnimations?: string; + + /** + * Animation duration in milliseconds for the [filterDropDownAnimations](ui.iggridfiltering#options:filterDropDownAnimations). + * + */ + filterDropDownAnimationDuration?: number; + + /** + * Width of the column filter dropdowns. + * + * + * Valid values: + * "string" The width in pixels (0px) + * "number" The width in pixels as a number (0) + */ + filterDropDownWidth?: string|number; + + /** + * Height of the column filter dropdowns. + * + * string The height of the column filter dropdowns in pixels (0px). + * number The height of the column filter dropdowns in pixels as a number (0). + */ + filterDropDownHeight?: any; + + /** + * URL key name that specifies how the filtering expressions will be encoded for remote requests, e.g. &filter('col') = startsWith. Default is OData. + * + */ + filterExprUrlKey?: string; + + /** + * Enable/disable filter icons visibility. + * + * + * Valid values: + * "true" All predefined filters in the filter dropdowns will have icons rendered in front of the text. + * "false" No icons will be rendered. + */ + filterDropDownItemIcons?: boolean; + + /** + * A list of column settings that specifies custom filtering options on a per column basis. + * + */ + columnSettings?: IgGridFilteringColumnSetting[]; + + /** + * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). + * + * + * Valid values: + * "remote" Filtering is performed by a remote end-point. + * "local" Filtering is performed locally by the [$.ig.DataSource](ig.datasource). + */ + type?: string; + + /** + * Time in milliseconds for which widget will wait between keystrokes before sending filtering requests. + * + */ + filterDelay?: number; + + /** + * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. + * + * + * Valid values: + * "simple" Renders just a filter row. + * "advanced" Allows to configure multiple filters from a dialog - Excel style. + */ + mode?: string; + + /** + * Defines whether to render editors in advanced [mode](ui.iggridfiltering#options:mode). If false, no editors will be rendered in the advanced [mode](ui.iggridfiltering#options:mode). + * + */ + advancedModeEditorsVisible?: boolean; + + /** + * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). + * + * + * Valid values: + * "left" + * "right" + */ + advancedModeHeaderButtonLocation?: string; + + /** + * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * Valid values: + * "string" The dialog window width in pixels (370px). + * "number" The dialog window width in pixels as a number (370). + */ + filterDialogWidth?: string|number; + + /** + * default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * Valid values: + * "string" The dialog window height in pixels (350px). + * "number" The dialog window height in pixels as a number (350). + */ + filterDialogHeight?: string|number; + + /** + * Width of the filtering condition dropdowns in the advanced filter dialog. + * + * + * Valid values: + * "string" The filtering condition dropdowns width in pixels (80px). + * "number" The filtering condition dropdowns width in pixels as a number (80). + */ + filterDialogFilterDropDownDefaultWidth?: string|number; + + /** + * Width of the filtering expression input boxes in the advanced filter dialog. + * + * + * Valid values: + * "string" The filtering expression input boxes width in pixels (80px). + * "number" The filtering expression input boxes width in pixels as a number (80). + */ + filterDialogExprInputDefaultWidth?: string|number; + + /** + * Width of the column chooser dropdowns in the advanced filter dialog. + * + * + * Valid values: + * "string" The column chooser dropdowns width in pixels (80px). + * "number" The column chooser dropdowns width in pixels as a number (80). + */ + filterDialogColumnDropDownDefaultWidth?: string|number; + + /** + * Enable/disable filter button visibility. If false, no filter dropdown buttons will be rendered and a predefined list of filters will not be rendered for the columns. + * + */ + renderFilterButton?: boolean; + + /** + * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. + * + * + * Valid values: + * "left" The button is rendered on the left. + * "right" The button is rendered on the right. + */ + filterButtonLocation?: string; + + /** + * List of configurable and localized null texts that will be used for the filter editors. + * + */ + nullTexts?: IgGridFilteringNullTexts; + + /** + * A list of configurable and localized labels that are used for the predefined filtering conditions in the filter dropdowns. + * + */ + labels?: IgGridFilteringLabels; + + /** + * Custom tooltip template for the filter button, when a filter is applied. + * + */ + tooltipTemplate?: string; + + /** + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * + */ + filterDialogAddConditionTemplate?: string; + + /** + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * + */ + filterDialogAddConditionDropDownTemplate?: string; + + /** + * Custom template for filter dialog. + * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. + * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". + * NOTE: The template is supported only with . + * The default template is " ". + * + */ + filterDialogFilterTemplate?: string; + + /** + * Custom template for options in condition list in filter dialog. The default template is "". + * + */ + filterDialogFilterConditionTemplate?: string; + + /** + * Add button width - in the advanced filter dialog. + * + * + * Valid values: + * "string" The dialog Add button width in pixels (100px). + * "number" The dialog Add button width in pixels as a number (100). + */ + filterDialogAddButtonWidth?: string|number; + + /** + * Width of the Ok and Cancel buttons in the advanced filtering dialogs. + * + * + * Valid values: + * "string" The advanced filter dialog Ok and Cancel buttons width in pixels (120px). + * "number" The advanced filter dialog Ok and Cancel buttons width in pixels as a number (120). + */ + filterDialogOkCancelButtonWidth?: string|number; + + /** + * Maximum number of filter rows in the advanced filtering dialog. If this number is exceeded, an error message will be rendered. + * + */ + filterDialogMaxFilterCount?: number; + + /** + * Controls containment behavior. + * + * owner The filter dialog will be draggable only within the grid area. + * window The filter dialog will be draggable within the whole window area. + */ + filterDialogContainment?: string; + + /** + * Enable/disable empty condition visibility in the filter. If true, shows empty and not empty filtering conditions in the dropdowns. + * + */ + showEmptyConditions?: boolean; + + /** + * Enable/disable visibility of null and not null filtering conditions in the dropdowns. If true, shows null and not null filtering conditions in the dropdowns. + * + */ + showNullConditions?: boolean; + + /** + * Feature chooser text when filter is shown and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + featureChooserText?: string; + + /** + * Feature chooser text when filter is hidden and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + featureChooserTextHide?: string; + + /** + * Feature chooser text when filter [mode](ui.iggridfiltering#options:mode) is advanced. + * + */ + featureChooserTextAdvancedFilter?: string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + dialogWidget?: string; + + /** + * Enables/disables filtering persistence between states. + * + */ + persist?: boolean; + + /** + * Enables/disables feature inheritance for the child [layouts](ui.ighierarchicalgrid#options:columnLayouts). NOTE: It only applies for [igHierarchicalGrid](ui.ighierarchicalgrid). + * + */ + inherit?: boolean; + + /** + * Event fired before a filtering operation is executed (remote request or local). + * Return false in order to cancel filtering operation. + */ + dataFiltering?: DataFilteringEvent; + + /** + * Event fired after the filtering has been executed and results are rendered. + */ + dataFiltered?: DataFilteredEvent; + + /** + * Event fired before the filter dropdown is opened for a specific column. + * Return false in order to cancel dropdown opening. + */ + dropDownOpening?: DropDownOpeningEvent; + + /** + * Event fired after the filter dropdown is opened for a specific column. + */ + dropDownOpened?: DropDownOpenedEvent; + + /** + * Event fired before the filter dropdown starts closing. + * Return false in order to cancel dropdown closing. + */ + dropDownClosing?: DropDownClosingEvent; + + /** + * Event fired after a filter column dropdown is completely closed. + */ + dropDownClosed?: DropDownClosedEvent; + + /** + * Event fired before the advanced filtering dialog is opened. + * Return false in order to cancel filter dialog opening. + */ + filterDialogOpening?: FilterDialogOpeningEvent; + + /** + * Event fired after the advanced filter dialog is already opened. + */ + filterDialogOpened?: FilterDialogOpenedEvent; + + /** + * Event fired every time the advanced filter dialog changes its position. + */ + filterDialogMoving?: FilterDialogMovingEvent; + + /** + * Event fired before a filter row is added to the advanced filter dialog. + * Return false in order to cancel filter adding to the advanced filtering dialog. + */ + filterDialogFilterAdding?: FilterDialogFilterAddingEvent; + + /** + * Event fired after a filter row is added to the advanced filter dialog. + */ + filterDialogFilterAdded?: FilterDialogFilterAddedEvent; + + /** + * Event fired before the advanced filter dialog is closed. + * Return false in order to cancel filtering dialog closing. + */ + filterDialogClosing?: FilterDialogClosingEvent; + + /** + * Event fired after the advanced filter dialog has been closed. + */ + filterDialogClosed?: FilterDialogClosedEvent; + + /** + * Event fired before the contents of the advanced filter dialog are rendered. + * Return false in order to cancel filtering dialog rendering. + */ + filterDialogContentsRendering?: FilterDialogContentsRenderingEvent; + + /** + * Event fired after the contents of the advanced filter dialog are rendered. + */ + filterDialogContentsRendered?: FilterDialogContentsRenderedEvent; + + /** + * Event fired when the OK button in the advanced filter dialog is pressed. + */ + filterDialogFiltering?: FilterDialogFilteringEvent; + /** * Option for igTreeGridFiltering */ [optionName: string]: any; } interface IgTreeGridFilteringMethods { + /** * Returns the count of data records that match filtering conditions */ getFilteringMatchesCount(): number; destroy(): void; + + /** + * Toggle filter row when mode is simple or [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is true. Otherwise show/hide advanced dialog. + * + * @param event Column key + */ + toggleFilterRowByFeatureChooser(event: string): void; + + /** + * Applies filtering programmatically and updates the UI by default. + * + * @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string. + * @param updateUI specifies whether the filter row should be also updated once the grid is filtered + * @param addedFromAdvanced + */ + filter(expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void; + + /** + * Check whether filterCondition requires or not filtering expression - e.g. if filterCondition is "lastMonth", "thisMonth", "null", "notNull", "true", "false", etc. then filtering expression is NOT required + * + * @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc. + */ + requiresFilteringExpression(filterCondition: string): boolean; } interface JQuery { data(propertyName: "igTreeGridFiltering"): IgTreeGridFilteringMethods; @@ -71787,6 +81600,9 @@ interface JQuery { interface JQuery { igTreeGridFiltering(methodName: "getFilteringMatchesCount"): number; igTreeGridFiltering(methodName: "destroy"): void; + igTreeGridFiltering(methodName: "toggleFilterRowByFeatureChooser", event: string): void; + igTreeGridFiltering(methodName: "filter", expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void; + igTreeGridFiltering(methodName: "requiresFilteringExpression", filterCondition: string): boolean; /** * The property in the response that will hold the total number of records in the data source @@ -71885,6 +81701,820 @@ interface JQuery { * @optionValue New value to be set. */ igTreeGridFiltering(optionLiteral: 'option', optionName: "filterSummaryInPagerTemplate", optionValue: string): void; + + /** + * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "caseSensitive"): boolean; + + /** + * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "caseSensitive", optionValue: boolean): void; + + /** + * Enable/disable footer visibility with summary info about the filter. + * When false, the filter summary row (in the footer) will only be visible when paging is enabled (or some other feature that renders a footer). + * When true, the filter summary row will only be visible when a filter is applied i.e. it's not visible by default. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterSummaryAlwaysVisible"): boolean; + + /** + * Enable/disable footer visibility with summary info about the filter. + * When false, the filter summary row (in the footer) will only be visible when paging is enabled (or some other feature that renders a footer). + * When true, the filter summary row will only be visible when a filter is applied i.e. it's not visible by default. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterSummaryAlwaysVisible", optionValue: boolean): void; + + /** + * Render in [Feature Chooser](http://www.igniteui.com/help/iggrid-feature-chooser) + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "renderFC"): boolean; + + /** + * Render in [Feature Chooser](http://www.igniteui.com/help/iggrid-feature-chooser) + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "renderFC", optionValue: boolean): void; + + /** + * Summary template that will appear in the bottom left corner of the footer. Has the format '${matches} matching records'. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterSummaryTemplate"): string; + + /** + * Summary template that will appear in the bottom left corner of the footer. Has the format '${matches} matching records'. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterSummaryTemplate", optionValue: string): void; + + /** + * Type of animations for the column filter dropdowns. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations"): string; + + /** + * Type of animations for the column filter dropdowns. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations", optionValue: string): void; + + /** + * Animation duration in milliseconds for the [filterDropDownAnimations](ui.iggridfiltering#options:filterDropDownAnimations). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimationDuration"): number; + + /** + * Animation duration in milliseconds for the [filterDropDownAnimations](ui.iggridfiltering#options:filterDropDownAnimations). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimationDuration", optionValue: number): void; + + /** + * Width of the column filter dropdowns. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth"): string|number; + + /** + * Width of the column filter dropdowns. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth", optionValue: string|number): void; + + /** + * Height of the column filter dropdowns. + * + * string The height of the column filter dropdowns in pixels (0px). + * number The height of the column filter dropdowns in pixels as a number (0). + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownHeight"): any; + + /** + * Height of the column filter dropdowns. + * + * string The height of the column filter dropdowns in pixels (0px). + * number The height of the column filter dropdowns in pixels as a number (0). + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownHeight", optionValue: any): void; + + /** + * URL key name that specifies how the filtering expressions will be encoded for remote requests, e.g. &filter('col') = startsWith. Default is OData. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterExprUrlKey"): string; + + /** + * URL key name that specifies how the filtering expressions will be encoded for remote requests, e.g. &filter('col') = startsWith. Default is OData. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterExprUrlKey", optionValue: string): void; + + /** + * Enable/disable filter icons visibility. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons"): boolean; + + /** + * Enable/disable filter icons visibility. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons", optionValue: boolean): void; + + /** + * A list of column settings that specifies custom filtering options on a per column basis. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "columnSettings"): IgGridFilteringColumnSetting[]; + + /** + * A list of column settings that specifies custom filtering options on a per column basis. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "columnSettings", optionValue: IgGridFilteringColumnSetting[]): void; + + /** + * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "type"): string; + + /** + * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "type", optionValue: string): void; + + /** + * Time in milliseconds for which widget will wait between keystrokes before sending filtering requests. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDelay"): number; + + /** + * Time in milliseconds for which widget will wait between keystrokes before sending filtering requests. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDelay", optionValue: number): void; + + /** + * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "mode"): string; + + /** + * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "mode", optionValue: string): void; + + /** + * Defines whether to render editors in advanced [mode](ui.iggridfiltering#options:mode). If false, no editors will be rendered in the advanced [mode](ui.iggridfiltering#options:mode). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "advancedModeEditorsVisible"): boolean; + + /** + * Defines whether to render editors in advanced [mode](ui.iggridfiltering#options:mode). If false, no editors will be rendered in the advanced [mode](ui.iggridfiltering#options:mode). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "advancedModeEditorsVisible", optionValue: boolean): void; + + /** + * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation"): string; + + /** + * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation", optionValue: string): void; + + /** + * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth"): string|number; + + /** + * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth", optionValue: string|number): void; + + /** + * Default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight"): string|number; + + /** + * Default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight", optionValue: string|number): void; + + /** + * Width of the filtering condition dropdowns in the advanced filter dialog. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth"): string|number; + + /** + * Width of the filtering condition dropdowns in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth", optionValue: string|number): void; + + /** + * Width of the filtering expression input boxes in the advanced filter dialog. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth"): string|number; + + /** + * Width of the filtering expression input boxes in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth", optionValue: string|number): void; + + /** + * Width of the column chooser dropdowns in the advanced filter dialog. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth"): string|number; + + /** + * Width of the column chooser dropdowns in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth", optionValue: string|number): void; + + /** + * Enable/disable filter button visibility. If false, no filter dropdown buttons will be rendered and a predefined list of filters will not be rendered for the columns. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "renderFilterButton"): boolean; + + /** + * Enable/disable filter button visibility. If false, no filter dropdown buttons will be rendered and a predefined list of filters will not be rendered for the columns. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "renderFilterButton", optionValue: boolean): void; + + /** + * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation"): string; + + /** + * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation", optionValue: string): void; + + /** + * List of configurable and localized null texts that will be used for the filter editors. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "nullTexts"): IgGridFilteringNullTexts; + + /** + * List of configurable and localized null texts that will be used for the filter editors. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "nullTexts", optionValue: IgGridFilteringNullTexts): void; + + /** + * A list of configurable and localized labels that are used for the predefined filtering conditions in the filter dropdowns. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "labels"): IgGridFilteringLabels; + + /** + * A list of configurable and localized labels that are used for the predefined filtering conditions in the filter dropdowns. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "labels", optionValue: IgGridFilteringLabels): void; + + /** + * Custom tooltip template for the filter button, when a filter is applied. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "tooltipTemplate"): string; + + /** + * Custom tooltip template for the filter button, when a filter is applied. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "tooltipTemplate", optionValue: string): void; + + /** + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate"): string; + + /** + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate", optionValue: string): void; + + /** + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionDropDownTemplate"): string; + + /** + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionDropDownTemplate", optionValue: string): void; + + /** + * Custom template for filter dialog. + * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. + * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". + * NOTE: The template is supported only with . + * The default template is " ". + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate"): string; + + /** + * Custom template for filter dialog. + * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. + * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". + * NOTE: The template is supported only with . + * The default template is " ". + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate", optionValue: string): void; + + /** + * Custom template for options in condition list in filter dialog. The default template is "". + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterConditionTemplate"): string; + + /** + * Custom template for options in condition list in filter dialog. The default template is "". + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterConditionTemplate", optionValue: string): void; + + /** + * Add button width - in the advanced filter dialog. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth"): string|number; + + /** + * Add button width - in the advanced filter dialog. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth", optionValue: string|number): void; + + /** + * Width of the Ok and Cancel buttons in the advanced filtering dialogs. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth"): string|number; + + /** + * Width of the Ok and Cancel buttons in the advanced filtering dialogs. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth", optionValue: string|number): void; + + /** + * Maximum number of filter rows in the advanced filtering dialog. If this number is exceeded, an error message will be rendered. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogMaxFilterCount"): number; + + /** + * Maximum number of filter rows in the advanced filtering dialog. If this number is exceeded, an error message will be rendered. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogMaxFilterCount", optionValue: number): void; + + /** + * Controls containment behavior. + * + * owner The filter dialog will be draggable only within the grid area. + * window The filter dialog will be draggable within the whole window area. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogContainment"): string; + + /** + * Controls containment behavior. + * + * owner The filter dialog will be draggable only within the grid area. + * window The filter dialog will be draggable within the whole window area. + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogContainment", optionValue: string): void; + + /** + * Enable/disable empty condition visibility in the filter. If true, shows empty and not empty filtering conditions in the dropdowns. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "showEmptyConditions"): boolean; + + /** + * Enable/disable empty condition visibility in the filter. If true, shows empty and not empty filtering conditions in the dropdowns. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "showEmptyConditions", optionValue: boolean): void; + + /** + * Enable/disable visibility of null and not null filtering conditions in the dropdowns. If true, shows null and not null filtering conditions in the dropdowns. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "showNullConditions"): boolean; + + /** + * Enable/disable visibility of null and not null filtering conditions in the dropdowns. If true, shows null and not null filtering conditions in the dropdowns. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "showNullConditions", optionValue: boolean): void; + + /** + * Feature chooser text when filter is shown and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserText"): string; + + /** + * Feature chooser text when filter is shown and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserText", optionValue: string): void; + + /** + * Feature chooser text when filter is hidden and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextHide"): string; + + /** + * Feature chooser text when filter is hidden and filter [mode](ui.iggridfiltering#options:mode) is simple. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextHide", optionValue: string): void; + + /** + * Feature chooser text when filter [mode](ui.iggridfiltering#options:mode) is advanced. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextAdvancedFilter"): string; + + /** + * Feature chooser text when filter [mode](ui.iggridfiltering#options:mode) is advanced. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextAdvancedFilter", optionValue: string): void; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dialogWidget"): string; + + /** + * Name of the dialog widget to be used. It should inherit from $.ui.igGridModalDialog. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dialogWidget", optionValue: string): void; + + /** + * Enables/disables filtering persistence between states. + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "persist"): boolean; + + /** + * Enables/disables filtering persistence between states. + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "persist", optionValue: boolean): void; + + /** + * Enables/disables feature inheritance for the child [layouts](ui.ighierarchicalgrid#options:columnLayouts). NOTE: It only applies for [igHierarchicalGrid](ui.ighierarchicalgrid). + * + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "inherit"): boolean; + + /** + * Enables/disables feature inheritance for the child [layouts](ui.ighierarchicalgrid#options:columnLayouts). NOTE: It only applies for [igHierarchicalGrid](ui.ighierarchicalgrid). + * + * + * @optionValue New value to be set. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "inherit", optionValue: boolean): void; + + /** + * Event fired before a filtering operation is executed (remote request or local). + * Return false in order to cancel filtering operation. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dataFiltering"): DataFilteringEvent; + + /** + * Event fired before a filtering operation is executed (remote request or local). + * Return false in order to cancel filtering operation. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dataFiltering", optionValue: DataFilteringEvent): void; + + /** + * Event fired after the filtering has been executed and results are rendered. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dataFiltered"): DataFilteredEvent; + + /** + * Event fired after the filtering has been executed and results are rendered. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dataFiltered", optionValue: DataFilteredEvent): void; + + /** + * Event fired before the filter dropdown is opened for a specific column. + * Return false in order to cancel dropdown opening. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownOpening"): DropDownOpeningEvent; + + /** + * Event fired before the filter dropdown is opened for a specific column. + * Return false in order to cancel dropdown opening. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownOpening", optionValue: DropDownOpeningEvent): void; + + /** + * Event fired after the filter dropdown is opened for a specific column. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownOpened"): DropDownOpenedEvent; + + /** + * Event fired after the filter dropdown is opened for a specific column. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownOpened", optionValue: DropDownOpenedEvent): void; + + /** + * Event fired before the filter dropdown starts closing. + * Return false in order to cancel dropdown closing. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownClosing"): DropDownClosingEvent; + + /** + * Event fired before the filter dropdown starts closing. + * Return false in order to cancel dropdown closing. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownClosing", optionValue: DropDownClosingEvent): void; + + /** + * Event fired after a filter column dropdown is completely closed. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownClosed"): DropDownClosedEvent; + + /** + * Event fired after a filter column dropdown is completely closed. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "dropDownClosed", optionValue: DropDownClosedEvent): void; + + /** + * Event fired before the advanced filtering dialog is opened. + * Return false in order to cancel filter dialog opening. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpening"): FilterDialogOpeningEvent; + + /** + * Event fired before the advanced filtering dialog is opened. + * Return false in order to cancel filter dialog opening. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpening", optionValue: FilterDialogOpeningEvent): void; + + /** + * Event fired after the advanced filter dialog is already opened. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpened"): FilterDialogOpenedEvent; + + /** + * Event fired after the advanced filter dialog is already opened. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOpened", optionValue: FilterDialogOpenedEvent): void; + + /** + * Event fired every time the advanced filter dialog changes its position. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogMoving"): FilterDialogMovingEvent; + + /** + * Event fired every time the advanced filter dialog changes its position. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogMoving", optionValue: FilterDialogMovingEvent): void; + + /** + * Event fired before a filter row is added to the advanced filter dialog. + * Return false in order to cancel filter adding to the advanced filtering dialog. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdding"): FilterDialogFilterAddingEvent; + + /** + * Event fired before a filter row is added to the advanced filter dialog. + * Return false in order to cancel filter adding to the advanced filtering dialog. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdding", optionValue: FilterDialogFilterAddingEvent): void; + + /** + * Event fired after a filter row is added to the advanced filter dialog. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdded"): FilterDialogFilterAddedEvent; + + /** + * Event fired after a filter row is added to the advanced filter dialog. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterAdded", optionValue: FilterDialogFilterAddedEvent): void; + + /** + * Event fired before the advanced filter dialog is closed. + * Return false in order to cancel filtering dialog closing. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosing"): FilterDialogClosingEvent; + + /** + * Event fired before the advanced filter dialog is closed. + * Return false in order to cancel filtering dialog closing. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosing", optionValue: FilterDialogClosingEvent): void; + + /** + * Event fired after the advanced filter dialog has been closed. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosed"): FilterDialogClosedEvent; + + /** + * Event fired after the advanced filter dialog has been closed. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogClosed", optionValue: FilterDialogClosedEvent): void; + + /** + * Event fired before the contents of the advanced filter dialog are rendered. + * Return false in order to cancel filtering dialog rendering. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendering"): FilterDialogContentsRenderingEvent; + + /** + * Event fired before the contents of the advanced filter dialog are rendered. + * Return false in order to cancel filtering dialog rendering. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendering", optionValue: FilterDialogContentsRenderingEvent): void; + + /** + * Event fired after the contents of the advanced filter dialog are rendered. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendered"): FilterDialogContentsRenderedEvent; + + /** + * Event fired after the contents of the advanced filter dialog are rendered. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogContentsRendered", optionValue: FilterDialogContentsRenderedEvent): void; + + /** + * Event fired when the OK button in the advanced filter dialog is pressed. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFiltering"): FilterDialogFilteringEvent; + + /** + * Event fired when the OK button in the advanced filter dialog is pressed. + * + * @optionValue Define event handler function. + */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFiltering", optionValue: FilterDialogFilteringEvent): void; igTreeGridFiltering(options: IgTreeGridFiltering): JQuery; igTreeGridFiltering(optionLiteral: 'option', optionName: string): any; igTreeGridFiltering(optionLiteral: 'option', options: IgTreeGridFiltering): JQuery; @@ -71892,6 +82522,7 @@ interface JQuery { igTreeGridFiltering(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridHiding { + /** * A list of column settings that specifies hiding options on a per column basis. * @@ -72010,153 +82641,81 @@ interface IgTreeGridHiding { /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ columnHiding?: ColumnHidingEvent; /** * Event fired when trying to hide all columns in fixed or unfixed area. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ columnHidingRefused?: ColumnHidingRefusedEvent; /** * Event fired when trying to show column(s) in fixed area and total width of fixed are will be larger than whole grid width. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ columnShowingRefused?: ColumnShowingRefusedEvent; /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. */ multiColumnHiding?: MultiColumnHidingEvent; /** * Event fired after the hiding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ columnHidden?: ColumnHiddenEvent; /** * Event fired before a showing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ columnShowing?: ColumnShowingEvent; /** * Event fired after the showing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ columnShown?: ColumnShownEvent; /** * Event fired before the column chooser is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserOpening?: ColumnChooserOpeningEvent; /** * Event fired after the column chooser is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserOpened?: ColumnChooserOpenedEvent; /** * Event fired every time the column chooser changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the column chooser div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the column chooser div as { top, left } object, relative to the page. */ columnChooserMoving?: ColumnChooserMovingEvent; /** * Event fired before the column chooser is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserClosing?: ColumnChooserClosingEvent; /** * Event fired after the column chooser has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserClosed?: ColumnChooserClosedEvent; /** * Event fired before the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserContentsRendering?: ColumnChooserContentsRenderingEvent; /** * Event fired after the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserContentsRendered?: ColumnChooserContentsRenderedEvent; /** * Event fired when button Apply in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.columnsToShow to get array of columns identifiers which should be shown - * Use ui.columnsToHide to get array of columns identifiers which should be hidden */ columnChooserButtonApplyClick?: ColumnChooserButtonApplyClickEvent; /** * Event fired when button Reset in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ columnChooserButtonResetClick?: ColumnChooserButtonResetClickEvent; @@ -72525,21 +83084,11 @@ interface JQuery { /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnHiding"): ColumnHidingEvent; /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -72547,19 +83096,11 @@ interface JQuery { /** * Event fired when trying to hide all columns in fixed or unfixed area. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnHidingRefused"): ColumnHidingRefusedEvent; /** * Event fired when trying to hide all columns in fixed or unfixed area. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -72567,19 +83108,11 @@ interface JQuery { /** * Event fired when trying to show column(s) in fixed area and total width of fixed are will be larger than whole grid width. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnShowingRefused"): ColumnShowingRefusedEvent; /** * Event fired when trying to show column(s) in fixed area and total width of fixed are will be larger than whole grid width. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys array of column keys. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -72587,19 +83120,11 @@ interface JQuery { /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. */ igTreeGridHiding(optionLiteral: 'option', optionName: "multiColumnHiding"): MultiColumnHidingEvent; /** * Event fired before a hiding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnKeys to get array of the hidden column keys. In case when click on Reset button in column chooser then this is an array of column keys. * * @optionValue Define event handler function. */ @@ -72607,21 +83132,11 @@ interface JQuery { /** * Event fired after the hiding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnHidden"): ColumnHiddenEvent; /** * Event fired after the hiding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the hidden column index. Has a value only if the column's key is a number. - * Use ui.columnKey to get the hidden column key. Has a value only if the column's key is a string. * * @optionValue Define event handler function. */ @@ -72629,21 +83144,11 @@ interface JQuery { /** * Event fired before a showing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnShowing"): ColumnShowingEvent; /** * Event fired before a showing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. * * @optionValue Define event handler function. */ @@ -72651,21 +83156,11 @@ interface JQuery { /** * Event fired after the showing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnShown"): ColumnShownEvent; /** * Event fired after the showing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the shown column index. - * Use ui.columnKey to get the shown column key. * * @optionValue Define event handler function. */ @@ -72673,19 +83168,11 @@ interface JQuery { /** * Event fired before the column chooser is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserOpening"): ColumnChooserOpeningEvent; /** * Event fired before the column chooser is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72693,19 +83180,11 @@ interface JQuery { /** * Event fired after the column chooser is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserOpened"): ColumnChooserOpenedEvent; /** * Event fired after the column chooser is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72713,23 +83192,11 @@ interface JQuery { /** * Event fired every time the column chooser changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the column chooser div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the column chooser div as { top, left } object, relative to the page. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserMoving"): ColumnChooserMovingEvent; /** * Event fired every time the column chooser changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the column chooser div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the column chooser div as { top, left } object, relative to the page. * * @optionValue Define event handler function. */ @@ -72737,19 +83204,11 @@ interface JQuery { /** * Event fired before the column chooser is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserClosing"): ColumnChooserClosingEvent; /** * Event fired before the column chooser is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72757,19 +83216,11 @@ interface JQuery { /** * Event fired after the column chooser has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserClosed"): ColumnChooserClosedEvent; /** * Event fired after the column chooser has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72777,19 +83228,11 @@ interface JQuery { /** * Event fired before the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserContentsRendering"): ColumnChooserContentsRenderingEvent; /** * Event fired before the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72797,19 +83240,11 @@ interface JQuery { /** * Event fired after the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserContentsRendered"): ColumnChooserContentsRenderedEvent; /** * Event fired after the contents of the column chooser are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72817,23 +83252,11 @@ interface JQuery { /** * Event fired when button Apply in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.columnsToShow to get array of columns identifiers which should be shown - * Use ui.columnsToHide to get array of columns identifiers which should be hidden */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserButtonApplyClick"): ColumnChooserButtonApplyClickEvent; /** * Event fired when button Apply in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. - * Use ui.columnsToShow to get array of columns identifiers which should be shown - * Use ui.columnsToHide to get array of columns identifiers which should be hidden * * @optionValue Define event handler function. */ @@ -72841,19 +83264,11 @@ interface JQuery { /** * Event fired when button Reset in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. */ igTreeGridHiding(optionLiteral: 'option', optionName: "columnChooserButtonResetClick"): ColumnChooserButtonResetClickEvent; /** * Event fired when button Reset in column chooser is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridHiding widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the Column Chooser element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -72865,17 +83280,32 @@ interface JQuery { igTreeGridHiding(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridDataSourceSettings { + + /** + * *** IMPORTANT DEPRECATED *** Use the expandedKey option instead. + * The name of the property that keeps track of the expansion state of a data item. Defaults to __ig_options.expanded. + * + */ + propertyExpanded?: any; + + /** + * *** IMPORTANT DEPRECATED *** Use the dataLevelKey option instead. + * The name of the property that keeps track of the level in the hierarchy.Defaults to __ig_options.dataLevel. + * + */ + propertyDataLevel?: any; + /** * The name of the property that keeps track of the expansion state of a data item. Defaults to __ig_options.expanded. * */ - propertyExpanded?: string; + expandedKey?: string; /** * The name of the property that keeps track of the level in the hierarchy.Defaults to __ig_options.dataLevel. * */ - propertyDataLevel?: string; + dataLevelKey?: string; /** * If set to TRUE it is expected that the source of data is normalized and transformed(has set dataLevel and expansion state). The source of data is used as flatDataView. Usually used when the paging is remote and paging mode is allLevels, or features are remote(and the processing of the returned result should be made on the server) @@ -72890,6 +83320,7 @@ interface IgTreeGridDataSourceSettings { } interface IgTreeGrid { + /** * Specifies the indentation (in pixels or percent) for a tree grid row. Nested indentation is achieved by calculating the level times the indentation value. Ex: '10px' or '5%'. Default is 30. * @@ -72974,50 +83405,497 @@ interface IgTreeGrid { */ dataSourceSettings?: IgTreeGridDataSourceSettings; + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * Valid values: + * "string" The widget width can be set in pixels (px) or percentage (%). Example values: "800px", "800" (defaults to pixels), "100%". + * "number" The widget width can be set in pixels as a number. Example values: 800, 700. + * "null" will stretch to fit the sum of the columns widths. + */ + width?: string|number; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * Valid values: + * "string" The widget height can be set in pixels (px) and percentage (%). + * "number" The widget height can be set as a number + * "null" will stretch vertically to fit data. + */ + height?: string|number; + + /** + * If autoAdjustHeight is set to false, the [height](ui.iggrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data sets ( > 1000 rows rendered at once, no [virtualization](ui.iggrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + */ + autoAdjustHeight?: boolean; + + /** + * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + * + * Valid values: + * "string" The avarage row height can be set in pixels ("25px"). + * "number" The avarage row height can be set in pixels as a number (25). + */ + avgRowHeight?: string|number; + + /** + * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + * + * Valid values: + * "string" The avarage column width can be set in pixels ("25px"). + * "number" The avarage column width can be set in pixels as a number (25). + */ + avgColumnWidth?: string|number; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. + * + * + * Valid values: + * "string" The default column width can be set in pixels ("100px"). + * "number" The default column width can be set in pixels as a number (100). + */ + defaultColumnWidth?: string|number; + + /** + * If no [columns](ui.iggrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.iggrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.iggrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.iggrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) as well. + * + */ + autoGenerateColumns?: boolean; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + */ + virtualization?: boolean; + + /** + * Determines row virtualization mode. + * + * + * Valid values: + * "fixed" Renders only the visible rows and/or columns in the grid. On scrolling the same rows and/or columns are updated with new data from the data source. Only fixed virtualization can work with column virtualization at the same time. Fixed virtualization is not supported by some grid features: Resizing, Group By, Responsive. + * "continuous" renders a pre-defined number of rows in the grid. On scrolling the continuous virtualization loads another portion of rows and disposes the current one. + */ + virtualizationMode?: string; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + */ + rowVirtualization?: boolean; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.iggrid#options:virtualization) to true and [virtualizationMode](ui.iggrid#options:virtualizationMode) to "fixed". + * + */ + columnVirtualization?: boolean; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.iggrid#options:avgRowHeight). + * + */ + virtualizationMouseWheelStep?: number; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.iggrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.iggrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + */ + adjustVirtualHeights?: boolean; + + /** + * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + * + * Valid values: + * "infragistics" The grid will use the Infragistics Templating engine to render its [column templates](ui.iggrid#options:columns.template) and specific parts of the UI. + * "jsRender" The grid will use jsRender to render its [column templates](ui.iggrid#options:columns.template) and specific parts of the UI. + */ + templatingEngine?: string; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + */ + columns?: IgGridColumn[]; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + * + * Valid values: + * "array" dataSource as an array + * "object" ddataSource as an object + * "string" dataSource as a string + */ + dataSource?: Array|Object|string; + + /** + * Specifies a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + */ + dataSourceUrl?: string; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + */ + dataSourceType?: string; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + */ + responseDataKey?: string; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + */ + responseTotalRecCountKey?: string; + + /** + * Specifies the HTTP verb to be used to issue the requests to a remote data source. + * + */ + requestType?: string; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + responseContentType?: string; + + /** + * Controls the visibility of the grid header. + * + */ + showHeader?: boolean; + + /** + * Controls the visibility of the grid footer. + * + */ + showFooter?: boolean; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + */ + fixedHeaders?: boolean; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + */ + fixedFooters?: boolean; + + /** + * Caption text that will be shown above the grid header. + * + */ + caption?: string; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + */ + features?: IgGridFeature[]; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + */ + tabIndex?: number; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.iggrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.iggrid#options:columns) defined will be extracted in a new object and used. + * + */ + localSchemaTransform?: boolean; + + /** + * Key of the column containing unique identifiers for the data records. + * + */ + primaryKey?: string; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + */ + serializeTransactionLog?: boolean; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.iggrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + */ + autoCommit?: boolean; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.iggrid#options:autoCommit) is set to false. + * + */ + aggregateTransactions?: boolean; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * Valid values: + * "date" formats only Date columns + * "number" formats only number columns + * "dateandnumber" formats both Date and number columns + * "true" formats Date and number columns + * "false" auto formatting is disabled + */ + autoFormat?: string|boolean; + + /** + * Gets sets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.iggrid#options:columns.template). + * + */ + renderCheckboxes?: boolean; + + /** + * URL to which updating requests will be made. + * + */ + updateUrl?: string; + + /** + * Settings related to REST compliant update routines. + * + */ + restSettings?: IgGridRestSettings; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + */ + alternateRowStyles?: boolean; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + */ + autofitLastColumn?: boolean; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + */ + enableHoverStyles?: boolean; + + /** + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + */ + enableUTCDates?: boolean; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + */ + mergeUnboundColumns?: boolean; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + */ + jsonpRequest?: boolean; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.iggrid#options:width) and/or [height](ui.iggrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + */ + enableResizeContainerCheck?: boolean; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + * + * Valid values: + * "none" Always hide the feature chooser icon; The feature chooser is shown on tapping/clicking the column header. + * "desktopOnly" Always show the icon on desktop but hide when touch device detected. + * "always" Always show it in any environment. Chooser is shown when tapping the gear icon or column header. + */ + featureChooserIconDisplay?: string; + + /** + * Settings related to content scrolling. + * + */ + scrollSettings?: IgGridScrollSettings; + /** * Fired when a row is about to be expanded. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row */ rowExpanding?: RowExpandingEvent; /** * Fired when a row is expanded. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row - * use args.dataRecord to access the source data record */ rowExpanded?: RowExpandedEvent; /** * Fired when a row is about to be collapsed. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row */ rowCollapsing?: RowCollapsingEvent; /** * Fired after a row is collapsed - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row - * use args.dataRecord to access the source data record */ rowCollapsed?: RowCollapsedEvent; + /** + * Event fired when a cell is clicked. + */ + cellClick?: CellClickEvent; + + /** + * Event fired when a cell is right clicked. + */ + cellRightClick?: CellRightClickEvent; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + */ + dataBinding?: DataBindingEvent; + + /** + * Event fired after data binding is complete. + */ + dataBound?: DataBoundEvent; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + */ + rendering?: RenderingEvent; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + */ + rendered?: RenderedEvent; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + */ + dataRendering?: DataRenderingEvent; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + */ + dataRendered?: DataRenderedEvent; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + */ + headerRendering?: HeaderRenderingEvent; + + /** + * Event fired after the header has been rendered. + */ + headerRendered?: HeaderRenderedEvent; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + */ + captionRendering?: CaptionRenderingEvent; + + /** + * Event fired after the caption has been rendered. + */ + captionRendered?: CaptionRenderedEvent; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + */ + footerRendering?: FooterRenderingEvent; + + /** + * Event fired after the footer has been rendered. + */ + footerRendered?: FooterRenderedEvent; + + /** + * Event fired after every TH in the grid header has been rendered. + */ + headerCellRendered?: HeaderCellRenderedEvent; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + */ + rowsRendering?: RowsRenderingEvent; + + /** + * Event fired after data rows are rendered. + */ + rowsRendered?: RowsRenderedEvent; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + */ + schemaGenerated?: SchemaGeneratedEvent; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + */ + columnsCollectionModified?: ColumnsCollectionModifiedEvent; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + */ + requestError?: RequestErrorEvent; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + */ + created?: CreatedEvent; + + /** + * Fired when the grid is destroyed + */ + destroyed?: DestroyedEvent; + /** * Option for igTreeGrid */ [optionName: string]: any; } interface IgTreeGridMethods { + /** * Clears the transaction log (delegates to igDataSource). Note that this does not update the UI. In case the UI must be updated, set the second parameter "updateUI" to true, which will trigger a call to dataBind() to re-render the contents. * @@ -73067,6 +83945,452 @@ interface IgTreeGridMethods { * Destroys igTreeGrid */ destroy(): Object; + + /** + * Returns the element holding the data records + */ + widget(): void; + + /** + * Returns whether grid has non-data fixed columns(e.g. row selectors column) + */ + hasFixedDataSkippedColumns(): boolean; + + /** + * Returns true if grid has at least one fixed columns(even if a non-data column - like row-selectors column) + */ + hasFixedColumns(): boolean; + + /** + * Returns the current fixing direction. NOTE - use only if ColumnFixing feature is enabled + * @return left|right + */ + fixingDirection(): string; + + /** + * Returns whether the column with identifier colKey is fixed + * + * @param colKey An identifier of the column which should be checked. It can be a key or visible index. + */ + isFixedColumn(colKey: Object): boolean; + + /** + * Called to detect whether grid container is resized. When autoAdjustHeight is true and height of the grid is changed then the height of grid is re-set. + */ + resizeContainer(): void; + + /** + * Returns whether the header identified by colKey is multicolumn header(has children) + * + * @param colKey value of the column key + */ + isGroupHeader(colKey: string): Object; + + /** + * Returns an object that contains information on the passed Dom element + * + * rowId - the id of the record associated with the element - if primaryKey is not set this will be null. + * rowIndex - the index (in the DOM) of the row associated with the element. + * recordIndex - index of the data record associated with this element in the current dataView. + * columnObject - the column object associated with this element ( if the element is tr this will be null) + * + * @param elem The Dom element or jQuery object which can be a TD or TR element from the grid. + */ + getElementInfo(elem: Element): Object; + + /** + * Returns the ID of the TABLE element where data records are rendered + */ + id(): string; + + /** + * Returns the DIV that is the topmost container of the grid widget + */ + container(): Element; + + /** + * Returns the table that contains the header cells + */ + headersTable(): Element; + + /** + * Returns the table that contains the footer cells + */ + footersTable(): Element; + + /** + * Returns the DIV that is used as a scroll container for the grid contents + */ + scrollContainer(): Element; + + /** + * Returns the DIV that is the topmost container of the fixed grid - contains fixed columns(in ColumnFixing scenario) + */ + fixedContainer(): Element; + + /** + * Returns the DIV that is the topmost container of the fixed body grid - contains fixed columns(in ColumnFixing scenario) + */ + fixedBodyContainer(): Element; + + /** + * Returns container(jQuery representation) containing fixed footer - contains fixed columns(in ColumnFixing scenario) + */ + fixedFooterContainer(): Object; + + /** + * Returns container(jQuery representation) containing fixed header - contains fixed columns(in ColumnFixing scenario) + */ + fixedHeaderContainer(): Object; + + /** + * Returns the table that contains the FIXED header cells - contains fixed columns(in ColumnFixing scenario) + */ + fixedHeadersTable(): Element; + + /** + * Returns the table that contains the footer cells - contains fixed columns(in ColumnFixing scenario) + */ + fixedFootersTable(): Element; + + /** + * Returns the cell TD element at the specified location + * + * @param x The column index. + * @param y The row index. + * @param isFixed Optional parameter - if true get cell TD at the specified location from the fixed table + */ + cellAt(x: number, y: number, isFixed: boolean): Element; + + /** + * Returns the cell TD element by row id and column key + * + * @param rowId The id of the row. + * @param columnKey The column key. + */ + cellById(rowId: Object, columnKey: string): Element; + + /** + * Returns the fixed table - contains fixed columns(in ColumnFixing scenario). If there aren't fixed columns returns the grid table + */ + fixedTable(): Object; + + /** + * Gets all immediate children of the current grid + */ + immediateChildrenWidgets(): any[]; + + /** + * Gets all children of the current grid, recursively + */ + childrenWidgets(): any[]; + + /** + * Gets all children's elements of the current grid, recursively + */ + children(): any[]; + + /** + * Gets all immediate children's elements of the current grid + */ + immediateChildren(): any[]; + + /** + * Returns the row (TR element) at the specified index. jQuery selectors aren't used for performance reasons + * + * @param i The row index. + */ + rowAt(i: number): Element; + + /** + * Returns the row TR element by row id + * + * @param rowId The id of the row. + * @param isFixed Specify search in the fixed container. + */ + rowById(rowId: Object, isFixed?: boolean): Element; + + /** + * Returns the fixed row (TR element) at the specified index. jQuery selectors aren't used for performance reasons(in ColumnFixing scenario - only when there is at least one fixed column) + * + * @param i The row index. + */ + fixedRowAt(i: number): Element; + + /** + * Returns a list of all fixed TR elements holding data in the grid(in ColumnFixing scenario - only when there is at least one fixed column) + */ + fixedRows(): any[]; + + /** + * Returns a list of all TR elements holding data in the grid(when there is at least one fixed column returns rows only in the UNFIXED table) + */ + rows(): any[]; + + /** + * Returns all data fixed rows recursively, not only the immediate ones(in ColumnFixing scenario - only when there is at least one fixed column) + */ + allFixedRows(): any[]; + + /** + * Returns all data rows recursively, not only the immediate ones(when there is at least one fixed column returns rows only in the UNFIXED table) + */ + allRows(): any[]; + + /** + * Returns a column object by the specified column key + * + * @param key The column key. + */ + columnByKey(key: string): Object; + + /** + * Returns a column object by the specified header text. If there are multiple matches, returns the first one. + * + * @param text The column header text. + */ + columnByText(text: string): Object; + + /** + * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . + * If multiple selection is disabled the function will return null. + */ + selectedCells(): any[]; + + /** + * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . + * If multiple selection is disabled the function will return null. + */ + selectedRows(): any[]; + + /** + * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. + * If multiple selection is enabled the function will return null. + */ + selectedCell(): Object; + + /** + * Returns the currently selected row that has the format { element: , index: }, if any. + * If multiple selection is enabled the function will return null. + */ + selectedRow(): Object; + + /** + * Returns the currently active (focused) cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. + */ + activeCell(): Object; + + /** + * Returns the currently active (focused) row that has the format { element: , index: }, if any. + */ + activeRow(): Object; + + /** + * Retrieves a cell value using the row index and the column key. If a primaryKey is defined, rowId is assumed to be the row Key (not index). + * If primary key is not defined, then rowId is converted to a number and is used as a row index. + * + * @param rowId Row index or row key (primary key). + * @param colKey The column key. + */ + getCellValue(rowId: Object, colKey: string): Object; + + /** + * Returns the cell text. If colKey is a number, the index of the column is used (instead of a column name)- does not apply when using a Multi-Row Layout grid. + * This is the actual text (or HTML string) for the contents of the cell. + * + * @param rowId Row index or row data key (primary key) + * @param colKey Column key. + */ + getCellText(rowId: Object, colKey: string): string; + + /** + * Sets a new template for a column after initialization and renders the grid if not explicitly disabled. This method will replace any existing explicitly set row template and will build one anew from the column ones. + * + * @param col An identifier of the column to set template for (index or key) + * @param tmpl The column template to set + * @param render Should the grid rerender after template is set + */ + setColumnTemplate(col: Object, tmpl: string, render?: boolean): void; + + /** + * Commits all pending transactions to the client data source. Note that there won't be anything to commit on the UI, since it is updated instantly. In order to rollback the actual UI, a call to dataBind() is required. + * + * @param rowId If specified, will commit only that transaction corresponding to the specified record key. + */ + commit(rowId?: Object): void; + + /** + * Returns a record by a specified key (requires that primaryKey is set in the settings). + * That is a wrapper for this.dataSource.findRecordByKey(key). + * + * @param key Primary key of the record + */ + findRecordByKey(key: Object): Object; + + /** + * Returns a standalone object (copy) that represents the committed transactions, but detached from the data source. + * That is a wrapper for this.dataSource.getDetachedRecord(t). + * + * @param t A transaction object. + */ + getDetachedRecord(t: Object): Object; + + /** + * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source. + * That is a wrapper for this.dataSource.pendingTransactions(). + */ + pendingTransactions(): any[]; + + /** + * Returns a list of all transaction objects that are either pending, or have been committed in the data source. + * That is a wrapper for this.dataSource.allTransactions(). + */ + allTransactions(): any[]; + + /** + * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently. + * That is a wrapper for this.dataSource.transactionsAsString(). + */ + transactionsAsString(): string; + + /** + * Invokes an AJAX request to the updateUrl option (if specified) and passes the serialized transaction log (a serialized JSON string) as part of the POST request. + * + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + */ + saveChanges(success: Function, error: Function): void; + + /** + * Adds a new row (TR) to the grid, by taking a data row object. Assumes the record will have the primary key. + * + * @param rec Identifier/key of row. If missing, then number of rows in grid is used. + */ + renderNewRow(rec?: string): void; + + /** + * If the data source points to a local JSON array of data, and it is necessary to reset it at runtime, it must be done through this API member instead of the options (options.dataSource) + * + * @param dataSource New data source object. + */ + dataSourceObject(dataSource: Object): void; + + /** + * Returns the total number of records in the underlying backend. If paging or filtering is enabled, this may differ from the number of records in the client-side data source. + * In order for this to work, the response JSON/XML must include a property that specifies the total number of records, which name is specified by options.responseTotalRecCountKey. + * This functionality is completely delegated to the data source control. + */ + totalRecordsCount(): number; + + /** + * Moves a visible column at a specified place, in front or behind a target column or at a target index + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. This parameter is disregarded if there is no target column specified but a target index is used. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. + */ + moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; + + /** + * Shows a hidden column. If the column is not hidden the method does nothing. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier for the column. If a number is provided it will be used as a column index. If a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is shown(optional) + */ + showColumn(column: Object, callback: Function): void; + + /** + * Hides a visible column. If the column is hidden the method does nothing. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is hidden(optional) + */ + hideColumn(column: Object, callback: Function): void; + + /** + * Gets unbound values for the specified column key. If key is not specified returns all unboundvalues + * + * @param key column key + */ + getUnboundValues(key: string): Object; + + /** + * Sets unbound values for the unbound column with the specified key. If removeOldValues is true then values(if any) for the unbound columns are re-set with the new values + * + * @param key key of the unbound column + * @param values array of values to be set on unbound values + * @param removeOldValues if true removes current unbound values(if any) for the specified column and apply the new ones specified in parameter values. Otherwise merge current values with the specified in parameter values + */ + setUnboundValues(key: string, values: any[], removeOldValues: Object): void; + + /** + * Sets unbound value for the unbound cell by the specified column key and row primary key. + * + * @param col key of the unbound column + * @param rowId primary key value of the row + * @param val value to be set on unbound cell + * @param notToRender if false will re-render the row + */ + setUnboundValueByPK(col: string, rowId: string, val: Object, notToRender: Object): void; + + /** + * Returns an unbound column with the specified key. If not found returns null + * + * @param key a column key + */ + getUnboundColumnByKey(key: string): Object; + + /** + * Returns whether there is vertical scrollbar. Because of perfrormance issues in older Internet Explorer especially 8,9 - there is no need to check if height is not set - there is no scrollbar OR if row virtualization is enabled - it is supposed there is vertical scrollbar + */ + hasVerticalScrollbar(): Object; + + /** + * Auto resize columns that have property width set to "*" so content to be auto-fitted(not shrinked/cutted). Auto-resizing is applied ONLY for visible columns + */ + autoSizeColumns(): void; + + /** + * Calculates the width of the column so its content to be auto-fitted to the width of the data in it(the content should NOT be shrinked/cutted) + * + * @param columnIndex Visible column index + */ + calculateAutoFitColumnWidth(columnIndex: number): number; + + /** + * Get visible index by specified column key. If column is not found or is hidden then returns -1. + * Note: Method does not count column groups (Multi-Column Headers). + * + * @param columnKey columnKey + * @param includeDataSkip Optional parameter - if set to true include non data columns(like expander column, row selectors column, etc.) in calculations + */ + getVisibleIndexByKey(columnKey: string, includeDataSkip: boolean): number; + + /** + * When called the method re-renders the whole grid(also rebinds to the data source) and renders the cols object + * + * @param cols an array of column objects + */ + renderMultiColumnHeader(cols: any[]): void; + + /** + * Scroll to the specified row or specified position(in pixels) + * + * @param scrollerPosition An identifier of the vertical scroll position. When it is string then it is interpreted as pixels otherwise it is the row number + */ + virtualScrollTo(scrollerPosition: Object): void; + + /** + * Returns column object and visible index for the table cell(TD) which is passed as argument + * + * @param $td cell(TD) - either DOM TD element or jQuery object + */ + getColumnByTD($td: Object): Object; } interface JQuery { data(propertyName: "igTreeGrid"): IgTreeGridMethods; @@ -73080,6 +84404,74 @@ interface JQuery { igTreeGrid(methodName: "collapseRow", row: Object, callback?: Function): void; igTreeGrid(methodName: "renderNewChild", rec: Object, parentId?: string): void; igTreeGrid(methodName: "destroy"): Object; + igTreeGrid(methodName: "widget"): void; + igTreeGrid(methodName: "hasFixedDataSkippedColumns"): boolean; + igTreeGrid(methodName: "hasFixedColumns"): boolean; + igTreeGrid(methodName: "fixingDirection"): string; + igTreeGrid(methodName: "isFixedColumn", colKey: Object): boolean; + igTreeGrid(methodName: "resizeContainer"): void; + igTreeGrid(methodName: "isGroupHeader", colKey: string): Object; + igTreeGrid(methodName: "getElementInfo", elem: Element): Object; + igTreeGrid(methodName: "id"): string; + igTreeGrid(methodName: "container"): Element; + igTreeGrid(methodName: "headersTable"): Element; + igTreeGrid(methodName: "footersTable"): Element; + igTreeGrid(methodName: "scrollContainer"): Element; + igTreeGrid(methodName: "fixedContainer"): Element; + igTreeGrid(methodName: "fixedBodyContainer"): Element; + igTreeGrid(methodName: "fixedFooterContainer"): Object; + igTreeGrid(methodName: "fixedHeaderContainer"): Object; + igTreeGrid(methodName: "fixedHeadersTable"): Element; + igTreeGrid(methodName: "fixedFootersTable"): Element; + igTreeGrid(methodName: "cellAt", x: number, y: number, isFixed: boolean): Element; + igTreeGrid(methodName: "cellById", rowId: Object, columnKey: string): Element; + igTreeGrid(methodName: "fixedTable"): Object; + igTreeGrid(methodName: "immediateChildrenWidgets"): any[]; + igTreeGrid(methodName: "childrenWidgets"): any[]; + igTreeGrid(methodName: "children"): any[]; + igTreeGrid(methodName: "immediateChildren"): any[]; + igTreeGrid(methodName: "rowAt", i: number): Element; + igTreeGrid(methodName: "rowById", rowId: Object, isFixed?: boolean): Element; + igTreeGrid(methodName: "fixedRowAt", i: number): Element; + igTreeGrid(methodName: "fixedRows"): any[]; + igTreeGrid(methodName: "rows"): any[]; + igTreeGrid(methodName: "allFixedRows"): any[]; + igTreeGrid(methodName: "allRows"): any[]; + igTreeGrid(methodName: "columnByKey", key: string): Object; + igTreeGrid(methodName: "columnByText", text: string): Object; + igTreeGrid(methodName: "selectedCells"): any[]; + igTreeGrid(methodName: "selectedRows"): any[]; + igTreeGrid(methodName: "selectedCell"): Object; + igTreeGrid(methodName: "selectedRow"): Object; + igTreeGrid(methodName: "activeCell"): Object; + igTreeGrid(methodName: "activeRow"): Object; + igTreeGrid(methodName: "getCellValue", rowId: Object, colKey: string): Object; + igTreeGrid(methodName: "getCellText", rowId: Object, colKey: string): string; + igTreeGrid(methodName: "setColumnTemplate", col: Object, tmpl: string, render?: boolean): void; + igTreeGrid(methodName: "commit", rowId?: Object): void; + igTreeGrid(methodName: "findRecordByKey", key: Object): Object; + igTreeGrid(methodName: "getDetachedRecord", t: Object): Object; + igTreeGrid(methodName: "pendingTransactions"): any[]; + igTreeGrid(methodName: "allTransactions"): any[]; + igTreeGrid(methodName: "transactionsAsString"): string; + igTreeGrid(methodName: "saveChanges", success: Function, error: Function): void; + igTreeGrid(methodName: "renderNewRow", rec?: string): void; + igTreeGrid(methodName: "dataSourceObject", dataSource: Object): void; + igTreeGrid(methodName: "totalRecordsCount"): number; + igTreeGrid(methodName: "moveColumn", column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; + igTreeGrid(methodName: "showColumn", column: Object, callback: Function): void; + igTreeGrid(methodName: "hideColumn", column: Object, callback: Function): void; + igTreeGrid(methodName: "getUnboundValues", key: string): Object; + igTreeGrid(methodName: "setUnboundValues", key: string, values: any[], removeOldValues: Object): void; + igTreeGrid(methodName: "setUnboundValueByPK", col: string, rowId: string, val: Object, notToRender: Object): void; + igTreeGrid(methodName: "getUnboundColumnByKey", key: string): Object; + igTreeGrid(methodName: "hasVerticalScrollbar"): Object; + igTreeGrid(methodName: "autoSizeColumns"): void; + igTreeGrid(methodName: "calculateAutoFitColumnWidth", columnIndex: number): number; + igTreeGrid(methodName: "getVisibleIndexByKey", columnKey: string, includeDataSkip: boolean): number; + igTreeGrid(methodName: "renderMultiColumnHeader", cols: any[]): void; + igTreeGrid(methodName: "virtualScrollTo", scrollerPosition: Object): void; + igTreeGrid(methodName: "getColumnByTD", $td: Object): Object; /** * Gets the indentation (in pixels or percent) for a tree grid row. Nested indentation is achieved by calculating the level times the indentation value. Ex: '10px' or '5%'. Default is 30. @@ -73277,21 +84669,685 @@ interface JQuery { */ igTreeGrid(optionLiteral: 'option', optionName: "dataSourceSettings", optionValue: IgTreeGridDataSourceSettings): void; + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "width"): string|number; + + /** + * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "height"): string|number; + + /** + * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; + + /** + * If autoAdjustHeight is set to false, the [height](ui.iggrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data ( > 1000 rows rendered at once, no [virtualization](ui.iggrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoAdjustHeight"): boolean; + + /** + * If autoAdjustHeight is set to false, the [height](ui.iggrid#options:height) will be set only on the scrolling container, and all other UI elements such as paging footer / filter row / headers will add on top of that, so the total height of the grid will be more than this value - the height of the scroll container (content area) will not be dynamically calculated. Setting this option to false will usually result in a lot better initial rendering performance for large data sets ( > 1000 rows rendered at once, no [virtualization](ui.iggrid#options:virtualization) enabled), since no reflows will be made by browsers when accessing DOM properties such as offsetHeight. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoAdjustHeight", optionValue: boolean): void; + + /** + * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "avgRowHeight"): string|number; + + /** + * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "avgRowHeight", optionValue: string|number): void; + + /** + * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "avgColumnWidth"): string|number; + + /** + * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "avgColumnWidth", optionValue: string|number): void; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "defaultColumnWidth"): string|number; + + /** + * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "defaultColumnWidth", optionValue: string|number): void; + + /** + * If no [columns](ui.iggrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.iggrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.iggrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.iggrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) as well. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoGenerateColumns"): boolean; + + /** + * If no [columns](ui.iggrid#options:columns) collection is defined, and autoGenerateColumns is set to true, [columns](ui.iggrid#options:columns) will be inferred from the data source before the [dataRendering](ui.iggrid#events:dataRendering) event is fired. The inferred [columns](ui.iggrid#options:columns) collection will be available to the developer for modification at [dataRendering](ui.iggrid#events:dataRendering). If autoGenerateColumns is not explicitly set and [columns](ui.iggrid#options:columns) has at least one column defined then autoGenerateColumns is automatically set to false. + * If autoGenerateColumns is true and there are columns defined auto-generated columns will render after the explicitly defined ones. + * Since auto-generated columns don't have width defined consider setting [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) as well. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoGenerateColumns", optionValue: boolean): void; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualization"): boolean; + + /** + * Enables/disables column and row virtualization at the same time. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. [Here you can find more info about the performance guidelines when using the igGrid](http://www.igniteui.com/help/iggrid-performance-guide) + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualization", optionValue: boolean): void; + + /** + * Determines row virtualization mode. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualizationMode"): string; + + /** + * Determines row virtualization mode. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualizationMode", optionValue: string): void; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "rowVirtualization"): boolean; + + /** + * Enables virtualization for rows only. [Here you can find more info about igGrid row virtualization](http://www.igniteui.com/help/iggrid-virtualization-overview) + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rowVirtualization", optionValue: boolean): void; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.iggrid#options:virtualization) to true and [virtualizationMode](ui.iggrid#options:virtualizationMode) to "fixed". + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "columnVirtualization"): boolean; + + /** + * Enables virtualization for columns only. Column virtualization can work only in combination with fixed row virtalization. Setting columnVirtualization to true will automatically set [virtualization](ui.iggrid#options:virtualization) to true and [virtualizationMode](ui.iggrid#options:virtualizationMode) to "fixed". + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "columnVirtualization", optionValue: boolean): void; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.iggrid#options:avgRowHeight). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualizationMouseWheelStep"): number; + + /** + * Number of pixels to scroll the grid by, when virtualization is enabled, and mouse wheel scrolling is performed over the virtual grid area. If "null" the step will be equal to the [avgRowHeight](ui.iggrid#options:avgRowHeight). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualizationMouseWheelStep", optionValue: number): void; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.iggrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.iggrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "adjustVirtualHeights"): boolean; + + /** + * If this option is set to true, the height of the grid row will be calculated automatically based on the [avgRowHeight](ui.iggrid#options:avgRowHeight) and the visible virtual records. If no [avgRowHeight](ui.iggrid#options:avgRowHeight) is specified, it will be calculated automatically at runtime. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "adjustVirtualHeights", optionValue: boolean): void; + + /** + * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "templatingEngine"): string; + + /** + * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "templatingEngine", optionValue: string): void; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "columns"): IgGridColumn[]; + + /** + * An array of column objects. Checkout the [Columns and Layout](http://www.igniteui.com/help/iggrid-columns-and-layout#defining-columns) topic for details on configuring the columns array. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "columns", optionValue: IgGridColumn[]): void; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSource"): Array|Object|string; + + /** + * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSource", optionValue: Array|Object|string): void; + + /** + * Gets a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSourceUrl"): string; + + /** + * Sets a remote URL as a data source, from which data will be retrieved using the [$.ig.DataSource](ig.datasource). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSourceUrl", optionValue: string): void; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSourceType"): string; + + /** + * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSourceType", optionValue: string): void; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "responseDataKey"): string; + + /** + * See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). This is the property in the responses where data records are held, if the response is wrapped. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "responseDataKey", optionValue: string): void; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "responseTotalRecCountKey"): string; + + /** + * See [$.ig.DataSource responseTotalRecCountKey](ig.datasource#options:settings.responseTotalRecCountKey). Property in the response specifying the total number of records on the server. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "responseTotalRecCountKey", optionValue: string): void; + + /** + * Gets the HTTP verb to be used to issue the requests to a remote data source. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "requestType"): string; + + /** + * Sets the HTTP verb to be used to issue the requests to a remote data source. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "requestType", optionValue: string): void; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "responseContentType"): string; + + /** + * Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "responseContentType", optionValue: string): void; + + /** + * Controls the visibility of the grid header. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "showHeader"): boolean; + + /** + * Controls the visibility of the grid header. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "showHeader", optionValue: boolean): void; + + /** + * Controls the visibility of the grid footer. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "showFooter"): boolean; + + /** + * Controls the visibility of the grid footer. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "showFooter", optionValue: boolean): void; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "fixedHeaders"): boolean; + + /** + * Headers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedHeaders will always act as if it's true, no matter which value is set. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "fixedHeaders", optionValue: boolean): void; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "fixedFooters"): boolean; + + /** + * Footers will be fixed if this option is set to true, and only the grid data will be scrollable. If [virtualization](ui.iggrid#options:virtualization) is enabled, fixedFooters will always act as if it's true, no matter which value is set. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "fixedFooters", optionValue: boolean): void; + + /** + * Caption text that will be shown above the grid header. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "caption"): string; + + /** + * Caption text that will be shown above the grid header. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "caption", optionValue: string): void; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "features"): IgGridFeature[]; + + /** + * List of grid feature definitions: sorting, paging, etc. Each feature goes with its separate options that are documented for the feature accordingly. [Here you can find detailed documentation for all igGrid features](http://www.igniteui.com/help/iggrid-features-landing-page) + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "features", optionValue: IgGridFeature[]): void; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "tabIndex"): number; + + /** + * Initial tabIndex attribute that will be set on all focusable elements. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "tabIndex", optionValue: number): void; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.iggrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.iggrid#options:columns) defined will be extracted in a new object and used. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "localSchemaTransform"): boolean; + + /** + * If this option is set to false, the data to which the grid is bound will be used "as is" with no additional transformations based on [columns](ui.iggrid#options:columns) defined. Otherwise only the subset of data properties used in the [columns](ui.iggrid#options:columns) defined will be extracted in a new object and used. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "localSchemaTransform", optionValue: boolean): void; + + /** + * Key of the column containing unique identifiers for the data records. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "primaryKey"): string; + + /** + * Key of the column containing unique identifiers for the data records. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "primaryKey", optionValue: string): void; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "serializeTransactionLog"): boolean; + + /** + * If true, the transaction log will always be sent in the request for remote data, by the data source. Also this means that if there are values in the log, a POST will be performed instead of GET. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "serializeTransactionLog", optionValue: boolean): void; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.iggrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoCommit"): boolean; + + /** + * Automatically commits the transactions as rows/cells are being edited to the client data source. A [saveChanges](ui.iggrid#methods:saveChanges) call still needs to be performed in order to commit the transactions to a server-side data source. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoCommit", optionValue: boolean): void; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.iggrid#options:autoCommit) is set to false. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "aggregateTransactions"): boolean; + + /** + * If set to true, the following behavior will take place: + * If a new row is added, and then deleted, there will be no transaction added to the log. + * If a new row is added, edited, then deleted, there will be no transaction added to the log. + * If several edits are made to a row or an individual cell, this should result in a single transaction. + * Note: This option takes effect only when [autoCommit](ui.iggrid#options:autoCommit) is set to false. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "aggregateTransactions", optionValue: boolean): void; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; + + /** + * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "autoFormat", optionValue: string|boolean): void; + + /** + * Gets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.iggrid#options:columns.template). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "renderCheckboxes"): boolean; + + /** + * Sets ability to render checkboxes and use checkbox editor when dataType of a column is "bool". Checkboxes are not rendered for boolean values in columns with a [column template](ui.iggrid#options:columns.template). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "renderCheckboxes", optionValue: boolean): void; + + /** + * URL to which updating requests will be made. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "updateUrl"): string; + + /** + * URL to which updating requests will be made. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "updateUrl", optionValue: string): void; + + /** + * Settings related to REST compliant update routines. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "restSettings"): IgGridRestSettings; + + /** + * Settings related to REST compliant update routines. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "restSettings", optionValue: IgGridRestSettings): void; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "alternateRowStyles"): boolean; + + /** + * Enables/disables rendering of alternating row styles (odd and even rows receive different styling). + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "alternateRowStyles", optionValue: boolean): void; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "autofitLastColumn"): boolean; + + /** + * If set to true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the remaining empty space of the grid. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "autofitLastColumn", optionValue: boolean): void; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "enableHoverStyles"): boolean; + + /** + * Enables/disables rendering of hover styles when the mouse is over a record. This can be useful in templating scenarios, for example, where we don't want to apply hover styling to templated content. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "enableHoverStyles", optionValue: boolean): void; + + /** + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "enableUTCDates"): boolean; + + /** + * Enables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "enableUTCDates", optionValue: boolean): void; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "mergeUnboundColumns"): boolean; + + /** + * Merge unbound columns values inside data source when data source is remote. If true then the unbound columns are merged to the data source at runtime on the server. Note that data source is expanded with the new data and this could cause performance issues when the data is huge. If mergeUnboundColumns is false then the unbound data is sent and merged on the client. This option is used by the [igGrid MVC Helper](http://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid). + * Checkout [Populating Unbound Columns Remotely (igGrid)](http://www.igniteui.com/help/iggrid-unboundcolumns-populating-with-data-remotely) topic for more information. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "mergeUnboundColumns", optionValue: boolean): void; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "jsonpRequest"): boolean; + + /** + * When dataSource is a remote URL, defines whether to set the type of the remote data source to JSONP. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "jsonpRequest", optionValue: boolean): void; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.iggrid#options:width) and/or [height](ui.iggrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "enableResizeContainerCheck"): boolean; + + /** + * Enables/disables grid adjusting its dimensions when its [width](ui.iggrid#options:width) and/or [height](ui.iggrid#options:height) is set in percent (%) and grid parent DOM container is resized. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "enableResizeContainerCheck", optionValue: boolean): void; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay"): string; + + /** + * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay", optionValue: string): void; + + /** + * Settings related to content scrolling. + * + */ + igTreeGrid(optionLiteral: 'option', optionName: "scrollSettings"): IgGridScrollSettings; + + /** + * Settings related to content scrolling. + * + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "scrollSettings", optionValue: IgGridScrollSettings): void; + /** * Fired when a row is about to be expanded. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row */ igTreeGrid(optionLiteral: 'option', optionName: "rowExpanding"): RowExpandingEvent; /** * Fired when a row is about to be expanded. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row * * @optionValue New value to be set. */ @@ -73299,21 +85355,11 @@ interface JQuery { /** * Fired when a row is expanded. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row - * use args.dataRecord to access the source data record */ igTreeGrid(optionLiteral: 'option', optionName: "rowExpanded"): RowExpandedEvent; /** * Fired when a row is expanded. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row - * use args.dataRecord to access the source data record * * @optionValue New value to be set. */ @@ -73321,19 +85367,11 @@ interface JQuery { /** * Fired when a row is about to be collapsed. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row */ igTreeGrid(optionLiteral: 'option', optionName: "rowCollapsing"): RowCollapsingEvent; /** * Fired when a row is about to be collapsed. - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row * * @optionValue New value to be set. */ @@ -73341,25 +85379,315 @@ interface JQuery { /** * Fired after a row is collapsed - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row - * use args.dataRecord to access the source data record */ igTreeGrid(optionLiteral: 'option', optionName: "rowCollapsed"): RowCollapsedEvent; /** * Fired after a row is collapsed - * use args.owner to access the instance of the igTreeGrid - * use args.row to access the row element (as a wrapped jQuery object) that is about to be expanded - * use args.fixedRow to access the row element (as a jQuery wrapped object) in a fixed column that is about to expanded. If there are no fixed columns then this property returns undefined. - * use args.dataLevel to access the level in the hierarchy associated with the row - * use args.dataRecord to access the source data record * * @optionValue New value to be set. */ igTreeGrid(optionLiteral: 'option', optionName: "rowCollapsed", optionValue: RowCollapsedEvent): void; + + /** + * Event fired when a cell is clicked. + */ + igTreeGrid(optionLiteral: 'option', optionName: "cellClick"): CellClickEvent; + + /** + * Event fired when a cell is clicked. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "cellClick", optionValue: CellClickEvent): void; + + /** + * Event fired when a cell is right clicked. + */ + igTreeGrid(optionLiteral: 'option', optionName: "cellRightClick"): CellRightClickEvent; + + /** + * Event fired when a cell is right clicked. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "cellRightClick", optionValue: CellRightClickEvent): void; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataBinding"): DataBindingEvent; + + /** + * Event fired before data binding takes place. + * + * Return false in order to cancel data binding. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataBinding", optionValue: DataBindingEvent): void; + + /** + * Event fired after data binding is complete. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataBound"): DataBoundEvent; + + /** + * Event fired after data binding is complete. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataBound", optionValue: DataBoundEvent): void; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rendering"): RenderingEvent; + + /** + * Event fired before the grid starts rendering (all contents). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * Return false in order to cancel grid rendering. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rendering", optionValue: RenderingEvent): void; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + */ + igTreeGrid(optionLiteral: 'option', optionName: "rendered"): RenderedEvent; + + /** + * Event fired after the whole grid widget has been rendered (including headers, footers, etc.). + * This event is fired only when the grid is being initialized. + * It will not be fired if the grid is rebound to its data + * (for example, when calling the dataBind() API method + * or when changing the page size (when paging is enabled)). + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rendered", optionValue: RenderedEvent): void; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataRendering"): DataRenderingEvent; + + /** + * Event fired before the TBODY holding the data records starts its rendering. + * Return false in order to cancel data records rendering. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataRendering", optionValue: DataRenderingEvent): void; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataRendered"): DataRenderedEvent; + + /** + * Event fired after all of the data records in the grid table body have been rendered. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "dataRendered", optionValue: DataRenderedEvent): void; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + */ + igTreeGrid(optionLiteral: 'option', optionName: "headerRendering"): HeaderRenderingEvent; + + /** + * Event fired before the header starts its rendering. + * Return false in order to cancel header rendering. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "headerRendering", optionValue: HeaderRenderingEvent): void; + + /** + * Event fired after the header has been rendered. + */ + igTreeGrid(optionLiteral: 'option', optionName: "headerRendered"): HeaderRenderedEvent; + + /** + * Event fired after the header has been rendered. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "headerRendered", optionValue: HeaderRenderedEvent): void; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + */ + igTreeGrid(optionLiteral: 'option', optionName: "captionRendering"): CaptionRenderingEvent; + + /** + * Event fired before the caption starts its rendering. + * Return false in order to cancel caption rendering. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "captionRendering", optionValue: CaptionRenderingEvent): void; + + /** + * Event fired after the caption has been rendered. + */ + igTreeGrid(optionLiteral: 'option', optionName: "captionRendered"): CaptionRenderedEvent; + + /** + * Event fired after the caption has been rendered. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "captionRendered", optionValue: CaptionRenderedEvent): void; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + */ + igTreeGrid(optionLiteral: 'option', optionName: "footerRendering"): FooterRenderingEvent; + + /** + * Event fired before the footer starts its rendering. + * + * Return false in order to cancel footer rendering. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "footerRendering", optionValue: FooterRenderingEvent): void; + + /** + * Event fired after the footer has been rendered. + */ + igTreeGrid(optionLiteral: 'option', optionName: "footerRendered"): FooterRenderedEvent; + + /** + * Event fired after the footer has been rendered. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "footerRendered", optionValue: FooterRenderedEvent): void; + + /** + * Event fired after every TH in the grid header has been rendered. + */ + igTreeGrid(optionLiteral: 'option', optionName: "headerCellRendered"): HeaderCellRenderedEvent; + + /** + * Event fired after every TH in the grid header has been rendered. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "headerCellRendered", optionValue: HeaderCellRenderedEvent): void; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rowsRendering"): RowsRenderingEvent; + + /** + * Event fired before actual data rows (TRs) are rendered. + * Return false in order to cancel rows rendering. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rowsRendering", optionValue: RowsRenderingEvent): void; + + /** + * Event fired after data rows are rendered. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rowsRendered"): RowsRenderedEvent; + + /** + * Event fired after data rows are rendered. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "rowsRendered", optionValue: RowsRenderedEvent): void; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + */ + igTreeGrid(optionLiteral: 'option', optionName: "schemaGenerated"): SchemaGeneratedEvent; + + /** + * Event fired after $.ig.DataSource schema has been generated, in case it needs to be modified. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "schemaGenerated", optionValue: SchemaGeneratedEvent): void; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + */ + igTreeGrid(optionLiteral: 'option', optionName: "columnsCollectionModified"): ColumnsCollectionModifiedEvent; + + /** + * Event fired after the columns colection has been modified(e.g. a column is hidden) + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "columnsCollectionModified", optionValue: ColumnsCollectionModifiedEvent): void; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + */ + igTreeGrid(optionLiteral: 'option', optionName: "requestError"): RequestErrorEvent; + + /** + * Event fired if there is an error in the request, when the grid is doing a remote operation, + * such as data binding, paging, sorting, etc. + * + * @optionValue Define event handler function. + */ + igTreeGrid(optionLiteral: 'option', optionName: "requestError", optionValue: RequestErrorEvent): void; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + */ + igTreeGrid(optionLiteral: 'option', optionName: "created"): CreatedEvent; + + /** + * Fired when the grid is created and the initial structure is rendered (this doesn't necessarily imply the data will be there if the data source is remote) + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "created", optionValue: CreatedEvent): void; + + /** + * Fired when the grid is destroyed + */ + igTreeGrid(optionLiteral: 'option', optionName: "destroyed"): DestroyedEvent; + + /** + * Fired when the grid is destroyed + * + * @optionValue New value to be set. + */ + igTreeGrid(optionLiteral: 'option', optionName: "destroyed", optionValue: DestroyedEvent): void; igTreeGrid(options: IgTreeGrid): JQuery; igTreeGrid(optionLiteral: 'option', optionName: string): any; igTreeGrid(optionLiteral: 'option', options: IgTreeGrid): JQuery; @@ -73367,6 +85695,7 @@ interface JQuery { igTreeGrid(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridMultiColumnHeaders { + /** * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. */ @@ -73374,41 +85703,21 @@ interface IgTreeGridMultiColumnHeaders { /** * Event fired before a group collapsing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsing. - * Use ui.element to get a reference to the jQuery object for the column being collapsing (th). */ groupCollapsing?: GroupCollapsingEvent; /** * Event fired after the group collapsing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsed. - * Use ui.element to get a reference to the jQuery object for the column being collapsed (th). */ groupCollapsed?: GroupCollapsedEvent; /** * Event fired before a group expanding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanding. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ groupExpanding?: GroupExpandingEvent; /** * Event fired after the group expanding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanded. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ groupExpanded?: GroupExpandedEvent; @@ -73477,21 +85786,11 @@ interface JQuery { /** * Event fired before a group collapsing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsing. - * Use ui.element to get a reference to the jQuery object for the column being collapsing (th). */ igTreeGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupCollapsing"): GroupCollapsingEvent; /** * Event fired before a group collapsing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsing. - * Use ui.element to get a reference to the jQuery object for the column being collapsing (th). * * @optionValue Define event handler function. */ @@ -73499,21 +85798,11 @@ interface JQuery { /** * Event fired after the group collapsing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsed. - * Use ui.element to get a reference to the jQuery object for the column being collapsed (th). */ igTreeGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupCollapsed"): GroupCollapsedEvent; /** * Event fired after the group collapsing has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is collapsed. - * Use ui.element to get a reference to the jQuery object for the column being collapsed (th). * * @optionValue Define event handler function. */ @@ -73521,21 +85810,11 @@ interface JQuery { /** * Event fired before a group expanding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanding. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ igTreeGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupExpanding"): GroupExpandingEvent; /** * Event fired before a group expanding operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanding. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). * * @optionValue Define event handler function. */ @@ -73543,21 +85822,11 @@ interface JQuery { /** * Event fired after the group expanding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanded. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). */ igTreeGridMultiColumnHeaders(optionLiteral: 'option', optionName: "groupExpanded"): GroupExpandedEvent; /** * Event fired after the group expanding has been executed and results are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridMultiColumnHeaders widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.column to get the column object for the current group that is expanded. - * Use ui.element to get a reference to the jQuery object for the column being expanded (th). * * @optionValue Define event handler function. */ @@ -73573,25 +85842,6 @@ interface ContextRowRenderingEvent { } interface ContextRowRenderingEventUIParam { - /** - * Used to get reference to igTreeGridPaging. - */ - owner?: any; - - /** - * Used to get reference to the first data row. Null if there are no records. - */ - dataRow?: any; - - /** - * Used to get current page index. - */ - currentPageIndex?: any; - - /** - * Used to get the current context row mode. - */ - contextRowMode?: any; } interface ContextRowRenderedEvent { @@ -73599,33 +85849,10 @@ interface ContextRowRenderedEvent { } interface ContextRowRenderedEventUIParam { - /** - * Used to get reference to igTreeGridPaging. - */ - owner?: any; - - /** - * Used to get reference to the first data row. Null if there are no records. - */ - dataRow?: any; - - /** - * Used to get current page index. - */ - currentPageIndex?: any; - - /** - * Used to get array of the parent rows(of the ui.dataRow). If the dataRow is null(for instance filter is applied and no records are shown) then it is empty array. Otherwise it contains all ancestors ordered by level(including the current dataRow) - the first item is root level, the last array item is the current ui.dataRow - */ - parentRows?: any; - - /** - * Used to get the current context row mode. - */ - contextRowMode?: any; } interface IgTreeGridPaging { + /** * Sets gets paging mode. * @@ -73898,81 +86125,45 @@ interface IgTreeGridPaging { /** * Event fired before rendering context row content. * Return false in order to cancel this event. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to igTreeGridPaging. - * Use ui.dataRow to get reference to the first data row. Null if there are no records. - * Use ui.currentPageIndex to get current page index. - * Use ui.contextRowMode to get the current context row mode. */ contextRowRendering?: ContextRowRenderingEvent; /** * Event fired context row content is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to igTreeGridPaging. - * Use ui.dataRow to get reference to the first data row. Null if there are no records. - * Use ui.currentPageIndex to get current page index. - * Use ui.parentRows to get array of the parent rows(of the ui.dataRow). If the dataRow is null(for instance filter is applied and no records are shown) then it is empty array. Otherwise it contains all ancestors ordered by level(including the current dataRow) - the first item is root level, the last array item is the current ui.dataRow - * Use ui.contextRowMode to get the current context row mode. */ contextRowRendered?: ContextRowRenderedEvent; /** * Event fired before the page index is changed. * Return false in order to cancel page index changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageIndex to get current page index. - * Use ui.newPageIndex to get new page index. */ pageIndexChanging?: PageIndexChangingEvent; /** * Event fired after the page index is changed , but before grid data rebinds - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageIndex to get current page index. */ pageIndexChanged?: PageIndexChangedEvent; /** * Event fired when the page size is about to be changed from the page size dropdown. * Return false in order to cancel page size changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageSize to get current page size. * Use ui.newPageSize to get new page size. */ pageSizeChanging?: PageSizeChangingEvent; /** * Event fired after the page size is changed from the page size dropdown. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageSize to get current page size. */ pageSizeChanged?: PageSizeChangedEvent; /** * Event fired before the pager footer is rendered (the whole area below the grid records). - * Return false in order to cancel pager footer rendering. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. + * Event fired after the page size is changed from the page size dropdown. */ pagerRendering?: PagerRenderingEvent; /** * Event fired after the pager footer is rendered - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. */ pagerRendered?: PagerRenderedEvent; @@ -73982,6 +86173,7 @@ interface IgTreeGridPaging { [optionName: string]: any; } interface IgTreeGridPagingMethods { + /** * Destroys the igTreeGridPaging feature by removing all elements in the pager area, unbinding events, and resetting data to discard data filtering on paging */ @@ -74613,22 +86805,12 @@ interface JQuery { /** * Event fired before rendering context row content. * Return false in order to cancel this event. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to igTreeGridPaging. - * Use ui.dataRow to get reference to the first data row. Null if there are no records. - * Use ui.currentPageIndex to get current page index. - * Use ui.contextRowMode to get the current context row mode. */ igTreeGridPaging(optionLiteral: 'option', optionName: "contextRowRendering"): ContextRowRenderingEvent; /** * Event fired before rendering context row content. * Return false in order to cancel this event. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to igTreeGridPaging. - * Use ui.dataRow to get reference to the first data row. Null if there are no records. - * Use ui.currentPageIndex to get current page index. - * Use ui.contextRowMode to get the current context row mode. * * @optionValue Define event handler function. */ @@ -74636,23 +86818,11 @@ interface JQuery { /** * Event fired context row content is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to igTreeGridPaging. - * Use ui.dataRow to get reference to the first data row. Null if there are no records. - * Use ui.currentPageIndex to get current page index. - * Use ui.parentRows to get array of the parent rows(of the ui.dataRow). If the dataRow is null(for instance filter is applied and no records are shown) then it is empty array. Otherwise it contains all ancestors ordered by level(including the current dataRow) - the first item is root level, the last array item is the current ui.dataRow - * Use ui.contextRowMode to get the current context row mode. */ igTreeGridPaging(optionLiteral: 'option', optionName: "contextRowRendered"): ContextRowRenderedEvent; /** * Event fired context row content is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to igTreeGridPaging. - * Use ui.dataRow to get reference to the first data row. Null if there are no records. - * Use ui.currentPageIndex to get current page index. - * Use ui.parentRows to get array of the parent rows(of the ui.dataRow). If the dataRow is null(for instance filter is applied and no records are shown) then it is empty array. Otherwise it contains all ancestors ordered by level(including the current dataRow) - the first item is root level, the last array item is the current ui.dataRow - * Use ui.contextRowMode to get the current context row mode. * * @optionValue Define event handler function. */ @@ -74661,22 +86831,12 @@ interface JQuery { /** * Event fired before the page index is changed. * Return false in order to cancel page index changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageIndex to get current page index. - * Use ui.newPageIndex to get new page index. */ igTreeGridPaging(optionLiteral: 'option', optionName: "pageIndexChanging"): PageIndexChangingEvent; /** * Event fired before the page index is changed. * Return false in order to cancel page index changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageIndex to get current page index. - * Use ui.newPageIndex to get new page index. * * @optionValue Define event handler function. */ @@ -74684,19 +86844,11 @@ interface JQuery { /** * Event fired after the page index is changed , but before grid data rebinds - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageIndex to get current page index. */ igTreeGridPaging(optionLiteral: 'option', optionName: "pageIndexChanged"): PageIndexChangedEvent; /** * Event fired after the page index is changed , but before grid data rebinds - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageIndex to get current page index. * * @optionValue Define event handler function. */ @@ -74705,10 +86857,6 @@ interface JQuery { /** * Event fired when the page size is about to be changed from the page size dropdown. * Return false in order to cancel page size changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageSize to get current page size. * Use ui.newPageSize to get new page size. */ igTreeGridPaging(optionLiteral: 'option', optionName: "pageSizeChanging"): PageSizeChangingEvent; @@ -74716,10 +86864,6 @@ interface JQuery { /** * Event fired when the page size is about to be changed from the page size dropdown. * Return false in order to cancel page size changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.currentPageSize to get current page size. * Use ui.newPageSize to get new page size. * * @optionValue Define event handler function. @@ -74728,19 +86872,11 @@ interface JQuery { /** * Event fired after the page size is changed from the page size dropdown. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageSize to get current page size. */ igTreeGridPaging(optionLiteral: 'option', optionName: "pageSizeChanged"): PageSizeChangedEvent; /** * Event fired after the page size is changed from the page size dropdown. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.pageSize to get current page size. * * @optionValue Define event handler function. */ @@ -74748,21 +86884,13 @@ interface JQuery { /** * Event fired before the pager footer is rendered (the whole area below the grid records). - * Return false in order to cancel pager footer rendering. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. + * Event fired after the page size is changed from the page size dropdown. */ igTreeGridPaging(optionLiteral: 'option', optionName: "pagerRendering"): PagerRenderingEvent; /** * Event fired before the pager footer is rendered (the whole area below the grid records). - * Return false in order to cancel pager footer rendering. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. + * Event fired after the page size is changed from the page size dropdown. * * @optionValue Define event handler function. */ @@ -74770,19 +86898,11 @@ interface JQuery { /** * Event fired after the pager footer is rendered - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. */ igTreeGridPaging(optionLiteral: 'option', optionName: "pagerRendered"): PagerRenderedEvent; /** * Event fired after the pager footer is rendered - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridPaging. - * Use ui.owner.grid to get reference to the grid. - * Use ui.dataSource to get reference to grid's data source. * * @optionValue Define event handler function. */ @@ -74794,6 +86914,7 @@ interface JQuery { igTreeGridPaging(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridResizing { + /** * Resize the column to the size of the longest currently visible cell value. * @@ -74825,35 +86946,16 @@ interface IgTreeGridResizing { /** * Event fired before a resizing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ columnResizing?: ColumnResizingEvent; /** * Event fired(only when columnFixing is enabled) when trying to resize column in fixed area so total width of unfixed area to be less than minimalVisibleAreaWidth(option defined in columnFixing) - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ columnResizingRefused?: ColumnResizingRefusedEvent; /** * Event fired after the resizing has been executed and results are rendered - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.originalWidth to get the original column width. - * Use ui.newWidth to get the final column width after resizing. */ columnResized?: ColumnResizedEvent; @@ -74951,23 +87053,11 @@ interface JQuery { /** * Event fired before a resizing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ igTreeGridResizing(optionLiteral: 'option', optionName: "columnResizing"): ColumnResizingEvent; /** * Event fired before a resizing operation is executed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. * * @optionValue Define event handler function. */ @@ -74975,23 +87065,11 @@ interface JQuery { /** * Event fired(only when columnFixing is enabled) when trying to resize column in fixed area so total width of unfixed area to be less than minimalVisibleAreaWidth(option defined in columnFixing) - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. */ igTreeGridResizing(optionLiteral: 'option', optionName: "columnResizingRefused"): ColumnResizingRefusedEvent; /** * Event fired(only when columnFixing is enabled) when trying to resize column in fixed area so total width of unfixed area to be less than minimalVisibleAreaWidth(option defined in columnFixing) - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.desiredWidth to get the desired width(before min/max coercion) for the resized column. * * @optionValue Define event handler function. */ @@ -74999,25 +87077,11 @@ interface JQuery { /** * Event fired after the resizing has been executed and results are rendered - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.originalWidth to get the original column width. - * Use ui.newWidth to get the final column width after resizing. */ igTreeGridResizing(optionLiteral: 'option', optionName: "columnResized"): ColumnResizedEvent; /** * Event fired after the resizing has been executed and results are rendered - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridResizing widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnIndex to get the resized column index. - * Use ui.columnKey to get the resized column key. - * Use ui.originalWidth to get the original column width. - * Use ui.newWidth to get the final column width after resizing. * * @optionValue Define event handler function. */ @@ -75029,6 +87093,7 @@ interface JQuery { igTreeGridResizing(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridRowSelectors { + /** * Determines row numbering format. * @@ -75068,6 +87133,7 @@ interface IgTreeGridRowSelectors { rowNumberingSeed?: number; /** + * defines width of the row selector`s column in pixels or percentage. * * * Valid values: @@ -75124,43 +87190,16 @@ interface IgTreeGridRowSelectors { /** * Event fired after a row selector is clicked. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.fixedRow to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to RowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. */ rowSelectorClicked?: RowSelectorClickedEvent; /** * Event fired when a row selector checkbox is changing. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.currentState to get the current state of the checkbox ("on","off"). - * Use ui.newState to get the new state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ checkBoxStateChanging?: CheckBoxStateChangingEvent; /** * Event fired after a row selector checkbox had changed state. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.state to get the state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ checkBoxStateChanged?: CheckBoxStateChangedEvent; @@ -75310,12 +87349,14 @@ interface JQuery { igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowNumberingSeed", optionValue: number): void; /** - * * + * Defines width of the row selector`s column in pixels or percentage. + * */ igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorColumnWidth"): string|number; /** - * * + * Defines width of the row selector`s column in pixels or percentage. + * * * @optionValue New value to be set. */ @@ -75425,27 +87466,11 @@ interface JQuery { /** * Event fired after a row selector is clicked. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.fixedRow to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to RowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. */ igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorClicked"): RowSelectorClickedEvent; /** * Event fired after a row selector is clicked. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.fixedRow to get reference to the fixed row the clicked row selector resides in(if there are fixed columns). - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to RowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. * * @optionValue Define event handler function. */ @@ -75453,31 +87478,11 @@ interface JQuery { /** * Event fired when a row selector checkbox is changing. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.currentState to get the current state of the checkbox ("on","off"). - * Use ui.newState to get the new state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ igTreeGridRowSelectors(optionLiteral: 'option', optionName: "checkBoxStateChanging"): CheckBoxStateChangingEvent; /** * Event fired when a row selector checkbox is changing. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.currentState to get the current state of the checkbox ("on","off"). - * Use ui.newState to get the new state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. * * @optionValue Define event handler function. */ @@ -75485,29 +87490,11 @@ interface JQuery { /** * Event fired after a row selector checkbox had changed state. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.state to get the state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. */ igTreeGridRowSelectors(optionLiteral: 'option', optionName: "checkBoxStateChanged"): CheckBoxStateChangedEvent; /** * Event fired after a row selector checkbox had changed state. - * Function takes arguments evt and ui. - * Use ui.row to get reference to the row the clicked row selector resides in. - * Use ui.rowIndex to get the index of the row the clicked row selector resides in. - * Use ui.rowKey to get the key of the row the clicked row selector resides in. - * Use ui.rowSelector to get reference to the row selector cell. - * Use ui.owner to get reference to igRowSelectors. - * Use ui.grid to get reference to the grid the RowSelectors are initialized for. - * Use ui.state to get the state of the checkbox ("on","off"). - * Use ui.isHeader to check if the header check box is the one being clicked. In this case no row related args are passed. * * @optionValue Define event handler function. */ @@ -75519,6 +87506,7 @@ interface JQuery { igTreeGridRowSelectors(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridSelection { + /** * Enables / Disables multiple selection of cells and rows - depending on the mode * @@ -75586,122 +87574,44 @@ interface IgTreeGridSelection { /** * Event fired before row(s) are about to be selected (cancellable). * Return false in order to cancel selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. - * Use ui.startIndex to get the start index for a range row selection. - * Use ui.endIndex to get the end index for a range row selection. */ rowSelectionChanging?: RowSelectionChangingEvent; /** * Event fired after row(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. */ rowSelectionChanged?: RowSelectionChangedEvent; /** * Event fired before cell(s) are about to be selected (cancellable). * Return false in order to cancel cell selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. - * Use ui.firstColumnIndex to get the column index for the first cell in a range selection. - * Use ui.firstRowIndex to get the row index for the first cell in a range selection. - * Use ui.lastColumnIndex to get the column index for the last cell in a range selection. - * Use ui.lastRowIndex to get the row index for the last cell in a range selection. */ cellSelectionChanging?: CellSelectionChangingEvent; /** * Event fired after cell(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. */ cellSelectionChanged?: CellSelectionChangedEvent; /** * Event fired before a cell becomes active (focus style applied) (cancellable). * Return false in order to cancel active cell changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ activeCellChanging?: ActiveCellChangingEvent; /** * Event fired after a cell becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ activeCellChanged?: ActiveCellChangedEvent; /** * Event fired before a row becomes active (focus style applied) (cancellable). * Return false in order to cancel active row changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ activeRowChanging?: ActiveRowChangingEvent; /** * Event fired after a row becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ activeRowChanged?: ActiveRowChangedEvent; @@ -75783,28 +87693,28 @@ interface IgTreeGridSelectionMethods { /** * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedCells(): any[]; /** * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedRows(): any[]; /** * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedCell(): Object; /** * Returns the currently selected row that has the format { element: , index: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedRow(): Object; @@ -75983,32 +87893,12 @@ interface JQuery { /** * Event fired before row(s) are about to be selected (cancellable). * Return false in order to cancel selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. - * Use ui.startIndex to get the start index for a range row selection. - * Use ui.endIndex to get the end index for a range row selection. */ igTreeGridSelection(optionLiteral: 'option', optionName: "rowSelectionChanging"): RowSelectionChangingEvent; /** * Event fired before row(s) are about to be selected (cancellable). * Return false in order to cancel selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. - * Use ui.startIndex to get the start index for a range row selection. - * Use ui.endIndex to get the end index for a range row selection. * * @optionValue Define event handler function. */ @@ -76016,27 +87906,11 @@ interface JQuery { /** * Event fired after row(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. */ igTreeGridSelection(optionLiteral: 'option', optionName: "rowSelectionChanged"): RowSelectionChangedEvent; /** * Event fired after row(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to row DOM element. - * Use ui.row.index to get row index. - * Use ui.row.id to get the row id if primary key is defined or persistence is enabled. - * Use ui.selectedRows to get reference to rows object array. * * @optionValue Define event handler function. */ @@ -76045,42 +87919,12 @@ interface JQuery { /** * Event fired before cell(s) are about to be selected (cancellable). * Return false in order to cancel cell selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. - * Use ui.firstColumnIndex to get the column index for the first cell in a range selection. - * Use ui.firstRowIndex to get the row index for the first cell in a range selection. - * Use ui.lastColumnIndex to get the column index for the last cell in a range selection. - * Use ui.lastRowIndex to get the row index for the last cell in a range selection. */ igTreeGridSelection(optionLiteral: 'option', optionName: "cellSelectionChanging"): CellSelectionChangingEvent; /** * Event fired before cell(s) are about to be selected (cancellable). * Return false in order to cancel cell selection changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. - * Use ui.firstColumnIndex to get the column index for the first cell in a range selection. - * Use ui.firstRowIndex to get the row index for the first cell in a range selection. - * Use ui.lastColumnIndex to get the column index for the last cell in a range selection. - * Use ui.lastRowIndex to get the row index for the last cell in a range selection. * * @optionValue Define event handler function. */ @@ -76088,33 +87932,11 @@ interface JQuery { /** * Event fired after cell(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. */ igTreeGridSelection(optionLiteral: 'option', optionName: "cellSelectionChanged"): CellSelectionChangedEvent; /** * Event fired after cell(s) are selected. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get reference to column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. - * Use ui.selectedCells to get reference to selected cells object array. * * @optionValue Define event handler function. */ @@ -76123,32 +87945,12 @@ interface JQuery { /** * Event fired before a cell becomes active (focus style applied) (cancellable). * Return false in order to cancel active cell changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ igTreeGridSelection(optionLiteral: 'option', optionName: "activeCellChanging"): ActiveCellChangingEvent; /** * Event fired before a cell becomes active (focus style applied) (cancellable). * Return false in order to cancel active cell changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. * * @optionValue Define event handler function. */ @@ -76156,31 +87958,11 @@ interface JQuery { /** * Event fired after a cell becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. */ igTreeGridSelection(optionLiteral: 'option', optionName: "activeCellChanged"): ActiveCellChangedEvent; /** * Event fired after a cell becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.cell to get reference to cell object. - * Use ui.cell.element to get reference to cell DOM element. - * Use ui.cell.columnKey to get column key. - * Use ui.cell.rowId to get the row id if primary key is defined or persistence is enabled. - * Use ui.cell.index to get column index. - * Use ui.cell.row to get reference to row DOM element. - * Use ui.cell.rowIndex to get row index. * * @optionValue Define event handler function. */ @@ -76189,26 +87971,12 @@ interface JQuery { /** * Event fired before a row becomes active (focus style applied) (cancellable). * Return false in order to cancel active row changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ igTreeGridSelection(optionLiteral: 'option', optionName: "activeRowChanging"): ActiveRowChangingEvent; /** * Event fired before a row becomes active (focus style applied) (cancellable). * Return false in order to cancel active row changing. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. * * @optionValue Define event handler function. */ @@ -76216,25 +87984,11 @@ interface JQuery { /** * Event fired after a row becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. */ igTreeGridSelection(optionLiteral: 'option', optionName: "activeRowChanged"): ActiveRowChangedEvent; /** * Event fired after a row becomes active (focus style applied). - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSelection. - * Use ui.owner.grid to get reference to the grid. - * Use ui.row to get reference to row object. - * Use ui.row.element to get reference to active row DOM element. - * Use ui.row.index to get active row index. - * Use ui.row.id to get the active row id if primary key is defined or persistence is enabled. * * @optionValue Define event handler function. */ @@ -76246,6 +88000,7 @@ interface JQuery { igTreeGridSelection(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridSorting { + /** * Specifies from which data bound level to be applied sorting - 0 is the first level * @@ -76468,138 +88223,71 @@ interface IgTreeGridSorting { /** * Event fired before sorting is invoked for a certain column. * Return false in order to cancel column sorting. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.newExpressions to get sorting expressions. */ columnSorting?: ColumnSortingEvent; /** * Event fired after the column has already been sorted and data - re-rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.expressions to get sorted expressions. */ columnSorted?: ColumnSortedEvent; /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogOpening?: ModalDialogOpeningEvent; /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogOpened?: ModalDialogOpenedEvent; /** * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. */ modalDialogMoving?: ModalDialogMovingEvent; /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogClosing?: ModalDialogClosingEvent; /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogClosed?: ModalDialogClosedEvent; /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogContentsRendering?: ModalDialogContentsRenderingEvent; /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogContentsRendered?: ModalDialogContentsRenderedEvent; /** * Event fired when sorting of column is changed in modal dialog. Column should be sorted - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key - * Use ui.isAsc to get whether column should be ascending or not. If true it should be ascending */ modalDialogSortingChanged?: ModalDialogSortingChangedEvent; /** * Event fired when button to unsort column is clicked in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ modalDialogButtonUnsortClick?: ModalDialogButtonUnsortClickEvent; /** * Event fired when column(which is not sorted) is clicked to be sorted in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ modalDialogSortClick?: ModalDialogSortClickEvent; /** * Event fired when button Apply in modal dialog is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnsToSort to get array of columns which should be sorted - array of objects of sort order - Asc/Desc and columnIdentifier */ modalDialogButtonApplyClick?: ModalDialogButtonApplyClickEvent; /** * Event fired when the button to reset sorting is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ modalDialogButtonResetClick?: ModalDialogButtonResetClickEvent; @@ -76609,6 +88297,7 @@ interface IgTreeGridSorting { [optionName: string]: any; } interface IgTreeGridSortingMethods { + /** * Returns whether a column with the specified columnKey is sorted(taken from the data source sorting expressions) * @@ -77149,24 +88838,12 @@ interface JQuery { /** * Event fired before sorting is invoked for a certain column. * Return false in order to cancel column sorting. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.newExpressions to get sorting expressions. */ igTreeGridSorting(optionLiteral: 'option', optionName: "columnSorting"): ColumnSortingEvent; /** * Event fired before sorting is invoked for a certain column. * Return false in order to cancel column sorting. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.newExpressions to get sorting expressions. * * @optionValue Define event handler function. */ @@ -77174,23 +88851,11 @@ interface JQuery { /** * Event fired after the column has already been sorted and data - re-rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.expressions to get sorted expressions. */ igTreeGridSorting(optionLiteral: 'option', optionName: "columnSorted"): ColumnSortedEvent; /** * Event fired after the column has already been sorted and data - re-rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to GridSorting. - * Use ui.owner.grid to get reference to grid. - * Use ui.columnKey to get column key. - * Use ui.direction to get sorting direction. - * Use ui.expressions to get sorted expressions. * * @optionValue Define event handler function. */ @@ -77198,19 +88863,11 @@ interface JQuery { /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogOpening"): ModalDialogOpeningEvent; /** * Event fired before the modal dialog is opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.columnChooserElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77218,19 +88875,11 @@ interface JQuery { /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogOpened"): ModalDialogOpenedEvent; /** * Event fired after the modal dialog is already opened. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77238,23 +88887,11 @@ interface JQuery { /** * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogMoving"): ModalDialogMovingEvent; /** * Event fired every time the modal dialog changes its position. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.originalPosition to get the original position of the modal dialog div as { top, left } object, relative to the page. - * Use ui.position to get the current position of the modal dialog div as { top, left } object, relative to the page. * * @optionValue Define event handler function. */ @@ -77262,19 +88899,11 @@ interface JQuery { /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogClosing"): ModalDialogClosingEvent; /** * Event fired before the modal dialog is closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77282,19 +88911,11 @@ interface JQuery { /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogClosed"): ModalDialogClosedEvent; /** * Event fired after the modal dialog has been closed. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77302,19 +88923,11 @@ interface JQuery { /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogContentsRendering"): ModalDialogContentsRenderingEvent; /** * Event fired before the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77322,19 +88935,11 @@ interface JQuery { /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogContentsRendered"): ModalDialogContentsRenderedEvent; /** * Event fired after the contents of the modal dialog are rendered. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77342,23 +88947,11 @@ interface JQuery { /** * Event fired when sorting of column is changed in modal dialog. Column should be sorted - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key - * Use ui.isAsc to get whether column should be ascending or not. If true it should be ascending */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogSortingChanged"): ModalDialogSortingChangedEvent; /** * Event fired when sorting of column is changed in modal dialog. Column should be sorted - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key - * Use ui.isAsc to get whether column should be ascending or not. If true it should be ascending * * @optionValue Define event handler function. */ @@ -77366,21 +88959,11 @@ interface JQuery { /** * Event fired when button to unsort column is clicked in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogButtonUnsortClick"): ModalDialogButtonUnsortClickEvent; /** * Event fired when button to unsort column is clicked in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key * * @optionValue Define event handler function. */ @@ -77388,21 +88971,11 @@ interface JQuery { /** * Event fired when column(which is not sorted) is clicked to be sorted in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogSortClick"): ModalDialogSortClickEvent; /** * Event fired when column(which is not sorted) is clicked to be sorted in modal dialog - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnKey to get the column key * * @optionValue Define event handler function. */ @@ -77410,21 +88983,11 @@ interface JQuery { /** * Event fired when button Apply in modal dialog is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnsToSort to get array of columns which should be sorted - array of objects of sort order - Asc/Desc and columnIdentifier */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogButtonApplyClick"): ModalDialogButtonApplyClickEvent; /** * Event fired when button Apply in modal dialog is clicked - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. - * Use ui.columnsToSort to get array of columns which should be sorted - array of objects of sort order - Asc/Desc and columnIdentifier * * @optionValue Define event handler function. */ @@ -77432,19 +88995,11 @@ interface JQuery { /** * Event fired when the button to reset sorting is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. */ igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogButtonResetClick"): ModalDialogButtonResetClickEvent; /** * Event fired when the button to reset sorting is clicked. - * The handler function takes arguments evt and ui. - * Use ui.owner to get the reference to the GridSorting widget. - * Use ui.owner.grid to get the reference to the grid widget. - * Use ui.modalDialogElement to get a reference to the modal dialog element. This is a jQuery object. * * @optionValue Define event handler function. */ @@ -77456,6 +89011,7 @@ interface JQuery { igTreeGridSorting(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridTooltips { + /** * determines the tooltip visibility option * @@ -77522,49 +89078,21 @@ interface IgTreeGridTooltips { /** * Event fired when the mouse has hovered on an element long enough to display a tooltip - * use args.owner to get a reference to the widget - * use args.tooltip to get or set the string to be displayed - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ tooltipShowing?: TooltipShowingEvent; /** * Event fired after a tooltip is shown - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ tooltipShown?: TooltipShownEvent; /** * Event fired when the mouse has left an element and the tooltip is about to hide - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ tooltipHiding?: TooltipHidingEvent; /** * Event fired after a tooltip is hidden - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip was displayed for - * use args.element to get a reference to the cell the tooltip was displayed for - * use args.index to get the row index of the cell the tooltip was displayed for - * use args.columnKey to get the column key of the cell the tooltip was displayed for - * use args.columnIndex to get the column index of the cell the tooltip was displayed for */ tooltipHidden?: TooltipHiddenEvent; @@ -77719,25 +89247,11 @@ interface JQuery { /** * Event fired when the mouse has hovered on an element long enough to display a tooltip - * use args.owner to get a reference to the widget - * use args.tooltip to get or set the string to be displayed - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ igTreeGridTooltips(optionLiteral: 'option', optionName: "tooltipShowing"): TooltipShowingEvent; /** * Event fired when the mouse has hovered on an element long enough to display a tooltip - * use args.owner to get a reference to the widget - * use args.tooltip to get or set the string to be displayed - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for * * @optionValue Define event handler function. */ @@ -77745,25 +89259,11 @@ interface JQuery { /** * Event fired after a tooltip is shown - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ igTreeGridTooltips(optionLiteral: 'option', optionName: "tooltipShown"): TooltipShownEvent; /** * Event fired after a tooltip is shown - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for * * @optionValue Define event handler function. */ @@ -77771,25 +89271,11 @@ interface JQuery { /** * Event fired when the mouse has left an element and the tooltip is about to hide - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for */ igTreeGridTooltips(optionLiteral: 'option', optionName: "tooltipHiding"): TooltipHidingEvent; /** * Event fired when the mouse has left an element and the tooltip is about to hide - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip is displayed for - * use args.element to get a reference to the cell the tooltip is displayed for - * use args.index to get the row index of the cell the tooltip is displayed for - * use args.columnKey to get the column key of the cell the tooltip is displayed for - * use args.columnIndex to get the column index of the cell the tooltip is displayed for * * @optionValue Define event handler function. */ @@ -77797,25 +89283,11 @@ interface JQuery { /** * Event fired after a tooltip is hidden - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip was displayed for - * use args.element to get a reference to the cell the tooltip was displayed for - * use args.index to get the row index of the cell the tooltip was displayed for - * use args.columnKey to get the column key of the cell the tooltip was displayed for - * use args.columnIndex to get the column index of the cell the tooltip was displayed for */ igTreeGridTooltips(optionLiteral: 'option', optionName: "tooltipHidden"): TooltipHiddenEvent; /** * Event fired after a tooltip is hidden - * use args.owner to get a reference to the widget - * use args.tooltip to get the string displayed in the tooltip - * use args.value to get the value of the cell the tooltip was displayed for - * use args.element to get a reference to the cell the tooltip was displayed for - * use args.index to get the row index of the cell the tooltip was displayed for - * use args.columnKey to get the column key of the cell the tooltip was displayed for - * use args.columnIndex to get the column index of the cell the tooltip was displayed for * * @optionValue Define event handler function. */ @@ -77827,6 +89299,7 @@ interface JQuery { igTreeGridTooltips(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridUpdating { + /** * Specifies whether to enable or disable adding children to rows. * @@ -77942,7 +89415,7 @@ interface IgTreeGridUpdating { enableDataDirtyException?: boolean; /** - * Specifies how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by comma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. + * Specifies how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * */ startEditTriggers?: string|Array; @@ -78003,215 +89476,102 @@ interface IgTreeGridUpdating { /** * Event fired before row editing begins. * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editRowStarting?: EditRowStartingEvent; /** * Event fired after row editing begins. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editRowStarted?: EditRowStartedEvent; /** * Event fired before row editing ends. * Return false in order to prevent the grid from exiting edit mode. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get or set the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ editRowEnding?: EditRowEndingEvent; /** * Event fired after row editing ends. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ editRowEnded?: EditRowEndedEvent; /** * Event fired before cell editing begins (including when row editing opens editing for a cell). * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellStarting?: EditCellStartingEvent; /** * Event fired after cell editing begins (including when row editing opens editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellStarted?: EditCellStartedEvent; /** * Event fired before cell editing ends (including when row editing closes editing for a cell). * Return false in order to prevent the grid from exiting edit mode (only functions if [editMode](ui.iggridupdating#options:editMode) is 'cell'). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value to be used when updating the data source. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellEnding?: EditCellEndingEvent; /** * Event fired after cell editing ends (including when row editing closes editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the new value. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ editCellEnded?: EditCellEndedEvent; /** * Event fired before adding a new row. * Return false in order to cancel the adding of the new row to the data source. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ rowAdding?: RowAddingEvent; /** * Event fired after adding a new row. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ rowAdded?: RowAddedEvent; /** * Event fired before deleting a row. * Return false in order to cancel the row's deletion. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the row to delete. - * Use ui.rowID to get the row's PK value. */ rowDeleting?: RowDeletingEvent; /** * Event fired after a row is deleted. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the deleted row. - * Use ui.rowID to get the row's PK value. */ rowDeleted?: RowDeletedEvent; /** * Event fired before the dataDirtyException is thrown. This can be controlled by the [enableDataDirtyException](ui.iggridupdating#options:enableDataDirtyException) property. Any pending changes may be committed in the handler of this event in order to prevent dataDirtyException from being thrown. * Return false in order to prevent the exception. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. */ dataDirty?: DataDirtyEvent; /** * Event fired before editing starts for adding a new row, when Updating generates an automatic primary key for it. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.value to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. */ generatePrimaryKeyValue?: GeneratePrimaryKeyValueEvent; /** * Event fired before the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogBeforeOpen?: RowEditDialogBeforeOpenEvent; /** * Event fired after the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogAfterOpen?: RowEditDialogAfterOpenEvent; /** * Event fired before the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogBeforeClose?: RowEditDialogBeforeCloseEvent; /** * Event fired after the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogAfterClose?: RowEditDialogAfterCloseEvent; /** * Event fired after the row edit dialog is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ rowEditDialogContentsRendered?: RowEditDialogContentsRenderedEvent; @@ -78221,6 +89581,7 @@ interface IgTreeGridUpdating { [optionName: string]: any; } interface IgTreeGridUpdatingMethods { + /** * Adds a new child to a specific row. It also creates a transaction and updates the UI. * @@ -78621,13 +89982,13 @@ interface JQuery { igTreeGridUpdating(optionLiteral: 'option', optionName: "enableDataDirtyException", optionValue: boolean): void; /** - * Gets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by comma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. + * Gets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * */ igTreeGridUpdating(optionLiteral: 'option', optionName: "startEditTriggers"): string|Array; /** - * Sets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by comma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. + * Sets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * * * @optionValue New value to be set. @@ -78761,22 +90122,12 @@ interface JQuery { /** * Event fired before row editing begins. * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editRowStarting"): EditRowStartingEvent; /** * Event fired before row editing begins. * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -78784,21 +90135,11 @@ interface JQuery { /** * Event fired after row editing begins. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editRowStarted"): EditRowStartedEvent; /** * Event fired after row editing begins. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -78807,28 +90148,12 @@ interface JQuery { /** * Event fired before row editing ends. * Return false in order to prevent the grid from exiting edit mode. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get or set the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editRowEnding"): EditRowEndingEvent; /** * Event fired before row editing ends. * Return false in order to prevent the grid from exiting edit mode. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get or set the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. * * @optionValue Define event handler function. */ @@ -78836,27 +90161,11 @@ interface JQuery { /** * Event fired after row editing ends. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editRowEnded"): EditRowEndedEvent; /** * Event fired after row editing ends. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.update to check if any of the values is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. - * Use ui.values[key] to get the new value for the column with the specified key. - * Use ui.oldValues[key] to get the old value for the column with the specified key. * * @optionValue Define event handler function. */ @@ -78865,30 +90174,12 @@ interface JQuery { /** * Event fired before cell editing begins (including when row editing opens editing for a cell). * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editCellStarting"): EditCellStartingEvent; /** * Event fired before cell editing begins (including when row editing opens editing for a cell). * Return false in order to cancel editing. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -78896,29 +90187,11 @@ interface JQuery { /** * Event fired after cell editing begins (including when row editing opens editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editCellStarted"): EditCellStartedEvent; /** * Event fired after cell editing begins (including when row editing opens editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the value of the editor. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -78927,34 +90200,12 @@ interface JQuery { /** * Event fired before cell editing ends (including when row editing closes editing for a cell). * Return false in order to prevent the grid from exiting edit mode (only functions if [editMode](ui.iggridupdating#options:editMode) is 'cell'). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value to be used when updating the data source. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editCellEnding"): EditCellEndingEvent; /** * Event fired before cell editing ends (including when row editing closes editing for a cell). * Return false in order to prevent the grid from exiting edit mode (only functions if [editMode](ui.iggridupdating#options:editMode) is 'cell'). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get or set the value to be used when updating the data source. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -78962,33 +90213,11 @@ interface JQuery { /** * Event fired after cell editing ends (including when row editing closes editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the new value. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "editCellEnded"): EditCellEndedEvent; /** * Event fired after cell editing ends (including when row editing closes editing for a cell). - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.rowID to get the row's PK value. - * Use ui.columnIndex to get the index of the column. - * Use ui.columnKey to get the key of the column. - * Use ui.editor to get a reference to the editor used for editing the column. - * Use ui.value to get the new value. - * Use ui.oldValue to get the old value. - * Use ui.update to check if the value is changed which will cause update in the data source. - * Use ui.rowAdding to check if the edit mode is for adding a new row. * * @optionValue Define event handler function. */ @@ -78997,22 +90226,12 @@ interface JQuery { /** * Event fired before adding a new row. * Return false in order to cancel the adding of the new row to the data source. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowAdding"): RowAddingEvent; /** * Event fired before adding a new row. * Return false in order to cancel the adding of the new row to the data source. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. * * @optionValue Define event handler function. */ @@ -79020,21 +90239,11 @@ interface JQuery { /** * Event fired after adding a new row. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowAdded"): RowAddedEvent; /** * Event fired after adding a new row. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.values[key] to get the value for the column with the specified key. - * Use ui.oldValues[key] to get the default value (before editing) for the column with the specified key. * * @optionValue Define event handler function. */ @@ -79043,22 +90252,12 @@ interface JQuery { /** * Event fired before deleting a row. * Return false in order to cancel the row's deletion. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the row to delete. - * Use ui.rowID to get the row's PK value. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowDeleting"): RowDeletingEvent; /** * Event fired before deleting a row. * Return false in order to cancel the row's deletion. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the row to delete. - * Use ui.rowID to get the row's PK value. * * @optionValue Define event handler function. */ @@ -79066,21 +90265,11 @@ interface JQuery { /** * Event fired after a row is deleted. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the deleted row. - * Use ui.rowID to get the row's PK value. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowDeleted"): RowDeletedEvent; /** * Event fired after a row is deleted. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.element to get a jQuery object containing the TR element of the deleted row. - * Use ui.rowID to get the row's PK value. * * @optionValue Define event handler function. */ @@ -79089,18 +90278,12 @@ interface JQuery { /** * Event fired before the dataDirtyException is thrown. This can be controlled by the [enableDataDirtyException](ui.iggridupdating#options:enableDataDirtyException) property. Any pending changes may be committed in the handler of this event in order to prevent dataDirtyException from being thrown. * Return false in order to prevent the exception. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "dataDirty"): DataDirtyEvent; /** * Event fired before the dataDirtyException is thrown. This can be controlled by the [enableDataDirtyException](ui.iggridupdating#options:enableDataDirtyException) property. Any pending changes may be committed in the handler of this event in order to prevent dataDirtyException from being thrown. * Return false in order to prevent the exception. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. * * @optionValue Define event handler function. */ @@ -79108,19 +90291,11 @@ interface JQuery { /** * Event fired before editing starts for adding a new row, when Updating generates an automatic primary key for it. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.value to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "generatePrimaryKeyValue"): GeneratePrimaryKeyValueEvent; /** * Event fired before editing starts for adding a new row, when Updating generates an automatic primary key for it. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.value to get the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. * * @optionValue Define event handler function. */ @@ -79128,19 +90303,11 @@ interface JQuery { /** * Event fired before the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogBeforeOpen"): RowEditDialogBeforeOpenEvent; /** * Event fired before the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -79148,19 +90315,11 @@ interface JQuery { /** * Event fired after the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogAfterOpen"): RowEditDialogAfterOpenEvent; /** * Event fired after the row edit dialog is opened. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -79168,19 +90327,11 @@ interface JQuery { /** * Event fired before the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogBeforeClose"): RowEditDialogBeforeCloseEvent; /** * Event fired before the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -79188,19 +90339,11 @@ interface JQuery { /** * Event fired after the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogAfterClose"): RowEditDialogAfterCloseEvent; /** * Event fired after the row edit dialog is closed. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -79208,19 +90351,11 @@ interface JQuery { /** * Event fired after the row edit dialog is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. */ igTreeGridUpdating(optionLiteral: 'option', optionName: "rowEditDialogContentsRendered"): RowEditDialogContentsRenderedEvent; /** * Event fired after the row edit dialog is rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get a reference to GridUpdating. - * Use ui.owner.grid to get a reference to the grid. - * Use ui.dialogElement to get reference to row edit dialog DOM element. * * @optionValue Define event handler function. */ @@ -79259,6 +90394,7 @@ interface JQuery { } interface IgUploadFileExtensionIcons { + /** * Array of string for file extensions */ @@ -79285,10 +90421,6 @@ interface FileSelectingEvent { } interface FileSelectingEventUIParam { - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface FileSelectedEvent { @@ -79296,20 +90428,6 @@ interface FileSelectedEvent { } interface FileSelectedEventUIParam { - /** - * Used to get unique identifier of the file - */ - fileId?: any; - - /** - * Used to get the name of the uploaded file - */ - filePath?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface FileUploadingEvent { @@ -79317,40 +90435,6 @@ interface FileUploadingEvent { } interface FileUploadingEventUIParam { - /** - * Used to get unique identifier of the file - */ - fileId?: any; - - /** - * Used to get the name of the uploaded file - */ - filePath?: any; - - /** - * Used totalSize to get the file size of the uploaded file - */ - totalSize?: any; - - /** - * Used to get uploaded bytes - */ - uploadedBytes?: any; - - /** - * Used to get current file status - */ - fileStatus?: any; - - /** - * Used to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - */ - fileInfo?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface FileUploadedEvent { @@ -79358,30 +90442,6 @@ interface FileUploadedEvent { } interface FileUploadedEventUIParam { - /** - * Used to get unique identifier of the file - */ - fileId?: any; - - /** - * Used to get the name of the uploaded file - */ - filePath?: any; - - /** - * Used totalSize to get the file size of the uploaded file - */ - totalSize?: any; - - /** - * Used to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - */ - fileInfo?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface FileUploadAbortedEvent { @@ -79389,35 +90449,6 @@ interface FileUploadAbortedEvent { } interface FileUploadAbortedEventUIParam { - /** - * Used to get unique identifier of the file - */ - fileId?: any; - - /** - * Used to get the name of the uploaded file - */ - filePath?: any; - - /** - * Used totalSize to get the file size of the uploaded file - */ - totalSize?: any; - - /** - * Used to get uploaded bytes - */ - uploadedBytes?: any; - - /** - * Used to get current file status - */ - fileStatus?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface CancelAllClickedEvent { @@ -79425,10 +90456,6 @@ interface CancelAllClickedEvent { } interface CancelAllClickedEventUIParam { - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface OnErrorEvent { @@ -79436,35 +90463,6 @@ interface OnErrorEvent { } interface OnErrorEventUIParam { - /** - * Used to get current errorCode - */ - errorCode?: any; - - /** - * Used to get identifier of the file for which the event is fired(after that it can be used API function getFileInfo). NOTE: It is possible to be null in some cases: try to drop multiple files when mode is single , check maximum allowed uploading files fails or check for count of maximum allowed simultaneous files upload fails. - */ - fileId?: any; - - /** - * Used to get detailed error description - */ - errorMessage?: any; - - /** - * Used to get error type - it could be clientside or serverside - */ - errorType?: any; - - /** - * Used to get specific server message returned by server - if errorType is serverside - */ - serverMessage?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface FileExtensionsValidatingEvent { @@ -79472,20 +90470,6 @@ interface FileExtensionsValidatingEvent { } interface FileExtensionsValidatingEventUIParam { - /** - * Used to get the full file name - */ - fileName?: any; - - /** - * Used to get file extension - */ - fileExtension?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface OnXHRLoadEvent { @@ -79493,25 +90477,6 @@ interface OnXHRLoadEvent { } interface OnXHRLoadEventUIParam { - /** - * Used to get unique identifier of the file - */ - fileId?: any; - - /** - * Used to get reference to the original XMLHttpRequest object - */ - xhr?: any; - - /** - * Used to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from the server-side), etc. - */ - fileInfo?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface OnFormDataSubmitEvent { @@ -79519,33 +90484,10 @@ interface OnFormDataSubmitEvent { } interface OnFormDataSubmitEventUIParam { - /** - * Used to get unique identifier of the file - */ - fileId?: any; - - /** - * Used to get reference to the fileInfo object - containing information for the fileName, fileSize, serverMessage, etc. - */ - fileInfo?: any; - - /** - * Used to get reference to the original XMLHttpRequest object(if the browser supports HTML 5 file API - if not it is undefined) - */ - xhr?: any; - - /** - * Used to get reference to FormData object(if the browser supports HTML5 file API) OR reference to jQuery representation of
- */ - formData?: any; - - /** - * Used to access the igUpload widget object. - */ - owner?: any; } interface IgUpload { + /** * Get or set width of the main container of the file upload control. Main container contains all buttons, progressbar, etc. * @@ -79787,104 +90729,53 @@ interface IgUpload { /** * Defines the name of the file upload selecting event. Fired when browse button is pressed. * Return false in order to cancel selecting file. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igUpload widget object. */ fileSelecting?: FileSelectingEvent; /** * Defines the name of the file upload selected event. Fired when file is selected from browse dialog. * Return false in order to cancel uploading file. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.owner in order to access the igUpload widget object. */ fileSelected?: FileSelectedEvent; /** * Defines the name of the file uploading event. Fired every time when fileuploader get status for the upload. * Return false in order to cancel uploading file. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.uploadedBytes to get uploaded bytes - * Use ui.fileStatus to get current file status - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - * Use ui.owner in order to access the igUpload widget object. */ fileUploading?: FileUploadingEvent; /** * Defines the name of the uploaded event. Fired when the file is uploaded - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - * Use ui.owner in order to access the igUpload widget object. */ fileUploaded?: FileUploadedEvent; /** * Defines the name of the file upload cancel event. Fired when the server responses that the file is canceled. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.uploadedBytes to get uploaded bytes - * Use ui.fileStatus to get current file status - * Use ui.owner in order to access the igUpload widget object. */ fileUploadAborted?: FileUploadAbortedEvent; /** * Defines the name of the cancel all button event click. Fired when cancel all button in summary is clicked. Fired only in multiple upload mode. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igUpload widget object. */ cancelAllClicked?: CancelAllClickedEvent; /** * Defines the name of the file upload error event. Fired when error is occurred. - * Function takes arguments evt and ui. - * Use ui.errorCode to get current errorCode - * Use ui.fileId to get identifier of the file for which the event is fired(after that it can be used API function getFileInfo). NOTE: It is possible to be null in some cases: try to drop multiple files when mode is single , check maximum allowed uploading files fails or check for count of maximum allowed simultaneous files upload fails. - * Use ui.errorMessage to get detailed error description - * Use ui.errorType to get error type - it could be clientside or serverside - * Use ui.serverMessage to get specific server message returned by server - if errorType is serverside - * Use ui.owner in order to access the igUpload widget object. */ onError?: OnErrorEvent; /** * It is fired when validating file extensions - * Function takes arguments evt and ui. - * Use ui.fileName to get the full file name - * Use ui.fileExtension to get file extension - * Use ui.owner in order to access the igUpload widget object. */ fileExtensionsValidating?: FileExtensionsValidatingEvent; /** * It is fired when event onload(of XmlHttpRequest) is fired. This event will be fired only if the browser supports HTML5 file API - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.xhr to get reference to the original XMLHttpRequest object - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from the server-side), etc. - * Use ui.owner in order to access the igUpload widget object. */ onXHRLoad?: OnXHRLoadEvent; /** * It is fired before submitting to the server the uploading file(and its additional data if any). It could be used to append additional data fields to the FormData object(if the browser supports HTML5 file API - like newest Chrome, Firefox, IE11+). If the browser does not support HTML5 file API(IE10 and older) it could be added these data fields(as hidden input fields) to the form. Use the public API function addDataFields. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.fileInfo to get reference to the fileInfo object - containing information for the fileName, fileSize, serverMessage, etc. - * Use ui.xhr to get reference to the original XMLHttpRequest object(if the browser supports HTML 5 file API - if not it is undefined) - * Use ui.formData to get reference to FormData object(if the browser supports HTML5 file API) OR reference to jQuery representation of - * Use ui.owner in order to access the igUpload widget object. */ onFormDataSubmit?: OnFormDataSubmitEvent; @@ -79894,6 +90785,7 @@ interface IgUpload { [optionName: string]: any; } interface IgUploadMethods { + /** * Return jquery object of fileupload container - html DOM element */ @@ -80576,16 +91468,12 @@ interface JQuery { /** * Defines the name of the file upload selecting event. Fired when browse button is pressed. * Return false in order to cancel selecting file. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "fileSelecting"): FileSelectingEvent; /** * Defines the name of the file upload selecting event. Fired when browse button is pressed. * Return false in order to cancel selecting file. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80594,20 +91482,12 @@ interface JQuery { /** * Defines the name of the file upload selected event. Fired when file is selected from browse dialog. * Return false in order to cancel uploading file. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "fileSelected"): FileSelectedEvent; /** * Defines the name of the file upload selected event. Fired when file is selected from browse dialog. * Return false in order to cancel uploading file. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80616,28 +91496,12 @@ interface JQuery { /** * Defines the name of the file uploading event. Fired every time when fileuploader get status for the upload. * Return false in order to cancel uploading file. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.uploadedBytes to get uploaded bytes - * Use ui.fileStatus to get current file status - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "fileUploading"): FileUploadingEvent; /** * Defines the name of the file uploading event. Fired every time when fileuploader get status for the upload. * Return false in order to cancel uploading file. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.uploadedBytes to get uploaded bytes - * Use ui.fileStatus to get current file status - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80645,23 +91509,11 @@ interface JQuery { /** * Defines the name of the uploaded event. Fired when the file is uploaded - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "fileUploaded"): FileUploadedEvent; /** * Defines the name of the uploaded event. Fired when the file is uploaded - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80669,25 +91521,11 @@ interface JQuery { /** * Defines the name of the file upload cancel event. Fired when the server responses that the file is canceled. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.uploadedBytes to get uploaded bytes - * Use ui.fileStatus to get current file status - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "fileUploadAborted"): FileUploadAbortedEvent; /** * Defines the name of the file upload cancel event. Fired when the server responses that the file is canceled. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.filePath to get the name of the uploaded file - * Use ui.totalSize to get the file size of the uploaded file - * Use ui.uploadedBytes to get uploaded bytes - * Use ui.fileStatus to get current file status - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80695,15 +91533,11 @@ interface JQuery { /** * Defines the name of the cancel all button event click. Fired when cancel all button in summary is clicked. Fired only in multiple upload mode. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "cancelAllClicked"): CancelAllClickedEvent; /** * Defines the name of the cancel all button event click. Fired when cancel all button in summary is clicked. Fired only in multiple upload mode. - * Function takes arguments evt and ui. - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80711,25 +91545,11 @@ interface JQuery { /** * Defines the name of the file upload error event. Fired when error is occurred. - * Function takes arguments evt and ui. - * Use ui.errorCode to get current errorCode - * Use ui.fileId to get identifier of the file for which the event is fired(after that it can be used API function getFileInfo). NOTE: It is possible to be null in some cases: try to drop multiple files when mode is single , check maximum allowed uploading files fails or check for count of maximum allowed simultaneous files upload fails. - * Use ui.errorMessage to get detailed error description - * Use ui.errorType to get error type - it could be clientside or serverside - * Use ui.serverMessage to get specific server message returned by server - if errorType is serverside - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "onError"): OnErrorEvent; /** * Defines the name of the file upload error event. Fired when error is occurred. - * Function takes arguments evt and ui. - * Use ui.errorCode to get current errorCode - * Use ui.fileId to get identifier of the file for which the event is fired(after that it can be used API function getFileInfo). NOTE: It is possible to be null in some cases: try to drop multiple files when mode is single , check maximum allowed uploading files fails or check for count of maximum allowed simultaneous files upload fails. - * Use ui.errorMessage to get detailed error description - * Use ui.errorType to get error type - it could be clientside or serverside - * Use ui.serverMessage to get specific server message returned by server - if errorType is serverside - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80737,19 +91557,11 @@ interface JQuery { /** * It is fired when validating file extensions - * Function takes arguments evt and ui. - * Use ui.fileName to get the full file name - * Use ui.fileExtension to get file extension - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "fileExtensionsValidating"): FileExtensionsValidatingEvent; /** * It is fired when validating file extensions - * Function takes arguments evt and ui. - * Use ui.fileName to get the full file name - * Use ui.fileExtension to get file extension - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80757,21 +91569,11 @@ interface JQuery { /** * It is fired when event onload(of XmlHttpRequest) is fired. This event will be fired only if the browser supports HTML5 file API - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.xhr to get reference to the original XMLHttpRequest object - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from the server-side), etc. - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "onXHRLoad"): OnXHRLoadEvent; /** * It is fired when event onload(of XmlHttpRequest) is fired. This event will be fired only if the browser supports HTML5 file API - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.xhr to get reference to the original XMLHttpRequest object - * Use ui.fileInfo to get reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from the server-side), etc. - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80779,23 +91581,11 @@ interface JQuery { /** * It is fired before submitting to the server the uploading file(and its additional data if any). It could be used to append additional data fields to the FormData object(if the browser supports HTML5 file API - like newest Chrome, Firefox, IE11+). If the browser does not support HTML5 file API(IE10 and older) it could be added these data fields(as hidden input fields) to the form. Use the public API function addDataFields. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.fileInfo to get reference to the fileInfo object - containing information for the fileName, fileSize, serverMessage, etc. - * Use ui.xhr to get reference to the original XMLHttpRequest object(if the browser supports HTML 5 file API - if not it is undefined) - * Use ui.formData to get reference to FormData object(if the browser supports HTML5 file API) OR reference to jQuery representation of - * Use ui.owner in order to access the igUpload widget object. */ igUpload(optionLiteral: 'option', optionName: "onFormDataSubmit"): OnFormDataSubmitEvent; /** * It is fired before submitting to the server the uploading file(and its additional data if any). It could be used to append additional data fields to the FormData object(if the browser supports HTML5 file API - like newest Chrome, Firefox, IE11+). If the browser does not support HTML5 file API(IE10 and older) it could be added these data fields(as hidden input fields) to the form. Use the public API function addDataFields. - * Function takes arguments evt and ui. - * Use ui.fileId to get unique identifier of the file - * Use ui.fileInfo to get reference to the fileInfo object - containing information for the fileName, fileSize, serverMessage, etc. - * Use ui.xhr to get reference to the original XMLHttpRequest object(if the browser supports HTML 5 file API - if not it is undefined) - * Use ui.formData to get reference to FormData object(if the browser supports HTML5 file API) OR reference to jQuery representation of - * Use ui.owner in order to access the igUpload widget object. * * @optionValue New value to be set. */ @@ -80807,6 +91597,7 @@ interface JQuery { igUpload(methodName: string, ...methodParams: any[]): any; } interface IgValidatorField { + /** * Gets the target element (input or control target) to be validated. This field setting is required. * @@ -80828,6 +91619,7 @@ interface ValidatingEvent { } interface ValidatingEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80844,6 +91636,7 @@ interface ValidatedEvent { } interface ValidatedEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80870,6 +91663,7 @@ interface SuccessEvent { } interface SuccessEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80896,6 +91690,7 @@ interface ErrorEvent { } interface ErrorEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80922,6 +91717,7 @@ interface ErrorShowingEvent { } interface ErrorShowingEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80943,6 +91739,7 @@ interface ErrorHidingEvent { } interface ErrorHidingEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80964,6 +91761,7 @@ interface ErrorShownEvent { } interface ErrorShownEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -80985,6 +91783,7 @@ interface ErrorHiddenEvent { } interface ErrorHiddenEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81006,6 +91805,7 @@ interface SuccessShowingEvent { } interface SuccessShowingEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81027,6 +91827,7 @@ interface SuccessHidingEvent { } interface SuccessHidingEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81048,6 +91849,7 @@ interface SuccessShownEvent { } interface SuccessShownEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81069,6 +91871,7 @@ interface SuccessHiddenEvent { } interface SuccessHiddenEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81090,6 +91893,7 @@ interface FormValidatingEvent { } interface FormValidatingEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81106,6 +91910,7 @@ interface FormValidatedEvent { } interface FormValidatedEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81127,6 +91932,7 @@ interface FormErrorEvent { } interface FormErrorEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81143,6 +91949,7 @@ interface FormSuccessEvent { } interface FormSuccessEventUIParam { + /** * Used to get reference to the igValidator widget. */ @@ -81155,6 +91962,7 @@ interface FormSuccessEventUIParam { } interface IgValidator { + /** * Gets/Sets whether validation is triggered when the text in editor changes. * Note that this is more appropriate for selection controls such as checkbox, combo or rating. @@ -81517,6 +92325,7 @@ interface IgValidator { [optionName: string]: any; } interface IgValidatorMethods { + /** * Trigger validation and show errors for invalid fields. * @@ -81594,368 +92403,368 @@ interface JQuery { } declare namespace Infragistics { - class IgValidatorBaseRule { - constructor(name: string); - constructor(formatItems: any[]); +export class IgValidatorBaseRule { + constructor(name: string); + constructor(formatItems: any[]); - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; - /** - * Validates a value against this rule and returns the result. - * - * @param options Options for the validator, if fields are used this parameter is already populated with inherited ones. - * @param value The value to check. - */ - isValid(options: Object, value: Object): boolean; - } + /** + * Validates a value against this rule and returns the result. + * + * @param options Options for the validator, if fields are used this parameter is already populated with inherited ones. + * @param value The value to check. + */ + isValid(options: Object, value: Object): boolean; +} } interface IgniteUIStatic { - IgValidatorBaseRule: typeof Infragistics.IgValidatorBaseRule; +IgValidatorBaseRule: typeof Infragistics.IgValidatorBaseRule; } declare namespace Infragistics { - class IgValidatorRequiredRule { - constructor(name: string); - constructor(groupTypes: any[]); - constructor(groupMessageName: string); - constructor(formatItems: any[]); - getMessageType(options: Object): void; - isValid(options: Object, value: Object): void; +export class IgValidatorRequiredRule { + constructor(name: string); + constructor(groupTypes: any[]); + constructor(groupMessageName: string); + constructor(formatItems: any[]); + getMessageType(options: Object): void; + isValid(options: Object, value: Object): void; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorRequiredRule: typeof Infragistics.IgValidatorRequiredRule; +IgValidatorRequiredRule: typeof Infragistics.IgValidatorRequiredRule; } declare namespace Infragistics { - class IgValidatorControlRule { - constructor(name: string); - constructor(formatItems: any[]); - getMessageType(): void; +export class IgValidatorControlRule { + constructor(name: string); + constructor(formatItems: any[]); + getMessageType(): void; - /** - * Returns an error message for the rule from options - * - * @param options - */ - getRuleMessage(options: Object): void; - isValid(options: Object): void; + /** + * Returns an error message for the rule from options + * + * @param options + */ + getRuleMessage(options: Object): void; + isValid(options: Object): void; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorControlRule: typeof Infragistics.IgValidatorControlRule; +IgValidatorControlRule: typeof Infragistics.IgValidatorControlRule; } declare namespace Infragistics { - class IgValidatorNumberRule { - constructor(name: string); - constructor(formatItems: any[]); - isValid(options: Object, value: Object): void; +export class IgValidatorNumberRule { + constructor(name: string); + constructor(formatItems: any[]); + isValid(options: Object, value: Object): void; - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorNumberRule: typeof Infragistics.IgValidatorNumberRule; +IgValidatorNumberRule: typeof Infragistics.IgValidatorNumberRule; } declare namespace Infragistics { - class IgValidatorDateRule { - constructor(name: string); - constructor(formatItems: any[]); - isValid(options: Object, value: Object): void; +export class IgValidatorDateRule { + constructor(name: string); + constructor(formatItems: any[]); + isValid(options: Object, value: Object): void; - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorDateRule: typeof Infragistics.IgValidatorDateRule; +IgValidatorDateRule: typeof Infragistics.IgValidatorDateRule; } declare namespace Infragistics { - class IgValidatorLengthRule { - constructor(name: string); - constructor(formatItems: any[]); - getMessageType(): void; - isValid(options: Object, value: Object): void; +export class IgValidatorLengthRule { + constructor(name: string); + constructor(formatItems: any[]); + getMessageType(): void; + isValid(options: Object, value: Object): void; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorLengthRule: typeof Infragistics.IgValidatorLengthRule; +IgValidatorLengthRule: typeof Infragistics.IgValidatorLengthRule; } declare namespace Infragistics { - class IgValidatorValueRule { - constructor(name: string); - constructor(formatItems: any[]); - getMessageType(): void; - isValid(options: Object, value: Object): void; - } +export class IgValidatorValueRule { + constructor(name: string); + constructor(formatItems: any[]); + getMessageType(): void; + isValid(options: Object, value: Object): void; +} } interface IgniteUIStatic { - IgValidatorValueRule: typeof Infragistics.IgValidatorValueRule; +IgValidatorValueRule: typeof Infragistics.IgValidatorValueRule; } declare namespace Infragistics { - class IgValidatorEqualToRule { - constructor(name: string); - constructor(formatItems: any[]); - isValid(options: Object, value: Object): void; +export class IgValidatorEqualToRule { + constructor(name: string); + constructor(formatItems: any[]); + isValid(options: Object, value: Object): void; - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorEqualToRule: typeof Infragistics.IgValidatorEqualToRule; +IgValidatorEqualToRule: typeof Infragistics.IgValidatorEqualToRule; } declare namespace Infragistics { - class IgValidatorEmailRule { - constructor(name: string); - constructor(formatItems: any[]); - isValid(options: Object, value: Object): void; +export class IgValidatorEmailRule { + constructor(name: string); + constructor(formatItems: any[]); + isValid(options: Object, value: Object): void; - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorEmailRule: typeof Infragistics.IgValidatorEmailRule; +IgValidatorEmailRule: typeof Infragistics.IgValidatorEmailRule; } declare namespace Infragistics { - class IgValidatorPatternRule { - constructor(name: string); - constructor(formatItems: any[]); - isValid(options: Object, value: Object): void; +export class IgValidatorPatternRule { + constructor(name: string); + constructor(formatItems: any[]); + isValid(options: Object, value: Object): void; - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorPatternRule: typeof Infragistics.IgValidatorPatternRule; +IgValidatorPatternRule: typeof Infragistics.IgValidatorPatternRule; } declare namespace Infragistics { - class IgValidatorCustomRule { - constructor(name: string); - constructor(formatItems: any[]); - getMessageType(): void; - isValid(options: Object, value: Object): void; +export class IgValidatorCustomRule { + constructor(name: string); + constructor(formatItems: any[]); + getMessageType(): void; + isValid(options: Object, value: Object): void; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorCustomRule: typeof Infragistics.IgValidatorCustomRule; +IgValidatorCustomRule: typeof Infragistics.IgValidatorCustomRule; } declare namespace Infragistics { - class IgValidatorCreditCardRule { - constructor(name: string); - constructor(formatItems: any[]); +export class IgValidatorCreditCardRule { + constructor(name: string); + constructor(formatItems: any[]); - /** - * Based on ASP.NET CreditCardAttribute check, - * https://github.com/Microsoft/referencesource/blob/master/System.ComponentModel.DataAnnotations/DataAnnotations/CreditCardAttribute.cs - * using Luhn algorithm https://en.wikipedia.org/wiki/Luhn_algorithm - * - * @param options - * @param value - */ - isValid(options: Object, value: Object): void; + /** + * Based on ASP.NET CreditCardAttribute check, + * https://github.com/Microsoft/referencesource/blob/master/System.ComponentModel.DataAnnotations/DataAnnotations/CreditCardAttribute.cs + * using Luhn algorithm https://en.wikipedia.org/wiki/Luhn_algorithm + * + * @param options + * @param value + */ + isValid(options: Object, value: Object): void; - /** - * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. - * Only used when there's no errorMessage option available through getRuleMessage. - * - * @param options - */ - getMessageType(options: Object): string; + /** + * Gets the error message type to get from locale settings (matching as "Message>"). Returns the rule name by default. + * Only used when there's no errorMessage option available through getRuleMessage. + * + * @param options + */ + getMessageType(options: Object): string; - /** - * Gets an errorMessage from either the rule or field/global options. - * - * @param options - */ - getRuleMessage(options: Object): string; + /** + * Gets an errorMessage from either the rule or field/global options. + * + * @param options + */ + getRuleMessage(options: Object): string; - /** - * Formats an error message using rule-specific values (usually from formatItems). - * - * @param message The unformatted error message the validator intends to display. - */ - formatMessage(message: string): string; - } + /** + * Formats an error message using rule-specific values (usually from formatItems). + * + * @param message The unformatted error message the validator intends to display. + */ + formatMessage(message: string): string; +} } interface IgniteUIStatic { - IgValidatorCreditCardRule: typeof Infragistics.IgValidatorCreditCardRule; +IgValidatorCreditCardRule: typeof Infragistics.IgValidatorCreditCardRule; } interface JQuery { @@ -82680,6 +93489,7 @@ interface JQuery { igValidator(methodName: string, ...methodParams: any[]): any; } interface IgVideoPlayerBookmark { + /** * Gets/Sets where the bookmark will be positioned. Should be between 0 and movie duration in seconds. * @@ -82705,6 +93515,7 @@ interface IgVideoPlayerBookmark { } interface IgVideoPlayerRelatedVideo { + /** * Gets/Sets the URL of the related video image. * @@ -82754,6 +93565,7 @@ interface IgVideoPlayerRelatedVideo { } interface IgVideoPlayerBanner { + /** * Gets/Sets the banner image url. * @@ -82833,6 +93645,7 @@ interface IgVideoPlayerBanner { } interface IgVideoPlayerCommercialsLinkedCommercial { + /** * Gets/Sets the sources of the linked commercial video. * @@ -82864,6 +93677,7 @@ interface IgVideoPlayerCommercialsLinkedCommercial { } interface IgVideoPlayerCommercialsEmbeddedCommercial { + /** * Gets/Sets the start second of the embedded commercial. * @@ -82895,6 +93709,7 @@ interface IgVideoPlayerCommercialsEmbeddedCommercial { } interface IgVideoPlayerCommercialsAdMessage { + /** * Gets/Sets whether to apply an animation effect when showing or hiding the ad message. If set to true, the animation is played for [animationDuration](ui.igvideoplayer#options:commercials.adMessage.animationDuration) in milliseconds. * @@ -82926,6 +93741,7 @@ interface IgVideoPlayerCommercialsAdMessage { } interface IgVideoPlayerCommercials { + /** * Gets/Sets an array of linked commercial objects. A linked commercial is a separate video file that will be played in the specified position of the original movie clip by [startTime](ui.igvideoplayer#options:commercials.linkedCommercials.startTime). This feature is useful if you have frequently changing outside commercial sources. * @@ -82967,6 +93783,7 @@ interface EndedEvent { } interface EndedEventUIParam { + /** * Used to get the url of the playing video. */ @@ -82983,6 +93800,7 @@ interface PlayingEvent { } interface PlayingEventUIParam { + /** * Used to get the url of the playing video. */ @@ -82999,6 +93817,7 @@ interface PausedEvent { } interface PausedEventUIParam { + /** * Used to get the url of the playing video. */ @@ -83015,6 +93834,7 @@ interface BufferingEvent { } interface BufferingEventUIParam { + /** * Used to get the url of the playing video. */ @@ -83031,6 +93851,7 @@ interface ProgressEvent { } interface ProgressEventUIParam { + /** * Used to get the url of the playing video. */ @@ -83052,6 +93873,7 @@ interface WaitingEvent { } interface WaitingEventUIParam { + /** * Used to get the url of the playing video. */ @@ -83073,6 +93895,7 @@ interface EnterFullScreenEvent { } interface EnterFullScreenEventUIParam { + /** * Used to get the url of the playing video. */ @@ -83084,6 +93907,7 @@ interface ExitFullScreenEvent { } interface ExitFullScreenEventUIParam { + /** * Used to get the url of the playing video. */ @@ -83095,6 +93919,7 @@ interface RelatedVideoClickEvent { } interface RelatedVideoClickEventUIParam { + /** * Used to get the relatedVideo object from the relatedVideos array. */ @@ -83111,6 +93936,7 @@ interface BannerVisibleEvent { } interface BannerVisibleEventUIParam { + /** * Used to get the banner index in the banners array. */ @@ -83132,6 +93958,7 @@ interface BannerHiddenEvent { } interface BannerHiddenEventUIParam { + /** * Used to get the banner index in the banners array. */ @@ -83153,6 +93980,7 @@ interface BannerClickEvent { } interface BannerClickEventUIParam { + /** * Used to get the banner html element in the DOM. */ @@ -83160,6 +93988,7 @@ interface BannerClickEventUIParam { } interface IgVideoPlayer { + /** * Gets/Sets a list of video sources to choose from. Best coded/format is automatically detected by the control. Supported types are depending on the browser and could be one of the following mov, mp4, webm, ogg. * @@ -83221,7 +94050,7 @@ interface IgVideoPlayer { loop?: boolean; /** - * Gets/Sets whether if you want to use the built in browser controls. By default player uses Infragistics playback controls. Note that you may have different look and feel across different browsers if you use the built in browser controls. + * Gets/Sets whether if you want to use the built in browser controls. By default player uses Infragistics playback controls. Note that you may have different look and feel across different browsers if you use the built in browser controls. When this option is set to true, no [commercials](ui.igvideoplayer#options:commercials) will be displayed as they are not supported. * */ browserControls?: boolean; @@ -83281,7 +94110,7 @@ interface IgVideoPlayer { banners?: IgVideoPlayerBanner[]; /** - * Gets/Sets an array of commercials objects that will be displayed when the video is playing. + * Gets/Sets an array of commercials objects that will be displayed when the video is playing. Note that [broswerControls](ui.igvideoplayer#options:browserControls) doesn't support commercials. * */ commercials?: IgVideoPlayerCommercials; @@ -83425,6 +94254,7 @@ interface IgVideoPlayer { [optionName: string]: any; } interface IgVideoPlayerMethods { + /** * Returns the element on which the widget was instantiated */ @@ -83702,13 +94532,13 @@ interface JQuery { igVideoPlayer(optionLiteral: 'option', optionName: "loop", optionValue: boolean): void; /** - * Gets/Sets whether if you want to use the built in browser controls. By default player uses Infragistics playback controls. Note that you may have different look and feel across different browsers if you use the built in browser controls. + * Gets/Sets whether if you want to use the built in browser controls. By default player uses Infragistics playback controls. Note that you may have different look and feel across different browsers if you use the built in browser controls. When this option is set to true, no [commercials](ui.igvideoplayer#options:commercials) will be displayed as they are not supported. * */ igVideoPlayer(optionLiteral: 'option', optionName: "browserControls"): boolean; /** - * /Sets whether if you want to use the built in browser controls. By default player uses Infragistics playback controls. Note that you may have different look and feel across different browsers if you use the built in browser controls. + * /Sets whether if you want to use the built in browser controls. By default player uses Infragistics playback controls. Note that you may have different look and feel across different browsers if you use the built in browser controls. When this option is set to true, no [commercials](ui.igvideoplayer#options:commercials) will be displayed as they are not supported. * * * @optionValue New value to be set. @@ -83842,13 +94672,13 @@ interface JQuery { igVideoPlayer(optionLiteral: 'option', optionName: "banners", optionValue: IgVideoPlayerBanner[]): void; /** - * Gets/Sets an array of commercials objects that will be displayed when the video is playing. + * Gets/Sets an array of commercials objects that will be displayed when the video is playing. Note that [broswerControls](ui.igvideoplayer#options:browserControls) doesn't support commercials. * */ igVideoPlayer(optionLiteral: 'option', optionName: "commercials"): IgVideoPlayerCommercials; /** - * /Sets an array of commercials objects that will be displayed when the video is playing. + * /Sets an array of commercials objects that will be displayed when the video is playing. Note that [broswerControls](ui.igvideoplayer#options:browserControls) doesn't support commercials. * * * @optionValue New value to be set. @@ -84157,6 +94987,7 @@ interface JQuery { igVideoPlayer(methodName: string, ...methodParams: any[]): any; } interface IgZoombarDefaultZoomWindow { + /** * The left component of the zoom window in percentages. * @@ -84180,10 +95011,6 @@ interface ZoomChangingEvent { } interface ZoomChangingEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface ZoomChangedEvent { @@ -84191,10 +95018,6 @@ interface ZoomChangedEvent { } interface ZoomChangedEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface ProviderCreatedEvent { @@ -84202,15 +95025,6 @@ interface ProviderCreatedEvent { } interface ProviderCreatedEventUIParam { - /** - * Used to get the reference the created provider - */ - provider?: any; - - /** - * Used to get reference to igZoombar - */ - owner?: any; } interface WindowDragStartingEvent { @@ -84218,10 +95032,6 @@ interface WindowDragStartingEvent { } interface WindowDragStartingEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface WindowDragStartedEvent { @@ -84229,10 +95039,6 @@ interface WindowDragStartedEvent { } interface WindowDragStartedEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface WindowDraggingEvent { @@ -84240,10 +95046,6 @@ interface WindowDraggingEvent { } interface WindowDraggingEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface WindowDragEndingEvent { @@ -84251,10 +95053,6 @@ interface WindowDragEndingEvent { } interface WindowDragEndingEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface WindowDragEndedEvent { @@ -84262,10 +95060,6 @@ interface WindowDragEndedEvent { } interface WindowDragEndedEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface WindowResizingEvent { @@ -84273,13 +95067,10 @@ interface WindowResizingEvent { } interface WindowResizingEventUIParam { - /** - * Used to get reference to igZoombar. - */ - owner?: any; } interface IgZoombar { + /** * Specifies a provider class which interfaces the widget that is being zoomed. * object Provider class to use. The provider should implement all methods in the $.ig.ZoombarProviderDefault class and is suggested to be extended from it. @@ -84371,95 +95162,52 @@ interface IgZoombar { /** * Event fired before a zoom action is applied - * Function takes arguments evt and ui. - * Use ui.previousZoom.left to get the previous zoom window left position as a fraction of the absolute width of the target - * Use ui.previousZoom.width to get the previous zoom window width as a fraction of the absolute width of the target - * Use ui.newZoom.left to get the new zoom window left position as a fraction of the absolute width of the target - * Use ui.newZoom.width to get the new zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ zoomChanging?: ZoomChangingEvent; /** * Event fired after a zoom action is applied. - * Function takes arguments evt and ui. - * Use ui.previousZoom.left to get the previous zoom window left position as a fraction of the absolute width of the target - * Use ui.previousZoom.width to get the previous zoom window width as a fraction of the absolute width of the target - * Use ui.newZoom.left to get the new zoom window left position as a fraction of the absolute width of the target - * Use ui.newZoom.width to get the new zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ zoomChanged?: ZoomChangedEvent; /** * Event fired after a provider is created based on the options.provider value. If an instance is passed as a value for the option the event won't fire. * Use the event when utilizing a custom provider to assign options such as the zoomed widget's instance so that the provider's API is usable when igZoombar initializes its rendering. - * Function takes arguments evt and ui. - * Use ui.provider to get the reference the created provider - * Use ui.owner to get reference to igZoombar */ providerCreated?: ProviderCreatedEvent; /** * Event fired when the user attempts to drag the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowDragStarting?: WindowDragStartingEvent; /** * Event fired when the user starts dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowDragStarted?: WindowDragStartedEvent; /** * Event fired when the user drags the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowDragging?: WindowDraggingEvent; /** * Event fired when the user attemtps to stop dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowDragEnding?: WindowDragEndingEvent; /** * Event fired when the user stops dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowDragEnded?: WindowDragEndedEvent; /** * Event fired when the user resizes the zoom window with the window"s handles. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowResizing?: WindowResizingEvent; /** * Event fired after the user resizes the zoom window with the window"s handles. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ windowResized?: WindowResizedEvent; @@ -84469,6 +95217,7 @@ interface IgZoombar { [optionName: string]: any; } interface IgZoombarMethods { + /** * Destroys the Zoombar widget */ @@ -84507,6 +95256,7 @@ interface JQuery { } interface ZoombarProviderDefaultSettings { + /** * Contains the target component's instance */ @@ -84533,98 +95283,98 @@ interface ZoombarProviderDefaultSettings { } declare namespace Infragistics { - class ZoombarProviderDefault { - constructor(settings: ZoombarProviderDefaultSettings); +export class ZoombarProviderDefault { + constructor(settings: ZoombarProviderDefaultSettings); - /** - * Will be called before the provider instance is deleted (to unbind jQuery events, etc.) - */ - clean(): void; + /** + * Will be called before the provider instance is deleted (to unbind jQuery events, etc.) + */ + clean(): void; - /** - * Gets basic options for initializing the clone, based on the options the target is initialized with - * - * @param options if the Zoombar has a copy of the options object it'll pass it to the provider - */ - getBaseOpts(options: Object): void; + /** + * Gets basic options for initializing the clone, based on the options the target is initialized with + * + * @param options if the Zoombar has a copy of the options object it'll pass it to the provider + */ + getBaseOpts(options: Object): void; - /** - * Alters specific options so that the the clone is more suitable for its purpose - * - * @param options the base options of the widget obtained from getBaseOpts - */ - cleanOptsForZoom(options: Object): void; + /** + * Alters specific options so that the the clone is more suitable for its purpose + * + * @param options the base options of the widget obtained from getBaseOpts + */ + cleanOptsForZoom(options: Object): void; - /** - * Will be called by the Zoombar if a clone of the target widget should be created - * - * @param container a jQuery wrapped element to create the clone component in - * @param options the options that are obtained from cleanOptsForZoom - */ - createClone(container: Object, options: Object): void; + /** + * Will be called by the Zoombar if a clone of the target widget should be created + * + * @param container a jQuery wrapped element to create the clone component in + * @param options the options that are obtained from cleanOptsForZoom + */ + createClone(container: Object, options: Object): void; - /** - * Returns the provider"s widget name - */ - widgetName(): void; + /** + * Returns the provider"s widget name + */ + widgetName(): void; - /** - * Returns the target widget width property - */ - targetWidth(): void; + /** + * Returns the target widget width property + */ + targetWidth(): void; - /** - * Sets the target widget min window width (to be in sync with the same property of the zoombar) - * - * @param minWidth a number from 0 to 1 representing the minimal width (i.e. maximal zoom) the zoom window can take as a fraction of the total one - */ - syncMinWidth(minWidth: number): void; + /** + * Sets the target widget min window width (to be in sync with the same property of the zoombar) + * + * @param minWidth a number from 0 to 1 representing the minimal width (i.e. maximal zoom) the zoom window can take as a fraction of the total one + */ + syncMinWidth(minWidth: number): void; - /** - * Sets the width and height of the clone component - * - * @param width The width to set in pixels or string (px or % -affixed). - * @param height The height to set in pixels or string (px or % -affixed). - */ - setSize(width: Object, height: Object): void; + /** + * Sets the width and height of the clone component + * + * @param width The width to set in pixels or string (px or % -affixed). + * @param height The height to set in pixels or string (px or % -affixed). + */ + setSize(width: Object, height: Object): void; - /** - * Gets/sets the target object - * - * @param obj the new target component instance to set - */ - targetObject(obj?: Object): void; + /** + * Gets/sets the target object + * + * @param obj the new target component instance to set + */ + targetObject(obj?: Object): void; - /** - * Jshint ignore:line - * - * @param a - * @param b - */ - update(a: Object, b: Object): void; - } + /** + * Jshint ignore:line + * + * @param a + * @param b + */ + update(a: Object, b: Object): void; +} } interface IgniteUIStatic { - ZoombarProviderDefault: typeof Infragistics.ZoombarProviderDefault; +ZoombarProviderDefault: typeof Infragistics.ZoombarProviderDefault; } declare namespace Infragistics { - class ZoombarProviderDataChart { - constructor(settings: ZoombarProviderDefaultSettings); - clean(): void; - getBaseOpts(options: Object): void; - cleanOptsForZoom(options: Object): void; - createClone(container: Object, options: Object): void; - widgetName(): void; - targetWidth(): void; - targetObject(obj: Object): void; - syncMinWidth(minWidth: Object): void; - setSize(width: Object, height: Object): void; - update(a: Object, b: Object): void; - } +export class ZoombarProviderDataChart { + constructor(settings: ZoombarProviderDefaultSettings); + clean(): void; + getBaseOpts(options: Object): void; + cleanOptsForZoom(options: Object): void; + createClone(container: Object, options: Object): void; + widgetName(): void; + targetWidth(): void; + targetObject(obj: Object): void; + syncMinWidth(minWidth: Object): void; + setSize(width: Object, height: Object): void; + update(a: Object, b: Object): void; +} } interface IgniteUIStatic { - ZoombarProviderDataChart: typeof Infragistics.ZoombarProviderDataChart; +ZoombarProviderDataChart: typeof Infragistics.ZoombarProviderDataChart; } interface JQuery { @@ -84809,23 +95559,11 @@ interface JQuery { /** * Event fired before a zoom action is applied - * Function takes arguments evt and ui. - * Use ui.previousZoom.left to get the previous zoom window left position as a fraction of the absolute width of the target - * Use ui.previousZoom.width to get the previous zoom window width as a fraction of the absolute width of the target - * Use ui.newZoom.left to get the new zoom window left position as a fraction of the absolute width of the target - * Use ui.newZoom.width to get the new zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "zoomChanging"): ZoomChangingEvent; /** * Event fired before a zoom action is applied - * Function takes arguments evt and ui. - * Use ui.previousZoom.left to get the previous zoom window left position as a fraction of the absolute width of the target - * Use ui.previousZoom.width to get the previous zoom window width as a fraction of the absolute width of the target - * Use ui.newZoom.left to get the new zoom window left position as a fraction of the absolute width of the target - * Use ui.newZoom.width to get the new zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84833,23 +95571,11 @@ interface JQuery { /** * Event fired after a zoom action is applied. - * Function takes arguments evt and ui. - * Use ui.previousZoom.left to get the previous zoom window left position as a fraction of the absolute width of the target - * Use ui.previousZoom.width to get the previous zoom window width as a fraction of the absolute width of the target - * Use ui.newZoom.left to get the new zoom window left position as a fraction of the absolute width of the target - * Use ui.newZoom.width to get the new zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "zoomChanged"): ZoomChangedEvent; /** * Event fired after a zoom action is applied. - * Function takes arguments evt and ui. - * Use ui.previousZoom.left to get the previous zoom window left position as a fraction of the absolute width of the target - * Use ui.previousZoom.width to get the previous zoom window width as a fraction of the absolute width of the target - * Use ui.newZoom.left to get the new zoom window left position as a fraction of the absolute width of the target - * Use ui.newZoom.width to get the new zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84858,18 +95584,12 @@ interface JQuery { /** * Event fired after a provider is created based on the options.provider value. If an instance is passed as a value for the option the event won't fire. * Use the event when utilizing a custom provider to assign options such as the zoomed widget's instance so that the provider's API is usable when igZoombar initializes its rendering. - * Function takes arguments evt and ui. - * Use ui.provider to get the reference the created provider - * Use ui.owner to get reference to igZoombar */ igZoombar(optionLiteral: 'option', optionName: "providerCreated"): ProviderCreatedEvent; /** * Event fired after a provider is created based on the options.provider value. If an instance is passed as a value for the option the event won't fire. * Use the event when utilizing a custom provider to assign options such as the zoomed widget's instance so that the provider's API is usable when igZoombar initializes its rendering. - * Function takes arguments evt and ui. - * Use ui.provider to get the reference the created provider - * Use ui.owner to get reference to igZoombar * * @optionValue Define event handler function. */ @@ -84877,19 +95597,11 @@ interface JQuery { /** * Event fired when the user attempts to drag the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowDragStarting"): WindowDragStartingEvent; /** * Event fired when the user attempts to drag the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84897,19 +95609,11 @@ interface JQuery { /** * Event fired when the user starts dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowDragStarted"): WindowDragStartedEvent; /** * Event fired when the user starts dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84917,19 +95621,11 @@ interface JQuery { /** * Event fired when the user drags the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowDragging"): WindowDraggingEvent; /** * Event fired when the user drags the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84937,19 +95633,11 @@ interface JQuery { /** * Event fired when the user attemtps to stop dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowDragEnding"): WindowDragEndingEvent; /** * Event fired when the user attemtps to stop dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84957,19 +95645,11 @@ interface JQuery { /** * Event fired when the user stops dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowDragEnded"): WindowDragEndedEvent; /** * Event fired when the user stops dragging the zoom window. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84977,19 +95657,11 @@ interface JQuery { /** * Event fired when the user resizes the zoom window with the window"s handles. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowResizing"): WindowResizingEvent; /** * Event fired when the user resizes the zoom window with the window"s handles. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ @@ -84997,19 +95669,11 @@ interface JQuery { /** * Event fired after the user resizes the zoom window with the window"s handles. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. */ igZoombar(optionLiteral: 'option', optionName: "windowResized"): WindowResizedEvent; /** * Event fired after the user resizes the zoom window with the window"s handles. - * Function takes arguments evt and ui. - * Use ui.zoomWindow.left to get the current zoom window left position as a fraction of the absolute width of the target - * Use ui.zoomWindow.width to get the current zoom window width as a fraction of the absolute width of the target - * Use ui.owner to get reference to igZoombar. * * @optionValue Define event handler function. */ From c1bbbe3c691c07c6017c11ecf7bf6c12a357fb0a Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 11 Aug 2017 18:08:42 -0400 Subject: [PATCH 017/316] Use `import =` for RSVP tests; drop corresponding tsconfig setting. --- types/rsvp/index.d.ts | 1 - types/rsvp/rsvp-tests.ts | 2 +- types/rsvp/tsconfig.json | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/types/rsvp/index.d.ts b/types/rsvp/index.d.ts index 1aa764d785..8f2fdfee04 100644 --- a/types/rsvp/index.d.ts +++ b/types/rsvp/index.d.ts @@ -379,5 +379,4 @@ declare namespace RSVP { export function rethrow(reason: C): void; } -// export default RSVP; export = RSVP; diff --git a/types/rsvp/rsvp-tests.ts b/types/rsvp/rsvp-tests.ts index 519947dcc7..aec0acfede 100644 --- a/types/rsvp/rsvp-tests.ts +++ b/types/rsvp/rsvp-tests.ts @@ -1,4 +1,4 @@ -import RSVP from 'rsvp'; +import RSVP = require('rsvp'); let promise1: RSVP.Promise = RSVP.Promise.resolve(1); let promise1a: RSVP.Promise = RSVP.resolve(1); diff --git a/types/rsvp/tsconfig.json b/types/rsvp/tsconfig.json index fee17b279a..4eb44a2f7d 100644 --- a/types/rsvp/tsconfig.json +++ b/types/rsvp/tsconfig.json @@ -13,8 +13,7 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", From 2ff76c2755156481894f7db78a7fa539b2aa3112 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Mon, 14 Aug 2017 14:06:21 -0700 Subject: [PATCH 018/316] Remove `--allowSyntheticDefaultImports` --- types/ember-testing-helpers/tsconfig.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/ember-testing-helpers/tsconfig.json b/types/ember-testing-helpers/tsconfig.json index cd7634bd25..aaf474ecba 100644 --- a/types/ember-testing-helpers/tsconfig.json +++ b/types/ember-testing-helpers/tsconfig.json @@ -14,8 +14,7 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", From 43a1348b9146b0c6130a37f28d019eb2924ad9a3 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Mon, 14 Aug 2017 14:06:48 -0700 Subject: [PATCH 019/316] Remove `--allowSyntheticDefaultImports` --- types/ember/tsconfig.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/ember/tsconfig.json b/types/ember/tsconfig.json index fbc4052a08..b73838d20e 100644 --- a/types/ember/tsconfig.json +++ b/types/ember/tsconfig.json @@ -14,8 +14,7 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", From 3a6dc3305f9c435984d9789dde8ee910f6729b2e Mon Sep 17 00:00:00 2001 From: Dave Baumann Date: Tue, 15 Aug 2017 23:47:05 -0500 Subject: [PATCH 020/316] adding stockChart method to Highstock.Static --- types/highcharts/highstock.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/highcharts/highstock.d.ts b/types/highcharts/highstock.d.ts index 3ec90ec6a1..4c246478ee 100644 --- a/types/highcharts/highstock.d.ts +++ b/types/highcharts/highstock.d.ts @@ -1,6 +1,7 @@ // Type definitions for Highstock 2.1.5 // Project: http://www.highcharts.com/ // Definitions by: David Deutsch +// Definitions by: Dave Baumann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Highcharts from "highcharts"; @@ -100,6 +101,7 @@ declare namespace Highstock { interface Static extends Highcharts.Static { StockChart: Chart; + stockChart(renderTo: string | HTMLElement, options: Options, callback?: (chart: ChartObject) => void): ChartObject; } } From c1417d1f64e1359b89c0d9e701ac3772075f36e5 Mon Sep 17 00:00:00 2001 From: Andrew Town Date: Thu, 17 Aug 2017 10:14:11 -0500 Subject: [PATCH 021/316] Add support for more button column types and support the filename option --- .../datatables.net-buttons-tests.ts | 10 ++++++++++ types/datatables.net-buttons/index.d.ts | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/types/datatables.net-buttons/datatables.net-buttons-tests.ts b/types/datatables.net-buttons/datatables.net-buttons-tests.ts index 015917c456..3323f6fdb9 100644 --- a/types/datatables.net-buttons/datatables.net-buttons-tests.ts +++ b/types/datatables.net-buttons/datatables.net-buttons-tests.ts @@ -8,10 +8,20 @@ $(document).ready(function () { extend: 'excel', text: 'Excel', className: 'class', + filename: "exported_file.csv", exportOptions: { columns: ':visible' } }, + { + extend: 'excel', + text: 'Excel', + className: 'class', + filename: "exported_file.csv", + exportOptions: { + columns: [1, 6, 2, 3, 4] + } + }, { action: function (e, dt, node, config) { }, available: function (dt, config) { return true; }, diff --git a/types/datatables.net-buttons/index.d.ts b/types/datatables.net-buttons/index.d.ts index a5b32c1bf6..1bdf212b03 100644 --- a/types/datatables.net-buttons/index.d.ts +++ b/types/datatables.net-buttons/index.d.ts @@ -86,6 +86,11 @@ declare namespace DataTables { */ title?: string; + /** + * Define what the exported filename should be + */ + filename?: string; + exportOptions?: ButtonExportOptions; autoPrint?: boolean; customize?: FunctionButtonCustomize; @@ -95,7 +100,7 @@ declare namespace DataTables { (dt: DataTables.Api, config: any): boolean } export interface ButtonExportOptions { - columns?: string; + columns?: string | number | string[] | number[]; } export interface ButtonKey { From a3bd067d4708cd0978205cb68d7a3b8724a0adef Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 17 Aug 2017 23:30:47 +0200 Subject: [PATCH 022/316] [depd] improve typings, enable strict null checks and linting --- types/depd/depd-tests.ts | 63 +++++++++++++++++----------------------- types/depd/index.d.ts | 45 +++++++++++++++++++++------- types/depd/tsconfig.json | 4 +-- types/depd/tslint.json | 1 + 4 files changed, 64 insertions(+), 49 deletions(-) create mode 100644 types/depd/tslint.json diff --git a/types/depd/depd-tests.ts b/types/depd/depd-tests.ts index 62a4470f15..f201cb504a 100644 --- a/types/depd/depd-tests.ts +++ b/types/depd/depd-tests.ts @@ -1,52 +1,41 @@ import depd = require('depd'); -var deprecate = depd("depd-tests"); +const deprecate = depd("depd-tests"); -function assert(condition: boolean, message: string): void { - if (!condition) { - throw new Error(message); - } -} +deprecate('message'); -function testDepdMessage(...args: string[]): boolean { - if (arguments.length < 1) { - deprecate('testDepdMessage argument.lenth<1'); - return true; - } else { - console.log('normal logic'); - return false; - } -} - -assert(testDepdMessage() === true, "Deprecated code must be triggered!"); -assert(testDepdMessage('a') === false, "Deprecated code must be triggered!"); - -interface ITestObject { - p1: string; - p2: string; -} - -var obj = { p1: 'deprecated property', p2: 'normal property' }; +const obj = { p1: 'deprecated property', p2: 'normal property' }; deprecate.property(obj, 'p1', 'property [p1] is deprecated!'); +deprecate.property(obj, 'p3', 'property [p3] is deprecated!'); // $ExpectError -console.log(obj.p1); - -interface ITestDeprecatedFunction { - func1?: Function; - func2?: Function; +interface TestDeprecatedFunction { + func1?(): void; + func2?(arg: string): boolean; } +const obj2 = {}; -var obj2 = {}; - -// message automatically derived from function name -obj2.func1 = deprecate.function(function func1() { +obj2.func1 = deprecate.function(() => { console.log('all calls to [func1] are deprecated '); }); -// specific message -obj2.func2 = deprecate.function(function () { +// $ExpectError +obj2.func2 = deprecate.function(() => { console.log('all calls to [func2] are deprecated '); }, 'func2'); +obj2.func2 = deprecate.function((arg: string) => { + console.log('all calls to [func2] are deprecated '); + return true; +}, 'func2'); + obj2.func1(); -obj2.func2(); \ No newline at end of file +obj2.func2(''); + +process.on('deprecation', error => { + const err: depd.DeprecationError = error; + error; // $ExpectType DeprecationError + + err.name; // $ExpectType "DeprecationError" + err.namespace; // $ExpectType string + err.stack; // $ExpectType string +}); diff --git a/types/depd/index.d.ts b/types/depd/index.d.ts index 147393a332..3d33533765 100644 --- a/types/depd/index.d.ts +++ b/types/depd/index.d.ts @@ -1,16 +1,41 @@ -// Type definitions for depd 1.1.0 +// Type definitions for depd 1.1 // Project: https://github.com/dougwilson/nodejs-depd // Definitions by: Zhiyuan Wang +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 - - -declare function depd(namespace: string): Deprecate; - -interface Deprecate { - (message: string): void; - function(fn: Function, message?: string): Function; - property(obj: Object, prop: string, message: string): void; -} +/// export = depd; + +declare function depd(namespace: string): depd.Deprecate; + +declare namespace depd { + interface Deprecate { + (message: string): void; + // tslint:disable-next-line ban-types + function(fn: T, message?: string): T; + property(obj: T, prop: keyof T, message: string): void; + } + + interface DeprecationError extends Error { + readonly name: 'DeprecationError'; + namespace: string; + stack: string; + } +} + +declare global { + namespace NodeJS { + interface Process { + addListener(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this; + emit(event: 'deprecation', code: depd.DeprecationError): boolean; + on(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this; + once(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this; + prependListener(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this; + prependOnceListener(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this; + listeners(event: 'deprecation'): depd.DeprecationError[]; + } + } +} diff --git a/types/depd/tsconfig.json b/types/depd/tsconfig.json index 14bec0a373..23aa25d9e0 100644 --- a/types/depd/tsconfig.json +++ b/types/depd/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "depd-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/depd/tslint.json b/types/depd/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/depd/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 73dd4e148f4561c649b62482bdadaef6757e8948 Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Fri, 18 Aug 2017 08:42:17 +1000 Subject: [PATCH 023/316] Add typeInterval constructor option and screenshot overload for clipping path --- types/nightmare/index.d.ts | 2 ++ types/nightmare/nightmare-tests.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index d99947ab27..5e4160fd41 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -96,6 +96,7 @@ declare class Nightmare { removeListener(event: 'error', cb: (msg: string, trace?: Nightmare.IStackTrace[]) => void): Nightmare; removeListener(event: 'timeout', cb: (msg: string) => void): Nightmare; screenshot(path: string): Nightmare; + screenshot(path: string, clip: Object): Nightmare; html(path: string, saveType: string): Nightmare; html(path: string, saveType: 'HTMLOnly'): Nightmare; html(path: string, saveType: 'HTMLComplete'): Nightmare; @@ -134,6 +135,7 @@ declare namespace Nightmare { cookiesFile?: string; phantomPath?: string; show?: boolean; + typeInterval?: number; } export interface IRequest { diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index 921e961538..37ac342d5f 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -167,6 +167,11 @@ new Nightmare() .screenshot('test/test.png') .run(done); +new Nightmare() + .goto('http://yahoo.com') + .screenshot('test/test.png', { x: 10, y: 5, width: 10, height: 10}) + .run(done); + new Nightmare() .goto('http://yahoo.com') .pdf('test/test.pdf') From d022534a71572148357b37c8e4b9b8ec4d8b5f37 Mon Sep 17 00:00:00 2001 From: Nikolay Babanov Date: Sun, 20 Aug 2017 12:49:27 +0300 Subject: [PATCH 024/316] Added glMatrix utilities definition --- types/gl-matrix/gl-matrix-tests.ts | 23 ++++++++++++++- types/gl-matrix/index.d.ts | 46 +++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/types/gl-matrix/gl-matrix-tests.ts b/types/gl-matrix/gl-matrix-tests.ts index 3642cca521..d758dad739 100644 --- a/types/gl-matrix/gl-matrix-tests.ts +++ b/types/gl-matrix/gl-matrix-tests.ts @@ -1,5 +1,5 @@ // common -import { vec2, mat2, mat3, mat4, vec3, vec4, mat2d, quat } from "gl-matrix"; +import { glMatrix, vec2, mat2, mat3, mat4, vec3, vec4, mat2d, quat } from "gl-matrix"; var outVal: number; var outBool: boolean; @@ -349,7 +349,18 @@ outQuat = quat.calculateW(outQuat, quatA); outBool = quat.exactEquals(quatA, quatB); outBool = quat.equals(quatA, quatB); +// glMatrix +outVal = glMatrix.RANDOM(); +outVal = glMatrix.EPSILON; +outBool = glMatrix.ENABLE_SIMD; +outBool = glMatrix.SIMD_AVAILABLE; +outBool = glMatrix.USE_SIMD; +outBool = glMatrix.equals(1, 1); +outBool = glMatrix.equals(1, -1); +outVal = glMatrix.toRadian(10); + // common +import _glMatrix = require('gl-matrix/src/gl-matrix/common'); import _vec2 = require('gl-matrix/src/gl-matrix/vec2'); import _vec3 = require('gl-matrix/src/gl-matrix/vec3'); import _vec4 = require('gl-matrix/src/gl-matrix/vec4'); @@ -697,3 +708,13 @@ outQuat = _quat.fromMat3(outQuat, mat3A); outQuat = _quat.calculateW(outQuat, quatA); outBool = _quat.exactEquals(quatA, quatB); outBool = _quat.equals(quatA, quatB); + +// glMatrix common +outVal = _glMatrix.RANDOM(); +outVal = _glMatrix.EPSILON; +outBool = _glMatrix.ENABLE_SIMD; +outBool = _glMatrix.SIMD_AVAILABLE; +outBool = _glMatrix.USE_SIMD; +outBool = _glMatrix.equals(1, 1); +outBool = _glMatrix.equals(1, -1); +outVal = _glMatrix.toRadian(10); diff --git a/types/gl-matrix/index.d.ts b/types/gl-matrix/index.d.ts index 89f28934b8..87636056b2 100644 --- a/types/gl-matrix/index.d.ts +++ b/types/gl-matrix/index.d.ts @@ -1,9 +1,48 @@ -// Type definitions for gl-matrix 2.2.2 +// Type definitions for gl-matrix 2.3.2 // Project: https://github.com/toji/gl-matrix // Definitions by: Mattijs Kneppers , based on definitions by Tat +// Definitions by: Nikolay Babanov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'gl-matrix' { + // Global Utilities + export class glMatrix { + // Configuration constants + static EPSILON: number; + static ARRAY_TYPE: any; + static RANDOM(): number; + static ENABLE_SIMD: boolean; + + // Compatibility detection + static SIMD_AVAILABLE: boolean; + static USE_SIMD: boolean; + + /** + * Sets the type of array used when creating new vectors and matrices + * + * @param {any} type - Array type, such as Float32Array or Array + */ + static setMatrixArrayType(type: any): void; + + /** + * Convert Degree To Radian + * + * @param {number} a - Angle in Degrees + */ + static toRadian(a: number): number; + + /** + * Tests whether or not the arguments have approximately the same value, within an absolute + * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less + * than or equal to 1.0, and a relative tolerance is used for larger values) + * + * @param {number} a - The first number to test. + * @param {number} b - The second number to test. + * @returns {boolean} True if the numbers are approximately equal, false otherwise. + */ + static equals(a: number, b: number): boolean; + } + // vec2 export class vec2 extends Float32Array { private typeVec2: number; @@ -3045,6 +3084,11 @@ declare module 'gl-matrix' { } } +declare module 'gl-matrix/src/gl-matrix/common' { + import { glMatrix } from 'gl-matrix'; + export = glMatrix; +} + declare module 'gl-matrix/src/gl-matrix/vec2' { import { vec2 } from 'gl-matrix'; export = vec2; From e11b3fc131e9064d915d89e17aa61bc456b0bb2c Mon Sep 17 00:00:00 2001 From: Nikolay Babanov Date: Sun, 20 Aug 2017 13:08:33 +0300 Subject: [PATCH 025/316] Fixed definitions header --- types/gl-matrix/index.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/types/gl-matrix/index.d.ts b/types/gl-matrix/index.d.ts index 87636056b2..a9ff87b9a3 100644 --- a/types/gl-matrix/index.d.ts +++ b/types/gl-matrix/index.d.ts @@ -1,35 +1,35 @@ // Type definitions for gl-matrix 2.3.2 // Project: https://github.com/toji/gl-matrix // Definitions by: Mattijs Kneppers , based on definitions by Tat -// Definitions by: Nikolay Babanov +// Nikolay Babanov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'gl-matrix' { // Global Utilities export class glMatrix { // Configuration constants - static EPSILON: number; - static ARRAY_TYPE: any; - static RANDOM(): number; - static ENABLE_SIMD: boolean; + public static EPSILON: number; + public static ARRAY_TYPE: any; + public static RANDOM(): number; + public static ENABLE_SIMD: boolean; // Compatibility detection - static SIMD_AVAILABLE: boolean; - static USE_SIMD: boolean; + public static SIMD_AVAILABLE: boolean; + public static USE_SIMD: boolean; /** * Sets the type of array used when creating new vectors and matrices * * @param {any} type - Array type, such as Float32Array or Array */ - static setMatrixArrayType(type: any): void; + public static setMatrixArrayType(type: any): void; /** * Convert Degree To Radian * * @param {number} a - Angle in Degrees */ - static toRadian(a: number): number; + public static toRadian(a: number): number; /** * Tests whether or not the arguments have approximately the same value, within an absolute @@ -40,7 +40,7 @@ declare module 'gl-matrix' { * @param {number} b - The second number to test. * @returns {boolean} True if the numbers are approximately equal, false otherwise. */ - static equals(a: number, b: number): boolean; + public static equals(a: number, b: number): boolean; } // vec2 From 6fd7eb187da32120f5c87922fbe79950fd98076d Mon Sep 17 00:00:00 2001 From: falsandtru Date: Sun, 20 Aug 2017 19:40:48 +0900 Subject: [PATCH 026/316] remove deprecated apis --- types/prismjs/index.d.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/types/prismjs/index.d.ts b/types/prismjs/index.d.ts index 5ed442c46f..1476f56291 100644 --- a/types/prismjs/index.d.ts +++ b/types/prismjs/index.d.ts @@ -5,11 +5,6 @@ export as namespace Prism; -/** - * @deprecated Use the Prism namespace directly directly - */ -export as namespace PrismJS; - export const util: Util; export const languages: Languages; export const plugins: any; From 7ee89bcd12c3eaea53b9bd0a6af46f89b3a7b235 Mon Sep 17 00:00:00 2001 From: Elliott Davis Date: Sat, 19 Aug 2017 10:36:06 -0500 Subject: [PATCH 027/316] Add wait option to table and db interfaces Signed-off-by: Elliott Davis --- types/rethinkdb/index.d.ts | 13 +++++++++++++ types/rethinkdb/rethinkdb-tests.ts | 3 ++- types/rethinkdb/tsconfig.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/types/rethinkdb/index.d.ts b/types/rethinkdb/index.d.ts index c2dbf4b49b..6b4e3d0345 100644 --- a/types/rethinkdb/index.d.ts +++ b/types/rethinkdb/index.d.ts @@ -117,6 +117,17 @@ declare module "rethinkdb" { ssl?: TLSConnectionOptions; } + type waitFor = 'ready_for_outdated_reads' | 'ready_for_reads' | 'ready_for_writes'; + + interface WaitOptions { + waitFor?: waitFor; + timeout?: number; + } + + interface WaitResult { + ready: number; + } + interface NoReplyWait { noreplyWait: boolean; } @@ -143,6 +154,7 @@ declare module "rethinkdb" { tableDrop(name: string): Operation; tableList(): Operation; table(name: string, options?: GetTableOptions): Table; + wait(WaitOptions?): WaitResult; } interface TableOptions { @@ -233,6 +245,7 @@ declare module "rethinkdb" { get(key: string): Sequence; // primary key getAll(key: string, index?: Index): Sequence; // without index defaults to primary key getAll(...keys: string[]): Sequence; + wait(WaitOptions?): WaitResult; } interface Sequence extends Operation, Writeable { diff --git a/types/rethinkdb/rethinkdb-tests.ts b/types/rethinkdb/rethinkdb-tests.ts index 644ea58516..411a306d7c 100644 --- a/types/rethinkdb/rethinkdb-tests.ts +++ b/types/rethinkdb/rethinkdb-tests.ts @@ -22,7 +22,7 @@ r.connect({ host: "localhost", port: 28015 }, function(err: Error, conn: r.Conne testDb.tableCreate("users").run(conn, function(err, stuff) { const users = testDb.table("users"); - + users.wait({waitFor: 'ready_for_reads'}); users.insert({ name: "bob" }).run(conn, function() { }); @@ -55,6 +55,7 @@ r.connect({ host: "localhost", port: 28015 }).then(function(conn: r.Connection) console.log("HI", conn); const testDb = r.db("test"); + testDb.wait({timeout: 1}); r.table("players").hasFields("games_won").run(conn).then(cursorCallback); r.table("players").hasFields({ "games_won": { "championships": true } }).run(conn).then(cursorCallback); diff --git a/types/rethinkdb/tsconfig.json b/types/rethinkdb/tsconfig.json index 02a4846f80..4e794abe0d 100644 --- a/types/rethinkdb/tsconfig.json +++ b/types/rethinkdb/tsconfig.json @@ -19,4 +19,4 @@ "index.d.ts", "rethinkdb-tests.ts" ] -} \ No newline at end of file +} From 2ac9343b7658923ef222e9dcd039a9cc91fe8b06 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Mon, 21 Aug 2017 16:58:37 +1200 Subject: [PATCH 028/316] Fixed Marionette test errors --- types/backbone.marionette/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 6390d4a75e..d833164d06 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1222,7 +1222,7 @@ declare namespace Marionette { /** * Define options to pass to the childView constructor. */ - childViewOptions: (() => ViewOptions) | ViewOptions; + childViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; /** * Prevent some of the underlying collection's models from being @@ -1245,12 +1245,12 @@ declare namespace Marionette { /** * Specify a view to use if the collection has no children. */ - emptyView: (() => typeof Backbone.View) | typeof Backbone.View; + emptyView: (() => { new(...args: any[]): Backbone.View }) | { new(...args: any[]): Backbone.View }; /** * Define options to pass to the emptyView constructor. */ - emptyViewOptions: (() => ViewOptions) | ViewOptions; + emptyViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; /** * Method used to determine when emptyView is rendered. From 3b84f66a894cf81390707ff99685710bbf0eecd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sun, 20 Aug 2017 22:16:32 +0200 Subject: [PATCH 029/316] [htmlparser2] Add exported WritableStream class --- types/htmlparser2/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/htmlparser2/index.d.ts b/types/htmlparser2/index.d.ts index a49e0e978a..313ff56a96 100644 --- a/types/htmlparser2/index.d.ts +++ b/types/htmlparser2/index.d.ts @@ -1,10 +1,12 @@ // Type definitions for htmlparser2 v3.7.x // Project: https://github.com/fb55/htmlparser2/ // Definitions by: James Roland Cabresos +// Linus Unnebäck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// - +import { Writable } from 'stream' export interface Handler { onopentag?: (name: string, attribs: { [type: string]: string }) => void; @@ -60,6 +62,10 @@ export interface Options { recognizeSelfClosing?: boolean; } +export declare class WritableStream extends Writable { + constructor(handler: Handler, options?: Options); +} + export declare class Parser { constructor(handler: Handler, options?: Options); From dd30e2af0d0f5e0d26b48c95edbd9fed5b304599 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Tue, 22 Aug 2017 09:38:32 +1200 Subject: [PATCH 030/316] Fixed lint errors --- .../backbone.marionette-tests.ts | 51 ++++++++----------- types/backbone.marionette/index.d.ts | 37 ++++++-------- types/backbone.marionette/tslint.json | 3 ++ 3 files changed, 38 insertions(+), 53 deletions(-) create mode 100644 types/backbone.marionette/tslint.json diff --git a/types/backbone.marionette/backbone.marionette-tests.ts b/types/backbone.marionette/backbone.marionette-tests.ts index ac834f8ead..23a037d49c 100644 --- a/types/backbone.marionette/backbone.marionette-tests.ts +++ b/types/backbone.marionette/backbone.marionette-tests.ts @@ -6,7 +6,7 @@ class DestroyWarn extends Marionette.Behavior { // just like you can in your Backbone Models // they will be overriden if you pass in an option with the same key defaults = { - 'message': 'you are destroying!' + message: 'you are destroying!' }; // behaviors have events that are bound to the views DOM @@ -22,7 +22,6 @@ class DestroyWarn extends Marionette.Behavior { } } - Marionette.Behaviors.getBehaviorClass = (options, key) => { if (key === 'DestroyWarn') return DestroyWarn; @@ -44,7 +43,6 @@ class MyRouter extends Marionette.AppRouter { someOtherMethod() { // do something here. } - } class MyApplication extends Marionette.Application { @@ -60,7 +58,7 @@ class MyApplication extends Marionette.Application { this.mainRegion = new Marionette.Region({ el: '#main' }); this.layoutView.addRegion('main', this.mainRegion); this.layoutView.render(); - this.layoutView.showChildView('main', new MyView(new MyModel)); + this.layoutView.showChildView('main', new MyView(new MyModel())); let view: Backbone.View = this.layoutView.getChildView('main'); let regions: {[key: string]: Marionette.Region} = this.layoutView.getRegions(); let region: Marionette.Region = this.layoutView.removeRegion('main'); @@ -88,7 +86,6 @@ class AppLayoutView extends Marionette.View { } class MyModel extends Backbone.Model { - constructor(options?: any) { super(options); } @@ -103,7 +100,6 @@ class MyModel extends Backbone.Model { } class MyBaseView extends Marionette.View { - constructor() { super(); this.getOption('foo'); @@ -111,14 +107,13 @@ class MyBaseView extends Marionette.View { 'click .foo': 'bar' }; } - } class MyView extends Marionette.View { behaviors: any; constructor(model: MyModel) { - super({ model: model }); + super({ model }); this.ui = { destroy: '.destroy' @@ -134,8 +129,7 @@ class MyView extends Marionette.View { template() { return '

' + this.model.getName() + '

'; } -}; - +} class MainRegion extends Marionette.Region { constructor() { @@ -144,7 +138,6 @@ class MainRegion extends Marionette.Region { } } - class MyObject extends Marionette.Object { name: string; options: any; @@ -193,16 +186,16 @@ class MyCollectionView extends Marionette.CollectionView { super(); this.childView = MyView; this.childViewEvents = { - render: function () { + render() { console.log('a childView has been rendered'); } }; - this.childViewOptions = function (model: any, index: any): any { + this.childViewOptions = (model: any, index: any): any => { // do some calculations based on the model return { id: 'bar' - } + }; }; this.childViewOptions = { @@ -211,32 +204,30 @@ class MyCollectionView extends Marionette.CollectionView { this.childViewEventPrefix = 'some:prefix'; - this.on('some:prefix:render', function () { - + this.on('some:prefix:render', () => { }); - } } -var app: MyApplication; +let app: MyApplication; function ApplicationTests() { app = new MyApplication(); app.start(); - var view = new MyView(new MyModel()); + let view = new MyView(new MyModel()); app.mainRegion.show(view); } function ObjectTests() { - var obj = new MyObject(); + let obj = new MyObject(); console.log(obj.getOption('name')); obj.destroy('goodbye'); } function RegionTests() { - var myView: Marionette.View = new MyView(new MyModel()); + let myView: Marionette.View = new MyView(new MyModel()); // render and display the view app.mainRegion.show(myView); @@ -247,13 +238,13 @@ function RegionTests() { myView = new MyView(new MyModel()); app.mainRegion.show(myView, { preventDestroy: true }); - var hasView: boolean = app.mainRegion.hasView(); + let hasView: boolean = app.mainRegion.hasView(); app.mainRegion.reset(); - Marionette.Region.prototype.attachHtml = function (view: any): void { + Marionette.Region.prototype.attachHtml = (view: any): void => { this.$el.empty().append(view.el); - } + }; myView = new Marionette.View({ el: $('#existing-view-stuff') @@ -261,12 +252,11 @@ function RegionTests() { app.mainRegion.show(myView); - app.mainRegion.on('empty', function (view: any, region: any, options: any) { + app.mainRegion.on('empty', (view: any, region: any, options: any) => { // manipulate the `view` or do something extra // with the `region` // you also have access to the `options` that were passed to the Region.show call }); - } function ViewTests() { @@ -278,7 +268,7 @@ function ViewTests() { } function CollectionViewTests() { - var cv = new MyCollectionView(); + let cv = new MyCollectionView(); cv.collection.add(new MyModel()); app.mainRegion.show(cv); cv.emptyView = MyView; @@ -292,14 +282,13 @@ class MyController { } function AppRouterTests() { - var myController = new MyController(); - var router = new MyRouter(); + let myController = new MyController(); + let router = new MyRouter(); router.appRoute('/foo', 'fooThat'); router.processAppRoutes(myController, { - 'foo': 'doFoo', + foo: 'doFoo', 'bar/:id': 'doBar' }); - } diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index d833164d06..5292a4bfe7 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1,10 +1,11 @@ -// Type definitions for Marionette v3.3.1 +// Type definitions for Marionette 3.3 // Project: https://github.com/marionettejs/ // Definitions by: Zeeshan Hamid , Natan Vivo , Sven Tschui // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as Backbone from 'backbone'; +import * as JQuery from 'jquery'; import * as Radio from 'backbone.radio'; export as namespace Marionette; @@ -21,7 +22,6 @@ interface CommonMixin { } interface RadioMixinOptions { - /** * Defines the Radio channel that will be used for the requests and/or * events. @@ -62,7 +62,6 @@ interface DomMixin { } interface ViewMixinOptions { - /** * Behavior objects to assign to this View. */ @@ -143,7 +142,6 @@ interface RegionsMixin { } declare class Container { - /** * Find a view by it's cid. */ @@ -181,7 +179,6 @@ declare class Container { } declare namespace Marionette { - /** * Alias of Backbones extend function. */ @@ -272,7 +269,7 @@ declare namespace Marionette { * Initialize is called immediately after the Object has been instantiated, * and is invoked with the same arguments that the constructor received. */ - initialize?: (options?: ObjectOptions) => void; + initialize?(options?: ObjectOptions): void; [index: string]: any; } @@ -282,7 +279,6 @@ declare namespace Marionette { * backbone conventions and utilities like initialize and Backbone.Events. */ class Object extends Backbone.Events implements CommonMixin, RadioMixin { - constructor(options?: ObjectOptions); /** @@ -384,7 +380,6 @@ declare namespace Marionette { * in your HTML. This will improve the speed of subsequent calls to get a template. */ class TemplateCache implements DomMixin { - /** * Returns a new HTML DOM node instance. The resulting node can be * passed into the other DOM functions. @@ -425,7 +420,7 @@ declare namespace Marionette { * @param el is a jQuery argument: https://api.jquery.com/jQuery/ * @param html is a jQuery.html argument: https://api.jquery.com/html/ */ - setInnerContent(el: any, html: string | Function): void; + setInnerContent(el: any, html: string): void; /** * Detach el from the DOM. @@ -450,7 +445,10 @@ declare namespace Marionette { findEls(selector: any, context: any): void; /** - * To use the TemplateCache, call the get method on TemplateCache directly. Internally, instances of the TemplateCache class will be created and stored but you do not have to manually create these instances yourself. get will return a compiled template function. + * To use the TemplateCache, call the get method on TemplateCache + * directly. Internally, instances of the TemplateCache class will be + * created and stored but you do not have to manually create these + * instances yourself. get will return a compiled template function. */ static get(templateId: string, options?: any): any; @@ -526,7 +524,6 @@ declare namespace Marionette { * views in the correct place. */ class Region extends Object implements DomMixin { - /** * Returns a new HTML DOM node instance. The resulting node can be * passed into the other DOM functions. @@ -567,7 +564,7 @@ declare namespace Marionette { * @param el is a jQuery argument: https://api.jquery.com/jQuery/ * @param html is a jQuery.html argument: https://api.jquery.com/html/ */ - setInnerContent(el: any, html: string | Function): void; + setInnerContent(el: any, html: string): void; /** * Detach el from the DOM. @@ -712,7 +709,6 @@ declare namespace Marionette { } interface ViewOptions extends Backbone.ViewOptions, ViewMixinOptions { - /** * The events attribute binds DOM events to actions to perform on the * view. It takes DOM event key and a mapping to the handler. @@ -749,7 +745,6 @@ declare namespace Marionette { * easily nest multiple views through the regions attribute. */ class View extends Backbone.View implements ViewMixin, RegionsMixin { - constructor(options?: ViewOptions); events(): EventsHash; @@ -794,7 +789,7 @@ declare namespace Marionette { * @param el is a jQuery argument: https://api.jquery.com/jQuery/ * @param html is a jQuery.html argument: https://api.jquery.com/html/ */ - setInnerContent(el: any, html: string | Function): void; + setInnerContent(el: any, html: string): void; /** * Detach el from the DOM. @@ -1149,8 +1144,10 @@ declare namespace Marionette { ui: any; } - interface CollectionViewOptions = Backbone.Collection> extends Backbone.ViewOptions, ViewMixinOptions { - + interface CollectionViewOptions< + TModel extends Backbone.Model, + TCollection extends Backbone.Collection = Backbone.Collection + > extends Backbone.ViewOptions, ViewMixinOptions { /** * Specify a child view to use. */ @@ -1171,7 +1168,7 @@ declare namespace Marionette { * Prevent some of the underlying collection's models from being * rendered as child views. */ - filter?: (child?: TModel, index?: number, collection?: TCollection) => boolean; + filter?(child?: TModel, index?: number, collection?: TCollection): boolean; /** * Specify a view to use if the collection has no children. @@ -1211,7 +1208,6 @@ declare namespace Marionette { * initialize. */ class CollectionView, TCollection extends Backbone.Collection = Backbone.Collection> extends View { - constructor(options?: CollectionViewOptions); /** @@ -1457,7 +1453,6 @@ declare namespace Marionette { * user loads a specific endpoint directly. */ class AppRouter extends Backbone.Router { - constructor(options?: AppRouterOptions); /** @@ -1499,7 +1494,6 @@ declare namespace Marionette { * your app */ class Application extends Object { - constructor(options?: ApplicationOptions); /** @@ -1553,7 +1547,6 @@ declare namespace Marionette { * allowing you to share common user-facing operations between your views. */ class Behavior extends Object { - constructor(options?: any); options: any; diff --git a/types/backbone.marionette/tslint.json b/types/backbone.marionette/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/backbone.marionette/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 5998c2dd3d9322dadc44684ba37d656f5c9dba92 Mon Sep 17 00:00:00 2001 From: Deyan Kamburov Date: Tue, 22 Aug 2017 13:58:56 +0300 Subject: [PATCH 031/316] Fix tslint errors --- types/ignite-ui/index.d.ts | 620 ++++--------------------------------- 1 file changed, 62 insertions(+), 558 deletions(-) diff --git a/types/ignite-ui/index.d.ts b/types/ignite-ui/index.d.ts index b35e20a39b..970875a49b 100644 --- a/types/ignite-ui/index.d.ts +++ b/types/ignite-ui/index.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface DataSourceSettingsPaging { - /** * Paging is not enabled by default * @@ -58,7 +57,6 @@ interface DataSourceSettingsPaging { } interface DataSourceSettingsFiltering { - /** * Filtering type. * @@ -129,7 +127,6 @@ interface DataSourceSettingsFiltering { } interface DataSourceSettingsSorting { - /** * Sorting direction * @@ -224,7 +221,6 @@ interface DataSourceSettingsSorting { } interface DataSourceSettingsGroupby { - /** * Default collapse state * @@ -278,7 +274,6 @@ interface DataSourceSettingsGroupby { } interface DataSourceSettingsSummaries { - /** * Specifies whether summaries will be applied locally or remotely (via a remote request) * @@ -325,7 +320,6 @@ interface DataSourceSettingsSummaries { } interface DataSourceSettings { - /** * Setting this is only necessary when the data source is set to a table in string format. we need to create an invisible dummy data container in the body and append the table data to it * @@ -577,7 +571,7 @@ interface DataSourceSettings { } declare namespace Infragistics { -export class DataSource { +class DataSource { constructor(settings: DataSourceSettings); /** @@ -1053,7 +1047,7 @@ DataSource: typeof Infragistics.DataSource; } declare namespace Infragistics { -export class TypeParser { +class TypeParser { toStr(obj: Object): void; /** @@ -1071,7 +1065,6 @@ export class TypeParser { } interface DataSchemaSchemaFields { - /** * Name of the field */ @@ -1109,7 +1102,6 @@ interface DataSchemaSchemaFields { } interface DataSchemaSchema { - /** * A list of field definitions specifying the schema of the data source. Field objects description: {name, [type], [xpath]} * returnType="array" @@ -1133,7 +1125,7 @@ interface DataSchemaSchema { } declare namespace Infragistics { -export class DataSchema { +class DataSchema { constructor(schema: DataSchemaSchema); /** @@ -1169,7 +1161,7 @@ DataSchema: typeof Infragistics.DataSchema; } declare namespace Infragistics { -export class RemoteDataSource { +class RemoteDataSource { constructor(settings: DataSourceSettings); /** @@ -1647,7 +1639,6 @@ RemoteDataSource: typeof Infragistics.RemoteDataSource; } interface JSONDataSourceSettings { - /** * Type of the data source. */ @@ -1660,7 +1651,7 @@ interface JSONDataSourceSettings { } declare namespace Infragistics { -export class JSONDataSource { +class JSONDataSource { constructor(settings: JSONDataSourceSettings); /** @@ -2138,7 +2129,6 @@ JSONDataSource: typeof Infragistics.JSONDataSource; } interface RESTDataSourceSettingsRestSettingsCreate { - /** * Specifies a remote URL to which create requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -2161,7 +2151,6 @@ interface RESTDataSourceSettingsRestSettingsCreate { } interface RESTDataSourceSettingsRestSettingsUpdate { - /** * Specifies a remote URL to which update requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -2184,7 +2173,6 @@ interface RESTDataSourceSettingsRestSettingsUpdate { } interface RESTDataSourceSettingsRestSettingsRemove { - /** * Specifies a remote URL to which remove requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -2207,7 +2195,6 @@ interface RESTDataSourceSettingsRestSettingsRemove { } interface RESTDataSourceSettingsRestSettings { - /** * Settings for create requests */ @@ -2245,7 +2232,6 @@ interface RESTDataSourceSettingsRestSettings { } interface RESTDataSourceSettings { - /** * Settings related to REST compliant update routine */ @@ -2258,7 +2244,7 @@ interface RESTDataSourceSettings { } declare namespace Infragistics { -export class RESTDataSource { +class RESTDataSource { constructor(settings: RESTDataSourceSettings); /** @@ -2736,7 +2722,6 @@ RESTDataSource: typeof Infragistics.RESTDataSource; } interface JSONPDataSourceSettings { - /** * Override the callback function name in a jsonp request. Sets option jsonp in $.ajax functionbool Setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation * @@ -2760,7 +2745,7 @@ interface JSONPDataSourceSettings { } declare namespace Infragistics { -export class JSONPDataSource { +class JSONPDataSource { constructor(settings: JSONPDataSourceSettings); /** @@ -3238,7 +3223,7 @@ JSONPDataSource: typeof Infragistics.JSONPDataSource; } declare namespace Infragistics { -export class XmlDataSource { +class XmlDataSource { constructor(settings: DataSourceSettings); /** @@ -3716,7 +3701,6 @@ XmlDataSource: typeof Infragistics.XmlDataSource; } interface FunctionDataSourceSettings { - /** * Type of the data source. */ @@ -3729,7 +3713,7 @@ interface FunctionDataSourceSettings { } declare namespace Infragistics { -export class FunctionDataSource { +class FunctionDataSource { constructor(settings: FunctionDataSourceSettings); /** @@ -4207,7 +4191,6 @@ FunctionDataSource: typeof Infragistics.FunctionDataSource; } interface HtmlTableDataSourceSettings { - /** * Type of the data source. */ @@ -4220,7 +4203,7 @@ interface HtmlTableDataSourceSettings { } declare namespace Infragistics { -export class HtmlTableDataSource { +class HtmlTableDataSource { constructor(settings: HtmlTableDataSourceSettings); /** @@ -4698,7 +4681,7 @@ HtmlTableDataSource: typeof Infragistics.HtmlTableDataSource; } declare namespace Infragistics { -export class ArrayDataSource { +class ArrayDataSource { constructor(settings: DataSourceSettings); /** @@ -5176,7 +5159,6 @@ ArrayDataSource: typeof Infragistics.ArrayDataSource; } interface MashupDataSourceMashupSettings { - /** * Indicates whether to ignore records that have no corresponding data in all of the provided data sources. */ @@ -5194,7 +5176,7 @@ interface MashupDataSourceMashupSettings { } declare namespace Infragistics { -export class MashupDataSource { +class MashupDataSource { constructor(mashupSettings: MashupDataSourceMashupSettings); constructor(settings: DataSourceSettings); @@ -5656,7 +5638,6 @@ MashupDataSource: typeof Infragistics.MashupDataSource; } interface HierarchicalDataSourceSettingsPaging { - /** * Option for HierarchicalDataSourceSettingsPaging */ @@ -5664,7 +5645,6 @@ interface HierarchicalDataSourceSettingsPaging { } interface HierarchicalDataSourceSettingsSorting { - /** * Option for HierarchicalDataSourceSettingsSorting */ @@ -5672,7 +5652,6 @@ interface HierarchicalDataSourceSettingsSorting { } interface HierarchicalDataSourceSettingsFiltering { - /** * Option for HierarchicalDataSourceSettingsFiltering */ @@ -5680,7 +5659,6 @@ interface HierarchicalDataSourceSettingsFiltering { } interface HierarchicalDataSourceSettingsSchema { - /** * Option for HierarchicalDataSourceSettingsSchema */ @@ -5727,7 +5705,7 @@ interface HierarchicalDataSourceSettings { } declare namespace Infragistics { -export class HierarchicalDataSource { +class HierarchicalDataSource { constructor(settings: HierarchicalDataSourceSettings); dataBind(callback: Object, callee: Object): void; root(): void; @@ -5739,7 +5717,6 @@ HierarchicalDataSource: typeof Infragistics.HierarchicalDataSource; } interface TreeHierarchicalDataSourceSettingsTreeDSFiltering { - /** * Specifies from which data bound level to be applied filtering - 0 is the first level */ @@ -5767,7 +5744,6 @@ interface TreeHierarchicalDataSourceSettingsTreeDSFiltering { } interface TreeHierarchicalDataSourceSettingsTreeDSSorting { - /** * Specifies from which data bound level to be applied sorting - 0 is the first level */ @@ -5785,7 +5761,6 @@ interface TreeHierarchicalDataSourceSettingsTreeDSSorting { } interface TreeHierarchicalDataSourceSettingsTreeDSPaging { - /** * Sets gets paging mode. * @@ -5812,7 +5787,6 @@ interface TreeHierarchicalDataSourceSettingsTreeDSPaging { } interface TreeHierarchicalDataSourceSettingsTreeDS { - /** * Property name of the array of child data in a hierarchical data source. */ @@ -5915,7 +5889,6 @@ interface TreeHierarchicalDataSourceSettingsTreeDS { } interface TreeHierarchicalDataSourceSettings { - /** * Configure tree datasource specific settings */ @@ -5928,7 +5901,7 @@ interface TreeHierarchicalDataSourceSettings { } declare namespace Infragistics { -export class TreeHierarchicalDataSource { +class TreeHierarchicalDataSource { constructor(settings: TreeHierarchicalDataSourceSettings); /** @@ -6570,7 +6543,7 @@ TreeHierarchicalDataSource: typeof Infragistics.TreeHierarchicalDataSource; } declare namespace Infragistics { -export class DvCommonWidget { +class DvCommonWidget { option(key: Object, value: Object): void; } } @@ -6591,7 +6564,7 @@ interface SimpleTextMarkerTemplateSettings { } declare namespace Infragistics { -export class SimpleTextMarkerTemplate { +class SimpleTextMarkerTemplate { constructor(requireThis: boolean); constructor(settings: SimpleTextMarkerTemplateSettings); getText(item: Object, textDelegate: Object): void; @@ -6604,7 +6577,6 @@ SimpleTextMarkerTemplate: typeof Infragistics.SimpleTextMarkerTemplate; } interface GridExcelExporterCallbacks { - /** * Set a callback that is fired after the cell is exported. * Function takes arguments sender and args. @@ -6738,7 +6710,6 @@ interface GridExcelExporterCallbacks { } interface GridExcelExporterSettingsGridFeatureOptions { - /** * Indicates whether fixed columns will be applied in the exported table. This is set to none by default, but will change to applied if column fixing feature is defined in the igGrid. * @@ -6808,7 +6779,6 @@ interface GridExcelExporterSettingsGridFeatureOptions { } interface GridExcelExporterSettings { - /** * List of strings containing the keys for the columns that will not be exported. * @@ -6875,7 +6845,7 @@ interface GridExcelExporterSettings { } declare namespace Infragistics { -export class GridExcelExporter { +class GridExcelExporter { constructor(callbacks: GridExcelExporterCallbacks); constructor(settings: GridExcelExporterSettings); @@ -6894,7 +6864,6 @@ GridExcelExporter: typeof Infragistics.GridExcelExporter; } interface OlapXmlaDataSourceOptionsRequestOptions { - /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -6914,7 +6883,6 @@ interface OlapXmlaDataSourceOptionsRequestOptions { } interface OlapXmlaDataSourceOptionsMdxSettings { - /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -6952,7 +6920,6 @@ interface OlapXmlaDataSourceOptionsMdxSettings { } interface OlapXmlaDataSourceOptions { - /** * Optional="false" The URL of the XMLA server. */ @@ -7027,7 +6994,7 @@ interface OlapXmlaDataSourceOptions { } declare namespace Infragistics { -export class OlapXmlaDataSource { +class OlapXmlaDataSource { constructor(options: OlapXmlaDataSourceOptions); /** @@ -7342,7 +7309,6 @@ OlapXmlaDataSource: typeof Infragistics.OlapXmlaDataSource; } interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimensionMeasure { - /** * Optional="false" A unique name for the measure. */ @@ -7371,7 +7337,6 @@ interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimensionMeasure { } interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimension { - /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -7397,7 +7362,6 @@ interface OlapFlatDataSourceOptionsMetadataCubeMeasuresDimension { } interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchieLevel { - /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -7423,7 +7387,6 @@ interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchieLevel { } interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchie { - /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -7455,7 +7418,6 @@ interface OlapFlatDataSourceOptionsMetadataCubeDimensionHierarchie { } interface OlapFlatDataSourceOptionsMetadataCubeDimension { - /** * Optional="false" A unique name for the dimension. */ @@ -7478,7 +7440,6 @@ interface OlapFlatDataSourceOptionsMetadataCubeDimension { } interface OlapFlatDataSourceOptionsMetadataCube { - /** * Optional="false" A unique name for the cube. */ @@ -7506,7 +7467,6 @@ interface OlapFlatDataSourceOptionsMetadataCube { } interface OlapFlatDataSourceOptionsMetadata { - /** * Optional="false" Metadata used for the creation of the cube. */ @@ -7519,7 +7479,6 @@ interface OlapFlatDataSourceOptionsMetadata { } interface OlapFlatDataSourceOptions { - /** * Optional="true" Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -7577,7 +7536,7 @@ interface OlapFlatDataSourceOptions { } declare namespace Infragistics { -export class OlapFlatDataSource { +class OlapFlatDataSource { constructor(options: OlapFlatDataSourceOptions); /** @@ -7856,8 +7815,7 @@ OlapFlatDataSource: typeof Infragistics.OlapFlatDataSource; } declare namespace Infragistics { -export class OlapMetadataTreeItem { - +class OlapMetadataTreeItem { /** * Returns the OLAP metadata item that this tree item represents which is an object of type $.ig.Cube, $.ig.Dimension, $.ig.Hierarchy, $.ig.Measure, $.ig.Level. */ @@ -7917,7 +7875,6 @@ export class OlapMetadataTreeItem { } interface OlapResultViewOptions { - /** * Optional="false" an object of type $.ig.OlapResult which represents the full cached result. */ @@ -7945,7 +7902,7 @@ interface OlapResultViewOptions { } declare namespace Infragistics { -export class OlapResultView { +class OlapResultView { constructor(options: OlapResultViewOptions); /** @@ -7980,7 +7937,6 @@ OlapResultView: typeof Infragistics.OlapResultView; } interface OlapTableViewOptionsViewSettings { - /** * Optional="false" a value indicating whether parent for columns is in front of its children. * If set to true the query set sorts members in a level in their natural order. Their natural order is the default ordering of the members along the hierarchy when no other sort conditions are specified. @@ -8014,7 +7970,6 @@ interface OlapTableViewOptionsViewSettings { } interface OlapTableViewOptions { - /** * Optional="false" an object of type $.ig.OlapResult. */ @@ -8042,7 +7997,7 @@ interface OlapTableViewOptions { } declare namespace Infragistics { -export class OlapTableView { +class OlapTableView { constructor(options: OlapTableViewOptions); /** @@ -8121,8 +8076,7 @@ OlapTableView: typeof Infragistics.OlapTableView; } declare namespace Infragistics { -export class OlapTableViewHeaderCell { - +class OlapTableViewHeaderCell { /** * Returns the caption for the header cell. */ @@ -8176,8 +8130,7 @@ export class OlapTableViewHeaderCell { } declare namespace Infragistics { -export class OlapTableViewResultCell { - +class OlapTableViewResultCell { /** * Returns the value provided by $.ig.Cell object. */ @@ -8201,8 +8154,7 @@ export class OlapTableViewResultCell { } declare namespace Infragistics { -export class Catalog { - +class Catalog { /** * Returns the name of the catalog. * @@ -8234,8 +8186,7 @@ export class Catalog { } declare namespace Infragistics { -export class Cube { - +class Cube { /** * Returns the name of the cube. * @@ -8292,8 +8243,7 @@ export class Cube { } declare namespace Infragistics { -export class Dimension { - +class Dimension { /** * Returns the name of the dimension. * @@ -8350,8 +8300,7 @@ export class Dimension { } declare namespace Infragistics { -export class Hierarchy { - +class Hierarchy { /** * Returns the name of the hierarchy. * @@ -8428,8 +8377,7 @@ export class Hierarchy { } declare namespace Infragistics { -export class Measure { - +class Measure { /** * Returns the name of the measure. * @@ -8535,8 +8483,7 @@ export class Measure { } declare namespace Infragistics { -export class Level { - +class Level { /** * Returns the name of the level. * @@ -8610,8 +8557,7 @@ export class Level { } declare namespace Infragistics { -export class MeasureGroup { - +class MeasureGroup { /** * Returns the name of the measure group. * @@ -8650,8 +8596,7 @@ export class MeasureGroup { } declare namespace Infragistics { -export class MeasureList { - +class MeasureList { /** * Returns the caption of the measure list used when displaying the name of the measure list to the user. * @@ -8669,8 +8614,7 @@ export class MeasureList { } declare namespace Infragistics { -export class OlapResult { - +class OlapResult { /** * Returns a value indicating whether the result object contains any data. * @@ -8695,7 +8639,6 @@ export class OlapResult { } interface OlapResultAxisOptions { - /** * Optional="false" array of $.ig.OlapResultTuple objects which form the axis. */ @@ -8713,7 +8656,7 @@ interface OlapResultAxisOptions { } declare namespace Infragistics { -export class OlapResultAxis { +class OlapResultAxis { constructor(options: OlapResultAxisOptions); /** @@ -8732,7 +8675,6 @@ OlapResultAxis: typeof Infragistics.OlapResultAxis; } interface OlapResultTupleOptions { - /** * Optional="false" array of $.ig.OlapResultAxisMember objects which form the tuple object. */ @@ -8745,7 +8687,7 @@ interface OlapResultTupleOptions { } declare namespace Infragistics { -export class OlapResultTuple { +class OlapResultTuple { constructor(options: OlapResultTupleOptions); /** @@ -8759,8 +8701,7 @@ OlapResultTuple: typeof Infragistics.OlapResultTuple; } declare namespace Infragistics { -export class OlapResultAxisMember { - +class OlapResultAxisMember { /** * Returns the unique name of the axis member. * @@ -8834,8 +8775,7 @@ export class OlapResultAxisMember { } declare namespace Infragistics { -export class OlapResultCell { - +class OlapResultCell { /** * Returns the position of the cell when cells are iterated row by row. * @@ -8853,7 +8793,6 @@ export class OlapResultCell { } interface IgTemplatingRegExp { - /** * Option for IgTemplatingRegExp */ @@ -8861,7 +8800,7 @@ interface IgTemplatingRegExp { } declare namespace Infragistics { -export class igTemplating { +class igTemplating { constructor(regExp: IgTemplatingRegExp); /** @@ -8891,7 +8830,6 @@ interface ErrorMessageDisplayingEvent { } interface ErrorMessageDisplayingEventUIParam { - /** * Used to obtain reference to the barcode widget. */ @@ -8908,7 +8846,6 @@ interface DataChangedEvent { } interface DataChangedEventUIParam { - /** * Used to obtain reference to the barcode widget. */ @@ -8921,7 +8858,6 @@ interface DataChangedEventUIParam { } interface IgQRCodeBarcode { - /** * The width of the barcode. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -9126,7 +9062,6 @@ interface IgQRCodeBarcode { [optionName: string]: any; } interface IgQRCodeBarcodeMethods { - /** * Returns information about how the barcode is rendered. */ @@ -9459,7 +9394,6 @@ interface DataBindingEvent { } interface DataBindingEventUIParam { - /** * Used to obtain reference to chart widget. */ @@ -9476,7 +9410,6 @@ interface DataBoundEvent { } interface DataBoundEventUIParam { - /** * Used to obtain reference to chart widget. */ @@ -9498,7 +9431,6 @@ interface UpdateTooltipEvent { } interface UpdateTooltipEventUIParam { - /** * Used to obtain reference to chart widget. */ @@ -9535,7 +9467,6 @@ interface HideTooltipEvent { } interface HideTooltipEventUIParam { - /** * Used to obtain reference to chart widget. */ @@ -9553,7 +9484,6 @@ interface HideTooltipEventUIParam { } interface IgBaseChart { - /** * The width of the chart. */ @@ -9649,7 +9579,6 @@ interface IgBaseChart { [optionName: string]: any; } interface IgBaseChartMethods { - /** * Find index of item within actual data used by chart. * @@ -9988,7 +9917,6 @@ interface JQuery { igBaseChart(methodName: string, ...methodParams: any[]): any; } interface IgBulletGraphRange { - /** * Gets or sets the name of the range. */ @@ -10054,7 +9982,6 @@ interface FormatLabelEvent { } interface FormatLabelEventUIParam { - /** * Used to obtain reference to the bullet graph widget. */ @@ -10086,7 +10013,6 @@ interface AlignLabelEvent { } interface AlignLabelEventUIParam { - /** * Used to obtain reference to gauge widget. */ @@ -10134,7 +10060,6 @@ interface AlignLabelEventUIParam { } interface IgBulletGraph { - /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -10494,7 +10419,6 @@ interface IgBulletGraph { [optionName: string]: any; } interface IgBulletGraphMethods { - /** * Returns a string containing the names of all the ranges delimited with a \n symbol. */ @@ -11392,7 +11316,6 @@ interface PropertyChangedEventUIParam { } interface IgCategoryChart { - /** * Gets or sets the data value corresponding to the minimum value of the Y-axis. */ @@ -14231,7 +14154,6 @@ interface JQuery { igCategoryChart(methodName: string, ...methodParams: any[]): any; } interface IgDataChartCrosshairPoint { - /** * The x coordinate. */ @@ -14249,7 +14171,6 @@ interface IgDataChartCrosshairPoint { } interface IgDataChartLegend { - /** * The name of the element to turn into a legend. */ @@ -14288,7 +14209,6 @@ interface IgDataChartLegend { } interface IgDataChartAxes { - /** * Type of the axis. * @@ -14691,7 +14611,6 @@ interface IgDataChartAxes { } interface IgDataChartSeriesLegend { - /** * The name of the element to turn into a legend. */ @@ -14730,7 +14649,6 @@ interface IgDataChartSeriesLegend { } interface IgDataChartSeries { - /** * Type of the series. * @@ -15457,7 +15375,6 @@ interface TooltipShowingEvent { } interface TooltipShowingEventUIParam { - /** * Used to get reference to tooltip DOM element. */ @@ -15494,7 +15411,6 @@ interface TooltipShownEvent { } interface TooltipShownEventUIParam { - /** * Used to get reference to tooltip DOM element. */ @@ -15531,7 +15447,6 @@ interface TooltipHidingEvent { } interface TooltipHidingEventUIParam { - /** * Used to get reference to tooltip DOM element. */ @@ -15568,7 +15483,6 @@ interface TooltipHiddenEvent { } interface TooltipHiddenEventUIParam { - /** * Used to get reference to tooltip DOM element. */ @@ -15612,7 +15526,6 @@ interface SeriesCursorMouseMoveEvent { } interface SeriesCursorMouseMoveEventUIParam { - /** * Used to get reference to current series item object. */ @@ -15654,7 +15567,6 @@ interface SeriesMouseLeftButtonDownEvent { } interface SeriesMouseLeftButtonDownEventUIParam { - /** * Used to get reference to current series item object. */ @@ -15696,7 +15608,6 @@ interface SeriesMouseLeftButtonUpEvent { } interface SeriesMouseLeftButtonUpEventUIParam { - /** * Used to get reference to current series item object. */ @@ -15738,7 +15649,6 @@ interface SeriesMouseMoveEvent { } interface SeriesMouseMoveEventUIParam { - /** * Used to get reference to current series item object. */ @@ -15780,7 +15690,6 @@ interface SeriesMouseEnterEvent { } interface SeriesMouseEnterEventUIParam { - /** * Used to get reference to current series item object. */ @@ -15822,7 +15731,6 @@ interface SeriesMouseLeaveEvent { } interface SeriesMouseLeaveEventUIParam { - /** * Used to get reference to current series item object. */ @@ -15864,7 +15772,6 @@ interface WindowRectChangedEvent { } interface WindowRectChangedEventUIParam { - /** * Used to get reference to chart object. */ @@ -15916,7 +15823,6 @@ interface GridAreaRectChangedEvent { } interface GridAreaRectChangedEventUIParam { - /** * Used to get reference to chart object. */ @@ -15968,7 +15874,6 @@ interface RefreshCompletedEvent { } interface RefreshCompletedEventUIParam { - /** * Used to get reference to chart object. */ @@ -15980,7 +15885,6 @@ interface AxisRangeChangedEvent { } interface AxisRangeChangedEventUIParam { - /** * Used to get reference to current chart axis object. */ @@ -16017,7 +15921,6 @@ interface TypicalBasedOnEvent { } interface TypicalBasedOnEventUIParam { - /** * Used to get reference to chart object. */ @@ -16059,7 +15962,6 @@ interface ProgressiveLoadStatusChangedEvent { } interface ProgressiveLoadStatusChangedEventUIParam { - /** * Used to get reference to chart object. */ @@ -16081,7 +15983,6 @@ interface AssigningCategoryStyleEvent { } interface AssigningCategoryStyleEventUIParam { - /** * Used to get reference to chart object. */ @@ -16150,7 +16051,6 @@ interface AssigningCategoryMarkerStyleEvent { } interface AssigningCategoryMarkerStyleEventUIParam { - /** * Used to get reference to chart object. */ @@ -16215,7 +16115,6 @@ interface AssigningCategoryMarkerStyleEventUIParam { } interface IgDataChart { - /** * Gets or sets whether the series viewer can allow the page to pan if a control pan is not possible in the requested direction. */ @@ -17412,7 +17311,6 @@ interface JQuery { } interface IgPieChartLegend { - /** * The name of the element to turn into a legend. */ @@ -17448,7 +17346,6 @@ interface SliceClickEvent { } interface SliceClickEventUIParam { - /** * Used to get reference to chart object. */ @@ -17465,7 +17362,6 @@ interface LabelClickEvent { } interface LabelClickEventUIParam { - /** * Used to get reference to the slice object. */ @@ -17482,7 +17378,6 @@ interface SelectedItemChangingEvent { } interface SelectedItemChangingEventUIParam { - /** * Used to get a reference to the current selected data item. */ @@ -17504,7 +17399,6 @@ interface SelectedItemChangedEvent { } interface SelectedItemChangedEventUIParam { - /** * Used to get a reference to the previous selected data item. */ @@ -17521,7 +17415,6 @@ interface SelectedItemsChangingEvent { } interface SelectedItemsChangingEventUIParam { - /** * Used to get a reference to the current selected data items. */ @@ -17543,7 +17436,6 @@ interface SelectedItemsChangedEvent { } interface SelectedItemsChangedEventUIParam { - /** * Used to get a reference to the previous selected data items. */ @@ -17556,7 +17448,6 @@ interface SelectedItemsChangedEventUIParam { } interface IgPieChart { - /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -20493,7 +20384,6 @@ interface LegendItemMouseLeftButtonDownEvent { } interface LegendItemMouseLeftButtonDownEventUIParam { - /** * Used to get reference to current legend object. */ @@ -20530,7 +20420,6 @@ interface LegendItemMouseLeftButtonUpEvent { } interface LegendItemMouseLeftButtonUpEventUIParam { - /** * Used to get reference to current legend object. */ @@ -20567,7 +20456,6 @@ interface LegendItemMouseEnterEvent { } interface LegendItemMouseEnterEventUIParam { - /** * Used to get reference to current legend object. */ @@ -20604,7 +20492,6 @@ interface LegendItemMouseLeaveEvent { } interface LegendItemMouseLeaveEventUIParam { - /** * Used to get reference to current legend object. */ @@ -20637,7 +20524,6 @@ interface LegendItemMouseLeaveEventUIParam { } interface IgChartLegend { - /** * Type of the legend. * @@ -20906,7 +20792,6 @@ interface ColorSelectedEvent { } interface ColorSelectedEventUIParam { - /** * Used to get a reference to the color object. */ @@ -20914,7 +20799,6 @@ interface ColorSelectedEventUIParam { } interface IgColorPicker { - /** * Gets/Sets the default colors. Default colors are the ones displayed in the upper table of the color picker. * The array should contain arrays that contain the color values for every next row. @@ -20943,7 +20827,6 @@ interface IgColorPicker { [optionName: string]: any; } interface IgColorPickerMethods { - /** * Gets a reference to the div element of the color table */ @@ -21051,7 +20934,6 @@ interface ClickEvent { } interface ClickEventUIParam { - /** * Used to get a reference the igSplitButton element. */ @@ -21063,7 +20945,6 @@ interface ExpandedEvent { } interface ExpandedEventUIParam { - /** * Used to get a reference the igSplitButton. */ @@ -21075,7 +20956,6 @@ interface ExpandingEvent { } interface ExpandingEventUIParam { - /** * Used to get a reference the igSplitButton. */ @@ -21087,7 +20967,6 @@ interface CollapsedEvent { } interface CollapsedEventUIParam { - /** * Used to get a reference the igSplitButton. */ @@ -21099,7 +20978,6 @@ interface CollapsingEvent { } interface CollapsingEventUIParam { - /** * Used to get a reference the igSplitButton. */ @@ -21107,7 +20985,6 @@ interface CollapsingEventUIParam { } interface IgColorPickerSplitButton { - /** * Button items. * @@ -21184,7 +21061,6 @@ interface IgColorPickerSplitButton { [optionName: string]: any; } interface IgColorPickerSplitButtonMethods { - /** * Sets the color of the split button * @@ -21405,7 +21281,6 @@ interface JQuery { igColorPickerSplitButton(methodName: string, ...methodParams: any[]): any; } interface IgComboLoadOnDemandSettings { - /** * Gets/Sets option to enable load on demand. * @@ -21425,7 +21300,6 @@ interface IgComboLoadOnDemandSettings { } interface IgComboMultiSelection { - /** * Set enabled to true to turn multi selection on. Set to true by default when target element for the combo is a select with the multiple attribute set. * @@ -21457,7 +21331,6 @@ interface IgComboMultiSelection { } interface IgComboGrouping { - /** * Gets/Sets name of column by which the records will be grouped. Setting this option enables the grouping. * @@ -21481,7 +21354,6 @@ interface IgComboGrouping { } interface IgComboInitialSelectedItem { - /** * Optional="true" Index of item in the list. The index should be greater than -1 and less than the count of the [items](ui.igcombo#methods:items) in the list (rows in dataSource). * @@ -21505,7 +21377,6 @@ interface RenderedEvent { } interface RenderedEventUIParam { - /** * Used to get a reference to the combo performing rendering. */ @@ -21522,7 +21393,6 @@ interface FilteringEvent { } interface FilteringEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21539,7 +21409,6 @@ interface FilteredEvent { } interface FilteredEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21556,7 +21425,6 @@ interface ItemsRenderingEvent { } interface ItemsRenderingEventUIParam { - /** * Used to get a reference to the combo performing rendering. */ @@ -21573,7 +21441,6 @@ interface ItemsRenderedEvent { } interface ItemsRenderedEventUIParam { - /** * Used to get a reference to the combo performing rendering. */ @@ -21590,7 +21457,6 @@ interface DropDownOpeningEvent { } interface DropDownOpeningEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21607,7 +21473,6 @@ interface DropDownOpenedEvent { } interface DropDownOpenedEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21624,7 +21489,6 @@ interface DropDownClosingEvent { } interface DropDownClosingEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21641,7 +21505,6 @@ interface DropDownClosedEvent { } interface DropDownClosedEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21658,7 +21521,6 @@ interface SelectionChangingEvent { } interface SelectionChangingEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21680,7 +21542,6 @@ interface SelectionChangedEvent { } interface SelectionChangedEventUIParam { - /** * Used to obtain reference to igCombo. */ @@ -21698,7 +21559,6 @@ interface SelectionChangedEventUIParam { } interface IgCombo { - /** * Gets/Sets the width of combo. The numeric and string values (valid html units for size) are supported. It includes %, px, em and other units. * @@ -22228,7 +22088,6 @@ interface IgCombo { [optionName: string]: any; } interface IgComboMethods { - /** * Performs databinding on the combo box. The [databinding](ui.igcombo#events:dataBinding) and [dataBound](ui.igcombo#events:dataBound) events are always raised. */ @@ -23674,7 +23533,6 @@ interface StateChangingEvent { } interface StateChangingEventUIParam { - /** * Used to obtain a reference to the igDialog. */ @@ -23706,7 +23564,6 @@ interface StateChangedEvent { } interface StateChangedEventUIParam { - /** * Used to obtain a reference to the igDialog. */ @@ -23738,7 +23595,6 @@ interface AnimationEndedEvent { } interface AnimationEndedEventUIParam { - /** * Used to obtain a reference to the igDialog. */ @@ -23755,7 +23611,6 @@ interface FocusEvent { } interface FocusEventUIParam { - /** * Used to obtain a reference to the igDialog. */ @@ -23767,7 +23622,6 @@ interface BlurEvent { } interface BlurEventUIParam { - /** * Used to obtain a reference to the igDialog. */ @@ -23775,7 +23629,6 @@ interface BlurEventUIParam { } interface IgDialog { - /** * Gets the jquery DIV object which is used as the main container for the dialog. * Notes: @@ -24126,7 +23979,6 @@ interface IgDialog { [optionName: string]: any; } interface IgDialogMethods { - /** * Destroys the igDialog and moves the target element to its original parent. */ @@ -25013,7 +24865,6 @@ interface JQuery { igDialog(methodName: string, ...methodParams: any[]): any; } interface IgDoughnutChartSeries { - /** * Gets or sets the current series type. * @@ -25179,7 +25030,6 @@ interface HoleDimensionsChangedEventUIParam { } interface IgDoughnutChart { - /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -25368,7 +25218,6 @@ interface IgDoughnutChart { [optionName: string]: any; } interface IgDoughnutChartMethods { - /** * Adds a new series to the doughnut chart. * @@ -25967,7 +25816,6 @@ interface RenderingEvent { } interface RenderingEventUIParam { - /** * Used to get a reference to the editor performing rendering. */ @@ -25984,7 +25832,6 @@ interface MousedownEvent { } interface MousedownEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26006,7 +25853,6 @@ interface MouseupEvent { } interface MouseupEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26028,7 +25874,6 @@ interface MousemoveEvent { } interface MousemoveEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26050,7 +25895,6 @@ interface MouseoverEvent { } interface MouseoverEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26072,7 +25916,6 @@ interface MouseoutEvent { } interface MouseoutEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26094,7 +25937,6 @@ interface KeydownEvent { } interface KeydownEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26111,7 +25953,6 @@ interface KeypressEvent { } interface KeypressEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26128,7 +25969,6 @@ interface KeyupEvent { } interface KeyupEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26145,7 +25985,6 @@ interface ValueChangingEvent { } interface ValueChangingEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26172,7 +26011,6 @@ interface ValueChangedEvent { } interface ValueChangedEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26195,7 +26033,6 @@ interface ValueChangedEventUIParam { } interface IgBaseEditor { - /** * Gets/Sets the width of the control. * @@ -26401,7 +26238,6 @@ interface IgBaseEditor { [optionName: string]: any; } interface IgBaseEditorMethods { - /** * Gets/Sets name attribute applied to the editor element. * @@ -26471,7 +26307,6 @@ interface DropDownListOpeningEvent { } interface DropDownListOpeningEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26493,7 +26328,6 @@ interface DropDownListOpenedEvent { } interface DropDownListOpenedEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26515,7 +26349,6 @@ interface DropDownListClosingEvent { } interface DropDownListClosingEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26537,7 +26370,6 @@ interface DropDownListClosedEvent { } interface DropDownListClosedEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26559,7 +26391,6 @@ interface DropDownItemSelectingEvent { } interface DropDownItemSelectingEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26586,7 +26417,6 @@ interface DropDownItemSelectedEvent { } interface DropDownItemSelectedEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26613,7 +26443,6 @@ interface TextChangedEvent { } interface TextChangedEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -26631,7 +26460,6 @@ interface TextChangedEventUIParam { } interface IgTextEditor { - /** * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * @@ -27092,7 +26920,6 @@ interface IgTextEditor { [optionName: string]: any; } interface IgTextEditorMethods { - /** * Gets the visible text in the editor. */ @@ -27264,7 +27091,6 @@ interface JQuery { } interface IgNumericEditor { - /** * Gets/Sets list of items which are used as a source for the drop-down list. * Items in the list can be of type number. @@ -27716,7 +27542,6 @@ interface IgNumericEditor { [optionName: string]: any; } interface IgNumericEditorMethods { - /** * Gets/Sets editor value. * @@ -27841,7 +27666,6 @@ interface JQuery { } interface IgCurrencyEditor { - /** * Gets/Sets the string, which is used as positive pattern. The "n" flag represents the value of number. * Note: This option has priority over possible regional settings. @@ -28241,7 +28065,6 @@ interface IgCurrencyEditor { [optionName: string]: any; } interface IgCurrencyEditorMethods { - /** * Gets/sets a string that is used as the currency symbol shown with the number in the input. The value provided as a param is propagated to the currencySymbol option and thus has the same priority as the option. * @@ -28300,7 +28123,6 @@ interface JQuery { } interface IgPercentEditor { - /** * Gets/Sets the pattern for positive numeric values, which is used in display (no focus) state. * If you use the "en-US" culture the default value for "positivePattern" will be "n$" where the "$" flag represents the "numericSymbol" and the "n" flag represents the value of the number. @@ -28711,7 +28533,6 @@ interface IgPercentEditor { [optionName: string]: any; } interface IgPercentEditorMethods { - /** * Paste text at location of the caret or over the current selection. Best used during editing, as the method will instead set the text as value (modified by the [displayFactor](ui.igpercenteditor#options:displayFactor)) if the editor is not focused. * Note: the method raises the [textChanged](ui.igpercenteditor#events:textChanged) event. @@ -28778,7 +28599,6 @@ interface JQuery { } interface IgMaskEditor { - /** * Gets custom regional settings for editor. If it is string, then $.ig.regional[stringValue] is assumed. * @@ -29088,7 +28908,6 @@ interface IgMaskEditor { [optionName: string]: any; } interface IgMaskEditorMethods { - /** * Gets/Sets mask editor value. * @@ -29159,7 +28978,6 @@ interface JQuery { } interface IgDateEditor { - /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. @@ -29593,7 +29411,6 @@ interface IgDateEditor { [optionName: string]: any; } interface IgDateEditorMethods { - /** * Gets/Sets editor value. * @@ -29663,7 +29480,6 @@ interface ItemSelectedEvent { } interface ItemSelectedEventUIParam { - /** * Used to obtain reference to igEditor. */ @@ -29686,7 +29502,6 @@ interface ItemSelectedEventUIParam { } interface IgDatePicker { - /** * Gets/Sets the custom regional settings for the editor. If it is a string, then $.ig.regional[stringValue] is assumed. * @@ -30151,7 +29966,6 @@ interface IgDatePicker { [optionName: string]: any; } interface IgDatePickerMethods { - /** * Returns a reference to the jQuery calendar used as a picker selector */ @@ -30243,7 +30057,6 @@ interface JQuery { } interface IgCheckboxEditor { - /** * Gets/Sets whether the checkbox is checked. * @@ -30467,7 +30280,6 @@ interface IgCheckboxEditor { [optionName: string]: any; } interface IgCheckboxEditorMethods { - /** * Checks if the value in the editor is valid. Note: This function will not trigger automatic notifications. */ @@ -37688,7 +37500,6 @@ interface SliceClickedEvent { } interface SliceClickedEventUIParam { - /** * Used to obtain reference to igFunnelChart. */ @@ -37711,7 +37522,6 @@ interface SliceClickedEventUIParam { } interface IgFunnelChart { - /** * Gets or sets values for upper and lower bezier points. That option has effect only when useBezierCurve is enabled. * Value should provide 4 numeric values in range from 0 to 1 separated by space character. @@ -38010,7 +37820,6 @@ interface IgFunnelChart { [optionName: string]: any; } interface IgFunnelChartMethods { - /** * Gets array of selected slice items. * @@ -38841,7 +38650,6 @@ interface RowsRequestedEventUIParam { } interface IgGridAppendRowsOnDemand { - /** * Defines local or remote type of appending rows on demand in igGrid * @@ -38921,7 +38729,6 @@ interface IgGridAppendRowsOnDemand { [optionName: string]: any; } interface IgGridAppendRowsOnDemandMethods { - /** * Destroys the append rows on demand widget */ @@ -39112,7 +38919,6 @@ interface CellsMergedEventUIParam { } interface IgGridCellMerging { - /** * controls the initial state * @@ -39201,7 +39007,6 @@ interface JQuery { igGridCellMerging(methodName: string, ...methodParams: any[]): any; } interface IgGridColumnFixingColumnSetting { - /** * Identifies the grid column by key. Either key or index must be set in every column setting. * @@ -39275,7 +39080,6 @@ interface ColumnUnfixingRefusedEventUIParam { } interface IgGridColumnFixing { - /** * Specifies the tooltip text on the column fixing header icon when column is not fixed. * @@ -39391,7 +39195,6 @@ interface IgGridColumnFixing { [optionName: string]: any; } interface IgGridColumnFixingMethods { - /** * Unfixes a column by specified column identifier - column key or column index. * @@ -39756,7 +39559,6 @@ interface JQuery { igGridColumnFixing(methodName: string, ...methodParams: any[]): any; } interface IgGridColumnMovingColumnSetting { - /** * Column key. This is a required property in every column setting if columnIndex is not set. * @@ -39894,7 +39696,6 @@ interface MovingDialogDragColumnMovedEventUIParam { } interface IgGridColumnMoving { - /** * A list of column settings that specifies moving options on a per column basis. * @@ -40161,7 +39962,6 @@ interface IgGridColumnMoving { [optionName: string]: any; } interface IgGridColumnMovingMethods { - /** * Restoring overwritten functions */ @@ -40785,7 +40585,6 @@ interface JQuery { igGridColumnMoving(methodName: string, ...methodParams: any[]): any; } interface IgPopoverHeaderTemplate { - /** * Controls whether the popover renders a functional close button */ @@ -41478,7 +41277,6 @@ interface JQuery { igGridFeatureChooser(methodName: string, ...methodParams: any[]): any; } interface IgGridFilteringColumnSettingDefaultExpressions { - /** * Option for IgGridFilteringColumnSettingDefaultExpressions */ @@ -41486,7 +41284,6 @@ interface IgGridFilteringColumnSettingDefaultExpressions { } interface IgGridFilteringColumnSetting { - /** * Identifies the grid column by key. Either key or index must be set in every column setting. * @@ -41739,7 +41536,6 @@ interface FilterDialogFilteringEventUIParam { } interface IgGridFiltering { - /** * Enables or disables the filtering case sensitivity. Works only for local filtering. If true, it case sensitive filtering is performed. If false, filtering is case insensitive. * @@ -42151,7 +41947,6 @@ interface IgGridFiltering { [optionName: string]: any; } interface IgGridFilteringMethods { - /** * Destroys the filtering widget - remove fitler row, unbinds events, returns the grid to its previous state. */ @@ -43016,7 +42811,6 @@ interface JQuery { igGridFiltering(methodName: string, ...methodParams: any[]): any; } interface IgGridColumnGroupOptions { - /** * Sets whether the group is expanded or collapsed. Applied only if the allowGroupCollapsing is set to true. * @@ -43048,7 +42842,6 @@ interface IgGridColumnGroupOptions { } interface IgGridColumn { - /** * Header text for the specified column. * @@ -43221,7 +43014,6 @@ interface IgGridColumn { } interface IgGridFeature { - /** * Name of the feature to be enabled. */ @@ -43234,7 +43026,6 @@ interface IgGridFeature { } interface IgGridRestSettingsCreate { - /** * Specifies a remote URL to which create requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. * @@ -43260,7 +43051,6 @@ interface IgGridRestSettingsCreate { } interface IgGridRestSettingsUpdate { - /** * Specifies a remote URL to which update requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -43283,7 +43073,6 @@ interface IgGridRestSettingsUpdate { } interface IgGridRestSettingsRemove { - /** * Specifies a remote URL to which remove requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -43306,7 +43095,6 @@ interface IgGridRestSettingsRemove { } interface IgGridRestSettings { - /** * Settings for create requests * @@ -43347,7 +43135,6 @@ interface IgGridRestSettings { } interface IgGridScrollSettings { - /** * Sets gets current vertical position. * @@ -43529,7 +43316,6 @@ interface DestroyedEventUIParam { } interface IgGrid { - /** * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * @@ -44000,7 +43786,6 @@ interface IgGrid { [optionName: string]: any; } interface IgGridMethods { - /** * Returns the element holding the data records */ @@ -45527,7 +45312,6 @@ interface JQuery { igGrid(methodName: string, ...methodParams: any[]): any; } interface IgGridGroupByGroupedColumn { - /** * Key of the column that's grouped */ @@ -45558,7 +45342,6 @@ interface IgGridGroupByGroupedColumn { } interface IgGridGroupBySummarySettings { - /** * Specifies the delimiter for multiple summaries. * @@ -45578,7 +45361,6 @@ interface IgGridGroupBySummarySettings { } interface IgGridGroupByColumnSettingsSummaries { - /** * the summary function key * @@ -45621,7 +45403,6 @@ interface IgGridGroupByColumnSettingsSummaries { } interface IgGridGroupByColumnSettings { - /** * Enables/disables grouping a column from the UI. By default all columns can be grouped. * @@ -45804,7 +45585,6 @@ interface ModalDialogSortGroupedColumnEventUIParam { } interface IgGridGroupBy { - /** * Sets the place in the grid where the GroupBy area will be * @@ -46208,7 +45988,6 @@ interface IgGridGroupBy { [optionName: string]: any; } interface IgGridGroupByMethods { - /** * Open groupby modal dialog */ @@ -47175,7 +46954,6 @@ interface JQuery { igGridGroupBy(methodName: string, ...methodParams: any[]): any; } interface IgGridHidingColumnSetting { - /** * Column key. this is a required property in every column setting if columnIndex is not set. * @@ -47319,7 +47097,6 @@ interface ColumnChooserButtonResetClickEventUIParam { } interface IgGridHiding { - /** * A list of column settings that specifies hiding options on a per column basis. * @@ -47522,7 +47299,6 @@ interface IgGridHiding { [optionName: string]: any; } interface IgGridHidingMethods { - /** * Destroys the hiding widget */ @@ -48081,7 +47857,6 @@ interface JQuery { igGridHiding(methodName: string, ...methodParams: any[]): any; } interface IgHierarchicalGridColumnLayout { - /** * Specifies the columnLayout key. This is the property that holds the data records for the current column layout. */ @@ -48104,7 +47879,6 @@ interface IgHierarchicalGridColumnLayout { } interface IgHierarchicalGridColumnGroupOptions { - /** * Sets whether the group is expanded or collapsed. Applied only if the allowGroupCollapsing is set to true. * @@ -48136,7 +47910,6 @@ interface IgHierarchicalGridColumnGroupOptions { } interface IgHierarchicalGridColumn { - /** * Header text for the specified column. * @@ -48309,7 +48082,6 @@ interface IgHierarchicalGridColumn { } interface IgHierarchicalGridFeature { - /** * Name of the feature to be enabled. */ @@ -48322,7 +48094,6 @@ interface IgHierarchicalGridFeature { } interface IgHierarchicalGridRestSettingsCreate { - /** * Specifies a remote URL to which create requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. * @@ -48348,7 +48119,6 @@ interface IgHierarchicalGridRestSettingsCreate { } interface IgHierarchicalGridRestSettingsUpdate { - /** * Specifies a remote URL to which update requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -48371,7 +48141,6 @@ interface IgHierarchicalGridRestSettingsUpdate { } interface IgHierarchicalGridRestSettingsRemove { - /** * Specifies a remote URL to which remove requests will be sent. This will be used for both batch and non-batch, however if template is also set, this URL will only be used for batch requests. */ @@ -48394,7 +48163,6 @@ interface IgHierarchicalGridRestSettingsRemove { } interface IgHierarchicalGridRestSettings { - /** * Settings for create requests * @@ -48435,7 +48203,6 @@ interface IgHierarchicalGridRestSettings { } interface IgHierarchicalGridScrollSettings { - /** * Sets gets current vertical position. * @@ -48554,7 +48321,6 @@ interface ChildGridCreatedEventUIParam { } interface IgHierarchicalGrid { - /** * Only the first level will be data-bound initially. Also serves as "render" depth, meaning that depending on this prop, the grid will * @@ -49151,7 +48917,6 @@ interface IgHierarchicalGrid { [optionName: string]: any; } interface IgHierarchicalGridMethods { - /** * Data binds the hierarchical grid. No child grids will be created or rendered by default, unless there is initialExpandDepth >= 0 set. */ @@ -50585,7 +50350,6 @@ interface GroupExpandedEventUIParam { } interface IgGridMultiColumnHeaders { - /** * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. */ @@ -50617,7 +50381,6 @@ interface IgGridMultiColumnHeaders { [optionName: string]: any; } interface IgGridMultiColumnHeadersMethods { - /** * Expands a collapsed group. If the group is expanded, the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. @@ -50750,7 +50513,6 @@ interface PageSizeChangingEvent { } interface PageSizeChangingEventUIParam { - /** * Used to get new page size. */ @@ -50779,7 +50541,6 @@ interface PagerRenderedEventUIParam { } interface IgGridPaging { - /** * Number of records loaded and displayed per page. * @@ -51038,7 +50799,6 @@ interface IgGridPaging { [optionName: string]: any; } interface IgGridPagingMethods { - /** * Gets/Sets the current page index, delegates data binding and paging to [$.ig.DataSource](ig.datasource). * @@ -51643,7 +51403,6 @@ interface JQuery { igGridPaging(methodName: string, ...methodParams: any[]): any; } interface IgGridResizingColumnSetting { - /** * Column key. this is a required property in every column setting if columnIndex is not set. * @@ -51702,7 +51461,6 @@ interface ColumnResizedEventUIParam { } interface IgGridResizing { - /** * Resize the column to the size of the longest currently visible cell value. * @@ -51753,7 +51511,6 @@ interface IgGridResizing { [optionName: string]: any; } interface IgGridResizingMethods { - /** * Destroys the resizing widget */ @@ -51885,7 +51642,6 @@ interface JQuery { igGridResizing(methodName: string, ...methodParams: any[]): any; } interface IgGridResponsiveColumnSetting { - /** * Column key. This is a required property in every column setting if columnIndex is not set. * @@ -51917,7 +51673,6 @@ interface IgGridResponsiveColumnSetting { } interface IgGridResponsiveAllowedColumnWidthPerType { - /** * Minimal width in pixels string columns can take before forcing vertical rendering * @@ -51990,7 +51745,6 @@ interface ResponsiveModeChangedEventUIParam { } interface IgGridResponsive { - /** * A list of column settings that specifies how columns will react based on the environment the grid is run on. * @@ -52107,7 +51861,6 @@ interface IgGridResponsive { [optionName: string]: any; } interface IgGridResponsiveMethods { - /** * Destroys the responsive widget. */ @@ -52135,7 +51888,7 @@ interface ResponsiveModeSettings { } declare namespace Infragistics { -export class ResponsiveMode { +class ResponsiveMode { constructor(settings: ResponsiveModeSettings); isActive(): void; } @@ -52155,7 +51908,7 @@ interface InfragisticsModeSettings { } declare namespace Infragistics { -export class InfragisticsMode { +class InfragisticsMode { constructor(settings: InfragisticsModeSettings); isActive(): void; } @@ -52175,7 +51928,7 @@ interface BootstrapModeSettings { } declare namespace Infragistics { -export class BootstrapMode { +class BootstrapMode { constructor(settings: BootstrapModeSettings); isActive(): void; } @@ -52443,7 +52196,6 @@ interface CheckBoxStateChangedEventUIParam { } interface IgGridRowSelectors { - /** * Determines whether the row selectors column should contain row numbering * @@ -52804,7 +52556,6 @@ interface ActiveRowChangedEventUIParam { } interface IgGridSelection { - /** * Enables / Disables multiple selection of cells and rows - depending on the mode * @@ -52919,7 +52670,6 @@ interface IgGridSelection { [optionName: string]: any; } interface IgGridSelectionMethods { - /** * Destroys the selection widget. */ @@ -53035,7 +52785,6 @@ interface JQuery { } interface SelectionCollectionSettingsSubscribers { - /** * Option for SelectionCollectionSettingsSubscribers */ @@ -53054,7 +52803,7 @@ interface SelectionCollectionSettings { } declare namespace Infragistics { -export class SelectionCollection { +class SelectionCollection { constructor(settings: SelectionCollectionSettings); addSubscriber(subscriber: Object, owner: Object): void; removeSubscriber(subscriberId: Object, owner: Object): void; @@ -53083,7 +52832,7 @@ SelectionCollection: typeof Infragistics.SelectionCollection; } declare namespace Infragistics { -export class SelectedRowsCollection { +class SelectedRowsCollection { constructor(settings: SelectionCollectionSettings); isSelected(identifier: Object, forOwner: Object): void; isActive(identifier: Object, forOwner: Object): void; @@ -53115,7 +52864,7 @@ SelectedRowsCollection: typeof Infragistics.SelectedRowsCollection; } declare namespace Infragistics { -export class SelectedCellsCollection { +class SelectedCellsCollection { constructor(settings: SelectionCollectionSettings); isSelected(identifier: Object, forOwner: Object): void; atLeastOneSelected(rowId: Object, forOwner: Object): void; @@ -53414,7 +53163,6 @@ interface JQuery { igGridSelection(methodName: string, ...methodParams: any[]): any; } interface IgGridSortingColumnSetting { - /** * Identifies the grid column by key. Either key or index must be set in every column setting. * @@ -53513,7 +53261,6 @@ interface ModalDialogSortClickEventUIParam { } interface IgGridSorting { - /** * Defines local or remote sorting operations. * @@ -53798,7 +53545,6 @@ interface IgGridSorting { [optionName: string]: any; } interface IgGridSortingMethods { - /** * Sorts the data in a grid column and updates the UI. * @@ -54480,7 +54226,6 @@ interface JQuery { igGridSorting(methodName: string, ...methodParams: any[]): any; } interface IgGridSummariesColumnSettingSummaryOperand { - /** * Text of the summary method which is shown in summary cell * @@ -54535,7 +54280,6 @@ interface IgGridSummariesColumnSettingSummaryOperand { } interface IgGridSummariesColumnSetting { - /** * Enables disables summaries for the column * @@ -54616,7 +54360,6 @@ interface DropDownCancelClickedEventUIParam { } interface IgGridSummaries { - /** * type of summaries calculating. * @@ -55383,7 +55126,6 @@ interface JQuery { igGridSummaries(methodName: string, ...methodParams: any[]): any; } interface IgGridTooltipsColumnSettings { - /** * Either key or index must be set in every column setting. * @@ -55415,7 +55157,6 @@ interface IgGridTooltipsColumnSettings { } interface IgGridTooltips { - /** * determines the tooltip visibility option * @@ -55506,7 +55247,6 @@ interface IgGridTooltips { [optionName: string]: any; } interface IgGridTooltipsMethods { - /** * Destroys the tooltip widget. */ @@ -55707,7 +55447,6 @@ interface JQuery { igGridTooltips(methodName: string, ...methodParams: any[]): any; } interface IgGridUpdatingColumnSetting { - /** * Identifies the grid column by key. * @@ -55791,7 +55530,6 @@ interface IgGridUpdatingColumnSetting { } interface IgGridUpdatingRowEditDialogOptions { - /** * Specifies the caption of the dialog. If not set, $.ig.GridUpdating.locale.rowEditDialogCaptionLabel is used. * @@ -56043,7 +55781,6 @@ interface RowEditDialogContentsRenderedEventUIParam { } interface IgGridUpdating { - /** * A list of custom column options that specify editing and validation settings for a specific column. * @@ -56307,7 +56044,6 @@ interface IgGridUpdating { [optionName: string]: any; } interface IgGridUpdatingMethods { - /** * Sets a cell value for the specified cell. It also creates a transaction and updates the UI. * If the specified cell is currently in edit mode, the function will set the desired value in the cell's editor instead. @@ -57107,7 +56843,6 @@ interface WorkspaceResizedEventUIParam { } interface IgHtmlEditor { - /** * Shows/hides the "Formatting" toolbar. * @@ -57244,7 +56979,6 @@ interface IgHtmlEditor { [optionName: string]: any; } interface IgHtmlEditorMethods { - /** * Returns the element on which the widget was instantiated */ @@ -57450,7 +57184,7 @@ interface JQuery { } declare namespace Infragistics { -export class SelectionWrapper { +class SelectionWrapper { constructor(NODE: any); getSelectedItem(): void; getSelectionAsText(): void; @@ -57467,7 +57201,7 @@ SelectionWrapper: typeof Infragistics.SelectionWrapper; } declare namespace Infragistics { -export class ToolbarHelper { +class ToolbarHelper { analyse(el: Object): void; } } @@ -57801,7 +57535,6 @@ interface JQuery { igHtmlEditor(methodName: string, ...methodParams: any[]): any; } interface JQuery { - /** */ igPathFinder(optionLiteral: 'option', optionName: "items"): any; @@ -58076,7 +57809,6 @@ interface JQuery { igImagePropertiesDialog(methodName: string, ...methodParams: any[]): any; } interface IgLayoutManagerBorderLayout { - /** * Option specifying the width of the left region, either in px or percentages * @@ -58120,7 +57852,6 @@ interface IgLayoutManagerBorderLayout { } interface IgLayoutManagerGridLayout { - /** * Specifies the duration of the animations in the layout manager"s grid layout * @@ -58183,7 +57914,6 @@ interface IgLayoutManagerGridLayout { } interface IgLayoutManagerItem { - /** * Column index of the item in the grid * @@ -58233,7 +57963,6 @@ interface InternalResizedEvent { } interface InternalResizedEventUIParam { - /** * Used to get a reference to the layout manager performing resizing. */ @@ -58245,7 +57974,6 @@ interface InternalResizingEvent { } interface InternalResizingEventUIParam { - /** * Used to get a reference to the layout manager performing resizing. */ @@ -58257,7 +57985,6 @@ interface ItemRenderedEvent { } interface ItemRenderedEventUIParam { - /** * Used to get reference to the igLayoutManager. */ @@ -58284,7 +58011,6 @@ interface ItemRenderingEvent { } interface ItemRenderingEventUIParam { - /** * Used to get reference to the igLayoutManager. */ @@ -58307,7 +58033,6 @@ interface ItemRenderingEventUIParam { } interface IgLayoutManager { - /** * Options specific to a border layout * @@ -58413,7 +58138,6 @@ interface IgLayoutManager { [optionName: string]: any; } interface IgLayoutManagerMethods { - /** * Triggers recalculation of the layout dimensions. Layouts may not need to be reflowed manually, if their sizes are in percentages (i.e. they are responsive by default) * this can be particularly useful with a grid layout, when the container has percentage sizes, but items are calculated in pixels and positioned absolutely in the container. @@ -58654,7 +58378,6 @@ interface JQuery { igLayoutManager(methodName: string, ...methodParams: any[]): any; } interface IgLinearGaugeRange { - /** * Gets or sets the name of the range. */ @@ -58716,7 +58439,6 @@ interface IgLinearGaugeRange { } interface IgLinearGauge { - /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -59098,7 +58820,6 @@ interface IgLinearGauge { [optionName: string]: any; } interface IgLinearGaugeMethods { - /** * Returns a string containing the names of all the ranges delimited with a \n symbol. */ @@ -60043,7 +59764,6 @@ interface JQuery { igLinearGauge(methodName: string, ...methodParams: any[]): any; } interface IgMapCrosshairPoint { - /** * The x coordinate. */ @@ -60061,7 +59781,6 @@ interface IgMapCrosshairPoint { } interface IgMapBackgroundContent { - /** * Type of the background content for the map. * @@ -60106,7 +59825,6 @@ interface IgMapBackgroundContent { } interface IgMapSeries { - /** * Type of the series. * @@ -60601,7 +60319,6 @@ interface TriangulationStatusChangedEvent { } interface TriangulationStatusChangedEventUIParam { - /** * Used to get reference to map object. */ @@ -60619,7 +60336,6 @@ interface TriangulationStatusChangedEventUIParam { } interface IgMap { - /** * The width of the map. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -61277,7 +60993,6 @@ interface JQuery { } interface ShapeDataSourceSettings { - /** * The unique identifier. */ @@ -61334,7 +61049,7 @@ interface ShapeDataSourceSettings { } declare namespace Infragistics { -export class ShapeDataSource { +class ShapeDataSource { constructor(settings: ShapeDataSourceSettings); /** @@ -61358,7 +61073,6 @@ ShapeDataSource: typeof Infragistics.ShapeDataSource; } interface TriangulationDataSourceSettings { - /** * The unique identifier. */ @@ -61391,7 +61105,7 @@ interface TriangulationDataSourceSettings { } declare namespace Infragistics { -export class TriangulationDataSource { +class TriangulationDataSource { constructor(settings: TriangulationDataSourceSettings); /** @@ -62402,7 +62116,6 @@ interface IgNotifierMessages { } interface IgNotifierHeaderTemplate { - /** * Controls whether the popover renders a functional close button * @@ -62422,7 +62135,6 @@ interface IgNotifierHeaderTemplate { } interface IgNotifier { - /** * Gets/Sets the current state of the igNotifier messages. State controls what CSS classes are applied to the messages and target and has interactions with other options as well. * @@ -62623,7 +62335,6 @@ interface IgNotifier { [optionName: string]: any; } interface IgNotifierMethods { - /** * Triggers a notification with a certain state and optional message. The [notifyLevel](ui.ignotifier#options:notifyLevel) option determines if the notification will be displayed. * @@ -63072,7 +62783,6 @@ interface JQuery { igNotifier(methodName: string, ...methodParams: any[]): any; } interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsRequestOptions { - /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -63092,7 +62802,6 @@ interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsRequestOptions { } interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsMdxSettings { - /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -63130,7 +62839,6 @@ interface IgPivotDataSelectorDataSourceOptionsXmlaOptionsMdxSettings { } interface IgPivotDataSelectorDataSourceOptionsXmlaOptions { - /** * Optional="false" The URL of the XMLA server. */ @@ -63185,7 +62893,6 @@ interface IgPivotDataSelectorDataSourceOptionsXmlaOptions { } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensionMeasure { - /** * Optional="false" A unique name for the measure. */ @@ -63214,7 +62921,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasure } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimension { - /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -63240,7 +62946,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeMeasure } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchieLevel { - /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -63266,7 +62971,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensi } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchie { - /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -63298,7 +63002,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensi } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimension { - /** * Optional="false" A unique name for the dimension. */ @@ -63321,7 +63024,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCubeDimensi } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCube { - /** * Optional="false" A unique name for the cube. */ @@ -63349,7 +63051,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadataCube { } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadata { - /** * Optional="false" Metadata used for the creation of the cube. */ @@ -63362,7 +63063,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptionsMetadata { } interface IgPivotDataSelectorDataSourceOptionsFlatDataOptions { - /** * Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -63403,7 +63103,6 @@ interface IgPivotDataSelectorDataSourceOptionsFlatDataOptions { } interface IgPivotDataSelectorDataSourceOptions { - /** * Settings for creating an instance of $.ig.OlapXmlaDataSource. */ @@ -63441,7 +63140,6 @@ interface IgPivotDataSelectorDataSourceOptions { } interface IgPivotDataSelectorDragAndDropSettings { - /** * Which element the draggable helper should be appended to while dragging. */ @@ -63469,7 +63167,6 @@ interface DataSelectorRenderedEvent { } interface DataSelectorRenderedEventUIParam { - /** * Used to get a reference to the data selector. */ @@ -63481,7 +63178,6 @@ interface DataSourceInitializedEvent { } interface DataSourceInitializedEventUIParam { - /** * Used to get a reference to the data selector. */ @@ -63508,7 +63204,6 @@ interface DataSourceUpdatedEvent { } interface DataSourceUpdatedEventUIParam { - /** * Used to get a reference to the data selector. */ @@ -63535,7 +63230,6 @@ interface DeferUpdateChangedEvent { } interface DeferUpdateChangedEventUIParam { - /** * Used to get a reference to the data selector. */ @@ -63552,7 +63246,6 @@ interface DragStartEvent { } interface DragStartEventUIParam { - /** * Used to get a reference to the data. */ @@ -63584,7 +63277,6 @@ interface DragEvent { } interface DragEventUIParam { - /** * Used to get a reference to the data. */ @@ -63616,7 +63308,6 @@ interface DragStopEvent { } interface DragStopEventUIParam { - /** * Used to get a reference to the helper. */ @@ -63643,7 +63334,6 @@ interface MetadataDroppingEvent { } interface MetadataDroppingEventUIParam { - /** * Used to the drop target. */ @@ -63685,7 +63375,6 @@ interface MetadataDroppedEvent { } interface MetadataDroppedEventUIParam { - /** * Used to the drop target. */ @@ -63727,7 +63416,6 @@ interface MetadataRemovingEvent { } interface MetadataRemovingEventUIParam { - /** * Used to the dragged element. */ @@ -63744,7 +63432,6 @@ interface MetadataRemovedEvent { } interface MetadataRemovedEventUIParam { - /** * Used to get a reference to the data. */ @@ -63756,7 +63443,6 @@ interface FilterDropDownOpeningEvent { } interface FilterDropDownOpeningEventUIParam { - /** * Used to the hierarchy. */ @@ -63768,7 +63454,6 @@ interface FilterDropDownOpenedEvent { } interface FilterDropDownOpenedEventUIParam { - /** * Used to the hierarchy. */ @@ -63785,7 +63470,6 @@ interface FilterMembersLoadedEvent { } interface FilterMembersLoadedEventUIParam { - /** * Used to get the parent node or the igTree instance in the initial load. */ @@ -63799,7 +63483,6 @@ interface FilterDropDownOkEvent { } interface FilterDropDownOkEventUIParam { - /** * Used to the hierarchy. */ @@ -63817,7 +63500,6 @@ interface FilterDropDownClosingEvent { } interface FilterDropDownClosingEventUIParam { - /** * Used to the hierarchy. */ @@ -63834,7 +63516,6 @@ interface FilterDropDownClosedEvent { } interface FilterDropDownClosedEventUIParam { - /** * Used to the hierarchy. */ @@ -64058,7 +63739,6 @@ interface IgPivotDataSelector { [optionName: string]: any; } interface IgPivotDataSelectorMethods { - /** * Updates the data source. */ @@ -64556,7 +64236,6 @@ interface JQuery { igPivotDataSelector(methodName: string, ...methodParams: any[]): any; } interface IgPivotGridDataSourceOptionsXmlaOptionsRequestOptions { - /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -64576,7 +64255,6 @@ interface IgPivotGridDataSourceOptionsXmlaOptionsRequestOptions { } interface IgPivotGridDataSourceOptionsXmlaOptionsMdxSettings { - /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -64614,7 +64292,6 @@ interface IgPivotGridDataSourceOptionsXmlaOptionsMdxSettings { } interface IgPivotGridDataSourceOptionsXmlaOptions { - /** * Optional="false" The URL of the XMLA server. */ @@ -64669,7 +64346,6 @@ interface IgPivotGridDataSourceOptionsXmlaOptions { } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensionMeasure { - /** * Optional="false" A unique name for the measure. */ @@ -64698,7 +64374,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimension { - /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -64724,7 +64399,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchieLevel { - /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -64750,7 +64424,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchie { - /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -64782,7 +64455,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimension { - /** * Optional="false" A unique name for the dimension. */ @@ -64805,7 +64477,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCubeDimension { } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCube { - /** * Optional="false" A unique name for the cube. */ @@ -64833,7 +64504,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadataCube { } interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadata { - /** * Optional="false" Metadata used for the creation of the cube. */ @@ -64846,7 +64516,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptionsMetadata { } interface IgPivotGridDataSourceOptionsFlatDataOptions { - /** * Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -64887,7 +64556,6 @@ interface IgPivotGridDataSourceOptionsFlatDataOptions { } interface IgPivotGridDataSourceOptions { - /** * Settings for creating an instance of $.ig.OlapXmlaDataSource. */ @@ -64925,7 +64593,6 @@ interface IgPivotGridDataSourceOptions { } interface IgPivotGridLevelSortDirection { - /** * Specifies the unique name of the level, which will be sorted. */ @@ -64952,7 +64619,6 @@ interface IgPivotGridLevelSortDirection { } interface IgPivotGridGridOptionsFeatures { - /** * Option for IgPivotGridGridOptionsFeatures */ @@ -64960,7 +64626,6 @@ interface IgPivotGridGridOptionsFeatures { } interface IgPivotGridGridOptions { - /** * Default column width that will be set for all columns. */ @@ -65003,7 +64668,6 @@ interface IgPivotGridGridOptions { } interface IgPivotGridDragAndDropSettings { - /** * Which element the draggable helper should be appended to while dragging. */ @@ -65031,7 +64695,6 @@ interface PivotGridHeadersRenderedEvent { } interface PivotGridHeadersRenderedEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65053,7 +64716,6 @@ interface PivotGridRenderedEvent { } interface PivotGridRenderedEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65070,7 +64732,6 @@ interface TupleMemberExpandingEvent { } interface TupleMemberExpandingEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65102,7 +64763,6 @@ interface TupleMemberExpandedEvent { } interface TupleMemberExpandedEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65134,7 +64794,6 @@ interface TupleMemberCollapsingEvent { } interface TupleMemberCollapsingEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65166,7 +64825,6 @@ interface TupleMemberCollapsedEvent { } interface TupleMemberCollapsedEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65198,7 +64856,6 @@ interface SortingEvent { } interface SortingEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65215,7 +64872,6 @@ interface SortedEvent { } interface SortedEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65237,7 +64893,6 @@ interface HeadersSortingEvent { } interface HeadersSortingEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65254,7 +64909,6 @@ interface HeadersSortedEvent { } interface HeadersSortedEventUIParam { - /** * Used to get a reference to the pivot grid. */ @@ -65692,7 +65346,6 @@ interface IgPivotGrid { [optionName: string]: any; } interface IgPivotGridMethods { - /** * Returns the igGrid instance used to render the OLAP data. */ @@ -66689,7 +66342,6 @@ interface JQuery { igPivotGrid(methodName: string, ...methodParams: any[]): any; } interface IgPivotViewDataSourceOptionsXmlaOptionsRequestOptions { - /** * The value is applied to XmlHttpRequest.withCredentials if supported by the user agent. * Setting this property to true will allow IE8/IE9 to make authenticated cross-origin requests to tusted domains through XmlHttpRequest instead of XDomainRequest @@ -66709,7 +66361,6 @@ interface IgPivotViewDataSourceOptionsXmlaOptionsRequestOptions { } interface IgPivotViewDataSourceOptionsXmlaOptionsMdxSettings { - /** * Optional="true" a value indicating whether a NON EMPTY clause is present on ROWS axis. Default value is true */ @@ -66747,7 +66398,6 @@ interface IgPivotViewDataSourceOptionsXmlaOptionsMdxSettings { } interface IgPivotViewDataSourceOptionsXmlaOptions { - /** * Optional="false" The URL of the XMLA server. */ @@ -66802,7 +66452,6 @@ interface IgPivotViewDataSourceOptionsXmlaOptions { } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensionMeasure { - /** * Optional="false" A unique name for the measure. */ @@ -66831,7 +66480,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimension { - /** * A unique name for the measures dimension. * The default value is "Measures". This name is used to create the names of dimensions using the following pattern: @@ -66857,7 +66505,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeMeasuresDimensi } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchieLevel { - /** * Optional="false" A name for the level. * The unique name of the level is formed using the following pattern: @@ -66883,7 +66530,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierarchie { - /** * Optional="false" A name for the hierarchy. * The unique name of the hierarchy is formed using the following pattern: @@ -66915,7 +66561,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimensionHierar } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimension { - /** * Optional="false" A unique name for the dimension. */ @@ -66938,7 +66583,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCubeDimension { } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCube { - /** * Optional="false" A unique name for the cube. */ @@ -66966,7 +66610,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadataCube { } interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadata { - /** * Optional="false" Metadata used for the creation of the cube. */ @@ -66979,7 +66622,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptionsMetadata { } interface IgPivotViewDataSourceOptionsFlatDataOptions { - /** * Specifies any valid data source accepted by $.ig.DataSource, or an instance of an $.ig.DataSource itself. */ @@ -67020,7 +66662,6 @@ interface IgPivotViewDataSourceOptionsFlatDataOptions { } interface IgPivotViewDataSourceOptions { - /** * Settings for creating an instance of $.ig.OlapXmlaDataSource. */ @@ -67058,7 +66699,6 @@ interface IgPivotViewDataSourceOptions { } interface IgPivotViewPivotGridOptionsLevelSortDirection { - /** * Specifies the unique name of the level, which will be sorted. */ @@ -67077,7 +66717,6 @@ interface IgPivotViewPivotGridOptionsLevelSortDirection { } interface IgPivotViewPivotGridOptionsGridOptionsFeatures { - /** * Option for IgPivotViewPivotGridOptionsGridOptionsFeatures */ @@ -67085,7 +66724,6 @@ interface IgPivotViewPivotGridOptionsGridOptionsFeatures { } interface IgPivotViewPivotGridOptionsGridOptions { - /** * Default column width that will be set for all columns. * @@ -67132,7 +66770,6 @@ interface IgPivotViewPivotGridOptionsGridOptions { } interface IgPivotViewPivotGridOptionsDragAndDropSettings { - /** * Which element the draggable helper should be appended to while dragging. */ @@ -67156,7 +66793,6 @@ interface IgPivotViewPivotGridOptionsDragAndDropSettings { } interface IgPivotViewPivotGridOptions { - /** * A boolean value indicating whether a parent in the columns is in front of its children. * If set to true, the query set sorts members in a level in their natural order - child members immediately follow their parent members. @@ -67297,7 +66933,6 @@ interface IgPivotViewPivotGridOptions { } interface IgPivotViewDataSelectorOptionsDragAndDropSettings { - /** * Which element the draggable helper should be appended to while dragging. */ @@ -67321,7 +66956,6 @@ interface IgPivotViewDataSelectorOptionsDragAndDropSettings { } interface IgPivotViewDataSelectorOptions { - /** * Settings for the drag and drop functionality of the igPivotDataSelector. */ @@ -67348,7 +66982,6 @@ interface IgPivotViewDataSelectorOptions { } interface IgPivotViewPivotGridPanel { - /** * Determines if the panel containing the igPivotGrid will be resizable. */ @@ -67381,7 +67014,6 @@ interface IgPivotViewPivotGridPanel { } interface IgPivotViewDataSelectorPanel { - /** * Determines the position of the data selector panel inside the igPivotView widget. */ @@ -67459,7 +67091,6 @@ interface IgPivotView { [optionName: string]: any; } interface IgPivotViewMethods { - /** * Returns the igPivotGrid instance of the pivot view. */ @@ -67589,7 +67220,6 @@ interface JQuery { igPivotView(methodName: string, ...methodParams: any[]): any; } interface IgPopover { - /** * Controls whether the popover will close on blur or not */ @@ -67724,7 +67354,6 @@ interface IgPopover { [optionName: string]: any; } interface IgPopoverMethods { - /** * Destroys the popover widget. */ @@ -68048,7 +67677,6 @@ interface JQuery { igPopover(methodName: string, ...methodParams: any[]): any; } interface IgRadialGaugeRange { - /** * Gets or sets the name of the range. */ @@ -68111,7 +67739,6 @@ interface IgRadialGaugeRange { } interface IgRadialGauge { - /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -68546,7 +68173,6 @@ interface IgRadialGauge { [optionName: string]: any; } interface IgRadialGaugeMethods { - /** * Returns a string containing the names of all the ranges delimited with a \n symbol. */ @@ -69578,7 +69204,6 @@ interface JQuery { igRadialGauge(methodName: string, ...methodParams: any[]): any; } interface IgRadialMenuItem { - /** * Gets or sets a value indicating what type of item is being provided. * @@ -69899,7 +69524,6 @@ interface ClosedEvent { } interface ClosedEventUIParam { - /** * Used to obtain reference to menu widget. */ @@ -69911,7 +69535,6 @@ interface OpenedEvent { } interface OpenedEventUIParam { - /** * Used to obtain reference to menu widget. */ @@ -69919,7 +69542,6 @@ interface OpenedEventUIParam { } interface IgRadialMenu { - /** * Gets or sets the items in the menu. */ @@ -70071,7 +69693,6 @@ interface IgRadialMenu { [optionName: string]: any; } interface IgRadialMenuMethods { - /** * Gets or sets the value of a property for the item created with the specified key * @@ -70474,7 +70095,6 @@ interface HoverChangeEvent { } interface HoverChangeEventUIParam { - /** * Used to get new value. */ @@ -70491,7 +70111,6 @@ interface ValueChangeEvent { } interface ValueChangeEventUIParam { - /** * Used to get new value. */ @@ -70504,7 +70123,6 @@ interface ValueChangeEventUIParam { } interface IgRating { - /** * Gets a vertical or horizontal orientation for the votes. * Change of that option is not supported after igRating was created. @@ -70654,7 +70272,6 @@ interface IgRating { [optionName: string]: any; } interface IgRatingMethods { - /** * Gets reference to [igValidator](ui.igvalidator) used by igRating. * @@ -71027,7 +70644,6 @@ interface JQuery { igRating(methodName: string, ...methodParams: any[]): any; } interface IgSchedulerAgendaViewSettings { - /** * Gets/Sets the number of days shown in AgendaView mode. * @@ -71041,7 +70657,6 @@ interface IgSchedulerAgendaViewSettings { } interface IgSchedulerMonthViewSettings { - /** * Gets/Sets the type of content displayed in a MonthView day. * @@ -71236,7 +70851,6 @@ interface AppointmentEditedEventUIParam { } interface IgScheduler { - /** * Lists of all the views, rendered in the Scheduler. * @@ -71396,7 +71010,6 @@ interface IgScheduler { [optionName: string]: any; } interface IgSchedulerMethods { - /** * Gets reference to appointment by id * @@ -71857,7 +71470,6 @@ interface ResizingEvent { } interface ResizingEventUIParam { - /** * Used to obtain reference to igScroll. */ @@ -71869,7 +71481,6 @@ interface ResizedEvent { } interface ResizedEventUIParam { - /** * Used to obtain reference to igScroll. */ @@ -71877,7 +71488,6 @@ interface ResizedEventUIParam { } interface IgScroll { - /** * Sets or gets if the scrollbars should be always visible (on all environments). Otherwise it will be the default behavior. Note: this option is only for the custom scrollbars set through the scrollbarType option. * @@ -72606,7 +72216,6 @@ interface JQuery { } interface IgSliderBookmarks { - /** * Get or set the bookmark value. Should be between slider min and max values. */ @@ -72676,7 +72285,6 @@ interface BookmarkClickEventUIParam { } interface IgSlider { - /** * Get or set whether the slide handle will animate when it is moved. */ @@ -72890,7 +72498,6 @@ interface JQuery { } interface IgResponsiveContainer { - /** * The time between two resize checks in milliseconds. */ @@ -72902,7 +72509,6 @@ interface IgResponsiveContainer { [optionName: string]: any; } interface IgResponsiveContainerMethods { - /** * Destroys the ResponsiveContainer widget */ @@ -73464,7 +73070,6 @@ interface JQuery { igResponsiveContainer(methodName: string, ...methodParams: any[]): any; } interface IgSparkline { - /** * The width of the sparkline. It can be set as a number in pixels, string (px) or percentage (%). */ @@ -74680,7 +74285,6 @@ interface JQuery { igSparkline(methodName: string, ...methodParams: any[]): any; } interface IgSplitButtonItem { - /** * Item name */ @@ -74703,7 +74307,6 @@ interface IgSplitButtonItem { } interface IgSplitButton { - /** * Button items. * @@ -74768,7 +74371,6 @@ interface IgSplitButton { [optionName: string]: any; } interface IgSplitButtonMethods { - /** * Switch to given igToolbar button. * @@ -74953,7 +74555,6 @@ interface JQuery { igSplitButton(methodName: string, ...methodParams: any[]): any; } interface IgSplitterPanel { - /** * Gets the size of the panel * @@ -75001,7 +74602,6 @@ interface ResizeStartedEvent { } interface ResizeStartedEventUIParam { - /** * Used to get a reference to the splitter instance. */ @@ -75013,7 +74613,6 @@ interface ResizeEndedEvent { } interface ResizeEndedEventUIParam { - /** * Used to get a reference to the splitter instance. */ @@ -75025,7 +74624,6 @@ interface LayoutRefreshingEvent { } interface LayoutRefreshingEventUIParam { - /** * Used to get a reference to the splitter instance. */ @@ -75037,7 +74635,6 @@ interface LayoutRefreshedEvent { } interface LayoutRefreshedEventUIParam { - /** * Used to get a reference to the splitter instance. */ @@ -75045,7 +74642,6 @@ interface LayoutRefreshedEventUIParam { } interface IgSplitter { - /** * Gets/Sets the width of the container. * @@ -75156,7 +74752,6 @@ interface IgSplitter { [optionName: string]: any; } interface IgSplitterMethods { - /** * Returns the element that represents this widget. */ @@ -75487,7 +75082,6 @@ interface WorkbookDirtiedEventUIParam { } interface IgSpreadsheet { - /** * The width of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). * @@ -75698,7 +75292,6 @@ interface IgSpreadsheet { [optionName: string]: any; } interface IgSpreadsheetMethods { - /** * Returns an object that represents the pane with the focus. */ @@ -76203,7 +75796,6 @@ interface JQuery { igSpreadsheet(methodName: string, ...methodParams: any[]): any; } interface IgTileManagerSplitterOptionsEvents { - /** * Event fired after collapsing is performed. Not cancellable. * @@ -76229,7 +75821,6 @@ interface IgTileManagerSplitterOptionsEvents { } interface IgTileManagerSplitterOptions { - /** * Gets/Sets whether the splitter should be enabled. * @@ -76265,7 +75856,6 @@ interface TileRenderingEvent { } interface TileRenderingEventUIParam { - /** * Used to get a reference to the tile manager performing rendering. */ @@ -76282,7 +75872,6 @@ interface TileRenderedEvent { } interface TileRenderedEventUIParam { - /** * Used to get a reference to the tile manager performing rendering. */ @@ -76299,7 +75888,6 @@ interface TileMaximizingEvent { } interface TileMaximizingEventUIParam { - /** * Used to get a reference to the tile manager performing the maximizing the tile belongs to. */ @@ -76321,7 +75909,6 @@ interface TileMaximizedEvent { } interface TileMaximizedEventUIParam { - /** * Used to get a reference to the tile manager the maximized tile belongs to. */ @@ -76338,7 +75925,6 @@ interface TileMinimizingEvent { } interface TileMinimizingEventUIParam { - /** * Used to get a reference to the tile manager performing the minimizing the tile belongs to. */ @@ -76360,7 +75946,6 @@ interface TileMinimizedEvent { } interface TileMinimizedEventUIParam { - /** * Used to get a reference to the tile manager the minimized tile belongs to. */ @@ -76373,7 +75958,6 @@ interface TileMinimizedEventUIParam { } interface IgTileManager { - /** * * @@ -76700,7 +76284,6 @@ interface IgTileManager { [optionName: string]: any; } interface IgTileManagerMethods { - /** * Maximizes a given tile. * @@ -77439,7 +77022,6 @@ interface WindowResizedEventUIParam { } interface IgToolbar { - /** * Set/Get the widget height. * @@ -77565,7 +77147,6 @@ interface IgToolbar { [optionName: string]: any; } interface IgToolbarMethods { - /** * Returns the element on which the widget was instantiated */ @@ -77924,7 +77505,6 @@ interface ActivatingEvent { } interface ActivatingEventUIParam { - /** * Used to get reference to this igToolbarButton. */ @@ -77936,7 +77516,6 @@ interface ActivatedEvent { } interface ActivatedEventUIParam { - /** * Used to get reference to this igToolbarButton. */ @@ -77948,7 +77527,6 @@ interface DeactivatingEvent { } interface DeactivatingEventUIParam { - /** * Used to get reference to this igToolbarButton. */ @@ -77960,7 +77538,6 @@ interface DeactivatedEvent { } interface DeactivatedEventUIParam { - /** * Used to get reference to this igToolbarButton. */ @@ -77968,7 +77545,6 @@ interface DeactivatedEventUIParam { } interface IgToolbarButton { - /** * Enable/Disable the "Toggling" of a button. * @@ -78015,7 +77591,6 @@ interface IgToolbarButton { [optionName: string]: any; } interface IgToolbarButtonMethods { - /** * Toggle toolbar button */ @@ -78154,7 +77729,6 @@ interface JQuery { igToolbarButton(methodName: string, ...methodParams: any[]): any; } interface IgTreeBindingsBindings { - /** * Option for IgTreeBindingsBindings */ @@ -78162,7 +77736,6 @@ interface IgTreeBindingsBindings { } interface IgTreeBindings { - /** * Gets the name of the data source property the value of which would be the node text. * @@ -78271,7 +77844,6 @@ interface IgTreeBindings { } interface IgTreeDragAndDropSettings { - /** * Gets whether the widget will accept drag and drop from other controls. * @@ -78511,7 +78083,6 @@ interface NodeDroppedEventUIParam { } interface IgTree { - /** * Gets/Sets the width of the control container. * @@ -78841,7 +78412,6 @@ interface IgTree { [optionName: string]: any; } interface IgTreeMethods { - /** * Performs databinding on the igTree. */ @@ -79744,7 +79314,6 @@ interface JQuery { igTree(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridColumnFixing { - /** * Specifies the tooltip text on the column fixing header icon when column is not fixed. * @@ -80221,7 +79790,6 @@ interface JQuery { igTreeGridColumnFixing(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridColumnMoving { - /** * A list of column settings that specifies moving options on a per column basis. * @@ -81108,7 +80676,6 @@ interface JQuery { igTreeGridColumnMoving(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridFiltering { - /** * The property in the response that will hold the total number of records in the data source * @@ -81563,7 +81130,6 @@ interface IgTreeGridFiltering { [optionName: string]: any; } interface IgTreeGridFilteringMethods { - /** * Returns the count of data records that match filtering conditions */ @@ -82522,7 +82088,6 @@ interface JQuery { igTreeGridFiltering(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridHiding { - /** * A list of column settings that specifies hiding options on a per column basis. * @@ -83280,7 +82845,6 @@ interface JQuery { igTreeGridHiding(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridDataSourceSettings { - /** * *** IMPORTANT DEPRECATED *** Use the expandedKey option instead. * The name of the property that keeps track of the expansion state of a data item. Defaults to __ig_options.expanded. @@ -83320,7 +82884,6 @@ interface IgTreeGridDataSourceSettings { } interface IgTreeGrid { - /** * Specifies the indentation (in pixels or percent) for a tree grid row. Nested indentation is achieved by calculating the level times the indentation value. Ex: '10px' or '5%'. Default is 30. * @@ -83895,7 +83458,6 @@ interface IgTreeGrid { [optionName: string]: any; } interface IgTreeGridMethods { - /** * Clears the transaction log (delegates to igDataSource). Note that this does not update the UI. In case the UI must be updated, set the second parameter "updateUI" to true, which will trigger a call to dataBind() to re-render the contents. * @@ -85695,7 +85257,6 @@ interface JQuery { igTreeGrid(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridMultiColumnHeaders { - /** * Enables/disables feature inheritance for the child layouts. NOTE: It only applies for igHierarchicalGrid. */ @@ -85852,7 +85413,6 @@ interface ContextRowRenderedEventUIParam { } interface IgTreeGridPaging { - /** * Sets gets paging mode. * @@ -86173,7 +85733,6 @@ interface IgTreeGridPaging { [optionName: string]: any; } interface IgTreeGridPagingMethods { - /** * Destroys the igTreeGridPaging feature by removing all elements in the pager area, unbinding events, and resetting data to discard data filtering on paging */ @@ -86914,7 +86473,6 @@ interface JQuery { igTreeGridPaging(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridResizing { - /** * Resize the column to the size of the longest currently visible cell value. * @@ -87093,7 +86651,6 @@ interface JQuery { igTreeGridResizing(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridRowSelectors { - /** * Determines row numbering format. * @@ -87506,7 +87063,6 @@ interface JQuery { igTreeGridRowSelectors(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridSelection { - /** * Enables / Disables multiple selection of cells and rows - depending on the mode * @@ -88000,7 +87556,6 @@ interface JQuery { igTreeGridSelection(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridSorting { - /** * Specifies from which data bound level to be applied sorting - 0 is the first level * @@ -88297,7 +87852,6 @@ interface IgTreeGridSorting { [optionName: string]: any; } interface IgTreeGridSortingMethods { - /** * Returns whether a column with the specified columnKey is sorted(taken from the data source sorting expressions) * @@ -89011,7 +88565,6 @@ interface JQuery { igTreeGridSorting(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridTooltips { - /** * determines the tooltip visibility option * @@ -89299,7 +88852,6 @@ interface JQuery { igTreeGridTooltips(methodName: string, ...methodParams: any[]): any; } interface IgTreeGridUpdating { - /** * Specifies whether to enable or disable adding children to rows. * @@ -89581,7 +89133,6 @@ interface IgTreeGridUpdating { [optionName: string]: any; } interface IgTreeGridUpdatingMethods { - /** * Adds a new child to a specific row. It also creates a transaction and updates the UI. * @@ -90394,7 +89945,6 @@ interface JQuery { } interface IgUploadFileExtensionIcons { - /** * Array of string for file extensions */ @@ -90487,7 +90037,6 @@ interface OnFormDataSubmitEventUIParam { } interface IgUpload { - /** * Get or set width of the main container of the file upload control. Main container contains all buttons, progressbar, etc. * @@ -90785,7 +90334,6 @@ interface IgUpload { [optionName: string]: any; } interface IgUploadMethods { - /** * Return jquery object of fileupload container - html DOM element */ @@ -91597,7 +91145,6 @@ interface JQuery { igUpload(methodName: string, ...methodParams: any[]): any; } interface IgValidatorField { - /** * Gets the target element (input or control target) to be validated. This field setting is required. * @@ -91619,7 +91166,6 @@ interface ValidatingEvent { } interface ValidatingEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91636,7 +91182,6 @@ interface ValidatedEvent { } interface ValidatedEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91663,7 +91208,6 @@ interface SuccessEvent { } interface SuccessEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91690,7 +91234,6 @@ interface ErrorEvent { } interface ErrorEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91717,7 +91260,6 @@ interface ErrorShowingEvent { } interface ErrorShowingEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91739,7 +91281,6 @@ interface ErrorHidingEvent { } interface ErrorHidingEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91761,7 +91302,6 @@ interface ErrorShownEvent { } interface ErrorShownEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91783,7 +91323,6 @@ interface ErrorHiddenEvent { } interface ErrorHiddenEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91805,7 +91344,6 @@ interface SuccessShowingEvent { } interface SuccessShowingEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91827,7 +91365,6 @@ interface SuccessHidingEvent { } interface SuccessHidingEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91849,7 +91386,6 @@ interface SuccessShownEvent { } interface SuccessShownEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91871,7 +91407,6 @@ interface SuccessHiddenEvent { } interface SuccessHiddenEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91893,7 +91428,6 @@ interface FormValidatingEvent { } interface FormValidatingEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91910,7 +91444,6 @@ interface FormValidatedEvent { } interface FormValidatedEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91932,7 +91465,6 @@ interface FormErrorEvent { } interface FormErrorEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91949,7 +91481,6 @@ interface FormSuccessEvent { } interface FormSuccessEventUIParam { - /** * Used to get reference to the igValidator widget. */ @@ -91962,7 +91493,6 @@ interface FormSuccessEventUIParam { } interface IgValidator { - /** * Gets/Sets whether validation is triggered when the text in editor changes. * Note that this is more appropriate for selection controls such as checkbox, combo or rating. @@ -92325,7 +91855,6 @@ interface IgValidator { [optionName: string]: any; } interface IgValidatorMethods { - /** * Trigger validation and show errors for invalid fields. * @@ -92403,7 +91932,7 @@ interface JQuery { } declare namespace Infragistics { -export class IgValidatorBaseRule { +class IgValidatorBaseRule { constructor(name: string); constructor(formatItems: any[]); @@ -92443,7 +91972,7 @@ IgValidatorBaseRule: typeof Infragistics.IgValidatorBaseRule; } declare namespace Infragistics { -export class IgValidatorRequiredRule { +class IgValidatorRequiredRule { constructor(name: string); constructor(groupTypes: any[]); constructor(groupMessageName: string); @@ -92471,7 +92000,7 @@ IgValidatorRequiredRule: typeof Infragistics.IgValidatorRequiredRule; } declare namespace Infragistics { -export class IgValidatorControlRule { +class IgValidatorControlRule { constructor(name: string); constructor(formatItems: any[]); getMessageType(): void; @@ -92497,7 +92026,7 @@ IgValidatorControlRule: typeof Infragistics.IgValidatorControlRule; } declare namespace Infragistics { -export class IgValidatorNumberRule { +class IgValidatorNumberRule { constructor(name: string); constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92530,7 +92059,7 @@ IgValidatorNumberRule: typeof Infragistics.IgValidatorNumberRule; } declare namespace Infragistics { -export class IgValidatorDateRule { +class IgValidatorDateRule { constructor(name: string); constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92563,7 +92092,7 @@ IgValidatorDateRule: typeof Infragistics.IgValidatorDateRule; } declare namespace Infragistics { -export class IgValidatorLengthRule { +class IgValidatorLengthRule { constructor(name: string); constructor(formatItems: any[]); getMessageType(): void; @@ -92589,7 +92118,7 @@ IgValidatorLengthRule: typeof Infragistics.IgValidatorLengthRule; } declare namespace Infragistics { -export class IgValidatorValueRule { +class IgValidatorValueRule { constructor(name: string); constructor(formatItems: any[]); getMessageType(): void; @@ -92601,7 +92130,7 @@ IgValidatorValueRule: typeof Infragistics.IgValidatorValueRule; } declare namespace Infragistics { -export class IgValidatorEqualToRule { +class IgValidatorEqualToRule { constructor(name: string); constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92634,7 +92163,7 @@ IgValidatorEqualToRule: typeof Infragistics.IgValidatorEqualToRule; } declare namespace Infragistics { -export class IgValidatorEmailRule { +class IgValidatorEmailRule { constructor(name: string); constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92667,7 +92196,7 @@ IgValidatorEmailRule: typeof Infragistics.IgValidatorEmailRule; } declare namespace Infragistics { -export class IgValidatorPatternRule { +class IgValidatorPatternRule { constructor(name: string); constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92700,7 +92229,7 @@ IgValidatorPatternRule: typeof Infragistics.IgValidatorPatternRule; } declare namespace Infragistics { -export class IgValidatorCustomRule { +class IgValidatorCustomRule { constructor(name: string); constructor(formatItems: any[]); getMessageType(): void; @@ -92726,7 +92255,7 @@ IgValidatorCustomRule: typeof Infragistics.IgValidatorCustomRule; } declare namespace Infragistics { -export class IgValidatorCreditCardRule { +class IgValidatorCreditCardRule { constructor(name: string); constructor(formatItems: any[]); @@ -93489,7 +93018,6 @@ interface JQuery { igValidator(methodName: string, ...methodParams: any[]): any; } interface IgVideoPlayerBookmark { - /** * Gets/Sets where the bookmark will be positioned. Should be between 0 and movie duration in seconds. * @@ -93515,7 +93043,6 @@ interface IgVideoPlayerBookmark { } interface IgVideoPlayerRelatedVideo { - /** * Gets/Sets the URL of the related video image. * @@ -93565,7 +93092,6 @@ interface IgVideoPlayerRelatedVideo { } interface IgVideoPlayerBanner { - /** * Gets/Sets the banner image url. * @@ -93645,7 +93171,6 @@ interface IgVideoPlayerBanner { } interface IgVideoPlayerCommercialsLinkedCommercial { - /** * Gets/Sets the sources of the linked commercial video. * @@ -93677,7 +93202,6 @@ interface IgVideoPlayerCommercialsLinkedCommercial { } interface IgVideoPlayerCommercialsEmbeddedCommercial { - /** * Gets/Sets the start second of the embedded commercial. * @@ -93709,7 +93233,6 @@ interface IgVideoPlayerCommercialsEmbeddedCommercial { } interface IgVideoPlayerCommercialsAdMessage { - /** * Gets/Sets whether to apply an animation effect when showing or hiding the ad message. If set to true, the animation is played for [animationDuration](ui.igvideoplayer#options:commercials.adMessage.animationDuration) in milliseconds. * @@ -93741,7 +93264,6 @@ interface IgVideoPlayerCommercialsAdMessage { } interface IgVideoPlayerCommercials { - /** * Gets/Sets an array of linked commercial objects. A linked commercial is a separate video file that will be played in the specified position of the original movie clip by [startTime](ui.igvideoplayer#options:commercials.linkedCommercials.startTime). This feature is useful if you have frequently changing outside commercial sources. * @@ -93783,7 +93305,6 @@ interface EndedEvent { } interface EndedEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93800,7 +93321,6 @@ interface PlayingEvent { } interface PlayingEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93817,7 +93337,6 @@ interface PausedEvent { } interface PausedEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93834,7 +93353,6 @@ interface BufferingEvent { } interface BufferingEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93851,7 +93369,6 @@ interface ProgressEvent { } interface ProgressEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93873,7 +93390,6 @@ interface WaitingEvent { } interface WaitingEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93895,7 +93411,6 @@ interface EnterFullScreenEvent { } interface EnterFullScreenEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93907,7 +93422,6 @@ interface ExitFullScreenEvent { } interface ExitFullScreenEventUIParam { - /** * Used to get the url of the playing video. */ @@ -93919,7 +93433,6 @@ interface RelatedVideoClickEvent { } interface RelatedVideoClickEventUIParam { - /** * Used to get the relatedVideo object from the relatedVideos array. */ @@ -93936,7 +93449,6 @@ interface BannerVisibleEvent { } interface BannerVisibleEventUIParam { - /** * Used to get the banner index in the banners array. */ @@ -93958,7 +93470,6 @@ interface BannerHiddenEvent { } interface BannerHiddenEventUIParam { - /** * Used to get the banner index in the banners array. */ @@ -93980,7 +93491,6 @@ interface BannerClickEvent { } interface BannerClickEventUIParam { - /** * Used to get the banner html element in the DOM. */ @@ -93988,7 +93498,6 @@ interface BannerClickEventUIParam { } interface IgVideoPlayer { - /** * Gets/Sets a list of video sources to choose from. Best coded/format is automatically detected by the control. Supported types are depending on the browser and could be one of the following mov, mp4, webm, ogg. * @@ -94254,7 +93763,6 @@ interface IgVideoPlayer { [optionName: string]: any; } interface IgVideoPlayerMethods { - /** * Returns the element on which the widget was instantiated */ @@ -94987,7 +94495,6 @@ interface JQuery { igVideoPlayer(methodName: string, ...methodParams: any[]): any; } interface IgZoombarDefaultZoomWindow { - /** * The left component of the zoom window in percentages. * @@ -95070,7 +94577,6 @@ interface WindowResizingEventUIParam { } interface IgZoombar { - /** * Specifies a provider class which interfaces the widget that is being zoomed. * object Provider class to use. The provider should implement all methods in the $.ig.ZoombarProviderDefault class and is suggested to be extended from it. @@ -95217,7 +94723,6 @@ interface IgZoombar { [optionName: string]: any; } interface IgZoombarMethods { - /** * Destroys the Zoombar widget */ @@ -95256,7 +94761,6 @@ interface JQuery { } interface ZoombarProviderDefaultSettings { - /** * Contains the target component's instance */ @@ -95283,7 +94787,7 @@ interface ZoombarProviderDefaultSettings { } declare namespace Infragistics { -export class ZoombarProviderDefault { +class ZoombarProviderDefault { constructor(settings: ZoombarProviderDefaultSettings); /** @@ -95359,7 +94863,7 @@ ZoombarProviderDefault: typeof Infragistics.ZoombarProviderDefault; } declare namespace Infragistics { -export class ZoombarProviderDataChart { +class ZoombarProviderDataChart { constructor(settings: ZoombarProviderDefaultSettings); clean(): void; getBaseOpts(options: Object): void; From b3814c37f6519de7760d313f34a6d61c1db6eb1c Mon Sep 17 00:00:00 2001 From: "E.G. Hornbostel" Date: Tue, 22 Aug 2017 12:44:55 -0700 Subject: [PATCH 032/316] Added options for diffChars and diffWords --- types/diff/index.d.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/types/diff/index.d.ts b/types/diff/index.d.ts index 49975756f4..05b02d2bcd 100644 --- a/types/diff/index.d.ts +++ b/types/diff/index.d.ts @@ -4,10 +4,20 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 + export = JsDiff; export as namespace JsDiff; declare namespace JsDiff { + interface ICaseOptions { + ignoreCase: boolean + } + + interface ILinesOptions { + ignoreWhitespace?: boolean, + newlineIsToken?: boolean + } + interface IDiffResult { value: string; count?: number; @@ -54,18 +64,15 @@ declare namespace JsDiff { tokenize(value: string): any; // return types are string or string[] } - function diffChars(oldStr: string, newStr: string): IDiffResult[]; + function diffChars(oldStr: string, newStr: string, options?: ICaseOptions): IDiffResult[]; - function diffWords(oldStr: string, newStr: string): IDiffResult[]; + function diffWords(oldStr: string, newStr: string, options?: ICaseOptions): IDiffResult[]; function diffWordsWithSpace(oldStr: string, newStr: string): IDiffResult[]; function diffJson(oldObj: object, newObj: object): IDiffResult[]; - function diffLines(oldStr: string, newStr: string, options?: { - ignoreWhitespace?: boolean, - newlineIsToken?: boolean, - }): IDiffResult[]; + function diffLines(oldStr: string, newStr: string, options?: ILinesOptions): IDiffResult[]; function diffCss(oldStr: string, newStr: string): IDiffResult[]; From 9466d1bd2491c513395fadc7ca9dc9c42279cd94 Mon Sep 17 00:00:00 2001 From: "E.G. Hornbostel" Date: Tue, 22 Aug 2017 14:27:05 -0700 Subject: [PATCH 033/316] Fixed tslint errors. --- types/diff/diff-tests.ts | 2 +- types/diff/index.d.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/types/diff/diff-tests.ts b/types/diff/diff-tests.ts index 0d49147c33..e787c44f48 100644 --- a/types/diff/diff-tests.ts +++ b/types/diff/diff-tests.ts @@ -7,7 +7,7 @@ let diff = jsdiff.diffChars(one, other); diff.forEach(part => { const mark = part.added ? '+' : part.removed ? '-' : ' '; - console.log(mark + " " + part.value); + console.log(`${mark} ${part.value}`); }); // -------------------------- diff --git a/types/diff/index.d.ts b/types/diff/index.d.ts index 05b02d2bcd..720a8d3270 100644 --- a/types/diff/index.d.ts +++ b/types/diff/index.d.ts @@ -4,18 +4,17 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 - export = JsDiff; export as namespace JsDiff; declare namespace JsDiff { interface ICaseOptions { - ignoreCase: boolean + ignoreCase: boolean; } interface ILinesOptions { - ignoreWhitespace?: boolean, - newlineIsToken?: boolean + ignoreWhitespace?: boolean; + newlineIsToken?: boolean; } interface IDiffResult { From 18dff7db038d2cc7150aa330f1b9de07177647b2 Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Wed, 23 Aug 2017 08:47:48 +1000 Subject: [PATCH 034/316] Added type literal for clip shape Added optional done params --- types/nightmare/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index 5e4160fd41..be51b05374 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -95,8 +95,8 @@ declare class Nightmare { removeListener(event: 'prompt', cb: (msg: string, defaultValue?: string) => void): Nightmare; removeListener(event: 'error', cb: (msg: string, trace?: Nightmare.IStackTrace[]) => void): Nightmare; removeListener(event: 'timeout', cb: (msg: string) => void): Nightmare; - screenshot(path: string): Nightmare; - screenshot(path: string, clip: Object): Nightmare; + screenshot(path: string, done?: (err: any) => void): Nightmare; + screenshot(path: string, clip?: { x: number, y: number, width: number, height: number }, done?: (err: any) => void): Nightmare; html(path: string, saveType: string): Nightmare; html(path: string, saveType: 'HTMLOnly'): Nightmare; html(path: string, saveType: 'HTMLComplete'): Nightmare; From a4421c2566674b7856fd2899ee3d5034f7784cd1 Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Wed, 23 Aug 2017 09:39:17 +1000 Subject: [PATCH 035/316] Added more overloads for screenshot to handle buffer --- types/nightmare/index.d.ts | 6 ++++-- types/nightmare/nightmare-tests.ts | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index be51b05374..d487df20f1 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -1,3 +1,5 @@ +/// + // Type definitions for Nightmare 1.6.6 // Project: https://github.com/segmentio/nightmare // Definitions by: horiuchi @@ -5,8 +7,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 - - declare class Nightmare { constructor(options?: Nightmare.IConstructorOptions); @@ -95,7 +95,9 @@ declare class Nightmare { removeListener(event: 'prompt', cb: (msg: string, defaultValue?: string) => void): Nightmare; removeListener(event: 'error', cb: (msg: string, trace?: Nightmare.IStackTrace[]) => void): Nightmare; removeListener(event: 'timeout', cb: (msg: string) => void): Nightmare; + screenshot(done?: (err: any, buffer: Buffer) => void): Nightmare; screenshot(path: string, done?: (err: any) => void): Nightmare; + screenshot(clip: { x: number, y: number, width: number, height: number }, done?: (err: any, buffer: Buffer) => void): Nightmare; screenshot(path: string, clip?: { x: number, y: number, width: number, height: number }, done?: (err: any) => void): Nightmare; html(path: string, saveType: string): Nightmare; html(path: string, saveType: 'HTMLOnly'): Nightmare; diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index 37ac342d5f..443f239a4d 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -3,7 +3,6 @@ import Nightmare = require("nightmare"); - new Nightmare() .goto('http://yahoo.com') .type('input[title="Search"]', 'github nightmare') @@ -168,10 +167,24 @@ new Nightmare() .run(done); new Nightmare() + .goto('http://yahoo.com') + .screenshot((err, buffer) => { + console.log(Buffer.isBuffer(buffer)); + }) + .run(done); + + new Nightmare() .goto('http://yahoo.com') .screenshot('test/test.png', { x: 10, y: 5, width: 10, height: 10}) .run(done); + new Nightmare() + .goto('http://yahoo.com') + .screenshot({ x: 10, y: 5, width: 10, height: 10}, (err, buffer) => { + console.log(Buffer.isBuffer(buffer)); + }) + .run(done); + new Nightmare() .goto('http://yahoo.com') .pdf('test/test.pdf') From 99aa44bb736e9439fa9d0dfd9ca343f6210db371 Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Wed, 23 Aug 2017 09:44:49 +1000 Subject: [PATCH 036/316] Added node reference to test page --- types/nightmare/nightmare-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index 443f239a4d..9275e04ff2 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -1,5 +1,7 @@ /// +/// + import Nightmare = require("nightmare"); From 4518ee787ea7d3adaaa11292e396861c5641875b Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Wed, 23 Aug 2017 09:51:10 +1000 Subject: [PATCH 037/316] Reorder reference / definition --- types/nightmare/index.d.ts | 4 ++-- types/nightmare/nightmare-tests.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index d487df20f1..0b717b4555 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -1,5 +1,3 @@ -/// - // Type definitions for Nightmare 1.6.6 // Project: https://github.com/segmentio/nightmare // Definitions by: horiuchi @@ -7,6 +5,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +/// + declare class Nightmare { constructor(options?: Nightmare.IConstructorOptions); diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index 9275e04ff2..ded854ce06 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -1,8 +1,6 @@ - /// /// - import Nightmare = require("nightmare"); new Nightmare() From cfd677d7dcfcdad03265bd019817de65eaa2499a Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Wed, 23 Aug 2017 09:54:13 +1000 Subject: [PATCH 038/316] Remove redundant node reference --- types/nightmare/nightmare-tests.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index ded854ce06..dec08730f7 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -1,5 +1,4 @@ /// -/// import Nightmare = require("nightmare"); From 23047318b39967460da6c119f74badf4be3b8e9a Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Wed, 23 Aug 2017 15:45:46 +1000 Subject: [PATCH 039/316] Added x and y constructor arguments for browser position --- types/nightmare/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index 0b717b4555..77c433ae80 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -138,6 +138,8 @@ declare namespace Nightmare { phantomPath?: string; show?: boolean; typeInterval?: number; + x?: number; + y?: number; } export interface IRequest { From 16caa8fc42719ecda67d71002c4f3022a285d7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20B=C3=ADro=C5=A1?= Date: Wed, 23 Aug 2017 07:55:33 +0200 Subject: [PATCH 040/316] Added SubmissionError into export for immutabable Added SubmissionError into export in redux-from/immutable/index.d.ts in order to be able to use SubmissionError with immutable store state. In redux-form/lib/SubmissionError.d.ts changed default generic from void to any, in order to be able to use it as is state redux-form docs. http://redux-form.com/7.0.3/examples/submitValidation/ Because there is no way to pass anoter type into generic constructor from real project. --- types/redux-form/immutable/index.d.ts | 1 + types/redux-form/lib/SubmissionError.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/redux-form/immutable/index.d.ts b/types/redux-form/immutable/index.d.ts index 3eacb2338c..fe5cc6904d 100644 --- a/types/redux-form/immutable/index.d.ts +++ b/types/redux-form/immutable/index.d.ts @@ -20,4 +20,5 @@ export { isPristine, isSubmitting, isValid, + SubmissionError } from "redux-form"; diff --git a/types/redux-form/lib/SubmissionError.d.ts b/types/redux-form/lib/SubmissionError.d.ts index ffe7a0064a..790cb8e697 100644 --- a/types/redux-form/lib/SubmissionError.d.ts +++ b/types/redux-form/lib/SubmissionError.d.ts @@ -1,7 +1,7 @@ import { FormErrors } from "redux-form"; -export interface SubmissionErrorConstructor { +export interface SubmissionErrorConstructor { new (errors?: FormErrors): Error; } -declare const SubmissionError: SubmissionErrorConstructor; +declare const SubmissionError: SubmissionErrorConstructor; From 8cb51be625fbba0988cba5847363dc56eed3eeee Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Wed, 23 Aug 2017 11:06:26 +0300 Subject: [PATCH 041/316] Fix for no documents found - make results optional --- types/mongoose-simple-random/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongoose-simple-random/index.d.ts b/types/mongoose-simple-random/index.d.ts index 16b1c21483..679ba1fbee 100644 --- a/types/mongoose-simple-random/index.d.ts +++ b/types/mongoose-simple-random/index.d.ts @@ -15,7 +15,7 @@ declare module 'mongoose-simple-random' { declare module "mongoose" { interface Model extends NodeJS.EventEmitter, ModelProperties { - findRandom(conditions: Object, projection?: Object | null, options?: Object | null, callback?: (err: any, res: T[]) => void) + findRandom(conditions: Object, projection?: Object | null, options?: Object | null, callback?: (err: any, res?: T[]) => void) : void; } } From 57b06dabca2964a3bd9b9045d215ab6e44f1f39a Mon Sep 17 00:00:00 2001 From: Heather Booker Date: Wed, 23 Aug 2017 15:46:14 -0400 Subject: [PATCH 042/316] bootstrap.timepicker: add Date as defaultTime option --- types/bootstrap.timepicker/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/bootstrap.timepicker/index.d.ts b/types/bootstrap.timepicker/index.d.ts index 384d550e57..49283cfde7 100644 --- a/types/bootstrap.timepicker/index.d.ts +++ b/types/bootstrap.timepicker/index.d.ts @@ -1,13 +1,13 @@ // Type definitions for bootstrap.timepicker // Project: https://github.com/jdewit/bootstrap-timepicker -// Definitions by: derikwhittaker +// Definitions by: derikwhittaker , Heather Booker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// interface TimepickerOptions { - defaultTime?: string|boolean; + defaultTime?: string|boolean|Date; disableFocus?: boolean; disableMousewheel?: boolean; explicitMode?: boolean; From 6800cd1a0aa752cf6f2e05cb7d5317fd5d3856c1 Mon Sep 17 00:00:00 2001 From: Joscha Feth Date: Thu, 24 Aug 2017 17:54:13 +1000 Subject: [PATCH 043/316] add: xhr-mock --- types/xhr-mock/index.d.ts | 57 ++++++++++++++++++++++++++++++++ types/xhr-mock/tsconfig.json | 23 +++++++++++++ types/xhr-mock/tslint.json | 1 + types/xhr-mock/xhr-mock-tests.ts | 25 ++++++++++++++ 4 files changed, 106 insertions(+) create mode 100644 types/xhr-mock/index.d.ts create mode 100644 types/xhr-mock/tsconfig.json create mode 100644 types/xhr-mock/tslint.json create mode 100644 types/xhr-mock/xhr-mock-tests.ts diff --git a/types/xhr-mock/index.d.ts b/types/xhr-mock/index.d.ts new file mode 100644 index 0000000000..eacec1c5fc --- /dev/null +++ b/types/xhr-mock/index.d.ts @@ -0,0 +1,57 @@ +// Type definitions for xhr-mock 1.9 +// Project: https://github.com/jameslnewell/xhr-mock#readme +// Definitions by: Joscha Feth +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace mock { + interface Headers { + [k: string]: string; + } + + interface MockResponse { + status(code: number): this; + status(): number; + statusText(statusText: string): this; + statusText(): string; + header(name: string, value: string): this; + header(name: string): string | null; + headers(obj: Headers): this; + headers(): Headers; + body(body: string): this; + body(): string; + timeout(timeout: boolean | number): this; + timeout(): boolean | number; + } + + interface MockRequest { + method(): string; + url(): string; + query(): string; + header(name: string, value: string): this; + header(name: string): string | null; + headers(obj: Headers): this; + headers(): Headers; + body(body: string): this; + body(): string; + progress(loaded: number, total: number, lengthComputable?: boolean): void; + } + + type MockFunction = (req: MockRequest, res: MockResponse) => MockResponse | null; + + interface XhrMock { + XMLHttpRequest: XMLHttpRequest; + setup(): this; + teardown(): this; + reset(): this; + mock(method: string, url: string, fn: mock.MockFunction): this; + get(url: string, fn: mock.MockFunction): this; + post(url: string, fn: mock.MockFunction): this; + put(url: string, fn: mock.MockFunction): this; + patch(url: string, fn: mock.MockFunction): this; + delete(url: string, fn: mock.MockFunction): this; + } +} + +declare var mock: mock.XhrMock; +export = mock; +export as namespace mock; diff --git a/types/xhr-mock/tsconfig.json b/types/xhr-mock/tsconfig.json new file mode 100644 index 0000000000..6a5c03268f --- /dev/null +++ b/types/xhr-mock/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "xhr-mock-tests.ts" + ] +} diff --git a/types/xhr-mock/tslint.json b/types/xhr-mock/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/xhr-mock/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/xhr-mock/xhr-mock-tests.ts b/types/xhr-mock/xhr-mock-tests.ts new file mode 100644 index 0000000000..fd26b3a43f --- /dev/null +++ b/types/xhr-mock/xhr-mock-tests.ts @@ -0,0 +1,25 @@ +// replace the real XHR object with the mock XHR object +mock.setup(); + +// create a mock response for all POST requests with the URL http://localhost/api/user +mock.post('http://localhost/api/user', (req: mock.MockRequest, res: mock.MockResponse) => { + // return null; //simulate an error + // return res.timeout(true); //simulate a timeout + + return res + .status(201) + .header('Content-Type', 'application/json') + .body(JSON.stringify({data: { + first_name: 'John', last_name: 'Smith' + }})); +}); + +// create an instance of the (mock) XHR object and use as per normal +const xhr = new XMLHttpRequest(); + +xhr.onreadystatechange = () => { + if (xhr.readyState === 4) { + // when you're finished put the real XHR object back + mock.teardown(); + } +}; From 149dde5da4afd0172f82a1bdd66b23581e4a56c2 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Thu, 24 Aug 2017 09:02:31 -0400 Subject: [PATCH 044/316] Revert "Remove `--allowSyntheticDefaultImports`" (from ember-testing-helpers) This reverts commit 2ff76c2755156481894f7db78a7fa539b2aa3112. --- types/ember-testing-helpers/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/ember-testing-helpers/tsconfig.json b/types/ember-testing-helpers/tsconfig.json index aaf474ecba..cd7634bd25 100644 --- a/types/ember-testing-helpers/tsconfig.json +++ b/types/ember-testing-helpers/tsconfig.json @@ -14,7 +14,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", From 4ad5e86ffe81753f4fd3b53171ab33d9f313947e Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Thu, 24 Aug 2017 09:02:49 -0400 Subject: [PATCH 045/316] Revert "Remove `--allowSyntheticDefaultImports`" (from ember) This reverts commit 43a1348b9146b0c6130a37f28d019eb2924ad9a3. --- types/ember/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/ember/tsconfig.json b/types/ember/tsconfig.json index b73838d20e..fbc4052a08 100644 --- a/types/ember/tsconfig.json +++ b/types/ember/tsconfig.json @@ -14,7 +14,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", From 98bdf484279da664100ddfc5dd28dfe7f348ab5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20Slint=C3=A1k?= Date: Thu, 24 Aug 2017 20:58:38 +0200 Subject: [PATCH 046/316] Add missing overload to whatResource method in acl --- types/acl/index.d.ts | 5 ++++- types/acl/test/index.ts | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/types/acl/index.d.ts b/types/acl/index.d.ts index 3aa81de8e3..43de3f5369 100644 --- a/types/acl/index.d.ts +++ b/types/acl/index.d.ts @@ -50,7 +50,10 @@ interface Acl { allowedPermissions: (userId: Value, resources: strings, cb?: AnyCallback) => Promise; isAllowed: (userId: Value, resources: strings, permissions: strings, cb?: AllowedCallback) => Promise; areAnyRolesAllowed: (roles: strings, resource: strings, permissions: strings, cb?: AllowedCallback) => Promise; - whatResources: (roles: strings, permissions: strings, cb?: AnyCallback) => Promise; + whatResources: { + (roles: strings, cb?: AnyCallback): Promise; + (roles: strings, permissions: strings, cb?: AnyCallback): Promise; + } permittedResources: (roles: strings, permissions: strings, cb?: Function) => Promise; middleware: (numPathComponents?: number, userId?: Value | GetUserId, actions?: strings) => express.RequestHandler; } diff --git a/types/acl/test/index.ts b/types/acl/test/index.ts index c29574326d..bb3e6fa54e 100644 --- a/types/acl/test/index.ts +++ b/types/acl/test/index.ts @@ -66,6 +66,18 @@ acl.isAllowed('joed', 'blogs', 'view', (err, res) => { } }); +acl.whatResources('foo', (err, res) => { + if (res) { + console.log(res); + } +}); + +acl.whatResources('foo', 'view', (err, res) => { + if (res) { + console.log(res); + } +}); + acl.isAllowed('jsmith', 'blogs', ['edit','view','delete']) .then((result) => { console.dir('jsmith is allowed blogs ' + result); From 6738d66ea6009eb6d0536cb8ea2734ee9313628e Mon Sep 17 00:00:00 2001 From: Sai Kiran Vadlamudi Date: Thu, 24 Aug 2017 17:49:24 -0400 Subject: [PATCH 047/316] Add Resolutions to SlotValue Add the necessary interfaces to describe the structure for Alexa Entity Resolution. --- types/alexa-sdk/index.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index 983c2fa063..ac156ec812 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -98,10 +98,34 @@ export interface Request { locale?: string; } +export interface ResolutionStatus { + code: String +} + +export interface ResolutionValue { + name: String, + id: String +} + +export interface ResolutionValueContainer { + value: ResolutionValue +} + +export interface Resolution { + authority: String, + status: ResolutionStatus, + values: Array +} + +export interface Resolutions { + resolutionsPerAuthority: Array +} + export interface SlotValue { confirmationStatus?: ConfirmationStatuses; name: string; value?: any; + resolutions?: Resolutions } export interface Intent { From 693e499e15e53d03abd3188530e0066b015b5f61 Mon Sep 17 00:00:00 2001 From: Sai Kiran Vadlamudi Date: Thu, 24 Aug 2017 18:06:24 -0400 Subject: [PATCH 048/316] Fix the CI errors Missed semicolons at the end of lines and string instead of String. --- types/alexa-sdk/index.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index ac156ec812..7c0bf42f8e 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -99,33 +99,33 @@ export interface Request { } export interface ResolutionStatus { - code: String + code: string; } export interface ResolutionValue { - name: String, - id: String + name: string; + id: string; } export interface ResolutionValueContainer { - value: ResolutionValue + value: ResolutionValue; } export interface Resolution { - authority: String, - status: ResolutionStatus, - values: Array + authority: string; + status: ResolutionStatus; + values: ResolutionValueContainer[]; } export interface Resolutions { - resolutionsPerAuthority: Array + resolutionsPerAuthority: Resolution[]; } export interface SlotValue { - confirmationStatus?: ConfirmationStatuses; + confirmationStatus: ConfirmationStatuses; name: string; value?: any; - resolutions?: Resolutions + resolutions?: Resolutions; } export interface Intent { From 59bb1fa3b5b19601ff18f4322d9e993b665d2385 Mon Sep 17 00:00:00 2001 From: Sai Kiran Vadlamudi Date: Thu, 24 Aug 2017 18:07:24 -0400 Subject: [PATCH 049/316] confirmationStatus is optional Fix the removed ? at the end of confirmationStatus in SlotValue. --- types/alexa-sdk/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index 7c0bf42f8e..1c39755b2d 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -122,7 +122,7 @@ export interface Resolutions { } export interface SlotValue { - confirmationStatus: ConfirmationStatuses; + confirmationStatus?: ConfirmationStatuses; name: string; value?: any; resolutions?: Resolutions; From 22cb8115d805384f334e1bfc563ce2e0e36abcfa Mon Sep 17 00:00:00 2001 From: Andrew Lessels Date: Fri, 25 Aug 2017 08:28:51 +1000 Subject: [PATCH 050/316] Fix indentation --- types/nightmare/nightmare-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index dec08730f7..434964bb20 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -172,12 +172,12 @@ new Nightmare() }) .run(done); - new Nightmare() +new Nightmare() .goto('http://yahoo.com') .screenshot('test/test.png', { x: 10, y: 5, width: 10, height: 10}) .run(done); - new Nightmare() +new Nightmare() .goto('http://yahoo.com') .screenshot({ x: 10, y: 5, width: 10, height: 10}, (err, buffer) => { console.log(Buffer.isBuffer(buffer)); From f5b9cce7cad8cf51b8ed4f08c43bd6473a161fd9 Mon Sep 17 00:00:00 2001 From: Simon de Lang Date: Fri, 25 Aug 2017 10:29:13 +0200 Subject: [PATCH 051/316] Refactor the reporter so it is a constructor function --- types/mocha/index.d.ts | 12 ++++++++---- types/mocha/mocha-tests.ts | 28 ++++++++++++++-------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/types/mocha/index.d.ts b/types/mocha/index.d.ts index bc2f69a0a4..07f59e6628 100644 --- a/types/mocha/index.d.ts +++ b/types/mocha/index.d.ts @@ -17,7 +17,7 @@ interface MochaSetupOptions { globals?: any[]; // reporter instance (function or string), defaults to `mocha.reporters.Spec` - reporter?: any; + reporter?: string | ReporterConstructor; // bail on the first test failure bail?: boolean; @@ -62,12 +62,16 @@ declare function beforeEach(description: string, callback: (this: Mocha.IBeforeA declare function afterEach(callback: (this: Mocha.IBeforeAndAfterContext, done: MochaDone) => any): void; declare function afterEach(description: string, callback: (this: Mocha.IBeforeAndAfterContext, done: MochaDone) => any): void; +interface ReporterConstructor { + new(runner: Mocha.IRunner, options: any): any; +} + declare class Mocha { currentTest: Mocha.ITestDefinition; constructor(options?: { grep?: RegExp; ui?: string; - reporter?: string; + reporter?: string | ReporterConstructor; timeout?: number; reporterOptions?: any; slow?: number; @@ -81,7 +85,7 @@ declare class Mocha { /** Sets reporter by name, defaults to "spec". */ reporter(name: string): Mocha; /** Sets reporter constructor, defaults to mocha.reporters.Spec. */ - reporter(reporter: (runner: Mocha.IRunner, options: any) => any): Mocha; + reporter(reporter: ReporterConstructor): Mocha; ui(value: string): Mocha; grep(value: string): Mocha; grep(value: RegExp): Mocha; @@ -154,7 +158,7 @@ declare namespace Mocha { interface ITest extends IRunnable { parent: ISuite; pending: boolean; - state: 'failed'|'passed'|undefined; + state: 'failed' | 'passed' | undefined; fullTitle(): string; } diff --git a/types/mocha/mocha-tests.ts b/types/mocha/mocha-tests.ts index 7271ebbd0c..55ba6fa961 100644 --- a/types/mocha/mocha-tests.ts +++ b/types/mocha/mocha-tests.ts @@ -105,7 +105,7 @@ function test_before() { } function test_setup() { - setup(function() { + setup(function () { boolean = this.currentTest.async; boolean = this.currentTest.pending; boolean = this.currentTest.sync; @@ -113,9 +113,9 @@ function test_setup() { string = this.currentTest.title; string = this.currentTest.fullTitle(); string = this.currentTest.state; - }); + }); - setup(function() { + setup(function () { this['sharedState'] = true; boolean = this.currentTest.async; boolean = this.currentTest.pending; @@ -124,7 +124,7 @@ function test_setup() { string = this.currentTest.title; string = this.currentTest.fullTitle(); string = this.currentTest.state; - }); + }); setup(function (done) { done(); @@ -151,7 +151,7 @@ function test_after() { } function test_teardown() { - teardown(function() { + teardown(function () { boolean = this.currentTest.async; boolean = this.currentTest.pending; boolean = this.currentTest.sync; @@ -161,7 +161,7 @@ function test_teardown() { string = this.currentTest.state; }); - teardown(function() { + teardown(function () { this['sharedState'] = true; boolean = this.currentTest.async; boolean = this.currentTest.pending; @@ -172,7 +172,7 @@ function test_teardown() { string = this.currentTest.state; }); - teardown(function(done) { + teardown(function (done) { done(); boolean = this.currentTest.async; boolean = this.currentTest.pending; @@ -217,7 +217,7 @@ function test_beforeEach() { string = this.currentTest.state; }); - beforeEach("my description", function() { + beforeEach("my description", function () { boolean = this.currentTest.async; boolean = this.currentTest.pending; boolean = this.currentTest.sync; @@ -227,7 +227,7 @@ function test_beforeEach() { string = this.currentTest.state; }); - beforeEach("my description", function(done) { + beforeEach("my description", function (done) { done(); boolean = this.currentTest.async; boolean = this.currentTest.pending; @@ -280,7 +280,7 @@ function test_afterEach() { string = this.currentTest.state; }); - afterEach("my description", function() { + afterEach("my description", function () { boolean = this.currentTest.async; boolean = this.currentTest.pending; boolean = this.currentTest.sync; @@ -290,7 +290,7 @@ function test_afterEach() { string = this.currentTest.state; }); - afterEach("my description", function(done) { + afterEach("my description", function (done) { done(); boolean = this.currentTest.async; boolean = this.currentTest.pending; @@ -316,7 +316,7 @@ function test_reporter_string() { } function test_reporter_function() { - mocha.reporter(function () { }); + mocha.reporter(class { }); } function test_setup_slow_option() { @@ -340,7 +340,7 @@ function test_setup_reporter_string_option() { } function test_setup_reporter_function_option() { - mocha.setup({ reporter: function () { } }); + mocha.setup({ reporter: class { } }); } function test_setup_bail_option() { @@ -389,7 +389,7 @@ function test_chaining() { .setup({ slow: 25 }) .growl() .reporter('html') - .reporter(function () { }); + .reporter(class { }); } import MochaDef = require('mocha'); From 2ce5a2ef2df0105b80b4861e1d27f09c96bfcf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Corbi=C3=A8re?= Date: Fri, 25 Aug 2017 11:26:51 +0200 Subject: [PATCH 052/316] Adds the agenda property to Job. --- types/agenda/agenda-tests.ts | 10 ++++++---- types/agenda/index.d.ts | 7 ++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/types/agenda/agenda-tests.ts b/types/agenda/agenda-tests.ts index 8c5e3e19bb..964eb1b836 100644 --- a/types/agenda/agenda-tests.ts +++ b/types/agenda/agenda-tests.ts @@ -3,16 +3,16 @@ import * as Agenda from "agenda"; var mongoConnectionString = "mongodb://127.0.0.1/agenda"; var agenda = new Agenda({ db: { address: mongoConnectionString } }); - - + + agenda.define('delete old users', (job, done) => { }); agenda.on('ready', () => { agenda.every('3 minutes', 'delete old users'); - - // Alternatively, you could also do: + + // Alternatively, you could also do: agenda.every('*/3 * * * *', 'delete old users'); agenda.start(); @@ -81,6 +81,8 @@ agenda.stop(function() { process.exit(0); }); +job.agenda.now('do the hokey pokey'); + job.repeatEvery('10 minutes'); job.repeatAt('3:30pm'); diff --git a/types/agenda/index.d.ts b/types/agenda/index.d.ts index fe8ecc45a6..d170a6f6f1 100644 --- a/types/agenda/index.d.ts +++ b/types/agenda/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Agenda v0.8.9 +// Type definitions for Agenda v1.0.0 // Project: https://github.com/rschmukler/agenda // Definitions by: Meir Gottlieb // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -337,6 +337,11 @@ declare namespace Agenda { */ attrs: JobAttributes; + /** + * The agenda that created the job. + */ + agenda: Agenda; + /** * Specifies an interval on which the job should repeat. * @param interval A human-readable format String, a cron format String, or a Number. From fb5eebb88b653c71fac3b50b5f7d977239a8c886 Mon Sep 17 00:00:00 2001 From: David Ng Date: Fri, 25 Aug 2017 17:57:46 +0800 Subject: [PATCH 053/316] Fix missing success and fail hooks --- types/passport-local/index.d.ts | 5 ++--- types/passport-local/passport-local-tests.ts | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/types/passport-local/index.d.ts b/types/passport-local/index.d.ts index 4a87b132d8..70c3ecfdfc 100644 --- a/types/passport-local/index.d.ts +++ b/types/passport-local/index.d.ts @@ -7,7 +7,7 @@ -import passport = require('passport'); +import { Strategy as PassportStrategy } from 'passport-strategy'; import express = require('express'); interface IStrategyOptions { @@ -34,11 +34,10 @@ interface VerifyFunction { (username: string, password: string, done: (error: any, user?: any, options?: IVerifyOptions) => void): void; } -declare class Strategy implements passport.Strategy { +declare class Strategy extends PassportStrategy { constructor(options: IStrategyOptionsWithRequest, verify: VerifyFunctionWithRequest); constructor(options: IStrategyOptions, verify: VerifyFunction); constructor(verify: VerifyFunction); name: string; - authenticate: (req: express.Request, options?: Object) => void; } diff --git a/types/passport-local/passport-local-tests.ts b/types/passport-local/passport-local-tests.ts index c177664103..a282cb53d3 100644 --- a/types/passport-local/passport-local-tests.ts +++ b/types/passport-local/passport-local-tests.ts @@ -12,6 +12,10 @@ interface IUser { username: string; } +const testingLocalStrategy = new local.Strategy(()=>{}); +testingLocalStrategy.success = () => {}; +testingLocalStrategy.fail = () => {}; + class User implements IUser { public username: string; public password: string; From e386999be7c0ef44abf12aeda2355a3a3bd006c2 Mon Sep 17 00:00:00 2001 From: Conrad Wahlen Date: Fri, 25 Aug 2017 14:01:16 +0200 Subject: [PATCH 054/316] Remove THREE prefix where not needed --- types/three/three-core.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 71dc6f4386..126d68a7a4 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -1608,14 +1608,14 @@ export class Object3D extends EventDispatcher { /** * Calls before rendering object */ - onBeforeRender: (renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera, geometry: THREE.Geometry | THREE.BufferGeometry, - material: THREE.Material, group: THREE.Group) => void; + onBeforeRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: Geometry | BufferGeometry, + material: Material, group: Group) => void; /** * Calls after rendering object */ - onAfterRender: (renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera, geometry: THREE.Geometry | THREE.BufferGeometry, - material: THREE.Material, group: THREE.Group) => void; + onAfterRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: Geometry | BufferGeometry, + material: Material, group: Group) => void; /** * From 0d10fe00dbf8dd46ec2db35461de7bdc64cd0d94 Mon Sep 17 00:00:00 2001 From: Conrad Wahlen Date: Fri, 25 Aug 2017 14:04:26 +0200 Subject: [PATCH 055/316] Add material array as option for Mesh and LineSegment --- types/three/three-core.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 126d68a7a4..c9c730ac6e 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -4707,17 +4707,17 @@ export const LinePieces: number; export class LineSegments extends Line { constructor( geometry?: Geometry | BufferGeometry, - material?: LineDashedMaterial | LineBasicMaterial | ShaderMaterial, + material?: LineDashedMaterial | LineBasicMaterial | ShaderMaterial | (LineDashedMaterial | LineBasicMaterial | ShaderMaterial)[], mode?: number ); } export class Mesh extends Object3D { - constructor(geometry?: Geometry, material?: Material); - constructor(geometry?: BufferGeometry, material?: Material); + constructor(geometry?: Geometry, material?: Material | Material []); + constructor(geometry?: BufferGeometry, material?: Material | Material []); geometry: Geometry|BufferGeometry; - material: Material; + material: Material | Material[]; drawMode: TrianglesDrawModes; setDrawMode(drawMode: TrianglesDrawModes): void; From 60ecc1bb40a5b2e9de3f2a0e835961465ba29b5f Mon Sep 17 00:00:00 2001 From: Jacob Eggers Date: Fri, 25 Aug 2017 09:13:04 -0700 Subject: [PATCH 056/316] Adding _.mapValues to v3 --- types/lodash/v3/index.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/types/lodash/v3/index.d.ts b/types/lodash/v3/index.d.ts index b4e9f78ab8..aba8a60fe4 100644 --- a/types/lodash/v3/index.d.ts +++ b/types/lodash/v3/index.d.ts @@ -13727,6 +13727,29 @@ declare module _ { mapValues(where: Dictionary): LoDashImplicitArrayWrapper; } + interface LoDashExplicitObjectWrapperBase { + /** + * @see _.mapValues + * TValue is the type of the property values of T. + * TResult is the type output by the ObjectIterator function + */ + mapValues(callback: ObjectIterator): LoDashExplicitObjectWrapper>; + + /** + * @see _.mapValues + * TResult is the type of the property specified by pluck. + * T should be a Dictionary> + */ + mapValues(pluck: string): LoDashExplicitObjectWrapper>; + + /** + * @see _.mapValues + * TResult is the type of the properties of each object in the values of T + * T should be a Dictionary> + */ + mapValues(where: Dictionary): LoDashExplicitObjectWrapper; + } + //_.merge interface MergeCustomizer { (value: any, srcValue: any, key?: string, object?: Object, source?: Object): any; From 2bbbc149f1f0e0d5e82c4d62daf26bdb46635241 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Fri, 25 Aug 2017 09:22:57 -0700 Subject: [PATCH 057/316] Add support for tar v4 --- types/tar/index.d.ts | 523 +++++++++++++++++++++++++++++++++++++++-- types/tar/tar-tests.ts | 49 +++- types/tar/tslint.json | 3 + 3 files changed, 546 insertions(+), 29 deletions(-) create mode 100644 types/tar/tslint.json diff --git a/types/tar/index.d.ts b/types/tar/index.d.ts index 4b62578290..7a81825894 100644 --- a/types/tar/index.d.ts +++ b/types/tar/index.d.ts @@ -1,13 +1,14 @@ -// Type definitions for tar v1.0.1 +// Type definitions for tar 4.0 // Project: https://github.com/npm/node-tar -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE , Connor Peet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TODO: When/if typings for [fstream](https://github.com/npm/fstream) are written, refactor this typing to use it for the various streams. /// - import stream = require("stream"); +import events = require("events"); +import zlib = require("zlib"); // #region Interfaces @@ -63,14 +64,11 @@ export interface PackStream extends NodeJS.ReadWriteStream { _process(): void; } -export interface ExtractStream extends ParseStream { -} - // #endregion // #region Enums -export declare var fields: { +export interface Fields { path: number; mode: number; uid: number; @@ -88,17 +86,19 @@ export declare var fields: { devmin: number; prefix: number; fill: number; -}; +} -export declare var fieldSize: number[]; -export declare var fieldOffs: number[]; -export declare var fieldEnds: number[]; +export type fields = Fields; // alias for backwards compatbility + +export const fieldSize: number[]; +export const fieldOffs: number[]; +export const fieldEnds: number[]; /** * Different values of the 'type' field * paths match the values of Stats.isX() functions, where appropriate */ -export declare var types: { +export const types: { 0: string; "\0": string; "": string; @@ -145,7 +145,7 @@ export declare var types: { /** * Values for the mode field */ -export declare var modes: { +export const modes: { suid: number; sgid: number; svtx: number; @@ -160,7 +160,7 @@ export declare var modes: { oexec: number; }; -export declare var numeric: { +export const numeric: { mode: boolean; uid: boolean; gid: boolean; @@ -176,7 +176,7 @@ export declare var numeric: { nlink: boolean; }; -export declare var knownExtended: { +export const knownExtended: { atime: boolean; charset: boolean; comment: boolean; @@ -193,8 +193,8 @@ export declare var knownExtended: { uname: boolean; }; -export declare var headerSize: number; -export declare var blockSize: number; +export const headerSize: number; +export const blockSize: number; //#endregion @@ -203,17 +203,14 @@ export declare var blockSize: number; /** * Returns a writable stream. Write tar data to it and it will emit entry events for each entry parsed from the tarball. This is used by tar.Extract. */ -export declare function Parse(): ParseStream; +export function Parse(): ParseStream; /** * Returns a through stream. Use fstream to write files into the pack stream and you will receive tar archive data from the pack stream. * This only works with directories, it does not work with individual files. * The optional properties object are used to set properties in the tar 'Global Extended Header'. */ -export declare function Pack(props?: HeaderProperties): PackStream; -/** - * Returns a through stream. Write tar data to the stream and the files in the tarball will be extracted onto the filesystem. - */ -export declare function Extract(path: string): ExtractStream; +export function Pack(props?: HeaderProperties): PackStream; + /** * Returns a through stream. Write tar data to the stream and the files in the tarball will be extracted onto the filesystem. * options can be: @@ -225,4 +222,482 @@ export declare function Extract(path: string): ExtractStream; * ``` * options also get passed to the fstream.Writer instance that tar uses internally. */ -export declare function Extract(opts: ExtractOptions): ExtractStream; +export function Extract(opts: ExtractOptions | string): ParseStream; + +export interface FileStat extends stream.Readable, Fields { + header: HeaderProperties; + startBlockSize: number; + blockRemain: number; + remain: number; + meta: boolean; + ignore: boolean; + size: number; +} + +export interface CreateOptions { + /** + * A function that will get called with (message, data) + * for any warnings encountered. + */ + onwarn?(message: string, data: Buffer): void; + + /** + * Treat warnings as crash-worthy errors. Default false. + */ + strict?: boolean; + + /** + * The current working directory for creating the archive. Defaults to process.cwd(). + */ + cwd?: string; + + /** + * Alias for cwd. + */ + C?: string; + + /** + * Set to any truthy value to create a gzipped archive, + * or an object with settings for zlib.Gzip() + */ + gzip?: boolean | zlib.ZlibOptions; + + /** + * Alias for gzip. + */ + z?: boolean | zlib.ZlibOptions; + + /** + * A function that gets called with (path, stat) for each entry being + * added. Return true to add the entry to the archive, or false to omit it. + */ + filter?(path: string, stat: FileStat): boolean; + + /** + * Omit metadata that is system-specific: ctime, atime, uid, gid, uname, + * gname, dev, ino, and nlink. Note that mtime is still included, + * because this is necessary other time-based operations. + */ + portable?: boolean; + + /** + * Allow absolute paths. By default, / is stripped from absolute paths. + */ + preservePaths?: boolean; + + /** + * Alias for presevePaths. + */ + P?: boolean; + + /** + * The mode to set on the created file archive. + */ + mode?: number; + + /** + * Do not recursively archive the contents of directories. + */ + noDirRecurse?: boolean; + + /** + * Set to true to pack the targets of symbolic links. Without this + * option, symbolic links are archived as such. + */ + follow?: boolean; + + /** + * Alias for follow. + */ + L?: boolean; + + /** + * Alias for follow. + */ + h?: boolean; + + /** + * uppress pax extended headers. Note that this means that long paths and + * linkpaths will be truncated, and large or negative numeric values + * may be interpreted incorrectly. + */ + noPax?: boolean; +} + +export interface ExtractOptions { + /** + * A function that will get called with (message, data) + * for any warnings encountered. + */ + onwarn?(message: string, data: Buffer): void; + + /** + * Treat warnings as crash-worthy errors. Default false. + */ + strict?: boolean; + + /** + * Extract files relative to the specified directory. Defaults to + * process.cwd(). If provided, this must exist and must be a directory. + */ + cwd?: string; + + /** + * Alias for cwd. + */ + C?: string; + + /** + * A function that gets called with (path, stat) for each entry being + * added. Return true to emit the entry from the archive, or false to skip it. + */ + filter?(path: string, stat: FileStat): boolean; + + /** + * Set to true to keep the existing file on disk if it's newer than + * the file in the archive. + */ + newer?: boolean; + + /** + * Alias for newer. + */ + 'keep-newer'?: boolean; + + /** + * Alias for newer. + */ + 'keep-newer-files'?: boolean; + + /** + * Do not overwrite existing files. In particular, if a file appears more + * than once in an archive, later copies will not overwrite earlier copies + */ + keep?: boolean; + + /** + * Alias for keep. + */ + k?: boolean; + + /** + * Alias for keep. + */ + 'keep-existing'?: boolean; + + /** + * Unlink files before creating them. Without this option, tar overwrites + * existing files, which preserves existing hardlinks. With this option, + * existing hardlinks will be broken, as will any symlink that would + * affect the location of an extracted file. + */ + unlink?: boolean; + + /** + * Remove the specified number of leading path elements. Pathnames with + * fewer elements will be silently skipped. Note that the pathname + * is edited after applying the filter, but before security checks. + */ + strip?: number; + + /** + * Alias for strip. + */ + 'strip-components'?: number; + + /** + * Alias for strip. + */ + stripComponents?: number; + + /** + * If true, tar will set the uid and gid of extracted entries to the uid + * and gid fields in the archive. This defaults to true when run as root, + * and false otherwise. If false, then files and directories will be set + * with the owner and group of the user running the process. This is + * similar to -p in tar(1), but ACLs and other system-specific data is + * never unpacked in this implementation, and modes + * are set by default already. + */ + preserveOwner?: boolean; + + /** + * Alias for preserveOwner. + */ + p?: boolean; + + /** + * Set to a number to force ownership of all extracted files and folders, + * and all implicitly created directories, to be owned by the specified + * user id, regardless of the uid field in the archive. Cannot be used + * along with preserveOwner. Requires also setting a gid option. + */ + uid?: number; + + /** + * Set to a number to force ownership of all extracted files and folders, + * and all implicitly created directories, to be owned by the specified + * group id, regardless of the gid field in the archive. Cannot be used + * along with preserveOwner. Requires also setting a uid option + */ + gui?: number; +} + +export interface ListOptions { + /** + * Treat warnings as crash-worthy errors. Default false. + */ + strict?: boolean; + + /** + * Extract files relative to the specified directory. Defaults to + * process.cwd(). If provided, this must exist and must be a directory. + */ + cwd?: string; + + /** + * Alias for cwd. + */ + C?: string; + + /** + * A function that gets called with (path, stat) for each entry being + * added. Return true to emit the entry from the archive, or false to skip it. + */ + filter?(path: string, entry: FileStat): boolean; + + /** + * A function that gets called with (entry) for each entry that passes the + * filter. This is important for when both file and sync are set, because + * it will be called synchronously. + */ + onentry?(entry: FileStat): void; + + /** + * The maximum buffer size for fs.read() operations. Defaults to 16 MB. + */ + maxReadSize?: number; + + /** + * By default, entry streams are resumed immediately after the call to + * onentry. Set noResume: true to suppress this behavior. Note that by + * opting into this, the stream will never complete until the entry + * data is consumed. + */ + noResume?: boolean; +} + +export interface ReplaceOptions { + /** + * Required. Write the tarball archive to the specified filename. + */ + file: string; + + /** + * Act synchronously. If this is set, then any provided file will be + * fully written after the call to tar.c. + */ + sync?: boolean; + + /** + * A function that will get called with (message, data) + * for any warnings encountered. + */ + onwarn?(message: string, data: Buffer): void; + + /** + * Treat warnings as crash-worthy errors. Default false. + */ + strict?: boolean; + + /** + * Extract files relative to the specified directory. Defaults to + * process.cwd(). If provided, this must exist and must be a directory. + */ + cwd?: string; + + /** + * Alias for cwd. + */ + C?: string; + + /** + * A path portion to prefix onto the entries in the archive. + */ + prefix?: string; + + /** + * Set to any truthy value to create a gzipped archive, + * or an object with settings for zlib.Gzip() + */ + gzip?: boolean | zlib.ZlibOptions; + + /** + * A function that gets called with (path, stat) for each entry being + * added. Return true to emit the entry from the archive, or false to skip it. + */ + filter?(path: string, stat: FileStat): boolean; + + /** + * Allow absolute paths. By default, / is stripped from absolute paths. + */ + preservePaths?: boolean; + + /** + * The maximum buffer size for fs.read() operations. Defaults to 16 MB. + */ + maxReadSize?: number; + + /** + * Do not recursively archive the contents of directories. + */ + noDirRecurse?: boolean; + + /** + * Set to true to pack the targets of symbolic links. Without this + * option, symbolic links are archived as such. + */ + follow?: boolean; + + /** + * Alias for follow. + */ + L?: boolean; + + /** + * Alias for follow. + */ + h?: boolean; + + /** + * uppress pax extended headers. Note that this means that long paths and + * linkpaths will be truncated, and large or negative numeric values + * may be interpreted incorrectly. + */ + noPax?: boolean; +} + +export interface FileOptions { + /** + * Uses the given file as the input or output of this function. + */ + file?: string; + + /** + * Alias for file. + */ + f?: string; +} + +/** + * Create a tarball archive. The fileList is an array of paths to add to the + * tarball. Adding a directory also adds its children recursively. An entry in + * fileList that starts with an @ symbol is a tar archive whose entries will + * be added. To add a file that starts with @, prepend it with `./`. + * + * Archive data may be read from the returned stream. + */ +export function create(options: CreateOptions, fileList: ReadonlyArray, callback?: (err?: Error) => void): stream.Readable; + +/** + * Create a tarball archive. The fileList is an array of paths to add to the + * tarball. Adding a directory also adds its children recursively. An entry in + * fileList that starts with an @ symbol is a tar archive whose entries will + * be added. To add a file that starts with @, prepend it with `./`. + */ +export function create(options: CreateOptions & FileOptions, fileList: ReadonlyArray): Promise; +export function create(options: CreateOptions & FileOptions & { sync: true }, fileList: ReadonlyArray): void; +export function create(options: CreateOptions & FileOptions, fileList: ReadonlyArray, callback: (err?: Error) => void): void; + +/** + * Alias for create + */ +export const c: typeof create; + +/** + * Extract a tarball archive. The fileList is an array of paths to extract + * from the tarball. If no paths are provided, then all the entries are + * extracted. If the archive is gzipped, then tar will detect this and unzip + * it. Note that all directories that are created will be forced to be + * writable, readable, and listable by their owner, to avoid cases where a + * directory prevents extraction of child entries by virtue of its mode. Most + * extraction errors will cause a warn event to be emitted. If the cwd is + * missing, or not a directory, then the extraction will fail completely. + * + * Archive data should be written to the returned stream. + */ +export function extract(options: ExtractOptions, fileList?: ReadonlyArray, callback?: (err?: Error) => void): stream.Writable; + +/** + * Extract a tarball archive. The fileList is an array of paths to extract + * from the tarball. If no paths are provided, then all the entries are + * extracted. If the archive is gzipped, then tar will detect this and unzip + * it. Note that all directories that are created will be forced to be + * writable, readable, and listable by their owner, to avoid cases where a + * directory prevents extraction of child entries by virtue of its mode. Most + * extraction errors will cause a warn event to be emitted. If the cwd is + * missing, or not a directory, then the extraction will fail completely. + */ +export function extract(options: ExtractOptions & FileOptions, fileList?: ReadonlyArray): Promise; +export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?: ReadonlyArray): void; +export function extract(options: ExtractOptions & FileOptions, fileList: ReadonlyArray | undefined, callback: (err?: Error) => void): void; + +/** + * Alias for extract + */ +export const x: typeof extract; + +/** + * List the contents of a tarball archive. The fileList is an array of paths + * to list from the tarball. If no paths are provided, then all the entries + * are listed. If the archive is gzipped, then tar will detect this and unzip + * it. + * + * Archive data should be written to the returned stream. + */ +export function list(options?: ListOptions, fileList?: ReadonlyArray, callback?: (err?: Error) => void): stream.Writable; + +/** + * List the contents of a tarball archive. The fileList is an array of paths + * to list from the tarball. If no paths are provided, then all the entries + * are listed. If the archive is gzipped, then tar will detect this and unzip + * it. + */ +export function list(options: ListOptions & FileOptions, fileList?: ReadonlyArray): Promise; +export function list(options: ListOptions & FileOptions & { sync: true }, fileList?: ReadonlyArray): void; + +/** + * Alias for list + */ +export const t: typeof list; + +/** + * Add files to an existing archive. Because later entries override earlier + * entries, this effectively replaces any existing entries. The fileList is an + * array of paths to add to the tarball. Adding a directory also adds its + * children recursively. An entry in fileList that starts with an @ symbol is + * a tar archive whose entries will be added. To add a file that + * starts with @, prepend it with ./. + */ +export function replace(options: ReplaceOptions, fileList?: ReadonlyArray): Promise; +export function replace(options: ReplaceOptions, fileList: ReadonlyArray | undefined, callback: (err?: Error) => void): Promise; + +/** + * Alias for replace + */ +export const r: typeof replace; + +/** + * Add files to an archive if they are newer than the entry already in the + * tarball archive. The fileList is an array of paths to add to the tarball. + * Adding a directory also adds its children recursively. An entry in fileList + * that starts with an @ symbol is a tar archive whose entries will be added. + * To add a file that starts with @, prepend it with ./. + */ +export function update(options: ReplaceOptions, fileList?: ReadonlyArray): Promise; +export function update(options: ReplaceOptions, fileList: ReadonlyArray | undefined, callback: (err?: Error) => void): Promise; + +/** + * Alias for update + */ +export const u: typeof update; diff --git a/types/tar/tar-tests.ts b/types/tar/tar-tests.ts index d80e068ace..a35baec70b 100644 --- a/types/tar/tar-tests.ts +++ b/types/tar/tar-tests.ts @@ -15,14 +15,53 @@ fs.createReadStream("path/to/file.tar").pipe(tar.Extract("path/to/extract")); /** * Use with events */ -var readStream = fs.createReadStream("/path/to/file.tar"); -var extract = tar.Extract("/path/to/target"); +const readStream = fs.createReadStream("/path/to/file.tar"); +const extract = tar.Extract("/path/to/target"); readStream.pipe(extract); -extract.on("entry", (entry: any) => { +extract.on("entry", (entry: any) => undefined); +let packStream: tar.PackStream = tar.Pack(); +packStream = tar.Pack({ path: 'test' }); + +/** + * Examples from tar docs: + */ + +tar.c( + { + gzip: true, + file: 'my-tarball.tgz' + }, + ['some', 'files', 'and', 'folders'] +).then(() => undefined); + +tar.c( + { + gzip: true, + }, + ['some', 'files', 'and', 'folders'] +).pipe(fs.createWriteStream('my-tarball.tgz')); + +tar.x( + { + file: 'my-tarball.tgz', + } +).then(() => undefined); + +fs.createReadStream('my-tarball.tgz').pipe( + tar.x({ + strip: 1, + C: 'some-dir' // alias for cwd:'some-dir', also ok + }) +); + +tar.t({ + file: 'my-tarball.tgz', + onentry: (entry) => console.log(entry.path, 'was', entry.size), }); -var packStream: tar.PackStream = tar.Pack(); -packStream = tar.Pack({ path: 'test' }); +fs.createReadStream('my-tarball.tgz') + .pipe(tar.t()) + .on('entry', entry => console.log(entry.size)); diff --git a/types/tar/tslint.json b/types/tar/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/tar/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 3cbb7290b1d4392625d8dc5944ae61b5c5b2ecc1 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Fri, 25 Aug 2017 12:56:01 -0700 Subject: [PATCH 058/316] Add definitions for chai-as-promised v7.1 which supports Chai v4 --- types/chai-as-promised/index.d.ts | 138 ++++++++++++++++++++++++++++-- 1 file changed, 129 insertions(+), 9 deletions(-) diff --git a/types/chai-as-promised/index.d.ts b/types/chai-as-promised/index.d.ts index 0dde8837dd..bd67bf90cd 100644 --- a/types/chai-as-promised/index.d.ts +++ b/types/chai-as-promised/index.d.ts @@ -1,6 +1,9 @@ -// Type definitions for chai-as-promised +// Type definitions for chai-as-promised 7.1.0 // Project: https://github.com/domenic/chai-as-promised/ -// Definitions by: jt000 , Yuki Kokubun , Leonard Thieu +// Definitions by: jt000 , +// Yuki Kokubun , +// Leonard Thieu , +// Matt Bishop // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -35,12 +38,15 @@ declare namespace Chai { become(expected: PromiseLike): PromisedAssertion; fulfilled: PromisedAssertion; rejected: PromisedAssertion; - rejectedWith(expected: any, message?: string | RegExp): PromisedAssertion; + rejectedWith: PromisedThrow; notify(fn: Function): PromisedAssertion; // From chai not: PromisedAssertion; deep: PromisedDeep; + ordered: PromisedOrdered; + nested: PromisedNested; + any: PromisedKeyFilter; all: PromisedKeyFilter; a: PromisedTypeComparison; an: PromisedTypeComparison; @@ -51,6 +57,7 @@ declare namespace Chai { false: PromisedAssertion; null: PromisedAssertion; undefined: PromisedAssertion; + NaN: PromisedAssertion; exist: PromisedAssertion; empty: PromisedAssertion; arguments: PromisedAssertion; @@ -63,20 +70,36 @@ declare namespace Chai { property: PromisedProperty; ownProperty: PromisedOwnProperty; haveOwnProperty: PromisedOwnProperty; + ownPropertyDescriptor: PromisedOwnPropertyDescriptor; + haveOwnPropertyDescriptor: PromisedOwnPropertyDescriptor; length: PromisedLength; lengthOf: PromisedLength; - match(regexp: RegExp | string, message?: string): PromisedAssertion; + match: PromisedMatch; + matches: PromisedMatch; string(string: string, message?: string): PromisedAssertion; keys: PromisedKeys; key(string: string): PromisedAssertion; throw: PromisedThrow; throws: PromisedThrow; Throw: PromisedThrow; - respondTo(method: string, message?: string): PromisedAssertion; + respondTo: PromisedRespondTo; + respondsTo: PromisedRespondTo; itself: PromisedAssertion; - satisfy(matcher: Function, message?: string): PromisedAssertion; - closeTo(expected: number, delta: number, message?: string): PromisedAssertion; + satisfy: PromisedSatisfy; + satisfies: PromisedSatisfy; + closeTo: PromisedCloseTo; + approximately: PromisedCloseTo; members: PromisedMembers; + increase: PromisedPropertyChange; + increases: PromisedPropertyChange; + decrease: PromisedPropertyChange; + decreases: PromisedPropertyChange; + change: PromisedPropertyChange; + changes: PromisedPropertyChange; + extensible: PromisedAssertion; + sealed: PromisedAssertion; + frozen: PromisedAssertion; + oneOf(list: any[], message?: string): PromisedAssertion; } interface PromisedAssertion extends Eventually, PromiseLike { @@ -99,6 +122,8 @@ declare namespace Chai { at: PromisedAssertion; of: PromisedAssertion; same: PromisedAssertion; + but: PromisedAssertion; + does: PromisedAssertion; } interface PromisedNumericComparison { @@ -129,10 +154,28 @@ declare namespace Chai { (constructor: Object, message?: string): PromisedAssertion; } - interface PromisedDeep { - equal: PromisedEqual; + interface PromisedCloseTo { + (expected: number, delta: number, message?: string): PromisedAssertion; + } + + interface PromisedNested { include: PromisedInclude; property: PromisedProperty; + members: PromisedMembers; + } + + interface PromisedDeep { + equal: PromisedEqual; + equals: PromisedEqual; + eq: PromisedEqual; + include: PromisedInclude; + property: PromisedProperty; + members: PromisedMembers; + ordered: PromisedOrdered + } + + interface PromisedOrdered { + members: PromisedMembers; } interface PromisedKeyFilter { @@ -151,6 +194,11 @@ declare namespace Chai { (name: string, message?: string): PromisedAssertion; } + interface PromisedOwnPropertyDescriptor { + (name: string, descriptor: PropertyDescriptor, message?: string): PromisedAssertion; + (name: string, message?: string): PromisedAssertion; + } + interface PromisedLength extends PromisedLanguageChains, PromisedNumericComparison { (length: number, message?: string): PromisedAssertion; } @@ -160,13 +208,21 @@ declare namespace Chai { (value: string, message?: string): PromisedAssertion; (value: number, message?: string): PromisedAssertion; keys: PromisedKeys; + deep: PromisedDeep; + ordered: PromisedOrdered; members: PromisedMembers; + any: PromisedKeyFilter; all: PromisedKeyFilter; } + interface PromisedMatch { + (regexp: RegExp | string, message?: string): PromisedAssertion; + } + interface PromisedKeys { (...keys: string[]): PromisedAssertion; (keys: any[]): PromisedAssertion; + (keys: Object): PromisedAssertion; } interface PromisedThrow { @@ -179,10 +235,22 @@ declare namespace Chai { (constructor: Function, expected?: RegExp, message?: string): PromisedAssertion; } + interface PromisedRespondTo { + (method: string, message?: string): PromisedAssertion; + } + + interface PromisedSatisfy { + (matcher: Function, message?: string): PromisedAssertion; + } + interface PromisedMembers { (set: any[], message?: string): PromisedAssertion; } + interface PromisedPropertyChange { + (object: Object, property: string, message?: string): PromisedAssertion; + } + // For Assert API interface Assert { eventually: PromisedAssert; @@ -198,7 +266,9 @@ declare namespace Chai { export interface PromisedAssert { fail(actual?: any, expected?: any, msg?: string, operator?: string): PromiseLike; + isOk(val: any, msg?: string): PromiseLike; ok(val: any, msg?: string): PromiseLike; + isNotOk(val: any, msg?: string): PromiseLike; notOk(val: any, msg?: string): PromiseLike; equal(act: any, exp: any, msg?: string): PromiseLike; @@ -210,12 +280,26 @@ declare namespace Chai { deepEqual(act: any, exp: any, msg?: string): PromiseLike; notDeepEqual(act: any, exp: any, msg?: string): PromiseLike; + isAbove(val: number, above: number, msg?: string): PromiseLike; + isAtLeast(val: number, atLeast: number, msg?: string): PromiseLike; + isAtBelow(val: number, below: number, msg?: string): PromiseLike; + isAtMost(val: number, atMost: number, msg?: string): PromiseLike; + isTrue(val: any, msg?: string): PromiseLike; isFalse(val: any, msg?: string): PromiseLike; + isNotTrue(val: any, msg?: string): PromiseLike; + isNotFalse(val: any, msg?: string): PromiseLike; + isNull(val: any, msg?: string): PromiseLike; isNotNull(val: any, msg?: string): PromiseLike; + isNaN(val: any, msg?: string): PromiseLike; + isNotNaN(val: any, msg?: string): PromiseLike; + + exists(val: any, msg?: string): PromiseLike; + notExists(val: any, msg?: string): PromiseLike; + isUndefined(val: any, msg?: string): PromiseLike; isDefined(val: any, msg?: string): PromiseLike; @@ -287,10 +371,46 @@ declare namespace Chai { operator(val: any, operator: string, val2: any, msg?: string): PromiseLike; closeTo(act: number, exp: number, delta: number, msg?: string): PromiseLike; + approximately(act: number, exp: number, delta: number, msg?: string): PromiseLike; sameMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + sameDeepMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + sameOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + notSameOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + sameDeepOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + notSameDeepOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + includeOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + notIncludeOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + includeDeepOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + notIncludeDeepOrderedMembers(set1: any[], set2: any[], msg?: string): PromiseLike; includeMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + includeDeepMembers(set1: any[], set2: any[], msg?: string): PromiseLike; + + oneOf(val: any, list: any[], msg?: string): PromiseLike; + + changes(modifier: Function, obj: Object, property: string, msg?: string): PromiseLike; + doesNotChange(modifier: Function, obj: Object, property: string, msg?: string): PromiseLike; + increases(modifier: Function, obj: Object, property: string, msg?: string): PromiseLike; + doesNotIncrease(modifier: Function, obj: Object, property: string, msg?: string): PromiseLike; + decreases(modifier: Function, obj: Object, property: string, msg?: string): PromiseLike; + doesNotDecrease(modifier: Function, obj: Object, property: string, msg?: string): PromiseLike; ifError(val: any, msg?: string): PromiseLike; + + isExtensible(obj: Object, msg?: string): PromiseLike; + isNotExtensible(obj: Object, msg?: string): PromiseLike; + + isSealed(obj: Object, msg?: string): PromiseLike; + sealed(obj: Object, msg?: string): PromiseLike; + isNotSealed(obj: Object, msg?: string): PromiseLike; + notSealed(obj: Object, msg?: string): PromiseLike; + + isFrozen(obj: Object, msg?: string): PromiseLike; + frozen(obj: Object, msg?: string): PromiseLike; + isNotFrozen(obj: Object, msg?: string): PromiseLike; + notFrozen(obj: Object, msg?: string): PromiseLike; + + isEmpty(val: any, msg?: string): PromiseLike; + isNotEmpty(val: any, msg?: string): PromiseLike; } } From 3904dd3c99abcde7bc9f8324586926781fad2fdc Mon Sep 17 00:00:00 2001 From: Conrad Wahlen Date: Sat, 26 Aug 2017 01:58:11 +0200 Subject: [PATCH 059/316] Update Material class closer to three.js docs --- types/three/three-core.d.ts | 275 +++++++++++++++++++++++++----------- 1 file changed, 191 insertions(+), 84 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 71dc6f4386..70529c99ca 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -2317,36 +2317,39 @@ export namespace Cache { export let MaterialIdCount: number; export interface MaterialParameters { - name?: string; - side?: Side; - opacity?: number; - transparent?: boolean; + alphaTest?: number; + blendDst?: BlendingDstFactor; + blendDstAlpha?: number; + blendEquation?: BlendingEquation; + blendEquationAlpha?: number; blending?: Blending; blendSrc?: BlendingSrcFactor | BlendingDstFactor; - blendDst?: BlendingDstFactor; - blendEquation?: BlendingEquation; blendSrcAlpha?: number; - blendDstAlpha?: number; - blendEquationAlpha?: number; + clipIntersection?: boolean; + clippingPlanes?: Plane[]; + clipShadows?: boolean; + colorWrite?: boolean; depthFunc?: DepthModes; depthTest?: boolean; depthWrite?: boolean; - colorWrite?: boolean; - precision?: number; + fog?: boolean; + lights?: boolean; + name?: string; + opacity?: number; + overdraw?: number; polygonOffset?: boolean; polygonOffsetFactor?: number; polygonOffsetUnits?: number; - alphaTest?: number; + precision?: 'highp' | 'mediump' | 'lowp' | null; premultipliedAlpha?: boolean; - overdraw?: number; - visible?: boolean; - fog?: boolean; - lights?: boolean; - shading?: Shading; + dithering?: boolean; + flatShading?: boolean; + side?: Side; + transparent?: boolean; vertexColors?: Colors; - clippingPlanes?: Plane[]; - clipIntersection?: boolean; - clipShadows?: boolean; + visible?: boolean; + + shading?: Shading; } /** @@ -2356,62 +2359,70 @@ export class Material extends EventDispatcher { constructor(); /** - * Unique number of this material instance. + * Sets the alpha value to be used when running an alpha test. Default is 0. */ - id: number; - - uuid: string; - - /** - * Material name. Default is an empty string. - */ - name: string; - - type: string; - - /** - * Defines which of the face sides will be rendered - front, back or both. - * Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide. - */ - side: Side; - - /** - * Opacity. Default is 1. - */ - opacity: number; - - /** - * Defines whether this material is transparent. This has an effect on rendering, as transparent objects need an special treatment, and are rendered after the opaque (i.e. non transparent) objects. For a working example of this behaviour, check the {@link WebGLRenderer} code. - * Default is false. - */ - transparent: boolean; - - /** - * Which blending to use when displaying objects with this material. Default is {@link NormalBlending}. - */ - blending: Blending; - - /** - * Blending source. It's one of the blending mode constants defined in Three.js. Default is {@link SrcAlphaFactor}. - */ - blendSrc: BlendingSrcFactor | BlendingDstFactor; + alphaTest: number; /** * Blending destination. It's one of the blending mode constants defined in Three.js. Default is {@link OneMinusSrcAlphaFactor}. */ blendDst: BlendingDstFactor; - + /** - * Blending equation to use when applying blending. It's one of the constants defined in Three.js. Default is AddEquation. + * The tranparency of the .blendDst. Default is null. + */ + blendDstAlpha: number; + + /** + * Blending equation to use when applying blending. It's one of the constants defined in Three.js. Default is {@link AddEquation}. */ blendEquation: BlendingEquation; - blendSrcAlpha: number; - blendDstAlpha: number; + /** + * The tranparency of the .blendEquation. Default is null. + */ blendEquationAlpha: number; + + /** + * Which blending to use when displaying objects with this material. Default is {@link NormalBlending}. + */ + blending: Blending; + + /** + * Blending source. It's one of the blending mode constants defined in Three.js. Default is {@link SrcAlphaFactor}. + */ + blendSrc: BlendingSrcFactor | BlendingDstFactor; + + /** + * The tranparency of the .blendSrc. Default is null. + */ + blendSrcAlpha: number; + /** + * Changes the behavior of clipping planes so that only their intersection is clipped, rather than their union. Default is false. + */ + clipIntersection: boolean; + + /** + * User-defined clipping planes specified as THREE.Plane objects in world space. These planes apply to the objects this material is attached to. Points in space whose signed distance to the plane is negative are clipped (not rendered). See the WebGL / clipping /intersection example. Default is null. + */ + clippingPlanes: any; + + /** + * Defines whether to clip shadows according to the clipping planes specified on this material. Default is false. + */ + clipShadows: boolean; + + /** + * Whether to render the material's color. This can be used in conjunction with a mesh's .renderOrder property to create invisible objects that occlude other objects. Default is true. + */ + colorWrite: boolean; + + /** + * Which depth function to use. Default is {@link LessEqualDepth}. See the depth mode constants for all possible values. + */ depthFunc: DepthModes; - + /** * Whether to have depth test enabled when rendering this material. Default is true. */ @@ -2423,18 +2434,53 @@ export class Material extends EventDispatcher { */ depthWrite: boolean; - clippingPlanes: any; - clipShadows: boolean; + /** + * Whether the material is affected by fog. Default is true. + */ + fog: boolean; - colorWrite: boolean; + /** + * Unique number of this material instance. + */ + id: number; - precision: any; + /** + * Used to check whether this or derived classes are materials. Default is true. + * You should not change this, as it used internally for optimisation. + */ + isMaterial: boolean; + + /** + * Whether the material is affected by lights. Default is true. + */ + lights: boolean; + + /** + * Material name. Default is an empty string. + */ + name: string; + + /** + * Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. + * This property is automatically set to true when instancing a new material. + */ + needsUpdate: boolean; + + /** + * Opacity. Default is 1. + */ + opacity: number; + + /** + * Enables/disables overdraw. If greater than zero, polygons are drawn slightly bigger in order to fix antialiasing gaps when using the CanvasRenderer. Default is 0. + */ + overdraw: number; /** * Whether to use polygon offset. Default is false. This corresponds to the POLYGON_OFFSET_FILL WebGL feature. */ polygonOffset: boolean; - + /** * Sets the polygon offset factor. Default is 0. */ @@ -2446,16 +2492,52 @@ export class Material extends EventDispatcher { polygonOffsetUnits: number; /** - * Sets the alpha value to be used when running an alpha test. Default is 0. + * Override the renderer's default precision for this material. Can be "highp", "mediump" or "lowp". Defaults is null. */ - alphaTest: number; + precision: 'highp' | 'mediump' | 'lowp' | null; + /** + * Whether to premultiply the alpha (transparency) value. See WebGL / Materials / Transparency for an example of the difference. Default is false. + */ premultipliedAlpha: boolean; /** - * Enables/disables overdraw. If greater than zero, polygons are drawn slightly bigger in order to fix antialiasing gaps when using the CanvasRenderer. Default is 0. + * Whether to apply dithering to the color to remove the appearance of banding. Default is false. */ - overdraw: number; + dithering: boolean; + + /** + * Define whether the material is rendered with flat shading. Default is false. + */ + flatShading: boolean; + + /** + * Defines which of the face sides will be rendered - front, back or both. + * Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide. + */ + side: Side; + + /** + * Defines whether this material is transparent. This has an effect on rendering as transparent objects need special treatment and are rendered after non-transparent objects. + * When set to true, the extent to which the material is transparent is controlled by setting it's .opacity property. + * Default is false. + */ + transparent: boolean; + + /** + * Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a scene. + */ + type: string; + + /** + * UUID of this material instance. This gets automatically assigned, so this shouldn't be edited. + */ + uuid: string; + + /** + * Defines whether vertex coloring is used. Default is THREE.NoColors. Other options are THREE.VertexColors and THREE.FaceColors. + */ + vertexColors: Colors; /** * Defines whether this material is visible. Default is true. @@ -2463,27 +2545,52 @@ export class Material extends EventDispatcher { visible: boolean; /** - * Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL. - * This property is automatically set to true when instancing a new material. + * An object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned. + */ + userData: any; + + /** + * Return a new material with the same parameters as this material. */ - needsUpdate: boolean; - - fog: boolean; - lights: boolean; - shading: Shading; - vertexColors: Colors; - - setValues(parameters: MaterialParameters): void; - toJSON(meta?: any): any; clone(): this; - copy(source: this): this; - update(): void; + + /** + * Copy the parameters from the passed material into this material. + * @param material + */ + copy(material: this): this; + + /** + * This disposes the material. Textures of a material don't get disposed. These needs to be disposed by {@link Texture}. + */ dispose(): void; + /** + * Sets the properties based on the values. + * @param values A container with parameters. + */ + setValues(values: MaterialParameters): void; + + /** + * Convert the material to three.js JSON format. + * @param meta Object containing metadata such as textures or images for the material. + */ + toJSON(meta?: any): any; + + /** + * Call .dispatchEvent ( { type: 'update' }) on the material. + */ + update(): void; + /** * @deprecated */ warpRGB: Color; + + /** + * @deprecated Removed, use .flatShading instead. + */ + shading: Shading; } export interface LineBasicMaterialParameters extends MaterialParameters { From fbc01f889d2cf65cf724b3e4d8e6d6635eaa6b20 Mon Sep 17 00:00:00 2001 From: loopArray <525029662@qq.com> Date: Sun, 27 Aug 2017 00:13:06 +0800 Subject: [PATCH 060/316] fixed some ts error My environment is typescript 2.4.2, which reminds me of the wrong type. `[ts] JSX element type 'Icon' does not have any construct or call signatures.` When you add `typeof` changes like this, there is no error --- types/react-native-vector-icons/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-native-vector-icons/index.d.ts b/types/react-native-vector-icons/index.d.ts index 3e9af9e042..b9dfc622c3 100644 --- a/types/react-native-vector-icons/index.d.ts +++ b/types/react-native-vector-icons/index.d.ts @@ -24,7 +24,7 @@ export function createIconSet( glyphMap: {}, fontFamily: string, fontFile?: string -): Icon; +): typeof Icon; /** * Convenience method to create a custom font based on a fontello config file. @@ -41,7 +41,7 @@ export function createIconSet( * @param {{}} config * @returns {Icon} */ -export function createIconSetFromFontello(config: {}): Icon; +export function createIconSetFromFontello(config: {}): typeof Icon; /** * Convenience method to create a custom font from IcoMoon @@ -59,4 +59,4 @@ export function createIconSetFromFontello(config: {}): Icon; * @param {{}} config * @returns {Icon} */ -export function createIconSetFromIcoMoon(config: {}): Icon; +export function createIconSetFromIcoMoon(config: {}): typeof Icon; From 0d4f8a72c5fbe648821b195c2b96438434c6aca5 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Sun, 27 Aug 2017 10:51:24 +0200 Subject: [PATCH 061/316] feat(fs-extra): callbacks can return `null` as value when there is no error --- types/fs-extra/fs-extra-tests.ts | 2 +- types/fs-extra/index.d.ts | 146 ++++++++++++++++--------------- 2 files changed, 75 insertions(+), 73 deletions(-) diff --git a/types/fs-extra/fs-extra-tests.ts b/types/fs-extra/fs-extra-tests.ts index 22232bc297..a807428548 100644 --- a/types/fs-extra/fs-extra-tests.ts +++ b/types/fs-extra/fs-extra-tests.ts @@ -14,7 +14,7 @@ const fd = 0; const modeNum = 0; const modeStr = ""; const object = {}; -const errorCallback = (err: Error) => { }; +const errorCallback = (err: Error | null) => { }; const readOptions: fs.ReadOptions = { reviver: {} }; diff --git a/types/fs-extra/index.d.ts b/types/fs-extra/index.d.ts index 0231cac2d2..90e26418ba 100644 --- a/types/fs-extra/index.d.ts +++ b/types/fs-extra/index.d.ts @@ -14,140 +14,141 @@ import { Stats } from "fs"; export * from "fs"; export function copy(src: string, dest: string, options?: CopyOptions): Promise; -export function copy(src: string, dest: string, callback: (err: Error) => void): void; -export function copy(src: string, dest: string, options: CopyOptions, callback: (err: Error) => void): void; +export function copy(src: string, dest: string, callback: (err: Error | null) => void): void; +export function copy(src: string, dest: string, options: CopyOptions, callback: (err: Error | null) => void): void; export function copySync(src: string, dest: string, options?: CopyOptions): void; export function move(src: string, dest: string, options?: MoveOptions): Promise; -export function move(src: string, dest: string, callback: (err: Error) => void): void; -export function move(src: string, dest: string, options: MoveOptions, callback: (err: Error) => void): void; +export function move(src: string, dest: string, callback: (err: Error | null) => void): void; +export function move(src: string, dest: string, options: MoveOptions, callback: (err: Error | null) => void): void; export function moveSync(src: string, dest: string, options?: MoveOptions): void; export function createFile(file: string): Promise; -export function createFile(file: string, callback: (err: Error) => void): void; +export function createFile(file: string, callback: (err: Error | null) => void): void; export function createFileSync(file: string): void; export function ensureDir(path: string): Promise; -export function ensureDir(path: string, callback: (err: Error) => void): void; +export function ensureDir(path: string, callback: (err: Error | null) => void): void; export function ensureDirSync(path: string): void; export function mkdirs(dir: string): Promise; -export function mkdirs(dir: string, callback: (err: Error) => void): void; +export function mkdirs(dir: string, callback: (err: Error | null) => void): void; export function mkdirp(dir: string): Promise; -export function mkdirp(dir: string, callback: (err: Error) => void): void; +export function mkdirp(dir: string, callback: (err: Error | null) => void): void; export function mkdirsSync(dir: string): void; export function mkdirpSync(dir: string): void; export function outputFile(file: string, data: any): Promise; -export function outputFile(file: string, data: any, callback: (err: Error) => void): void; +export function outputFile(file: string, data: any, callback: (err: Error | null) => void): void; export function outputFileSync(file: string, data: any): void; export function readJson(file: string, options?: ReadOptions): Promise; -export function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void; -export function readJson(file: string, options: ReadOptions, callback: (err: Error, jsonObject: any) => void): void; +export function readJson(file: string, callback: (err: Error | null, jsonObject: any) => void): void; +export function readJson(file: string, options: ReadOptions, callback: (err: Error | null, jsonObject: any) => void): void; export function readJSON(file: string, options?: ReadOptions): Promise; -export function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void; -export function readJSON(file: string, options: ReadOptions, callback: (err: Error, jsonObject: any) => void): void; +export function readJSON(file: string, callback: (err: Error | null, jsonObject: any) => void): void; +export function readJSON(file: string, options: ReadOptions, callback: (err: Error | null, jsonObject: any) => void): void; export function readJsonSync(file: string, options?: ReadOptions): any; export function readJSONSync(file: string, options?: ReadOptions): any; export function remove(dir: string): Promise; -export function remove(dir: string, callback: (err: Error) => void): void; +export function remove(dir: string, callback: (err: Error | null) => void): void; export function removeSync(dir: string): void; export function outputJSON(file: string, data: any, options?: WriteOptions): Promise; -export function outputJSON(file: string, data: any, options: WriteOptions, callback: (err: Error) => void): void; -export function outputJSON(file: string, data: any, callback: (err: Error) => void): void; +export function outputJSON(file: string, data: any, options: WriteOptions, callback: (err: Error | null) => void): void; +export function outputJSON(file: string, data: any, callback: (err: Error | null) => void): void; export function outputJson(file: string, data: any, options?: WriteOptions): Promise; -export function outputJson(file: string, data: any, options: WriteOptions, callback: (err: Error) => void): void; -export function outputJson(file: string, data: any, callback: (err: Error) => void): void; +export function outputJson(file: string, data: any, options: WriteOptions, callback: (err: Error | null) => void): void; +export function outputJson(file: string, data: any, callback: (err: Error | null) => void): void; export function outputJsonSync(file: string, data: any, options?: WriteOptions): void; export function outputJSONSync(file: string, data: any, options?: WriteOptions): void; export function writeJSON(file: string, object: any, options?: WriteOptions): Promise; -export function writeJSON(file: string, object: any, callback: (err: Error) => void): void; -export function writeJSON(file: string, object: any, options: WriteOptions, callback: (err: Error) => void): void; +export function writeJSON(file: string, object: any, callback: (err: Error | null) => void): void; +export function writeJSON(file: string, object: any, options: WriteOptions, callback: (err: Error | null) => void): void; export function writeJson(file: string, object: any, options?: WriteOptions): Promise; -export function writeJson(file: string, object: any, callback: (err: Error) => void): void; -export function writeJson(file: string, object: any, options: WriteOptions, callback: (err: Error) => void): void; +export function writeJson(file: string, object: any, callback: (err: Error | null) => void): void; +export function writeJson(file: string, object: any, options: WriteOptions, callback: (err: Error | null) => void): void; export function writeJsonSync(file: string, object: any, options?: WriteOptions): void; export function writeJSONSync(file: string, object: any, options?: WriteOptions): void; export function ensureFile(path: string): Promise; -export function ensureFile(path: string, callback: (err: Error) => void): void; +export function ensureFile(path: string, callback: (err: Error | null) => void): void; export function ensureFileSync(path: string): void; export function ensureLink(src: string, dest: string): Promise; -export function ensureLink(src: string, dest: string, callback: (err: Error) => void): void; +export function ensureLink(src: string, dest: string, callback: (err: Error | null) => void): void; export function ensureLinkSync(src: string, dest: string): void; export function ensureSymlink(src: string, dest: string, type?: SymlinkType): Promise; -export function ensureSymlink(src: string, dest: string, type: SymlinkType, callback: (err: Error) => void): void; -export function ensureSymlink(src: string, dest: string, callback: (err: Error) => void): void; +export function ensureSymlink(src: string, dest: string, type: SymlinkType, callback: (err: Error | null) => void): void; +export function ensureSymlink(src: string, dest: string, callback: (err: Error | null) => void): void; export function ensureSymlinkSync(src: string, dest: string, type?: SymlinkType): void; export function emptyDir(path: string): Promise; -export function emptyDir(path: string, callback: (err: Error) => void): void; +export function emptyDir(path: string, callback: (err: Error | null) => void): void; export function emptyDirSync(path: string): void; export function pathExists(path: string): Promise; -export function pathExists(path: string, callback: (err: Error, exists: boolean) => void): void; +export function pathExists(path: string, callback: (err: Error | null, exists: boolean) => void): void; export function pathExistsSync(path: string): boolean; // fs async methods // copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/v6/index.d.ts /** Tests a user's permissions for the file specified by path. */ -export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void; -export function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException) => void): void; +export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null) => void): void; +export function access(path: string | Buffer, mode: number, callback: (err: NodeJS.ErrnoException | null) => void): void; export function access(path: string | Buffer, mode?: number): Promise; -export function appendFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number | string; flag?: string; }, callback: (err: NodeJS.ErrnoException) => void): void; -export function appendFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void; +export function appendFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number | string; flag?: string; }, + callback: (err: NodeJS.ErrnoException | null) => void): void; +export function appendFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException | null) => void): void; export function appendFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number | string; flag?: string; }): Promise; -export function chmod(path: string | Buffer, mode: string | number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function chmod(path: string | Buffer, mode: string | number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function chmod(path: string | Buffer, mode: string | number): Promise; export function chown(path: string | Buffer, uid: number, gid: number): Promise; -export function chown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function chown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; -export function close(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function close(fd: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function close(fd: number): Promise; -export function fchmod(fd: number, mode: string | number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function fchmod(fd: number, mode: string | number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function fchmod(fd: number, mode: string | number): Promise; -export function fchown(fd: number, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function fchown(fd: number, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function fchown(fd: number, uid: number, gid: number): Promise; export function fdatasync(fd: number, callback: () => void): void; export function fdatasync(fd: number): Promise; -export function fstat(fd: number, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void; +export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any): void; export function fstat(fd: number): Promise; -export function fsync(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function fsync(fd: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function fsync(fd: number): Promise; -export function ftruncate(fd: number, callback: (err?: NodeJS.ErrnoException) => void): void; -export function ftruncate(fd: number, len: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function ftruncate(fd: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; +export function ftruncate(fd: number, len: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function ftruncate(fd: number, len?: number): Promise; -export function futimes(fd: number, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException) => void): void; -export function futimes(fd: number, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException) => void): void; +export function futimes(fd: number, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; +export function futimes(fd: number, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function futimes(fd: number, atime: number, mtime: number): Promise; export function futimes(fd: number, atime: Date, mtime: Date): Promise; -export function lchown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function lchown(path: string | Buffer, uid: number, gid: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function lchown(path: string | Buffer, uid: number, gid: number): Promise; -export function link(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void; +export function link(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function link(srcpath: string | Buffer, dstpath: string | Buffer): Promise; -export function lstat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void; +export function lstat(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any): void; export function lstat(path: string | Buffer): Promise; /** @@ -156,7 +157,7 @@ export function lstat(path: string | Buffer): Promise; * @param path * @param callback No arguments other than a possible exception are given to the completion callback. */ -export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void; +export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; /** * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777. * @@ -164,35 +165,36 @@ export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoExcept * @param mode * @param callback No arguments other than a possible exception are given to the completion callback. */ -export function mkdir(path: string | Buffer, mode: number | string, callback: (err?: NodeJS.ErrnoException) => void): void; +export function mkdir(path: string | Buffer, mode: number | string, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function mkdir(path: string | Buffer): Promise; -export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void; -export function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void; +export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; +export function open(path: string | Buffer, flags: string | number, mode: number, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; export function open(path: string | Buffer, flags: string | number, mode?: number): Promise; -export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void; +export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: Buffer) => void): void; export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null): Promise; -export function readFile(file: string | Buffer | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void; -export function readFile(file: string | Buffer | number, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void; +export function readFile(file: string | Buffer | number, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void; +export function readFile(file: string | Buffer | number, encoding: string, callback: (err: NodeJS.ErrnoException | null, data: string) => void): void; export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void; export function readFile(file: string | Buffer | number, options: { flag?: string; } | { encoding: string; flag?: string; }): Promise; // tslint:disable-next-line:unified-signatures export function readFile(file: string | Buffer | number, encoding: string): Promise; export function readFile(file: string | Buffer | number): Promise; -export function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void; +export function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void; export function readdir(path: string | Buffer): Promise; -export function readlink(path: string | Buffer, callback: (err: NodeJS.ErrnoException, linkString: string) => any): void; +export function readlink(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null, linkString: string) => any): void; export function readlink(path: string | Buffer): Promise; -export function realpath(path: string | Buffer, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void; -export function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void; +export function realpath(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => any): void; +export function realpath(path: string | Buffer, cache: { [path: string]: string }, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => any): void; export function realpath(path: string | Buffer, cache?: { [path: string]: string }): Promise; -export function rename(oldPath: string, newPath: string, callback: (err?: NodeJS.ErrnoException) => void): void; +export function rename(oldPath: string, newPath: string, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function rename(oldPath: string, newPath: string): Promise; /** @@ -201,17 +203,17 @@ export function rename(oldPath: string, newPath: string): Promise; * @param path * @param callback No arguments other than a possible exception are given to the completion callback. */ -export function rmdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void; +export function rmdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function rmdir(path: string | Buffer): Promise; -export function stat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void; +export function stat(path: string | Buffer, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any): void; export function stat(path: string | Buffer): Promise; -export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: string, callback: (err?: NodeJS.ErrnoException) => void): void; +export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: string, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string): Promise; -export function truncate(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void; -export function truncate(path: string | Buffer, len: number, callback: (err?: NodeJS.ErrnoException) => void): void; +export function truncate(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; +export function truncate(path: string | Buffer, len: number, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function truncate(path: string | Buffer, len?: number): Promise; /** @@ -220,25 +222,25 @@ export function truncate(path: string | Buffer, len?: number): Promise; * @param path * @param callback No arguments other than a possible exception are given to the completion callback. */ -export function unlink(path: string | Buffer, callback: (err?: NodeJS.ErrnoException) => void): void; +export function unlink(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function unlink(path: string | Buffer): Promise; export function utimes(path: string | Buffer, atime: number, mtime: number, callback: (err?: NodeJS.ErrnoException) => void): void; -export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException) => void): void; +export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback: (err?: NodeJS.ErrnoException | null) => void): void; export function utimes(path: string | Buffer, atime: number, mtime: number): Promise; export function utimes(path: string | Buffer, atime: Date, mtime: Date): Promise; export function write(fd: number, buffer: Buffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void; -export function write(fd: number, buffer: Buffer, offset: number, length: number, callback: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void; -export function write(fd: number, data: any, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void; -export function write(fd: number, data: any, offset: number, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void; -export function write(fd: number, data: any, offset: number, encoding: string, callback: (err: NodeJS.ErrnoException, written: number, str: string) => void): void; +export function write(fd: number, buffer: Buffer, offset: number, length: number, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: Buffer) => void): void; +export function write(fd: number, data: any, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; +export function write(fd: number, data: any, offset: number, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; +export function write(fd: number, data: any, offset: number, encoding: string, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; export function write(fd: number, buffer: Buffer, offset: number, length: number, position?: number | null): Promise; export function write(fd: number, data: any, offset: number, encoding?: string): Promise; -export function writeFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void; +export function writeFile(file: string | Buffer | number, data: any, callback: (err: NodeJS.ErrnoException | null) => void): void; export function writeFile(file: string | Buffer | number, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): Promise; -export function writeFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback: (err: NodeJS.ErrnoException) => void): void; +export function writeFile(file: string | Buffer | number, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback: (err: NodeJS.ErrnoException | null) => void): void; /** * Asynchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory. @@ -247,7 +249,7 @@ export function writeFile(file: string | Buffer | number, data: any, options: { * @param callback The created folder path is passed as a string to the callback's second parameter. */ export function mkdtemp(prefix: string): Promise; -export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException, folder: string) => void): void; +export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void; export interface PathEntry { path: string; From 87539a0231576a6a0c97b703df3c4d53d9724219 Mon Sep 17 00:00:00 2001 From: ashwinr Date: Sun, 27 Aug 2017 11:38:39 -0400 Subject: [PATCH 062/316] Make comparator optional in sort method Comparator should be optional, just like the official docs and JSDoc indicate. --- types/underscore/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/underscore/index.d.ts b/types/underscore/index.d.ts index 031da982ab..2803c89b96 100644 --- a/types/underscore/index.d.ts +++ b/types/underscore/index.d.ts @@ -6042,7 +6042,7 @@ declare module _ { * @param compareFn Optional. Specifies a function that defines the sort order. If omitted, the array is sorted according to each character's Unicode code point value, according to the string conversion of each element. * @return The sorted array. **/ - sort(compareFn: (a: T, b: T) => boolean): _Chain; + sort(compareFn?: (a: T, b: T) => boolean): _Chain; /** * Changes the content of an array by removing existing elements and/or adding new elements. From f20324243d2e2a4652e0835741674729ad18da62 Mon Sep 17 00:00:00 2001 From: Dolan Date: Sun, 27 Aug 2017 17:53:38 +0100 Subject: [PATCH 063/316] Remove python shell from root --- python-shell/index.d.ts | 39 ------------------------------ python-shell/python-shell-tests.ts | 38 ----------------------------- python-shell/tsconfig.json | 20 --------------- python-shell/tslint.json | 1 - 4 files changed, 98 deletions(-) delete mode 100644 python-shell/index.d.ts delete mode 100644 python-shell/python-shell-tests.ts delete mode 100644 python-shell/tsconfig.json delete mode 100644 python-shell/tslint.json diff --git a/python-shell/index.d.ts b/python-shell/index.d.ts deleted file mode 100644 index f28cf45693..0000000000 --- a/python-shell/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// Type definitions for python-shell 0.4 -// Project: https://github.com/extrabacon/python-shell -// Definitions by: Dolan Miu -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export class PythonShell { - on(message: string, callback: (message: string) => void): void; - end(callback: (message: string) => void): void; - send(message: any | string): void; - - constructor(scriptName: string, options?: InstanceOptions); - defaultOptions: RunOptions; -} - -export interface RunOptions { - mode?: string; - formatter?: string; - parser?: string; - encoding?: string; - pythonPath?: string; - pythonOptions?: string[]; - scriptPath?: string; - args?: string[]; -} - -export interface InstanceOptions { - script?: string; - command?: string; - stdin?: any; - stdout?: any; - stderr?: any; - childProcess?: string; - terminated?: any; - exitCode?: any; - args?: any[]; -} - -export function run(scriptName: string, RunOptions: RunOptions, callback: (err: Error, results?: any) => void): void; -export function run(scriptName: string, callback: (err: Error, results?: any) => void): void; diff --git a/python-shell/python-shell-tests.ts b/python-shell/python-shell-tests.ts deleted file mode 100644 index 83bca24b6e..0000000000 --- a/python-shell/python-shell-tests.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as ps from 'python-shell'; - -let PythonShell = ps.PythonShell; - -ps.run('my_script.py', function (err) { - if (err) throw err; - console.log('finished'); -}); - -var options = { - mode: 'text', - pythonPath: 'path/to/python', - pythonOptions: ['-u'], - scriptPath: 'path/to/my/scripts', - args: ['value1', 'value2', 'value3'] -}; - -ps.run('my_script.py', options, function (err, results) { - if (err) throw err; - // results is an array consisting of messages collected during execution - console.log('results: %j', results); -}); - -var pyshell = new PythonShell('my_script.py'); - -// sends a message to the Python script via stdin -pyshell.send('hello'); - -pyshell.on('message', function (message) { - // received a message sent from the Python script (a simple "print" statement) - console.log(message); -}); - -// end the input stream and allow the process to exit -pyshell.end(function (err) { - if (err) throw err; - console.log('finished'); -}); \ No newline at end of file diff --git a/python-shell/tsconfig.json b/python-shell/tsconfig.json deleted file mode 100644 index 27748977a6..0000000000 --- a/python-shell/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "python-shell-tests.ts" - ] -} \ No newline at end of file diff --git a/python-shell/tslint.json b/python-shell/tslint.json deleted file mode 100644 index 2221e40e4a..0000000000 --- a/python-shell/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "../tslint.json" } \ No newline at end of file From 98e28fa9b0398d3b76cd11404d90b20cd119eb62 Mon Sep 17 00:00:00 2001 From: Dolan Date: Sun, 27 Aug 2017 17:54:54 +0100 Subject: [PATCH 064/316] Initial snowboy commit --- types/snowboy/index.d.ts | 20 +++++++++++++++++ types/snowboy/snowboy-tests.ts | 40 ++++++++++++++++++++++++++++++++++ types/snowboy/tsconfig.json | 22 +++++++++++++++++++ types/snowboy/tslint.json | 1 + 4 files changed, 83 insertions(+) create mode 100644 types/snowboy/index.d.ts create mode 100644 types/snowboy/snowboy-tests.ts create mode 100644 types/snowboy/tsconfig.json create mode 100644 types/snowboy/tslint.json diff --git a/types/snowboy/index.d.ts b/types/snowboy/index.d.ts new file mode 100644 index 0000000000..df8ab04515 --- /dev/null +++ b/types/snowboy/index.d.ts @@ -0,0 +1,20 @@ +// Type definitions for snowboy 1.2 +// Project: https://github.com/Kitt-AI/snowboy +// Definitions by: Dolan Miu +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { Stream } from "stream"; + +export type State = "sound" | "silence" | "hotword" | "error"; + +export class Detector extends Stream { + constructor(params: any); + + on(event: State | symbol, callback: (index: any, hotword?: any, buffer?: Buffer) => void): this; +} + +export class Models { + add(params: any): void; +} diff --git a/types/snowboy/snowboy-tests.ts b/types/snowboy/snowboy-tests.ts new file mode 100644 index 0000000000..f574475fbc --- /dev/null +++ b/types/snowboy/snowboy-tests.ts @@ -0,0 +1,40 @@ +import { Detector, Models } from "snowboy"; +import * as fs from "fs"; + +const models = new Models(); + +models.add({ + file: 'resources/snowboy.umdl', + sensitivity: '0.5', + hotwords: 'snowboy' +}); + +const detector = new Detector({ + resource: "resources/common.res", + models, + audioGain: 1.0 +}); + +detector.on('silence', () => { + console.log('silence'); +}); + +detector.on('sound', (buffer) => { + // contains the last chunk of the audio that triggers the "sound" + // event. It could be written to a wav stream. + console.log('sound'); +}); + +detector.on('error', () => { + console.log('error'); +}); + +detector.on('hotword', (index, hotword, buffer) => { + // contains the last chunk of the audio that triggers the "hotword" + // event. It could be written to a wav stream. You will have to use it + // together with the in the "sound" event if you want to get audio + // data after the hotword. + console.log('hotword', index, hotword); +}); + +const file = fs.createReadStream('resources/snowboy.wav'); diff --git a/types/snowboy/tsconfig.json b/types/snowboy/tsconfig.json new file mode 100644 index 0000000000..f52d6b8c21 --- /dev/null +++ b/types/snowboy/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "snowboy-tests.ts" + ] +} diff --git a/types/snowboy/tslint.json b/types/snowboy/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/snowboy/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 15e604f2f37524a9bc39e35a61bc6d26696fd31e Mon Sep 17 00:00:00 2001 From: Frank Tan Date: Sun, 27 Aug 2017 16:11:16 -0400 Subject: [PATCH 065/316] [react-redux] Make `connect` input types optional For convenience. --- types/react-redux/index.d.ts | 22 +++++++++++----------- types/react-redux/react-redux-tests.tsx | 10 +++++----- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index b83252a745..44c18a91a5 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -67,66 +67,66 @@ export type InferableComponentEnhancer = */ export declare function connect(): InferableComponentEnhancer>; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam ): InferableComponentEnhancerWithProps, TOwnProps>; -export declare function connect( +export declare function connect( mapStateToProps: null | undefined, mapDispatchToProps: MapDispatchToPropsParam ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: MapDispatchToPropsParam ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: null | undefined, mergeProps: MergeProps, ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: null | undefined, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: MergeProps, ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: null | undefined, mapDispatchToProps: null | undefined, mergeProps: MergeProps, ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: MergeProps, ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: null | undefined, mergeProps: null | undefined, options: Options ): InferableComponentEnhancerWithProps & TStateProps, TOwnProps>; -export declare function connect( +export declare function connect( mapStateToProps: null | undefined, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: null | undefined, options: Options ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: null | undefined, options: Options ): InferableComponentEnhancerWithProps; -export declare function connect( +export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: MergeProps, diff --git a/types/react-redux/react-redux-tests.tsx b/types/react-redux/react-redux-tests.tsx index 5a9b038dc5..619a25a7df 100644 --- a/types/react-redux/react-redux-tests.tsx +++ b/types/react-redux/react-redux-tests.tsx @@ -57,26 +57,26 @@ interface ICounterDispatchProps { onIncrement: () => void } // with higher order functions -connect( +connect( () => mapStateToProps, () => mapDispatchToProps )(Counter); // with higher order functions using parameters -connect( +connect( (initialState: CounterState, ownProps) => mapStateToProps, (dispatch: Dispatch, ownProps) => mapDispatchToProps )(Counter); // only first argument -connect( +connect( () => mapStateToProps )(Counter); // wrap only one argument -connect( +connect( mapStateToProps, () => mapDispatchToProps )(Counter); // with extra arguments -connect( +connect( () => mapStateToProps, () => mapDispatchToProps, (s: ICounterStateProps, d: ICounterDispatchProps) => From 582bba204d4918c447cd6cc68aca775c5123b481 Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Wed, 2 Aug 2017 11:52:55 +0800 Subject: [PATCH 066/316] Update typing for pg --- types/pg/index.d.ts | 31 +++++++++++---------- types/pg/pg-tests.ts | 63 +++++++++++++++++++++++++----------------- types/pg/tsconfig.json | 4 +-- types/pg/tslint.json | 5 ++++ 4 files changed, 61 insertions(+), 42 deletions(-) create mode 100644 types/pg/tslint.json diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index da6f4db575..fc20d5fd85 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -9,9 +9,11 @@ import events = require("events"); import stream = require("stream"); import pgTypes = require("pg-types"); -export declare function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; -export declare function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; -export declare function end(): void; +// tslint:disable-next-line unified-signatures +export function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +// tslint:disable-next-line unified-signatures +export function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +export function end(): void; export interface ConnectionConfig { user?: string; @@ -64,7 +66,7 @@ export interface ResultBuilder extends QueryResult { addRow(row: any): void; } -export declare class Pool extends events.EventEmitter { +export class Pool extends events.EventEmitter { // `new Pool('pg://user@localhost/mydb')` is not allowed. // But it passes type check because of issue: // https://github.com/Microsoft/TypeScript/issues/7485 @@ -76,9 +78,8 @@ export declare class Pool extends events.EventEmitter { end(callback?: () => void): Promise; query(queryStream: QueryConfig & stream.Readable): stream.Readable; - query(queryTextOrConfig: string | QueryConfig): Promise; - query(queryText: string, values: any[]): Promise; - + query(queryConfig: QueryConfig): Promise; + query(queryText: string, values?: any[]): Promise; query(queryTextOrConfig: string | QueryConfig, callback: (err: Error, result: QueryResult) => void): Query; query(queryText: string, values: any[], callback: (err: Error, result: QueryResult) => void): Query; @@ -86,18 +87,17 @@ export declare class Pool extends events.EventEmitter { on(event: "connect" | "acquire", listener: (client: Client) => void): this; } -export declare class Client extends events.EventEmitter { - constructor(connection: string); - constructor(config: ClientConfig); +export class Client extends events.EventEmitter { + constructor(connection: string); // tslint:disable-line unified-signatures + constructor(config: ClientConfig); // tslint:disable-line unified-signatures connect(callback?: (err: Error) => void): void; end(callback?: (err: Error) => void): void; release(err?: Error): void; query(queryStream: QueryConfig & stream.Readable): stream.Readable; - query(queryTextOrConfig: string | QueryConfig): Promise; - query(queryText: string, values: any[]): Promise; - + query(queryConfig: QueryConfig): Promise; + query(queryText: string, values?: any[]): Promise; query(queryTextOrConfig: string | QueryConfig, callback: (err: Error, result: QueryResult) => void): Query; query(queryText: string, values: any[], callback: (err: Error, result: QueryResult) => void): Query; @@ -110,16 +110,17 @@ export declare class Client extends events.EventEmitter { on(event: "drain", listener: () => void): this; on(event: "error", listener: (err: Error) => void): this; on(event: "notification" | "notice", listener: (message: any) => void): this; + // tslint:disable-next-line unified-signatures on(event: "end", listener: () => void): this; } -export declare class Query extends events.EventEmitter { +export class Query extends events.EventEmitter { on(event: "row", listener: (row: any, result?: ResultBuilder) => void): this; on(event: "error", listener: (err: Error) => void): this; on(event: "end", listener: (result: ResultBuilder) => void): this; } -export declare class Events extends events.EventEmitter { +export class Events extends events.EventEmitter { on(event: "error", listener: (err: Error, client: Client) => void): this; } diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index 4b4cfba7ec..6bdf408bee 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -1,8 +1,9 @@ import * as pg from "pg"; -var conString = "postgres://username:password@localhost/database"; +const conString = "postgres://username:password@localhost/database"; // https://github.com/brianc/node-pg-types +// tslint:disable-next-line no-unnecessary-callback-wrapper pg.types.setTypeParser(20, val => Number(val)); // Client pooling @@ -15,8 +16,7 @@ pg.connect(conString, (err, client, done) => { if (err) { done(err); return console.error("Error running query", err); - } - else { + } else { done(); } console.log(result.rows[0]["number"]); @@ -26,7 +26,7 @@ pg.connect(conString, (err, client, done) => { }); // Simple -var client = new pg.Client(conString); +const client = new pg.Client(conString); client.connect(err => { if (err) { return console.error("Could not connect to postgres", err); @@ -46,36 +46,49 @@ client.on('end', () => console.log("Client was disconnected.")); // client pooling -var config = { - user: 'foo', //env var: PGUSER - database: 'my_db', //env var: PGDATABASE - password: 'secret', //env var: PGPASSWORD - port: 5432, //env var: PGPORT - max: 10, // max number of clients in the pool - idleTimeoutMillis: 30000, // how long a client is allowed to remain idle before being closed - Promise, +const config = { + user: 'foo', + database: 'my_db', + password: 'secret', + port: 5432, + max: 10, + idleTimeoutMillis: 30000, + Promise, }; -var pool = new pg.Pool(config); +const pool = new pg.Pool(config); pool.connect((err, client, done) => { - if(err) { - return console.error('error fetching client from pool', err); - } - client.query('SELECT $1::int AS number', ['1'], (err, result) => { - done(); - - if(err) { - return console.error('error running query', err); + if (err) { + return console.error('error fetching client from pool', err); } - console.log(result.rows[0].number); - }); + client.query('SELECT $1::int AS number', ['1'], (err, result) => { + done(); + + if (err) { + return console.error('error running query', err); + } + console.log(result.rows[0].number); + }); }); pool.on('error', (err, client) => { - console.error('idle client error', err.message, err.stack) -}) + console.error('idle client error', err.message, err.stack); +}); pool.end(); pool.end(() => { console.log("pool is closed"); }); + +// Promise + +function query(sql: string, binds?: any[]): void { + // binds: any[] | undefined + pool.query(sql, binds) + .then((result: pg.QueryResult) => { + console.log(result.rows[0].number); + }) + .catch((err: any) => { + console.error('error running query', err); + }); +} diff --git a/types/pg/tsconfig.json b/types/pg/tsconfig.json index 3535f4d43f..6905c7197c 100644 --- a/types/pg/tsconfig.json +++ b/types/pg/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "pg-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/pg/tslint.json b/types/pg/tslint.json new file mode 100644 index 0000000000..495d29983d --- /dev/null +++ b/types/pg/tslint.json @@ -0,0 +1,5 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + } +} From 59035dd08eb992d11440874d99785707e36677af Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Thu, 3 Aug 2017 11:32:19 +0800 Subject: [PATCH 067/316] Fix review comment --- types/pg/index.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index fc20d5fd85..b2c3634f5c 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -9,10 +9,9 @@ import events = require("events"); import stream = require("stream"); import pgTypes = require("pg-types"); -// tslint:disable-next-line unified-signatures -export function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; -// tslint:disable-next-line unified-signatures -export function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +export function connect( + connectionOrConfig: string | ClientConfig, + callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; export function end(): void; export interface ConnectionConfig { @@ -88,8 +87,7 @@ export class Pool extends events.EventEmitter { } export class Client extends events.EventEmitter { - constructor(connection: string); // tslint:disable-line unified-signatures - constructor(config: ClientConfig); // tslint:disable-line unified-signatures + constructor(connectionOrConfig: string | ClientConfig); connect(callback?: (err: Error) => void): void; end(callback?: (err: Error) => void): void; From 3653eef83fb63e92c9751ea67670f0c43b9ef150 Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Fri, 11 Aug 2017 14:37:31 +0800 Subject: [PATCH 068/316] Update to pg 7.1 API --- types/pg/index.d.ts | 21 +++--- types/pg/pg-tests.ts | 144 +++++++++++++++++++++++++---------------- types/pg/tsconfig.json | 1 + 3 files changed, 100 insertions(+), 66 deletions(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index b2c3634f5c..92aeb91c86 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for pg 6.1 +// Type definitions for pg 7.1 // Project: https://github.com/brianc/node-postgres // Definitions by: Phips Peter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -9,11 +9,6 @@ import events = require("events"); import stream = require("stream"); import pgTypes = require("pg-types"); -export function connect( - connectionOrConfig: string | ClientConfig, - callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; -export function end(): void; - export interface ConnectionConfig { user?: string; database?: string; @@ -41,6 +36,7 @@ export interface PoolConfig extends ClientConfig { max?: number; min?: number; refreshIdle?: boolean; + connectionTimeoutMillis?: number; idleTimeoutMillis?: number; reapIntervalMillis?: number; returnToHead?: boolean; @@ -74,7 +70,8 @@ export class Pool extends events.EventEmitter { connect(): Promise; connect(callback: (err: Error, client: Client, done: () => void) => void): void; - end(callback?: () => void): Promise; + end(): Promise; + end(callback: () => void): void; query(queryStream: QueryConfig & stream.Readable): stream.Readable; query(queryConfig: QueryConfig): Promise; @@ -87,10 +84,14 @@ export class Pool extends events.EventEmitter { } export class Client extends events.EventEmitter { - constructor(connectionOrConfig: string | ClientConfig); + constructor(config: ClientConfig); + + connect(): Promise; + connect(callback: (err: Error) => void): void; + + end(): Promise; + end(callback: (err: Error) => void): void; - connect(callback?: (err: Error) => void): void; - end(callback?: (err: Error) => void): void; release(err?: Error): void; query(queryStream: QueryConfig & stream.Readable): stream.Readable; diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index 6bdf408bee..d3359d930a 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -1,32 +1,15 @@ import * as pg from "pg"; -const conString = "postgres://username:password@localhost/database"; - // https://github.com/brianc/node-pg-types // tslint:disable-next-line no-unnecessary-callback-wrapper pg.types.setTypeParser(20, val => Number(val)); -// Client pooling -pg.defaults.ssl = true; -pg.connect(conString, (err, client, done) => { - if (err) { - return console.error("Error fetching client from pool", err); - } - client.query("SELECT $1::int AS number", ["1"], (err, result) => { - if (err) { - done(err); - return console.error("Error running query", err); - } else { - done(); - } - console.log(result.rows[0]["number"]); - return null; - }); - return null; +const client = new pg.Client({ + host: 'my.database-server.com', + port: 5334, + user: 'database-user', + password: 'secretpassword!!', }); - -// Simple -const client = new pg.Client(conString); client.connect(err => { if (err) { return console.error("Could not connect to postgres", err); @@ -44,51 +27,100 @@ client.connect(err => { }); client.on('end', () => console.log("Client was disconnected.")); -// client pooling +client.connect() + .then(() => console.log('connected')) + .catch(e => console.error('connection error', e.stack)); -const config = { - user: 'foo', - database: 'my_db', - password: 'secret', - port: 5432, - max: 10, - idleTimeoutMillis: 30000, - Promise, +client.query('SELECT NOW()', (err, res) => { + if (err) throw err; + console.log(res); + client.end(); +}); + +client.query('SELECT $1::text as name', ['brianc'], (err, res) => { + if (err) throw err; + console.log(res); + client.end(); +}); + +const query = { + name: 'get-name', + text: 'SELECT $1::text', + values: ['brianc'], + rowMode: 'array' }; -const pool = new pg.Pool(config); +client.query(query, (err, res) => { + if (err) { + console.error(err.stack); + } else { + console.log(res.rows); + } +}); +client.query(query) + .then(res => { + console.log(res.rows); + }) + .catch(e => { + console.error(e.stack); + }); +client.end((err) => { + console.log('client has disconnected'); + if (err) { + console.log('error during disconnection', err.stack); + } +}); + +client.end() + .then(() => console.log('client has disconnected')) + .catch(err => console.error('error during disconnection', err.stack)); + +const pool = new pg.Pool({ + host: 'localhost', + port: 5432, + user: 'database-user', + database: 'my_db', + max: 20, + idleTimeoutMillis: 30000, + connectionTimeoutMillis: 2000, +}); pool.connect((err, client, done) => { - if (err) { - return console.error('error fetching client from pool', err); - } - client.query('SELECT $1::int AS number', ['1'], (err, result) => { - done(); + if (err) { + return console.error('error fetching client from pool', err); + } + client.query('SELECT $1::int AS number', ['1'], (err, result) => { + done(); - if (err) { - return console.error('error running query', err); - } - console.log(result.rows[0].number); - }); + if (err) { + return console.error('error running query', err); + } + console.log(result.rows[0].number); + }); }); pool.on('error', (err, client) => { - console.error('idle client error', err.message, err.stack); + console.error('idle client error', err.message, err.stack); }); -pool.end(); +pool.query('SELECT $1::text as name', ['brianc'], (err, result) => { + if (err) { + return console.error('Error executing query', err.stack); + } + console.log(result.rows[0].name); +}); + +pool.query('SELECT $1::text as name', ['brianc']) + .then((res) => console.log(res.rows[0].name)) + .catch(err => console.error('Error executing query', err.stack)); + pool.end(() => { - console.log("pool is closed"); + console.log('pool has ended'); }); -// Promise +pool.end().then(() => console.log('pool has ended')); -function query(sql: string, binds?: any[]): void { - // binds: any[] | undefined - pool.query(sql, binds) - .then((result: pg.QueryResult) => { - console.log(result.rows[0].number); - }) - .catch((err: any) => { - console.error('error running query', err); - }); -} +(async () => { + const client = await pool.connect(); + await client.query('SELECT NOW()'); + client.release(); +})(); diff --git a/types/pg/tsconfig.json b/types/pg/tsconfig.json index 6905c7197c..caa997a916 100644 --- a/types/pg/tsconfig.json +++ b/types/pg/tsconfig.json @@ -4,6 +4,7 @@ "lib": [ "es6" ], + "target": "es6", "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, From c03e601a5079f67aae15d2780e8c01d2136da18e Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Fri, 11 Aug 2017 16:23:04 +0800 Subject: [PATCH 069/316] Update pg-query-stream test to use pg@7.1 API. --- types/pg-query-stream/pg-query-stream-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/pg-query-stream/pg-query-stream-tests.ts b/types/pg-query-stream/pg-query-stream-tests.ts index 6c4c034102..1df78ea648 100644 --- a/types/pg-query-stream/pg-query-stream-tests.ts +++ b/types/pg-query-stream/pg-query-stream-tests.ts @@ -8,7 +8,8 @@ const options: QueryStream.Options = { const query = new QueryStream('SELECT * FROM generate_series(0, $1) num', [1000000], options); -pg.connect('', (err, client, done) => { +const pool = new pg.Pool(); +pool.connect((err, client, done) => { const stream = client.query(query); stream.on('end', () => { client.end(); @@ -17,3 +18,4 @@ pg.connect('', (err, client, done) => { console.log(data); }); }); +pool.end(); From 854a2af8e5ff411490b48cc14f960ead8f4c1874 Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Tue, 22 Aug 2017 18:26:00 +0800 Subject: [PATCH 070/316] Add properties totalCount, idleCount, waitingCount --- types/pg/index.d.ts | 4 ++++ types/pg/pg-tests.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index 92aeb91c86..ebba2d0f7d 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -67,6 +67,10 @@ export class Pool extends events.EventEmitter { // https://github.com/Microsoft/TypeScript/issues/7485 constructor(config?: PoolConfig); + readonly totalCount: number; + readonly idleCount: number; + readonly waitingCount: number; + connect(): Promise; connect(callback: (err: Error, client: Client, done: () => void) => void): void; diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index d3359d930a..81eadd0b13 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -84,6 +84,7 @@ const pool = new pg.Pool({ idleTimeoutMillis: 30000, connectionTimeoutMillis: 2000, }); +console.log(pool.totalCount); pool.connect((err, client, done) => { if (err) { return console.error('error fetching client from pool', err); From a26b2c6e97871596a94e4c2d5529bb229861080a Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Fri, 25 Aug 2017 17:33:35 +0800 Subject: [PATCH 071/316] Remove properties which are no more available in pg 7.1 --- types/pg/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index ebba2d0f7d..04a84f1dfd 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -35,11 +35,9 @@ export interface PoolConfig extends ClientConfig { // properties from module 'node-pool' max?: number; min?: number; - refreshIdle?: boolean; connectionTimeoutMillis?: number; idleTimeoutMillis?: number; - reapIntervalMillis?: number; - returnToHead?: boolean; + application_name?: string; Promise?: PromiseConstructorLike; } From 84a47dcbebb349bd3f72810b7ec2f63b85629c4a Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Fri, 25 Aug 2017 17:59:24 +0800 Subject: [PATCH 072/316] New test rule expects a github URL. --- types/pg/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index 04a84f1dfd..1383dc2a22 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pg 7.1 // Project: https://github.com/brianc/node-postgres -// Definitions by: Phips Peter +// Definitions by: Phips Peter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// From 3bc2634b096e54d3c6c5a5af7ef58051bc1847dd Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Mon, 28 Aug 2017 10:56:04 +0800 Subject: [PATCH 073/316] Fix lint rule no-void-expression --- types/pg/pg-tests.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index 81eadd0b13..bc1bfd30e0 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -12,11 +12,13 @@ const client = new pg.Client({ }); client.connect(err => { if (err) { - return console.error("Could not connect to postgres", err); + console.error("Could not connect to postgres", err); + return; } client.query("SELECT NOW() AS 'theTime'", (err, result) => { if (err) { - return console.error("Error running query", err); + console.error("Error running query", err); + return; } console.log(result.rowCount); console.log(result.rows[0]["theTime"]); @@ -87,13 +89,15 @@ const pool = new pg.Pool({ console.log(pool.totalCount); pool.connect((err, client, done) => { if (err) { - return console.error('error fetching client from pool', err); + console.error('error fetching client from pool', err); + return; } client.query('SELECT $1::int AS number', ['1'], (err, result) => { done(); if (err) { - return console.error('error running query', err); + console.error('error running query', err); + return; } console.log(result.rows[0].number); }); @@ -105,7 +109,8 @@ pool.on('error', (err, client) => { pool.query('SELECT $1::text as name', ['brianc'], (err, result) => { if (err) { - return console.error('Error executing query', err.stack); + console.error('Error executing query', err.stack); + return; } console.log(result.rows[0].name); }); From fa6392d2687010b11ef4768f3f163941a19affcb Mon Sep 17 00:00:00 2001 From: Patrick Reames Date: Mon, 28 Aug 2017 00:11:23 -0500 Subject: [PATCH 074/316] mapbox-gl: GeolocateControl support v0.39.0 :warning: Breaking changes GeolocateControl breaking changes https://github.com/mapbox/mapbox-gl-js/pull/4479 The option watchPosition has been replaced with trackUserLocation The camera operation has changed from jumpTo (not animated) to fitBounds (animated). An effect of this is the map pitch is no longer reset, although the bearing is still reset to 0. The accuracy of the geolocation provided by the device is used to set the view (previously it was fixed at zoom level 17). The maxZoom can be controlled via the new fitBoundsOptions option (defaults to 15). New option showUserLocation to draw a "dot" as a Marker on the map at the user's location --- types/mapbox-gl/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index c2a9a3d41e..0f74cae466 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mapbox GL JS v0.39.1 // Project: https://github.com/mapbox/mapbox-gl-js -// Definitions by: Dominik Bruderer +// Definitions by: Dominik Bruderer , Patrick Reames // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -395,12 +395,16 @@ declare namespace mapboxgl { timeout?: number; maximumAge?: number; } + + export class FitBoundsOptions { + maxZoom?: number; + } /** * Geolocate */ export class GeolocateControl extends Control { - constructor(options?: {positionOptions?: PositionOptions, watchPosition?: boolean}); + constructor(options?: {positionOptions?: PositionOptions, fitBoundsOptions?: FitBoundsOptions, trackUserLocation?: boolean, showUserLocation?: boolean}); } /** From ab49000acf83ab669671147dbc96631ef6030269 Mon Sep 17 00:00:00 2001 From: Patrick Reames Date: Mon, 28 Aug 2017 00:27:47 -0500 Subject: [PATCH 075/316] mapbox-gl: support pitch-alignment v0.39.0 Add new icon-pitch-alignment and circle-pitch-alignment properties https://github.com/mapbox/mapbox-gl-js/pull/4869 https://github.com/mapbox/mapbox-gl-js/pull/4871 --- types/mapbox-gl/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index 0f74cae466..015aa21bce 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -995,6 +995,7 @@ declare namespace mapboxgl { "icon-ignore-placement"?: boolean; "icon-optional"?: boolean; "icon-rotation-alignment"?: "map" | "viewport" | "auto"; + "icon-pitch-alignment"?: "map" | "viewport"| "auto"; "icon-size"?: number | StyleFunction; "icon-text-fit"?: "none" | "both" | "width" | "height"; "icon-text-fit-padding"?: number[]; @@ -1068,6 +1069,7 @@ declare namespace mapboxgl { "circle-translate"?: number[]; "circle-translate-anchor"?: "map" | "viewport"; "circle-pitch-scale"?: "map" | "viewport"; + "circle-pitch-alignment"?: "map" | "viewport"; "circle-stroke-width"?: number | StyleFunction; "circle-stroke-color"?: string | StyleFunction; "circle-stroke-opacity"?: number | StyleFunction; From 87a16df2ae5c837ce588e67ed3618dc08b8fb4c2 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Mon, 28 Aug 2017 09:26:56 +0200 Subject: [PATCH 076/316] [sprintf-js] improve typings, enable strict null checks and linting --- types/sprintf-js/index.d.ts | 234 ++++++++++++++++++--------- types/sprintf-js/sprintf-js-tests.ts | 10 +- types/sprintf-js/tsconfig.json | 4 +- types/sprintf-js/tslint.json | 1 + 4 files changed, 169 insertions(+), 80 deletions(-) create mode 100644 types/sprintf-js/tslint.json diff --git a/types/sprintf-js/index.d.ts b/types/sprintf-js/index.d.ts index b7c54d40fb..67d6bba4a8 100644 --- a/types/sprintf-js/index.d.ts +++ b/types/sprintf-js/index.d.ts @@ -1,78 +1,168 @@ -// Type definitions for sprintf-js +// Type definitions for sprintf-js 1.1 // Project: https://www.npmjs.com/package/sprintf-js -// Definitions by: Jason Swearingen +// Definitions by: Jason Swearingen +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/** + * Returns a formatted string: + * + * string sprintf(string format, mixed arg1?, mixed arg2?, ...) + * + * ### Argument swapping + * + * You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. + * You can do that by simply indicating in the format string which arguments the placeholders refer to: + * + * sprintf('%2$s %3$s a %1$s', 'cracker', 'Polly', 'wants') + * + * And, of course, you can repeat the placeholders without having to increase the number of arguments. + * + * ### Named arguments + * + * Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, + * you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - `(` and `)` - + * and begin with a keyword that refers to a key: + * + * var user = { + * name: 'Dolly', + * } + * sprintf('Hello %(name)s', user) // Hello Dolly + * + * Keywords in replacement fields can be optionally followed by any number of keywords or indexes: + * + * var users = [ + * {name: 'Dolly'}, + * {name: 'Molly'}, + * {name: 'Polly'}, + * ] + * sprintf('Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s', {users: users}) // Hello Dolly, Molly and Polly + * + * Note: mixing positional and named placeholders is not (yet) supported + * + * ### Computed values + * + * You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on the fly. + * + * sprintf('Current date and time: %s', function() { return new Date().toString() }) + * + * @param format: format string + * The placeholders in the format string are marked by `%` and are followed by one or more of these elements, in this order: + * * An optional number followed by a `$` sign that selects which argument index to use for the value. If not specified, + * arguments will be placed in the same order as the placeholders in the input string. + * * An optional `+` sign that forces to preceed the result with a plus or minus sign on numeric values. By default, + * only the `-` sign is used on negative numbers. + * * An optional padding specifier that says what character to use for padding (if specified). Possible values are + * `0` or any other character precedeed by a `'` (single quote). The default is to pad with *spaces*. + * * An optional `-` sign, that causes `sprintf` to left-align the result of this placeholder. The default is to right-align the result. + * * An optional number, that says how many characters the result should have. If the value to be returned is shorter + * than this number, the result will be padded. When used with the `j` (JSON) type specifier, the padding length + * specifies the tab size used for indentation. + * * An optional precision modifier, consisting of a `.` (dot) followed by a number, that says how many digits should be + * displayed for floating point numbers. When used with the `g` type specifier, it specifies the number of significant + * digits. When used on a string, it causes the result to be truncated. + * * A type specifier that can be any of: + * * `%` — yields a literal `%` character + * * `b` — yields an integer as a binary number + * * `c` — yields an integer as the character with that ASCII value + * * `d` or `i` — yields an integer as a signed decimal number + * * `e` — yields a float using scientific notation + * * `u` — yields an integer as an unsigned decimal number + * * `f` — yields a float as is; see notes on precision above + * * `g` — yields a float as is; see notes on precision above + * * `o` — yields an integer as an octal number + * * `s` — yields a string as is + * * `t` — yields `true` or `false` + * * `T` — yields the type of the argument1 + * * `v` — yields the primitive value of the specified argument + * * `x` — yields an integer as a hexadecimal number (lower-case) + * * `X` — yields an integer as a hexadecimal number (upper-case) + * * `j` — yields a JavaScript object or array as a JSON encoded string + * @param args: the arguments for the format string + */ +export function sprintf(format: string, ...args: any[]): string; -/** sprintf.js is a complete open source JavaScript sprintf implementation for the browser and node.js. +/** + * Same as `sprintf` except it takes an array of arguments, rather than a variable number of arguments: + * + * string vsprintf(string format, array arguments?) + * + * ### Argument swapping + * + * You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. + * You can do that by simply indicating in the format string which arguments the placeholders refer to: + * + * sprintf('%2$s %3$s a %1$s', 'cracker', 'Polly', 'wants') + * + * And, of course, you can repeat the placeholders without having to increase the number of arguments. + * + * ### Named arguments + * + * Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, + * you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - `(` and `)` - + * and begin with a keyword that refers to a key: + * + * var user = { + * name: 'Dolly', + * } + * sprintf('Hello %(name)s', user) // Hello Dolly + * + * Keywords in replacement fields can be optionally followed by any number of keywords or indexes: + * + * var users = [ + * {name: 'Dolly'}, + * {name: 'Molly'}, + * {name: 'Polly'}, + * ] + * sprintf('Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s', {users: users}) // Hello Dolly, Molly and Polly + * + * Note: mixing positional and named placeholders is not (yet) supported + * + * ### Computed values + * + * You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on the fly. + * + * sprintf('Current date and time: %s', function() { return new Date().toString() }) + * + * @param format: format string + * + * The placeholders in the format string are marked by `%` and are followed by one or more of these elements, in this order: + * + * * An optional number followed by a `$` sign that selects which argument index to use for the value. If not specified, + * arguments will be placed in the same order as the placeholders in the input string. + * * An optional `+` sign that forces to preceed the result with a plus or minus sign on numeric values. By default, + * only the `-` sign is used on negative numbers. + * * An optional padding specifier that says what character to use for padding (if specified). Possible values are + * `0` or any other character precedeed by a `'` (single quote). The default is to pad with *spaces*. + * * An optional `-` sign, that causes `sprintf` to left-align the result of this placeholder. The default is to right-align the result. + * * An optional number, that says how many characters the result should have. If the value to be returned is shorter + * than this number, the result will be padded. When used with the `j` (JSON) type specifier, the padding length + * specifies the tab size used for indentation. + * * An optional precision modifier, consisting of a `.` (dot) followed by a number, that says how many digits should be + * displayed for floating point numbers. When used with the `g` type specifier, it specifies the number of significant + * digits. When used on a string, it causes the result to be truncated. + * * A type specifier that can be any of: + * * `%` — yields a literal `%` character + * * `b` — yields an integer as a binary number + * * `c` — yields an integer as the character with that ASCII value + * * `d` or `i` — yields an integer as a signed decimal number + * * `e` — yields a float using scientific notation + * * `u` — yields an integer as an unsigned decimal number + * * `f` — yields a float as is; see notes on precision above + * * `g` — yields a float as is; see notes on precision above + * * `o` — yields an integer as an octal number + * * `s` — yields a string as is + * * `t` — yields `true` or `false` + * * `T` — yields the type of the argument1 + * * `v` — yields the primitive value of the specified argument + * * `x` — yields an integer as a hexadecimal number (lower-case) + * * `X` — yields an integer as a hexadecimal number (upper-case) + * * `j` — yields a JavaScript object or array as a JSON encoded string + * @param args: the arguments for the format string + */ +export function vsprintf(format: string, args: any[]): string; -Its prototype is simple: - -string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]) -*/ -declare namespace sprintf_js { - /** sprintf.js is a complete open source JavaScript sprintf implementation for the browser and node.js. -Its prototype is simple: - string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]) - -==Placeholders== - The placeholders in the format string are marked by % and are followed by one or more of these elements. see "fmt" arg for more docs on placeholders. - -==Argument swapping== -You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. You can do that by simply indicating in the format string which arguments the placeholders refer to: - sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants") - And, of course, you can repeat the placeholders without having to increase the number of arguments. - -==Named arguments== -Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - ( and ) - and begin with a keyword that refers to a key: - var user = {name: "Dolly"} - sprintf("Hello %(name)s", user) // Hello Dolly -Keywords in replacement fields can be optionally followed by any number of keywords or indexes: - var users = [{name: "Dolly"},{name: "Molly"},{name: "Polly"}] - sprintf("Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s", {users: users}) // Hello Dolly, Molly and Polly -Note: mixing positional and named placeholders is not (yet) supported - -==Computed values== -You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on-the-fly. - sprintf("Current timestamp: %d", Date.now) // Current timestamp: 1398005382890 - sprintf("Current date and time: %s", function() { return new Date().toString() }) - */ - export function sprintf( - /** The placeholders in the format string are marked by % and are followed by one or more of these elements, in this order: - -An optional number followed by a $ sign that selects which argument index to use for the value. If not specified, arguments will be placed in the same order as the placeholders in the input string. -An optional + sign that forces to preceed the result with a plus or minus sign on numeric values. By default, only the - sign is used on negative numbers. -An optional padding specifier that says what character to use for padding (if specified). Possible values are 0 or any other character precedeed by a ' (single quote). The default is to pad with spaces. -An optional - sign, that causes sprintf to left-align the result of this placeholder. The default is to right-align the result. -An optional number, that says how many characters the result should have. If the value to be returned is shorter than this number, the result will be padded. -An optional precision modifier, consisting of a . (dot) followed by a number, that says how many digits should be displayed for floating point numbers. When used on a string, it causes the result to be truncated. -A type specifier that can be any of: -% - yields a literal % character -b - yields an integer as a binary number -c - yields an integer as the character with that ASCII value -d or i - yields an integer as a signed decimal number -e - yields a float using scientific notation -u - yields an integer as an unsigned decimal number -f - yields a float as is -o - yields an integer as an octal number -s - yields a string as is -x - yields an integer as a hexadecimal number (lower-case) -X - yields an integer as a hexadecimal number (upper-case) - */ - fmt: string, - /** */ - ...args: any[] - ): string; - /** vsprintf is the same as sprintf except that it accepts an array of arguments, rather than a variable number of arguments: - - vsprintf("The first 4 letters of the english alphabet are: %s, %s, %s and %s", ["a", "b", "c", "d"]) -*/ - export function vsprintf(fmt: string, args: any[]): string; +declare global { + function sprintf(format: string, ...args: any[]): string; + function vsprintf(format: string, args: any[]): string; } - -declare module "sprintf-js" { - export =sprintf_js; -} - -declare var sprintf: typeof sprintf_js.sprintf; -declare var vsprintf: typeof sprintf_js.vsprintf; diff --git a/types/sprintf-js/sprintf-js-tests.ts b/types/sprintf-js/sprintf-js-tests.ts index 8119f6d45a..03bc5a40e4 100644 --- a/types/sprintf-js/sprintf-js-tests.ts +++ b/types/sprintf-js/sprintf-js-tests.ts @@ -1,14 +1,12 @@ - - import sprintf = require('sprintf-js'); -var str: string; -var num: number; +declare const str: string; +declare const num: number; -sprintf.sprintf(str, str); +sprintf.sprintf(str, str); // $ExpectType string sprintf.sprintf(str, str, num); sprintf.sprintf(str, num, str); -sprintf.vsprintf(str, [str]); +sprintf.vsprintf(str, [str]); // $ExpectType string sprintf.vsprintf(str, [str, num]); sprintf.vsprintf(str, [num, str]); diff --git a/types/sprintf-js/tsconfig.json b/types/sprintf-js/tsconfig.json index a53c1db3cc..eda7030ead 100644 --- a/types/sprintf-js/tsconfig.json +++ b/types/sprintf-js/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "sprintf-js-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/sprintf-js/tslint.json b/types/sprintf-js/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/sprintf-js/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 2c963b4c5f8dfe7274037e1cb533210e30013ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josue=CC=81=20Us?= Date: Mon, 28 Aug 2017 11:56:50 -0600 Subject: [PATCH 077/316] Add missed function type for filterValue on TableHeaderColumn --- types/react-bootstrap-table/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 1b80e670fa..e670fa2464 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-bootstrap-table v2.6.0 // Project: https://github.com/AllenFang/react-bootstrap-table -// Definitions by: Frank Laub , Aleksander Lode +// Definitions by: Frank Laub , Aleksander Lode , Josué Us // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -581,6 +581,12 @@ export interface TableHeaderColumnProps extends Props { * Default: 1 */ colSpan?: number; + + /** + * Return the value you want to be filtered on that column. + * It's useful if your column data is an object. + */ + filterValue?: Function; } export interface Editable { type?: string;//edit type, avaiable value is textarea, select, checkbox From fda3af0b02fa78cddd809e77bfeb6fed536a2f48 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 29 Aug 2017 19:25:56 +0900 Subject: [PATCH 078/316] fix #19372 --- types/rc-tooltip/index.d.ts | 12 +++++------- types/rc-tooltip/rc-tooltip-tests.tsx | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/types/rc-tooltip/index.d.ts b/types/rc-tooltip/index.d.ts index c24f0018fd..20f65e3059 100644 --- a/types/rc-tooltip/index.d.ts +++ b/types/rc-tooltip/index.d.ts @@ -5,9 +5,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -/// +import * as React from 'react'; -declare namespace Tooltip { +export as namespace RCTooltip; + +declare namespace RCTooltip { export type Trigger = "hover" | "click" | "focus"; export type Placement = "left" | "right" | "top" | "bottom" | @@ -34,8 +36,4 @@ declare namespace Tooltip { } } -declare class Tooltip extends React.Component {} - -declare module "rc-tooltip" { - export = Tooltip -} +export default class Tooltip extends React.Component {} diff --git a/types/rc-tooltip/rc-tooltip-tests.tsx b/types/rc-tooltip/rc-tooltip-tests.tsx index 832a292e97..25eedad8eb 100644 --- a/types/rc-tooltip/rc-tooltip-tests.tsx +++ b/types/rc-tooltip/rc-tooltip-tests.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import * as Tooltip from 'rc-tooltip'; +import Tooltip from 'rc-tooltip'; ReactDOM.render( tooltip}> From 891ea85b105bbbc2fe428d36caed8e6e62becd75 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 29 Aug 2017 19:31:54 +0900 Subject: [PATCH 079/316] add tests for RCTooltip namespace --- types/rc-tooltip/rc-tooltip-tests.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/rc-tooltip/rc-tooltip-tests.tsx b/types/rc-tooltip/rc-tooltip-tests.tsx index 25eedad8eb..06b230a55b 100644 --- a/types/rc-tooltip/rc-tooltip-tests.tsx +++ b/types/rc-tooltip/rc-tooltip-tests.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import Tooltip from 'rc-tooltip'; +import Tooltip, {RCTooltip} from 'rc-tooltip'; ReactDOM.render( tooltip}> @@ -50,3 +50,9 @@ ReactDOM.render( , document.querySelector('.another-app') ); + +const props: RCTooltip.Props = { + placement: "bottomRight", + trigger: ['click', 'focus'], + overlay: () => tooltip, +}; From 74f2afea077e135db74b9b1f8d65e4ff49e30fe6 Mon Sep 17 00:00:00 2001 From: Benjamin Svobodny Date: Tue, 29 Aug 2017 08:27:20 -0400 Subject: [PATCH 080/316] Add steppedLine property in ChartDataSets Add steppedLine property in ChartDataSets definition as per the documentation : http://www.chartjs.org/docs/latest/charts/line.html#stepped-line --- types/chart.js/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index ec8a7c0c03..42f907b846 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -371,6 +371,7 @@ declare namespace Chart { fill?: boolean; label?: string; lineTension?: number; + steppedLine?: 'before' | 'after' | boolean; pointBorderColor?: ChartColor | ChartColor[]; pointBackgroundColor?: ChartColor | ChartColor[]; pointBorderWidth?: number | number[]; From 5677208b599570119ab8712bee1e2a9765a6b64d Mon Sep 17 00:00:00 2001 From: Frank Tan Date: Tue, 29 Aug 2017 11:28:29 -0400 Subject: [PATCH 081/316] [react-redux] Fix incorrect change in connect. Accidentally removed {} in 3rd generic position and turned this into a 3-arity version vs the original 4-arity. --- types/react-redux/react-redux-tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-redux/react-redux-tests.tsx b/types/react-redux/react-redux-tests.tsx index 619a25a7df..e369003434 100644 --- a/types/react-redux/react-redux-tests.tsx +++ b/types/react-redux/react-redux-tests.tsx @@ -76,7 +76,7 @@ connect( () => mapDispatchToProps )(Counter); // with extra arguments -connect( +connect( () => mapStateToProps, () => mapDispatchToProps, (s: ICounterStateProps, d: ICounterDispatchProps) => From 61409c12dfa324f923972297037d54cf54f55c9f Mon Sep 17 00:00:00 2001 From: Drew Pirrone-Brusse Date: Tue, 29 Aug 2017 12:39:23 -0400 Subject: [PATCH 082/316] Add missing Joi.string().uuid() As per the [Joi API docs](https://github.com/hapijs/joi/blob/v10.5.0/API.md#stringguid---aliases-uuid) `uuid()` is an alias for `guid()`, so this is essentially a one-liner. --- types/joi/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/joi/index.d.ts b/types/joi/index.d.ts index 0772c82fbe..4ae81db885 100644 --- a/types/joi/index.d.ts +++ b/types/joi/index.d.ts @@ -519,6 +519,11 @@ export interface StringSchema extends AnySchema { * Requires the string value to be a valid GUID. */ guid(options?: GuidOptions): StringSchema; + + /** + * Alias for `guid` -- Requires the string value to be a valid GUID + */ + uuid(options?: GuidOptions): StringSchema; /** * Requires the string value to be a valid hexadecimal string. From 4220dd986878a2b450fa15a8196f40b11482b90e Mon Sep 17 00:00:00 2001 From: Simon Fridlund Date: Tue, 29 Aug 2017 18:20:22 +0200 Subject: [PATCH 083/316] flux-standard-action: Update AnyMeta and TypedMeta `meta` is optional according to the specification. --- types/flux-standard-action/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/flux-standard-action/index.d.ts b/types/flux-standard-action/index.d.ts index 388132bea6..ce328e9be8 100644 --- a/types/flux-standard-action/index.d.ts +++ b/types/flux-standard-action/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for flux-standard-action 0.5.0 // Project: https://github.com/acdlite/flux-standard-action // Definitions by: Qubo +// Simon Fridlund // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -16,12 +17,12 @@ export interface Action { /** Usage: `var action: Action & AnyMeta;` */ export interface AnyMeta { - meta: any + meta?: any; } /** Usage: `var action: Action & TypedMeta;` */ export interface TypedMeta { - meta: T + meta?: T; } export declare function isFSA(action: any): action is Action; From 1b92e6a86e12df787e064b0eb939d6effa7cbd64 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Tue, 29 Aug 2017 10:23:11 -0700 Subject: [PATCH 084/316] Add `parserOpts` to `TransformOptions` interface for @types/babel-core --- types/babel-core/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/babel-core/index.d.ts b/types/babel-core/index.d.ts index 1ea5d888d8..698a074ced 100644 --- a/types/babel-core/index.d.ts +++ b/types/babel-core/index.d.ts @@ -142,6 +142,9 @@ export interface TransformOptions { /** Specify a custom name for module ids. */ moduleId?: string; + + /** Babylon parser options. */ + parserOpts?: Object; } export interface BabelFileResult { From f43d588a4a194b9325cad4ae99228f4e71006f7a Mon Sep 17 00:00:00 2001 From: Juan Carlos Paucar Date: Tue, 29 Aug 2017 13:19:31 -0500 Subject: [PATCH 085/316] Include subQuery for sequelize version 3 as well --- types/sequelize/v3/index.d.ts | 5 +++++ types/sequelize/v3/sequelize-tests.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/types/sequelize/v3/index.d.ts b/types/sequelize/v3/index.d.ts index bb9511c5ed..c0372c6b66 100644 --- a/types/sequelize/v3/index.d.ts +++ b/types/sequelize/v3/index.d.ts @@ -3221,6 +3221,11 @@ declare namespace sequelize { * Apply DISTINCT(col) for FindAndCount(all) */ distinct?: boolean; + + /** + * Prevents a subquery on the main table when using include + */ + subQuery?: boolean; } /** diff --git a/types/sequelize/v3/sequelize-tests.ts b/types/sequelize/v3/sequelize-tests.ts index 3f1ef022bb..4a3ba51753 100644 --- a/types/sequelize/v3/sequelize-tests.ts +++ b/types/sequelize/v3/sequelize-tests.ts @@ -896,6 +896,7 @@ User.findAll( { attributes: [[s.fn('count', Sequelize.col('*')), 'count']] }); User.findAll( { attributes: [[s.fn('count', Sequelize.col('*')), 'count']], group: ['sex'] }); User.findAll( { attributes: [s.cast(s.fn('count', Sequelize.col('*')), 'INTEGER')] }); User.findAll( { attributes: [[s.cast(s.fn('count', Sequelize.col('*')), 'INTEGER'), 'count']] }); +User.findAll( { subQuery: false, include : [User], order : [['id', 'ASC NULLS LAST']] } ); User.findById( 'a string' ); From 0ced620e8a08607e91696aba961ada9445d11e58 Mon Sep 17 00:00:00 2001 From: Austin Martin Date: Tue, 29 Aug 2017 13:24:38 -0500 Subject: [PATCH 086/316] Add mat4.getScaling function declaration. --- types/gl-matrix/gl-matrix-tests.ts | 10 ++++++---- types/gl-matrix/index.d.ts | 12 ++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/types/gl-matrix/gl-matrix-tests.ts b/types/gl-matrix/gl-matrix-tests.ts index 3642cca521..3a9c3175c8 100644 --- a/types/gl-matrix/gl-matrix-tests.ts +++ b/types/gl-matrix/gl-matrix-tests.ts @@ -294,8 +294,9 @@ outMat4 = mat4.fromXRotation(outMat4, Math.PI); outMat4 = mat4.fromYRotation(outMat4, Math.PI); outMat4 = mat4.fromZRotation(outMat4, Math.PI); outMat4 = mat4.fromRotationTranslation(outMat4, quatA, vec3A); -outVec3 = mat4.getTranslation(outVec3, mat4A) -outQuat = mat4.getRotation(outQuat, mat4A) +outVec3 = mat4.getTranslation(outVec3, mat4A); +outVec3 = mat4.getScaling(outVec3, mat4A); +outQuat = mat4.getRotation(outQuat, mat4A); outMat4 = mat4.fromRotationTranslationScale(outMat4, quatA, vec3A, vec3B); outMat4 = mat4.fromRotationTranslationScaleOrigin(outMat4, quatA, vec3A, vec3B, vec3A); outMat4 = mat4.fromQuat(outMat4, quatB); @@ -643,8 +644,9 @@ outMat4 = _mat4.fromXRotation(outMat4, Math.PI); outMat4 = _mat4.fromYRotation(outMat4, Math.PI); outMat4 = _mat4.fromZRotation(outMat4, Math.PI); outMat4 = _mat4.fromRotationTranslation(outMat4, quatA, vec3A); -outVec3 = _mat4.getTranslation(outVec3, mat4A) -outQuat = _mat4.getRotation(outQuat, mat4A) +outVec3 = _mat4.getTranslation(outVec3, mat4A); +outVec3 = _mat4.getScaling(outVec3, mat4A); +outQuat = _mat4.getRotation(outQuat, mat4A); outMat4 = _mat4.fromRotationTranslationScale(outMat4, quatA, vec3A, vec3B); outMat4 = _mat4.fromRotationTranslationScaleOrigin(outMat4, quatA, vec3A, vec3B, vec3A); outMat4 = _mat4.fromQuat(outMat4, quatB); diff --git a/types/gl-matrix/index.d.ts b/types/gl-matrix/index.d.ts index 89f28934b8..1e6d310ed6 100644 --- a/types/gl-matrix/index.d.ts +++ b/types/gl-matrix/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for gl-matrix 2.2.2 // Project: https://github.com/toji/gl-matrix // Definitions by: Mattijs Kneppers , based on definitions by Tat +// Austin Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'gl-matrix' { @@ -2450,6 +2451,17 @@ declare module 'gl-matrix' { */ public static getTranslation(out: vec3, mat: mat4): vec3; + /** + * Returns the scaling factor component of a transformation matrix. + * If a matrix is built with fromRotationTranslationScale with a + * normalized Quaternion parameter, the returned vector will be + * the same as the scaling vector originally supplied. + * @param {vec3} out Vector to receive scaling factor component + * @param {mat4} mat Matrix to be decomposed (input) + * @return {vec3} out + */ + public static getScaling(out: vec3, mat: mat4): vec3; + /** * Returns a quaternion representing the rotational component * of a transformation matrix. If a matrix is built with From c7fbc7fe1456f01d5ec8cb34eb81e4e0a3ada235 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Tue, 29 Aug 2017 16:58:15 -0500 Subject: [PATCH 087/316] querying and update enhancements --- types/jsforce/connection.d.ts | 20 +++++++++++++------- types/jsforce/query.d.ts | 10 ++++++++-- types/jsforce/record-result.d.ts | 14 ++++++++++---- types/jsforce/salesforce-object.d.ts | 3 ++- 4 files changed, 33 insertions(+), 14 deletions(-) diff --git a/types/jsforce/connection.d.ts b/types/jsforce/connection.d.ts index 612bf6fc84..859b6dbdb2 100644 --- a/types/jsforce/connection.d.ts +++ b/types/jsforce/connection.d.ts @@ -1,21 +1,26 @@ import { SObjectCreateOptions } from './create-options'; import { DescribeSObjectResult } from './describe-result'; -import { Query } from './query'; +import { Query, QueryResult } from './query'; import { RecordResult } from './record-result'; import { SObject } from './salesforce-object'; -export interface ConnectionOptions { +// These are pulled out because according to http://jsforce.github.io/jsforce/doc/connection.js.html#line49 +//the oauth options can either be in the `oauth2` proeprty OR spread across the main connection +interface OAuth2Options { + clientId: string; + clientSecret: string; + loginUrl: string; + redirectUri?: string; +} + +export interface ConnectionOptions extends Partial { accessToken?: string; callOptions?: Object; instanceUrl?: string; loginUrl?: string; logLevel?: string; maxRequest?: number; - oauth2?: { - clientId: string, - clientSecret: string, - redirectUri?: string, - }; + oauth2?: OAuth2Options; proxyUrl?: string; redirectUri?: string; refreshToken?: string; @@ -37,6 +42,7 @@ export class Connection { constructor(params: ConnectionOptions) accessToken: string; + query(soql: string, callback?: (err: Error, result: QueryResult) => void): QueryResult; sobject(resource: string): SObject; login(user: string, password: string, callback?: (err: Error, res: UserInfo) => void): Promise; loginByOAuth2(user: string, password: string, callback?: (err: Error, res: UserInfo) => void): Promise; diff --git a/types/jsforce/query.d.ts b/types/jsforce/query.d.ts index 42d258a48d..00b90a9464 100644 --- a/types/jsforce/query.d.ts +++ b/types/jsforce/query.d.ts @@ -7,7 +7,14 @@ export interface ExecuteOptions { scanAll?: number; } -export class Query { +export interface QueryResult { + done: boolean; + nextRecordsUrl?: string; + totalSize: number; + records: T[]; +} + +export class Query extends Promise { end(): Query; filter(filter: Object): Query; include(include: string): Query; @@ -27,7 +34,6 @@ export class Query { map(callback: (currentValue: Object) => void): Promise; scanAll(value: boolean): Query; select(fields: Object | string[] | string): Query; - then(onSuccess?: Function, onRejected?: Function): Promise; thenCall(callback?: (err: Error, records: T) => void): Query; toSOQL(callback: (err: Error, soql: string) => void): Promise; update(mapping: any, type: string, callback: (err: Error, records: RecordResult[]) => void): Promise; diff --git a/types/jsforce/record-result.d.ts b/types/jsforce/record-result.d.ts index bf53a5bf98..df77ef26d3 100644 --- a/types/jsforce/record-result.d.ts +++ b/types/jsforce/record-result.d.ts @@ -1,7 +1,13 @@ import { SalesforceId } from './salesforce-id'; -export interface RecordResult { - id: SalesforceId; - success: boolean; - anys: Object[]; +interface ErrorResult { + errors: string[]; + success: false; } + +interface SuccessResult { + id: SalesforceId; + success: true; +} + +export type RecordResult = SuccessResult | ErrorResult; diff --git a/types/jsforce/salesforce-object.d.ts b/types/jsforce/salesforce-object.d.ts index 31da3a2c92..2fd097b709 100644 --- a/types/jsforce/salesforce-object.d.ts +++ b/types/jsforce/salesforce-object.d.ts @@ -10,7 +10,8 @@ import { SalesforceId } from './salesforce-id'; export class SObject { record(options: any, callback?: (err: Error, ret: any) => void): void; - update(options: SObjectCreateOptions, callback?: (err: Error, ret: any) => void): void; + update(record: Partial, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; + update(records: Partial[], options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise; retrieve(ids: string | string[], callback?: (err: Error, ret: Record | Record[]) => void): Promise; retrieve(ids: string | string[], options?: Object, callback?: (err: Error, ret: Record | Record[]) => void): Promise; upsert(records: Record | Record[], extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; From ce91cdc545bc27fdf17269eb56f217543d44c8a5 Mon Sep 17 00:00:00 2001 From: Jack Sun Date: Tue, 29 Aug 2017 16:45:21 -0700 Subject: [PATCH 088/316] [deepmerge] Allow partial types in deepmerge Sometimes deepmerge is used for overwriting only a few properties in a larger object. Allowing partial types lets users deepmerge without having to typecast in those cases. In addition, also updated the typings for arrayMerge to indicate that it will be operating on two arrays. --- types/deepmerge/deepmerge-tests.ts | 12 +++++++++++- types/deepmerge/index.d.ts | 10 ++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/types/deepmerge/deepmerge-tests.ts b/types/deepmerge/deepmerge-tests.ts index 5467cb83f0..8e1ab07828 100644 --- a/types/deepmerge/deepmerge-tests.ts +++ b/types/deepmerge/deepmerge-tests.ts @@ -16,4 +16,14 @@ const expected = { quux: 5 }; -const result = deepmerge(x, y); +const result = deepmerge(x, y); +const anyResult = deepmerge(x, y); + +function reverseConcat(dest: number[], src: number[]) { + return src.concat(dest); +} + +const withOptions = deepmerge(x, y, { + clone: false, + arrayMerge: reverseConcat +}); diff --git a/types/deepmerge/index.d.ts b/types/deepmerge/index.d.ts index 96d0412aa6..5b5e3806bd 100644 --- a/types/deepmerge/index.d.ts +++ b/types/deepmerge/index.d.ts @@ -1,17 +1,19 @@ // Type definitions for deepmerge 1.3 // Project: https://github.com/KyleAMathews/deepmerge // Definitions by: marvinscharle +// syy1125 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = deepmerge; -declare function deepmerge(x: T, y: T, options?: deepmerge.Options): T; +declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T; +declare function deepmerge(x: T1, y: T2, options?: deepmerge.Options): T1 & T2; declare namespace deepmerge { - interface Options { + interface Options { clone?: boolean; - arrayMerge?(destination: T, source: T, options?: Options): T; + arrayMerge?(destination: any[], source: any[], options?: Options): any[]; } - function all(objects: T[], options?: Options): T; + function all(objects: Array>, options?: Options): T; } From 771016d704db347f2df23d79ea3dbe65128f8633 Mon Sep 17 00:00:00 2001 From: Jack Sun Date: Tue, 29 Aug 2017 16:45:21 -0700 Subject: [PATCH 089/316] [deepmerge] Allow partial types in deepmerge Sometimes deepmerge is used for overwriting only a few properties in a larger object. Allowing partial types lets users deepmerge without having to typecast in those cases. In addition, also updated the typings for arrayMerge to indicate that it will be operating on two arrays. --- types/deepmerge/deepmerge-tests.ts | 28 +++++++++++++++++++--------- types/deepmerge/index.d.ts | 10 ++++++---- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/types/deepmerge/deepmerge-tests.ts b/types/deepmerge/deepmerge-tests.ts index 5467cb83f0..dcd21ff3c3 100644 --- a/types/deepmerge/deepmerge-tests.ts +++ b/types/deepmerge/deepmerge-tests.ts @@ -1,19 +1,29 @@ import * as deepmerge from "deepmerge"; const x = { - foo: { bar: 3 }, - array: [{ does: 'work', too: [1, 2, 3] }] + foo: { bar: 3 }, + array: [{ does: 'work', too: [1, 2, 3] }] }; const y = { - foo: { baz: 4 }, - quux: 5, - array: [{ does: 'work', too: [4, 5, 6] }, { really: 'yes' }] + foo: { baz: 4 }, + quux: 5, + array: [{ does: 'work', too: [4, 5, 6] }, { really: 'yes' }] }; const expected = { - foo: { bar: 3, baz: 4 }, - array: [{ does: 'work', too: [1, 2, 3, 4, 5, 6] }, { really: 'yes' }], - quux: 5 + foo: { bar: 3, baz: 4 }, + array: [{ does: 'work', too: [1, 2, 3, 4, 5, 6] }, { really: 'yes' }], + quux: 5 }; -const result = deepmerge(x, y); +const result = deepmerge(x, y); +const anyResult = deepmerge(x, y); + +function reverseConcat(dest: number[], src: number[]) { + return src.concat(dest); +} + +const withOptions = deepmerge(x, y, { + clone: false, + arrayMerge: reverseConcat +}); diff --git a/types/deepmerge/index.d.ts b/types/deepmerge/index.d.ts index 96d0412aa6..5b5e3806bd 100644 --- a/types/deepmerge/index.d.ts +++ b/types/deepmerge/index.d.ts @@ -1,17 +1,19 @@ // Type definitions for deepmerge 1.3 // Project: https://github.com/KyleAMathews/deepmerge // Definitions by: marvinscharle +// syy1125 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = deepmerge; -declare function deepmerge(x: T, y: T, options?: deepmerge.Options): T; +declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T; +declare function deepmerge(x: T1, y: T2, options?: deepmerge.Options): T1 & T2; declare namespace deepmerge { - interface Options { + interface Options { clone?: boolean; - arrayMerge?(destination: T, source: T, options?: Options): T; + arrayMerge?(destination: any[], source: any[], options?: Options): any[]; } - function all(objects: T[], options?: Options): T; + function all(objects: Array>, options?: Options): T; } From b04d8872dcc988e128b9c1b804a3237c26bf4e9e Mon Sep 17 00:00:00 2001 From: Jack Sun Date: Tue, 29 Aug 2017 16:57:22 -0700 Subject: [PATCH 090/316] Using TypeScript 2.1 The Partial type was only added in TS v2.1 --- types/deepmerge/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/deepmerge/index.d.ts b/types/deepmerge/index.d.ts index 5b5e3806bd..797e52c8a5 100644 --- a/types/deepmerge/index.d.ts +++ b/types/deepmerge/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: marvinscharle // syy1125 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 export = deepmerge; From c2c9b9f7c0c00f3269658a87b52baf845b9bc961 Mon Sep 17 00:00:00 2001 From: Santiago Doldan Date: Wed, 23 Aug 2017 23:29:59 -0300 Subject: [PATCH 091/316] Add counterpart --- types/counterpart/counterpart-tests.ts | 29 +++++++++++++++++++++++ types/counterpart/index.d.ts | 32 ++++++++++++++++++++++++++ types/counterpart/tsconfig.json | 22 ++++++++++++++++++ types/counterpart/tslint.json | 1 + 4 files changed, 84 insertions(+) create mode 100644 types/counterpart/counterpart-tests.ts create mode 100644 types/counterpart/index.d.ts create mode 100644 types/counterpart/tsconfig.json create mode 100644 types/counterpart/tslint.json diff --git a/types/counterpart/counterpart-tests.ts b/types/counterpart/counterpart-tests.ts new file mode 100644 index 0000000000..db9f1cf5d6 --- /dev/null +++ b/types/counterpart/counterpart-tests.ts @@ -0,0 +1,29 @@ +import * as counterpart from 'counterpart'; + +counterpart('translation.to.be.used'); +counterpart(['translation', 'to', 'be', 'used']); + +counterpart.setSeparator('*'); + +counterpart.onTranslationNotFound((locale: string, key: string, fallback: string, scope: string) => {}); +counterpart.offTranslationNotFound((locale: string, key: string, fallback: string, scope: string) => {}); + +counterpart.setMissingEntryGenerator((value: string) => {}); + +counterpart.setLocale('es'); +counterpart.getLocale(); + +counterpart.onLocaleChange((newLocale: string, oldLocale: string) => {}); +counterpart.offLocaleChange((newLocale: string, oldLocale: string) => {}); + +counterpart.setFallbackLocale('es'); + +counterpart.registerTranslations('es', { hello: 'Hola' }); + +counterpart.registerInterpolations({ library: 'Counterpart' }); + +counterpart.setKeyTransformer((value: string, options: object) => { + return value.toUpperCase(); +}); + +counterpart.localize(new Date(), { format: 'short' }); diff --git a/types/counterpart/index.d.ts b/types/counterpart/index.d.ts new file mode 100644 index 0000000000..f09ad0708c --- /dev/null +++ b/types/counterpart/index.d.ts @@ -0,0 +1,32 @@ +// Type definitions for counterpart 0.18 +// Project: https://github.com/martinandert/counterpart +// Definitions by: santiagodoldan +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +type NotFoundHandler = (locale: string, key: string, fallback: string, scope: string) => void; +type LocaleChangeHandler = (newLocale: string, oldLocale: string) => void; + +interface Counterpart { + (key: string|string[], options?: object): string; + + setSeparator(value: string): string; + onTranslationNotFound(callback: NotFoundHandler): void; + offTranslationNotFound(callback: NotFoundHandler): void; + setMissingEntryGenerator(callback: (value: string) => void): void; + getLocale(): string; + setLocale(value: string): string; + onLocaleChange(callback: LocaleChangeHandler): void; + offLocaleChange(callback: LocaleChangeHandler): void; + setFallbackLocale(value: string|string[]): void; + registerTranslations(locale: string, data: object): void; + registerInterpolations(data: object): void; + setKeyTransformer(callback: (value: string, options: object) => string): string; + localize(date: Date, options: object): string; + Instance: Counterpart; + Translator: Counterpart; +} + +declare var counterpart: Counterpart; + +export = counterpart; diff --git a/types/counterpart/tsconfig.json b/types/counterpart/tsconfig.json new file mode 100644 index 0000000000..9f2ad836b7 --- /dev/null +++ b/types/counterpart/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "counterpart-tests.ts" + ] +} diff --git a/types/counterpart/tslint.json b/types/counterpart/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/counterpart/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 680fc0b398a87fa7d19cb377a0decd9665a55982 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Tue, 29 Aug 2017 18:23:16 -0700 Subject: [PATCH 092/316] Added fix from https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19382 --- types/chai-as-promised/chai-as-promised-tests.ts | 1 + types/chai-as-promised/index.d.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/chai-as-promised/chai-as-promised-tests.ts b/types/chai-as-promised/chai-as-promised-tests.ts index 7e422521aa..2157f0cc3c 100644 --- a/types/chai-as-promised/chai-as-promised-tests.ts +++ b/types/chai-as-promised/chai-as-promised-tests.ts @@ -26,6 +26,7 @@ thenableNum = chai.expect(thenableNum).to.notify(() => console.log('done')); // BDD API (should) thenableNum = thenableNum.should.be.fulfilled; thenableNum = thenableNum.should.eventually.deep.equal(3); +thenableNum = thenableNum.should.eventually.become(3); thenableNum = thenableNum.should.become(3); thenableNum = thenableNum.should.be.rejected; thenableNum = thenableNum.should.be.rejectedWith(Error); diff --git a/types/chai-as-promised/index.d.ts b/types/chai-as-promised/index.d.ts index bd67bf90cd..459758aa55 100644 --- a/types/chai-as-promised/index.d.ts +++ b/types/chai-as-promised/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: jt000 , // Yuki Kokubun , // Leonard Thieu , +// Mike Lazer-Walker , // Matt Bishop // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -28,14 +29,14 @@ declare namespace Chai { become(expected: any): PromisedAssertion; fulfilled: PromisedAssertion; rejected: PromisedAssertion; - rejectedWith(expected: any, message?: string | RegExp): PromisedAssertion; + rejectedWith: PromisedThrow; notify(fn: Function): PromisedAssertion; } // Eventually does not have .then(), but PromisedAssertion have. interface Eventually extends PromisedLanguageChains, PromisedNumericComparison, PromisedTypeComparison { // From chai-as-promised - become(expected: PromiseLike): PromisedAssertion; + become(expected: any): PromisedAssertion; fulfilled: PromisedAssertion; rejected: PromisedAssertion; rejectedWith: PromisedThrow; From adcf24f32d70efed4ab820adadd454575d09de20 Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Wed, 30 Aug 2017 10:55:55 +0800 Subject: [PATCH 093/316] Add connectionString property to the config object --- types/pg/index.d.ts | 1 + types/pg/pg-tests.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index 1383dc2a22..ec5b929aa4 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -15,6 +15,7 @@ export interface ConnectionConfig { password?: string; port?: number; host?: string; + connectionString?: string; } export interface Defaults extends ConnectionConfig { diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index bc1bfd30e0..1f1e312544 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -77,6 +77,10 @@ client.end() .then(() => console.log('client has disconnected')) .catch(err => console.error('error during disconnection', err.stack)); +const poolOne = new pg.Pool({ + connectionString: 'postgresql://dbuser:secretpassword@database.server.com:3211/mydb' +}); + const pool = new pg.Pool({ host: 'localhost', port: 5432, From 47220b4880390ad0e4c93bfdbbd743709cf2ce89 Mon Sep 17 00:00:00 2001 From: coderslagoon Date: Tue, 29 Aug 2017 19:29:03 -0700 Subject: [PATCH 094/316] updated definitions for file-url version 2.0.2 --- types/file-url/file-url-tests.ts | 11 +++++++---- types/file-url/index.d.ts | 25 ++++++++++++++++++++++--- types/file-url/tslint.json | 1 + 3 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 types/file-url/tslint.json diff --git a/types/file-url/file-url-tests.ts b/types/file-url/file-url-tests.ts index e47cd737cb..463545b49f 100644 --- a/types/file-url/file-url-tests.ts +++ b/types/file-url/file-url-tests.ts @@ -1,10 +1,13 @@ import fileUrl = require("file-url"); -// Copied from https://github.com/sindresorhus/file-url/blob/14c7a69ae3798f50b3a4a21823c86e10b38160fe/readme.md - +// from https://raw.githubusercontent.com/sindresorhus/file-url/df60ecfe08f9844569c794e92ecc2c53d1dd298d/readme.md fileUrl('unicorn.jpg'); -//=> 'file:///Users/sindresorhus/dev/file-url/unicorn.jpg' +// => 'file:///Users/sindresorhus/dev/file-url/unicorn.jpg' fileUrl('/Users/pony/pics/unicorn.jpg'); -//=> 'file:///Users/pony/pics/unicorn.jpg' +// => 'file:///Users/pony/pics/unicorn.jpg' + +// passing {resolve: false} will make it not call path.resolve() on the path +fileUrl('unicorn.jpg', {resolve: false}); +// => 'file:///unicorn.jpg' diff --git a/types/file-url/index.d.ts b/types/file-url/index.d.ts index 1df68f6dbc..0772a16e38 100644 --- a/types/file-url/index.d.ts +++ b/types/file-url/index.d.ts @@ -1,12 +1,31 @@ -// Type definitions for file-url v1.0.1 +// Type definitions for file-url 2.0 // Project: https://github.com/sindresorhus/file-url -// Definitions by: MEDIA CHECK s.r.o. +// Definitions by: coderslagoon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/* + Original typings for 1.0 were provided by + "MEDIA CHECK s.r.o. ", + Did not pass the tslint check, hence mentioning it here. +*/ + +/** + * Options for the fileUrl() API. + */ +interface FileUrlOptions { + /** + * Passing false will make it not call path.resolve() on the path. + */ + resolve?: boolean; +} + /** * Convert a path to a file URL. + * @param path File path to convert. + * @param options Options to use. + * @return File URL. */ -declare function fileUrl(path:string):string; +declare function fileUrl(path: string, options?: FileUrlOptions): string; /** * Convert a path to a file URL. diff --git a/types/file-url/tslint.json b/types/file-url/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/file-url/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 8fb230373fb43e1991fb42eaca80a88120ca0a77 Mon Sep 17 00:00:00 2001 From: Daniel Fader Date: Wed, 30 Aug 2017 10:33:58 +0200 Subject: [PATCH 095/316] Extended definitions for asynchronous resolution of 'OptionsObj' in graphqlHTTP --- .../express-graphql/express-graphql-tests.ts | 26 +++++++++++++------ types/express-graphql/index.d.ts | 6 +++-- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/types/express-graphql/express-graphql-tests.ts b/types/express-graphql/express-graphql-tests.ts index 6b9c0b9169..d476682104 100644 --- a/types/express-graphql/express-graphql-tests.ts +++ b/types/express-graphql/express-graphql-tests.ts @@ -1,6 +1,6 @@ -import * as express from "express"; +import * as express from 'express'; import 'express-session'; -import * as graphqlHTTP from "express-graphql"; +import * as graphqlHTTP from 'express-graphql'; const app = express(); const schema = {}; @@ -8,19 +8,29 @@ const schema = {}; const graphqlOption: graphqlHTTP.OptionsObj = { graphiql: true, schema: schema, - formatError: (error:Error) => ({ - message: error.message, + formatError: (error: Error) => ({ + message: error.message }) }; const graphqlOptionRequest = (request: express.Request): graphqlHTTP.OptionsObj => ({ graphiql: true, schema: schema, - context: request.session, + context: request.session }); -app.use("/graphql1", graphqlHTTP(graphqlOption)); +const graphqlOptionRequestAsync = async (request: express.Request): Promise => { + return { + graphiql: true, + schema: await Promise.resolve(schema), + context: request.session + }; +}; -app.use("/graphql2", graphqlHTTP(graphqlOptionRequest)); +app.use('/graphql1', graphqlHTTP(graphqlOption)); -app.listen(8080); +app.use('/graphql2', graphqlHTTP(graphqlOptionRequest)); + +app.use('/graphqlasync', graphqlHTTP(graphqlOptionRequestAsync)); + +app.listen(8080, () => console.log('GraphQL Server running on localhost:8080')); diff --git a/types/express-graphql/index.d.ts b/types/express-graphql/index.d.ts index 680e83668b..077e3ab736 100644 --- a/types/express-graphql/index.d.ts +++ b/types/express-graphql/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for express-graphql // Project: https://www.npmjs.org/package/express-graphql -// Definitions by: Isman Usoh , Nitin Tutlani +// Definitions by: Isman Usoh +// Nitin Tutlani +// Daniel Fader // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Request, Response } from "express"; @@ -12,7 +14,7 @@ declare namespace graphqlHTTP { * Used to configure the graphQLHTTP middleware by providing a schema * and other configuration options. */ - export type Options = ((req: Request) => OptionsObj) | OptionsObj + export type Options = ((req: Request) => OptionsObj) | ((req: Request) => Promise) | OptionsObj export type OptionsObj = { /** * A GraphQL schema from graphql-js. From 5c5298d813703f245069ab988de78c23a43f37de Mon Sep 17 00:00:00 2001 From: Daniel Fader Date: Wed, 30 Aug 2017 10:50:51 +0200 Subject: [PATCH 096/316] Updated 'target' to 'es2015' to enable async notation --- types/express-graphql/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/express-graphql/tsconfig.json b/types/express-graphql/tsconfig.json index 3394d7c54a..8cec14e03c 100644 --- a/types/express-graphql/tsconfig.json +++ b/types/express-graphql/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "module": "commonjs", + "target": "es2015", "lib": [ "es6" ], @@ -19,4 +20,4 @@ "index.d.ts", "express-graphql-tests.ts" ] -} \ No newline at end of file +} From b72f3df709009dfa82f9ff0e73bfc14696652f89 Mon Sep 17 00:00:00 2001 From: Howard Richards Date: Wed, 30 Aug 2017 11:37:20 +0100 Subject: [PATCH 097/316] Added module declaration to ko.plus so it works with node, amd etc. --- types/ko.plus/index.d.ts | 9 +++++++++ types/ko.plus/ko.plus-tests.ts | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/types/ko.plus/index.d.ts b/types/ko.plus/index.d.ts index 803a56fb74..9aa83e3f88 100644 --- a/types/ko.plus/index.d.ts +++ b/types/ko.plus/index.d.ts @@ -21,6 +21,9 @@ * * Version 1.2 - amended callback on commmand.fail() method - accepts response, * status and message values + * + * Version 1.3 - added module declaration so it be used with node, requirejs etc. + * */ // @@ -156,3 +159,9 @@ declare namespace KoPlus { //#endregion } + +declare var ko: KnockoutStatic; + +declare module "ko.plus" { + export = ko; +} \ No newline at end of file diff --git a/types/ko.plus/ko.plus-tests.ts b/types/ko.plus/ko.plus-tests.ts index d3472c0d82..f6dd713e8c 100644 --- a/types/ko.plus/ko.plus-tests.ts +++ b/types/ko.plus/ko.plus-tests.ts @@ -64,7 +64,7 @@ function EditableTests() { // test editable var isEditing = edit1.isEditing(); - // test editableArray functions: + // test editable functions: edit1.beginEdit(); edit1.endEdit(); edit1.cancelEdit(); @@ -88,7 +88,7 @@ function EditableArrayTests() { // test properties var isEditing = edit1.isEditing(); - // test functions: + // test editable array functions: edit1.beginEdit(); edit1.endEdit(); edit1.cancelEdit(); @@ -118,4 +118,14 @@ function SortableTests() { sort2.sortDescending(true); sort2.setSourceKey("name"); sort2.sortDescending(false); + +} + +function BindingHandlerTests() { + + // test binding handlers + var bh1 = ko.bindingHandlers.command; + var bh2 = ko.bindingHandlers.loadingWhen; + var bh3 = ko.bindingHandlers.sortBy; + } \ No newline at end of file From aba9fe6b33f79e401b944eaabd6685ba2190eaf1 Mon Sep 17 00:00:00 2001 From: Howard Richards Date: Wed, 30 Aug 2017 11:51:47 +0100 Subject: [PATCH 098/316] Removed JQuery reference --- types/ko.plus/index.d.ts | 2 +- types/ko.plus/ko.plus-tests.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/types/ko.plus/index.d.ts b/types/ko.plus/index.d.ts index 9aa83e3f88..3952ffaab7 100644 --- a/types/ko.plus/index.d.ts +++ b/types/ko.plus/index.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -/// /// /** @@ -23,6 +22,7 @@ * status and message values * * Version 1.3 - added module declaration so it be used with node, requirejs etc. + * removed jquery reference as it is not required * */ diff --git a/types/ko.plus/ko.plus-tests.ts b/types/ko.plus/ko.plus-tests.ts index f6dd713e8c..3abf2c3c92 100644 --- a/types/ko.plus/ko.plus-tests.ts +++ b/types/ko.plus/ko.plus-tests.ts @@ -1,3 +1,4 @@ + function CommandTests() { // initalize command with an execute method var cmd1 = ko.command(() => { @@ -122,10 +123,10 @@ function SortableTests() { } function BindingHandlerTests() { - + // test binding handlers var bh1 = ko.bindingHandlers.command; var bh2 = ko.bindingHandlers.loadingWhen; var bh3 = ko.bindingHandlers.sortBy; - + } \ No newline at end of file From 1c389ce93d7812925dba0a05d1981c05b3ce4f1d Mon Sep 17 00:00:00 2001 From: maxpaj Date: Wed, 30 Aug 2017 15:08:07 +0200 Subject: [PATCH 099/316] fluent-ffmpeg filter functions Added alternative parameter types for the filter functions. Resources: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/search?utf8=%E2%9C%93&q=withAudioFilters&type= https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/search?utf8=%E2%9C%93&q=withVideoFilters&type= --- types/fluent-ffmpeg/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index e1380dc78e..a27277e14a 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -144,10 +144,10 @@ declare namespace Ffmpeg { audioFrequency(freq: number): FfmpegCommand; withAudioQuality(quality: number): FfmpegCommand; audioQuality(quality: number): FfmpegCommand; - withAudioFilter(filters: { filter: string, options: any }): FfmpegCommand; - withAudioFilters(filters: { filter: string, options: any }): FfmpegCommand; - audioFilter(filters: { filter: string, options: any }): FfmpegCommand; - audioFilters(filters: { filter: string, options: any }): FfmpegCommand; + withAudioFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + withAudioFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + audioFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + audioFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; // options/video; withNoVideo(): FfmpegCommand; @@ -156,10 +156,10 @@ declare namespace Ffmpeg { videoCodec(codec: string): FfmpegCommand; withVideoBitrate(bitrate: string | number): FfmpegCommand; videoBitrate(bitrate: string | number): FfmpegCommand; - withVideoFilter(filters: { filter: string, options: any }): FfmpegCommand; - withVideoFilters(filters: { filter: string, options: any }): FfmpegCommand; - videoFilter(filters: { filter: string, options: any }): FfmpegCommand; - videoFilters(filters: { filter: string, options: any }): FfmpegCommand; + withVideoFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + withVideoFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + videoFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + videoFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; withOutputFps(fps: number): FfmpegCommand; withOutputFPS(fps: number): FfmpegCommand; withFpsOutput(fps: number): FfmpegCommand; From e31c1ee9197a888eb58d1265a60adb5f4afae029 Mon Sep 17 00:00:00 2001 From: maxpaj Date: Wed, 30 Aug 2017 15:12:14 +0200 Subject: [PATCH 100/316] Change signature type from Object to Object[] --- types/fluent-ffmpeg/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index a27277e14a..5d45a3d465 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -144,10 +144,10 @@ declare namespace Ffmpeg { audioFrequency(freq: number): FfmpegCommand; withAudioQuality(quality: number): FfmpegCommand; audioQuality(quality: number): FfmpegCommand; - withAudioFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; - withAudioFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; - audioFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; - audioFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + withAudioFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + withAudioFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + audioFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + audioFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; // options/video; withNoVideo(): FfmpegCommand; @@ -156,10 +156,10 @@ declare namespace Ffmpeg { videoCodec(codec: string): FfmpegCommand; withVideoBitrate(bitrate: string | number): FfmpegCommand; videoBitrate(bitrate: string | number): FfmpegCommand; - withVideoFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; - withVideoFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; - videoFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; - videoFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + withVideoFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + withVideoFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + videoFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + videoFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; withOutputFps(fps: number): FfmpegCommand; withOutputFPS(fps: number): FfmpegCommand; withFpsOutput(fps: number): FfmpegCommand; From b98d24e5bb0b867505cd6d4aced45588eb747e8a Mon Sep 17 00:00:00 2001 From: idchlife Date: Wed, 30 Aug 2017 16:46:36 +0300 Subject: [PATCH 101/316] Parameter is not required --- types/uniqid/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/uniqid/index.d.ts b/types/uniqid/index.d.ts index 4e222ddb5b..aba814e485 100644 --- a/types/uniqid/index.d.ts +++ b/types/uniqid/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Commmon function signature -declare function f(prefix: string): string; +declare function f(prefix?: string): string; // let x -> Workaround for ES6 imports // Combined type because of assigning to function object in original module From e7e82f42fb8908216c6f5c84be5645a6cd5e881d Mon Sep 17 00:00:00 2001 From: Niklas Wulf Date: Wed, 30 Aug 2017 16:00:21 +0200 Subject: [PATCH 102/316] [nes] Fix Socket.disconnect typo --- types/nes/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nes/index.d.ts b/types/nes/index.d.ts index aab6827ed7..c5526049de 100644 --- a/types/nes/index.d.ts +++ b/types/nes/index.d.ts @@ -91,7 +91,7 @@ declare module nes { id: string; app: Object; auth: nes.SocketAuthObject; - disconect(callback?: () => void): void; + disconnect(callback?: () => void): void; send(message: any, callback?: (err?: any) => void): void; publish(path: string, message: any, callback?: (err?: any) => void): void; revoke(path: string, message: any, callback?: (err?: any) => void): void; From bdd079afbeae2fd8b7c4e539536352b72d7d4009 Mon Sep 17 00:00:00 2001 From: Niklas Wulf Date: Wed, 30 Aug 2017 16:10:00 +0200 Subject: [PATCH 103/316] [nes] Add test/socket.ts --- types/nes/test/socket.ts | 16 ++++++++++++++++ types/nes/tsconfig.json | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 types/nes/test/socket.ts diff --git a/types/nes/test/socket.ts b/types/nes/test/socket.ts new file mode 100644 index 0000000000..7f7617d462 --- /dev/null +++ b/types/nes/test/socket.ts @@ -0,0 +1,16 @@ +// from https://github.com/hapijs/nes/blob/v6.4.3/lib/socket.js + +import Nes = require('nes'); + +const socket: Nes.Socket = undefined; + +const cb = () => { }; +socket.disconnect(cb); +const s: string = socket.id; +const o: Object = socket.app; +const auth: Nes.SocketAuthObject = socket.auth; + +const cb2 = (err?: any) => { }; +socket.send('message', (err?: any) => { }); +socket.publish('path', 'message', cb2); +socket.revoke('path', 'message', cb2); diff --git a/types/nes/tsconfig.json b/types/nes/tsconfig.json index cb28129b71..c03d7c22ee 100644 --- a/types/nes/tsconfig.json +++ b/types/nes/tsconfig.json @@ -26,9 +26,10 @@ "test/route-authentication-server.ts", "test/route-invocation-client.ts", "test/route-invocation-server.ts", + "test/socket.ts", "test/subscription-filter-client.ts", "test/subscription-filter-server.ts", "test/subscriptions-client.ts", "test/subscriptions-server.ts" ] -} \ No newline at end of file +} From c2bc7792e69366f2183026aa902bcf1406189e0a Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Wed, 30 Aug 2017 09:26:11 -0500 Subject: [PATCH 104/316] more cleanups and stronger typing --- types/jsforce/connection.d.ts | 33 +++++++++++++--- types/jsforce/jsforce-tests.ts | 15 +++++++- types/jsforce/record.d.ts | 16 ++++++-- types/jsforce/salesforce-object.d.ts | 56 +++++++++++++++++----------- 4 files changed, 87 insertions(+), 33 deletions(-) diff --git a/types/jsforce/connection.d.ts b/types/jsforce/connection.d.ts index 859b6dbdb2..189ce234e8 100644 --- a/types/jsforce/connection.d.ts +++ b/types/jsforce/connection.d.ts @@ -20,7 +20,7 @@ export interface ConnectionOptions extends Partial { loginUrl?: string; logLevel?: string; maxRequest?: number; - oauth2?: OAuth2Options; + oauth2?: Partial; proxyUrl?: string; redirectUri?: string; refreshToken?: string; @@ -38,12 +38,33 @@ export interface UserInfo { export type ConnectionEvent = "refresh"; -export class Connection { - constructor(params: ConnectionOptions) - - accessToken: string; +/** + * the methods exposed here are done so that a client can use 'declaration augmentation' to get intellisense on their own projects. + * for example, given a type + * + * interface Foo { + * thing: string; + * yes: boolean; + * } + * + * you can write + * + * declare module "jsforce" { + * interface Connection { + * sobject(type: 'Foo'): SObject + * } + * } + * + * to ensure that you have the correct data types for the various collection names. + */ +export interface Connection { query(soql: string, callback?: (err: Error, result: QueryResult) => void): QueryResult; - sobject(resource: string): SObject; + sobject(resource: string): SObject; +} + +export class Connection implements Connection { + constructor(params: ConnectionOptions) + accessToken: string; login(user: string, password: string, callback?: (err: Error, res: UserInfo) => void): Promise; loginByOAuth2(user: string, password: string, callback?: (err: Error, res: UserInfo) => void): Promise; loginBySoap(user: string, password: string, callback?: (err: Error, res: UserInfo) => void): Promise; diff --git a/types/jsforce/jsforce-tests.ts b/types/jsforce/jsforce-tests.ts index 3c1657711d..208dba8bc8 100644 --- a/types/jsforce/jsforce-tests.ts +++ b/types/jsforce/jsforce-tests.ts @@ -1,5 +1,11 @@ import * as sf from 'jsforce'; +export interface DummyRecord { + thing: boolean; + other: number; + person: string; +} + const salesforceConnection: sf.Connection = new sf.Connection({ instanceUrl: '', refreshToken: '', @@ -9,6 +15,11 @@ const salesforceConnection: sf.Connection = new sf.Connection({ }, }); +salesforceConnection.sobject("Dummy").select(["thing", "other"]); + +// note the following should never compile: +// salesforceConnection.sobject("Dummy").select(["lol"]); + salesforceConnection.sobject("Account").create({ Name: "Test Acc 2", BillingStreet: "Maplestory street", @@ -30,9 +41,9 @@ salesforceConnection.sobject("ContentVersion").create({ } }); -salesforceConnection.sobject("ContentVersion").retrieve("world", { +salesforceConnection.sobject("ContentVersion").retrieve("world", { test: "test" -}, (err: Error, ret: sf.Record) => { +}, (err: Error, ret) => { if (err) { return; } diff --git a/types/jsforce/record.d.ts b/types/jsforce/record.d.ts index 3bfec4c65b..3dd0bca1da 100644 --- a/types/jsforce/record.d.ts +++ b/types/jsforce/record.d.ts @@ -1,6 +1,16 @@ +import { RecordResult } from './record-result'; +import { Connection } from './connection'; import { SalesforceId } from './salesforce-id'; +import { Stream } from 'stream'; -export interface Record { - Id: SalesforceId; - attributes: Object[]; +export class RecordReference { + constructor(conn: Connection, type: string, id: SalesforceId); + blob(fieldName: string): Stream; + del(options?: Object, callback?: (err: Error, result: RecordResult) => void): Promise; + delete(options?: Object, callback?: (err: Error, result: RecordResult) => void): Promise; + destroy(options?: Object, callback?: (err: Error, result: RecordResult) => void): Promise; + retrieve(options?: Object, callback?: (err: Error, record: Record) => void): Promise>; + update(record: Partial, options?: Object, callback?: (err: Error, result: RecordResult) => void): Promise; } + +export type Record = {Id: SalesforceId } & T; diff --git a/types/jsforce/salesforce-object.d.ts b/types/jsforce/salesforce-object.d.ts index 2fd097b709..c1f8f61207 100644 --- a/types/jsforce/salesforce-object.d.ts +++ b/types/jsforce/salesforce-object.d.ts @@ -3,19 +3,20 @@ import * as stream from 'stream'; import { SObjectCreateOptions } from './create-options'; import { DescribeSObjectResult } from './describe-result'; import { Query } from './query'; -import { Record } from './record'; +import { Record, RecordReference } from './record'; import { RecordResult } from './record-result'; import { Connection } from './connection'; import { SalesforceId } from './salesforce-id'; -export class SObject { - record(options: any, callback?: (err: Error, ret: any) => void): void; - update(record: Partial, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; - update(records: Partial[], options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise; - retrieve(ids: string | string[], callback?: (err: Error, ret: Record | Record[]) => void): Promise; - retrieve(ids: string | string[], options?: Object, callback?: (err: Error, ret: Record | Record[]) => void): Promise; - upsert(records: Record | Record[], extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; - upsertBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; +export class SObject { + record(id: SalesforceId): RecordReference; + retrieve(id: SalesforceId, options?: Object, callback?:(err: Error, record: Record) => void): Promise>; + retrieve(ids: SalesforceId[], options?: Object, callback?: (err: Error, ret: Record[]) => void): Promise[]>; + update(record: Partial, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; + update(records: Partial[], options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise; + upsert(records: Record, extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; + upsert(records: Record[], extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; + upsertBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult[] | BatchResultInfo[]) => void): Batch; describeGlobal(callback: (err: Error, res: any) => void): void; describe$(callback: (err: Error, ret: DescribeSObjectResult) => void): void; describeGlobal$(callback: (err: Error, res: any) => void): void; @@ -29,39 +30,37 @@ export class SObject { findOne(query?: any, fields?: Object | string[] | string, options?: Object, callback?: (err: Error, ret: T) => void): void; approvalLayouts(callback?: (layoutInfo: ApprovalLayoutInfo) => void): Promise; - bulkload(operation: string, options?: { extIdField?: string }, input?: Record[] | stream.Stream[] | string[], callback?: (err: Error, ret: RecordResult) => void): Batch; + bulkload(operation: string, options?: { extIdField?: string }, input?: Record[] | stream.Stream[] | string[], callback?: (err: Error, ret: RecordResult) => void): Batch; compactLayouts(callback?: CompactLayoutInfo): Promise; count(conditions?: Object | string, callback?: (err: Error, num: number) => void): Promise; create(options: any | any[], callback?: (err: Error, ret: RecordResult | RecordResult[]) => void): Promise; - createBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + createBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; del(ids: string | string[], callback?: (err: Error, ret: any) => void): void; destroy(ids: string | string[], callback?: (err: Error, ret: any) => void): void; delete(ids: string | string[], callback?: (err: Error, ret: any) => void): void; - deleteBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; - destroyBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; - destroyHardBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + deleteBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + destroyBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + destroyHardBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; deleted(start: Date | string, end: Date | string, callback?: (info: DeletedRecordsInfo) => void): Promise; - deleteHardBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + deleteHardBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; describe(callback?: (err: Error, ret: DescribeSObjectResult) => void): Promise; insert(options: any | any[], callback?: (err: Error, ret: RecordResult | RecordResult[]) => void): Promise; - insertBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + insertBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; layouts(layoutName?: string, callback?: (err: Error, info: LayoutInfo) => void): Promise; listview(id: string): ListView; listviews(callback?: (err: Error, info: ListViewsInfo) => void): Promise; quickAction(actionName: string): QuickAction; quickActions(callback?: (err: Error, info: any) => void): Promise; recent(callback?: (err: Error, ret: RecordResult) => void): Promise; - select(field?: Object | string[] | string, callback?: (err: Error, ret: T[]) => void): Query; + select(callback?: (err: Error, ret: T[]) => void): Promise; + //TODO:use a typed pluck to turn `fields` into a subset of T's fields so that the output is slimmed down appropriately + select(fields?: (keyof T)[] | (keyof T), callback?: (err: Error, ret: Partial[]) => void): Promise[]>; } export interface ApprovalLayoutInfo { approvalLayouts: Object[]; } -export class Record extends Object { - constructor(connection: Connection, type: SObject, id: SalesforceId) -} - export class Batch extends stream.Writable { } @@ -86,7 +85,20 @@ export interface LayoutInfo { } export class ListView { - constructor(connection: Connection, type: SObject, id: SalesforceId) + constructor(connection: Connection, type: string, id: SalesforceId) +} + +export interface BatchInfo { + id: string; + jobId: string; + state: string; + stateMessage: string; +} + +export interface BatchResultInfo { + id: string; + batchId: string; + jobId: string; } export class ListViewsInfo { } From b2098c51a10dcee9784592dba294e6887209fc66 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Wed, 30 Aug 2017 09:40:22 -0500 Subject: [PATCH 105/316] fix linting --- types/jsforce/connection.d.ts | 12 ++++++------ types/jsforce/index.d.ts | 1 + types/jsforce/salesforce-object.d.ts | 28 ++++++++++++++-------------- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/types/jsforce/connection.d.ts b/types/jsforce/connection.d.ts index 189ce234e8..aa32d43ff5 100644 --- a/types/jsforce/connection.d.ts +++ b/types/jsforce/connection.d.ts @@ -5,15 +5,15 @@ import { RecordResult } from './record-result'; import { SObject } from './salesforce-object'; // These are pulled out because according to http://jsforce.github.io/jsforce/doc/connection.js.html#line49 -//the oauth options can either be in the `oauth2` proeprty OR spread across the main connection -interface OAuth2Options { - clientId: string; - clientSecret: string; - loginUrl: string; +// the oauth options can either be in the `oauth2` proeprty OR spread across the main connection +export interface OAuth2Options { + clientId?: string; + clientSecret?: string; + loginUrl?: string; redirectUri?: string; } -export interface ConnectionOptions extends Partial { +export interface ConnectionOptions extends OAuth2Options { accessToken?: string; callOptions?: Object; instanceUrl?: string; diff --git a/types/jsforce/index.d.ts b/types/jsforce/index.d.ts index fc7bd017b2..c7d39c9499 100644 --- a/types/jsforce/index.d.ts +++ b/types/jsforce/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Dolan Miu // Kamil Ejsymont // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import * as fs from 'fs'; import * as stream from 'stream'; diff --git a/types/jsforce/salesforce-object.d.ts b/types/jsforce/salesforce-object.d.ts index c1f8f61207..2f1f1590bf 100644 --- a/types/jsforce/salesforce-object.d.ts +++ b/types/jsforce/salesforce-object.d.ts @@ -10,13 +10,13 @@ import { SalesforceId } from './salesforce-id'; export class SObject { record(id: SalesforceId): RecordReference; - retrieve(id: SalesforceId, options?: Object, callback?:(err: Error, record: Record) => void): Promise>; - retrieve(ids: SalesforceId[], options?: Object, callback?: (err: Error, ret: Record[]) => void): Promise[]>; + retrieve(id: SalesforceId, options?: Object, callback?: (err: Error, record: Record) => void): Promise>; + retrieve(ids: SalesforceId[], options?: Object, callback?: (err: Error, ret: Array>) => void): Promise>>; update(record: Partial, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; - update(records: Partial[], options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise; + update(records: Array>, options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise; upsert(records: Record, extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; - upsert(records: Record[], extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise; - upsertBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult[] | BatchResultInfo[]) => void): Batch; + upsert(records: Array>, extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise; + upsertBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult[] | BatchResultInfo[]) => void): Batch; describeGlobal(callback: (err: Error, res: any) => void): void; describe$(callback: (err: Error, ret: DescribeSObjectResult) => void): void; describeGlobal$(callback: (err: Error, res: any) => void): void; @@ -30,22 +30,22 @@ export class SObject { findOne(query?: any, fields?: Object | string[] | string, options?: Object, callback?: (err: Error, ret: T) => void): void; approvalLayouts(callback?: (layoutInfo: ApprovalLayoutInfo) => void): Promise; - bulkload(operation: string, options?: { extIdField?: string }, input?: Record[] | stream.Stream[] | string[], callback?: (err: Error, ret: RecordResult) => void): Batch; + bulkload(operation: string, options?: { extIdField?: string }, input?: Array> | stream.Stream[] | string[], callback?: (err: Error, ret: RecordResult) => void): Batch; compactLayouts(callback?: CompactLayoutInfo): Promise; count(conditions?: Object | string, callback?: (err: Error, num: number) => void): Promise; create(options: any | any[], callback?: (err: Error, ret: RecordResult | RecordResult[]) => void): Promise; - createBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + createBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; del(ids: string | string[], callback?: (err: Error, ret: any) => void): void; destroy(ids: string | string[], callback?: (err: Error, ret: any) => void): void; delete(ids: string | string[], callback?: (err: Error, ret: any) => void): void; - deleteBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; - destroyBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; - destroyHardBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + deleteBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + destroyBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + destroyHardBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; deleted(start: Date | string, end: Date | string, callback?: (info: DeletedRecordsInfo) => void): Promise; - deleteHardBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + deleteHardBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; describe(callback?: (err: Error, ret: DescribeSObjectResult) => void): Promise; insert(options: any | any[], callback?: (err: Error, ret: RecordResult | RecordResult[]) => void): Promise; - insertBulk(input?: Record[] | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; + insertBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; layouts(layoutName?: string, callback?: (err: Error, info: LayoutInfo) => void): Promise; listview(id: string): ListView; listviews(callback?: (err: Error, info: ListViewsInfo) => void): Promise; @@ -53,8 +53,8 @@ export class SObject { quickActions(callback?: (err: Error, info: any) => void): Promise; recent(callback?: (err: Error, ret: RecordResult) => void): Promise; select(callback?: (err: Error, ret: T[]) => void): Promise; - //TODO:use a typed pluck to turn `fields` into a subset of T's fields so that the output is slimmed down appropriately - select(fields?: (keyof T)[] | (keyof T), callback?: (err: Error, ret: Partial[]) => void): Promise[]>; + // TODO:use a typed pluck to turn `fields` into a subset of T's fields so that the output is slimmed down appropriately + select(fields?: {[P in keyof T]: boolean} | Array<(keyof T)> | (keyof T), callback?: (err: Error, ret: Array>) => void): Promise>>; } export interface ApprovalLayoutInfo { From 0509fcf2a6b4b4b70c70bc692b14016742396ad5 Mon Sep 17 00:00:00 2001 From: Paul Sachs Date: Mon, 21 Aug 2017 18:30:27 -0400 Subject: [PATCH 106/316] Unifying values declaration causes param to cast to any instead of proper generic type Breaks linting but fixes typescript behavior. --- types/ramda/index.d.ts | 2 +- types/ramda/ramda-tests.ts | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 5a8ea8f332..f36cd90b84 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1916,7 +1916,7 @@ declare namespace R { * Note that the order of the output array is not guaranteed across * different JS platforms. */ - values(obj: { [index: string]: T } | any): T[]; + values(obj: T): Array; /** * Returns a list of all the properties, including prototype properties, of the supplied diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 909eba9d5f..2474d78d8e 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -1567,7 +1567,19 @@ class Rectangle { }; () => { - const a = R.values({a: 1, b: 2, c: 3}); // => [1, 2, 3] + interface A { + a: string; + b: string; + } + const a1: A = { a: 'something', b: 'else' }; + const v1 = R.values(a1); + + const a = R.values({a: 1, b: 2, c: 3}); // => [1, 2, 3] (number[]) + const addition = a[0] + a[1]; + + const b = R.values({a: 1, b: 'something'}); // b = (string|number)[] + const c = R.values({1: 3}); + // const d = R.values('something'); }; () => { From 916c404aabf071a64bcfe5f8ea62fc57e98b1445 Mon Sep 17 00:00:00 2001 From: John Cao Date: Wed, 30 Aug 2017 12:11:29 -0700 Subject: [PATCH 107/316] Update grantOfflineAccess Update grantOfflineAccess with OfflineAccessOptions --- types/gapi.auth2/index.d.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index a8e84d478b..1af7d1464a 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -42,11 +42,7 @@ declare namespace gapi.auth2 { /** * Get permission from the user to access the specified scopes offline. */ - grantOfflineAccess(options?: { - scope?: string; - prompt?: "select_account" | "consent"; - app_package_name?: string; - }): any; + grantOfflineAccess(options?: OfflineAccessOptions): Promise<{code: string}>; /** * Attaches the sign-in flow to the specified container's click handler. @@ -106,6 +102,18 @@ declare namespace gapi.auth2 { */ scope?: string; } + + + /** + * Definitions by: John + * Interface that represents the different configuration parameters for the GoogleAuth.grantOfflineAccess(options) method. + * Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2offlineaccessoptions + */ + interface OfflineAccessOptions { + scope?: string; + prompt?: "select_account" | "consent"; + app_package_name?: string; + } /** * Interface that represents the different configuration parameters for the gapi.auth2.init method. From 617648bf881ba20a2e0bf61f2a6c5f0b92a88ede Mon Sep 17 00:00:00 2001 From: John Cao Date: Wed, 30 Aug 2017 12:33:51 -0700 Subject: [PATCH 108/316] remove whitespaces --- types/gapi.auth2/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index 1af7d1464a..4cdef77a80 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -102,7 +102,6 @@ declare namespace gapi.auth2 { */ scope?: string; } - /** * Definitions by: John @@ -113,7 +112,7 @@ declare namespace gapi.auth2 { scope?: string; prompt?: "select_account" | "consent"; app_package_name?: string; - } + } /** * Interface that represents the different configuration parameters for the gapi.auth2.init method. From 96da366c9b1bf48bc3d74f33f843c354251c56a5 Mon Sep 17 00:00:00 2001 From: William Lohan Date: Wed, 30 Aug 2017 12:57:33 -0700 Subject: [PATCH 109/316] update uuid --- types/uuid/uuid-tests.ts | 4 ++++ types/uuid/v5.d.ts | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/types/uuid/uuid-tests.ts b/types/uuid/uuid-tests.ts index ec69275db9..dc0bdcbdcf 100644 --- a/types/uuid/uuid-tests.ts +++ b/types/uuid/uuid-tests.ts @@ -48,3 +48,7 @@ const a: string = v5('hello', MY_NAMESPACE); const b: string = v5('world', MY_NAMESPACE); const c: Buffer = v5('world', MY_NAMESPACE, new Buffer(16)); const d: number[] = v5('world', MY_NAMESPACE, [], 0); + +// https://github.com/kelektiv/node-uuid#quickstart---commonjs-recommended +const e = v5('hello.example.com', v5.DNS); +const f = v5('http://example.com/hello', v5.URL); diff --git a/types/uuid/v5.d.ts b/types/uuid/v5.d.ts index 67b8c8d051..170bcdcef4 100644 --- a/types/uuid/v5.d.ts +++ b/types/uuid/v5.d.ts @@ -1,5 +1,12 @@ import { v5 } from './interfaces'; -declare const v5: v5; +interface v5Static { + // https://github.com/kelektiv/node-uuid/blob/master/v5.js#L47 + DNS: string; + // https://github.com/kelektiv/node-uuid/blob/master/v5.js#L48 + URL: string; +} + +declare const v5: v5Static & v5; export = v5; From c510750a119198de8a4a798b54aef367f920fe85 Mon Sep 17 00:00:00 2001 From: Michael Glitzos Date: Wed, 30 Aug 2017 18:33:34 -0400 Subject: [PATCH 110/316] Updated definition of remote Added additional properties to satisfy options for react-bootstrap-table v3. --- types/react-bootstrap-table/index.d.ts | 382 +++++++++++------- .../react-bootstrap-table-tests.tsx | 52 ++- 2 files changed, 277 insertions(+), 157 deletions(-) diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 1b80e670fa..8efc965c10 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -12,48 +12,115 @@ import { ComponentClass, Props, ReactElement } from 'react'; import { EventEmitter } from 'events'; +/** + * Interface spec for sepcifying functionality to handle remotely + * + * Consult [documentation](https://allenfang.github.io/react-bootstrap-table/docs.html#remote) + * for more info + * + * @interface RemoteObjSpec + */ +export interface RemoteObjSpec { + /** + * If set, cell edits will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + cellEdit?: boolean; + /** + * If set insertions will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + insertRow?: boolean; + /** + * If set deletion will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + dropRow?: boolean; + /** + * If set filters will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + filter?: boolean; + /** + * If set search will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + search?: boolean; + /** + * If set, exporting CSV will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + exportCSV?: boolean; + /** + * If set sorting will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + sort?: boolean; + /** + * If set pagination will be handled remotely + * + * @type {boolean} + * @memberof RemoteObjSpec + */ + pagination?: boolean; +} + export interface BootstrapTableProps extends Props { /** Use data to specify the data that you want to display on table. */ - data: any[]; + data: any[]; /** If set, data is remote (use also fetchInfo) */ - remote?: boolean, + remote?: (remobeObj: RemoteObjSpec) => RemoteObjSpec | boolean, // Updated to support ^3.0.0 /** Use keyField to tell table which column is unique. This is same as isKey in Tips: You need choose one configuration to set key field: keyField or isKey in */ - keyField?: string; + keyField?: string; /** Use height to set the height of table, default is 100%. */ - height?: string; + height?: string; /** Set the max column width (pixels) */ - maxHeight?: string; + maxHeight?: string; /** Enable striped by setting striped to true. Same as Bootstrap table class .table-striped, default is false. */ - striped?: boolean; + striped?: boolean; /** Enable hover by setting hover to true. Same as Bootstrap table class .table-hover, default is false. */ - hover?: boolean; + hover?: boolean; /** Enable condensed by setting condensed to true. Same as Bootstrap table class .table-condensed, default is false. */ - condensed?: boolean; + condensed?: boolean; /** Become a borderless table by setting bordered to false, default is true. */ - bordered?: boolean; + bordered?: boolean; /** Enable pagination by setting pagination to true, default is false. */ - pagination?: boolean; + pagination?: boolean; /** Assign the class name of row(tr). This attribute accept a string or function and function is a better way to do more customization. If a string given, means the value will be presented as the row class. @@ -63,65 +130,65 @@ export interface BootstrapTableProps extends Props { return rowIndex%2==0?"tr-odd":"tr-even"; //return a class name. } */ - trClassName?: string | ((rowData: any, rowIndex: number) => string); + trClassName?: string | ((rowData: any, rowIndex: number) => string); /** Enable row insertion by setting insertRow to true, default is false. If you enable row insertion, there's a button on the upper left side of table. */ - insertRow?: boolean; + insertRow?: boolean; /** Enable row deletion by setting deleteRow to true, default is false. If you enable row deletion, there's a button on the upper left side of table. */ - deleteRow?: boolean; + deleteRow?: boolean; /** Enable column filter by setting columnFilter to true, default is false. If enabled, there're input text field per column under the table, user can input your filter condition by each column. */ - columnFilter?: boolean; + columnFilter?: boolean; /** Enable search by setting search to true, default is false. If enabled, there is a on the upper left side of the table. The default place holder is Search */ - search?: boolean; + search?: boolean; /** Set searchPlaceholder to change the placeholder in search field, default is Search. */ - searchPlaceholder?: string; + searchPlaceholder?: string; /** Enable multi search by multiColumnSearch, default is false. If you want to use multi search, you must enable search at first. Tips: Use space to delimited search text. EX: 3 4, which means match all 3 or 4 datas in table. */ - multiColumnSearch?: boolean; + multiColumnSearch?: boolean; /** Enable export csv function, default is false. If you enable, there's a button on the upper left side of table. */ - exportCSV?: boolean; + exportCSV?: boolean; /** Set CSV filename (e.g. items.csv). Default is spreadsheet.csv */ - csvFileName?: string; + csvFileName?: string; /** Enable row selection on table. selectRow accept an object which have the following properties */ - selectRow?: SelectRow; + selectRow?: SelectRow; /** Enable cell editing on table. cellEdit accept an object which have the following properties */ - cellEdit?: CellEdit; + cellEdit?: CellEdit; /** For some options setting on this component, you can set the options attribute and give an object which contain following properties */ - options?: Options; - fetchInfo?: FetchInfo; + options?: Options; + fetchInfo?: FetchInfo; printable?: boolean; - tableStyle?: any; - containerStyle?: any; - headerStyle?: any; - bodyStyle?: any; - ignoreSinglePage?: boolean; + tableStyle?: any; + containerStyle?: any; + headerStyle?: any; + bodyStyle?: any; + ignoreSinglePage?: boolean; containerClass?: string; tableContainerClass?: string headerContainerClass?: string; @@ -136,37 +203,37 @@ export interface SelectRow { /** For specifing the selection is single(radio) or multiple(checkbox). */ - mode: SelectRowMode; + mode: SelectRowMode; /** Click the row will trigger selection on that row if enable clickToSelect, default is false. */ - clickToSelect?: boolean; + clickToSelect?: boolean; /** If true, click the row will trigger selection on that row and also trigger cell editing if you enabled cell edit. Default is false. */ - clickToSelectAndEditCell?: boolean; + clickToSelectAndEditCell?: boolean; /** You can assign the background color of row which be selected. */ - bgColor?: string; + bgColor?: string; /** You can assign the class name of row which be selected. */ - className?: string; + className?: string; /** Give an array data to perform which rows you want to be selected when table loading. The content of array should be the rowkey which you want to be selected. */ - selected?: string[] | number[]; + selected?: string[] | number[]; /** if true, the radio/checkbox column will be hide. You can enable this attribute if you enable clickToSelect and you don't want to show the selection column. */ - hideSelectColumn?: boolean; + hideSelectColumn?: boolean; /** Default is false, if enabled, there will be a button on top of table for toggling selected rows only. */ - showOnlySelected?: boolean; + showOnlySelected?: boolean; /** Accept a custom callback function, if a row be selected or unselected, this function will be called. This callback function taking three arguments row, isSelected and event: @@ -175,7 +242,7 @@ export interface SelectRow { `event`: The event target object. If return value of this (function) is false, the select or deselect action will not be applied. */ - onSelect?: (row: any, isSelected: Boolean, event: any) => boolean; + onSelect?: (row: any, isSelected: Boolean, event: any) => boolean; /** Accept a custom callback function, if click select all checkbox, this function will be called. This callback function taking two arguments isSelected and currentSelectedAndDisplayData: @@ -183,7 +250,7 @@ export interface SelectRow { `currentSelectedAndDisplayData`: If pagination enabled, this result is the data which in a page. In contrast, this is all data in table. If return value of this function is false, the select all or deselect all action will not be applied. */ - onSelectAll?: (isSelected: boolean, currentSelectedAndDisplayData: any) => boolean; + onSelectAll?: (isSelected: boolean, currentSelectedAndDisplayData: any) => boolean; /** * Provide a list of unselectable row keys. @@ -197,23 +264,23 @@ export interface CellEdit { /** To spectify which condition will trigger cell editing.(click or dbclick) */ - mode: CellEditClickMode; + mode: CellEditClickMode; /** Enable blurToSave will trigger a saving event on cell when mouse blur on the input field. Default is false. In the default condition, you need to press ENTER to save the cell. */ - blurToSave?: boolean; + blurToSave?: boolean; /** Accept a custom callback function, before cell saving, this function will be called. This callback function taking three arguments:row, cellName and cellValue It's necessary to return a bool value which whether apply this cell editing. */ - beforeSaveCell?: (row: any, cellName: string, cellValue: any) => boolean; + beforeSaveCell?: (row: any, cellName: string, cellValue: any) => boolean; /** Accept a custom callback function, after cell saving, this function will be called. This callback function taking three arguments:row, cellName and cellValue */ - afterSaveCell?: (row: any, cellName: string, cellValue: any) => void; + afterSaveCell?: (row: any, cellName: string, cellValue: any) => void; } export type SortOrder = 'asc' | 'desc'; @@ -222,137 +289,137 @@ export interface Options { /** Manage sort field by yourself */ - sortName?: string; + sortName?: string; /** Manage sort order by yourself */ - sortOrder?: SortOrder; + sortOrder?: SortOrder; /** Assign a default sort field. */ - defaultSortName?: string; + defaultSortName?: string; /** Assign a default sort ordering. */ - defaultSortOrder?: SortOrder; + defaultSortOrder?: SortOrder; /** False to disable sort indicator on header column, default is true. */ - sortIndicator?: boolean; + sortIndicator?: boolean; /** Change the displaying text on table if data is empty. */ - noDataText?: string | ReactElement; + noDataText?: string | ReactElement; /** A delay for trigger search after a keyup (millisecond) */ - searchDelayTime?: number; + searchDelayTime?: number; /** A custom text on export csv button */ - exportCSVText?: string; + exportCSVText?: string; /** Default is false, if true means you want to ignore any editable configuration when row insert. */ - ignoreEditable?: boolean; + ignoreEditable?: boolean; /** Only work on enable search. If true, there will be a button beside search input field for clear search field text. */ - clearSearch?: boolean; + clearSearch?: boolean; /** Assign a callback function which will be called after table update. */ - afterTableComplete?: Function; + afterTableComplete?: Function; /** Assign a callback function which will be called after row delete. This function taking one argument: rowKeys, which means the row key you dropped. */ - afterDeleteRow?: (rowKeys: string[]) => void; + afterDeleteRow?: (rowKeys: string[]) => void; /** Assign a callback function which will be called after row insert. This function taking one argument: row, which means the whole row data you added. */ - afterInsertRow?: (row: any) => void; + afterInsertRow?: (row: any) => void; /** Customize the text of previouse page button */ - prePage?: string; + prePage?: string; /** Customize the text of next page button */ - nextPage?: string; + nextPage?: string; /** Customize the text of first page button */ - firstPage?: string; + firstPage?: string; /** Customize the text of last page button */ - lastPage?: string; + lastPage?: string; /** Accept a number, which means the page you want to show as default. */ - page?: number; + page?: number; /** You can change the dropdown list for size per page if you enable pagination. */ - sizePerPageList?: number[]; + sizePerPageList?: number[]; /** Means the size per page you want to locate as default. */ - sizePerPage?: number; + sizePerPage?: number; /** To define the pagination bar length, default is 5. */ - paginationSize?: number; + paginationSize?: number; /** To define where to start counting the pages. */ - pageStartIndex?: number; + pageStartIndex?: number; /** Assign a callback function which will be called after page changed. This function taking two argument: page and sizePerPage. `page`: Current page. `sizePerPage`: The data size which in one page. */ - onPageChange?: (page: number, sizePerPage: number) => void; + onPageChange?: (page: number, sizePerPage: number) => void; /** Assign a callback function which will be called after size per page dropdown changed. This function taking one argument: sizePerPage. `sizePerPage`: The data size which in one page. */ - onSizePerPageList?: (sizePerPage: number) => void; + onSizePerPageList?: (sizePerPage: number) => void; /** Assign a callback function which will be called after trigger sorting. This function taking two argument: `sortName` and `sortOrde`r. `sortName`: The sort column name `sortOrder`: The sort ordering. */ - onSortChange?: (sortName: string, sortOrder: SortOrder) => void; + onSortChange?: (sortName: string, sortOrder: SortOrder) => void; /** Assign a callback function which will be called after trigger searching. This function taking two argument: search and result. `search`: The search text which user input. `result`: The results after searching. */ - afterSearch?: (search: string, result: any) => void; + afterSearch?: (search: string, result: any) => void; /** Assign a callback function which will be called after trigger column filtering. This function taking two argument: filterConds and result. `filterConds`: It's an array object which contain all column filter conditions. `result`: The results after filtering. */ - afterColumnFilter?: (filterConds: any[], result: any) => void; + afterColumnFilter?: (filterConds: any[], result: any) => void; /** Assign a callback function which will be called after a row click. This function taking one argument: row which is the row data which you click on. */ - onRowClick?: (row: any) => void; + onRowClick?: (row: any) => void; /** Assign a callback function which will be called after a row double click. This function taking one argument: row which is the row data which you double click on. */ - onRowDoubleClick?: (row:any)=>void; + onRowDoubleClick?: (row: any) => void; /** Background color on expanded rows. */ @@ -360,21 +427,21 @@ export interface Options { /** Assign a callback function which will be called when mouse enter into the table. */ - onMouseEnter?: Function; + onMouseEnter?: Function; /** Assign a callback function which will be called when mouse leave from the table. */ - onMouseLeave?: Function; + onMouseLeave?: Function; /** Assign a callback function which will be called when mouse over a row in table. This function taking one argument: row which is the row data which mouse over. */ - onRowMouseOver?: Function; + onRowMouseOver?: Function; /** Assign a callback function which will be called when mouse leave from a row in table. This function taking one argument: row which is the row data which mouse out. */ - onRowMouseOut?: Function; + onRowMouseOut?: Function; /** Assign a callback function which will be called when row dropping. @@ -385,60 +452,93 @@ export interface Options { `rowKeys` is the row keys which been deleted, you can call next function to apply this deletion. */ - handleConfirmDeleteRow?: (next: Function, rowKeys: any[]) => void; - paginationShowsTotal?: boolean | ReactElement; - onSearchChange?: Function; - onAddRow?: Function; - onExportToCSV?: Function; + handleConfirmDeleteRow?: (next: Function, rowKeys: any[]) => void; + paginationShowsTotal?: boolean | ReactElement; + onSearchChange?: Function; + onAddRow?: Function; + onExportToCSV?: Function; - insertText?: string; - deleteText?: string; - saveText?: string; - closeText?: string; + insertText?: string; + deleteText?: string; + saveText?: string; + closeText?: string; + // Customization properties + /** + * Callback function to be called when a cell is modified + * + * https://allenfang.github.io/react-bootstrap-table/example.html#remote + * + * @memberof BootstrapTableProps + */ + onCellEdit?: (row: any, field: string, value: any) => any; + /** + * Callback function to be called when filter changing + * + * https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/remote/remote-store-filtering.js#L67 + * + * @memberof BootstrapTableProps + */ + onFilterChange?:(filterObj: any) => any; + /** + * Callback function which will be called when a row will be deleted + * + * https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/remote/remote-store-delete-row.js#L27 + * + * @memberof BootstrapTableProps + */ + onDeleteRow?: (rows: any[] | any) => any; + /** + * A callback which will be called after page changed + * + * https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/remote/remote-store-paging.js#L30 + * + * @memberof BootstrapTableProps + */ + onpageChange?: (page: any, sizePerPage: number) => any; } interface FetchInfo { - dataTotalSize?: number; + dataTotalSize?: number; } export interface BootstrapTable extends ComponentClass { /** * Call this function to insert an new row to table. */ - handleAddRow(row: any): void; + handleAddRow(row: any): void; /** * Call this function to insert an new row as first row on table. */ - handleAddRowAtBegin(row: any): void; + handleAddRowAtBegin(row: any): void; /** * Call this function to drop rows in table. */ - handleDropRow(rowKeys: any[]): void; + handleDropRow(rowKeys: any[]): void; /** * Call this function to do column filtering on table. */ - handleFilterData(filter: any): void; + handleFilterData(filter: any): void; /** * Call this function with search text for fully searching. */ - handleSearch(search: string): void; + handleSearch(search: string): void; /** * Call this function to sort table. */ - handleSort(order: SortOrder, field: string): void; + handleSort(order: SortOrder, field: string): void; /** * Call this function to get the page by a rowkey */ - getPageByRowKey(rowKey: string): any; + getPageByRowKey(rowKey: string): any; /** * Call this function to export table as csv. */ - handleExportCSV(): void; + handleExportCSV(): void; /** * Clean all the selection state on table. */ - cleanSelected(): void; + cleanSelected(): void; } interface BootstrapTable extends ComponentClass { } declare const BootstrapTable: BootstrapTable; @@ -448,20 +548,20 @@ export interface TableHeaderColumnProps extends Props { /** The field of data you want to show on column. */ - dataField?: string; + dataField?: string; /** Use isKey to tell table which column is unique. This is same as keyField in Tips: You need choose one configuration to set key field: isKey or keyField in */ - isKey?: boolean; + isKey?: boolean; /** Set the column width. ex: 150, it's means 150px */ - width?: string; + width?: string; /** Set align in column, value is left, center, right, start and end. */ - dataAlign?: DataAlignType; + dataAlign?: DataAlignType; /** * Alignment of text in the column header. @@ -470,7 +570,7 @@ export interface TableHeaderColumnProps extends Props { /** True to enable table sorting. Default is disabled. */ - dataSort?: boolean; + dataSort?: boolean; /** Default search string. */ @@ -479,27 +579,27 @@ export interface TableHeaderColumnProps extends Props { Allow user to render a custom sort caret. You should give a function and should return a JSX. This function taking one arguments: order which present the sort order currently. */ - caretRender?: Function; - /** - Give an Object like following to able to customize your own editing component. - This Object should contain these two property: - getElement(REQUIRED): Accept a callback function and take two arguments: onUpdate and props. - customEditorParameters: Another extra data for custom cell edit component. - */ - customEditor?: {getElement: (onUpdate: any, props: any) => ReactElement, customEditorParameters?: Object} ; + caretRender?: Function; + /** + Give an Object like following to able to customize your own editing component. + This Object should contain these two property: + getElement(REQUIRED): Accept a callback function and take two arguments: onUpdate and props. + customEditorParameters: Another extra data for custom cell edit component. + */ + customEditor?: { getElement: (onUpdate: any, props: any) => ReactElement, customEditorParameters?: Object }; /** To customize the column. This callback function should return a String or a React Component. In addition, this function taking two argument: cell and row. */ - dataFormat?: (cell: any, row: any, formatExtraData?: any) => string | ReactElement; + dataFormat?: (cell: any, row: any, formatExtraData?: any) => string | ReactElement; /** To to enable search or filter data on formatting. Default is false */ - filterFormatted?: boolean; + filterFormatted?: boolean; /** True to hide column. */ - hidden?: boolean; + hidden?: boolean; /** True to hide the dropdown for sizePerPage. */ @@ -507,28 +607,28 @@ export interface TableHeaderColumnProps extends Props { /** False to disable search functionality on column, default is true. */ - searchable?: boolean; + searchable?: boolean; /** Give a customize function for data sorting. This function taking four arguments: a, b, order, sortField, extraData */ - sortFunc?: (a: any, b: any, order: SortOrder, sortField: any, extraData: any) => number; + sortFunc?: (a: any, b: any, order: SortOrder, sortField: any, extraData: any) => number; /** It's a extra data for custom sort function, if defined, this data will be pass as fifth argument in sortFunc. */ - sortFuncExtraData?: any; + sortFuncExtraData?: any; /** Add custom css class on table header column, this attribute only accept String or Function. If Function, it taking four arguments: cell, row, rowIndex, columnIndex. In addition, this function should return a String which is the class name you want to add on. */ - className?: string | ((cell: any, row: any, rowIndex: number, columnIndex: number) => string); + className?: string | ((cell: any, row: any, rowIndex: number, columnIndex: number) => string); /** Add custom css class on table body column, this attribute only accept String or Function. If Function, it taking four arguments: cell, row, rowIndex, columnIndex. In addition, this function should return a String which is the class name you want to add on. */ - columnClassName?: String | ((cell: any, row: any, rowIndex: number, columnIndex: number) => string); + columnClassName?: String | ((cell: any, row: any, rowIndex: number, columnIndex: number) => string); /** Add True to set column editable, false is non-editable. If give Object, you can do more customization when editing cell. This object have following properties: @@ -541,29 +641,29 @@ export interface TableHeaderColumnProps extends Props { } } */ - editable?: boolean | Editable; + editable?: boolean | Editable; /** It only work when you enable insertRow and be assign on rowKey column. If true, the row key will be generated automatically after a row insertion. */ - autoValue?: boolean; + autoValue?: boolean; /** To Enable a column filter within header column. This feature support a lots of filter type and condition. Please check example Following is the format for filter */ - filter?: Filter; + filter?: Filter; - onSort?: Function; + onSort?: Function; /** * Header for column in generated CSV file */ csvHeader?: string; - csvFormat?: Function; - columnTitle?: boolean; - sort?: SortOrder; - formatExtraData?: any; + csvFormat?: Function; + columnTitle?: boolean; + sort?: SortOrder; + formatExtraData?: any; /** * Row in the header on which this header column present. @@ -583,24 +683,24 @@ export interface TableHeaderColumnProps extends Props { colSpan?: number; } export interface Editable { - type?: string;//edit type, avaiable value is textarea, select, checkbox + type?: string;//edit type, avaiable value is textarea, select, checkbox /** function for validation and taking only one "cell value" as argument. This function should return Bool. */ - validator?: (cell: any) => boolean; + validator?: (cell: any) => boolean; /** { values: //values means data in select or checkbox.If checkbox, use ':'(colon) to separate value, ex: Y:N } */ - options?: any; + options?: any; /** Configuration for the textarea editable type */ - cols?: number; - rows?: number; + cols?: number; + rows?: number; } export type SetFilterCallback = (targetValue: any) => boolean; export interface ApplyFilterParameter { @@ -612,51 +712,51 @@ export interface Filter { /** "TextFilter"||"SelectFilter"||"NumberFilter"||"DateFilter"||"RegexFilter"||"YOUR_CUSTOM_FILTER" */ - type?: FilterType; + type?: FilterType; /** * Default value on filter. If type is NumberFilter or DateFilter, this value will like { number||date: xxx, comparator: '>' } */ - defaultValue?: any; + defaultValue?: any; /** * Assign a millisecond for delay when trigger filtering, default is 500. */ - delay?: number; + delay?: number; /** * Only work on TextFilter. Assign the placeholder text on text and regex filter */ - placeholder?: string | RegExp; + placeholder?: string | RegExp; /** * Only work on NumberFilter. Accept an array which conatin the filter condition, like: ['<','>','='] */ - numberComparators?: string[]; + numberComparators?: string[]; /** * Options for the filter. */ - options?: any; + options?: any; /** * Comparison condition for the NumberFilter */ - condition?: string; + condition?: string; /** * Get element which represent filter. */ - getElement?: (filterHandler: (parameters?: ApplyFilterParameter) => void, filterParameters: any) => JSX.Element; + getElement?: (filterHandler: (parameters?: ApplyFilterParameter) => void, filterParameters: any) => JSX.Element; /** * Parameters for custom filter */ - customFilterParameters?: any; + customFilterParameters?: any; } export interface TableHeaderColumn extends ComponentClass { } declare const TableHeaderColumn: TableHeaderColumn; declare class TableDataSet extends EventEmitter { - constructor(data: any); - setData(data: any): void; - clear(): void; - getData(): any; + constructor(data: any); + setData(data: any): void; + clear(): void; + getData(): any; } diff --git a/types/react-bootstrap-table/react-bootstrap-table-tests.tsx b/types/react-bootstrap-table/react-bootstrap-table-tests.tsx index e501d8de14..76e5bb79b7 100644 --- a/types/react-bootstrap-table/react-bootstrap-table-tests.tsx +++ b/types/react-bootstrap-table/react-bootstrap-table-tests.tsx @@ -21,10 +21,10 @@ function priceFormatter(cell: any, row: any) { render( - Product ID - Product Name - Product Price - , + Product ID + Product Name + Product Price + , document.getElementById("app") ); @@ -41,11 +41,11 @@ function enumFormatter(cell: any, row: any, enumObject: any) { class SelectFilterWithDefaultValue extends React.Component { render() { return ( - - Product ID - Product Name - Product Quality + + Product ID + Product Name + Product Quality ); } @@ -54,9 +54,9 @@ class SelectFilterWithDefaultValue extends React.Component { class TextFilterWithCondition extends React.Component { render() { return ( - + Product ID - Product Name + Product Name Product Price ); @@ -72,15 +72,35 @@ function getCustomFilter(filterHandler: (parameters?: ApplyFilterParameter) => v class CustomFilter extends React.Component { render() { return ( - + Product ID Product Name - Product Is In Stock + Product Is In Stock ); } } +class RemoteProps extends React.Component { + render() { + return ( + { + remoteObj.cellEdit = true; + return remoteObj; + }} + options={{ + onCellEdit: (row: any, fieldName: string, value: any) => { console.info(row); } + }} + > + Product ID + Product Name + Product Is In Stock + + ); + } +} // Adopted from https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/column-header-span/column-header-span-complex.js export default class ColumnHeaderSpanComplex extends React.Component { render() { @@ -94,15 +114,15 @@ export default class ColumnHeaderSpanComplex extends React.Component { blurToSave: true }; return ( - - ID + ID Product name price Coupon In stock - Customer + Customer name order From 9ddbcfc2e04572d05f8463f0c09f12540d686a04 Mon Sep 17 00:00:00 2001 From: Eirikur Nilsson Date: Wed, 30 Aug 2017 22:35:42 +0000 Subject: [PATCH 111/316] Update types Add `.when()` method for conditional configuration Add devServer changes. Inherit Config from ChainedMap Export EntryPoint --- types/webpack-chain/index.d.ts | 82 +++++++++++++--------- types/webpack-chain/webpack-chain-tests.ts | 7 ++ 2 files changed, 55 insertions(+), 34 deletions(-) diff --git a/types/webpack-chain/index.d.ts b/types/webpack-chain/index.d.ts index 4a13f91530..68839d423c 100644 --- a/types/webpack-chain/index.d.ts +++ b/types/webpack-chain/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for webpack-chain 3.0 +// Type definitions for webpack-chain 4.0 // Project: https://github.com/mozilla-neutrino/webpack-chain // Definitions by: Eirikur Nilsson , Paul Sachs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -8,9 +8,42 @@ import * as https from 'https'; export = Config; -declare class Config { +declare namespace __Config { + class Chained { + end(): Parent; + } + + class TypedChainedMap extends Chained { + clear(): this; + delete(key: string): this; + has(key: string): boolean; + get(key: string): Value; + set(key: string, value: Value): this; + merge(obj: { [key: string]: Value }): this; + entries(): { [key: string]: Value }; + values(): Value[]; + when(condition: boolean, trueBrancher: (obj: any) => void, falseBrancher?: (obj: any) => void): this; + } + + class ChainedMap extends TypedChainedMap {} + + class TypedChainedSet extends Chained { + add(value: Value): this; + prepend(value: Value): this; + clear(): this; + delete(key: string): this; + has(key: string): boolean; + merge(arr: Value[]): this; + values(): Value[]; + when(condition: boolean, trueBrancher: (obj: any) => void, falseBrancher?: (obj: any) => void): this; + } + + class ChainedSet extends TypedChainedSet {} +} + +declare class Config extends __Config.ChainedMap { devServer: Config.DevServer; - entryPoints: Config.EntryPoints; + entryPoints: Config.TypedChainedMap; module: Config.Module; node: Config.ChainedMap; output: Config.Output; @@ -35,42 +68,18 @@ declare class Config { watch(value: boolean): this; watchOptions(value: webpack.Options.WatchOptions): this; - entry(name: string): Config.ChainedSet; + entry(name: string): Config.EntryPoint; plugin(name: string): Config.Plugin; toConfig(): webpack.Configuration; - merge(obj: any): this; } declare namespace Config { - class Chained { - end(): Parent; - } - - class TypedChainedMap extends Chained { - clear(): this; - delete(key: string): this; - has(key: string): boolean; - get(key: string): Value; - set(key: string, value: Value): this; - merge(obj: { [key: string]: Value }): this; - entries(): { [key: string]: Value }; - values(): Value[]; - } - - class ChainedMap extends TypedChainedMap {} - - class TypedChainedSet extends Chained { - add(value: Value): this; - prepend(value: Value): this; - clear(): this; - delete(key: string): this; - has(key: string): boolean; - merge(arr: Value[]): this; - values(): Value[]; - } - - class ChainedSet extends TypedChainedSet {} + class Chained extends __Config.Chained {} + class TypedChainedMap extends __Config.TypedChainedMap {} + class ChainedMap extends __Config.TypedChainedMap {} + class TypedChainedSet extends __Config.TypedChainedSet {} + class ChainedSet extends __Config.TypedChainedSet {} class Plugins extends TypedChainedMap> {} @@ -128,11 +137,16 @@ declare namespace Config { noInfo(value: boolean): this; overlay(value: boolean | { warnings?: boolean, errors?: boolean }): this; port(value: number): this; + progress(value: boolean): this; proxy(value: any): this; + public(value: string): this; + publicPath(publicPath: string): this; quiet(value: boolean): this; setup(value: (expressApp: any) => void): this; + staticOptions(value: any): this; stats(value: webpack.Options.Stats): this; watchContentBase(value: boolean): this; + watchOptions(value: any): this; } class Performance extends ChainedMap { @@ -142,7 +156,7 @@ declare namespace Config { assetFilter(value: (assetFilename: string) => boolean): this; } - class EntryPoints extends TypedChainedMap> {} + class EntryPoint extends TypedChainedSet {} class Resolve extends ChainedMap { alias: TypedChainedMap; diff --git a/types/webpack-chain/webpack-chain-tests.ts b/types/webpack-chain/webpack-chain-tests.ts index 1118fe0d26..07593687cf 100644 --- a/types/webpack-chain/webpack-chain-tests.ts +++ b/types/webpack-chain/webpack-chain-tests.ts @@ -29,11 +29,13 @@ config .target('web') .watch(true) .watchOptions({}) + .when(false, config => config.watch(true), config => config.watch(false)) .entry('main') .add('index.js') .delete('index.js') .clear() + .when(false, entry => entry.clear(), entry => entry.clear()) .end() .entryPoints @@ -71,15 +73,20 @@ config errors: true, }) .port(8080) + .progress(true) .proxy({}) + .public('foo') + .publicPath('bar') .quiet(false) .setup(app => {}) + .staticOptions({}) .stats({ reasons: true, errors: true, warnings: false, }) .watchContentBase(true) + .watchOptions({}) .end() .module From aed2ea47a9207127b3e21186b568911fce7a8ba0 Mon Sep 17 00:00:00 2001 From: Eirikur Nilsson Date: Wed, 30 Aug 2017 22:53:46 +0000 Subject: [PATCH 112/316] Fix when type --- types/webpack-chain/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/webpack-chain/index.d.ts b/types/webpack-chain/index.d.ts index 68839d423c..6f6c46daa8 100644 --- a/types/webpack-chain/index.d.ts +++ b/types/webpack-chain/index.d.ts @@ -22,7 +22,7 @@ declare namespace __Config { merge(obj: { [key: string]: Value }): this; entries(): { [key: string]: Value }; values(): Value[]; - when(condition: boolean, trueBrancher: (obj: any) => void, falseBrancher?: (obj: any) => void): this; + when(condition: boolean, trueBrancher: (obj: this) => void, falseBrancher?: (obj: this) => void): this; } class ChainedMap extends TypedChainedMap {} @@ -35,7 +35,7 @@ declare namespace __Config { has(key: string): boolean; merge(arr: Value[]): this; values(): Value[]; - when(condition: boolean, trueBrancher: (obj: any) => void, falseBrancher?: (obj: any) => void): this; + when(condition: boolean, trueBrancher: (obj: this) => void, falseBrancher?: (obj: this) => void): this; } class ChainedSet extends TypedChainedSet {} From c88276a0d4b106d3ec2f6cff8f9112c41f5ac77c Mon Sep 17 00:00:00 2001 From: Joscha Feth Date: Thu, 31 Aug 2017 09:07:35 +1000 Subject: [PATCH 113/316] remove global --- types/xhr-mock/index.d.ts | 1 - types/xhr-mock/xhr-mock-tests.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/xhr-mock/index.d.ts b/types/xhr-mock/index.d.ts index eacec1c5fc..2f85e44c8d 100644 --- a/types/xhr-mock/index.d.ts +++ b/types/xhr-mock/index.d.ts @@ -54,4 +54,3 @@ declare namespace mock { declare var mock: mock.XhrMock; export = mock; -export as namespace mock; diff --git a/types/xhr-mock/xhr-mock-tests.ts b/types/xhr-mock/xhr-mock-tests.ts index fd26b3a43f..37fc651d64 100644 --- a/types/xhr-mock/xhr-mock-tests.ts +++ b/types/xhr-mock/xhr-mock-tests.ts @@ -1,3 +1,5 @@ +import mock = require('xhr-mock'); + // replace the real XHR object with the mock XHR object mock.setup(); From 991a5e70fac3dd953e6f888e183c4bf011760282 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Tue, 22 Aug 2017 19:56:07 -0400 Subject: [PATCH 114/316] Add ToggleButton and ToggleButtonGroup It's a new feature in v0.31.1 --- types/react-bootstrap/index.d.ts | 2 ++ types/react-bootstrap/lib/ToggleButton.d.ts | 11 +++++++++ .../lib/ToggleButtonGroup.d.ts | 21 +++++++++++++++++ types/react-bootstrap/lib/index.d.ts | 4 ++++ .../test/react-bootstrap-tests.tsx | 23 ++++++++++++++++++- 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 types/react-bootstrap/lib/ToggleButton.d.ts create mode 100644 types/react-bootstrap/lib/ToggleButtonGroup.d.ts diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index b59403cc39..5c55ce6910 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -119,6 +119,8 @@ export { TabPane, Tabs, Thumbnail, + ToggleButton, + ToggleButtonGroup, Tooltip, Well, utils, diff --git a/types/react-bootstrap/lib/ToggleButton.d.ts b/types/react-bootstrap/lib/ToggleButton.d.ts new file mode 100644 index 0000000000..2de57ca211 --- /dev/null +++ b/types/react-bootstrap/lib/ToggleButton.d.ts @@ -0,0 +1,11 @@ +import * as React from 'react'; + +declare class ToggleButton extends React.Component { } +declare namespace ToggleButton { } +export = ToggleButton + +interface ToggleButtonProps extends React.HTMLProps { + checked?: boolean; + name?: string; + value: number|string; +} diff --git a/types/react-bootstrap/lib/ToggleButtonGroup.d.ts b/types/react-bootstrap/lib/ToggleButtonGroup.d.ts new file mode 100644 index 0000000000..30849be038 --- /dev/null +++ b/types/react-bootstrap/lib/ToggleButtonGroup.d.ts @@ -0,0 +1,21 @@ +import * as React from 'react'; + +declare class ToggleButtonGroup extends React.Component { } +declare namespace ToggleButtonGroup { } +export = ToggleButtonGroup + +interface ToggleButtonGroupProps extends React.HTMLProps { + /** Required if `type` is set to "radio" */ + name?: string; + type: "radio" | "checkbox"; + /** + * You'll usually want to use string|number|string[]|number[] here, + * but you can technically use any|any[]. + */ + defaultValue?: any; + /** + * You'll usually want to use string|number|string[]|number[] here, + * but you can technically use any|any[]. + */ + value?: any; +} diff --git a/types/react-bootstrap/lib/index.d.ts b/types/react-bootstrap/lib/index.d.ts index 28078e1bcd..9cf3b61777 100644 --- a/types/react-bootstrap/lib/index.d.ts +++ b/types/react-bootstrap/lib/index.d.ts @@ -83,6 +83,8 @@ import * as TabPane from './TabPane'; import * as Tabs from './Tabs'; import * as Thumbnail from './Thumbnail'; import * as Tooltip from './Tooltip'; +import * as ToggleButton from './ToggleButton' +import * as ToggleButtonGroup from './ToggleButtonGroup' import * as Well from './Well'; import * as utils from './utils'; @@ -173,6 +175,8 @@ export { Tabs, Thumbnail, Tooltip, + ToggleButton, + ToggleButtonGroup, Well, utils, } diff --git a/types/react-bootstrap/test/react-bootstrap-tests.tsx b/types/react-bootstrap/test/react-bootstrap-tests.tsx index 873132e64b..445e65dc12 100644 --- a/types/react-bootstrap/test/react-bootstrap-tests.tsx +++ b/types/react-bootstrap/test/react-bootstrap-tests.tsx @@ -12,7 +12,8 @@ import { Label, Badge, Jumbotron, PageHeader, Glyphicon, Table, Form, FormGroup, ControlLabel, FormControl, HelpBlock, - Radio, Checkbox, Media, InputGroup + Radio, Checkbox, Media, InputGroup, ToggleButtonGroup, + ToggleButton } from 'react-bootstrap'; export class ReactBootstrapTest extends Component { @@ -1270,6 +1271,26 @@ export class ReactBootstrapTest extends Component { + +
+ + + Checkbox 1 (pre-checked) + Checkbox 2 + Checkbox 3 (pre-checked) + + + + + + + Radio 1 (pre-checked) + + Radio 2 + Radio 3 + + +
); } From bcc93afc0888102247cf4a8435475e80dc1780e2 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 30 Aug 2017 16:20:35 -0700 Subject: [PATCH 115/316] Added type declarations for 'jpeg-js'. --- types/jpeg-js/index.d.ts | 18 ++++++++++++++++++ types/jpeg-js/jpeg-js-tests.ts | 17 +++++++++++++++++ types/jpeg-js/tsconfig.json | 22 ++++++++++++++++++++++ types/jpeg-js/tslint.json | 1 + 4 files changed, 58 insertions(+) create mode 100644 types/jpeg-js/index.d.ts create mode 100644 types/jpeg-js/jpeg-js-tests.ts create mode 100644 types/jpeg-js/tsconfig.json create mode 100644 types/jpeg-js/tslint.json diff --git a/types/jpeg-js/index.d.ts b/types/jpeg-js/index.d.ts new file mode 100644 index 0000000000..b3525b5449 --- /dev/null +++ b/types/jpeg-js/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for jpeg-js 0.3 +// Project: https://github.com/eugeneware/jpeg-js#readme +// Definitions by: Daniel Rosenwasser +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +export interface RawImageData { + data: D; + width: number; + height: number; +} + +export function decode(jpegData: ArrayLike | Iterable | ArrayBuffer, useTypedArray: true): RawImageData; +export function decode(jpegData: ArrayLike | Iterable | ArrayBuffer, useTypedArray?: false): RawImageData; +export function decode(jpegData: ArrayLike | Iterable | ArrayBuffer, useTypedArray: boolean): RawImageData; + +export function encode(imgData: RawImageData, qu?: number): RawImageData; diff --git a/types/jpeg-js/jpeg-js-tests.ts b/types/jpeg-js/jpeg-js-tests.ts new file mode 100644 index 0000000000..9b66878e5d --- /dev/null +++ b/types/jpeg-js/jpeg-js-tests.ts @@ -0,0 +1,17 @@ +/// + +import fs = require("fs"); +import jpeg = require("jpeg-js"); + +const x = fs.readFileSync("hello.jpg"); +const decoded = jpeg.decode(x, true); + +const { width, height } = decoded; + +width; // $ExpectType number +height; // $ExpectType number +decoded.data; // $ExpectType Uint8Array + +fs.writeFileSync("re-encoded.jpg", jpeg.encode({ + width, height, data: decoded.data +}, 50)); diff --git a/types/jpeg-js/tsconfig.json b/types/jpeg-js/tsconfig.json new file mode 100644 index 0000000000..1e3c116f4f --- /dev/null +++ b/types/jpeg-js/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es2015" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "jpeg-js-tests.ts" + ] +} diff --git a/types/jpeg-js/tslint.json b/types/jpeg-js/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/jpeg-js/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From e2149cb99684a40929b5903e013ec34000b81bec Mon Sep 17 00:00:00 2001 From: loopArray <525029662@qq.com> Date: Thu, 31 Aug 2017 10:25:19 +0800 Subject: [PATCH 116/316] add missing TabBarItem add missing TabBarItem --- types/react-native-vector-icons/Icon.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-native-vector-icons/Icon.d.ts b/types/react-native-vector-icons/Icon.d.ts index bb56a01794..07fd38f91b 100644 --- a/types/react-native-vector-icons/Icon.d.ts +++ b/types/react-native-vector-icons/Icon.d.ts @@ -197,6 +197,7 @@ export class Icon extends React.Component { export namespace Icon { class ToolbarAndroid extends React.Component {} + class TabBarItem extends React.Component {} class TabBarItemIOS extends React.Component {} class Button extends React.Component {} } From eb124c3a5757b75bf201abc6e0a52993261f956f Mon Sep 17 00:00:00 2001 From: loopArray <525029662@qq.com> Date: Thu, 31 Aug 2017 10:26:01 +0800 Subject: [PATCH 117/316] add Custom Icon test --- .../react-native-vector-icons-tests.tsx | 49 +++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx index 99a2b3ac8b..7d71ccfc01 100644 --- a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx +++ b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx @@ -1,9 +1,22 @@ import * as React from 'react'; import { View, Text, TabBarIOS } from 'react-native'; +import { createIconSet } from 'react-native-vector-icons'; import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'; import Ionicon from 'react-native-vector-icons/Ionicons'; +const glyphMap = { + "station": 58918 +} + +const CustomIcon = createIconSet(glyphMap, 'FontCustom', 'FontCustom.ttf'); + +const CustomIconButton = CustomIcon.Button; +const CustomIconTabBarItem = CustomIcon.TabBarItem; +const CustomIconTabBarItemIOS = CustomIcon.TabBarItemIOS; +const CustomIconToolbarAndroid = CustomIcon.ToolbarAndroid; +const CustomIcongetImageSource = CustomIcon.getImageSource; + class Example extends React.Component { handleButton() { console.log('You pressed me'); @@ -30,7 +43,7 @@ class Example extends React.Component { } } -class TabTest extends React.Component { +class TabTest extends React.Component { constructor() { super(); @@ -49,7 +62,7 @@ class TabTest extends React.Component { selectedIconColor="pink" renderAsOriginal selected={this.state.selectedTab === 'tab1'} - onPress={() => this.setState({selectedTab: 'tab1'})} + onPress={() => this.setState({ selectedTab: 'tab1' })} > @@ -61,7 +74,7 @@ class TabTest extends React.Component { selectedIconColor='pink' renderAsOriginal selected={this.state.selectedTab === 'tab2'} - onPress={() => this.setState({selectedTab: 'tab2'})} + onPress={() => this.setState({ selectedTab: 'tab2' })} > @@ -69,3 +82,33 @@ class TabTest extends React.Component { ); } } + +class TestCustomIcon extends React.Component { + constructor() { + super(); + } + + handleButton() { + console.log('You pressed me'); + } + + render() { + return ( + + {/* Custom Icon */} + + + {/* Custom Icon button */} + this.handleButton()} + > + + Hello CustomIcon! + + + + ); + } +} From 65106bb98734b1c652d17668bfa2f9df6ad3aa87 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 30 Aug 2017 20:42:22 -0700 Subject: [PATCH 118/316] Don't reference 'node' in tests for 'jpeg-js'. --- types/jpeg-js/jpeg-js-tests.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/jpeg-js/jpeg-js-tests.ts b/types/jpeg-js/jpeg-js-tests.ts index 9b66878e5d..17bbc4fd5f 100644 --- a/types/jpeg-js/jpeg-js-tests.ts +++ b/types/jpeg-js/jpeg-js-tests.ts @@ -1,7 +1,5 @@ -/// - -import fs = require("fs"); import jpeg = require("jpeg-js"); +import fs = require("fs"); const x = fs.readFileSync("hello.jpg"); const decoded = jpeg.decode(x, true); From fab36d348cb3e3efcb2ca54dbea28e84c5eaabb1 Mon Sep 17 00:00:00 2001 From: Samphan Raruenrom Date: Thu, 31 Aug 2017 13:02:37 +0700 Subject: [PATCH 119/316] meteor: fix to allow strictNullChecks --- types/meteor/ejson.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/meteor/ejson.d.ts b/types/meteor/ejson.d.ts index 45ae2627c0..a6294fb8be 100644 --- a/types/meteor/ejson.d.ts +++ b/types/meteor/ejson.d.ts @@ -5,10 +5,10 @@ interface EJSONableCustomType { typeName(): string; } interface EJSONable { - [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType; + [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType | undefined | null; } interface JSONable { - [key: string]: number | string | boolean | Object | number[] | string[] | Object[]; + [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | undefined | null; } interface EJSON extends EJSONable { } @@ -44,10 +44,10 @@ declare module "meteor/ejson" { typeName(): string; } interface EJSONable { - [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType; + [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSONableCustomType | undefined | null; } interface JSONable { - [key: string]: number | string | boolean | Object | number[] | string[] | Object[]; + [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | undefined | null; } interface EJSON extends EJSONable { } From 4e786d53cee6a08fdd1e21bfae02b4c0b0733da8 Mon Sep 17 00:00:00 2001 From: Samphan Raruenrom Date: Thu, 31 Aug 2017 13:13:16 +0700 Subject: [PATCH 120/316] meteor: add methods to Mongo.ObjectID These method are accessible from meteor Mongo.ObjectID but missing. Per https://docs.meteor.com/api/collections.html#Mongo-ObjectID : "Mongo.ObjectID follows the same API as the Node MongoDB driver ObjectID class" When I check the Node.js MongoDB Driver API, only these two methods are interesting. (getTimestamp() doesn't make sense in Meteor). I've a test that call both methods successfully. --- types/meteor/mongo.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/meteor/mongo.d.ts b/types/meteor/mongo.d.ts index af632bdab1..99f931ec28 100644 --- a/types/meteor/mongo.d.ts +++ b/types/meteor/mongo.d.ts @@ -214,7 +214,10 @@ declare module "meteor/mongo" { interface ObjectIDStatic { new (hexString?: string): ObjectID; } - interface ObjectID { } + interface ObjectID { + toHexString(): string; + equals(otherID: ObjectID): boolean; + } function setConnectionOptions(options: any): void; } From c37768ab5ae36eaab8041878837d6e51f685918e Mon Sep 17 00:00:00 2001 From: loopArray <525029662@qq.com> Date: Thu, 31 Aug 2017 14:48:45 +0800 Subject: [PATCH 121/316] Update react-native-vector-icons-tests.tsx --- .../react-native-vector-icons-tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx index 7d71ccfc01..9615de18f4 100644 --- a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx +++ b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx @@ -6,7 +6,7 @@ import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'; import Ionicon from 'react-native-vector-icons/Ionicons'; const glyphMap = { - "station": 58918 + "custom": 58918 } const CustomIcon = createIconSet(glyphMap, 'FontCustom', 'FontCustom.ttf'); From 9bf1a6a4d656eaf17f64f53ae62aaf91a912ee43 Mon Sep 17 00:00:00 2001 From: maxpaj Date: Thu, 31 Aug 2017 09:03:48 +0200 Subject: [PATCH 122/316] Replaced `String` type with `string` --- types/fluent-ffmpeg/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 5d45a3d465..1b86816787 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -144,10 +144,10 @@ declare namespace Ffmpeg { audioFrequency(freq: number): FfmpegCommand; withAudioQuality(quality: number): FfmpegCommand; audioQuality(quality: number): FfmpegCommand; - withAudioFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; - withAudioFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; - audioFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; - audioFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + withAudioFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + withAudioFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + audioFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + audioFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; // options/video; withNoVideo(): FfmpegCommand; @@ -156,10 +156,10 @@ declare namespace Ffmpeg { videoCodec(codec: string): FfmpegCommand; withVideoBitrate(bitrate: string | number): FfmpegCommand; videoBitrate(bitrate: string | number): FfmpegCommand; - withVideoFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; - withVideoFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; - videoFilter(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; - videoFilters(filters: { filter: string, options: any }[] | String | String[]): FfmpegCommand; + withVideoFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + withVideoFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + videoFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + videoFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; withOutputFps(fps: number): FfmpegCommand; withOutputFPS(fps: number): FfmpegCommand; withFpsOutput(fps: number): FfmpegCommand; From 27baba70b1aa52050b14fa40fa093928e972523a Mon Sep 17 00:00:00 2001 From: maxpaj Date: Thu, 31 Aug 2017 09:23:24 +0200 Subject: [PATCH 123/316] Corrected parameters and extracted AudoVideoFilter interface --- types/fluent-ffmpeg/index.d.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 1b86816787..2ecd56f1a5 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -104,6 +104,11 @@ declare namespace Ffmpeg { fastSeek?: boolean; size?: string; } + + interface AudioVideoFilter { + filter: string; + options: string | string[] | Object; + } class FfmpegCommand extends events.EventEmitter { constructor(options?: FfmpegCommandOptions); @@ -144,10 +149,10 @@ declare namespace Ffmpeg { audioFrequency(freq: number): FfmpegCommand; withAudioQuality(quality: number): FfmpegCommand; audioQuality(quality: number): FfmpegCommand; - withAudioFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; - withAudioFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; - audioFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; - audioFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + withAudioFilter(filters: string | string[] | Array): FfmpegCommand; + withAudioFilters(filters: string | string[] | Array): FfmpegCommand; + audioFilter(filters: string | string[] | Array): FfmpegCommand; + audioFilters(filters: string | string[] | Array): FfmpegCommand; // options/video; withNoVideo(): FfmpegCommand; @@ -156,10 +161,10 @@ declare namespace Ffmpeg { videoCodec(codec: string): FfmpegCommand; withVideoBitrate(bitrate: string | number): FfmpegCommand; videoBitrate(bitrate: string | number): FfmpegCommand; - withVideoFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; - withVideoFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; - videoFilter(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; - videoFilters(filters: { filter: string, options: any }[] | string | Array): FfmpegCommand; + withVideoFilter(filters: string | string[] | Array): FfmpegCommand; + withVideoFilters(filters: string | string[] | Array): FfmpegCommand; + videoFilter(filters: string | string[] | Array): FfmpegCommand; + videoFilters(filters: string | string[] | Array): FfmpegCommand; withOutputFps(fps: number): FfmpegCommand; withOutputFPS(fps: number): FfmpegCommand; withFpsOutput(fps: number): FfmpegCommand; From 79e7c252f342624e5cca70cebe1db8fbdb467fdc Mon Sep 17 00:00:00 2001 From: maxpaj Date: Thu, 31 Aug 2017 09:34:11 +0200 Subject: [PATCH 124/316] Fix Travis errors --- types/fluent-ffmpeg/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 2ecd56f1a5..2f57bb8347 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -104,10 +104,10 @@ declare namespace Ffmpeg { fastSeek?: boolean; size?: string; } - + interface AudioVideoFilter { filter: string; - options: string | string[] | Object; + options: string | string[] | object; } class FfmpegCommand extends events.EventEmitter { @@ -149,10 +149,10 @@ declare namespace Ffmpeg { audioFrequency(freq: number): FfmpegCommand; withAudioQuality(quality: number): FfmpegCommand; audioQuality(quality: number): FfmpegCommand; - withAudioFilter(filters: string | string[] | Array): FfmpegCommand; - withAudioFilters(filters: string | string[] | Array): FfmpegCommand; - audioFilter(filters: string | string[] | Array): FfmpegCommand; - audioFilters(filters: string | string[] | Array): FfmpegCommand; + withAudioFilter(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; + withAudioFilters(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; + audioFilter(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; + audioFilters(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; // options/video; withNoVideo(): FfmpegCommand; From 7644721413e0d93332f6794454889c86eb92784a Mon Sep 17 00:00:00 2001 From: maxpaj Date: Thu, 31 Aug 2017 09:34:53 +0200 Subject: [PATCH 125/316] Some more fix... --- types/fluent-ffmpeg/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 2f57bb8347..97b07c8bd6 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -161,10 +161,10 @@ declare namespace Ffmpeg { videoCodec(codec: string): FfmpegCommand; withVideoBitrate(bitrate: string | number): FfmpegCommand; videoBitrate(bitrate: string | number): FfmpegCommand; - withVideoFilter(filters: string | string[] | Array): FfmpegCommand; - withVideoFilters(filters: string | string[] | Array): FfmpegCommand; - videoFilter(filters: string | string[] | Array): FfmpegCommand; - videoFilters(filters: string | string[] | Array): FfmpegCommand; + withVideoFilter(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; + withVideoFilters(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; + videoFilter(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; + videoFilters(filters: string | string[] | AudioVideoFilter[]): FfmpegCommand; withOutputFps(fps: number): FfmpegCommand; withOutputFPS(fps: number): FfmpegCommand; withFpsOutput(fps: number): FfmpegCommand; From fe214f98c28b65e99038b59d259b7a73f9340126 Mon Sep 17 00:00:00 2001 From: maxpaj Date: Thu, 31 Aug 2017 09:41:49 +0200 Subject: [PATCH 126/316] Use `{}` instead of `object`. --- types/fluent-ffmpeg/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 97b07c8bd6..87bdbfe15c 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -107,7 +107,7 @@ declare namespace Ffmpeg { interface AudioVideoFilter { filter: string; - options: string | string[] | object; + options: string | string[] | {}; } class FfmpegCommand extends events.EventEmitter { From 84b7de8cef99095bc52e0123c602e16e194f7aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Wachter?= Date: Thu, 31 Aug 2017 11:00:43 +0200 Subject: [PATCH 127/316] [pg] Reexport the 'pg' module under an attribute 'native' Gives optional access to the native client if installed. --- types/pg/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index da6f4db575..d8f41a7e36 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -126,3 +126,7 @@ export declare class Events extends events.EventEmitter { export const types: typeof pgTypes; export const defaults: Defaults & ClientConfig; + +import * as Pg from 'pg'; + +export const native: typeof Pg | null; From 6e75e3644b622e3a7e96d4273d8951c74893e396 Mon Sep 17 00:00:00 2001 From: Leo Liang Date: Thu, 31 Aug 2017 17:57:20 +0800 Subject: [PATCH 128/316] Copy v6 types to its folder --- types/pg/v6/index.d.ts | 128 ++++++++++++++++++++++++++++++++++++++ types/pg/v6/pg-tests.ts | 81 ++++++++++++++++++++++++ types/pg/v6/tsconfig.json | 25 ++++++++ 3 files changed, 234 insertions(+) create mode 100644 types/pg/v6/index.d.ts create mode 100644 types/pg/v6/pg-tests.ts create mode 100644 types/pg/v6/tsconfig.json diff --git a/types/pg/v6/index.d.ts b/types/pg/v6/index.d.ts new file mode 100644 index 0000000000..5624989ac7 --- /dev/null +++ b/types/pg/v6/index.d.ts @@ -0,0 +1,128 @@ +// Type definitions for pg 6.1 +// Project: https://github.com/brianc/node-postgres +// Definitions by: Phips Peter +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import events = require("events"); +import stream = require("stream"); +import pgTypes = require("pg-types"); + +export declare function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +export declare function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +export declare function end(): void; + +export interface ConnectionConfig { + user?: string; + database?: string; + password?: string; + port?: number; + host?: string; +} + +export interface Defaults extends ConnectionConfig { + poolSize?: number; + poolIdleTimeout?: number; + reapIntervalMillis?: number; + binary?: boolean; + parseInt8?: boolean; +} + +import { TlsOptions } from "tls"; + +export interface ClientConfig extends ConnectionConfig { + ssl?: boolean | TlsOptions; +} + +export interface PoolConfig extends ClientConfig { + // properties from module 'node-pool' + max?: number; + min?: number; + refreshIdle?: boolean; + idleTimeoutMillis?: number; + reapIntervalMillis?: number; + returnToHead?: boolean; + application_name?: string; + Promise?: PromiseConstructorLike; +} + +export interface QueryConfig { + name?: string; + text: string; + values?: any[]; +} + +export interface QueryResult { + command: string; + rowCount: number; + oid: number; + rows: any[]; +} + +export interface ResultBuilder extends QueryResult { + addRow(row: any): void; +} + +export declare class Pool extends events.EventEmitter { + // `new Pool('pg://user@localhost/mydb')` is not allowed. + // But it passes type check because of issue: + // https://github.com/Microsoft/TypeScript/issues/7485 + constructor(config?: PoolConfig); + + connect(): Promise; + connect(callback: (err: Error, client: Client, done: () => void) => void): void; + + end(callback?: () => void): Promise; + + query(queryStream: QueryConfig & stream.Readable): stream.Readable; + query(queryTextOrConfig: string | QueryConfig): Promise; + query(queryText: string, values: any[]): Promise; + + query(queryTextOrConfig: string | QueryConfig, callback: (err: Error, result: QueryResult) => void): Query; + query(queryText: string, values: any[], callback: (err: Error, result: QueryResult) => void): Query; + + on(event: "error", listener: (err: Error, client: Client) => void): this; + on(event: "connect" | "acquire", listener: (client: Client) => void): this; +} + +export declare class Client extends events.EventEmitter { + constructor(connection: string); + constructor(config: ClientConfig); + + connect(callback?: (err: Error) => void): void; + end(callback?: (err: Error) => void): void; + release(err?: Error): void; + + query(queryStream: QueryConfig & stream.Readable): stream.Readable; + query(queryTextOrConfig: string | QueryConfig): Promise; + query(queryText: string, values: any[]): Promise; + + query(queryTextOrConfig: string | QueryConfig, callback: (err: Error, result: QueryResult) => void): Query; + query(queryText: string, values: any[], callback: (err: Error, result: QueryResult) => void): Query; + + copyFrom(queryText: string): stream.Writable; + copyTo(queryText: string): stream.Readable; + + pauseDrain(): void; + resumeDrain(): void; + + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "notification" | "notice", listener: (message: any) => void): this; + on(event: "end", listener: () => void): this; +} + +export declare class Query extends events.EventEmitter { + on(event: "row", listener: (row: any, result?: ResultBuilder) => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "end", listener: (result: ResultBuilder) => void): this; +} + +export declare class Events extends events.EventEmitter { + on(event: "error", listener: (err: Error, client: Client) => void): this; +} + +export const types: typeof pgTypes; + +export const defaults: Defaults & ClientConfig; diff --git a/types/pg/v6/pg-tests.ts b/types/pg/v6/pg-tests.ts new file mode 100644 index 0000000000..4b4cfba7ec --- /dev/null +++ b/types/pg/v6/pg-tests.ts @@ -0,0 +1,81 @@ +import * as pg from "pg"; + +var conString = "postgres://username:password@localhost/database"; + +// https://github.com/brianc/node-pg-types +pg.types.setTypeParser(20, val => Number(val)); + +// Client pooling +pg.defaults.ssl = true; +pg.connect(conString, (err, client, done) => { + if (err) { + return console.error("Error fetching client from pool", err); + } + client.query("SELECT $1::int AS number", ["1"], (err, result) => { + if (err) { + done(err); + return console.error("Error running query", err); + } + else { + done(); + } + console.log(result.rows[0]["number"]); + return null; + }); + return null; +}); + +// Simple +var client = new pg.Client(conString); +client.connect(err => { + if (err) { + return console.error("Could not connect to postgres", err); + } + client.query("SELECT NOW() AS 'theTime'", (err, result) => { + if (err) { + return console.error("Error running query", err); + } + console.log(result.rowCount); + console.log(result.rows[0]["theTime"]); + client.end(); + return null; + }); + return null; +}); +client.on('end', () => console.log("Client was disconnected.")); + +// client pooling + +var config = { + user: 'foo', //env var: PGUSER + database: 'my_db', //env var: PGDATABASE + password: 'secret', //env var: PGPASSWORD + port: 5432, //env var: PGPORT + max: 10, // max number of clients in the pool + idleTimeoutMillis: 30000, // how long a client is allowed to remain idle before being closed + Promise, +}; +var pool = new pg.Pool(config); + +pool.connect((err, client, done) => { + if(err) { + return console.error('error fetching client from pool', err); + } + client.query('SELECT $1::int AS number', ['1'], (err, result) => { + done(); + + if(err) { + return console.error('error running query', err); + } + console.log(result.rows[0].number); + }); +}); + +pool.on('error', (err, client) => { + console.error('idle client error', err.message, err.stack) +}) + +pool.end(); +pool.end(() => { + console.log("pool is closed"); +}); diff --git a/types/pg/v6/tsconfig.json b/types/pg/v6/tsconfig.json new file mode 100644 index 0000000000..2c44f5862b --- /dev/null +++ b/types/pg/v6/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "pg": [ "pg/v6" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pg-tests.ts" + ] +} From ad7ea9c9b343f01153dc377abd1f19ab134c5538 Mon Sep 17 00:00:00 2001 From: Syncfusion-JavaScript Date: Thu, 31 Aug 2017 15:59:49 +0530 Subject: [PATCH 129/316] 15.3.29 added --- types/ej.web.all/ej.web.all-tests.ts | 6603 +++++++++++++------------- types/ej.web.all/index.d.ts | 256 +- 2 files changed, 3477 insertions(+), 3382 deletions(-) diff --git a/types/ej.web.all/ej.web.all-tests.ts b/types/ej.web.all/ej.web.all-tests.ts index 9332c9bf1f..742f54463e 100644 --- a/types/ej.web.all/ej.web.all-tests.ts +++ b/types/ej.web.all/ej.web.all-tests.ts @@ -1,3300 +1,3303 @@ -/* tslint:disable */ - -module AccordionComponent { - $(function () { - var sample = new ej.Accordion($("#basicAccordion"), { - width: "100%", - allowKeyboardNavigation: true, - collapseSpeed: 500, - collapsible: true, - enableAnimation: true, - enableMultipleOpen: true, - events: "click", - expandSpeed: 500, - headerSize: "40px", - htmlAttributes: { title: "Demo" }, - selectedItemIndex: 1, - showCloseButton: true, - showRoundedCorner: true - }); - }); -} - - - -module AutocompleteComponent{ - var carList = [ - "Audi S6", "Austin-Healey", "Alfa Romeo", "Aston Martin", - "BMW 7", "Bentley Mulsanne", "Bugatti Veyron", - "Chevrolet Camaro", "Cadillac", - "Duesenberg J", "Dodge Sprinter", - "Elantra", "Excavator", - "Ford Boss 302", "Ferrari 360", "Ford Thunderbird", - "GAZ Siber", - "Honda S2000", "Hyundai Santro", - "Isuzu Swift", "Infiniti Skyline", - "Jaguar XJS", - "Kia Sedona EX", "Koenigsegg Agera", - "Lotus Esprit", "Lamborghini Diablo", - "Mercedes-Benz", "Mercury Coupe", "Maruti Alto 800", - "Nissan Qashqai", - "Oldsmobile S98", "Opel Superboss", - "Porsche 356", "Pontiac Sunbird", - "Scion SRS/SC/SD", "Saab Sportcombi", "Subaru Sambar", "Suzuki Swift", - "Triumph Spitfire", "Toyota 2000GT", - "Volvo P1800", "Volkswagen Shirako" - ]; - $(function () { - var autocompleteInstance =new ej.Autocomplete($("#selectCar"), { - width: "100%", - watermarkText: "Select a car", - dataSource: carList, - enableAutoFill: true, - showPopupButton: true, - multiSelectMode: "delimiter" - }); - }); -} - - - - - -module Barcodecomponent { - $(function () { - var barcodesample = new ej.datavisualization.Barcode($("#Barcode"), { - text:"http://www.syncfusion.com" - }); - }); -} - - - - - -module Bulletgraphcomponent { - $(function () { - var bulletsample = new ej.datavisualization.BulletGraph($("#BulletGraph"), { - isResponsive: true, - tooltipSettings: { visible: true }, - quantitativeScaleSettings: { - featureMeasures: [{ - value: 8, comparativeMeasureValue:6.7 - }] - }, - qualitativeRanges: [{ - rangeEnd: 4.3, rangeStroke:"#ebebeb", - }, - { - rangeEnd: 7.3, rangeStroke:"#d8d8d8" - }, - { - rangeEnd: 10, rangeStroke: "#7f7f7f" - } - ], - captionSettings: { - textPosition: 'right', text: 'Revenue YTD', - subTitle: { - text: "$ in Thousands", textPosition:"right" - } - } - }); - }); -} - - - - - -module ButtonComponent { - $(function () { - var basicButton = new ej.Button($("#buttonnormal"), { - size: "large", - showRoundedCorner: true, - contentType: "textandimage", - prefixIcon: "e-icon e-save", - text: "Save" - }); - var toggleButton = new ej.ToggleButton($("#TextOnly"), { - showRoundedCorner: true, - size: "large", - contentType: "textandimage", - defaultPrefixIcon: "e-icon e-save", - activePrefixIcon: "e-icon e-delete", - defaultText: "Save", - activeText: "Delete" - }); - var splitbuttonnormal = new ej.SplitButton($("#splitbuttonnormal"), { - showRoundedCorner: true, - size: "large", - prefixIcon: "e-icon e-file-empty", - targetID: "menu1", - contentType: "textandimage", - text: "File" - }); - var groupButton = new ej.GroupButton($("#groupButton"), { - showRoundedCorner: true, - size: "large" - }); - var check1 = new ej.CheckBox($("#check1"), { - size: "medium", enableTriState: true - }); - var check2 = new ej.CheckBox($("#check2"), { - size: "medium", enableTriState: true - }); - var radio1 = new ej.RadioButton($("#radio1"), { - size: "medium" - }); - var radio2 = new ej.RadioButton($("#radio2"), { - size: "medium", checked: true - }); - }); -} - - - - -module ChartComponent { - $(function () { - var chartsample = new ej.datavisualization.Chart($("#Chart"), { - primaryXAxis: { - range: { min: 2005, max: 2011, interval: 1 }, - title: { text: "Year" }, - valueType: "category" - }, - primaryYAxis: { - range: { min: 25, max: 50, interval: 5 }, - labelFormat: "{value}%", - title: { text: "Efficiency" }, - - }, - commonSeriesOptions: - { - type: 'line', enableAnimation: true, - tooltip:{ visible :true, template:'Tooltip'}, - marker: - { - shape: 'circle', - size: - { - height: 10, width: 10 - }, - visible: true - }, - border : {width: 2} - }, - series: - [ - { - points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 }, - { x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }], - name: 'India' - }, - { - points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 }, - { x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }], - name: 'Germany' - }, - { - points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 }, - { x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }], - name: 'England' - }, - { - points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 }, - { x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }], - name: 'France' - } - ], - isResponsive: true, - load: function () { - var sender = $("#Chart").data("ejChart"); - if (!!window.orientation && sender) { //to modify chart properties for mobile view - var model = sender.model, - seriesLength = model.series.length; - model.legend.visible = false; - model.size.height = null; - model.size.width = null; - for (var i = 0; i < seriesLength; i++) { - if (!model.series[i].marker) - model.series[i].marker = {}; - if (!model.series[i].marker.size) - model.series[i].marker.size = {}; - model.series[i].marker.size.width = 6; - model.series[i].marker.size.height = 6; - } - model.primaryXAxis.labelIntersectAction = "rotate45"; - if (model.primaryXAxis.title) - model.primaryXAxis.title.text = ""; - if (model.primaryYAxis.title) - model.primaryYAxis.title.text = ""; - model.primaryXAxis.edgeLabelPlacement = "hide"; - model.primaryYAxis.labelIntersectAction = "rotate45"; - model.primaryYAxis.edgeLabelPlacement = "hide"; - } - }, - title: { text: 'Efficiency of oil-fired power production' }, - size: { height: "600" }, - legend: { visible: true} - }); - }); -} - - - - - -module circulargaugecomponent { - $(function () { - var circularsample = new ej.datavisualization.CircularGauge($("#CircularGauge"), { - enableAnimation: false, - isResponsive: true, - backgroundColor: "transparent", width: 500, - scales: [{ - showRanges: true, - startAngle: 122, sweepAngle: 296, radius: 130, showScaleBar: true, size: 1, maximum: 120, majorIntervalValue: 20, minorIntervalValue: 10, - border: { - width: 0.5, - }, - pointers: [{ - value: 60, - showBackNeedle: true, - backNeedleLength: 20, - length: 95, - width: 7 - }], - ticks: [{ - type: "major", - distanceFromScale: 2, - height: 16, - width: 1, color: "#8c8c8c" - }, { type: "minor", height: 8, width: 1, distanceFromScale: 2, color: "#8c8c8c" }], - labels: [{ - color: "#8c8c8c" - }], - ranges: [{ - distanceFromScale: -30, - startValue: 0, - endValue: 70 - }, { - distanceFromScale: -30, - startValue: 70, - endValue: 110, - backgroundColor: "#fc0606", - border: { color: "#fc0606" } - }, - { - distanceFromScale: -30, - startValue: 110, - endValue: 120, - backgroundColor: "#f5b43f", - border: { color: "#f5b43f" } - }] - }] - }); - }); -} - - - - -module ColorPickerComponent { - $(function () { - var colorSample = new ej.ColorPicker($("#colorpick"), { - value: "#278787" - }); - }); -} - - - - -module DatePickerComponent { - $(function () { - var dateSample = new ej.DatePicker($("#datepick"), { - width: "100%" - }); - }); -} - - - - -module DateTimePickerComponent { - $(function () { - var datetimeSample = new ej.DateRangePicker($("#daterangepick"), { - width: "100%" - }); - }); -} - - - -module DateTimePickerComponent { - $(function () { - var datetimeSample = new ej.DateTimePicker($("#datetimepick"), { - width: "100%" - }); - }); -} - - - -$(function () { - var diagram = new ej.datavisualization.Diagram($("#diagram"), { - width: "1000px", - height: "600px", - pageSettings: { - //Sets page size - pageHeight: 500, - pageWidth: 500, - //Customizes the appearance of page - pageBorderWidth: 4, - pageBackgroundColor: "white", - pageBorderColor: "lightgray", - pageMargin: 25, - showPageBreak: true, - multiplePage: true, - pageOrientation: ej.datavisualization.Diagram.PageOrientations.Portrait - }, - scrollSettings: { - horizontalOffset: 0, - verticalOffset: 0 - }, - snapSettings: { - snapConstraints: ej.datavisualization.Diagram.SnapConstraints.ShowLines - }, - nodes: [ - createNode({ name: "NewIdea", width: 150, height: 60, offsetX: 300, offsetY: 60, labels: [createLabel({ "text": "New idea identified" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Terminator }), - createNode({ name: "Meeting", width: 150, height: 60, offsetX: 300, offsetY: 155, labels: [createLabel({ "text": "Meeting with board" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }), - createNode({ - name: "BoardDecision", width: 150, height: 110, offsetX: 300, offsetY: 280, labels: [createLabel({ text: "Board decides \nwhether \nto proceed", wrapText: "true", "margin": { left: 20, top: 0, right: 20, bottom: 0 } })], - type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Decision - }), - createNode({ name: "Project", width: 150, height: 100, offsetX: 300, offsetY: 430, labels: [createLabel({ "text": "Find Project \nmanager" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Decision }), - createNode({ - name: "End", width: 150, height: 60, offsetX: 300, offsetY: 555, labels: [createLabel({ "text": "Implement and Deliver" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }), - createNode({ name: "Decision", width: 250, height: 60, offsetX: 550, offsetY: 60, labels: [createLabel({ "text": "Decision Process for new software ideas" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Card, fillColor: "#858585", borderColor: "#858585" }), - createNode({ name: "Reject", width: 150, height: 60, offsetX: 550, offsetY: 285, labels: [createLabel({ "text": "Reject and write report" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }), - createNode({ name: "Resources", width: 150, height: 60, offsetX: 550, offsetY: 430, labels: [createLabel({ "text": "Hire new resources" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }) - ], - connectors: [ - createConnector({ name: "connector1", sourceNode: "NewIdea", targetNode: "Meeting" }), - createConnector({ name: "connector2", sourceNode: "Meeting", targetNode: "BoardDecision" }), - createConnector({ name: "connector3", sourceNode: "BoardDecision", targetNode: "Project", labels: [createLabel({ "text": "Yes" })] }), - createConnector({ name: "connector4", sourceNode: "Project", targetNode: "End", labels: [createLabel({ "text": "Yes" })] }), - createConnector({ name: "connector5", sourceNode: "BoardDecision", targetNode: "Reject", labels: [createLabel({ "text": "No" })] }), - createConnector({ name: "connector6", sourceNode: "Project", targetNode: "Resources", labels: [createLabel({ "text": "No" })] }) - ] - }); - -}); - -function createNode(option: ej.datavisualization.Diagram.Node) { - if (!option.fillColor) { - option.borderColor = "#1BA0E2"; - option.fillColor = "#1BA0E2"; - } - option.labels[0].fontColor = "white"; - return option; -} - -function createConnector(option: ej.datavisualization.Diagram.Connector) { - option.targetDecorator = { shape: ej.datavisualization.Diagram.DecoratorShapes.Arrow, borderColor: "#606060", width: 10, height: 10 }; - option.lineColor = "#606060"; - if (option.labels && option.labels.length > 0) { - option.labels[0].fillColor = "white"; - } - return option; -} - -function createLabel(options : any) { - return options; -} - - - -module DialogComponent { - $(function () { - var dialogInstance = new ej.Dialog($("#basicDialog"), { - width: 550, - minWidth: 310, - minHeight: 215, - target:".control", - close:()=>{ - $("#btnOpen").show();} - }); - var btnInstance = new ej.Button($("#btnOpen"), { - size: "medium", - click: ()=>{ - $("#btnOpen").hide(); - $("#basicDialog").ejDialog("open");}, - type: "button", - height: 30, - width: 150 - }); - }); -} - - - - -module digitalgaugecomponent { - $(function () { - var digitalgaugesample = new ej.datavisualization.DigitalGauge($("#DigitalGauge"), { - width: 525, - height: 305, - isResponsive: true, - items: [{ - segmentSettings: { - width: 1, - spacing: 0, - color: "#8c8c8c" - }, - characterSettings: { - opacity: 0.8, - }, - value: "Syncfusion", - position: { x: 52, y: 52 } - }] - }); - }); -} - - - - - - -module DropDownListComponent { - var BikeList = [ - { empid: "bk1", text: "Apache RTR" }, { empid: "bk2", text: "CBR 150-R" }, { empid: "bk3", text: "CBZ Xtreme" }, - { empid: "bk4", text: "Discover" }, { empid: "bk5", text: "Dazzler" }, { empid: "bk6", text: "Flame" }, - { empid: "bk7", text: "Fazzer" }, { empid: "bk8", text: "FZ-S" }, { empid: "bk9", text: "Pulsar" }, - { empid: "bk10", text: "Shine" }, { empid: "bk11", text: "R15" }, { empid: "bk12", text: "Unicorn" } - ]; - $(function () { - var sample = new ej.DropDownList($("#bikeList"),{ - dataSource: BikeList, - width: "100%", - watermarkText: "Select a bike", - fields: { id: "empid", text: "text", value: "text" }, - enableFilterSearch: true, - caseSensitiveSearch: true, - enableIncrementalSearch: true, - enablePopupResize: true, - delimiterChar: ";", - multiSelectMode: ej.MultiSelectMode.Delimiter, - maxPopupHeight: "300px", - minPopupHeight: "150px", - maxPopupWidth: "500px", - minPopupWidth: "350px", - showCheckbox: true, - showRoundedCorner: true - }); - }); - -} - - - - - - -module ExplorerComponent { - $(function () { - var file = new ej.FileExplorer($("#fileExplorer"), { - path: (window).baseurl + "Content/FileBrowser/", - width: "100%", - minWidth: "150px", - layout: "tile", - isResponsive: true, - ajaxAction: (window).baseurl + "api/FileExplorer/FileOperations" - }); - }); -} - - - - -module GanttComponent { - $(function () { - var ganttInstance = new ej.Gantt($("#GanttContainer"), { - dataSource: (window).projectData, - allowColumnResize: true, - allowSorting: true, - allowSelection: true, - enableContextMenu: true, - taskIdMapping: "taskID", - allowDragAndDrop: true, - taskNameMapping: "taskName", - startDateMapping: "startDate", - showColumnChooser: true, - showColumnOptions: true, - progressMapping: "progress", - durationMapping: "duration", - endDateMapping: "endDate", - childMapping: "subtasks", - scheduleStartDate: "02/01/2014", - scheduleEndDate: "04/09/2014", - //Resources mapping - resourceInfoMapping: "resourceId", - resourceNameMapping: "resourceName", - resourceIdMapping: "resourceId", - resources: (window).projectResources, - predecessorMapping: "predecessor", - showResourceNames: true, - toolbarSettings: { - showToolbar: true, - toolbarItems: ["add","edit","delete","update","cancel","indent","outdent","expandAll","collapseAll","search"] - }, - editSettings: { - allowEditing: true, - allowAdding: true, - allowDeleting: true, - allowIndent: true, - editMode: "cellEditing" - }, - sizeSettings: { - width: "100%", - height: "100%" - }, - dragTooltip: { showTooltip: true }, - showGridCellTooltip: true, - treeColumnIndex: 1, - isResponsive: true, - }); -}); -} - - - -module GridComponent { - $(function () { - var gridInstance = new ej.Grid($("#Grid"), { - dataSource: (window).gridData, - allowGrouping: true, - allowSorting: true, - allowMultiSorting: true, - enableAltRow: true, - allowPaging: true, - allowReordering: true, - allowResizing: true, - allowFiltering: true, - allowScrolling: true, - enableRowHover: true, - selectionType: "multiple", - selectionSettings: { enableToggle: true, selectionMode: ["row", "cell", "column"] }, - allowKeyboardNavigation: true, - editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, allowEditOnDblClick: true, showDeleteConfirmDialog: true }, - toolbarSettings: { showToolbar: true, toolbarItems: ["add", "edit", "delete", "update", "cancel", "search"] }, - columns: [ - { field: "OrderID", headerText: "Order ID", isPrimaryKey: true, width: 75, textAlign: ej.TextAlign.Right }, - { field: "CustomerID", headerText: "Customer ID", editType: ej.Grid.EditingType.String, width: 80 }, - { field: "EmployeeID", headerText: "Employee ID", width: 75, editType: ej.Grid.EditingType.Dropdown, textAlign: ej.TextAlign.Right, priority: 4 }, - { field: "Freight", width: 75, format: "{0:C}", editType: ej.Grid.EditingType.Numeric, textAlign: ej.TextAlign.Right, priority: 3 }, - { field: "OrderDate", headerText: "Order Date", width: 80, format: "{0:MM/dd/yyyy}", textAlign: ej.TextAlign.Right, priority: 2 }, - { field: "ShipCity", headerText: "Ship City", editType: ej.Grid.EditingType.Dropdown, width: 110, priority: 2 } - ], - isResponsive: true, - minWidth: 700, - showSummary: true, - summaryRows: [{ title: "Sum", summaryColumns: [{ summaryType: ej.Grid.SummaryType.Sum, displayColumn: "Freight", dataMember: "Freight", format: "{0:C2}" }] }] - }); - }); -} - - - -var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fl�temysost"] -var itemSource: any[] = []; -for (var i = 0; i < columns.length; i++) { - for (var j = 0; j < 6; j++) { - var value = Math.floor((Math.random() * 100) + 1); - itemSource.push({ ProductName: columns[i], Year: "Y" + (2011 + j), Value: value }) - } -} - -$(function () { - var heatmap = new ej.datavisualization.HeatMap($("#heatmap"), { - colorMappingCollection: [ - { value: 0, color: "#8ec8f8", label: { text: "0" } }, - { value: 100, color: "#0d47a1", label: { text: "100" } } - ], - isResponsive: true, - itemsSource: itemSource, - width: "100%", - itemsMapping: { - column: { propertyName: "ProductName", displayName: "Product Name" }, - row: { propertyName: "Year", displayName: "Year" }, - value: { propertyName: "Value" }, - columnMapping: [ - { "propertyName": columns[0], "displayName": columns[0] }, - { "propertyName": columns[1], "displayName": columns[1] }, - { "propertyName": columns[2], "displayName": columns[2] }, - { "propertyName": columns[3], "displayName": columns[3] }, - { "propertyName": columns[4], "displayName": columns[4] }, - { "propertyName": columns[5], "displayName": columns[5] } - ], - headerMapping: { propertyName: "Year", displayName: "Year", columnStyle: { width: 105, textAlign: "right" } }, - }, - legendCollection: ["heatmap_legend"] - }); - var heatmaplegend = new ej.datavisualization.HeatMapLegend($("#heatmap_legend"), { - colorMappingCollection: [ - { value: 0, color: "#8ec8f8", label: { text: "0" } }, - { value: 100, color: "#0d47a1", label: { text: "100" } } - ], - height: "50px", - width: "75%", - isResponsive: true - }); -}); - - - - -declare var window:myWindow; -export interface myWindow extends Window{ -kanbanData:any; -} -module KanbanComponent { - $(function () { - var sample = new ej.Kanban($("#Kanban"), { - dataSource: new ej.DataManager(window["kanbanData"]).executeLocal(new ej.Query().take(20)), - columns: [ - { headerText: "Backlog", key: "Open" }, - { headerText: "In Progress", key: "InProgress" }, - { headerText: "Testing", key: "Testing" }, - { headerText: "Done", key: "Close" } - ], - keyField: "Status", - allowTitle: true, - fields: { - content: "Summary", - primaryKey: "Id", - imageUrl: "ImgUrl" - }, - allowSelection: false - }); - }); -} - - - - -module lineargaugecomponent { - $(function () { - var linearsample = new ej.datavisualization.LinearGauge($("#LinearGauge"), { - labelColor: "#8c8c8c", width: 500, - isResponsive: true, enableAnimation: false, - scales: [{ - width: 4, border: { color: "transparent", width: 0 }, showBarPointers: false, showRanges: true, length: 310, - position: { x: 52, y: 50 }, markerPointers: [{ - value: 50, length: 10, width: 10, backgroundColor: "#4D4D4D", border: { color: "#4D4D4D" } - }], - labels: [{ font: { size: "11px", fontFamily: "Segoe UI", fontStyle: "bold" }, distanceFromScale: { x: -13 } }], - ticks: [{ type: "majorinterval", width: 1, color: "#8c8c8c" }], - ranges: [{ - endValue: 60, - startValue: 0, - backgroundColor: "#F6B53F", - border: { color: "#F6B53F" }, startWidth: 4, endWidth: 4 - }, { - endValue: 100, - startValue: 60, - backgroundColor: "#E94649", - border: { color: "#E94649" }, startWidth: 4, endWidth: 4 - }] - }] - }); - }); -} - - - - - -module ListBoxComponent { - $(function () { - var listboxInstance = new ej.ListBox($("#selectcar"), { - showCheckbox: true - }); - }); -} - - - -module ListviewComponent { - $(function () { - var listviewInstance = new ej.ListView($("#defaultlistview"), { - enableCheckMark: true, - width: 400 - }); - }); -} - - -var world_map= - { - "type": "FeatureCollection", - "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, - "features": [ - { "type": "Feature", "properties": { "admin": "Afghanistan", "name": "Afghanistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[61.21081709172573, 35.650072333309218], [62.230651483005879, 35.270663967422287], [62.984662306576588, 35.404040839167614], [63.193538445900337, 35.857165635718907], [63.982895949158696, 36.007957465146596], [64.546479119733888, 36.31207326918426], [64.746105177677393, 37.111817735333297], [65.588947788357828, 37.305216783185628], [65.745630731066811, 37.661164048812061], [66.217384881459324, 37.393790188133913], [66.518606805288655, 37.362784328758785], [67.075782098259609, 37.35614390720928], [67.829999627559502, 37.144994004864678], [68.135562371701369, 37.023115139304302], [68.859445835245921, 37.344335842430588], [69.196272820924364, 37.15114350030742], [69.518785434857946, 37.608996690413413], [70.116578403610319, 37.588222764632086], [70.270574171840124, 37.73516469985401], [70.376304152309274, 38.138395901027515], [70.806820509732873, 38.486281643216408], [71.348131137990251, 38.258905341132156], [71.239403924448155, 37.953265082341879], [71.541917759084768, 37.905774441065631], [71.448693475230229, 37.065644843080513], [71.84463829945058, 36.738171291646914], [72.193040805962383, 36.94828766534566], [72.636889682917271, 37.047558091778349], [73.260055779924983, 37.495256862938994], [73.948695916646486, 37.421566270490786], [74.980002475895404, 37.419990139305888], [75.158027785140902, 37.13303091078911], [74.575892775372964, 37.02084137628345], [74.067551710917812, 36.836175645488446], [72.920024855444453, 36.720007025696312], [71.846291945283909, 36.509942328429851], [71.262348260385735, 36.074387518857797], [71.498767938121077, 35.650563259415996], [71.613076206350698, 35.153203436822857], [71.115018751921625, 34.733125718722228], [71.156773309213449, 34.348911444632144], [70.881803012988385, 33.988855902638512], [69.93054324735958, 34.020120144175102], [70.323594191371583, 33.358532619758385], [69.687147251264847, 33.105498969041228], [69.262522007122541, 32.501944078088293], [69.317764113242546, 31.901412258424436], [68.926676873657655, 31.620189113892064], [68.556932000609308, 31.713310044882011], [67.792689243444769, 31.582930406209623], [67.683393589147457, 31.303154201781414], [66.938891229118454, 31.304911200479346], [66.38145755398601, 30.738899237586448], [66.346472609324408, 29.88794342703617], [65.046862013616092, 29.472180691031902], [64.350418735618504, 29.560030625928089], [64.148002150331237, 29.340819200145965], [63.550260858011164, 29.468330796826162], [62.549856805272775, 29.318572496044304], [60.874248488208778, 29.829238999952604], [61.78122155136343, 30.735850328081231], [61.699314406180811, 31.379506130492661], [60.941944614511115, 31.548074652628745], [60.863654819588952, 32.182919623334421], [60.536077915290761, 32.981268825811561], [60.963700392505991, 33.528832302376252], [60.528429803311575, 33.676446031217999], [60.80319339380744, 34.404101874319856], [61.21081709172573, 35.650072333309218]]] } }, - { "type": "Feature", "properties": { "admin": "Angola", "name": "Angola", "continent": "Africa" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[16.326528354567042, -5.877470391466217], [16.573179965896141, -6.622644545115092], [16.860190870845226, -7.222297865429978], [17.089995965247166, -7.545688978712474], [17.472970004962288, -8.068551120641656], [18.134221632569048, -7.987677504104865], [18.464175652752683, -7.847014255406475], [19.016751743249664, -7.988245944860138], [19.166613396896079, -7.738183688999724], [19.417502475673214, -7.155428562044277], [20.037723016040214, -7.116361179231658], [20.091621534920616, -6.943090101756949], [20.60182295093832, -6.939317722199688], [20.514748162526526, -7.299605808138663], [21.728110792739752, -7.290872491081315], [21.74645592620336, -7.920084730667113], [21.949130893652033, -8.305900974158304], [21.80180138518795, -8.908706556842985], [21.875181919042397, -9.523707777548564], [22.208753289486417, -9.894796237836529], [22.155268182064326, -11.084801120653777], [22.402798292742428, -10.99307545333569], [22.837345411884762, -11.017621758674334], [23.456790805767461, -10.867863457892481], [23.912215203555743, -10.926826267137541], [24.017893507592614, -11.237298272347115], [23.904153680118235, -11.722281589406332], [24.079905226342895, -12.191296888887305], [23.930922072045373, -12.565847670138821], [24.0161365088947, -12.91104623784855], [21.933886346125941, -12.898437188369353], [21.887842644953871, -16.080310153876891], [22.562478468524283, -16.898451429921831], [23.215048455506086, -17.523116143465952], [21.377176141045592, -17.930636488519706], [18.956186964603628, -17.789094740472233], [18.263309360434217, -17.309950860262003], [14.209706658595049, -17.353100681225708], [14.058501417709035, -17.423380629142653], [13.462362094789963, -16.971211846588741], [12.814081251688405, -16.941342868724075], [12.21546146001938, -17.111668389558059], [11.734198846085146, -17.301889336824498], [11.640096062881609, -16.673142185129205], [11.778537224991563, -15.793816013250687], [12.123580763404444, -14.878316338767927], [12.175618930722264, -14.449143568583889], [12.500095249083014, -13.547699883684398], [12.738478631245439, -13.137905775609934], [13.312913852601834, -12.483630466362511], [13.633721144269824, -12.038644707897189], [13.738727654686924, -11.297863050993142], [13.686379428775293, -10.73107594161584], [13.38732791510216, -10.373578383020726], [13.120987583069873, -9.766897067914112], [12.875369500386567, -9.166933689005488], [12.929061313537797, -8.959091078327573], [13.23643273280987, -8.56262948978434], [12.933040398824314, -7.596538588087752], [12.728298374083916, -6.927122084178803], [12.227347039446441, -6.294447523629372], [12.322431674863562, -6.100092461779651], [12.735171339578695, -5.965682061388476], [13.024869419006988, -5.984388929878106], [13.375597364971892, -5.864241224799555], [16.326528354567042, -5.877470391466217]]], [[[12.436688266660919, -5.684303887559223], [12.182336866920277, -5.789930515163801], [11.914963006242115, -5.037986748884733], [12.318607618873923, -4.606230157086158], [12.620759718484548, -4.438023369976121], [12.995517205465202, -4.781103203961918], [12.631611769265842, -4.991271254092935], [12.468004184629759, -5.248361504744991], [12.436688266660919, -5.684303887559223]]]] } }, - { "type": "Feature", "properties": { "admin": "Albania", "name": "Albania", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.590247430104906, 41.855404161133592], [20.463175083099195, 41.515089016275333], [20.605181919037356, 41.086226304685219], [21.020040317476397, 40.842726955725873], [20.99998986174722, 40.580003973953964], [20.67499677906363, 40.43499990494302], [20.61500044117275, 40.110006822259365], [20.150015903410516, 39.624997666983965], [19.980000441170144, 39.694993394523401], [19.9600016618732, 39.915005805006039], [19.40608198413673, 40.250773423822459], [19.319058872157139, 40.727230129553554], [19.403549838954287, 41.409565741535445], [19.540027296637099, 41.71998607031275], [19.371768833094958, 41.87754751237064], [19.304486118250786, 42.195745144207812], [19.738051385179627, 42.688247382165564], [19.801613396898681, 42.500093492190835], [20.0707, 42.58863], [20.28375451018189, 42.320259507815074], [20.52295, 42.21787], [20.590247430104906, 41.855404161133592]]] } }, - { "type": "Feature", "properties": { "admin": "United Arab Emirates", "name": "United Arab Emirates", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[51.579518670463258, 24.245497137951102], [51.757440626844172, 24.294072984305462], [51.794389275932865, 24.019826158132499], [52.577080519425593, 24.177439276622703], [53.404006788960139, 24.151316840099167], [54.008000929587574, 24.121757920828212], [54.693023716048614, 24.797892360935084], [55.439024692614126, 25.439145209244934], [56.070820753814544, 26.055464178973978], [56.261041701080948, 25.714606431576762], [56.396847365143991, 24.924732163995483], [55.886232537667993, 24.92083059335744], [55.804118686756212, 24.269604193615258], [55.981213820220454, 24.130542914317822], [55.528631626208231, 23.933604030853498], [55.525841098864461, 23.524869289640929], [55.234489373602869, 23.110992743415316], [55.208341098863187, 22.708329982997039], [55.006803012924898, 22.496947536707129], [52.000733270074321, 23.001154486578937], [51.617707553926969, 24.014219265228824], [51.579518670463258, 24.245497137951102]]] } }, - { "type": "Feature", "properties": { "admin": "Argentina", "name": "Argentina", "continent": "South America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-65.5, -55.2], [-66.45, -55.25], [-66.95992, -54.89681], [-67.56244, -54.87001], [-68.63335, -54.8695], [-68.634010227583147, -52.636370458874453], [-68.25, -53.1], [-67.75, -53.85], [-66.45, -54.45], [-65.05, -54.7], [-65.5, -55.2]]], [[[-64.964892137294569, -22.075861504812348], [-64.377021043542257, -22.79809132252354], [-63.986838141522462, -21.993644301035953], [-62.84646847192154, -22.034985446869452], [-62.685057135657885, -22.249029229422401], [-60.846564704009928, -23.880712579038299], [-60.028966030503973, -24.032796319273238], [-58.807128465394939, -24.771459242453268], [-57.777217169817952, -25.162339776309032], [-57.633660040911124, -25.603656508081666], [-58.618173590719707, -27.123718763947117], [-57.609759690976134, -27.395898532828419], [-56.486701626192989, -27.548499037386243], [-55.695845506398186, -27.387837009390815], [-54.788794928595038, -26.621785577096087], [-54.625290696823541, -25.739255466415479], [-54.130049607954412, -25.547639255477243], [-53.628348965048716, -26.12486500417743], [-53.648735317587885, -26.923472588816104], [-54.490725267135517, -27.474756768505767], [-55.162286342984586, -27.881915378533414], [-56.290899624239088, -28.852760512000849], [-57.62513342958291, -30.21629485445424], [-57.874937303281897, -31.016556084926158], [-58.14244035504074, -32.044503676076182], [-58.132647671121404, -33.040566908502008], [-58.349611172098818, -33.263188978815428], [-58.427074144104367, -33.909454441057541], [-58.495442064026541, -34.4314897600701], [-57.225829637263629, -35.288026625307886], [-57.362358771378737, -35.977390232081497], [-56.737487352105447, -36.413125909166574], [-56.788285285048339, -36.901571547189327], [-57.749156867083421, -38.183870538079901], [-59.231857062401865, -38.720220228837199], [-61.2374452378656, -38.92842457454114], [-62.335956997310134, -38.827707208004362], [-62.125763108962914, -39.424104913084868], [-62.33053097191943, -40.172586358400316], [-62.145994432205228, -40.676896661136723], [-62.74580278181697, -41.028761488612083], [-63.770494757732514, -41.166789239263657], [-64.732089809819698, -40.802677097335128], [-65.118035244391578, -41.064314874028874], [-64.97856055363583, -42.058000990569312], [-64.303407965742466, -42.359016208669495], [-63.755947842042339, -42.043686618824495], [-63.458059048095883, -42.563138116222355], [-64.378803880456289, -42.873558444999638], [-65.181803961839691, -43.495380954767782], [-65.328823411710133, -44.501366062193689], [-65.565268927661592, -45.03678557716978], [-66.509965786389344, -45.039627780945843], [-67.293793911392427, -45.551896254255183], [-67.580546434180079, -46.301772963242527], [-66.597066413017259, -47.033924655953804], [-65.641026577401433, -47.23613453551188], [-65.98508826360073, -48.133289076531128], [-67.166178961847649, -48.697337334996931], [-67.816087612566449, -49.869668877970412], [-68.728745083273154, -50.26421843851886], [-69.138539191347789, -50.732510267947788], [-68.815561489523517, -51.771104011594097], [-68.149994879820397, -52.349983406127699], [-68.571545376241332, -52.299443855346247], [-69.498362189396076, -52.142760912637236], [-71.914803839796321, -52.009022305865912], [-72.329403856074023, -51.425956312872394], [-72.309973517532342, -50.677009779666342], [-72.975746832964617, -50.741450290734299], [-73.328050910114456, -50.378785088909865], [-73.415435757120022, -49.318436374712952], [-72.648247443314929, -48.878618259476774], [-72.331160854771937, -48.244238376661819], [-72.44735531278026, -47.738532810253517], [-71.917258470330196, -46.884838148791786], [-71.552009446891233, -45.560732924177117], [-71.659315558545316, -44.973688653341434], [-71.222778896759721, -44.784242852559409], [-71.329800788036195, -44.407521661151677], [-71.793622606071935, -44.207172133156099], [-71.464056159130493, -43.787611179378324], [-71.915423956983901, -43.408564548517404], [-72.148898078078517, -42.254888197601375], [-71.746803758415453, -42.051386407235988], [-71.915734015577542, -40.832339369470716], [-71.680761277946445, -39.808164157878061], [-71.413516608349042, -38.916022230791107], [-70.814664272734703, -38.552995293940732], [-71.118625047475419, -37.576827487947192], [-71.121880662709771, -36.65812387466233], [-70.364769253201658, -36.005088799789931], [-70.388049485949082, -35.169687595359441], [-69.817309129501453, -34.193571465798279], [-69.814776984319209, -33.273886000299839], [-70.074399380153622, -33.09120981214803], [-70.535068935819439, -31.365010267870279], [-69.919008348251921, -30.336339206668306], [-70.013550381129861, -29.367922865518544], [-69.656130337183143, -28.459141127233686], [-69.001234910748266, -27.521213881136127], [-68.295541551370391, -26.899339694935787], [-68.594799770772667, -26.50690886811126], [-68.386001146097342, -26.185016371365229], [-68.417652960876111, -24.518554782816874], [-67.328442959244128, -24.025303236590908], [-66.985233934177629, -22.986348565362825], [-67.106673550063604, -22.735924574476392], [-66.273339402924833, -21.832310479420677], [-64.964892137294569, -22.075861504812348]]]] } }, - { "type": "Feature", "properties": { "admin": "Armenia", "name": "Armenia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[43.582745802592726, 41.09214325618256], [44.972480096218071, 41.248128567055588], [45.179495883979335, 40.985353908851401], [45.560351189970433, 40.812289537105919], [45.359174839058156, 40.561503811193447], [45.891907179555076, 40.218475653639992], [45.610012241402913, 39.899993801425175], [46.034534132680662, 39.628020738273058], [46.483498976432443, 39.464154771475528], [46.505719842317966, 38.770605373686287], [46.143623081248812, 38.74120148371221], [45.735379266143006, 39.319719143219736], [45.739978468616975, 39.473999131827114], [45.298144972521456, 39.471751207022422], [45.00198733905674, 39.740003567049548], [44.793989699081934, 39.713002631177041], [44.400008579288695, 40.005000311842267], [43.656436395040934, 40.253563951166178], [43.752657911968399, 40.740200914058754], [43.582745802592726, 41.09214325618256]]] } }, - { "type": "Feature", "properties": { "admin": "French Southern and Antarctic Lands", "name": "Fr. S. Antarctic Lands", "continent": "Seven seas (open ocean)" }, "geometry": { "type": "Polygon", "coordinates": [[[68.935, -48.625], [69.58, -48.94], [70.525, -49.065], [70.56, -49.255], [70.28, -49.71], [68.745, -49.775], [68.72, -49.2425], [68.8675, -48.83], [68.935, -48.625]]] } }, - { "type": "Feature", "properties": { "admin": "Australia", "name": "Australia", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[145.397978143494782, -40.792548516605883], [146.364120721623692, -41.137695407883335], [146.908583612250823, -41.000546156580668], [147.689259474884125, -40.808258152022681], [148.289067824495987, -40.875437514002122], [148.359864536735785, -42.062445163746439], [148.017301467073082, -42.40702361426861], [147.914051955353784, -43.211522312188485], [147.564564243763982, -42.937688897473855], [146.87034305235494, -43.634597263362082], [146.663327264593647, -43.580853773778543], [146.048377720320389, -43.54974456153888], [145.431929559510536, -42.693776137056268], [145.295090366801674, -42.03360971452755], [144.7180713238306, -41.162551771815707], [144.743754510679622, -40.703975111657705], [145.397978143494782, -40.792548516605883]]], [[[143.561811151299935, -13.763655694232209], [143.922099237238882, -14.548310642152], [144.563713820574804, -14.171176039285879], [144.894908075133515, -14.594457696188622], [145.374723748963419, -14.984976495018284], [145.271991001567244, -15.428205254785691], [145.48525963763575, -16.285672295804769], [145.637033319276952, -16.784918308176611], [145.888904250267672, -16.906926364817647], [146.160308872664473, -17.76165455492524], [146.063673944278662, -18.280072523677315], [146.387478469019584, -18.958274021075905], [147.471081577747896, -19.480722751546676], [148.177601760042478, -19.955939222902767], [148.848413527623222, -20.391209812097252], [148.717465448195583, -20.633468926681513], [149.289420200802056, -21.260510756111096], [149.678337030230637, -22.342511895438388], [150.07738244038859, -22.122783705333315], [150.482939081015161, -22.556142266533012], [150.727265252891158, -22.402404880464655], [150.899554478152254, -23.462236830338679], [151.609175246384211, -24.076256198830755], [152.07353966695905, -24.45788665130619], [152.855197381805908, -25.267501316023008], [153.136162144176751, -26.071173191026187], [153.161948683890358, -26.641319268502439], [153.09290897034856, -27.260299574494503], [153.569469028944184, -28.110066827102099], [153.512108189100218, -28.995077406532751], [153.339095493787056, -29.458201592732443], [153.069241164358857, -30.350240166954809], [153.089601678681788, -30.923641859665445], [152.891577590139377, -31.640445651985949], [152.450002476205327, -32.550002536755237], [151.709117466436766, -33.041342054986337], [151.343971795862387, -33.816023451473846], [151.010555454715103, -34.310360202777879], [150.714139439089024, -35.173459974916803], [150.328219842733233, -35.671879164371923], [150.075212030232251, -36.420205580390508], [149.946124302367139, -37.109052422841224], [149.997283970336127, -37.425260512035123], [149.423882277625523, -37.772681166333463], [148.304622430615893, -37.809061374666875], [147.38173302631526, -38.219217217767543], [146.922122837511324, -38.606532077795116], [146.317921991154776, -39.035756524411433], [145.489652134380549, -38.593767999019043], [144.876976353128157, -38.41744801203911], [145.032212355732952, -37.896187839510972], [144.485682407814011, -38.085323581699257], [143.609973586196077, -38.809465427405321], [142.745426873952965, -38.538267510737519], [142.17832970598198, -38.380034275059835], [141.606581659104677, -38.308514092767872], [140.638578729413211, -38.019332777662541], [139.992158237874321, -37.402936293285094], [139.806588169514043, -36.643602797188272], [139.574147577065219, -36.138362318670666], [139.082808058834075, -35.732754001611774], [138.120747918856296, -35.612296237939397], [138.449461704664998, -35.127261244447887], [138.207564325106659, -34.384722588845925], [137.719170363516128, -35.07682504653102], [136.829405552314711, -35.260534763328614], [137.352371047108477, -34.707338555644093], [137.503886346588331, -34.130267836240769], [137.890116001537649, -33.640478610978327], [137.810327590079112, -32.900007012668105], [136.996837192940347, -33.752771498348629], [136.372069126531642, -34.094766127256186], [135.98904341038434, -34.89011809666048], [135.208212518454104, -34.478670342752601], [135.239218377829161, -33.947953383114971], [134.613416782774607, -33.222778008763136], [134.085903761939107, -32.848072198214759], [134.273902622617015, -32.617233575166949], [132.990776808809812, -32.011224053680188], [132.288080682504869, -31.982646986622761], [131.326330601120901, -31.495803318001041], [129.535793898639668, -31.590422865527476], [128.240937534702198, -31.948488864877849], [127.102867466338282, -32.282266941051041], [126.148713820501129, -32.2159660784206], [125.088623488465586, -32.728751316052829], [124.22164798390493, -32.959486586236061], [124.028946567888511, -33.483847344701708], [123.65966678273071, -33.890179131812722], [122.811036411633609, -33.914467054989835], [122.18306440642283, -34.003402194964217], [121.299190708502579, -33.821036065406126], [120.580268182458113, -33.930176690406618], [119.893695103028222, -33.976065362281808], [119.298899367348781, -34.50936614353396], [119.007340936357977, -34.464149265278529], [118.505717808100769, -34.746819349915093], [118.024971958489516, -35.064732761374707], [117.295507440257438, -35.025458672832862], [116.62510908413492, -35.025096937806829], [115.564346958479689, -34.386427911111547], [115.026808709779516, -34.196517022438918], [115.048616164206763, -33.623425388322026], [115.545123325667078, -33.487257989232951], [115.714673700016661, -33.259571628554944], [115.679378696761376, -32.900368747694124], [115.801645135563959, -32.205062351207026], [115.689610630355105, -31.612437025683782], [115.160909051576937, -30.601594333622455], [114.99704308477942, -30.030724786094162], [115.040037876446249, -29.461095472940794], [114.64197431850198, -28.810230808224706], [114.61649783738217, -28.516398614213042], [114.173579136208446, -28.118076674107321], [114.048883905088132, -27.33476531342712], [113.477497593236876, -26.543134047147898], [113.338953078262477, -26.116545098578477], [113.77835778204026, -26.549025160429174], [113.440962355606587, -25.621278171493152], [113.936901076311642, -25.911234633082877], [114.232852004047288, -26.298446140245868], [114.216160516417006, -25.786281019801105], [113.721255324357685, -24.998938897402123], [113.625343866024025, -24.683971042583146], [113.393523390762667, -24.384764499613262], [113.502043898575607, -23.80635019297025], [113.706992629045146, -23.56021534596406], [113.843418410295669, -23.059987481378734], [113.736551548316072, -22.475475355725372], [114.149756300921865, -21.755881036061009], [114.225307244932651, -22.51748829517863], [114.64776207891866, -21.829519952076904], [115.460167270979298, -21.495173435148541], [115.94737267462699, -21.068687839443708], [116.711615431791529, -20.701681817306817], [117.166316359527684, -20.623598728113802], [117.441545037914238, -20.746898695562162], [118.229558953932951, -20.374208265873232], [118.836085239742701, -20.263310642174822], [118.987807244951753, -20.044202569257319], [119.252493931150624, -19.952941989829835], [119.805225050944543, -19.976506442954978], [120.856220330896633, -19.683707777589188], [121.399856398607199, -19.239755547769729], [121.655137974129062, -18.70531788500713], [122.241665480641757, -18.197648614171765], [122.286623976735655, -17.798603204013911], [122.312772251475408, -17.254967136303446], [123.012574497571904, -16.405199883695854], [123.433789097183009, -17.268558037996225], [123.859344517106592, -17.069035332917249], [123.503242222183232, -16.596506036040363], [123.817073195491915, -16.11131601325199], [124.258286574399847, -16.32794361741956], [124.379726190285794, -15.567059828353973], [124.926152785340022, -15.07510019293532], [125.167275018413875, -14.680395603090004], [125.670086704613823, -14.510070082256018], [125.685796340030493, -14.230655612853834], [126.125149367376096, -14.347340996968949], [126.142822707219864, -14.095986830301211], [126.582589146023736, -13.95279143642041], [127.065867140817332, -13.817967624570922], [127.804633416861932, -14.276906019755042], [128.359689976108939, -14.869169610252253], [128.985543247595899, -14.875990899314738], [129.621473423379598, -14.969783623924553], [129.409600050982988, -14.420669854391031], [129.888640578328591, -13.618703301653481], [130.339465773642928, -13.357375583553473], [130.183506300985982, -13.107520033422301], [130.617795037966971, -12.536392103732464], [131.223494500859999, -12.183648776908113], [131.73509118054946, -12.302452894747159], [132.575298293183096, -12.114040622611013], [132.557211541881031, -11.603012383676683], [131.824698114143644, -11.273781833545097], [132.357223748911395, -11.128519382372641], [133.019560581596409, -11.376411228076844], [133.550845981989028, -11.786515394745134], [134.393068475481982, -12.042365411022173], [134.678632440327021, -11.9411829565947], [135.298491245667975, -12.248606052299051], [135.882693312727611, -11.962266940969796], [136.258380975489445, -12.049341729381606], [136.492475213771627, -11.857208754120389], [136.951620314684988, -12.351958916882735], [136.685124953355739, -12.887223402562054], [136.305406528875096, -13.291229750219895], [135.961758254134111, -13.324509372615889], [136.077616815332533, -13.72427825282578], [135.783836297753226, -14.223989353088211], [135.4286641786112, -14.715432224183896], [135.500184360903177, -14.997740573794427], [136.295174595281367, -15.550264987859121], [137.065360142159477, -15.870762220933353], [137.580470819244795, -16.215082289294084], [138.303217401278971, -16.807604261952658], [138.58516401586337, -16.806622409739173], [139.108542922115475, -17.062679131745366], [139.260574985918197, -17.371600843986183], [140.215245396078274, -17.710804945550063], [140.875463495039241, -17.36906869880394], [141.071110467696258, -16.832047214426719], [141.274095493738798, -16.388870131091604], [141.398222284103781, -15.840531508042584], [141.702183058844611, -15.044921156476928], [141.563380161708665, -14.561333103089506], [141.635520461188094, -14.270394789286284], [141.519868605718955, -13.698078301653805], [141.650920038011009, -12.944687595270562], [141.842691278246207, -12.741547539931187], [141.68699018775078, -12.407614434461134], [141.928629185147543, -11.877465915578778], [142.118488397387978, -11.328042087451619], [142.14370649634634, -11.04273650476814], [142.51526004452495, -10.668185723516642], [142.797310011974048, -11.157354831591515], [142.866763136974271, -11.784706719614929], [143.11594689348567, -11.90562957117791], [143.158631626558758, -12.325655612846187], [143.522123651299864, -12.834358412327429], [143.597157830987669, -13.400422051652594], [143.561811151299935, -13.763655694232209]]]] } }, - { "type": "Feature", "properties": { "admin": "Austria", "name": "Austria", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[16.979666782304033, 48.123497015976298], [16.903754103267257, 47.714865627628321], [16.340584344150411, 47.712901923201215], [16.534267612380372, 47.496170966169103], [16.202298211337361, 46.852385972676949], [16.011663852612653, 46.683610744811688], [15.137091912504982, 46.658702704447016], [14.632471551174827, 46.431817328469535], [13.806475457421524, 46.509306138691201], [12.376485223040813, 46.767559109069843], [12.153088006243051, 47.115393174826437], [11.164827915093268, 46.941579494812721], [11.048555942436533, 46.751358547546324], [10.442701450246627, 46.893546250997424], [9.932448357796657, 46.920728054382948], [9.479969516649019, 47.102809963563367], [9.632931756232974, 47.347601223329974], [9.594226108446346, 47.525058091820256], [9.896068149463188, 47.58019684507569], [10.402083774465209, 47.302487697939156], [10.544504021861625, 47.566399237653762], [11.426414015354736, 47.523766181012967], [12.141357456112784, 47.703083401065761], [12.620759718484491, 47.672387600284395], [12.932626987365945, 47.467645575543983], [13.025851271220487, 47.637583523135824], [12.884102817443901, 48.289145819687903], [13.243357374736998, 48.41611481382904], [13.595945672264433, 48.877171942737135], [14.33889773932472, 48.555305284207193], [14.901447381254055, 48.964401760445817], [15.253415561593979, 49.039074205107575], [16.029647251050218, 48.733899034207916], [16.49928266771877, 48.785808010445095], [16.960288120194573, 48.596982326850593], [16.879982944412998, 48.470013332709463], [16.979666782304033, 48.123497015976298]]] } }, - { "type": "Feature", "properties": { "admin": "Azerbaijan", "name": "Azerbaijan", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[45.001987339056789, 39.740003567049591], [45.298144972521435, 39.471751207022422], [45.739978468616997, 39.473999131827149], [45.735379266143092, 39.319719143219785], [46.143623081248812, 38.74120148371221], [45.457721795438729, 38.874139105783108], [44.952688022650264, 39.33576467544642], [44.79398969908199, 39.713002631177027], [45.001987339056789, 39.740003567049591]]], [[[47.373315464066216, 41.219732367511249], [47.81566572448471, 41.151416124021338], [47.987283156126033, 41.405819200194223], [48.584352654826283, 41.808869533854669], [49.110263706260653, 41.282286688800518], [49.618914829309588, 40.572924302729966], [50.084829542853093, 40.526157131505776], [50.392821079312704, 40.256561184239096], [49.569202101444795, 40.176100979160701], [49.395259230350419, 39.39948171646224], [49.2232283872507, 39.04921885838791], [48.856532423707584, 38.815486355131775], [48.883249139202533, 38.320245266262638], [48.634375441284831, 38.270377509100925], [48.010744256386502, 38.794014797514528], [48.355529412637928, 39.288764960276886], [48.060095249225256, 39.582235419262439], [47.685079380083117, 39.508363959301185], [46.505719842317966, 38.770605373686251], [46.483498976432443, 39.464154771475528], [46.034534132680697, 39.628020738273044], [45.610012241402913, 39.899993801425175], [45.891907179555133, 40.21847565363997], [45.359174839058156, 40.561503811193482], [45.560351189970469, 40.812289537105947], [45.179495883979392, 40.98535390885143], [44.972480096218156, 41.248128567055623], [45.217426385281634, 41.411451931314041], [45.962600538930438, 41.123872585609789], [46.501637404166978, 41.064444688474104], [46.637908156120567, 41.181672675128219], [46.145431756378983, 41.72280243587263], [46.404950799348818, 41.860675157227341], [46.686070591016652, 41.827137152669899], [47.373315464066216, 41.219732367511249]]]] } }, - { "type": "Feature", "properties": { "admin": "Burundi", "name": "Burundi", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[29.339997592900342, -4.499983412294092], [29.276383904749046, -3.293907159034063], [29.02492638521678, -2.839257907730157], [29.632176141078585, -2.917857761246096], [29.938359002407935, -2.348486830254238], [30.469696079232978, -2.413857517103458], [30.527677036264457, -2.807631931167534], [30.743012729624692, -3.034284763199686], [30.752262811004943, -3.359329522315569], [30.505559523243559, -3.568567396665364], [30.116332635221166, -4.090137627787242], [29.753512404099919, -4.45238941815328], [29.339997592900342, -4.499983412294092]]] } }, - { "type": "Feature", "properties": { "admin": "Belgium", "name": "Belgium", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[3.314971144228536, 51.345780951536071], [4.047071160507527, 51.267258612668556], [4.973991326526913, 51.475023708698124], [5.60697594567, 51.037298488969768], [6.156658155958779, 50.803721015010574], [6.043073357781109, 50.128051662794221], [5.782417433300905, 50.090327867221205], [5.674051954784828, 49.52948354755749], [4.799221632515809, 49.985373033236371], [4.286022983425084, 49.90749664977254], [3.588184441755685, 50.378992418003563], [3.123251580425801, 50.780363267614561], [2.658422071960274, 50.796848049515731], [2.513573032246142, 51.148506171261815], [3.314971144228536, 51.345780951536071]]] } }, - { "type": "Feature", "properties": { "admin": "Benin", "name": "Benin", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[2.691701694356254, 6.258817246928628], [1.865240512712318, 6.14215770102973], [1.618950636409238, 6.832038072126236], [1.664477573258381, 9.128590399609378], [1.46304284018467, 9.334624335157086], [1.425060662450136, 9.825395412632998], [1.077795037448737, 10.175606594275022], [0.772335646171484, 10.470808213742357], [0.899563022474069, 10.997339382364258], [1.243469679376488, 11.11051076908346], [1.447178175471066, 11.547719224488857], [1.93598554851988, 11.641150214072551], [2.154473504249921, 11.940150051313337], [2.49016360841793, 12.233052069543671], [2.84864301922667, 12.235635891158266], [3.611180454125558, 11.660167141155966], [3.572216424177469, 11.327939357951516], [3.797112257511713, 10.734745591673104], [3.600070021182801, 10.332186184119406], [3.705438266625918, 10.063210354040207], [3.220351596702101, 9.4441525333997], [2.912308383810255, 9.13760793704432], [2.723792758809509, 8.506845404489708], [2.74906253420022, 7.870734361192886], [2.691701694356254, 6.258817246928628]]] } }, - { "type": "Feature", "properties": { "admin": "Burkina Faso", "name": "Burkina Faso", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.827496303712706, 9.642460842319775], [-3.511898972986272, 9.900326239456216], [-3.980449184576684, 9.862344061721698], [-4.330246954760383, 9.610834865757139], [-4.779883592131966, 9.821984768101741], [-4.954653286143098, 10.152713934769732], [-5.404341599946973, 10.370736802609144], [-5.470564947929004, 10.951269842976044], [-5.197842576508648, 11.375145778850136], [-5.220941941743119, 11.713858954307224], [-4.427166103523802, 12.542645575404292], [-4.280405035814879, 13.228443508349738], [-4.006390753587225, 13.472485459848112], [-3.52280270019986, 13.337661647998612], [-3.103706834312759, 13.54126679122859], [-2.967694464520576, 13.798150336151506], [-2.191824510090384, 14.246417548067352], [-2.001035122068771, 14.559008287000887], [-1.066363491205663, 14.973815009007764], [-0.515854458000348, 15.116157741755725], [-0.26625729003058, 14.924308986872147], [0.374892205414682, 14.928908189346128], [0.295646396495101, 14.444234930880651], [0.429927605805517, 13.988733018443922], [0.993045688490071, 13.335749620003821], [1.024103224297477, 12.851825669806573], [2.177107781593775, 12.625017808477532], [2.154473504249921, 11.940150051313337], [1.93598554851988, 11.641150214072551], [1.447178175471066, 11.547719224488857], [1.243469679376488, 11.11051076908346], [0.899563022474069, 10.997339382364258], [0.023802524423701, 11.018681748900802], [-0.438701544588582, 11.09834096927872], [-0.761575893548183, 10.936929633015053], [-1.203357713211431, 11.009819240762736], [-2.94040930827046, 10.962690334512557], [-2.963896246747111, 10.395334784380081], [-2.827496303712706, 9.642460842319775]]] } }, - { "type": "Feature", "properties": { "admin": "Bangladesh", "name": "Bangladesh", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[92.672720981825549, 22.041238918541247], [92.652257114637976, 21.324047552978481], [92.30323449093865, 21.475485337809815], [92.368553501355606, 20.670883287025344], [92.082886183646124, 21.192195135985767], [92.025215285208361, 21.701569729086764], [91.834890985077408, 22.182935695885561], [91.417087029997646, 22.765019029221218], [90.496006300827247, 22.805016587815125], [90.586956821660948, 22.392793687422863], [90.272970819055544, 21.836367702720107], [89.847467075564268, 22.039146023033421], [89.70204959509492, 21.857115790285299], [89.41886274613546, 21.966178900637296], [89.031961297566198, 22.055708319582973], [88.876311883503064, 22.879146429937826], [88.529769728553759, 23.631141872649163], [88.699940220090895, 24.233714911388557], [88.084422235062405, 24.501657212821918], [88.30637251175601, 24.866079413344199], [88.931553989623069, 25.238692328384769], [88.209789259802477, 25.768065700782707], [88.56304935094974, 26.446525580342716], [89.355094028687276, 26.014407253518065], [89.832480910199592, 25.965082098895476], [89.920692580121838, 25.269749864192171], [90.872210727912105, 25.13260061288954], [91.799595981822065, 25.14743174895731], [92.376201613334786, 24.976692816664961], [91.915092807994398, 24.130413723237108], [91.467729933643668, 24.072639471934789], [91.158963250699713, 23.503526923104381], [91.706475050832083, 22.985263983649183], [91.869927606171302, 23.62434642180278], [92.146034783906799, 23.62749868417259], [92.672720981825549, 22.041238918541247]]] } }, - { "type": "Feature", "properties": { "admin": "Bulgaria", "name": "Bulgaria", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.657149692482985, 44.234923000661276], [22.94483239105184, 43.823785305347123], [23.332302280376322, 43.897010809904707], [24.100679152124169, 43.741051337247846], [25.569271681426923, 43.688444729174712], [26.065158725699739, 43.943493760751259], [27.242399529740904, 44.175986029632398], [27.970107049275068, 43.812468166675202], [28.55808149589199, 43.707461656258118], [28.039095086384712, 43.293171698574177], [27.673897739378042, 42.577892361006214], [27.996720411905383, 42.007358710287775], [27.135739373490473, 42.141484890301335], [26.117041863720793, 41.826904608724554], [26.106138136507205, 41.328898830727766], [25.197201368925441, 41.234485988930523], [24.492644891058031, 41.583896185872028], [23.692073601992345, 41.309080918943842], [22.952377150166445, 41.337993882811141], [22.881373732197424, 41.999297186850242], [22.380525750424585, 42.320259507815081], [22.545011834409614, 42.461362006188025], [22.436594679461273, 42.580321153323929], [22.604801466571324, 42.898518785161137], [22.986018507588479, 43.211161200526959], [22.500156691180276, 43.642814439460977], [22.410446404721593, 44.008063462899948], [22.657149692482985, 44.234923000661276]]] } }, - { "type": "Feature", "properties": { "admin": "The Bahamas", "name": "Bahamas", "continent": "North America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-77.53466, 23.75975], [-77.78, 23.71], [-78.03405, 24.28615], [-78.40848, 24.57564], [-78.19087, 25.2103], [-77.89, 25.17], [-77.54, 24.34], [-77.53466, 23.75975]]], [[[-77.82, 26.58], [-78.91, 26.42], [-78.98, 26.79], [-78.51, 26.87], [-77.85, 26.84], [-77.82, 26.58]]], [[[-77.0, 26.59], [-77.17255, 25.87918], [-77.35641, 26.00735], [-77.34, 26.53], [-77.78802, 26.92516], [-77.79, 27.04], [-77.0, 26.59]]]] } }, - { "type": "Feature", "properties": { "admin": "Bosnia and Herzegovina", "name": "Bosnia and Herz.", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[19.005486281010118, 44.860233669609144], [19.36803, 44.863], [19.11761, 44.42307], [19.59976, 44.03847], [19.454, 43.568100000000115], [19.21852, 43.52384], [19.03165, 43.43253], [18.70648, 43.20011], [18.56, 42.65], [17.674921502358981, 43.028562527023603], [17.297373488034449, 43.446340643887353], [16.916156447017325, 43.667722479825663], [16.456442905348862, 44.041239732431265], [16.239660271884528, 44.351143296885695], [15.750026075918978, 44.81871165626255], [15.959367303133373, 45.233776760430935], [16.318156772535868, 45.004126695325901], [16.534939406000202, 45.211607570977705], [17.00214603035101, 45.233776760430935], [17.861783481526398, 45.067740383477137], [18.553214145591646, 45.08158966733145], [19.005486281010118, 44.860233669609144]]] } }, - { "type": "Feature", "properties": { "admin": "Belarus", "name": "Belarus", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[23.484127638449841, 53.912497667041123], [24.45068362803703, 53.905702216194747], [25.536353794056989, 54.282423407602515], [25.768432651479792, 54.846962592175082], [26.588279249790386, 55.167175604871659], [26.494331495883749, 55.61510691997762], [27.102459751094525, 55.783313707087672], [28.17670942557799, 56.169129950578807], [29.2295133806603, 55.918344224666356], [29.371571893030669, 55.67009064393617], [29.896294386522353, 55.789463202530406], [30.87390913262, 55.550976467503396], [30.971835971813132, 55.081547756564028], [30.75753380709871, 54.811770941784303], [31.384472283663733, 54.157056382862422], [31.791424187962232, 53.974638576872117], [31.731272820774503, 53.794029446012011], [32.405598585751157, 53.618045355842028], [32.693643019346034, 53.351420803432106], [32.304519484188226, 53.132726141972903], [31.497643670382924, 53.167426866256889], [31.30520063652801, 53.073995876673195], [31.540018344862254, 52.742052313846344], [31.78599816257158, 52.10167796488544], [30.927549269338975, 52.042353420614383], [30.619454380014837, 51.822806098022362], [30.55511722181145, 51.319503485715643], [30.157363722460889, 51.416138414101454], [29.254938185347921, 51.368234361366881], [28.992835320763522, 51.602044379271462], [28.617612745892242, 51.427713934934836], [28.241615024536564, 51.572227077839059], [27.454066196408426, 51.59230337178446], [26.337958611768549, 51.832288723347915], [25.327787713327005, 51.910656032918538], [24.553106316839511, 51.888461005249177], [24.005077752384206, 51.617443956094448], [23.52707075368437, 51.578454087930233], [23.508002150168689, 52.023646552124717], [23.19949384938618, 52.486977444053664], [23.799198846133375, 52.691099351606553], [23.804934930117774, 53.08973135030606], [23.527535841574995, 53.47012156840654], [23.484127638449841, 53.912497667041123]]] } }, - { "type": "Feature", "properties": { "admin": "Belize", "name": "Belize", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-89.143080410503302, 17.808318996649316], [-89.150909389995519, 17.955467637600414], [-89.029857347351808, 18.001511338772485], [-88.848343878926585, 17.883198147040229], [-88.490122850279334, 18.486830552641603], [-88.300031094093669, 18.499982204659897], [-88.296336229184803, 18.353272813383263], [-88.106812913754368, 18.348673610909284], [-88.123478563168476, 18.076674709541003], [-88.285354987322776, 17.644142971258031], [-88.197866787452625, 17.489475409408453], [-88.302640753924422, 17.13169363043566], [-88.239517991879893, 17.036066392479551], [-88.355428229510551, 16.530774237529624], [-88.551824510435821, 16.265467434143144], [-88.732433641295927, 16.233634751851351], [-88.930612759135244, 15.887273464415072], [-89.229121670269265, 15.886937567605166], [-89.15080603713092, 17.015576687075832], [-89.143080410503302, 17.808318996649316]]] } }, - { "type": "Feature", "properties": { "admin": "Bolivia", "name": "Bolivia", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-62.84646847192154, -22.034985446869442], [-63.986838141522462, -21.993644301035946], [-64.377021043542243, -22.798091322523533], [-64.964892137294598, -22.07586150481232], [-66.273339402924833, -21.832310479420713], [-67.10667355006359, -22.735924574476414], [-67.82817989772272, -22.872918796482171], [-68.219913092711266, -21.494346612231858], [-68.757167121033731, -20.372657972904459], [-68.442225104430904, -19.405068454671426], [-68.966818406841853, -18.9816834449041], [-69.100246955019472, -18.260125420812674], [-69.590423753524036, -17.580011895419329], [-68.959635382753291, -16.500697930571267], [-69.389764166934697, -15.66012908291165], [-69.160346645774936, -15.323973890853015], [-69.339534674747, -14.953195489158828], [-68.94888668483658, -14.45363941819328], [-68.929223802349526, -13.602683607643007], [-68.880079515239956, -12.89972909917665], [-68.665079718689611, -12.561300144097171], [-69.52967810736493, -10.951734307502193], [-68.786157599549469, -11.036380303596276], [-68.27125362819325, -11.014521172736817], [-68.048192308205373, -10.712059014532484], [-67.173801235610725, -10.30681243249961], [-66.646908331962791, -9.931331475466861], [-65.33843522811641, -9.76198780684639], [-65.444837002205375, -10.51145110437543], [-65.321898769783004, -10.895872084194675], [-65.402281460213018, -11.566270440317151], [-64.31635291203159, -12.461978041232191], [-63.196498786050562, -12.627032565972433], [-62.803060268796372, -13.000653171442682], [-62.127080857986371, -13.19878061284972], [-61.713204311760769, -13.489202162330049], [-61.084121263255646, -13.479383640194595], [-60.503304002511122, -13.775954685117656], [-60.459198167550014, -14.354007256734551], [-60.264326341377355, -14.645979099183638], [-60.251148851142922, -15.077218926659318], [-60.542965664295131, -15.093910414289592], [-60.158389655179022, -16.258283786690082], [-58.241219855366673, -16.299573256091289], [-58.388058437724027, -16.877109063385273], [-58.280804002502244, -17.271710300366014], [-57.734558274960989, -17.552468357007765], [-57.498371141170971, -18.174187513911289], [-57.676008877174297, -18.961839694904025], [-57.949997321185819, -19.400004164306814], [-57.853801642474494, -19.969995212486186], [-58.166392381408038, -20.176700941653674], [-58.183471442280492, -19.868399346600359], [-59.11504248720609, -19.356906019775398], [-60.043564622626477, -19.342746677327419], [-61.786326463453761, -19.633736667562957], [-62.265961269770784, -20.513734633061272], [-62.291179368729203, -21.051634616787389], [-62.685057135657871, -22.24902922942238], [-62.84646847192154, -22.034985446869442]]] } }, - { "type": "Feature", "properties": { "admin": "Brazil", "name": "Brazil", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-57.625133429582945, -30.216294854454258], [-56.290899624239067, -28.852760512000884], [-55.162286342984558, -27.881915378533456], [-54.49072526713551, -27.474756768505785], [-53.648735317587885, -26.923472588816086], [-53.628348965048737, -26.124865004177465], [-54.130049607954376, -25.547639255477247], [-54.625290696823562, -25.739255466415507], [-54.428946092330577, -25.162184747012162], [-54.293476325077435, -24.570799655863958], [-54.292959560754511, -24.021014092710722], [-54.652834235235119, -23.839578138933955], [-55.027901780809543, -24.001273695575225], [-55.400747239795407, -23.956935316668797], [-55.517639329639621, -23.57199757252663], [-55.61068274598113, -22.655619398694839], [-55.797958136606894, -22.356929620047815], [-56.473317430229379, -22.086300144135279], [-56.881509568902885, -22.282153822521476], [-57.937155727761287, -22.090175876557169], [-57.870673997617786, -20.732687676681948], [-58.166392381408038, -20.176700941653674], [-57.853801642474494, -19.969995212486186], [-57.949997321185819, -19.400004164306814], [-57.676008877174297, -18.961839694904025], [-57.498371141170971, -18.174187513911289], [-57.734558274960989, -17.552468357007765], [-58.280804002502244, -17.271710300366014], [-58.388058437724027, -16.877109063385273], [-58.241219855366673, -16.299573256091289], [-60.158389655179022, -16.258283786690082], [-60.542965664295131, -15.093910414289592], [-60.251148851142922, -15.077218926659318], [-60.264326341377355, -14.645979099183638], [-60.459198167550014, -14.354007256734551], [-60.503304002511122, -13.775954685117656], [-61.084121263255646, -13.479383640194595], [-61.713204311760769, -13.489202162330049], [-62.127080857986371, -13.19878061284972], [-62.803060268796372, -13.000653171442682], [-63.196498786050562, -12.627032565972433], [-64.31635291203159, -12.461978041232191], [-65.402281460213018, -11.566270440317151], [-65.321898769783004, -10.895872084194675], [-65.444837002205375, -10.51145110437543], [-65.33843522811641, -9.76198780684639], [-66.646908331962791, -9.931331475466861], [-67.173801235610725, -10.30681243249961], [-68.048192308205373, -10.712059014532484], [-68.27125362819325, -11.014521172736817], [-68.786157599549469, -11.036380303596276], [-69.52967810736493, -10.951734307502193], [-70.093752204046879, -11.123971856331011], [-70.548685675728393, -11.009146823778462], [-70.481893886991159, -9.490118096558842], [-71.302412278921523, -10.079436130415372], [-72.184890713169821, -10.05359791426943], [-72.563033006465631, -9.520193780152715], [-73.226713426390148, -9.462212823121233], [-73.015382656532537, -9.03283334720806], [-73.571059332967053, -8.424446709835832], [-73.987235480429646, -7.523829847853063], [-73.723401455363486, -7.340998630404412], [-73.724486660441627, -6.918595472850638], [-73.120027431923575, -6.629930922068238], [-73.219711269814596, -6.089188734566076], [-72.964507208941185, -5.741251315944892], [-72.891927659787243, -5.274561455916979], [-71.748405727816532, -4.59398284263301], [-70.928843349883564, -4.401591485210367], [-70.79476884630229, -4.251264743673302], [-69.893635219996611, -4.298186944194326], [-69.444101935489599, -1.556287123219817], [-69.420485805932216, -1.122618503426409], [-69.577065395776586, -0.549991957200163], [-70.02065589057004, -0.185156345219539], [-70.015565761989293, 0.541414292804205], [-69.452396002872447, 0.706158758950693], [-69.252434048119042, 0.602650865070075], [-69.218637661400166, 0.985676581217433], [-69.804596727157701, 1.089081122233466], [-69.816973232691609, 1.714805202639624], [-67.868565029558823, 1.692455145673392], [-67.537810024674684, 2.037162787276329], [-67.25999752467358, 1.719998684084956], [-67.065048183852483, 1.130112209473225], [-66.876325853122566, 1.253360500489336], [-66.325765143484944, 0.724452215982012], [-65.548267381437554, 0.78925446207603], [-65.354713304288353, 1.0952822941085], [-64.611011928959854, 1.328730576987041], [-64.199305792890499, 1.49285492594602], [-64.083085496666072, 1.91636912679408], [-63.368788011311644, 2.200899562993129], [-63.422867397705105, 2.411067613124174], [-64.269999152265783, 2.497005520025566], [-64.408827887617903, 3.126786200366623], [-64.368494432214092, 3.797210394705246], [-64.816064012294007, 4.056445217297422], [-64.628659430587533, 4.14848094320925], [-63.888342861574145, 4.020530096854571], [-63.093197597899092, 3.770571193858784], [-62.804533047116692, 4.006965033377951], [-62.085429653559125, 4.162123521334308], [-60.966893276601517, 4.536467596856638], [-60.601179165271922, 4.918098049332129], [-60.733574184803707, 5.2002772078619], [-60.213683437731319, 5.2444863956876], [-59.980958624904865, 5.014061184098138], [-60.111002366767373, 4.574966538914082], [-59.767405768458701, 4.423502915866606], [-59.538039923731219, 3.958802598481937], [-59.815413174057852, 3.606498521332085], [-59.974524909084543, 2.755232652188055], [-59.718545701726732, 2.249630438644359], [-59.646043667221242, 1.786893825686789], [-59.030861579002639, 1.317697658692722], [-58.540012986878288, 1.26808828369252], [-58.429477098205957, 1.46394196207872], [-58.113449876525003, 1.507195135907025], [-57.660971035377358, 1.682584947105638], [-57.33582292339689, 1.948537705895759], [-56.782704230360814, 1.863710842288653], [-56.53938574891454, 1.89952260986692], [-55.995698004771739, 1.817667141116601], [-55.905600145070871, 2.021995754398659], [-56.073341844290283, 2.220794989425499], [-55.973322109589361, 2.510363877773016], [-55.569755011605984, 2.42150625244713], [-55.097587449755125, 2.523748073736612], [-54.524754197799709, 2.311848863123785], [-54.088062506717243, 2.105556545414629], [-53.778520677288903, 2.376702785650081], [-53.554839240113537, 2.33489655192595], [-53.4184651352953, 2.05338918701598], [-52.939657151894949, 2.124857692875636], [-52.556424730018414, 2.504705308437053], [-52.249337531123942, 3.241094468596244], [-51.657797410678882, 4.156232408053028], [-51.317146369010842, 4.203490505383953], [-51.069771287629649, 3.65039765056403], [-50.508875291533641, 1.901563828942456], [-49.974075893745045, 1.736483465986069], [-49.947100796088705, 1.046189683431223], [-50.699251268096901, 0.222984117021681], [-50.388210822132123, -0.078444512536819], [-48.620566779156313, -0.235489190271821], [-48.584496629416577, -1.237805271005001], [-47.824956427590621, -0.5816179337628], [-46.566583624851219, -0.941027520352776], [-44.9057030909904, -1.551739597178134], [-44.417619187993658, -2.137750339367975], [-44.581588507655773, -2.691308282078523], [-43.418791266440188, -2.383110039889793], [-41.47265682632824, -2.912018324397116], [-39.97866533055403, -2.87305429444904], [-38.50038347019656, -3.700652357603394], [-37.223252122535193, -4.820945733258915], [-36.45293738457638, -5.109403578312153], [-35.597795783010454, -5.149504489770648], [-35.235388963347553, -5.464937432480245], [-34.896029832486825, -6.738193047719709], [-34.729993455533027, -7.343220716992965], [-35.128212042774216, -8.996401462442284], [-35.636966518687707, -9.649281508017811], [-37.046518724096991, -11.040721123908799], [-37.683611619607355, -12.17119475672582], [-38.423876512188436, -13.038118584854285], [-38.673887091616507, -13.057652276260615], [-38.953275722802537, -13.79336964280002], [-38.882298143049645, -15.667053724838764], [-39.161092495264306, -17.208406670808468], [-39.267339240056394, -17.867746270420479], [-39.583521491034219, -18.262295830968934], [-39.76082333022763, -19.599113457927402], [-40.774740770010332, -20.90451181405242], [-40.944756232250597, -21.937316989837807], [-41.75416419123821, -22.370675551037454], [-41.988284267736546, -22.970070489190888], [-43.074703742024738, -22.967693373305462], [-44.647811855637798, -23.351959323827838], [-45.35213578955991, -23.796841729428579], [-46.472093268405523, -24.088968601174539], [-47.648972337420645, -24.885199069927715], [-48.495458136577689, -25.877024834905647], [-48.641004808127725, -26.623697605090928], [-48.474735887228647, -27.175911960561887], [-48.661520351747612, -28.186134535435713], [-48.888457404157393, -28.674115085567877], [-49.587329474472668, -29.224469089476333], [-50.696874152211478, -30.984465020472953], [-51.576226162306149, -31.777698256153204], [-52.256081305538032, -32.245369968394662], [-52.71209998229768, -33.196578057591175], [-53.373661668498229, -33.768377780900757], [-53.650543992718084, -33.202004082981823], [-53.209588995971529, -32.727666110974717], [-53.787951626182185, -32.047242526987617], [-54.572451544805105, -31.494511407193745], [-55.601510179249331, -30.853878676071385], [-55.97324459494093, -30.883075860316296], [-56.976025763564721, -30.109686374636119], [-57.625133429582945, -30.216294854454258]]] } }, - { "type": "Feature", "properties": { "admin": "Brunei", "name": "Brunei", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[114.204016554828343, 4.525873928236805], [114.599961379048707, 4.900011298029965], [115.450710483869798, 5.447729803891532], [115.405700311343566, 4.955227565933837], [115.347460972150643, 4.316636053887009], [114.869557326315373, 4.348313706881924], [114.659595981913498, 4.007636826997753], [114.204016554828343, 4.525873928236805]]] } }, - { "type": "Feature", "properties": { "admin": "Bhutan", "name": "Bhutan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[91.69665652869665, 27.771741848251661], [92.10371178585973, 27.4526140406332], [92.033483514375078, 26.838310451763554], [91.217512648486405, 26.808648179628019], [90.37327477413406, 26.875724188742872], [89.744527622438838, 26.71940298105995], [88.835642531289366, 27.098966376243755], [88.814248488320544, 27.299315904239361], [89.475810174521101, 28.04275889740639], [90.015828891971154, 28.296438503527209], [90.730513950567769, 28.064953925075748], [91.258853794319904, 28.040614325466287], [91.69665652869665, 27.771741848251661]]] } }, - { "type": "Feature", "properties": { "admin": "Botswana", "name": "Botswana", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[25.649163445750155, -18.536025892818987], [25.850391473094724, -18.714412937090533], [26.164790887158478, -19.293085625894935], [27.296504754350501, -20.391519870690995], [27.724747348753247, -20.499058526290387], [27.727227817503252, -20.851801853114711], [28.02137007010861, -21.485975030200578], [28.794656202924209, -21.639454034107445], [29.432188348109033, -22.091312758067584], [28.017235955525244, -22.827753594659072], [27.119409620886238, -23.574323011979772], [26.78640669119741, -24.240690606383478], [26.485753208123292, -24.616326592713097], [25.941652052522151, -24.696373386333214], [25.765848829865206, -25.174845472923671], [25.664666375437712, -25.486816094669706], [25.025170525825782, -25.719670098576891], [24.211266717228792, -25.670215752873567], [23.733569777122703, -25.39012948985161], [23.312096795350179, -25.268689873965712], [22.824271274514896, -25.500458672794768], [22.579531691180584, -25.979447523708142], [22.105968865657864, -26.28025603607913], [21.60589603036939, -26.726533705351748], [20.889609002371731, -26.828542982695907], [20.666470167735437, -26.477453301704916], [20.758609246511831, -25.868136488551446], [20.165725538827186, -24.917961928000768], [19.895767856534427, -24.767790215760588], [19.895457797940672, -21.849156996347865], [20.881134067475866, -21.814327080983144], [20.910641310314531, -18.252218926672018], [21.655040317478971, -18.219146010005222], [23.196858351339298, -17.869038181227783], [23.579005568137713, -18.281261081620055], [24.217364536239209, -17.889347019118485], [24.520705193792534, -17.887124932529932], [25.084443393664564, -17.661815687737366], [25.264225701608005, -17.736539808831413], [25.649163445750155, -18.536025892818987]]] } }, - { "type": "Feature", "properties": { "admin": "Central African Republic", "name": "Central African Rep.", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[15.279460483469107, 7.421924546737968], [16.106231723706767, 7.497087917506504], [16.290561557691884, 7.754307359239304], [16.456184523187343, 7.734773667832966], [16.705988396886251, 7.508327541529978], [17.964929640380884, 7.890914008002865], [18.389554884523218, 8.281303615751822], [18.911021762780504, 8.630894680206351], [18.81200971850927, 8.982914536978596], [19.094008009526018, 9.074846910025837], [20.059685499764267, 9.01270600019485], [21.00086836109616, 9.475985215691507], [21.723821648859452, 10.567055568885973], [22.231129184668784, 10.971888739460507], [22.864165480244218, 11.142395127807543], [22.977543572692603, 10.714462591998538], [23.554304233502187, 10.089255275915306], [23.557249790142826, 9.681218166538683], [23.394779087017181, 9.26506785729222], [23.459012892355979, 8.954285793488891], [23.805813429466745, 8.666318874542425], [24.567369012152078, 8.229187933785466], [25.114932488716786, 7.825104071479172], [25.12413089366472, 7.500085150579436], [25.796647983511171, 6.979315904158069], [26.21341840994511, 6.546603298362071], [26.465909458123232, 5.94671743410187], [27.213409051225163, 5.550953477394557], [27.374226108517483, 5.233944403500059], [27.044065382604703, 5.127852688004835], [26.402760857862535, 5.150874538590869], [25.650455356557465, 5.256087754737123], [25.278798455514302, 5.170408229997191], [25.128833449003274, 4.927244777847789], [24.805028924262409, 4.897246608902349], [24.41053104014625, 5.108784084489129], [23.297213982850135, 4.609693101414221], [22.841479526468103, 4.710126247573483], [22.704123569436284, 4.633050848810156], [22.405123732195531, 4.02916006104732], [21.659122755630019, 4.224341945813719], [20.927591180106273, 4.322785549329736], [20.290679152108932, 4.691677761245287], [19.467783644293146, 5.031527818212779], [18.932312452884755, 4.709506130385973], [18.542982211997778, 4.201785183118317], [18.453065219809925, 3.504385891123348], [17.809900343505259, 3.560196437998569], [17.133042433346297, 3.728196519379451], [16.537058139724135, 3.198254706226278], [16.01285241055535, 2.267639675298084], [15.907380812247649, 2.557389431158612], [15.862732374747479, 3.013537298998982], [15.405395948964379, 3.335300604664339], [15.036219516671249, 3.851367295747123], [14.950953403389658, 4.21038930909492], [14.478372430080466, 4.732605495620446], [14.558935988023501, 5.03059764243153], [14.459407179429345, 5.451760565610299], [14.536560092841111, 6.22695872642069], [14.776545444404572, 6.408498033062044], [15.279460483469107, 7.421924546737968]]] } }, - { "type": "Feature", "properties": { "admin": "Canada", "name": "Canada", "continent": "North America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-63.6645, 46.55001], [-62.9393, 46.41587], [-62.01208, 46.44314], [-62.50391, 46.03339], [-62.87433, 45.96818], [-64.1428, 46.39265], [-64.39261, 46.72747], [-64.01486, 47.03601], [-63.6645, 46.55001]]], [[[-61.806305, 49.10506], [-62.29318, 49.08717], [-63.58926, 49.40069], [-64.51912, 49.87304], [-64.17322, 49.95718], [-62.85829, 49.70641], [-61.835585, 49.28855], [-61.806305, 49.10506]]], [[[-123.510001587551116, 48.51001089130343], [-124.012890788399474, 48.370846259141402], [-125.655012777338342, 48.825004584338494], [-125.954994466792726, 49.179995835967638], [-126.850004435871853, 49.530000311880421], [-127.029993449544392, 49.814995835970073], [-128.059336304366212, 49.994959011426594], [-128.444584107102145, 50.53913768167611], [-128.358413656255408, 50.770648098343678], [-127.308581096029883, 50.552573554071948], [-126.695000977212302, 50.40090322529538], [-125.755006673823161, 50.295018215529367], [-125.415001587558791, 49.950000515332604], [-124.920768189119315, 49.47527497008339], [-123.92250870832099, 49.062483628935794], [-123.510001587551116, 48.51001089130343]]], [[[-56.134035814017111, 50.687009792679298], [-56.795881720595261, 49.812308661490945], [-56.143105027884289, 50.15011749938283], [-55.471492275602934, 49.935815334668447], [-55.822401089080913, 49.587128607779093], [-54.93514258484565, 49.313010972686833], [-54.473775397343772, 49.556691189159167], [-53.47654944519131, 49.24913890237405], [-53.786013759971233, 48.516780503933617], [-53.086133999226249, 48.687803656603528], [-52.95864824076223, 48.157164211614472], [-52.648098720904173, 47.53554840757549], [-53.069158291218336, 46.655498765644936], [-53.521456264853029, 46.618291734394823], [-54.178935512902527, 46.807065741556997], [-53.961868659060471, 47.625207017601909], [-54.240482143762122, 47.752279364607617], [-55.400773078011483, 46.88499380145312], [-55.997480841685835, 46.919720363953289], [-55.291219041552765, 47.389562486350982], [-56.250798712780508, 47.632545070987383], [-57.325229254777085, 47.572807115257987], [-59.26601518414676, 47.603347886742498], [-59.41949418805369, 47.89945384377485], [-58.796586473207398, 48.251525376979473], [-59.23162451845652, 48.523188381537793], [-58.391804979065213, 49.125580552764163], [-57.358689744686025, 50.718274034215845], [-56.738650071831998, 51.287438259478527], [-55.87097693543528, 51.632094224649187], [-55.406974249886602, 51.588272610065722], [-55.600218268442077, 51.317074693397913], [-56.134035814017111, 50.687009792679298]]], [[[-133.180004041711669, 54.169975490935308], [-132.710007884431292, 54.040009315423518], [-131.749989584003259, 54.120004380909208], [-132.049480347350965, 52.984621487024519], [-131.179042521826574, 52.18043284769827], [-131.577829549822894, 52.182370713909236], [-132.180428426778519, 52.639707139692391], [-132.549992432313843, 53.100014960332132], [-133.054611178755493, 53.411468817755363], [-133.239664482792676, 53.851080227262386], [-133.180004041711669, 54.169975490935308]]], [[[-79.26582, 62.158675], [-79.65752, 61.63308], [-80.09956, 61.7181], [-80.36215, 62.01649], [-80.315395, 62.085565], [-79.92939, 62.3856], [-79.52002, 62.36371], [-79.26582, 62.158675]]], [[[-81.89825, 62.7108], [-83.06857, 62.15922], [-83.77462, 62.18231], [-83.99367, 62.4528], [-83.25048, 62.91409], [-81.87699, 62.90458], [-81.89825, 62.7108]]], [[[-85.161307949549851, 65.657284654392797], [-84.975763719405933, 65.217518215588981], [-84.464012010419495, 65.371772365980163], [-83.88262630891974, 65.109617824963536], [-82.78757687043877, 64.766693020274673], [-81.642013719392509, 64.455135809986942], [-81.553440314444245, 63.979609280037131], [-80.817361212878851, 64.057485663500998], [-80.103451300766594, 63.725981350348597], [-80.991019863595653, 63.41124603947496], [-82.547178107416997, 63.651722317145229], [-83.108797573565042, 64.101875718839707], [-84.100416632813847, 63.569711819098004], [-85.523404710618991, 63.052379055424076], [-85.866768764982339, 63.637252916103542], [-87.221983201836721, 63.541238104905212], [-86.352759772471259, 64.035833238370699], [-86.224886440765133, 64.822916978608262], [-85.883847825854858, 65.738778388117041], [-85.161307949549851, 65.657284654392797]]], [[[-75.86588, 67.14886], [-76.98687, 67.09873], [-77.2364, 67.58809], [-76.81166, 68.14856], [-75.89521, 68.28721], [-75.1145, 68.01036], [-75.10333, 67.58202], [-75.21597, 67.44425], [-75.86588, 67.14886]]], [[[-95.647681203800488, 69.107690358321761], [-96.269521203800579, 68.757040358321731], [-97.61740120380054, 69.060030358321782], [-98.431801203800504, 68.950700358321768], [-99.797401203800504, 69.400030358321786], [-98.917401203800523, 69.710030358321788], [-98.218261203800466, 70.143540358321744], [-97.157401203800532, 69.860030358321794], [-96.557401203800524, 69.680030358321758], [-96.257401203800498, 69.490030358321761], [-95.647681203800488, 69.107690358321761]]], [[[-90.5471, 69.49766], [-90.55151, 68.47499], [-89.21515, 69.25873], [-88.01966, 68.61508], [-88.31749, 67.87338], [-87.35017, 67.19872], [-86.30607, 67.92146], [-85.57664, 68.78456], [-85.52197, 69.88211], [-84.10081, 69.80539], [-82.62258, 69.65826], [-81.28043, 69.16202], [-81.2202, 68.66567], [-81.96436, 68.13253], [-81.25928, 67.59716], [-81.38653, 67.11078], [-83.34456, 66.41154], [-84.73542, 66.2573], [-85.76943, 66.55833], [-86.0676, 66.05625], [-87.03143, 65.21297], [-87.32324, 64.77563], [-88.48296, 64.09897], [-89.91444, 64.03273], [-90.70398, 63.61017], [-90.77004, 62.96021], [-91.93342, 62.83508], [-93.15698, 62.02469], [-94.24153, 60.89865], [-94.62931, 60.11021], [-94.6846, 58.94882], [-93.21502, 58.78212], [-92.76462, 57.84571], [-92.297029999999893, 57.08709], [-90.89769, 57.28468], [-89.03953, 56.85172], [-88.03978, 56.47162], [-87.32421, 55.99914], [-86.07121, 55.72383], [-85.01181, 55.3026], [-83.36055, 55.24489], [-82.27285, 55.14832], [-82.4362, 54.28227], [-82.12502, 53.27703], [-81.40075, 52.15788], [-79.91289, 51.20842], [-79.14301, 51.53393], [-78.60191, 52.56208], [-79.12421, 54.14145], [-79.82958, 54.66772], [-78.22874, 55.13645], [-77.0956, 55.83741], [-76.54137, 56.53423], [-76.62319, 57.20263], [-77.30226, 58.05209], [-78.51688, 58.80458], [-77.33676, 59.85261], [-77.77272, 60.75788], [-78.10687, 62.31964], [-77.41067, 62.55053], [-75.69621, 62.2784], [-74.6682, 62.18111], [-73.83988, 62.4438], [-72.90853, 62.10507], [-71.67708, 61.52535], [-71.37369, 61.13717], [-69.59042, 61.06141], [-69.62033, 60.22125], [-69.2879, 58.95736], [-68.37455, 58.80106], [-67.64976, 58.21206], [-66.20178, 58.76731], [-65.24517, 59.87071], [-64.58352, 60.33558], [-63.80475, 59.4426], [-62.50236, 58.16708], [-61.39655, 56.96745], [-61.79866, 56.33945], [-60.46853, 55.77548], [-59.56962, 55.20407], [-57.97508, 54.94549], [-57.3332, 54.6265], [-56.93689, 53.78032], [-56.15811, 53.64749], [-55.75632, 53.27036], [-55.68338, 52.14664], [-56.40916, 51.7707], [-57.12691, 51.41972], [-58.77482, 51.0643], [-60.03309, 50.24277], [-61.72366, 50.08046], [-63.86251, 50.29099], [-65.36331, 50.2982], [-66.39905, 50.22897], [-67.23631, 49.51156], [-68.51114, 49.06836], [-69.95362, 47.74488], [-71.10458, 46.82171], [-70.25522, 46.98606], [-68.65, 48.3], [-66.55243, 49.1331], [-65.05626, 49.23278], [-64.17099, 48.74248], [-65.11545, 48.07085], [-64.79854, 46.99297], [-64.47219, 46.23849], [-63.17329, 45.73902], [-61.52072, 45.88377], [-60.51815, 47.00793], [-60.4486, 46.28264], [-59.80287, 45.9204], [-61.03988, 45.26525], [-63.25471, 44.67014], [-64.24656, 44.26553], [-65.36406, 43.54523], [-66.1234, 43.61867], [-66.16173, 44.46512], [-64.42549, 45.29204], [-66.02605, 45.25931], [-67.13741, 45.13753], [-67.79134, 45.70281], [-67.79046, 47.06636], [-68.23444, 47.35486], [-68.905, 47.185], [-69.237216, 47.447781], [-69.99997, 46.69307], [-70.305, 45.915], [-70.66, 45.46], [-71.08482, 45.30524], [-71.405, 45.255], [-71.50506, 45.0082], [-73.34783, 45.00738], [-74.867, 45.00048], [-75.31821, 44.81645], [-76.375, 44.09631], [-76.5, 44.018458893758712], [-76.820034145805565, 43.628784288093748], [-77.737885097957687, 43.62905558936329], [-78.720279914042365, 43.625089423184868], [-79.171673550111862, 43.466339423184216], [-79.01, 43.27], [-78.92, 42.965], [-78.939362148743683, 42.863611355148031], [-80.247447679347928, 42.366199856122584], [-81.277746548167144, 42.209025987306845], [-82.439277716791608, 41.675105088867149], [-82.690089280920162, 41.675105088867149], [-83.029810146806909, 41.832795722005834], [-83.141999681312555, 41.975681057292825], [-83.12, 42.08], [-82.9, 42.43], [-82.43, 42.98], [-82.137642381503881, 43.571087551439909], [-82.337763125431053, 44.44], [-82.550924648758169, 45.347516587905368], [-83.592850714843067, 45.816893622412373], [-83.469550747394621, 45.994686387712584], [-83.616130947590563, 46.116926988299056], [-83.890765347005726, 46.116926988299056], [-84.091851264161463, 46.27541860613816], [-84.14211951367335, 46.512225857115723], [-84.3367, 46.40877], [-84.6049, 46.4396], [-84.543748745445853, 46.538684190449132], [-84.779238247399888, 46.637101955749038], [-84.876079881514855, 46.900083319682366], [-85.652363247403414, 47.220218817730498], [-86.461990831228249, 47.553338019392037], [-87.439792623300207, 47.94], [-88.378114183286698, 48.302917588893727], [-89.272917446636654, 48.019808254582657], [-89.6, 48.01], [-90.83, 48.27], [-91.64, 48.14], [-92.61, 48.45], [-93.63087, 48.60926], [-94.32914, 48.67074], [-94.64, 48.84], [-94.81758, 49.38905], [-95.15609, 49.38425], [-95.159069509172014, 49.0], [-97.228720000004799, 49.0007], [-100.65, 49.0], [-104.04826, 48.99986], [-107.05, 49.0], [-110.05, 49.0], [-113.0, 49.0], [-116.04818, 49.0], [-117.03121, 49.0], [-120.0, 49.0], [-122.84, 49.0], [-122.97421, 49.002537777777789], [-124.91024, 49.98456], [-125.62461, 50.41656], [-127.43561, 50.83061], [-127.99276, 51.71583], [-127.85032, 52.32961], [-129.12979, 52.75538], [-129.30523, 53.56159], [-130.51497, 54.28757], [-130.53611, 54.80278], [-129.98, 55.285], [-130.00778, 55.91583], [-131.70781, 56.55212], [-132.73042, 57.69289], [-133.35556, 58.41028], [-134.27111, 58.86111], [-134.945, 59.27056], [-135.47583, 59.78778], [-136.47972, 59.46389], [-137.4525, 58.905], [-138.34089, 59.56211], [-139.039, 60.0], [-140.013, 60.27682], [-140.99778, 60.30639], [-140.9925, 66.00003], [-140.986, 69.712], [-139.12052, 69.47102], [-137.54636, 68.99002], [-136.50358, 68.89804], [-135.62576, 69.31512], [-134.41464, 69.62743], [-132.92925, 69.50534], [-131.43136, 69.94451], [-129.79471, 70.19369], [-129.10773, 69.77927], [-128.36156, 70.01286], [-128.13817, 70.48384], [-127.44712, 70.37721], [-125.75632, 69.48058], [-124.42483, 70.1584], [-124.28968, 69.39969], [-123.06108, 69.56372], [-122.6835, 69.85553], [-121.47226, 69.79778], [-119.94288, 69.37786], [-117.60268, 69.01128], [-116.22643, 68.84151], [-115.2469, 68.90591], [-113.89794, 68.3989], [-115.30489, 67.90261], [-113.49727, 67.68815], [-110.798, 67.80612], [-109.94619, 67.98104], [-108.8802, 67.38144], [-107.79239, 67.88736], [-108.81299, 68.31164], [-108.16721, 68.65392], [-106.95, 68.7], [-106.15, 68.8], [-105.34282, 68.56122], [-104.33791, 68.018], [-103.22115, 68.09775], [-101.45433, 67.64689], [-99.90195, 67.80566], [-98.4432, 67.78165], [-98.5586, 68.40394], [-97.66948, 68.57864], [-96.11991, 68.23939], [-96.12588, 67.29338], [-95.48943, 68.0907], [-94.685, 68.06383], [-94.23282, 69.06903], [-95.30408, 69.68571], [-96.47131, 70.08976], [-96.39115, 71.19482], [-95.2088, 71.92053], [-93.88997, 71.76015], [-92.87818, 71.31869], [-91.51964, 70.19129], [-92.40692, 69.69997], [-90.5471, 69.49766]]], [[[-114.167169999999871, 73.12145], [-114.66634, 72.65277], [-112.441019999999867, 72.9554], [-111.05039, 72.4504], [-109.920349999999857, 72.96113], [-109.00654, 72.63335], [-108.188349999999886, 71.65089], [-107.68599, 72.06548], [-108.39639, 73.08953], [-107.51645, 73.23598], [-106.522589999999866, 73.07601], [-105.402459999999877, 72.67259], [-104.77484, 71.6984], [-104.464759999999814, 70.99297], [-102.78537, 70.49776], [-100.980779999999868, 70.02432], [-101.089289999999892, 69.58447000000011], [-102.731159999999875, 69.50402], [-102.09329, 69.11962], [-102.43024, 68.75282], [-104.24, 68.91], [-105.96, 69.180000000000135], [-107.12254, 69.11922], [-108.999999999999872, 68.78], [-111.534148875200117, 68.630059156817921], [-113.3132, 68.53554], [-113.854959999999807, 69.007440000000102], [-115.22, 69.28], [-116.10794, 69.16821], [-117.34, 69.960000000000107], [-116.674729999999869, 70.06655], [-115.13112, 70.2373], [-113.72141, 70.19237], [-112.4161, 70.36638], [-114.35, 70.6], [-116.48684, 70.52045], [-117.9048, 70.540560000000127], [-118.43238, 70.9092], [-116.11311, 71.30918], [-117.65568, 71.2952], [-119.40199, 71.55859], [-118.56267, 72.30785], [-117.866419999999877, 72.70594], [-115.18909, 73.314590000000109], [-114.167169999999871, 73.12145]]], [[[-104.5, 73.42], [-105.38, 72.76], [-106.94, 73.46], [-106.6, 73.6], [-105.26, 73.64], [-104.5, 73.42]]], [[[-76.34, 73.102684989953005], [-76.251403808593736, 72.826385498046861], [-77.314437866210895, 72.85554504394527], [-78.391670227050795, 72.876655578613253], [-79.486251831054645, 72.742202758789062], [-79.775833129882827, 72.80290222167973], [-80.876098632812514, 73.333183288574205], [-80.833885192871051, 73.693183898925767], [-80.353057861328111, 73.75971984863277], [-78.064437866210923, 73.651931762695327], [-76.34, 73.102684989953005]]], [[[-86.562178514334107, 73.157447007938444], [-85.774371304044521, 72.534125881633798], [-84.850112474288224, 73.34027822538711], [-82.315590176100969, 73.750950832810574], [-80.600087653307611, 72.716543687624181], [-80.748941616524391, 72.061906643350753], [-78.770638597310764, 72.352173163534147], [-77.824623989559569, 72.749616604291035], [-75.605844692675717, 72.243678493937381], [-74.228616095664975, 71.767144273557889], [-74.099140794557698, 71.330840155717638], [-72.242225714797641, 71.556924546994495], [-71.200015428335192, 70.920012518997211], [-68.78605424668487, 70.525023708774242], [-67.914970465756923, 70.121947536897594], [-66.969033372654152, 69.18608734809186], [-68.805122850200533, 68.720198472764409], [-66.449866095633851, 68.067163397892003], [-64.862314419195215, 67.847538560651614], [-63.424934454996745, 66.928473212340649], [-61.851981370680569, 66.862120673277829], [-62.163176845942296, 66.160251369889593], [-63.91844438338417, 64.998668524832837], [-65.148860236253611, 65.426032619886669], [-66.72121904159853, 66.388041083432185], [-68.015016038673949, 66.262725735124391], [-68.141287400979152, 65.689789130304362], [-67.089646165623392, 65.108455105236985], [-65.732080451099748, 64.64840566675862], [-65.320167609301265, 64.382737128346051], [-64.669406297449669, 63.392926744227474], [-65.013803880458894, 62.674185085695974], [-66.275044725190455, 62.945098781986069], [-68.783186204692711, 63.745670071051805], [-67.369680752213029, 62.883965562584869], [-66.328297288667201, 62.28007477482204], [-66.165568203380147, 61.930897121825879], [-68.877366502544632, 62.330149237712803], [-71.023437059193824, 62.910708116295829], [-72.23537858751898, 63.397836005295154], [-71.886278449171286, 63.679989325608837], [-73.37830624051837, 64.193963121183813], [-74.834418911422588, 64.679075629323776], [-74.818502570276706, 64.389093329517962], [-77.709979824520019, 64.229542344816778], [-78.55594885935416, 64.572906399180127], [-77.897281053361908, 65.309192206474776], [-76.018274298797181, 65.326968899183143], [-73.95979529488271, 65.454764716240888], [-74.293883429649625, 65.81177134872938], [-73.94491248238262, 66.310578111426722], [-72.65116716173938, 67.284575507263853], [-72.926059943316076, 67.726925767682374], [-73.311617804645721, 68.069437160912898], [-74.8433072577768, 68.554627183701271], [-76.869100918266739, 68.894735622830254], [-76.228649054657339, 69.147769273547411], [-77.28736996123709, 69.769540106883269], [-78.168633999326588, 69.826487535268896], [-78.95724219431672, 70.166880194775402], [-79.492455003563649, 69.871807766388898], [-81.305470954091732, 69.743185126414332], [-84.944706183598456, 69.966634019644388], [-87.060003424817864, 70.260001125765356], [-88.681713223001495, 70.410741278760796], [-89.513419562523012, 70.762037665480975], [-88.467721116880753, 71.218185533321318], [-89.888151211287465, 71.222552191849942], [-90.205160285181989, 72.235074367960792], [-89.43657670770493, 73.129464219852352], [-88.408241543312784, 73.537888902471209], [-85.826151089200906, 73.803815823045213], [-86.562178514334107, 73.157447007938444]]], [[[-100.35642, 73.84389], [-99.16387, 73.63339], [-97.38, 73.76], [-97.12, 73.47], [-98.05359, 72.99052], [-96.54, 72.56], [-96.72, 71.66], [-98.35966, 71.27285], [-99.32286, 71.35639], [-100.01482, 71.73827], [-102.5, 72.51], [-102.48, 72.83], [-100.43836, 72.70588], [-101.54, 73.36], [-100.35642, 73.84389]]], [[[-93.196295539100205, 72.771992499473342], [-94.26904659704725, 72.024596259235949], [-95.409855516322637, 72.061880805134578], [-96.033745083382428, 72.940276801231789], [-96.01826799191096, 73.437429918095788], [-95.495793423224001, 73.862416897264154], [-94.503657599652328, 74.134906724739196], [-92.420012173211745, 74.100025132942179], [-90.509792853542578, 73.85673248971203], [-92.003965216829869, 72.966244208458477], [-93.196295539100205, 72.771992499473342]]], [[[-120.46, 71.383601793087578], [-123.09219, 70.90164], [-123.62, 71.34], [-125.92894873747332, 71.868688463011395], [-125.499999999999872, 72.292260811795003], [-124.80729, 73.02256], [-123.94, 73.680000000000135], [-124.917749999999899, 74.292750000000112], [-121.53788, 74.44893], [-120.10978, 74.24135], [-117.55564, 74.18577], [-116.58442, 73.89607], [-115.51081, 73.47519], [-116.767939999999882, 73.22292], [-119.22, 72.52], [-120.46, 71.82], [-120.46, 71.383601793087578]]], [[[-93.612755906940464, 74.979997260224437], [-94.156908738973812, 74.59234650338685], [-95.60868058956558, 74.666863918751758], [-96.820932176484561, 74.927623196096576], [-96.288587409229791, 75.377828274223333], [-94.850819871789113, 75.647217515760886], [-93.977746548217908, 75.296489569795952], [-93.612755906940464, 74.979997260224437]]], [[[-98.5, 76.72], [-97.735585, 76.25656], [-97.704415, 75.74344], [-98.16, 75.0], [-99.80874, 74.89744], [-100.88366, 75.05736], [-100.86292, 75.64075], [-102.50209, 75.5638], [-102.56552, 76.3366], [-101.48973, 76.30537], [-99.98349, 76.64634], [-98.57699, 76.58859], [-98.5, 76.72]]], [[[-108.21141, 76.20168], [-107.81943, 75.84552], [-106.92893, 76.01282], [-105.881, 75.9694], [-105.70498, 75.47951], [-106.31347, 75.00527], [-109.7, 74.85], [-112.22307, 74.41696], [-113.74381, 74.39427], [-113.87135, 74.72029], [-111.79421, 75.1625], [-116.31221, 75.04343], [-117.7104, 75.2222], [-116.34602, 76.19903], [-115.40487, 76.47887], [-112.59056, 76.14134], [-110.81422, 75.54919], [-109.0671, 75.47321], [-110.49726, 76.42982], [-109.5811, 76.79417], [-108.54859, 76.67832], [-108.21141, 76.20168]]], [[[-94.684085862999439, 77.097878323058367], [-93.573921068073105, 76.776295884906062], [-91.605023159536586, 76.778517971494594], [-90.741845872749209, 76.449597479956807], [-90.969661424507976, 76.074013170059445], [-89.822237921899244, 75.847773749485626], [-89.187082892599776, 75.610165513807615], [-87.838276333349611, 75.566188869927217], [-86.379192267588664, 75.482421373182163], [-84.789625210290595, 75.699204006646497], [-82.753444586910049, 75.784315090631225], [-81.12853084992436, 75.713983466282016], [-80.05751095245914, 75.336848863415867], [-79.833932868148324, 74.923127346487192], [-80.457770758775823, 74.657303778777774], [-81.948842536125511, 74.442459011524321], [-83.2288936022114, 74.564027818490928], [-86.097452358733292, 74.410032050261137], [-88.150350307960196, 74.392307033984977], [-89.764722052758358, 74.515555325001117], [-92.422440965529418, 74.837757880340973], [-92.768285488642789, 75.38681997344213], [-92.889905972041717, 75.882655341282629], [-93.893824022175977, 76.319243679500516], [-95.962457445035795, 76.44138092722244], [-97.121378953829463, 76.751077785947587], [-96.745122850312342, 77.161388658345132], [-94.684085862999439, 77.097878323058367]]], [[[-116.198586595507322, 77.645286770326194], [-116.335813361458349, 76.876961575010554], [-117.106050584768766, 76.530031846819114], [-118.040412157038119, 76.481171780087081], [-119.899317586885687, 76.053213406061971], [-121.499995077126471, 75.900018622532784], [-122.85492448615895, 76.116542873835684], [-122.854925293603188, 76.116542873835684], [-121.157535360328239, 76.864507554828336], [-119.103938971821023, 77.512219957174608], [-117.570130784965954, 77.498318996888102], [-116.198586595507322, 77.645286770326194]]], [[[-93.840003017943971, 77.51999726023449], [-94.295608283245244, 77.491342678528682], [-96.169654100310055, 77.55511139597688], [-96.436304490936109, 77.83462921824362], [-94.422577277386353, 77.820004787904978], [-93.720656297565867, 77.634331366680314], [-93.840003017943971, 77.51999726023449]]], [[[-110.186938035912945, 77.697014879050286], [-112.051191169058455, 77.409228827616843], [-113.534278937619035, 77.732206529441143], [-112.724586758253835, 78.051050116681935], [-111.264443325630822, 78.152956041161545], [-109.854451870547067, 77.996324774884812], [-110.186938035912945, 77.697014879050286]]], [[[-109.663145718202557, 78.601972561345676], [-110.88131425661885, 78.406919867659994], [-112.542091437615142, 78.407901719873493], [-112.525890876091566, 78.550554511215225], [-111.500010342233367, 78.849993598130538], [-110.96366065147599, 78.804440823065207], [-109.663145718202557, 78.601972561345676]]], [[[-95.830294969449312, 78.056941229963243], [-97.309842902397975, 77.85059723582178], [-98.124289313533964, 78.082856960757567], [-98.55286780474664, 78.458105373845086], [-98.631984422585504, 78.871930243638374], [-97.337231411512604, 78.831984361476756], [-96.754398769908761, 78.765812689926989], [-95.559277920294562, 78.41831452098026], [-95.830294969449312, 78.056941229963243]]], [[[-100.060191820052111, 78.324754340315891], [-99.670939093813601, 77.907544664207393], [-101.303940192452984, 78.018984890444798], [-102.949808722733025, 78.343228664860206], [-105.176132778731514, 78.38033234324574], [-104.210429450277147, 78.677420152491777], [-105.419580451258511, 78.918335679836431], [-105.492289191493128, 79.301593939929177], [-103.529282396237917, 79.16534902619162], [-100.8251580472688, 78.80046173777869], [-100.060191820052111, 78.324754340315891]]], [[[-87.02, 79.66], [-85.81435, 79.3369], [-87.18756, 79.0393], [-89.03535, 78.28723], [-90.80436, 78.21533], [-92.87669, 78.34333], [-93.95116, 78.75099], [-93.93574, 79.11373], [-93.14524, 79.3801], [-94.974, 79.37248], [-96.07614, 79.70502], [-96.70972, 80.15777], [-96.01644, 80.60233], [-95.32345, 80.90729], [-94.29843, 80.97727], [-94.73542, 81.20646], [-92.40984, 81.25739], [-91.13289, 80.72345], [-89.45, 80.509322033898258], [-87.81, 80.32], [-87.02, 79.66]]], [[[-68.5, 83.106321516765732], [-65.82735, 83.02801], [-63.68, 82.9], [-61.85, 82.6286], [-61.89388, 82.36165], [-64.334, 81.92775], [-66.75342, 81.72527], [-67.65755, 81.50141], [-65.48031, 81.50657], [-67.84, 80.9], [-69.4697, 80.61683], [-71.18, 79.8], [-73.2428, 79.63415], [-73.88, 79.430162204802073], [-76.90773, 79.32309], [-75.52924, 79.19766], [-76.22046, 79.01907], [-75.39345, 78.52581], [-76.34354, 78.18296], [-77.88851, 77.89991], [-78.36269, 77.50859], [-79.75951, 77.20968], [-79.61965, 76.98336], [-77.91089, 77.022045], [-77.88911, 76.777955], [-80.56125, 76.17812], [-83.17439, 76.45403], [-86.11184, 76.29901], [-87.6, 76.42], [-89.49068, 76.47239], [-89.6161, 76.95213], [-87.76739, 77.17833], [-88.26, 77.9], [-87.65, 77.970222222222205], [-84.97634, 77.53873], [-86.34, 78.18], [-87.96192, 78.37181], [-87.15198, 78.75867], [-85.37868, 78.9969], [-85.09495, 79.34543], [-86.50734, 79.73624], [-86.93179, 80.25145], [-84.19844, 80.20836], [-83.408695652173819, 80.1], [-81.84823, 80.46442], [-84.1, 80.58], [-87.59895, 80.51627], [-89.36663, 80.85569], [-90.2, 81.26], [-91.36786, 81.5531], [-91.58702, 81.89429], [-90.1, 82.085], [-88.93227, 82.11751], [-86.97024, 82.27961], [-85.5, 82.652273458057024], [-84.260005, 82.6], [-83.18, 82.32], [-82.42, 82.86], [-81.1, 83.02], [-79.30664, 83.13056], [-76.25, 83.172058823529369], [-75.71878, 83.06404], [-72.83153, 83.23324], [-70.665765, 83.169780758382828], [-68.5, 83.106321516765732]]]] } }, - { "type": "Feature", "properties": { "admin": "Switzerland", "name": "Switzerland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[9.594226108446346, 47.525058091820256], [9.632931756232974, 47.347601223329974], [9.479969516649019, 47.102809963563367], [9.932448357796657, 46.920728054382948], [10.442701450246627, 46.893546250997424], [10.36337812667861, 46.483571275409851], [9.922836541390378, 46.314899400409182], [9.182881707403054, 46.440214748716976], [8.966305779667804, 46.036931871111186], [8.489952426801322, 46.005150865251672], [8.316629672894377, 46.163642483090847], [7.755992058959832, 45.824490057959302], [7.273850945676655, 45.776947740250769], [6.843592970414504, 45.991146552100595], [6.500099724970424, 46.429672756529428], [6.022609490593537, 46.272989813820466], [6.037388950229, 46.725778713561859], [6.768713820023605, 47.287708238303686], [6.736571079138058, 47.541801255882838], [7.192202182655505, 47.449765529971003], [7.466759067422228, 47.620581976911794], [8.31730146651415, 47.613579820336255], [8.522611932009765, 47.830827541691285], [9.594226108446346, 47.525058091820256]]] } }, - { "type": "Feature", "properties": { "admin": "Chile", "name": "Chile", "continent": "South America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-68.634010227583147, -52.636370458874353], [-68.633349999999879, -54.8695], [-67.56244, -54.87001], [-66.95992, -54.89681], [-67.291029999999878, -55.30124], [-68.148629999999841, -55.61183], [-68.639990810811796, -55.580017999086877], [-69.2321, -55.49906], [-69.95809, -55.19843], [-71.00568, -55.05383], [-72.2639, -54.49514], [-73.2852, -53.957519999999874], [-74.66253, -52.83749], [-73.8381, -53.04743], [-72.43418, -53.7154], [-71.10773, -54.07433], [-70.591779999999787, -53.61583], [-70.26748, -52.93123], [-69.345649999999878, -52.5183], [-68.634010227583147, -52.636370458874353]]], [[[-68.219913092711224, -21.49434661223183], [-67.828179897722634, -22.872918796482178], [-67.106673550063604, -22.735924574476392], [-66.985233934177629, -22.986348565362825], [-67.328442959244128, -24.025303236590908], [-68.417652960876111, -24.518554782816874], [-68.386001146097342, -26.185016371365229], [-68.594799770772667, -26.50690886811126], [-68.295541551370391, -26.899339694935787], [-69.001234910748266, -27.521213881136127], [-69.656130337183143, -28.459141127233686], [-70.013550381129861, -29.367922865518544], [-69.919008348251921, -30.336339206668306], [-70.535068935819439, -31.365010267870279], [-70.074399380153622, -33.09120981214803], [-69.814776984319209, -33.273886000299839], [-69.817309129501453, -34.193571465798279], [-70.388049485949082, -35.169687595359441], [-70.364769253201658, -36.005088799789931], [-71.121880662709771, -36.65812387466233], [-71.118625047475419, -37.576827487947192], [-70.814664272734703, -38.552995293940732], [-71.413516608349042, -38.916022230791107], [-71.680761277946445, -39.808164157878061], [-71.915734015577542, -40.832339369470716], [-71.746803758415453, -42.051386407235988], [-72.148898078078517, -42.254888197601375], [-71.915423956983901, -43.408564548517404], [-71.464056159130493, -43.787611179378324], [-71.793622606071935, -44.207172133156099], [-71.329800788036195, -44.407521661151677], [-71.222778896759721, -44.784242852559409], [-71.659315558545316, -44.973688653341434], [-71.552009446891233, -45.560732924177117], [-71.917258470330196, -46.884838148791786], [-72.44735531278026, -47.738532810253517], [-72.331160854771937, -48.244238376661819], [-72.648247443314929, -48.878618259476774], [-73.415435757120022, -49.318436374712952], [-73.328050910114456, -50.378785088909865], [-72.975746832964617, -50.741450290734299], [-72.309973517532342, -50.677009779666342], [-72.329403856074023, -51.425956312872394], [-71.914803839796321, -52.009022305865912], [-69.498362189396076, -52.142760912637236], [-68.571545376241332, -52.299443855346247], [-69.461284349226617, -52.291950772663924], [-69.94277950710611, -52.537930590373243], [-70.8451016913545, -52.899200528525711], [-71.006332160105217, -53.833252042201345], [-71.429794684520928, -53.856454760300373], [-72.557942877884855, -53.531410001184447], [-73.702756720662862, -52.835069268607249], [-73.702756720662862, -52.835070076051487], [-74.946763475225154, -52.262753588419017], [-75.260026007778507, -51.62935475037321], [-74.976632453089806, -51.043395684615675], [-75.47975419788348, -50.378371677451547], [-75.608015102831942, -48.673772881871784], [-75.182769741502128, -47.711919447623153], [-74.126580980104677, -46.939253431995084], [-75.644395311165439, -46.647643324572016], [-74.69215369332305, -45.76397633238097], [-74.351709357384252, -44.10304412208788], [-73.240356004515192, -44.454960625995611], [-72.717803921179765, -42.383355808278985], [-73.388899909138232, -42.117532240569567], [-73.701335618774834, -43.365776462579738], [-74.33194312203257, -43.224958184584395], [-74.017957119427152, -41.794812920906828], [-73.677099372029943, -39.942212823243111], [-73.217592536090663, -39.258688653318508], [-73.505559455037044, -38.282882582351064], [-73.588060879191076, -37.156284681956016], [-73.166717088499283, -37.123780206044351], [-72.553136969681717, -35.508840020491022], [-71.861732143832555, -33.909092706031522], [-71.438450486929895, -32.418899428030819], [-71.668720669222424, -30.920644626592516], [-71.370082567007714, -30.095682061484997], [-71.48989437527645, -28.861442152625909], [-70.905123867461569, -27.640379734001193], [-70.724953986275963, -25.705924167587209], [-70.403965827095035, -23.628996677344542], [-70.091245897080668, -21.393319187101223], [-70.164419725205974, -19.756468194256183], [-70.372572394477714, -18.347975355708879], [-69.858443569605797, -18.092693780187027], [-69.590423753523979, -17.580011895419286], [-69.100246955019401, -18.260125420812653], [-68.966818406841824, -18.981683444904089], [-68.442225104430918, -19.405068454671419], [-68.757167121033703, -20.37265797290447], [-68.219913092711224, -21.49434661223183]]]] } }, - { "type": "Feature", "properties": { "admin": "China", "name": "China", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[110.339187860151526, 18.678395087147603], [109.475209588663702, 18.19770091396861], [108.655207961056135, 18.507681993071397], [108.626217482540426, 19.367887885001974], [109.119055617308007, 19.821038519769385], [110.211598748822837, 20.101253973872073], [110.786550734502228, 20.077534491450077], [111.01005130416462, 19.695929877190732], [110.570646600386794, 19.255879218009305], [110.339187860151526, 18.678395087147603]]], [[[127.657407261262378, 49.760270494172929], [129.397817824420429, 49.440600084015429], [130.58229332898236, 48.729687404976112], [130.987281528853828, 47.790132351261391], [132.506671991099495, 47.788969631534876], [133.373595819228001, 48.183441677434914], [135.026311476786702, 48.478229885443902], [134.500813836810607, 47.578439846377833], [134.112362095272601, 47.212467352886719], [133.76964399631288, 46.116926988299056], [133.097126906466428, 45.14406647397216], [131.883454217659562, 45.32116160743643], [131.025212030156069, 44.967953192721573], [131.288555129115537, 44.111519680348252], [131.144687941614848, 42.929989732426932], [130.633866408409801, 42.903014634770543], [130.640015903852429, 42.39500946712527], [129.994267205933227, 42.985386867843793], [129.596668735879462, 42.424981797854592], [128.05221520397231, 41.994284572917984], [128.208433058790717, 41.466771552082534], [127.343782993683021, 41.503151760415953], [126.869083286649854, 41.816569322266155], [126.18204511932943, 41.107336127276362], [125.079941847840587, 40.569823716792449], [124.265624627785314, 39.928493353834135], [122.86757042856101, 39.637787583976255], [122.131387974130917, 39.170451768544623], [121.054554478032856, 38.89747101496291], [121.585994907722466, 39.360853583324136], [121.376757033372641, 39.750261338859524], [122.168595005381007, 40.422442531896046], [121.640358514493528, 40.946389878903304], [120.768628778161954, 40.593388169917596], [119.639602085449056, 39.898055935214209], [119.023463983233015, 39.252333075511096], [118.042748651197897, 39.204273993479674], [117.532702264477052, 38.73763580988409], [118.05969852098967, 38.061475531561051], [118.878149855628351, 37.897325344385898], [118.911636183753501, 37.448463853498723], [119.702802362142037, 37.156388658185072], [120.823457472823648, 37.870427761377968], [121.711258579597938, 37.481123358707165], [122.357937453298462, 37.454484157860684], [122.519994744965814, 36.930614325501828], [121.104163853033029, 36.651329047180432], [120.63700890511457, 36.111439520811125], [119.66456180224607, 35.609790554337728], [119.151208123858567, 34.909859117160458], [120.227524855633717, 34.360331936168613], [120.620369093916565, 33.37672272392512], [121.229014113450219, 32.460318711877186], [121.908145786630044, 31.692174384074683], [121.891919386890336, 30.949351508095098], [121.264257440273298, 30.676267401648712], [121.503519321784722, 30.14291494396425], [122.092113885589086, 29.832520453403156], [121.93842817595305, 29.018022365834803], [121.684438511238469, 28.225512600206677], [121.125661248866436, 28.135673122667178], [120.395473260582307, 27.053206895449385], [119.585496860839555, 25.740780544532605], [118.656871372554519, 24.547390855400234], [117.281606479970833, 23.624501451099714], [115.890735304835118, 22.782873236578094], [114.763827345846209, 22.668074042241663], [114.152546828265656, 22.223760077396204], [113.806779819800752, 22.548339748621423], [113.241077915501592, 22.051367499270462], [111.843592157032447, 21.550493679281512], [110.78546552942413, 21.39714386645533], [110.444039341271662, 20.34103261970639], [109.88986128137357, 20.282457383703441], [109.627655063924635, 21.008227037026725], [109.864488153118316, 21.395050970947516], [108.522812941524421, 21.715212307211821], [108.050180291782979, 21.552379869060101], [107.043420037872636, 21.8118989120299], [106.567273390735352, 22.21820486092474], [106.725403273548466, 22.794267889898375], [105.811247186305209, 22.976892401617899], [105.329209425886631, 23.352063300056976], [104.476858351664475, 22.819150092046918], [103.504514601660503, 22.703756618739217], [102.706992222100155, 22.708795070887696], [102.170435825613552, 22.464753119389336], [101.652017856861576, 22.318198757409554], [101.803119744882906, 21.174366766845051], [101.27002566936001, 21.201651923095167], [101.180005324307558, 21.436572984294052], [101.150032993578236, 21.849984442629015], [100.416537713627349, 21.558839423096654], [99.983489211021549, 21.742936713136451], [99.240898878987196, 22.118314317304559], [99.53199222208741, 22.949038804612591], [98.898749220782804, 23.142722072842581], [98.66026248575578, 24.063286037690002], [97.604719679762027, 23.897404690033049], [97.724609002679131, 25.083637193293036], [98.671838006589212, 25.91870250091349], [98.712093947344556, 26.743535874940243], [98.682690057370507, 27.508812160750658], [98.246230910233351, 27.747221381129172], [97.91198774616943, 28.335945136014367], [97.327113885490007, 28.261582749946339], [96.248833449287829, 28.411030992134467], [96.586590610747521, 28.830979519154361], [96.117678664131006, 29.452802028922513], [95.404802280664626, 29.031716620392157], [94.565990431702929, 29.27743805593996], [93.413347609432662, 28.640629380807233], [92.503118931043616, 27.896876329046442], [91.696656528696693, 27.771741848251615], [91.258853794319876, 28.040614325466343], [90.730513950567797, 28.064953925075738], [90.015828891971182, 28.296438503527177], [89.475810174521158, 28.042758897406365], [88.814248488320573, 27.299315904239389], [88.730325962278528, 28.086864732367552], [88.120440708369941, 27.876541652939572], [86.954517043000635, 27.974261786403524], [85.823319940131526, 28.203575954698742], [85.011638218123053, 28.642773952747369], [84.23457970575015, 28.839893703724691], [83.89899295444674, 29.320226141877633], [83.337115106137176, 29.463731594352193], [82.327512648450877, 30.115268052688204], [81.525804477874786, 30.422716986608659], [81.111256138029276, 30.183480943313402], [79.721366815107118, 30.882714748654728], [78.738894484374001, 31.515906073527045], [78.458446486326025, 32.61816437431272], [79.176128777995544, 32.483779812137747], [79.208891636068543, 32.994394639613738], [78.811086460285722, 33.506198025032397], [78.912268914713209, 34.321936346975768], [77.83745079947461, 35.494009507787794], [76.192848341785705, 35.89840342868785], [75.896897414050173, 36.666806138651872], [75.158027785140987, 37.133030910789152], [74.980002475895404, 37.419990139305888], [74.829985792952144, 37.990007025701445], [74.864815708316783, 38.378846340481587], [74.25751427602269, 38.606506862943476], [73.928852166646394, 38.505815334622717], [73.675379266254836, 39.431236884105566], [73.960013055318427, 39.660008449861714], [73.822243686828315, 39.893973497063136], [74.776862420556043, 40.366425279291619], [75.467827996730719, 40.56207225194867], [76.526368035797432, 40.427946071935132], [76.90448449087711, 41.066485907549648], [78.187196893226044, 41.185315863604799], [78.543660923175253, 41.582242540038713], [80.119430373051401, 42.12394074153822], [80.259990268885318, 42.34999929459908], [80.180150180994374, 42.920067857426844], [80.866206496101213, 43.180362046881008], [79.966106398441426, 44.917516994804622], [81.947070753918084, 45.317027492853143], [82.458925815769035, 45.539649563166499], [83.180483839860543, 47.330031236350735], [85.164290399113213, 47.000955715516099], [85.720483839870667, 47.452969468773077], [85.76823286330837, 48.455750637396896], [86.59877648310335, 48.549181626980605], [87.359970330762692, 49.214980780629148], [87.751264276076668, 49.297197984405464], [88.013832228551678, 48.599462795600594], [88.854297723346747, 48.069081732773007], [90.280825636763893, 47.693549099307901], [90.970809360724957, 46.88814606382293], [90.585768263718307, 45.719716091487491], [90.945539585334316, 45.286073309910243], [92.133890822318222, 45.115075995456429], [93.480733677141316, 44.97547211362], [94.688928664125356, 44.352331854828456], [95.306875441471504, 44.241330878265458], [95.762454868556688, 43.319449164394619], [96.349395786527808, 42.725635280928643], [97.451757440177971, 42.74888967546007], [99.515817498779995, 42.524691473961688], [100.845865513108279, 42.663804429691417], [101.833040399179936, 42.51487295182627], [103.312278273534787, 41.907468166667613], [104.522281935649005, 41.90834666601662], [104.964993931093431, 41.597409572916334], [106.129315627061658, 42.134327704428891], [107.744772576937976, 42.481515814781908], [109.243595819131428, 42.519446316084149], [110.412103306115299, 42.871233628911014], [111.129682244920218, 43.406834011400171], [111.82958784388137, 43.743118394539486], [111.667737257943202, 44.073175767587706], [111.348376906379428, 44.457441718110047], [111.87330610560025, 45.102079372735112], [112.436062453258842, 45.01164561622425], [113.463906691544196, 44.808893134127111], [114.46033165899604, 45.339816799493875], [115.985096470200133, 45.727235012386004], [116.717868280098855, 46.38820241961524], [117.421701287914246, 46.67273285581421], [118.874325799638711, 46.805412095723646], [119.663269891438745, 46.692679958678944], [119.772823927897562, 47.048058783550132], [118.866574334794947, 47.747060044946195], [118.064142694166719, 48.06673045510373], [117.295507440257438, 47.697709052107385], [116.308952671373234, 47.853410142602812], [115.742837355615734, 47.726544501326273], [115.485282017073018, 48.135382595403442], [116.191802199367601, 49.134598090199056], [116.67880089728618, 49.888531399121398], [117.879244419426371, 49.510983384796944], [119.288460728025839, 50.142882798862033], [119.279365675942358, 50.582907619827282], [120.182049595216924, 51.64356639261802], [120.738191359541972, 51.964115302124547], [120.725789015791975, 52.516226304730814], [120.177088657716865, 52.753886216841195], [121.003084751470226, 53.251401068731226], [122.245747918792858, 53.431725979213681], [123.571506789240843, 53.458804429734627], [125.068211297710434, 53.161044826868832], [125.946348911646169, 52.792798570356936], [126.564399041856959, 51.784255479532689], [126.939156528837657, 51.353894151405896], [127.287455682484904, 50.739797268265434], [127.657407261262378, 49.760270494172929]]]] } }, - { "type": "Feature", "properties": { "admin": "Ivory Coast", "name": "C�te d'Ivoire", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.856125047202397, 4.994475816259508], [-3.311084357100071, 4.984295559098014], [-4.008819545904941, 5.179813340674314], [-4.64991736491791, 5.168263658057084], [-5.834496222344525, 4.993700669775135], [-6.528769090185845, 4.705087795425015], [-7.518941209330434, 4.338288479017307], [-7.712159389669749, 4.364565944837721], [-7.63536821128403, 5.188159084489455], [-7.53971513511176, 5.313345241716517], [-7.570152553731686, 5.707352199725903], [-7.993692592795879, 6.126189683451541], [-8.311347622094017, 6.193033148621081], [-8.602880214868618, 6.467564195171659], [-8.385451626000572, 6.911800645368742], [-8.485445522485348, 7.395207831243068], [-8.439298468448696, 7.686042792181736], [-8.280703497744936, 7.687179673692156], [-8.221792364932197, 8.123328762235571], [-8.299048631208562, 8.316443589710302], [-8.203498907900878, 8.455453192575446], [-7.832100389019186, 8.575704250518625], [-8.079113735374348, 9.376223863152033], [-8.309616461612249, 9.789531968622439], [-8.22933712404682, 10.129020290563897], [-8.029943610048617, 10.206534939001711], [-7.89958980959237, 10.297382106970824], [-7.622759161804808, 10.147236232946792], [-6.850506557635057, 10.138993841996237], [-6.666460944027547, 10.430810655148447], [-6.493965013037267, 10.411302801958268], [-6.205222947606429, 10.524060777219132], [-6.050452032892266, 10.096360785355442], [-5.816926235365286, 10.222554633012191], [-5.404341599946973, 10.370736802609144], [-4.954653286143098, 10.152713934769732], [-4.779883592131966, 9.821984768101741], [-4.330246954760383, 9.610834865757139], [-3.980449184576684, 9.862344061721698], [-3.511898972986272, 9.900326239456216], [-2.827496303712706, 9.642460842319775], [-2.56218950032624, 8.219627793811481], [-2.983584967450326, 7.379704901555511], [-3.244370083011261, 6.2504715031135], [-2.810701463217839, 5.389051215024109], [-2.856125047202397, 4.994475816259508]]] } }, - { "type": "Feature", "properties": { "admin": "Cameroon", "name": "Cameroon", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[13.07582238124675, 2.267097072759014], [12.951333855855605, 2.321615708826939], [12.359380323952218, 2.19281220133945], [11.751665480199787, 2.326757513839993], [11.276449008843711, 2.261050930180871], [9.649158155972627, 2.283866075037735], [9.795195753629455, 3.073404445809117], [9.404366896205998, 3.734526882335202], [8.948115675501068, 3.904128933117135], [8.744923943729416, 4.352215277519959], [8.488815545290889, 4.495617377129917], [8.500287713259693, 4.771982937026847], [8.757532993208626, 5.47966583904791], [9.233162876023043, 6.444490668153334], [9.522705926154398, 6.453482367372116], [10.118276808318255, 7.038769639509879], [10.497375115611417, 7.055357774275562], [11.058787876030349, 6.644426784690593], [11.745774366918509, 6.981382961449753], [11.839308709366801, 7.397042344589434], [12.063946160539556, 7.799808457872301], [12.218872104550597, 8.305824082874322], [12.753671502339214, 8.717762762888993], [12.955467970438971, 9.417771714714702], [13.1675997249971, 9.64062632897341], [13.308676385153914, 10.160362046748926], [13.572949659894558, 10.798565985553564], [14.415378859116682, 11.572368882692071], [14.468192172918974, 11.90475169519341], [14.57717776862253, 12.085360826053501], [14.181336297266792, 12.483656927943112], [14.213530714584634, 12.802035427293344], [14.495787387762842, 12.859396267137326], [14.893385857816522, 12.219047756392582], [14.960151808337598, 11.555574042197222], [14.923564894274955, 10.891325181517471], [15.467872755605269, 9.982336737503429], [14.909353875394713, 9.99212942142273], [14.627200555081057, 9.920919297724536], [14.171466098699025, 10.021378282099928], [13.954218377344002, 9.549494940626685], [14.544466586981766, 8.965861314322266], [14.979995558337688, 8.796104234243471], [15.120865512765331, 8.382150173369423], [15.436091749745765, 7.692812404811971], [15.279460483469107, 7.421924546737968], [14.776545444404572, 6.408498033062044], [14.536560092841111, 6.22695872642069], [14.459407179429345, 5.451760565610299], [14.558935988023501, 5.03059764243153], [14.478372430080466, 4.732605495620446], [14.950953403389658, 4.21038930909492], [15.036219516671249, 3.851367295747123], [15.405395948964379, 3.335300604664339], [15.862732374747479, 3.013537298998982], [15.907380812247649, 2.557389431158612], [16.01285241055535, 2.267639675298084], [15.940918816805061, 1.727672634280295], [15.14634199388524, 1.964014797367184], [14.337812534246577, 2.22787466064949], [13.07582238124675, 2.267097072759014]]] } }, - { "type": "Feature", "properties": { "admin": "Democratic Republic of the Congo", "name": "Dem. Rep. Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[30.833859897593801, 3.50916596111034], [30.773346795380036, 2.339883327642127], [31.174149204235807, 2.204465236821263], [30.852670118948048, 1.849396470543809], [30.468507521290292, 1.58380544677972], [30.086153598762703, 1.062312730306288], [29.875778842902488, 0.597379868976304], [29.819503208136634, -0.205310153813372], [29.587837762172164, -0.58740569417948], [29.579466180140876, -1.341313164885626], [29.29188683443661, -1.620055840667987], [29.254834832483336, -2.215109958508911], [29.117478875451546, -2.292211195488384], [29.02492638521678, -2.839257907730157], [29.276383904749046, -3.293907159034063], [29.339997592900342, -4.499983412294092], [29.519986606572925, -5.419978936386313], [29.41999271008816, -5.939998874539432], [29.620032179490003, -6.520015150583424], [30.199996779101692, -7.079980970898161], [30.740015496551781, -8.340007419470913], [30.34608605319081, -8.238256524288216], [29.002912225060467, -8.40703175215347], [28.734866570762495, -8.526559340044576], [28.449871046672818, -9.164918308146083], [28.673681674928922, -9.605924981324931], [28.496069777141763, -10.789883721564044], [28.372253045370421, -11.793646742401389], [28.642417433392346, -11.971568698782312], [29.341547885869087, -12.36074391037241], [29.616001417771223, -12.178894545137307], [29.699613885219485, -13.257226657771827], [28.934285922976834, -13.248958428605132], [28.52356163912102, -12.698604424696679], [28.15510867687998, -12.272480564017894], [27.38879886242378, -12.132747491100663], [27.164419793412456, -11.608748467661071], [26.55308759939961, -11.924439792532125], [25.752309604604726, -11.784965101776356], [25.418118116973197, -11.330935967659958], [24.783169793402948, -11.238693536018962], [24.314516228947948, -11.262826429899269], [24.257155389103982, -10.951992689663655], [23.912215203555714, -10.926826267137512], [23.456790805767433, -10.867863457892481], [22.837345411884733, -11.017621758674329], [22.402798292742371, -10.99307545333569], [22.155268182064304, -11.084801120653768], [22.208753289486388, -9.894796237836507], [21.87518191904234, -9.523707777548564], [21.801801385187897, -8.908706556842978], [21.949130893652036, -8.305900974158275], [21.746455926203303, -7.920084730667147], [21.728110792739695, -7.2908724910813], [20.514748162526498, -7.299605808138629], [20.601822950938292, -6.93931772219968], [20.091621534920645, -6.943090101756993], [20.037723016040214, -7.116361179231644], [19.417502475673157, -7.155428562044297], [19.166613396896107, -7.738183688999753], [19.016751743249664, -7.988245944860132], [18.464175652752683, -7.847014255406442], [18.134221632569048, -7.98767750410492], [17.472970004962232, -8.068551120641699], [17.089995965247166, -7.545688978712525], [16.860190870845198, -7.222297865429984], [16.573179965896141, -6.622644545115087], [16.326528354567042, -5.877470391466267], [13.375597364971892, -5.864241224799548], [13.02486941900696, -5.984388929878157], [12.735171339578695, -5.965682061388497], [12.322431674863507, -6.100092461779658], [12.182336866920249, -5.789930515163837], [12.436688266660866, -5.684303887559245], [12.468004184629734, -5.248361504745003], [12.631611769265788, -4.991271254092935], [12.995517205465173, -4.781103203961883], [13.258240187237044, -4.882957452009165], [13.600234816144676, -4.500138441590969], [14.144956088933295, -4.510008640158715], [14.209034864975219, -4.793092136253597], [14.582603794013179, -4.970238946150139], [15.170991652088441, -4.3435071753143], [15.753540073314749, -3.855164890156096], [16.006289503654298, -3.535132744972528], [15.972803175529149, -2.712392266453612], [16.407091912510051, -1.740927015798682], [16.86530683764212, -1.225816338713287], [17.523716261472853, -0.743830254726987], [17.638644646889983, -0.424831638189246], [17.663552687254676, -0.058083998213817], [17.826540154703245, 0.288923244626105], [17.774191928791563, 0.855658677571085], [17.89883548347958, 1.741831976728278], [18.09427575040743, 2.365721543788055], [18.39379235197114, 2.90044342692822], [18.453065219809925, 3.504385891123348], [18.542982211997778, 4.201785183118317], [18.932312452884755, 4.709506130385973], [19.467783644293146, 5.031527818212779], [20.290679152108932, 4.691677761245287], [20.927591180106273, 4.322785549329736], [21.659122755630019, 4.224341945813719], [22.405123732195531, 4.02916006104732], [22.704123569436284, 4.633050848810156], [22.841479526468103, 4.710126247573483], [23.297213982850135, 4.609693101414221], [24.41053104014625, 5.108784084489129], [24.805028924262409, 4.897246608902349], [25.128833449003274, 4.927244777847789], [25.278798455514302, 5.170408229997191], [25.650455356557465, 5.256087754737123], [26.402760857862535, 5.150874538590869], [27.044065382604703, 5.127852688004835], [27.374226108517483, 5.233944403500059], [27.979977247842807, 4.408413397637373], [28.428993768026906, 4.287154649264493], [28.696677687298795, 4.455077215996936], [29.159078403446497, 4.38926727947323], [29.715995314256013, 4.600804755060024], [29.953500197069467, 4.173699042167683], [30.833859897593801, 3.50916596111034]]] } }, - { "type": "Feature", "properties": { "admin": "Republic of Congo", "name": "Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[12.995517205465173, -4.781103203961883], [12.620759718484491, -4.438023369976135], [12.318607618873923, -4.606230157086187], [11.914963006242086, -5.037986748884789], [11.093772820691923, -3.978826592630546], [11.855121697648114, -3.42687061932105], [11.478038771214299, -2.765618991714241], [11.820963575903189, -2.514161472181982], [12.495702752338159, -2.391688327650242], [12.575284458067639, -1.948511244315134], [13.109618767965626, -2.428740329603513], [13.992407260807706, -2.470804945489099], [14.299210239324564, -1.998275648612213], [14.425455763413593, -1.333406670744971], [14.316418491277741, -0.552627455247048], [13.843320753645653, 0.038757635901149], [14.276265903386953, 1.196929836426619], [14.026668735417214, 1.395677395021153], [13.282631463278816, 1.31418366129688], [13.003113641012074, 1.830896307783319], [13.07582238124675, 2.267097072759014], [14.337812534246577, 2.22787466064949], [15.14634199388524, 1.964014797367184], [15.940918816805061, 1.727672634280295], [16.01285241055535, 2.267639675298084], [16.537058139724135, 3.198254706226278], [17.133042433346297, 3.728196519379451], [17.809900343505259, 3.560196437998569], [18.453065219809925, 3.504385891123348], [18.39379235197114, 2.90044342692822], [18.09427575040743, 2.365721543788055], [17.89883548347958, 1.741831976728278], [17.774191928791563, 0.855658677571085], [17.826540154703245, 0.288923244626105], [17.663552687254676, -0.058083998213817], [17.638644646889983, -0.424831638189246], [17.523716261472853, -0.743830254726987], [16.86530683764212, -1.225816338713287], [16.407091912510051, -1.740927015798682], [15.972803175529149, -2.712392266453612], [16.006289503654298, -3.535132744972528], [15.753540073314749, -3.855164890156096], [15.170991652088441, -4.3435071753143], [14.582603794013179, -4.970238946150139], [14.209034864975219, -4.793092136253597], [14.144956088933295, -4.510008640158715], [13.600234816144676, -4.500138441590969], [13.258240187237044, -4.882957452009165], [12.995517205465173, -4.781103203961883]]] } }, - { "type": "Feature", "properties": { "admin": "Colombia", "name": "Colombia", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-75.373223232713841, -0.15203175212045], [-75.801465827116587, 0.084801337073202], [-76.292314419240938, 0.416047268064119], [-76.576379767549383, 0.256935533037435], [-77.424984300430367, 0.395686753741117], [-77.668612840470416, 0.825893052570961], [-77.855061408179509, 0.809925034992773], [-78.855258755188686, 1.380923773601822], [-78.990935228171026, 1.691369940595251], [-78.617831387023699, 1.766404120283056], [-78.662118089497838, 2.267355454920476], [-78.427610439757302, 2.629555568854215], [-77.931542527971473, 2.696605739752925], [-77.510431281224996, 3.325016994638246], [-77.127689785455246, 3.849636135265356], [-77.496271938776999, 4.087606105969427], [-77.307601284479375, 4.667984117039452], [-77.533220587865713, 5.582811997902496], [-77.318815070286718, 5.845354112161359], [-77.476660732722266, 6.691116441266301], [-77.881571417945239, 7.223771267114783], [-77.75341386586139, 7.709839789252141], [-77.431107957656977, 7.638061224798733], [-77.242566494440069, 7.935278225125442], [-77.474722866511314, 8.524286200388216], [-77.353360765273848, 8.670504665558068], [-76.836673957003541, 8.638749497914715], [-76.086383836557843, 9.336820583529486], [-75.674600185840035, 9.443248195834597], [-75.664704149056149, 9.774003200718736], [-75.480425991503338, 10.618990383339305], [-74.906895107711975, 11.08304474532032], [-74.276752692344871, 11.102035834187586], [-74.197222663047683, 11.310472723836865], [-73.414763963500278, 11.227015285685479], [-72.62783525255962, 11.731971543825519], [-72.238194953078903, 11.955549628136325], [-71.754090135368628, 12.437303168177305], [-71.399822353791691, 12.376040757695289], [-71.137461107045866, 12.112981879113503], [-71.331583624950284, 11.776284084515805], [-71.973921678338272, 11.608671576377116], [-72.227575446242923, 11.108702093953237], [-72.614657762325194, 10.821975409381777], [-72.905286017534692, 10.45034434655477], [-73.027604132769554, 9.736770331252441], [-73.304951544880026, 9.151999823437604], [-72.788729824500379, 9.085027167187331], [-72.660494757768092, 8.62528778730268], [-72.439862230097944, 8.405275376820027], [-72.360900641555958, 8.002638454617893], [-72.479678921178831, 7.632506008327352], [-72.444487270788059, 7.42378489830048], [-72.19835242378187, 7.340430813013682], [-71.960175747348629, 6.991614895043538], [-70.674233567981503, 7.087784735538717], [-70.093312954372408, 6.960376491723109], [-69.389479946557103, 6.099860541198835], [-68.985318569602327, 6.206804917826856], [-68.265052456318216, 6.153268133972473], [-67.695087246355001, 6.267318020040645], [-67.34143958196556, 6.095468044454021], [-67.521531948502741, 5.556870428891968], [-67.744696621355203, 5.221128648291667], [-67.823012254493534, 4.503937282728898], [-67.621835903581271, 3.839481716319994], [-67.33756384954367, 3.542342230641721], [-67.303173183853417, 3.31845408773718], [-67.809938117123693, 2.820655015469569], [-67.447092047786299, 2.600280869960869], [-67.181294318293041, 2.250638129074062], [-66.876325853122566, 1.253360500489336], [-67.065048183852483, 1.130112209473225], [-67.25999752467358, 1.719998684084956], [-67.537810024674684, 2.037162787276329], [-67.868565029558823, 1.692455145673392], [-69.816973232691609, 1.714805202639624], [-69.804596727157701, 1.089081122233466], [-69.218637661400166, 0.985676581217433], [-69.252434048119042, 0.602650865070075], [-69.452396002872447, 0.706158758950693], [-70.015565761989293, 0.541414292804205], [-70.02065589057004, -0.185156345219539], [-69.577065395776586, -0.549991957200163], [-69.420485805932216, -1.122618503426409], [-69.444101935489599, -1.556287123219817], [-69.893635219996611, -4.298186944194326], [-70.394043952094975, -3.766591485207825], [-70.692682054309699, -3.742872002785858], [-70.047708502874841, -2.725156345229699], [-70.813475714791949, -2.256864515800742], [-71.413645799429773, -2.342802422702128], [-71.774760708285385, -2.169789727388937], [-72.325786505813639, -2.434218031426453], [-73.070392218707212, -2.308954359550952], [-73.659503546834586, -1.260491224781134], [-74.122395189089048, -1.002832533373848], [-74.441600511355958, -0.530820000819887], [-75.106624518520064, -0.05720549886486], [-75.373223232713841, -0.15203175212045]]] } }, - { "type": "Feature", "properties": { "admin": "Costa Rica", "name": "Costa Rica", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-82.965783047197348, 8.225027980985983], [-83.508437262694287, 8.446926581247281], [-83.711473965169063, 8.656836249216864], [-83.596313035806631, 8.830443223501417], [-83.632641567707822, 9.051385809765319], [-83.909885626953724, 9.290802720573579], [-84.303401658856345, 9.487354030795712], [-84.64764421256865, 9.615537421095707], [-84.713350796227743, 9.908051866083849], [-84.975660366541319, 10.086723130733004], [-84.911374884770211, 9.795991522658921], [-85.110923428065291, 9.557039699741308], [-85.339488288092255, 9.834542141148658], [-85.660786505866966, 9.93334747969072], [-85.797444831062819, 10.134885565629032], [-85.791708747078417, 10.439337266476612], [-85.65931372754666, 10.754330959511718], [-85.941725430021748, 10.895278428587799], [-85.712540452807289, 11.088444932494822], [-85.561851976244171, 11.217119248901593], [-84.903003302738924, 10.952303371621895], [-84.673069017256239, 11.082657172078139], [-84.355930752281026, 10.999225572142901], [-84.190178595704822, 10.793450018756671], [-83.895054490885926, 10.726839097532444], [-83.655611741861563, 10.938764146361418], [-83.402319708982944, 10.39543813724465], [-83.015676642575158, 9.992982082555553], [-82.546196255203469, 9.566134751824674], [-82.932890998043561, 9.476812038608172], [-82.927154914059145, 9.074330145702914], [-82.719183112300513, 8.925708726431493], [-82.868657192704759, 8.807266343618521], [-82.829770677405151, 8.626295477732368], [-82.9131764391242, 8.423517157419068], [-82.965783047197348, 8.225027980985983]]] } }, - { "type": "Feature", "properties": { "admin": "Cuba", "name": "Cuba", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-82.268151211257035, 23.188610744717703], [-81.404457160146819, 23.117271429938775], [-80.61876868358118, 23.105980129482994], [-79.679523688460222, 22.765303249598823], [-79.281485968732071, 22.399201565027049], [-78.347434455056472, 22.512166246017085], [-77.993295864560253, 22.277193508385928], [-77.146422492161037, 21.657851467367831], [-76.523824835908528, 21.20681956632437], [-76.194620123993175, 21.220565497314006], [-75.598222418912655, 21.01662445727413], [-75.671060350228032, 20.735091254147999], [-74.933896043584483, 20.693905137611381], [-74.178024868451246, 20.284627793859737], [-74.296648118777242, 20.050378526280678], [-74.961594611292924, 19.923435370355687], [-75.634680141894577, 19.873774318923193], [-76.323656175425981, 19.952890936762056], [-77.755480923153044, 19.855480861891873], [-77.085108405246729, 20.413353786698789], [-77.492654588516601, 20.673105373613886], [-78.137292243141573, 20.739948838783427], [-78.482826707661161, 21.028613389565848], [-78.719866502583997, 21.598113511638431], [-79.284999966127913, 21.559175319906497], [-80.217475348618635, 21.827324327069032], [-80.517534552721401, 22.037078965741756], [-81.820943366203167, 22.192056586185068], [-82.169991828118611, 22.387109279870746], [-81.79500179719264, 22.636964830001951], [-82.775897996740838, 22.688150336187057], [-83.494458787759328, 22.168517971276124], [-83.908800421875611, 22.154565334557329], [-84.052150845053248, 21.910575059491251], [-84.547030198896351, 21.801227728761639], [-84.974911058273079, 21.896028143801082], [-84.44706214062775, 22.204949856041903], [-84.23035702181177, 22.56575470630376], [-83.778239915690165, 22.78811839445569], [-83.267547573565736, 22.983041897060641], [-82.510436164057495, 23.078746649665181], [-82.268151211257035, 23.188610744717703]]] } }, - { "type": "Feature", "properties": { "admin": "Northern Cyprus", "name": "N. Cyprus", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[32.731780226377445, 35.14002594658843], [32.802473585752743, 35.145503648411363], [32.946960890440799, 35.38670339613369], [33.667227003724939, 35.373215847305509], [34.576473829900458, 35.671595567358786], [33.900804477684197, 35.245755927057608], [33.973616570783456, 35.058506374647997], [33.866439650210104, 35.093594672174177], [33.675391880027057, 35.017862860650446], [33.525685255677494, 35.038688462864066], [33.475817498515845, 35.000344550103499], [33.45592207208346, 35.101423651666401], [33.383833449036295, 35.162711900364563], [33.190977003723042, 35.173124701471373], [32.919572381326127, 35.087832749973636], [32.731780226377445, 35.14002594658843]]] } }, - { "type": "Feature", "properties": { "admin": "Cyprus", "name": "Cyprus", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[33.973616570783456, 35.058506374647997], [34.004880812320032, 34.978097846001852], [32.97982710137844, 34.571869411755436], [32.490296258277532, 34.701654771456468], [32.256667107885953, 35.103232326796622], [32.731780226377445, 35.14002594658843], [32.919572381326127, 35.087832749973636], [33.190977003723042, 35.173124701471373], [33.383833449036295, 35.162711900364563], [33.45592207208346, 35.101423651666401], [33.475817498515845, 35.000344550103499], [33.525685255677494, 35.038688462864066], [33.675391880027057, 35.017862860650446], [33.866439650210104, 35.093594672174177], [33.973616570783456, 35.058506374647997]]] } }, - { "type": "Feature", "properties": { "admin": "Czech Republic", "name": "Czech Rep.", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[16.960288120194573, 48.596982326850593], [16.49928266771877, 48.785808010445095], [16.029647251050218, 48.733899034207916], [15.253415561593979, 49.039074205107575], [14.901447381254055, 48.964401760445817], [14.33889773932472, 48.555305284207193], [13.595945672264433, 48.877171942737135], [13.031328973043427, 49.307068182973232], [12.52102420416119, 49.54741526956272], [12.415190870827441, 49.96912079528056], [12.240111118222556, 50.266337795607271], [12.96683678554319, 50.484076443069071], [13.338131951560282, 50.733234361364346], [14.05622765468817, 50.926917629594286], [14.307013380600633, 51.117267767941399], [14.570718214586062, 51.002339382524262], [15.016995883858666, 51.106674099321566], [15.490972120839725, 50.7847299261432], [16.238626743238566, 50.697732652379827], [16.176253289462263, 50.4226073268579], [16.719475945714429, 50.215746568393527], [16.868769158605655, 50.473973700556016], [17.554567091551117, 50.36214590107641], [17.649445021238986, 50.049038397819942], [18.392913852622168, 49.988628648470737], [18.85314415861361, 49.496229763377634], [18.554971144289478, 49.495015367218777], [18.399993523846174, 49.315000515330034], [18.170498488037961, 49.271514797556421], [18.104972771891848, 49.043983466175298], [17.913511590250462, 48.996492824899072], [17.886484816161808, 48.903475246773695], [17.545006951577101, 48.800019029325362], [17.101984897538895, 48.8169688991171], [16.960288120194573, 48.596982326850593]]] } }, - { "type": "Feature", "properties": { "admin": "Germany", "name": "Germany", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[9.92190636560923, 54.983104153048025], [9.939579705452898, 54.596641954153242], [10.950112338920517, 54.363607082733147], [10.939466993868447, 54.008693345752583], [11.95625247564328, 54.196485500701144], [12.518440382546711, 54.470370591847988], [13.647467075259495, 54.075510972705885], [14.119686313542555, 53.757029120491026], [14.353315463934164, 53.248171291713092], [14.074521111719431, 52.981262518925334], [14.437599725002197, 52.62485016540829], [14.685026482815713, 52.089947414755208], [14.607098422919645, 51.745188096719964], [15.016995883858781, 51.106674099321701], [14.570718214586119, 51.002339382524369], [14.307013380600662, 51.117267767941364], [14.05622765468831, 50.92691762959435], [13.338131951560397, 50.733234361364268], [12.966836785543249, 50.484076443069164], [12.240111118222668, 50.266337795607214], [12.41519087082747, 49.969120795280602], [12.521024204161332, 49.547415269562741], [13.031328973043513, 49.307068182973232], [13.595945672264575, 48.877171942737156], [13.243357374737112, 48.416114813829026], [12.884102817443873, 48.289145819687846], [13.025851271220514, 47.637583523135945], [12.93262698736606, 47.467645575543983], [12.620759718484519, 47.672387600284409], [12.141357456112869, 47.703083401065768], [11.426414015354847, 47.523766181013045], [10.544504021861597, 47.566399237653783], [10.402083774465321, 47.302487697939164], [9.896068149463188, 47.58019684507569], [9.594226108446376, 47.525058091820185], [8.522611932009793, 47.830827541691342], [8.317301466514092, 47.613579820336263], [7.466759067422286, 47.620581976911907], [7.59367638513106, 48.333019110703724], [8.099278598674855, 49.017783515003423], [6.658229607783709, 49.201958319691627], [6.186320428094176, 49.4638028021145], [6.242751092156992, 49.90222565367872], [6.043073357781109, 50.128051662794221], [6.156658155958779, 50.803721015010574], [5.988658074577812, 51.85161570902504], [6.589396599970825, 51.85202912048338], [6.842869500362381, 52.228440253297542], [7.092053256873895, 53.14404328064488], [6.905139601274128, 53.482162177130633], [7.100424838905268, 53.693932196662658], [7.936239454793961, 53.748295803433777], [8.121706170289483, 53.527792466844275], [8.800734490604667, 54.02078563090889], [8.572117954145368, 54.395646470754045], [8.526229282270206, 54.962743638725144], [9.282048780971136, 54.830865383516297], [9.92190636560923, 54.983104153048025]]] } }, - { "type": "Feature", "properties": { "admin": "Djibouti", "name": "Djibouti", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[43.081226027200152, 12.699638576707112], [43.317852410664663, 12.390148423711022], [43.286381463398911, 11.974928290245883], [42.715873650896519, 11.735640570518338], [43.145304803242126, 11.462039699748853], [42.776851841000948, 10.926878566934416], [42.55493000000012, 11.105110000000193], [42.314140000000116, 11.0342], [41.755570000000191, 11.05091], [41.739590000000177, 11.355110000000137], [41.661760000000122, 11.6312], [42.000000000000107, 12.100000000000133], [42.351560000000106, 12.54223000000013], [42.779642368344739, 12.455415757695672], [43.081226027200152, 12.699638576707112]]] } }, - { "type": "Feature", "properties": { "admin": "Denmark", "name": "Denmark", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[12.690006137755629, 55.60999095318077], [12.089991082414738, 54.800014553437919], [11.043543328504226, 55.36486379660424], [10.90391360845163, 55.779954738988735], [12.370904168353288, 56.111407375708822], [12.690006137755629, 55.60999095318077]]], [[[10.912181837618359, 56.4586213242779], [10.667803989309986, 56.081383368547208], [10.369992710011983, 56.190007229224719], [9.649984978889306, 55.469999498102041], [9.921906365609173, 54.983104153048046], [9.282048780971136, 54.830865383516155], [8.526229282270235, 54.962743638724973], [8.120310906617588, 55.517722683323612], [8.089976840862247, 56.540011705137587], [8.256581658571262, 56.809969387430286], [8.543437534223385, 57.110002753316891], [9.424469028367609, 57.172066148499468], [9.775558709358561, 57.447940782289649], [10.580005730846151, 57.730016587954843], [10.54610599126269, 57.21573273378614], [10.250000034230222, 56.890016181050456], [10.369992710011983, 56.60998159446082], [10.912181837618359, 56.4586213242779]]]] } }, - { "type": "Feature", "properties": { "admin": "Dominican Republic", "name": "Dominican Rep.", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-71.71236141629295, 19.714455878167353], [-71.587304450146604, 19.884910590082093], [-70.806706102161726, 19.880285549391981], [-70.214364997016119, 19.622885240146157], [-69.950815192327568, 19.647999986240002], [-69.769250047470067, 19.293267116772437], [-69.222125820579862, 19.313214219637096], [-69.254346076113819, 19.015196234609871], [-68.809411994080818, 18.979074408437846], [-68.317943284768958, 18.612197577381689], [-68.689315965434503, 18.205142320218609], [-69.164945848248905, 18.422648423735108], [-69.623987596297624, 18.380712998930246], [-69.952933926051529, 18.428306993071057], [-70.133232998317879, 18.245915025296892], [-70.517137213814195, 18.184290879788829], [-70.669298468697619, 18.42688589118303], [-70.999950120717173, 18.283328762276206], [-71.400209927033885, 17.598564357976596], [-71.657661912712001, 17.757572740138695], [-71.708304816358037, 18.044997056546091], [-71.687737596305865, 18.316660061104468], [-71.945112067335543, 18.616900132720257], [-71.701302659782485, 18.785416978424049], [-71.624873216422813, 19.169837958243303], [-71.71236141629295, 19.714455878167353]]] } }, - { "type": "Feature", "properties": { "admin": "Algeria", "name": "Algeria", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[11.99950564947161, 23.471668402596443], [8.572893100629782, 21.565660712159136], [5.677565952180684, 19.601206976799713], [4.267419467800038, 19.155265204336995], [3.158133172222704, 19.057364203360034], [3.146661004253899, 19.693578599521441], [2.683588494486428, 19.856230170160114], [2.060990838233919, 20.142233384679482], [1.823227573259032, 20.61080943448604], [-1.550054897457613, 22.792665920497377], [-4.92333736817423, 24.974574082940993], [-8.684399786809051, 27.395744126895998], [-8.66512447756419, 27.58947907155822], [-8.665589565454805, 27.656425889592349], [-8.674116176782972, 28.841288967396572], [-7.059227667661928, 29.579228420524522], [-6.060632290053772, 29.731699734001687], [-5.242129278982786, 30.000443020135581], [-4.859646165374469, 30.501187649043839], [-3.690441046554695, 30.896951605751152], [-3.647497931320145, 31.637294012980668], [-3.068980271812647, 31.724497992473207], [-2.616604783529567, 32.094346218386143], [-1.30789913573787, 32.262888902306095], [-1.124551153966308, 32.651521511357124], [-1.388049282222567, 32.864015000941301], [-1.733454555661467, 33.91971283623198], [-1.792985805661686, 34.527918606091198], [-2.169913702798624, 35.168396307916673], [-1.208602871089056, 35.71484874118709], [-0.127454392894606, 35.888662421200799], [0.503876580415209, 36.301272894835272], [1.466918572606545, 36.605647081034398], [3.161698846050824, 36.783904934225205], [4.815758090849129, 36.865036932923452], [5.320120070017792, 36.716518866516616], [6.261819695672611, 37.110655015606731], [7.330384962603969, 37.118380642234364], [7.737078484741003, 36.885707505840209], [8.420964389691674, 36.946427313783154], [8.217824334352313, 36.433176988260271], [8.376367628623766, 35.479876003555937], [8.140981479534302, 34.655145982393783], [7.524481642292242, 34.097376410451453], [7.612641635782181, 33.344114895148955], [8.430472853233367, 32.748337307255944], [8.439102817426116, 32.506284898400814], [9.055602654668148, 32.102691962201284], [9.482139926805273, 30.307556057246181], [9.805634392952411, 29.424638373323383], [9.859997999723443, 28.959989732371007], [9.683884718472765, 28.144173895779193], [9.756128370816779, 27.688258571884141], [9.629056023811073, 27.140953477480913], [9.716285841519747, 26.512206325785691], [9.319410841518161, 26.094324856057447], [9.910692579801774, 25.365454616796733], [9.948261346077969, 24.93695364023251], [10.30384687667836, 24.37931325937091], [10.771363559622925, 24.562532050061744], [11.560669386449002, 24.097909247325511], [11.99950564947161, 23.471668402596443]]] } }, - { "type": "Feature", "properties": { "admin": "Ecuador", "name": "Ecuador", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-80.302560594387188, -3.404856459164712], [-79.770293341780913, -2.65751189535964], [-79.986559210922394, -2.220794366061014], [-80.368783942369234, -2.685158786635788], [-80.967765469064332, -2.246942640800703], [-80.764806281238023, -1.965047702648532], [-80.933659023751702, -1.057454522306358], [-80.583370327461239, -0.906662692878683], [-80.39932471385373, -0.283703301600141], [-80.020898200180355, 0.360340074053468], [-80.090609707342097, 0.768428859862396], [-79.542762010399784, 0.982937730305963], [-78.855258755188686, 1.380923773601822], [-77.855061408179509, 0.809925034992773], [-77.668612840470416, 0.825893052570961], [-77.424984300430367, 0.395686753741117], [-76.576379767549383, 0.256935533037435], [-76.292314419240938, 0.416047268064119], [-75.801465827116587, 0.084801337073202], [-75.373223232713841, -0.15203175212045], [-75.233722703741932, -0.911416924649529], [-75.544995693652027, -1.56160979574588], [-76.635394253226707, -2.608677666843817], [-77.83790483265858, -3.003020521663103], [-78.450683966775628, -3.873096612161375], [-78.639897223612323, -4.547784112164072], [-79.205289069317715, -4.959128513207388], [-79.62497921417615, -4.454198093283494], [-80.028908047185581, -4.346090996928893], [-80.442241990872134, -4.425724379090673], [-80.46929460317692, -4.059286797708999], [-80.184014858709645, -3.821161797708043], [-80.302560594387188, -3.404856459164712]]] } }, - { "type": "Feature", "properties": { "admin": "Egypt", "name": "Egypt", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[34.9226, 29.50133], [34.64174, 29.09942], [34.42655, 28.34399], [34.15451, 27.8233], [33.92136, 27.6487], [33.58811, 27.97136], [33.13676, 28.41765], [32.42323, 29.85108], [32.32046, 29.76043], [32.73482, 28.70523], [33.34876, 27.69989], [34.10455, 26.14227], [34.47387, 25.59856], [34.79507, 25.03375], [35.69241, 23.92671], [35.49372, 23.75237], [35.52598, 23.10244], [36.69069, 22.20485], [36.86623, 22.0], [32.9, 22.0], [29.02, 22.0], [25.0, 22.0], [25.0, 25.682499996360992], [25.0, 29.238654529533452], [24.70007, 30.04419], [24.95762, 30.6616], [24.80287, 31.08929], [25.16482, 31.56915], [26.49533, 31.58568], [27.45762, 31.32126], [28.45048, 31.02577], [28.91353, 30.87005], [29.68342, 31.18686], [30.09503, 31.4734], [30.97693, 31.55586], [31.68796, 31.4296], [31.96041, 30.9336], [32.19247, 31.26034], [32.99392, 31.02407], [33.7734, 30.96746], [34.26544, 31.21936], [34.9226, 29.50133]]] } }, - { "type": "Feature", "properties": { "admin": "Eritrea", "name": "Eritrea", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[42.351560000000106, 12.54223000000013], [42.00975, 12.86582], [41.59856, 13.452090000000108], [41.15519371924983, 13.773319810435224], [40.8966, 14.118640000000138], [40.026218702969167, 14.519579169162281], [39.34061, 14.53155], [39.0994, 14.74064], [38.51295, 14.50547], [37.90607, 14.959430000000165], [37.59377, 14.2131], [36.42951, 14.42211], [36.323188917798113, 14.822480577041057], [36.753860304518575, 16.291874091044289], [36.852530000000108, 16.95655], [37.16747, 17.263140000000128], [37.904000000000103, 17.42754], [38.410089959473218, 17.998307399970312], [38.990622999839999, 16.84062612555169], [39.266110060388016, 15.922723496967246], [39.814293654140208, 15.435647284400314], [41.179274936697645, 14.491079616753209], [41.734951613132345, 13.921036892141554], [42.276830682144848, 13.34399201095442], [42.589576450375255, 13.000421250861901], [43.081226027200152, 12.699638576707112], [42.779642368344739, 12.455415757695672], [42.351560000000106, 12.54223000000013]]] } }, - { "type": "Feature", "properties": { "admin": "Spain", "name": "Spain", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-9.034817674180244, 41.880570583659669], [-8.98443315269567, 42.592775173506261], [-9.392883673530644, 43.026624660812686], [-7.978189663108308, 43.748337714200979], [-6.754491746436754, 43.567909450853918], [-5.411886359061596, 43.574239813809669], [-4.347842779955783, 43.403449205085025], [-3.51753170410609, 43.455900783861296], [-1.901351284177764, 43.422802028978332], [-1.502770961910528, 43.034014390630425], [0.338046909190581, 42.579546006839543], [0.701590610363894, 42.795734361332599], [1.826793247087153, 42.343384711265678], [2.985998976258457, 42.473015041669854], [3.039484083680548, 41.892120266276891], [2.091841668312184, 41.226088568683082], [0.810524529635188, 41.014731960609332], [0.721331007499401, 40.678318386389229], [0.106691521819869, 40.123933620762003], [-0.278711310212941, 39.309978135732713], [0.111290724293838, 38.738514309233032], [-0.467123582349103, 38.292365831041138], [-0.683389451490598, 37.642353827457811], [-1.438382127274849, 37.443063666324214], [-2.146452602538119, 36.674144192037282], [-3.415780808923386, 36.658899644511173], [-4.368900926114718, 36.677839056946141], [-4.995219285492211, 36.32470815687963], [-5.377159796561457, 35.946850083961458], [-5.866432257500902, 36.02981659600605], [-6.236693894872174, 36.367677110330327], [-6.520190802425402, 36.942913316387312], [-7.45372555177809, 37.097787583966053], [-7.537105475281022, 37.428904323876232], [-7.166507941099863, 37.803894354802217], [-7.029281175148794, 38.075764065089757], [-7.374092169616317, 38.373058580064914], [-7.098036668313126, 39.03007274022378], [-7.498632371439724, 39.629571031241802], [-7.066591559263527, 39.711891587882768], [-7.026413133156593, 40.184524237624238], [-6.864019944679383, 40.330871893874821], [-6.851126674822551, 41.111082668617513], [-6.389087693700914, 41.381815497394641], [-6.668605515967655, 41.883386949219577], [-7.251308966490822, 41.91834605566504], [-7.422512986673794, 41.792074693359822], [-8.01317460776991, 41.790886135417118], [-8.26385698081779, 42.280468654950326], [-8.671945766626719, 42.134689439454952], [-9.034817674180244, 41.880570583659669]]] } }, - { "type": "Feature", "properties": { "admin": "Estonia", "name": "Estonia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[24.312862583114615, 57.793423570376966], [24.428927850042154, 58.383413397853275], [24.061198357853179, 58.257374579493394], [23.426560092876681, 58.612753404364618], [23.339795363058641, 59.187240302153363], [24.604214308376182, 59.465853786855007], [25.864189080516631, 59.611090399811324], [26.949135776484518, 59.445803331125767], [27.981114129353237, 59.47538808861286], [28.131699253051742, 59.300825100330904], [27.420166456824941, 58.724581203844224], [27.716685825315714, 57.791899115624354], [27.288184848751509, 57.474528306703817], [26.46353234223778, 57.476388658266316], [25.602809685984365, 57.847528794986559], [25.164593540149262, 57.970156968815175], [24.312862583114615, 57.793423570376966]]] } }, - { "type": "Feature", "properties": { "admin": "Ethiopia", "name": "Ethiopia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[37.90607, 14.959430000000165], [38.51295, 14.50547], [39.0994, 14.74064], [39.34061, 14.53155], [40.026250000000111, 14.51959], [40.8966, 14.118640000000138], [41.1552, 13.77333], [41.59856, 13.452090000000108], [42.00975, 12.86582], [42.351560000000106, 12.54223000000013], [42.000000000000107, 12.100000000000133], [41.661760000000122, 11.6312], [41.739590000000177, 11.355110000000137], [41.755570000000191, 11.05091], [42.314140000000116, 11.0342], [42.55493000000012, 11.105110000000193], [42.776851841000948, 10.926878566934416], [42.55876, 10.572580000000126], [42.92812, 10.021940000000139], [43.29699, 9.540480000000169], [43.67875, 9.183580000000116], [46.94834, 7.99688], [47.78942, 8.003], [44.9636, 5.001620000000115], [43.66087, 4.95755], [42.769670000000119, 4.252590000000223], [42.12861, 4.234130000000163], [41.855083092644108, 3.918911920483764], [41.171800000000125, 3.91909], [40.768480000000118, 4.257020000000124], [39.854940000000106, 3.83879000000013], [39.559384258765917, 3.422060000000215], [38.89251, 3.50074], [38.67114, 3.61607], [38.436970000000137, 3.58851], [38.120915000000132, 3.598605], [36.85509323800823, 4.447864127672857], [36.159078632855646, 4.447864127672857], [35.817447662353622, 4.776965663462021], [35.817447662353622, 5.338232082790852], [35.298007118233095, 5.506], [34.70702, 6.59422000000012], [34.25032, 6.82607], [34.075100000000184, 7.22595], [33.56829, 7.71334], [32.954180000000228, 7.7849700000001], [33.294800000000116, 8.35458], [33.82550000000014, 8.37916], [33.97498, 8.684560000000145], [33.96162, 9.58358], [34.25745, 10.63009], [34.73115000000012, 10.910170000000106], [34.831630000000125, 11.318960000000116], [35.26049, 12.08286], [35.863630000000164, 12.57828], [36.27022, 13.563330000000118], [36.42951, 14.42211], [37.59377, 14.2131], [37.90607, 14.959430000000165]]] } }, - { "type": "Feature", "properties": { "admin": "Finland", "name": "Finland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[28.591929559043187, 69.064776923286644], [28.445943637818651, 68.36461294216403], [29.9774263852206, 67.698297024192641], [29.054588657352319, 66.944286200621917], [30.21765, 65.80598], [29.544429559046982, 64.948671576590471], [30.444684686003704, 64.204453436939076], [30.035872430142714, 63.552813625738544], [31.516092156711117, 62.867687486412869], [31.139991082490891, 62.357692776124395], [30.211107212044443, 61.780027777749673], [28.06999759289527, 60.503516547275829], [26.25517296723697, 60.423960679762487], [24.496623976344516, 60.057316392651636], [22.869694858499454, 59.846373196036211], [22.290763787533589, 60.391921291741525], [21.322244093519313, 60.720169989659503], [21.544866163832687, 61.705329494871783], [21.059211053153682, 62.607393296958726], [21.536029493910799, 63.189735012455863], [22.442744174903986, 63.817810370531276], [24.730511508897528, 64.902343655040823], [25.398067661243939, 65.111426500093728], [25.2940430030404, 65.53434642197044], [23.903378533633795, 66.006927395279604], [23.565879754335576, 66.396050930437411], [23.539473097434435, 67.936008612735236], [21.978534783626113, 68.616845608180682], [20.645592889089521, 69.106247260200846], [21.244936150810666, 69.370443020293067], [22.356237827247405, 68.841741441514898], [23.662049594830751, 68.891247463650529], [24.735679152126721, 68.649556789821446], [25.689212680776361, 69.092113755969024], [26.179622023226241, 69.825298977326113], [27.732292107867856, 70.164193020296239], [29.015572950971968, 69.766491197377974], [28.591929559043187, 69.064776923286644]]] } }, - { "type": "Feature", "properties": { "admin": "Fiji", "name": "Fiji", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[178.3736, -17.33992], [178.71806, -17.62846], [178.55271, -18.15059], [177.93266, -18.28799], [177.38146, -18.16432], [177.28504, -17.72465], [177.67087, -17.38114], [178.12557, -17.50481], [178.3736, -17.33992]]], [[[179.364142661964223, -16.801354076946847], [178.725059362997058, -17.012041674368017], [178.596838595117021, -16.63915], [179.096609362997128, -16.43398427754742], [179.413509362997075, -16.379054277547393], [180.000000000000114, -16.067132663642436], [180.000000000000114, -16.555216566639157], [179.364142661964223, -16.801354076946847]]], [[[-179.917369384765237, -16.501783135649358], [-180.0, -16.555216566639157], [-180.0, -16.067132663642436], [-179.793320109048551, -16.020882256741228], [-179.917369384765237, -16.501783135649358]]]] } }, - { "type": "Feature", "properties": { "admin": "Falkland Islands", "name": "Falkland Is.", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-61.2, -51.85], [-60.0, -51.25], [-59.15, -51.5], [-58.55, -51.1], [-57.75, -51.55], [-58.05, -51.9], [-59.4, -52.2], [-59.85, -51.85], [-60.7, -52.3], [-61.2, -51.85]]] } }, - { "type": "Feature", "properties": { "admin": "France", "name": "France", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-52.556424730018378, 2.504705308437053], [-52.939657151894963, 2.124857692875622], [-53.41846513529525, 2.053389187016037], [-53.554839240113481, 2.334896551925964], [-53.778520677288881, 2.376702785650053], [-54.088062506717264, 2.105556545414629], [-54.524754197799737, 2.311848863123785], [-54.271229620975781, 2.738747870286942], [-54.184284023644743, 3.194172268075234], [-54.011503872276812, 3.622569891774857], [-54.3995422023565, 4.212611395683481], [-54.478632981979203, 4.896755682795642], [-53.958044603070917, 5.756548163267808], [-53.618452928264837, 5.646529038918401], [-52.882141282754063, 5.409850979021598], [-51.823342861525916, 4.565768133966144], [-51.657797410678874, 4.156232408053028], [-52.249337531123977, 3.241094468596287], [-52.556424730018378, 2.504705308437053]]], [[[9.560016310269132, 42.152491970379558], [9.229752231491771, 41.380006822264441], [8.77572309737536, 41.583611965494427], [8.544212680707828, 42.256516628583078], [8.746009148807586, 42.628121853193946], [9.390000848028901, 43.009984849614725], [9.560016310269132, 42.152491970379558]]], [[[3.588184441755714, 50.378992418003563], [4.28602298342514, 49.90749664977254], [4.799221632515752, 49.985373033236314], [5.674051954784885, 49.529483547557433], [5.897759230176375, 49.442667141307155], [6.186320428094204, 49.463802802114444], [6.658229607783538, 49.201958319691549], [8.09927859867477, 49.017783515003366], [7.59367638513106, 48.333019110703724], [7.466759067422228, 47.620581976911851], [7.192202182655533, 47.449765529970982], [6.736571079138086, 47.541801255882874], [6.768713820023634, 47.287708238303672], [6.037388950228971, 46.725778713561894], [6.022609490593566, 46.272989813820502], [6.500099724970453, 46.429672756529428], [6.84359297041456, 45.991146552100659], [6.80235517744566, 45.708579820328673], [7.096652459347835, 45.333098863295859], [6.749955275101711, 45.028517971367584], [7.007562290076661, 44.254766750661382], [7.549596388386161, 44.127901109384808], [7.435184767291841, 43.693844916349164], [6.529245232783068, 43.12889232031835], [4.556962517931395, 43.399650987311581], [3.100410597352719, 43.075200507167118], [2.985998976258486, 42.473015041669882], [1.826793247087181, 42.343384711265649], [0.701590610363922, 42.795734361332642], [0.338046909190581, 42.57954600683955], [-1.502770961910471, 43.034014390630482], [-1.901351284177735, 43.422802028978332], [-1.384225226232956, 44.022610378590166], [-1.193797573237361, 46.014917710954862], [-2.225724249673788, 47.064362697938201], [-2.963276129559573, 47.570326646507958], [-4.491554938159481, 47.95495433205641], [-4.592349819344746, 48.68416046812694], [-3.295813971357745, 48.901692409859628], [-1.616510789384932, 48.644421291694577], [-1.933494025063254, 49.776341864615759], [-0.98946895995536, 49.347375800160869], [1.338761020522753, 50.127173163445256], [1.6390010921385, 50.9466063502975], [2.51357303224617, 51.14850617126185], [2.65842207196033, 50.796848049515646], [3.123251580425716, 50.780363267614504], [3.588184441755714, 50.378992418003563]]]] } }, - { "type": "Feature", "properties": { "admin": "Gabon", "name": "Gabon", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[11.093772820691923, -3.978826592630546], [10.066135288135738, -2.969482517105681], [9.405245395554969, -2.144313246269042], [8.797995639693168, -1.111301364754496], [8.830086704146423, -0.779073581550037], [9.048419630579586, -0.459351494960217], [9.291350538783687, 0.268666083167687], [9.492888624721981, 1.010119533691494], [9.83028405115564, 1.067893784993799], [11.285078973036461, 1.057661851400013], [11.276449008843711, 2.261050930180871], [11.751665480199787, 2.326757513839993], [12.359380323952218, 2.19281220133945], [12.951333855855605, 2.321615708826939], [13.07582238124675, 2.267097072759014], [13.003113641012074, 1.830896307783319], [13.282631463278816, 1.31418366129688], [14.026668735417214, 1.395677395021153], [14.276265903386953, 1.196929836426619], [13.843320753645653, 0.038757635901149], [14.316418491277741, -0.552627455247048], [14.425455763413593, -1.333406670744971], [14.299210239324564, -1.998275648612213], [13.992407260807706, -2.470804945489099], [13.109618767965626, -2.428740329603513], [12.575284458067639, -1.948511244315134], [12.495702752338159, -2.391688327650242], [11.820963575903189, -2.514161472181982], [11.478038771214299, -2.765618991714241], [11.855121697648114, -3.42687061932105], [11.093772820691923, -3.978826592630546]]] } }, - { "type": "Feature", "properties": { "admin": "United Kingdom", "name": "United Kingdom", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-5.661948614921896, 54.554603176483838], [-6.197884894220976, 53.867565009163329], [-6.953730231137994, 54.073702297575622], [-7.572167934591078, 54.059956366585979], [-7.366030646178785, 54.595840969452688], [-7.572167934591078, 55.131622219454883], [-6.733847011736144, 55.172860012423783], [-5.661948614921896, 54.554603176483838]]], [[[-3.00500484863528, 58.635000108466322], [-4.073828497728015, 57.55302480735525], [-3.055001796877661, 57.690019029360933], [-1.959280564776918, 57.684799709699512], [-2.219988165689301, 56.870017401753515], [-3.119003058271118, 55.97379303651546], [-2.085009324543023, 55.909998480851264], [-2.005675679673856, 55.804902850350217], [-1.11499101399221, 54.624986477265388], [-0.4304849918542, 54.464376125702145], [0.184981316742039, 53.325014146531018], [0.469976840831777, 52.929999498091959], [1.681530795914739, 52.739520168663987], [1.559987827164377, 52.099998480836], [1.050561557630914, 51.806760565795678], [1.4498653499503, 51.289427802121949], [0.550333693045502, 50.765738837275862], [-0.787517462558639, 50.774988918656206], [-2.489997524414377, 50.500018622431227], [-2.956273972984035, 50.696879991247002], [-3.617448085942327, 50.228355617872708], [-4.542507900399243, 50.341837063185658], [-5.245023159191134, 49.959999904981082], [-5.776566941745299, 50.159677639356815], [-4.309989793301837, 51.210001125689146], [-3.414850633142122, 51.426008612669236], [-3.422719467108322, 51.426848167406078], [-4.984367234710873, 51.593466091510962], [-5.267295701508885, 51.991400458374571], [-4.222346564134852, 52.30135569926135], [-4.770013393564112, 52.840004991255611], [-4.579999152026914, 53.495003770555165], [-3.093830673788658, 53.404547400669671], [-3.092079637047106, 53.404440822963544], [-2.945008510744343, 53.98499970154667], [-3.614700825433033, 54.60093677329256], [-3.63000545898933, 54.615012925833], [-4.844169073903003, 54.790971177786837], [-5.082526617849224, 55.061600653699358], [-4.719112107756643, 55.508472601943467], [-5.047980922862108, 55.783985500707516], [-5.586397670911139, 55.311146145236805], [-5.64499874513018, 56.275014960344791], [-6.149980841486352, 56.785009670633528], [-5.78682471355529, 57.818848375064633], [-5.009998745127574, 58.630013332750039], [-4.211494513353555, 58.550845038479153], [-3.00500484863528, 58.635000108466322]]]] } }, - { "type": "Feature", "properties": { "admin": "Georgia", "name": "Georgia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[41.55408410011065, 41.535656236327561], [41.703170607272703, 41.962942816732912], [41.453470086438379, 42.645123399417926], [40.875469191253785, 43.013628038091277], [40.321394484220313, 43.128633938156831], [39.955008579270917, 43.434997666999216], [40.07696495947976, 43.553104153002309], [40.922184686045618, 43.38215851498078], [42.394394565608806, 43.220307929042619], [43.756016880067378, 42.74082815202248], [43.931199985536828, 42.554973863284758], [44.537622918481979, 42.71199270280362], [45.470279168485703, 42.502780666669963], [45.776410353382758, 42.09244395605635], [46.404950799348818, 41.860675157227298], [46.145431756379004, 41.722802435872573], [46.637908156120574, 41.181672675128219], [46.501637404166921, 41.064444688474104], [45.962600538930381, 41.123872585609767], [45.217426385281577, 41.411451931314041], [44.972480096218071, 41.248128567055588], [43.582745802592726, 41.09214325618256], [42.619548781104484, 41.583172715819934], [41.55408410011065, 41.535656236327561]]] } }, - { "type": "Feature", "properties": { "admin": "Ghana", "name": "Ghana", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[1.060121697604927, 5.928837388528875], [-0.507637905265938, 5.343472601742675], [-1.063624640294193, 5.000547797053811], [-1.964706590167594, 4.71046214438337], [-2.856125047202397, 4.994475816259508], [-2.810701463217839, 5.389051215024109], [-3.244370083011261, 6.2504715031135], [-2.983584967450326, 7.379704901555511], [-2.56218950032624, 8.219627793811481], [-2.827496303712706, 9.642460842319775], [-2.963896246747111, 10.395334784380081], [-2.94040930827046, 10.962690334512557], [-1.203357713211431, 11.009819240762736], [-0.761575893548183, 10.936929633015053], [-0.438701544588582, 11.09834096927872], [0.023802524423701, 11.018681748900802], [-0.049784715159944, 10.706917832883928], [0.367579990245389, 10.191212876827176], [0.365900506195885, 9.46500397382948], [0.461191847342121, 8.677222601756013], [0.712029249686878, 8.312464504423827], [0.490957472342245, 7.411744289576474], [0.570384148774849, 6.914358628767188], [0.836931186536333, 6.279978745952147], [1.060121697604927, 5.928837388528875]]] } }, - { "type": "Feature", "properties": { "admin": "Guinea", "name": "Guinea", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-8.439298468448696, 7.686042792181736], [-8.722123582382123, 7.711674302598509], [-8.926064622422002, 7.309037380396375], [-9.208786383490844, 7.313920803247952], [-9.403348151069748, 7.526905218938906], [-9.33727983238458, 7.928534450711351], [-9.755342169625832, 8.541055202666923], [-10.016566534861253, 8.42850393313523], [-10.230093553091276, 8.406205552601291], [-10.505477260774667, 8.348896389189603], [-10.494315151399629, 8.715540676300433], [-10.65477047366589, 8.977178452994194], [-10.622395188835037, 9.267910061068276], [-10.839151984083299, 9.688246161330367], [-11.117481248407328, 10.045872911006283], [-11.917277390988655, 10.046983954300556], [-12.150338100625003, 9.858571682164378], [-12.425928514037562, 9.835834051955953], [-12.596719122762206, 9.620188300001969], [-12.711957566773076, 9.342711696810765], [-13.246550258832512, 8.903048610871506], [-13.685153977909788, 9.494743760613458], [-14.074044969122278, 9.886166897008248], [-14.330075852912367, 10.015719712763966], [-14.579698859098254, 10.214467271358513], [-14.693231980843501, 10.65630076745404], [-14.83955379887794, 10.876571560098139], [-15.130311245168167, 11.040411688679525], [-14.685687221728896, 11.527823798056485], [-14.382191534878727, 11.509271958863691], [-14.121406419317776, 11.677117010947693], [-13.900799729863772, 11.678718980348744], [-13.743160773157411, 11.811269029177408], [-13.828271857142122, 12.142644151249041], [-13.718743658899511, 12.247185573775507], [-13.700476040084322, 12.586182969610192], [-13.217818162478235, 12.575873521367964], [-12.499050665730561, 12.332089952031053], [-12.278599005573438, 12.354440008997285], [-12.20356482588563, 12.465647691289401], [-11.658300950557928, 12.386582749882834], [-11.513942836950587, 12.442987575729415], [-11.456168585648269, 12.076834214725336], [-11.297573614944508, 12.077971096235768], [-11.036555955438256, 12.211244615116513], [-10.870829637078211, 12.177887478072106], [-10.593223842806278, 11.923975328005977], [-10.165213792348835, 11.844083563682743], [-9.890992804392011, 12.060478623904968], [-9.567911749703212, 12.194243068892472], [-9.327616339546008, 12.334286200403451], [-9.127473517279581, 12.308060411015331], [-8.905264858424529, 12.088358059126433], [-8.786099005559462, 11.812560939984705], [-8.376304897484911, 11.393645941610627], [-8.581305304386772, 11.136245632364801], [-8.620321010767126, 10.810890814655181], [-8.407310756860026, 10.90925690352276], [-8.282357143578279, 10.792597357623842], [-8.335377163109738, 10.494811916541932], [-8.029943610048617, 10.206534939001711], [-8.22933712404682, 10.129020290563897], [-8.309616461612249, 9.789531968622439], [-8.079113735374348, 9.376223863152033], [-7.832100389019186, 8.575704250518625], [-8.203498907900878, 8.455453192575446], [-8.299048631208562, 8.316443589710302], [-8.221792364932197, 8.123328762235571], [-8.280703497744936, 7.687179673692156], [-8.439298468448696, 7.686042792181736]]] } }, - { "type": "Feature", "properties": { "admin": "Gambia", "name": "Gambia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-16.84152462408127, 13.151393947802557], [-16.713728807023468, 13.594958604379853], [-15.624596320039936, 13.623587347869556], [-15.398770310924457, 13.860368760630916], [-15.081735398813816, 13.876491807505982], [-14.687030808968483, 13.63035696049978], [-14.376713833055785, 13.625680243377371], [-14.046992356817478, 13.794067898000446], [-13.844963344772404, 13.505041612191999], [-14.277701788784553, 13.28058502853224], [-14.712197231494626, 13.298206691943774], [-15.141163295949463, 13.509511623585235], [-15.511812506562931, 13.278569647672864], [-15.691000535534991, 13.270353094938455], [-15.931295945692208, 13.130284125211331], [-16.84152462408127, 13.151393947802557]]] } }, - { "type": "Feature", "properties": { "admin": "Guinea Bissau", "name": "Guinea-Bissau", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-15.130311245168167, 11.040411688679525], [-15.664180467175523, 11.458474025920792], [-16.085214199273562, 11.524594021038236], [-16.314786749730199, 11.806514797406548], [-16.308947312881227, 11.958701890506116], [-16.613838263403277, 12.170911159712698], [-16.67745195155457, 12.38485158940105], [-16.147716844130581, 12.547761542201185], [-15.816574266004251, 12.515567124883345], [-15.548476935274005, 12.628170070847343], [-13.700476040084322, 12.586182969610192], [-13.718743658899511, 12.247185573775507], [-13.828271857142122, 12.142644151249041], [-13.743160773157411, 11.811269029177408], [-13.900799729863772, 11.678718980348744], [-14.121406419317776, 11.677117010947693], [-14.382191534878727, 11.509271958863691], [-14.685687221728896, 11.527823798056485], [-15.130311245168167, 11.040411688679525]]] } }, - { "type": "Feature", "properties": { "admin": "Equatorial Guinea", "name": "Eq. Guinea", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[9.492888624721981, 1.010119533691494], [9.305613234096255, 1.160911363119183], [9.649158155972627, 2.283866075037735], [11.276449008843711, 2.261050930180871], [11.285078973036461, 1.057661851400013], [9.83028405115564, 1.067893784993799], [9.492888624721981, 1.010119533691494]]] } }, - { "type": "Feature", "properties": { "admin": "Greece", "name": "Greece", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[23.699980096133, 35.705004380835526], [24.246665073348673, 35.368022365860149], [25.025015496528873, 35.424995632461979], [25.769207797964182, 35.354018052709073], [25.745023227651579, 35.179997666966209], [26.290002882601719, 35.299990342747911], [26.164997592887651, 35.004995429009789], [24.724982130642299, 34.919987697889603], [24.735007358506941, 35.084990546197581], [23.514978468528106, 35.27999156345097], [23.699980096133, 35.705004380835526]]], [[[26.604195590936282, 41.562114569661098], [26.294602085075777, 40.936261298174244], [26.056942172965499, 40.824123440100827], [25.44767703624418, 40.852545477861455], [24.925848422960932, 40.947061672523226], [23.714811232200809, 40.687129218095116], [24.407998894964063, 40.124992987624083], [23.89996788910258, 39.962005520175573], [23.342999301860797, 39.960997829745786], [22.813987664488959, 40.476005153966547], [22.626298862404777, 40.256561184239175], [22.849747755634805, 39.659310818025759], [23.350027296652595, 39.190011298167256], [22.97309939951554, 38.97090322524965], [23.53001631032495, 38.51000112563846], [24.025024855248937, 38.219992987616443], [24.040011020613601, 37.655014553369419], [23.115002882589145, 37.920011298162215], [23.409971958111065, 37.409990749657389], [22.77497195810863, 37.305010077456551], [23.154225294698612, 36.422505804992042], [22.4900281104511, 36.410000108377446], [21.670026482843692, 36.84498647719419], [21.295010613701574, 37.644989325504689], [21.120034213961329, 38.31032339126272], [20.730032179454579, 38.769985256498778], [20.217712029712853, 39.340234686839629], [20.150015903410516, 39.624997666984022], [20.615000441172779, 40.110006822259422], [20.67499677906363, 40.434999904943048], [20.999989861747274, 40.580003973953964], [21.020040317476422, 40.842726955725873], [21.674160597426969, 40.931274522457976], [22.055377638444266, 41.149865831052686], [22.597308383889008, 41.130487168943198], [22.76177, 41.3048], [22.952377150166562, 41.337993882811212], [23.692073601992455, 41.309080918943849], [24.492644891058031, 41.583896185872035], [25.19720136892553, 41.234485988930651], [26.106138136507177, 41.328898830727823], [26.11704186372091, 41.826904608724725], [26.604195590936282, 41.562114569661098]]]] } }, - { "type": "Feature", "properties": { "admin": "Greenland", "name": "Greenland", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-46.76379, 82.62796], [-43.40644, 83.22516], [-39.89753, 83.18018], [-38.62214, 83.54905], [-35.08787, 83.64513], [-27.10046, 83.51966], [-20.84539, 82.72669], [-22.69182, 82.34165], [-26.51753, 82.29765], [-31.9, 82.2], [-31.39646, 82.02154], [-27.85666, 82.13178], [-24.84448, 81.78697], [-22.90328, 82.09317], [-22.07175, 81.73449], [-23.16961, 81.15271], [-20.62363, 81.52462], [-15.76818, 81.91245], [-12.77018, 81.71885], [-12.20855, 81.29154], [-16.28533, 80.58004], [-16.85, 80.35], [-20.04624, 80.17708], [-17.73035, 80.12912], [-18.9, 79.4], [-19.70499, 78.75128], [-19.67353, 77.63859], [-18.47285, 76.98565], [-20.03503, 76.94434], [-21.67944, 76.62795], [-19.83407, 76.09808], [-19.59896, 75.24838], [-20.66818, 75.15585], [-19.37281, 74.29561], [-21.59422, 74.22382], [-20.43454, 73.81713], [-20.76234, 73.46436], [-22.17221, 73.30955], [-23.56593, 73.30663], [-22.31311, 72.62928], [-22.29954, 72.18409], [-24.27834, 72.59788], [-24.79296, 72.3302], [-23.44296, 72.08016], [-22.13281, 71.46898], [-21.75356, 70.66369], [-23.53603, 70.471], [-24.30702, 70.85649], [-25.54341, 71.43094], [-25.20135, 70.75226], [-26.36276, 70.22646], [-23.72742, 70.18401], [-22.34902, 70.12946], [-25.02927, 69.2588], [-27.74737, 68.47046], [-30.67371, 68.12503], [-31.77665, 68.12078], [-32.81105, 67.73547], [-34.20196, 66.67974], [-36.35284, 65.9789], [-37.04378, 65.93768], [-38.37505, 65.69213], [-39.81222, 65.45848], [-40.66899, 64.83997], [-40.68281, 64.13902], [-41.1887, 63.48246], [-42.81938, 62.68233], [-42.41666, 61.90093], [-42.86619, 61.07404], [-43.3784, 60.09772], [-44.7875, 60.03676], [-46.26364, 60.85328], [-48.26294, 60.85843], [-49.23308, 61.40681], [-49.90039, 62.38336], [-51.63325, 63.62691], [-52.14014, 64.27842], [-52.27659, 65.1767], [-53.66166, 66.09957], [-53.30161, 66.8365], [-53.96911, 67.18899], [-52.9804, 68.35759], [-51.47536, 68.72958], [-51.08041, 69.14781], [-50.87122, 69.9291], [-52.013585, 69.574925], [-52.55792, 69.42616], [-53.45629, 69.283625], [-54.68336, 69.61003], [-54.75001, 70.28932], [-54.35884, 70.821315], [-53.431315, 70.835755], [-51.39014, 70.56978], [-53.10937, 71.20485], [-54.00422, 71.54719], [-55.0, 71.406536967272558], [-55.83468, 71.65444], [-54.71819, 72.58625], [-55.32634, 72.95861], [-56.12003, 73.64977], [-57.32363, 74.71026], [-58.59679, 75.09861], [-58.58516, 75.51727], [-61.26861, 76.10238], [-63.39165, 76.1752], [-66.06427, 76.13486], [-68.50438, 76.06141], [-69.66485, 76.37975], [-71.40257, 77.00857], [-68.77671, 77.32312], [-66.76397, 77.37595], [-71.04293, 77.63595], [-73.297, 78.04419], [-73.15938, 78.43271], [-69.37345, 78.91388], [-65.7107, 79.39436], [-65.3239, 79.75814], [-68.02298, 80.11721], [-67.15129, 80.51582], [-63.68925, 81.21396], [-62.23444, 81.3211], [-62.65116, 81.77042], [-60.28249, 82.03363], [-57.20744, 82.19074], [-54.13442, 82.19962], [-53.04328, 81.88833], [-50.39061, 82.43883], [-48.00386, 82.06481], [-46.59984, 81.985945], [-44.523, 81.6607], [-46.9007, 82.19979], [-46.76379, 82.62796]]] } }, - { "type": "Feature", "properties": { "admin": "Guatemala", "name": "Guatemala", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-90.095554572290951, 13.73533763270073], [-90.608624030300817, 13.909771429901948], [-91.232410244496037, 13.927832342987953], [-91.689746670279106, 14.126218166556452], [-92.227750006869812, 14.538828640190925], [-92.203229539747298, 14.830102850804066], [-92.087215949252041, 15.064584662328436], [-92.229248623406249, 15.251446641495857], [-91.747960171255912, 16.066564846251719], [-90.464472622422647, 16.069562079324651], [-90.438866950222021, 16.410109768128091], [-90.600846727240906, 16.470777899638758], [-90.711821865587694, 16.687483018454724], [-91.081670091500641, 16.918476670799404], [-91.453921271515128, 17.252177232324168], [-91.002269253284197, 17.254657701074176], [-91.001519945015943, 17.817594916245707], [-90.067933519230948, 17.819326076727474], [-89.143080410503302, 17.808318996649316], [-89.15080603713092, 17.015576687075832], [-89.229121670269265, 15.886937567605166], [-88.930612759135244, 15.887273464415072], [-88.604586147805833, 15.706380113177358], [-88.518364020526846, 15.855389105690971], [-88.22502275262201, 15.727722479713901], [-88.680679694355618, 15.346247056535301], [-89.15481096063354, 15.066419175674806], [-89.225220099631244, 14.874286200413618], [-89.145535041037149, 14.67801911056908], [-89.353325975282772, 14.424132798719112], [-89.587342698916544, 14.362586167859485], [-89.5342193265205, 14.244815578666302], [-89.7219339668207, 14.134228013561694], [-90.064677903996568, 13.881969509328924], [-90.095554572290951, 13.73533763270073]]] } }, - { "type": "Feature", "properties": { "admin": "Guyana", "name": "Guyana", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-59.758284878159181, 8.367034816924045], [-59.10168412945864, 7.99920197187049], [-58.482962205628041, 7.347691351750696], [-58.454876064677414, 6.832787380394463], [-58.078103196837361, 6.809093736188641], [-57.542218593970631, 6.321268215353355], [-57.147436489476874, 5.973149929219161], [-57.307245856339492, 5.073566595882225], [-57.914288906472123, 4.812626451024413], [-57.860209520078691, 4.576801052260449], [-58.044694383360664, 4.060863552258382], [-57.601568976457848, 3.334654649260684], [-57.281433478409703, 3.333491929534119], [-57.150097825739898, 2.768926906745406], [-56.53938574891454, 1.89952260986692], [-56.782704230360814, 1.863710842288653], [-57.33582292339689, 1.948537705895759], [-57.660971035377358, 1.682584947105638], [-58.113449876525003, 1.507195135907025], [-58.429477098205957, 1.46394196207872], [-58.540012986878288, 1.26808828369252], [-59.030861579002639, 1.317697658692722], [-59.646043667221242, 1.786893825686789], [-59.718545701726732, 2.249630438644359], [-59.974524909084543, 2.755232652188055], [-59.815413174057852, 3.606498521332085], [-59.538039923731219, 3.958802598481937], [-59.767405768458701, 4.423502915866606], [-60.111002366767373, 4.574966538914082], [-59.980958624904865, 5.014061184098138], [-60.213683437731319, 5.2444863956876], [-60.733574184803707, 5.2002772078619], [-61.410302903881941, 5.959068101419616], [-61.139415045807937, 6.234296779806142], [-61.159336310456467, 6.696077378766317], [-60.543999192940966, 6.856584377464881], [-60.295668097562377, 7.043911444522918], [-60.637972785063752, 7.414999904810853], [-60.550587938058186, 7.779602972846178], [-59.758284878159181, 8.367034816924045]]] } }, - { "type": "Feature", "properties": { "admin": "Honduras", "name": "Honduras", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-87.316654425795463, 12.984685777229], [-87.48940873894712, 13.29753489832393], [-87.793111131526501, 13.384480495655165], [-87.723502977229288, 13.785050360565602], [-87.859515347021599, 13.893312486217097], [-88.065342576840109, 13.964625962779788], [-88.503997972349609, 13.845485948130939], [-88.541230841815931, 13.98015473068352], [-88.843072882832743, 14.140506700085208], [-89.058511929057644, 14.340029405164213], [-89.353325975282786, 14.424132798719084], [-89.145535041037164, 14.678019110569149], [-89.22522009963123, 14.874286200413675], [-89.154810960633526, 15.066419175674863], [-88.680679694355575, 15.346247056535386], [-88.225022752621925, 15.727722479714027], [-88.121153123715359, 15.688655096901355], [-87.901812506852394, 15.864458319558194], [-87.615680101252309, 15.878798529519198], [-87.522920905288444, 15.797278957578779], [-87.367762417332116, 15.846940009011286], [-86.903191291028165, 15.756712958229565], [-86.440945604177372, 15.782835394753189], [-86.119233974944322, 15.893448798073958], [-86.00195431185783, 16.005405788634388], [-85.68331743034625, 15.953651841693949], [-85.444003872402547, 15.885749009662444], [-85.182443610357183, 15.909158433490628], [-84.98372188997881, 15.995923163308698], [-84.526979743167118, 15.857223619037423], [-84.36825558138257, 15.835157782448729], [-84.063054572266807, 15.648244126849132], [-83.773976610026111, 15.42407176356687], [-83.410381232420363, 15.27090281825377], [-83.147219000974104, 14.995829169164207], [-83.489988776366005, 15.01626719813566], [-83.628584967772866, 14.880073960830368], [-83.975721401693576, 14.749435939996483], [-84.228341640952394, 14.748764146376626], [-84.449335903648588, 14.62161428472251], [-84.64958207877963, 14.666805324761865], [-84.820036790694289, 14.819586696832628], [-84.924500698572302, 14.790492865452332], [-85.052787441736868, 14.551541042534719], [-85.148750576502877, 14.560196844943615], [-85.165364549484806, 14.354369615125048], [-85.514413011400265, 14.079011745657905], [-85.698665330736944, 13.960078436737998], [-85.801294725268505, 13.8360549992376], [-86.096263800790595, 14.03818736414723], [-86.312142096689826, 13.771356106008223], [-86.520708177419891, 13.778487453664464], [-86.755086636079596, 13.754845485890936], [-86.733821784191463, 13.263092556201398], [-86.880557013684353, 13.254204209847213], [-87.005769009127434, 13.025794379117254], [-87.316654425795463, 12.984685777229]]] } }, - { "type": "Feature", "properties": { "admin": "Croatia", "name": "Croatia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[18.829838087650039, 45.908877671891837], [19.072768995854172, 45.521511135432078], [19.390475701584588, 45.236515611342369], [19.005486281010118, 44.860233669609144], [18.553214145591646, 45.08158966733145], [17.861783481526398, 45.067740383477137], [17.00214603035101, 45.233776760430935], [16.534939406000202, 45.211607570977705], [16.318156772535868, 45.004126695325901], [15.959367303133373, 45.233776760430935], [15.750026075918978, 44.81871165626255], [16.239660271884528, 44.351143296885695], [16.456442905348862, 44.041239732431265], [16.916156447017325, 43.667722479825663], [17.297373488034449, 43.446340643887353], [17.674921502358981, 43.028562527023603], [18.56, 42.65], [18.450016310304814, 42.47999136002931], [17.509970330483323, 42.84999461523914], [16.930005730871638, 43.209998480800373], [16.015384555737679, 43.507215481127204], [15.174453973052094, 44.243191229827907], [15.376250441151793, 44.317915350922064], [14.920309279040504, 44.73848399512945], [14.901602410550874, 45.076060289076104], [14.258747592839992, 45.233776760430935], [13.952254672917032, 44.802123521496853], [13.65697553880119, 45.136935126315947], [13.679403110415816, 45.484149074884996], [13.715059848697248, 45.500323798192419], [14.411968214585496, 45.466165676447403], [14.595109490627916, 45.63494090431282], [14.935243767972961, 45.471695054702757], [15.327674594797424, 45.452316392593325], [15.323953891672428, 45.731782538427687], [15.671529575267638, 45.8341535507979], [15.768732944408608, 46.23810822202352], [16.564808383864939, 46.503750922219794], [16.882515089595412, 46.380631822284428], [17.630066359129554, 45.951769110694087], [18.456062452882858, 45.759481106136143], [18.829838087650039, 45.908877671891837]]] } }, - { "type": "Feature", "properties": { "admin": "Haiti", "name": "Haiti", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-73.189790615517595, 19.915683905511909], [-72.579672817663607, 19.871500555902351], [-71.71236141629295, 19.714455878167353], [-71.624873216422813, 19.169837958243303], [-71.701302659782485, 18.785416978424049], [-71.945112067335543, 18.616900132720257], [-71.687737596305865, 18.316660061104468], [-71.708304816358037, 18.044997056546091], [-72.372476162389333, 18.214960842354053], [-72.844411180294856, 18.145611070218362], [-73.454554816365018, 18.217906398994696], [-73.922433234335642, 18.030992743395], [-74.458033616824764, 18.342549953682703], [-74.369925299767118, 18.664907538319408], [-73.449542202432696, 18.526052964751141], [-72.694937099890623, 18.445799465401858], [-72.334881557896992, 18.66842153571525], [-72.791649542924873, 19.101625067618027], [-72.784104783810264, 19.483591416903405], [-73.41502234566174, 19.639550889560276], [-73.189790615517595, 19.915683905511909]]] } }, - { "type": "Feature", "properties": { "admin": "Hungary", "name": "Hungary", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[16.202298211337361, 46.852385972676949], [16.534267612380372, 47.496170966169103], [16.340584344150411, 47.712901923201215], [16.903754103267257, 47.714865627628321], [16.979666782304033, 48.123497015976298], [17.488472934649813, 47.867466132186209], [17.857132602620023, 47.758428860050365], [18.696512892336923, 47.88095368101439], [18.777024773847668, 48.081768296900627], [19.174364861739885, 48.111378892603859], [19.66136355965849, 48.266614895208647], [19.769470656013109, 48.2026911484636], [20.239054396249344, 48.327567247096916], [20.473562045989862, 48.562850043321809], [20.801293979584919, 48.62385407164237], [21.872236362401729, 48.319970811550007], [22.085608351334848, 48.422264309271782], [22.640819939878746, 48.150239569687351], [22.710531447040488, 47.882193915389394], [22.09976769378283, 47.672439276716695], [21.626514926853869, 46.994237779318148], [21.021952345471245, 46.316087958351886], [20.220192498462833, 46.127468980486547], [19.596044549241579, 46.171729844744533], [18.829838087649957, 45.908877671891915], [18.456062452882858, 45.759481106136121], [17.630066359129554, 45.95176911069418], [16.882515089595298, 46.380631822284428], [16.564808383864854, 46.503750922219822], [16.370504998447412, 46.841327216166498], [16.202298211337361, 46.852385972676949]]] } }, - { "type": "Feature", "properties": { "admin": "Indonesia", "name": "Indonesia", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[120.715608758630438, -10.239581394087862], [120.295014276206871, -10.258649997603525], [118.967808465654684, -9.55796925215803], [119.900309686361609, -9.361340427287514], [120.425755649905398, -9.665921319215796], [120.775501743656719, -9.969675388227456], [120.715608758630438, -10.239581394087862]]], [[[124.435950148619384, -10.14000090906144], [123.579981724136701, -10.359987481327961], [123.459989048354998, -10.239994805546171], [123.55000939340745, -9.900015557497978], [123.980008986508096, -9.290026950724693], [124.96868248911619, -8.892790215697046], [125.070019972840612, -9.089987481322835], [125.088520135601073, -9.393173109579321], [124.435950148619384, -10.14000090906144]]], [[[117.900018345207741, -8.095681247594923], [118.260616489740471, -8.362383314653327], [118.87845991422212, -8.280682875199828], [119.126506789223086, -8.705824883665072], [117.97040164598927, -8.906639499551257], [117.277730747549015, -9.040894870645557], [116.74014082241662, -9.032936700072637], [117.083737420725313, -8.457157891476539], [117.632024367342126, -8.44930307376819], [117.900018345207741, -8.095681247594923]]], [[[122.903537225436082, -8.094234307490735], [122.756982863456287, -8.649807631060638], [121.2544905945701, -8.933666273639941], [119.924390903809567, -8.810417982623873], [119.920928582846102, -8.44485890059107], [120.715091994307542, -8.236964613480863], [121.341668735846554, -8.53673959720602], [122.007364536630405, -8.46062021244016], [122.903537225436082, -8.094234307490735]]], [[[108.623478631628927, -6.777673841990675], [110.539227329553285, -6.877357679881682], [110.759575636845909, -6.465186455921751], [112.614811232556349, -6.946035658397589], [112.978768345188087, -7.594213148634578], [114.478935174621142, -7.776527601760277], [115.705526971501058, -8.370806573116864], [114.564511346496488, -8.75181690840483], [113.464733514460875, -8.348947442257424], [112.559672479301028, -8.376180922075163], [111.522061395312448, -8.302128594600957], [110.586149530074294, -8.122604668819021], [109.427667270955183, -7.740664157749761], [108.693655226681301, -7.641600437046219], [108.277763299596302, -7.766657403192579], [106.454102004016136, -7.354899590690947], [106.280624220812285, -6.924899997590201], [105.365486281355516, -6.851416110871169], [106.051645949327053, -5.895918877794499], [107.265008579540165, -5.954985039904058], [108.072091099074683, -6.345762220895237], [108.486846144649235, -6.421984958525768], [108.623478631628927, -6.777673841990675]]], [[[134.724624465066654, -6.214400730009286], [134.210133905168902, -6.895237725454704], [134.112775506730998, -6.142467136259014], [134.290335728085779, -5.783057549669038], [134.499625278867882, -5.445042006047898], [134.727001580952106, -5.737582289252158], [134.724624465066654, -6.214400730009286]]], [[[127.249215122588893, -3.459065036638889], [126.874922723498855, -3.790982761249579], [126.183802118027302, -3.607376397316556], [125.989033644719257, -3.177273451351325], [127.00065148326496, -3.12931772218441], [127.249215122588893, -3.459065036638889]]], [[[130.471344028851775, -3.09376433676762], [130.834836053592767, -3.858472181822761], [129.990546502808115, -3.446300957862817], [129.155248651242403, -3.362636813982248], [128.590683628453633, -3.428679294451256], [127.898891229362334, -3.393435967628192], [128.135879347852779, -2.843650404474914], [129.370997756060888, -2.802154229344551], [130.471344028851775, -3.09376433676762]]], [[[134.143367954647772, -1.151867364103594], [134.422627394753022, -2.769184665542383], [135.457602980694674, -3.367752780779113], [136.293314243718754, -2.30704233155609], [137.4407377463275, -1.703513278819372], [138.329727411044757, -1.70268645590265], [139.18492068904294, -2.051295668143637], [139.926684198160387, -2.409051608900284], [141.000210402591847, -2.600151055515624], [141.017056919519007, -5.85902190513802], [141.033851760013874, -9.117892754760417], [140.143415155192542, -8.297167657100955], [139.127766554928087, -8.096042982620942], [138.881476678624949, -8.380935153846094], [137.614473911692812, -8.41168263105976], [138.039099155835174, -7.597882175327354], [138.668621454014783, -7.320224704623072], [138.407913853102343, -6.232849216337483], [137.927839797110835, -5.393365573755998], [135.989250116113453, -4.546543877789047], [135.164597609599667, -4.462931410340771], [133.662880487197867, -3.538853448097526], [133.367704705946778, -4.024818617370314], [132.983955519747326, -4.112978610860281], [132.75694095268895, -3.746282647317129], [132.753788690319197, -3.311787204607071], [131.989804315316178, -2.820551039240455], [133.066844517143466, -2.460417982598443], [133.780030959203486, -2.479848321140209], [133.69621178602614, -2.214541517753687], [132.232373488494204, -2.212526136894325], [131.836221958544684, -1.617161960459597], [130.942839797082797, -1.432522067880796], [130.519558140180038, -0.937720228686075], [131.867537876513609, -0.695461114101818], [132.380116408416768, -0.369537855636977], [133.985548130428384, -0.780210463060442], [134.143367954647772, -1.151867364103594]]], [[[125.240500522971573, 1.419836127117605], [124.43703535369734, 0.427881171058971], [123.685504998876695, 0.235593166500877], [122.723083123872854, 0.431136786293337], [121.056724888189081, 0.381217352699451], [120.18308312386273, 0.23724681233422], [120.040869582195455, -0.519657891444851], [120.935905389490699, -1.408905938323372], [121.475820754076167, -0.955962009285116], [123.34056481332847, -0.615672702643081], [123.258399285984481, -1.076213067228337], [122.822715285331597, -0.930950616055881], [122.388529901215364, -1.516858005381124], [121.508273553555455, -1.904482924002422], [122.454572381684272, -3.186058444840881], [122.271896193532541, -3.529500013852696], [123.170962762546537, -4.683693129091707], [123.162332798353759, -5.34060393638596], [122.628515252778683, -5.634591159694494], [122.236394484548057, -5.282933037948281], [122.71956912647704, -4.46417164471579], [121.738233677254357, -4.851331475446499], [121.48946333220124, -4.574552504091215], [121.619171177253861, -4.188477878438674], [120.898181593917684, -3.602105401222828], [120.972388950688767, -2.627642917494909], [120.305452915529884, -2.931603692235725], [120.39004723519173, -4.097579034037223], [120.430716587405371, -5.528241062037778], [119.796543410319487, -5.67340016034565], [119.36690555224493, -5.379878024927804], [119.653606398600104, -4.459417412944958], [119.498835483885969, -3.49441171632651], [119.078344354326987, -3.487021986508764], [118.767768996252869, -2.801999200047688], [119.180973748858662, -2.147103773612798], [119.323393996255049, -1.35314706788047], [119.825998976725828, 0.154254462073496], [120.035701938966341, 0.566477362465804], [120.885779250167687, 1.309222723796835], [121.666816847826965, 1.013943589681076], [122.927566766451818, 0.875192368977465], [124.077522414242836, 0.917101955566139], [125.065989211121803, 1.643259182131558], [125.240500522971573, 1.419836127117605]]], [[[128.688248732620707, 1.132385972494106], [128.635952183141342, 0.258485826006179], [128.120169712436166, 0.356412665199286], [127.968034295768845, -0.252077325037533], [128.379998813999691, -0.780003757331286], [128.100015903842291, -0.899996433112974], [127.69647464407501, -0.266598402511505], [127.399490187693743, 1.011721503092573], [127.600511509309044, 1.81069082275718], [127.932377557487484, 2.174596258956555], [128.004156121940809, 1.628531398928331], [128.594559360875451, 1.540810655112864], [128.688248732620707, 1.132385972494106]]], [[[117.875627069166001, 1.827640692548911], [118.996747267738158, 0.902219143066048], [117.811858351717788, 0.784241848143722], [117.478338657706047, 0.102474676917026], [117.521643507966587, -0.803723239753211], [116.560048455879496, -1.487660821136231], [116.533796828275158, -2.483517347832901], [116.148083937648607, -4.012726332214014], [116.000857782049067, -3.657037448749008], [114.864803094544513, -4.106984144714416], [114.468651564595064, -3.49570362713382], [113.755671828264099, -3.439169610206519], [113.256994256647545, -3.118775729996854], [112.068126255340644, -3.478392022316071], [111.703290643359992, -2.994442233902631], [111.04824018762821, -3.049425957861188], [110.223846063275971, -2.934032484553483], [110.070935500124335, -1.592874037282414], [109.571947869914041, -1.314906507984489], [109.091873813922518, -0.459506524257051], [108.952657505328162, 0.415375474444346], [109.069136183714036, 1.341933905437642], [109.663260125773718, 2.006466986494984], [109.830226678508836, 1.338135687664191], [110.514060907027101, 0.773131415200993], [111.159137811326559, 0.976478176269509], [111.797548455860408, 0.904441229654651], [112.380251906383648, 1.410120957846757], [112.859809198052176, 1.497790025229946], [113.805849644019531, 1.217548732911041], [114.621355422017473, 1.430688177898886], [115.134037306785231, 2.821481838386219], [115.51907840379198, 3.169238389494395], [115.86551720587677, 4.306559149590156], [117.01521447150634, 4.306094061699468], [117.882034946770162, 4.137551377779487], [117.313232456533513, 3.234428208830578], [118.048329705885351, 2.287690131027361], [117.875627069166001, 1.827640692548911]]], [[[105.817655063909356, -5.852355645372411], [104.710384149191498, -5.873284600450644], [103.868213332130736, -5.037314955264974], [102.584260695406897, -4.220258884298203], [102.156173130300999, -3.614146009946765], [101.399113397225051, -2.799777113459171], [100.902502882900137, -2.05026213949786], [100.141980828860596, -0.650347588710957], [99.26373986206022, 0.183141587724663], [98.970011020913319, 1.042882391764536], [98.601351352943084, 1.823506577965616], [97.699597609449881, 2.453183905442116], [97.17694217324987, 3.30879059489861], [96.424016554757316, 3.86885976807791], [95.380876092513475, 4.970782172053673], [95.293026157617305, 5.479820868344816], [95.936862827541745, 5.439513251157108], [97.484882033277088, 5.24632090903401], [98.369169142655679, 4.268370266126366], [99.142558628335792, 3.590349636240915], [99.693997837322399, 3.174328518075156], [100.641433546961665, 2.099381211755798], [101.658012323007313, 2.083697414555189], [102.498271112073212, 1.398700466310217], [103.076840448013002, 0.561361395668854], [103.838396030698348, 0.104541734208666], [103.437645298274973, -0.711945896002845], [104.010788608824001, -1.059211521004229], [104.369991489684878, -1.084843031421016], [104.539490187602155, -1.782371514496716], [104.887892694113987, -2.340425306816655], [105.622111444116982, -2.42884368246807], [106.10859337771268, -3.06177662517895], [105.857445916774111, -4.305524997579723], [105.817655063909356, -5.852355645372411]]]] } }, - { "type": "Feature", "properties": { "admin": "India", "name": "India", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[77.837450799474553, 35.494009507787759], [78.912268914713209, 34.321936346975782], [78.811086460285722, 33.506198025032404], [79.208891636068572, 32.994394639613709], [79.176128777995501, 32.483779812137705], [78.458446486325997, 32.61816437431272], [78.738894484374001, 31.515906073527056], [79.721366815107089, 30.882714748654724], [81.11125613802929, 30.183480943313398], [80.476721225917373, 29.729865220655334], [80.088424513676259, 28.794470119740136], [81.057202589851997, 28.416095282499036], [81.999987420584958, 27.925479234319987], [83.304248895199535, 27.364505723575554], [84.675017938173767, 27.234901231387528], [85.25177859898335, 26.726198431906337], [86.024392938179147, 26.630984605408567], [87.22747195836628, 26.39789805755607], [88.060237664749806, 26.414615383402484], [88.174804315140904, 26.810405178325944], [88.043132765661198, 27.445818589786818], [88.120440708369841, 27.876541652939586], [88.730325962278528, 28.086864732367509], [88.814248488320544, 27.299315904239361], [88.835642531289366, 27.098966376243755], [89.744527622438838, 26.71940298105995], [90.37327477413406, 26.875724188742872], [91.217512648486405, 26.808648179628019], [92.033483514375078, 26.838310451763554], [92.10371178585973, 27.4526140406332], [91.69665652869665, 27.771741848251661], [92.503118931043616, 27.896876329046442], [93.413347609432662, 28.640629380807219], [94.565990431702929, 29.277438055939978], [95.404802280664612, 29.031716620392125], [96.117678664131006, 29.452802028922459], [96.586590610747479, 28.830979519154337], [96.248833449287758, 28.411030992134435], [97.327113885490007, 28.261582749946331], [97.402561476636123, 27.88253611908544], [97.051988559968066, 27.699058946233144], [97.133999058015277, 27.08377350514996], [96.419365675850941, 27.264589341739221], [95.124767694074933, 26.573572089132295], [95.155153436262566, 26.001307277932078], [94.603249139385355, 25.162495428970399], [94.552657912171611, 24.675238348890328], [94.106741977925054, 23.850740871673477], [93.325187615942767, 24.078556423432197], [93.286326938859247, 23.043658352138998], [93.060294224014598, 22.703110663335565], [93.166127557348361, 22.278459580977099], [92.672720981825549, 22.041238918541247], [92.146034783906799, 23.62749868417259], [91.869927606171302, 23.62434642180278], [91.706475050832083, 22.985263983649183], [91.158963250699713, 23.503526923104381], [91.467729933643668, 24.072639471934789], [91.915092807994398, 24.130413723237108], [92.376201613334786, 24.976692816664961], [91.799595981822065, 25.14743174895731], [90.872210727912105, 25.13260061288954], [89.920692580121838, 25.269749864192171], [89.832480910199592, 25.965082098895476], [89.355094028687276, 26.014407253518065], [88.56304935094974, 26.446525580342716], [88.209789259802477, 25.768065700782707], [88.931553989623069, 25.238692328384769], [88.30637251175601, 24.866079413344199], [88.084422235062405, 24.501657212821918], [88.699940220090895, 24.233714911388557], [88.529769728553759, 23.631141872649163], [88.876311883503064, 22.879146429937826], [89.031961297566198, 22.055708319582973], [88.888765903685396, 21.690588487224741], [88.208497348995209, 21.703171698487804], [86.975704380240259, 21.495561631755201], [87.033168572948853, 20.743307806882406], [86.499351027373777, 20.151638495356604], [85.060265740909671, 19.478578802971096], [83.941005893899998, 18.302009792549722], [83.189217156917834, 17.671221421778977], [82.192792189465905, 17.016636053937813], [82.191241896497175, 16.556664130107844], [81.692719354177456, 16.3102192245079], [80.791999139330116, 15.951972357644488], [80.324895867843864, 15.899184882058346], [80.025069207686428, 15.136414903214144], [80.23327355339039, 13.835770778859978], [80.286293572921849, 13.006260687710832], [79.862546828128487, 12.056215318240886], [79.85799930208681, 10.357275091997108], [79.340511509115984, 10.308854274939618], [78.885345493489169, 9.54613597252772], [79.189719679688281, 9.216543687370146], [78.27794070833049, 8.933046779816932], [77.94116539908434, 8.25295909263974], [77.539897902337927, 7.965534776232331], [76.592978957021657, 8.899276231314188], [76.130061476551063, 10.299630031775518], [75.746467319648488, 11.308250637248303], [75.396101108709573, 11.781245022015822], [74.864815708316812, 12.741935736537895], [74.616717156883524, 13.992582912649677], [74.443859490867197, 14.617221787977693], [73.534199253233368, 15.990652167214957], [73.119909295549419, 17.928570054592495], [72.820909458308634, 19.208233547436162], [72.824475132136783, 20.41950328214153], [72.630533481745388, 21.356009426351001], [71.175273471973938, 20.757441311114228], [70.470458611945091, 20.877330634031381], [69.164130080038817, 22.089298000572697], [69.644927606082391, 22.450774644454334], [69.349596795534325, 22.843179633062686], [68.176645135373377, 23.691965033456704], [68.842599318318761, 24.359133612560932], [71.0432401874682, 24.356523952730193], [70.844699334602822, 25.215102037043511], [70.282873162725579, 25.722228705339823], [70.168926629522005, 26.491871649678835], [69.514392938113119, 26.940965684511365], [70.61649620960192, 27.989196275335861], [71.777665643200308, 27.913180243434521], [72.823751662084689, 28.961591701772047], [73.450638462217412, 29.976413479119863], [74.421380242820263, 30.97981476493117], [74.405928989564998, 31.692639471965272], [75.258641798813187, 32.271105455040491], [74.451559279278698, 32.764899603805489], [74.104293654277328, 33.441473293586846], [73.749948358051952, 34.317698879527846], [74.240202671204955, 34.748887030571247], [75.757060988268321, 34.504922593721311], [76.871721632804011, 34.653544012992732], [77.837450799474553, 35.494009507787759]]] } }, - { "type": "Feature", "properties": { "admin": "Ireland", "name": "Ireland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-6.197884894220989, 53.86756500916335], [-6.032985398777609, 53.153164170944336], [-6.788856573910847, 52.260117906292322], [-8.561616583683557, 51.669301255899349], [-9.977085740590267, 51.820454820353071], [-9.16628251793078, 52.864628811242667], [-9.688524542672452, 53.881362616585285], [-8.327987433292007, 54.664518947968624], [-7.572167934591064, 55.131622219454854], [-7.366030646178785, 54.595840969452709], [-7.572167934591064, 54.059956366585986], [-6.953730231138065, 54.073702297575622], [-6.197884894220989, 53.86756500916335]]] } }, - { "type": "Feature", "properties": { "admin": "Iran", "name": "Iran", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[53.921597934795543, 37.198918361961255], [54.800303989486558, 37.392420762678178], [55.511578403551894, 37.964117133123153], [56.180374790273319, 37.935126654607423], [56.619366082592805, 38.121394354803478], [57.330433790928964, 38.029229437810933], [58.436154412678192, 37.522309475243794], [59.234761997316795, 37.412987982730336], [60.377637973883864, 36.52738312432836], [61.123070509694131, 36.491597194966239], [61.21081709172573, 35.650072333309218], [60.80319339380744, 34.404101874319856], [60.528429803311575, 33.676446031217999], [60.963700392505991, 33.528832302376252], [60.536077915290761, 32.981268825811561], [60.863654819588952, 32.182919623334421], [60.941944614511115, 31.548074652628745], [61.699314406180811, 31.379506130492661], [61.78122155136343, 30.735850328081231], [60.874248488208778, 29.829238999952604], [61.369308709564926, 29.303276272085917], [61.771868117118615, 28.699333807890792], [62.727830438085974, 28.259644883735383], [62.755425652929851, 27.378923448184985], [63.23389773952028, 27.217047024030702], [63.316631707619578, 26.756532497661659], [61.874187453056535, 26.239974880472097], [61.497362908784183, 25.078237006118492], [59.616134067630831, 25.380156561783775], [58.525761346272297, 25.609961656185725], [57.39725141788238, 25.739902045183634], [56.97076582217754, 26.966106268821356], [56.492138706290199, 27.14330475515019], [55.723710158110059, 26.964633490501036], [54.715089552637252, 26.480657863871507], [53.493096958231334, 26.812368882753042], [52.483597853409599, 27.580849107365488], [51.520762566947404, 27.865689602158291], [50.852948032439528, 28.814520575469377], [50.115008579311571, 30.14777252859971], [49.576850213423988, 29.9857152369324], [48.941333449098536, 30.31709035900403], [48.567971225789748, 29.926778265903515], [48.014568312376085, 30.452456773392594], [48.00469811380831, 30.985137437457237], [47.685286085812258, 30.984853217079621], [47.849203729042095, 31.709175930298663], [47.334661492711895, 32.469155381799105], [46.109361606639304, 33.017287299118998], [45.416690708199035, 33.967797756479577], [45.648459507028079, 34.748137722303007], [46.15178795755093, 35.093258775364284], [46.076340366404786, 35.67738332777548], [45.420618117053202, 35.977545884742817], [44.77267, 37.17045], [44.225755649600522, 37.971584377589345], [44.421402622257538, 38.281281236314534], [44.109225294782334, 39.428136298168091], [44.793989699081934, 39.713002631177041], [44.9526880226503, 39.335764675446363], [45.457721795438765, 38.874139105783051], [46.143623081248812, 38.74120148371221], [46.505719842317966, 38.770605373686287], [47.685079380083081, 39.508363959301207], [48.060095249225235, 39.582235419262453], [48.355529412637871, 39.2887649602769], [48.010744256386474, 38.794014797514514], [48.634375441284803, 38.27037750910096], [48.883249139202483, 38.32024526626261], [49.199612257693332, 37.582874253889877], [50.147771437384606, 37.37456655532133], [50.842354363819695, 36.872814235983384], [52.26402469260141, 36.700421657857696], [53.825789829326411, 36.965030829408228], [53.921597934795543, 37.198918361961255]]] } }, - { "type": "Feature", "properties": { "admin": "Iraq", "name": "Iraq", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[45.420618117053202, 35.977545884742817], [46.076340366404786, 35.67738332777548], [46.15178795755093, 35.093258775364284], [45.648459507028079, 34.748137722303007], [45.416690708199035, 33.967797756479577], [46.109361606639304, 33.017287299118998], [47.334661492711895, 32.469155381799105], [47.849203729042095, 31.709175930298663], [47.685286085812258, 30.984853217079621], [48.00469811380831, 30.985137437457237], [48.014568312376085, 30.452456773392594], [48.567971225789748, 29.926778265903515], [47.974519077349889, 29.975819200148493], [47.302622104690947, 30.059069932570711], [46.568713413281742, 29.099025173452283], [44.709498732284736, 29.178891099559376], [41.889980910007829, 31.190008653278362], [40.399994337736238, 31.889991766887931], [39.195468377444961, 32.16100881604266], [38.792340529136077, 33.378686428352218], [41.00615888851992, 34.419372260062111], [41.383965285005807, 35.628316555314349], [41.289707472505448, 36.358814602192261], [41.837064243340954, 36.605853786763568], [42.349591098811764, 37.22987254490409], [42.779125604021822, 37.385263576805741], [43.942258742047287, 37.256227525372942], [44.293451775902852, 37.001514390606289], [44.772699008977689, 37.170444647768427], [45.420618117053202, 35.977545884742817]]] } }, - { "type": "Feature", "properties": { "admin": "Iceland", "name": "Iceland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-14.508695441129232, 66.455892239031414], [-14.739637417041605, 65.808748277440287], [-13.609732224979807, 65.126671047619851], [-14.9098337467949, 64.36408193628867], [-17.794438035543418, 63.67874909123384], [-18.656245896874989, 63.496382961675806], [-19.972754685942757, 63.643634955491514], [-22.762971971110154, 63.960178941495371], [-21.778484259517676, 64.402115790455497], [-23.955043911219104, 64.891129869233481], [-22.184402635170354, 65.084968166760291], [-22.227423265053329, 65.378593655042721], [-24.326184047939332, 65.611189276788451], [-23.650514695723082, 66.262519029395207], [-22.134922451250883, 66.410468655046856], [-20.576283738679543, 65.732112128351417], [-19.056841600001587, 66.276600857194751], [-17.798623826559048, 65.993853257909763], [-16.167818976292121, 66.526792304135853], [-14.508695441129232, 66.455892239031414]]] } }, - { "type": "Feature", "properties": { "admin": "Israel", "name": "Israel", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.719918247222743, 32.709192409794859], [35.545665317534535, 32.393992011030569], [35.183930291491428, 32.532510687788935], [34.974640740709319, 31.866582343059715], [35.225891554512422, 31.754341132121759], [34.970506626125989, 31.616778469360803], [34.927408481594554, 31.35343537040141], [35.397560662586038, 31.489086005167572], [35.420918409981958, 31.100065822874349], [34.922602573391423, 29.501326198844517], [34.26543338393568, 31.219360866820146], [34.556371697738903, 31.548823960896989], [34.48810713068135, 31.605538845337314], [34.752587111151165, 32.07292633720116], [34.955417107896771, 32.827376410446369], [35.098457472480668, 33.080539252244257], [35.126052687324538, 33.090900376918775], [35.460709262846699, 33.089040025356276], [35.552796665190805, 33.264274807258012], [35.821100701650231, 33.277426459276292], [35.836396925608618, 32.868123277308506], [35.700797967274745, 32.716013698857374], [35.719918247222743, 32.709192409794859]]] } }, - { "type": "Feature", "properties": { "admin": "Italy", "name": "Italy", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[15.52037601081383, 38.231155096991465], [15.160242954171732, 37.444045518537813], [15.309897902089002, 37.134219468731793], [15.099988234119445, 36.61998729099539], [14.335228712632013, 36.996630967754747], [13.826732618879927, 37.104531358380186], [12.431003859108809, 37.612949937483812], [12.570943637755132, 38.126381130519682], [13.741156447004581, 38.03496552179535], [14.761249220446157, 38.143873602850498], [15.52037601081383, 38.231155096991465]]], [[[9.210011834356264, 41.209991360024212], [9.809975213264973, 40.500008856766094], [9.669518670295671, 39.177376410471787], [9.214817742559486, 39.240473334300127], [8.806935662479729, 38.906617743478471], [8.428302443077113, 39.171847032216611], [8.388253208050939, 40.378310858718798], [8.159998406617659, 40.950007229163774], [8.709990675500107, 40.899984442705225], [9.210011834356264, 41.209991360024212]]], [[[12.376485223040842, 46.767559109069872], [13.806475457421552, 46.50930613869118], [13.698109978905475, 46.016778062517368], [13.937630242578335, 45.59101593686465], [13.141606479554294, 45.736691799495411], [12.328581170306304, 45.38177806251484], [12.383874952858601, 44.885374253919075], [12.261453484759157, 44.600482082694008], [12.589237094786482, 44.091365871754462], [13.526905958722491, 43.587727362637899], [14.029820997787024, 42.761007798832473], [15.142569614327952, 41.955139675456891], [15.926191033601892, 41.961315009115729], [16.169897088290409, 41.740294908203417], [15.889345737377793, 41.541082261718195], [16.785001661860573, 41.179605617836579], [17.519168735431204, 40.877143459632229], [18.376687452882575, 40.355624904942651], [18.4802470231954, 40.168866278639818], [18.293385044028096, 39.810774441073235], [17.738380161213279, 40.277671006830289], [16.869595981522334, 40.442234605463838], [16.448743116937319, 39.795400702466473], [17.171489698971495, 39.424699815420716], [17.052840610429339, 38.902871202137291], [16.635088331781841, 38.843572496082395], [16.100960727613053, 37.985898749334176], [15.684086948314498, 37.908849188787023], [15.687962680736318, 38.214592800441849], [15.891981235424705, 38.750942491199218], [16.109332309644312, 38.964547024077682], [15.718813510814638, 39.544072374014938], [15.413612501698818, 40.048356838535163], [14.998495721098234, 40.172948716790913], [14.703268263414767, 40.604550279292617], [14.06067182786526, 40.786347968095434], [13.627985060285393, 41.188287258461649], [12.888081902730418, 41.253089504555604], [12.106682570044907, 41.7045348170574], [11.191906365614184, 42.355425319989671], [10.511947869517794, 42.93146251074721], [10.200028924204046, 43.920006822274608], [9.702488234097812, 44.036278794931313], [8.888946160526869, 44.366336167979533], [8.428560825238575, 44.23122813575241], [7.8507666357832, 43.767147935555236], [7.435184767291841, 43.693844916349164], [7.549596388386161, 44.127901109384808], [7.007562290076661, 44.254766750661382], [6.749955275101711, 45.028517971367584], [7.096652459347835, 45.333098863295859], [6.80235517744566, 45.708579820328673], [6.84359297041456, 45.991146552100659], [7.273850945676683, 45.776947740250748], [7.755992058959832, 45.824490057959267], [8.316629672894377, 46.16364248309084], [8.489952426801294, 46.005150865251736], [8.966305779667833, 46.03693187111115], [9.18288170740311, 46.440214748716976], [9.92283654139035, 46.314899400409182], [10.363378126678665, 46.48357127540983], [10.4427014502466, 46.893546250997431], [11.048555942436504, 46.751358547546396], [11.164827915093325, 46.941579494812729], [12.153088006243079, 47.115393174826423], [12.376485223040842, 46.767559109069872]]]] } }, - { "type": "Feature", "properties": { "admin": "Jamaica", "name": "Jamaica", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-77.569600796199197, 18.490525417550483], [-76.896618618462114, 18.400866807524078], [-76.365359056285527, 18.16070058844759], [-76.19965857614163, 17.886867173732963], [-76.902561408175671, 17.868237819891743], [-77.206341315403449, 17.701116237859818], [-77.766022915340599, 17.861597398342237], [-78.337719285785596, 18.225967922432226], [-78.217726610003865, 18.454532782459193], [-77.797364671525614, 18.524218451404774], [-77.569600796199197, 18.490525417550483]]] } }, - { "type": "Feature", "properties": { "admin": "Jordan", "name": "Jordan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.545665317534535, 32.393992011030569], [35.719918247222743, 32.709192409794859], [36.834062127435537, 32.312937526980768], [38.792340529136077, 33.378686428352218], [39.195468377444961, 32.16100881604266], [39.004885695152545, 32.010216986614971], [37.002165561681004, 31.508412990844736], [37.998848911294367, 30.508499864213128], [37.668119744626374, 30.338665269485894], [37.503581984209028, 30.003776150018396], [36.740527784987243, 29.865283311476183], [36.501214227043583, 29.505253607698702], [36.068940870922049, 29.19749461518445], [34.956037225084252, 29.356554673778835], [34.922602573391423, 29.501326198844517], [35.420918409981958, 31.100065822874349], [35.397560662586038, 31.489086005167572], [35.545251906076196, 31.782504787720832], [35.545665317534535, 32.393992011030569]]] } }, - { "type": "Feature", "properties": { "admin": "Japan", "name": "Japan", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[134.638428176003856, 34.149233710256418], [134.766379022358478, 33.806334743783673], [134.20341596897083, 33.201177883429622], [133.792950067276479, 33.521985175097583], [133.280268182508848, 33.289570420864941], [133.014858026257855, 32.704567369104772], [132.363114862192674, 32.989382025681373], [132.371176385630179, 33.463642483040068], [132.924372593314786, 34.060298570282036], [133.492968377822194, 33.944620876596694], [133.904106073136347, 34.364931138642611], [134.638428176003856, 34.149233710256418]]], [[[140.976387567305267, 37.142074286440156], [140.599769728762084, 36.343983466124534], [140.774074334882641, 35.842877102190229], [140.253279250245072, 35.138113918593653], [138.975527785396196, 34.667600002576101], [137.217598911691198, 34.606285915661843], [135.792983026268871, 33.46480520276662], [135.120982700745401, 33.849071153289053], [135.07943484918269, 34.596544908174813], [133.340316196831964, 34.375938218720755], [132.156770868051296, 33.904933376596503], [130.986144647343451, 33.885761420216276], [132.000036248910021, 33.149992377244608], [131.33279015515734, 31.450354519164836], [130.68631798718593, 31.029579169228235], [130.202419875204953, 31.418237616495411], [130.447676222862128, 32.319474595665717], [129.81469160371887, 32.610309556604385], [129.408463169472554, 33.296055813117583], [130.353935174684636, 33.604150702441693], [130.878450962447118, 34.232742824840031], [131.884229364143891, 34.749713853487911], [132.617672967662486, 35.433393052709413], [134.608300815977771, 35.731617743465812], [135.677537876528902, 35.527134100886819], [136.723830601142424, 37.304984239240376], [137.390611607004473, 36.827390651998819], [138.857602166906247, 37.827484646143454], [139.426404657142882, 38.215962225897634], [140.054790073812057, 39.438807481436378], [139.883379347899847, 40.563312486323682], [140.305782505453664, 41.195005194659551], [141.368973423426667, 41.378559882160282], [141.914263136970476, 39.991616115878678], [141.884600864834965, 39.18086456965149], [140.959489373945729, 38.174000962876583], [140.976387567305267, 37.142074286440156]]], [[[143.910161981379474, 44.174099839853724], [144.613426548439634, 43.960882880217511], [145.320825230083074, 44.384732977875437], [145.543137241802754, 43.262088324550596], [144.059661899999867, 42.988358262700551], [143.183849725517291, 41.995214748699183], [141.611490920172457, 42.678790595056071], [141.067286411706618, 41.58459381770799], [139.95510623592105, 41.56955597591103], [139.817543573159924, 42.563758856774392], [140.312087030193169, 43.333272610032644], [141.380548944259999, 43.388824774746489], [141.671952345953912, 44.772125352551477], [141.967644891527982, 45.551483466161343], [143.142870314709796, 44.510358384776957], [143.910161981379474, 44.174099839853724]]]] } }, - { "type": "Feature", "properties": { "admin": "Kazakhstan", "name": "Kazakhstan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[70.962314894499272, 42.26615428320553], [70.388964878220776, 42.081307684897517], [69.070027296835221, 41.384244289712335], [68.632482944620037, 40.668680731766855], [68.259895867795635, 40.662324530594894], [67.985855747351806, 41.135990708982199], [66.714047072216587, 41.168443508461557], [66.510648634715707, 41.987644151368549], [66.023391554635609, 41.994646307944031], [66.098012322865188, 42.997660020513074], [64.90082441595932, 43.728080552742647], [63.18578698105658, 43.650074978197999], [62.013300408786264, 43.504476630215649], [61.05831994003249, 44.405816962250576], [60.239971958258472, 44.784036770194739], [58.689989048095796, 45.500013739598721], [58.503127068928428, 45.58680430763296], [55.928917270741167, 44.995858466159163], [55.968191359283011, 41.30864166926937], [55.455251092353805, 41.259859117185826], [54.755345493392653, 42.04397146256661], [54.079417759014959, 42.324109402020831], [52.944293247291725, 42.116034247397572], [52.502459751196277, 41.783315538086462], [52.446339145727208, 42.027150783855561], [52.692112257707251, 42.443895372073364], [52.501426222550315, 42.792297878585188], [51.342427199108201, 43.132974758469338], [50.891291945200223, 44.031033637053774], [50.339129266161358, 44.284015611338468], [50.305642938036257, 44.609835516938908], [51.278503452363211, 44.514854234386448], [51.316899041556034, 45.245998236667894], [52.167389764215713, 45.408391425145098], [53.040876499245194, 45.259046535821753], [53.220865512917712, 46.23464590105992], [53.042736850807771, 46.853006089864486], [52.042022739475598, 46.804636949239232], [51.191945428274252, 47.048704738953909], [50.034083286342465, 46.608989976582208], [49.10116, 46.39933000000012], [48.593241001180495, 46.561034247415471], [48.694733514201729, 47.075628160177921], [48.057253045449258, 47.743752753279516], [47.315231154170242, 47.715847479841948], [46.466445753776256, 48.394152330104923], [47.043671502476506, 49.1520388860976], [46.751596307162728, 49.35600576435376], [47.549480421749301, 50.454698391311119], [48.577841424357523, 49.874759629915658], [48.702381626181008, 50.605128485712825], [50.766648390512145, 51.692762356159889], [52.328723585830957, 51.71865224873811], [54.53287845237621, 51.026239732459302], [55.716940545479801, 50.62171662047853], [56.777961053296551, 51.043551337277037], [58.363290643146733, 51.063653469438563], [59.642282342370599, 50.545442206415707], [59.932807244715484, 50.842194118851857], [61.337424350840919, 50.799070136104248], [61.588003371024158, 51.2726587998432], [59.967533807215531, 51.960420437215696], [60.927268507740258, 52.447548326215028], [60.739993117114572, 52.719986477257734], [61.699986199800584, 52.979996446334255], [60.978066440683151, 53.664993394579128], [61.436591424409052, 54.006264553434775], [65.178533563095911, 54.354227810272093], [65.66687584825398, 54.601266994843449], [68.169100376258811, 54.970391750704309], [69.068166945272864, 55.385250149143516], [70.865266554655122, 55.169733588270091], [71.180131056609397, 54.133285224008247], [72.224150018202167, 54.376655381886728], [73.508516066384388, 54.035616766976588], [73.425678745420427, 53.489810289109741], [74.384845005190044, 53.546861070360066], [76.891100294913414, 54.490524400441913], [76.525179477854735, 54.177003485727127], [77.800915561844221, 53.404414984747561], [80.035559523441663, 50.864750881547238], [80.568446893235475, 51.388336493528456], [81.945985548839914, 50.812195949906354], [83.383003778012366, 51.069182847693909], [83.935114780618832, 50.889245510453563], [84.416377394553052, 50.311399644565817], [85.115559523462011, 50.117302964877631], [85.541269972682457, 49.69285858824815], [86.829356723989619, 49.826674709668154], [87.359970330762664, 49.214980780629148], [86.598776483103379, 48.549181626980605], [85.768232863308285, 48.455750637396974], [85.72048383987071, 47.452969468773112], [85.164290399113355, 47.000955715516099], [83.180483839860443, 47.330031236350848], [82.458925815769106, 45.539649563166499], [81.947070753918112, 45.317027492853235], [79.966106398441397, 44.917516994804643], [80.866206496101356, 43.180362046881037], [80.180150180994289, 42.920067857426936], [80.259990268885332, 42.349999294599101], [79.643645460940135, 42.496682847659649], [79.142177361979776, 42.856092434249589], [77.658391961583206, 42.960685533208327], [76.000353631498555, 42.988022365890622], [75.636964959622091, 42.877899888676765], [74.212865838522575, 43.298339341803505], [73.645303582660901, 43.091271877609863], [73.489757521462337, 42.500894476891276], [71.844638299450637, 42.845395412765178], [71.186280552052253, 42.704292914392219], [70.962314894499272, 42.26615428320553]]] } }, - { "type": "Feature", "properties": { "admin": "Kenya", "name": "Kenya", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[40.993, -0.85829], [41.58513, -1.68325], [40.88477, -2.08255], [40.63785, -2.49979], [40.26304, -2.57309], [40.12119, -3.27768], [39.80006, -3.68116], [39.60489, -4.34653], [39.20222, -4.67677], [37.7669, -3.67712], [37.69869, -3.09699], [34.07262, -1.05982], [33.903711197104521, -0.95], [33.893568969666937, 0.109813537861896], [34.18, 0.515], [34.6721, 1.17694], [35.03599, 1.90584], [34.59607, 3.05374], [34.47913, 3.5556], [34.005, 4.249884947362047], [34.620196267853871, 4.847122742081987], [35.298007118232974, 5.506], [35.817447662353501, 5.338232082790795], [35.817447662353501, 4.776965663461889], [36.159078632855639, 4.447864127672768], [36.855093238008116, 4.447864127672768], [38.120915, 3.598605], [38.43697, 3.58851], [38.67114, 3.61607], [38.89251, 3.50074], [39.559384258765846, 3.42206], [39.85494, 3.83879], [40.76848, 4.25702], [41.1718, 3.91909], [41.855083092643966, 3.918911920483726], [40.98105, 2.78452], [40.993, -0.85829]]] } }, - { "type": "Feature", "properties": { "admin": "Kyrgyzstan", "name": "Kyrgyzstan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[70.96231489449913, 42.266154283205481], [71.186280552052111, 42.704292914392127], [71.84463829945058, 42.845395412765093], [73.489757521462337, 42.500894476891311], [73.645303582660901, 43.09127187760982], [74.212865838522546, 43.298339341803363], [75.636964959622006, 42.877899888676673], [76.000353631498442, 42.988022365890664], [77.658391961583206, 42.960685533208256], [79.142177361979762, 42.856092434249511], [79.643645460940107, 42.496682847659514], [80.259990268885289, 42.349999294599044], [80.119430373051358, 42.123940741538235], [78.543660923175295, 41.582242540038685], [78.187196893225959, 41.185315863604792], [76.904484490877067, 41.066485907549634], [76.526368035797432, 40.427946071935111], [75.467827996730691, 40.562072251948663], [74.776862420556043, 40.366425279291619], [73.822243686828287, 39.893973497063179], [73.960013055318413, 39.660008449861721], [73.67537926625478, 39.431236884105594], [71.784693637991992, 39.279463202464363], [70.549161818325601, 39.604197902986492], [69.464886915977516, 39.526683254548693], [69.559609816368507, 40.103211371412968], [70.648018833299957, 39.935753892571157], [71.014198032520156, 40.244365546218226], [71.774875115856545, 40.145844428053763], [73.055417108049156, 40.86603302668945], [71.870114780570447, 41.392900092121259], [71.157858514291576, 41.143587144529107], [70.420022414028196, 41.519998277343134], [71.259247674448218, 42.167710679689456], [70.96231489449913, 42.266154283205481]]] } }, - { "type": "Feature", "properties": { "admin": "Cambodia", "name": "Cambodia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[103.497279901139677, 10.632555446815926], [103.090689731867229, 11.153660590047162], [102.58493248902667, 12.186594956913279], [102.348099399833004, 13.39424734135822], [102.988422072361601, 14.225721136934464], [104.281418084736586, 14.416743068901363], [105.218776890078871, 14.27321177821069], [106.04394616091551, 13.881091009979952], [106.496373325630856, 14.57058380783428], [107.382727492301058, 14.202440904186968], [107.614547967562402, 13.535530707244202], [107.491403029410861, 12.337205918827944], [105.810523716253101, 11.567614650921225], [106.249670037869436, 10.961811835163585], [105.199914992292321, 10.889309800658094], [104.334334751403446, 10.486543687375228], [103.497279901139677, 10.632555446815926]]] } }, - { "type": "Feature", "properties": { "admin": "South Korea", "name": "Korea", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[128.349716424676586, 38.612242946927843], [129.212919549680038, 37.432392483055942], [129.460449660358137, 36.784189154602821], [129.468304478066472, 35.632140611303939], [129.091376580929563, 35.08248423923142], [128.18585045787907, 34.890377102186385], [127.386519403188373, 34.475673733044111], [126.485747511908713, 34.390045884736473], [126.3739197124291, 34.934560451795939], [126.559231398627773, 35.684540513647896], [126.117397902532261, 36.725484727519252], [126.860143263863364, 36.893924058574612], [126.174758742376213, 37.749685777328033], [126.237338901881742, 37.840377916000271], [126.683719924018888, 37.804772854151174], [127.073308547067342, 38.256114813788393], [127.780035435090966, 38.304535630845884], [128.205745884311426, 38.370397243801882], [128.349716424676586, 38.612242946927843]]] } }, - { "type": "Feature", "properties": { "admin": "Kosovo", "name": "Kosovo", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.76216, 42.05186], [20.717310000000108, 41.84711], [20.59023, 41.85541], [20.52295, 42.21787], [20.28374, 42.32025], [20.0707, 42.58863], [20.25758, 42.81275], [20.49679, 42.88469], [20.63508, 43.21671], [20.81448, 43.27205], [20.95651, 43.13094], [21.143395, 43.068685000000123], [21.27421, 42.90959], [21.43866, 42.86255], [21.63302, 42.67717], [21.77505, 42.6827], [21.66292, 42.43922], [21.54332, 42.32025], [21.576635989402117, 42.245224397061847], [21.352700000000134, 42.2068], [20.76216, 42.05186]]] } }, - { "type": "Feature", "properties": { "admin": "Kuwait", "name": "Kuwait", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[47.974519077349889, 29.975819200148493], [48.183188510944483, 29.534476630159759], [48.09394331237641, 29.306299343374999], [48.416094191283939, 28.552004299426663], [47.708850538937376, 28.526062730416136], [47.459821811722819, 29.002519436147217], [46.568713413281742, 29.099025173452283], [47.302622104690947, 30.059069932570711], [47.974519077349889, 29.975819200148493]]] } }, - { "type": "Feature", "properties": { "admin": "Laos", "name": "Lao PDR", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[105.218776890078871, 14.27321177821069], [105.544338413517664, 14.723933620660414], [105.589038527450128, 15.570316066952856], [104.779320509868768, 16.441864935771445], [104.716947056092465, 17.428858954330078], [103.956476678485288, 18.240954087796872], [103.200192091893726, 18.309632066312769], [102.998705682387694, 17.961694647691598], [102.413004998791592, 17.932781683824281], [102.113591750092453, 18.109101670804161], [101.059547560635139, 17.512497259994486], [101.035931431077742, 18.408928330961611], [101.282014601651667, 19.462584947176762], [100.606293573003128, 19.508344427971217], [100.548881056726856, 20.109237982661124], [100.115987583417819, 20.41784963630818], [100.329101190189519, 20.786121731036229], [101.180005324307515, 21.436572984294024], [101.270025669359939, 21.201651923095177], [101.803119744882906, 21.174366766845065], [101.652017856861491, 22.318198757409544], [102.170435825613552, 22.464753119389297], [102.754896274834636, 21.675137233969462], [103.203861118586431, 20.766562201413745], [104.435000441508024, 20.758733221921528], [104.822573683697073, 19.886641750563879], [104.183387892678908, 19.624668077060214], [103.896532017026701, 19.265180975821799], [105.094598423281496, 18.666974595611073], [105.925762160264, 17.485315456608955], [106.55600792849566, 16.604283962464802], [107.312705926545576, 15.908538316303177], [107.564525181103875, 15.202173163305554], [107.382727492301058, 14.202440904186968], [106.496373325630856, 14.57058380783428], [106.04394616091551, 13.881091009979952], [105.218776890078871, 14.27321177821069]]] } }, - { "type": "Feature", "properties": { "admin": "Lebanon", "name": "Lebanon", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.821100701650231, 33.277426459276292], [35.552796665190805, 33.264274807258012], [35.460709262846699, 33.089040025356276], [35.126052687324538, 33.090900376918775], [35.48220665868012, 33.905450140919434], [35.979592319489392, 34.610058295219126], [35.998402540843628, 34.644914048799997], [36.448194207512095, 34.59393524834406], [36.611750115715886, 34.201788641897174], [36.066460402172048, 33.824912421192543], [35.821100701650231, 33.277426459276292]]] } }, - { "type": "Feature", "properties": { "admin": "Liberia", "name": "Liberia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-7.712159389669749, 4.364565944837721], [-7.974107224957249, 4.355755113131961], [-9.004793667018673, 4.832418524592199], [-9.913420376006682, 5.593560695819205], [-10.765383876986643, 6.140710760925556], [-11.438779466182053, 6.785916856305746], [-11.199801805048278, 7.105845648624735], [-11.14670427086838, 7.396706447779534], [-10.695594855176477, 7.939464016141085], [-10.230093553091276, 8.406205552601291], [-10.016566534861253, 8.42850393313523], [-9.755342169625832, 8.541055202666923], [-9.33727983238458, 7.928534450711351], [-9.403348151069748, 7.526905218938906], [-9.208786383490844, 7.313920803247952], [-8.926064622422002, 7.309037380396375], [-8.722123582382123, 7.711674302598509], [-8.439298468448696, 7.686042792181736], [-8.485445522485348, 7.395207831243068], [-8.385451626000572, 6.911800645368742], [-8.602880214868618, 6.467564195171659], [-8.311347622094017, 6.193033148621081], [-7.993692592795879, 6.126189683451541], [-7.570152553731686, 5.707352199725903], [-7.53971513511176, 5.313345241716517], [-7.63536821128403, 5.188159084489455], [-7.712159389669749, 4.364565944837721]]] } }, - { "type": "Feature", "properties": { "admin": "Libya", "name": "Libya", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[14.8513, 22.862950000000119], [14.143870883855239, 22.491288967371126], [13.581424594790459, 23.040506089769274], [11.999505649471697, 23.471668402596432], [11.560669386449032, 24.09790924732561], [10.771363559622952, 24.562532050061741], [10.303846876678445, 24.379313259370967], [9.948261346078024, 24.936953640232613], [9.910692579801774, 25.365454616796789], [9.319410841518218, 26.094324856057476], [9.716285841519662, 26.512206325785652], [9.629056023811073, 27.140953477481041], [9.756128370816779, 27.688258571884198], [9.68388471847288, 28.144173895779311], [9.859997999723472, 28.959989732371064], [9.805634392952353, 29.424638373323369], [9.482139926805415, 30.307556057246181], [9.970017124072966, 30.539324856075375], [10.056575148161697, 30.961831366493517], [9.950225050505194, 31.376069647745275], [10.636901482799484, 31.761420803345679], [10.944789666394511, 32.081814683555358], [11.43225345220378, 32.368903103152824], [11.488787469131008, 33.136995754523234], [12.66331, 32.79278], [13.08326, 32.87882], [13.91868, 32.71196], [15.24563, 32.26508], [15.71394, 31.37626], [16.61162, 31.18218], [18.02109, 30.76357], [19.08641, 30.26639], [19.57404, 30.52582], [20.05335, 30.98576], [19.82033, 31.751790000000135], [20.13397, 32.2382], [20.85452, 32.7068], [21.54298, 32.8432], [22.89576, 32.63858], [23.2368, 32.19149], [23.6091300000001, 32.18726], [23.9275, 32.01667], [24.92114, 31.89936], [25.16482, 31.56915], [24.80287, 31.08929], [24.95762, 30.6616], [24.70007, 30.04419], [25.00000000000011, 29.238654529533552], [25.00000000000011, 25.682499996360995], [25.00000000000011, 22.0], [25.00000000000011, 20.00304], [23.850000000000129, 20.0], [23.837660000000135, 19.580470000000101], [19.84926, 21.49509], [15.86085, 23.40972], [14.8513, 22.862950000000119]]] } }, - { "type": "Feature", "properties": { "admin": "Sri Lanka", "name": "Sri Lanka", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[81.787959018891371, 7.523055324733162], [81.637322218760573, 6.481775214051921], [81.218019647144317, 6.197141424988287], [80.348356968104397, 5.968369859232154], [79.872468703128519, 6.763463446474928], [79.6951668639351, 8.200843410673384], [80.147800734379629, 9.824077663609554], [80.838817986986541, 9.268426825391186], [81.304319289071756, 8.564206244333688], [81.787959018891371, 7.523055324733162]]] } }, - { "type": "Feature", "properties": { "admin": "Lesotho", "name": "Lesotho", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[28.978262566857236, -28.955596612261708], [29.325166456832587, -29.257386976846245], [29.018415154748016, -29.743765557577362], [28.848399692507734, -30.070050551068245], [28.291069370239903, -30.226216729454293], [28.107204624145421, -30.545732110314944], [27.749397006956478, -30.645105889612214], [26.999261915807629, -29.875953871379977], [27.532511020627471, -29.242710870075353], [28.07433841320778, -28.851468601193581], [28.541700066855491, -28.647501722937562], [28.978262566857236, -28.955596612261708]]] } }, - { "type": "Feature", "properties": { "admin": "Lithuania", "name": "Lithuania", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.731098667092649, 54.327536932993311], [22.651051873472536, 54.582740993866729], [22.757763706155256, 54.856574408581366], [22.31572350433057, 55.01529857036585], [21.26844892750346, 55.190481675835301], [21.05580040862241, 56.031076361711051], [22.201156853939491, 56.337801825579483], [23.878263787539957, 56.273671373105259], [24.860684441840753, 56.372528388079616], [25.000934279080887, 56.164530748104831], [25.533046502390327, 56.100296942766029], [26.494331495883749, 55.61510691997762], [26.588279249790386, 55.167175604871659], [25.768432651479792, 54.846962592175082], [25.536353794056989, 54.282423407602515], [24.45068362803703, 53.905702216194747], [23.484127638449841, 53.912497667041123], [23.243987257589506, 54.220566718149129], [22.731098667092649, 54.327536932993311]]] } }, - { "type": "Feature", "properties": { "admin": "Luxembourg", "name": "Luxembourg", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[6.043073357781109, 50.128051662794221], [6.242751092156992, 49.90222565367872], [6.186320428094176, 49.4638028021145], [5.897759230176403, 49.442667141307012], [5.674051954784828, 49.52948354755749], [5.782417433300905, 50.090327867221205], [6.043073357781109, 50.128051662794221]]] } }, - { "type": "Feature", "properties": { "admin": "Latvia", "name": "Latvia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[21.05580040862241, 56.031076361711051], [21.090423618257965, 56.783872789122924], [21.581866489353668, 57.411870632549913], [22.524341261492872, 57.753374335350756], [23.31845299652209, 57.006236477274854], [24.120729607853423, 57.025692654032753], [24.312862583114615, 57.793423570376966], [25.164593540149262, 57.970156968815175], [25.602809685984365, 57.847528794986559], [26.46353234223778, 57.476388658266316], [27.288184848751509, 57.474528306703817], [27.770015903440925, 57.244258124411218], [27.855282016722519, 56.759326483784278], [28.17670942557799, 56.169129950578807], [27.102459751094525, 55.783313707087672], [26.494331495883749, 55.61510691997762], [25.533046502390327, 56.100296942766029], [25.000934279080887, 56.164530748104831], [24.860684441840753, 56.372528388079616], [23.878263787539957, 56.273671373105259], [22.201156853939491, 56.337801825579483], [21.05580040862241, 56.031076361711051]]] } }, - { "type": "Feature", "properties": { "admin": "Morocco", "name": "Morocco", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-5.193863491222031, 35.755182196590845], [-4.591006232105143, 35.330711981745644], [-3.640056525070007, 35.39985504815197], [-2.604305792644111, 35.17909332940112], [-2.169913702798624, 35.168396307916694], [-1.792985805661658, 34.527918606091298], [-1.73345455566141, 33.919712836232115], [-1.388049282222596, 32.864015000941372], [-1.124551153966195, 32.651521511357195], [-1.30789913573787, 32.262888902306024], [-2.616604783529567, 32.094346218386157], [-3.068980271812648, 31.724497992473285], [-3.647497931320145, 31.637294012980814], [-3.690441046554666, 30.896951605751152], [-4.859646165374442, 30.501187649043874], [-5.242129278982786, 30.00044302013557], [-6.060632290053745, 29.731699734001801], [-7.059227667661899, 29.57922842052465], [-8.67411617678283, 28.841288967396643], [-8.665589565454836, 27.656425889592462], [-8.817809007940523, 27.656425889592462], [-8.817828334986642, 27.656425889592462], [-8.794883999049032, 27.120696316022553], [-9.413037482124507, 27.088476060488539], [-9.735343390328749, 26.860944729107409], [-10.189424200877452, 26.860944729107409], [-10.551262579785258, 26.990807603456879], [-11.392554897496948, 26.883423977154386], [-11.718219773800339, 26.104091701760801], [-12.030758836301654, 26.030866197203121], [-12.500962693725368, 24.770116278578136], [-13.891110398809044, 23.691009019459383], [-14.22116777185715, 22.310163072188338], [-14.630832688850942, 21.860939846274867], [-14.750954555713404, 21.500600083903802], [-17.002961798561071, 21.42073415779668], [-17.020428432675768, 21.422310288981631], [-16.973247849993182, 21.88574453377495], [-16.589136928767626, 22.158234361250091], [-16.26192175949566, 22.679339504481273], [-16.326413946995896, 23.017768459560894], [-15.982610642958059, 23.723358466074096], [-15.426003790742183, 24.359133612561035], [-15.089331834360729, 24.520260728446964], [-14.824645148161689, 25.103532619725307], [-14.800925665739666, 25.636264960222285], [-14.439939947964827, 26.254418443297645], [-13.773804897506462, 26.618892320252279], [-13.13994177901429, 27.640147813420491], [-13.121613369914709, 27.654147671719805], [-12.61883663578311, 28.038185533148656], [-11.688919236690761, 28.148643907172577], [-10.9009569971044, 28.832142238880913], [-10.39959225100864, 29.09858592377778], [-9.564811163765624, 29.933573716749855], [-9.814718390329174, 31.177735500609053], [-9.434793260119362, 32.038096421836478], [-9.300692918321827, 32.564679266890629], [-8.657476365585039, 33.24024526624239], [-7.654178432638217, 33.697064927702506], [-6.912544114601358, 34.11047638603744], [-6.24434200685141, 35.145865383437517], [-5.929994269219832, 35.759988104793983], [-5.193863491222031, 35.755182196590845]]] } }, - { "type": "Feature", "properties": { "admin": "Moldova", "name": "Moldova", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[26.619336785597788, 48.220726223333457], [26.857823520624798, 48.368210761094488], [27.52253746919515, 48.467119452501102], [28.259546746541837, 48.155562242213406], [28.670891147585163, 48.118148505234089], [29.122698195113024, 47.849095160506458], [29.050867954227321, 47.510226955752493], [29.415135125452732, 47.346645209332571], [29.559674106573105, 46.928582872091312], [29.908851759569295, 46.67436066343145], [29.838210076626289, 46.525325832701675], [30.024658644335364, 46.423936672545032], [29.759971958136383, 46.349987697935354], [29.170653924279879, 46.379262396828693], [29.072106967899288, 46.517677720722482], [28.862972446414055, 46.437889309263824], [28.933717482221621, 46.258830471372491], [28.659987420371575, 45.939986884131628], [28.48526940279276, 45.596907050145887], [28.233553501099035, 45.488283189468369], [28.054442986775392, 45.944586086605618], [28.160017937947707, 46.371562608417207], [28.128030226359037, 46.81047638608824], [27.551166212684841, 47.405117092470817], [27.233872918412736, 47.826770941756365], [26.924176059687561, 48.123264472030982], [26.619336785597788, 48.220726223333457]]] } }, - { "type": "Feature", "properties": { "admin": "Madagascar", "name": "Madagascar", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[49.543518914595737, -12.469832858940553], [49.80898074727908, -12.895284925999551], [50.05651085795715, -13.555761407121981], [50.217431268114055, -14.758788750876795], [50.476536899625515, -15.226512139550541], [50.377111443895942, -15.706069431219122], [50.200274692593169, -16.000263360256763], [49.860605503138665, -15.414252618066913], [49.672606642460849, -15.710203545802477], [49.863344354050142, -16.451036879138773], [49.774564243372694, -16.875042006093597], [49.49861209493411, -17.10603565843827], [49.435618523970298, -17.953064060134363], [49.04179243347393, -19.118781019774442], [48.548540887247995, -20.496888116134119], [47.930749139198653, -22.391501153251077], [47.547723423051295, -23.781958916928513], [47.095761346226588, -24.941629733990446], [46.282477654817079, -25.178462823184102], [45.409507684110444, -25.601434421493082], [44.833573846217547, -25.346101169538933], [44.039720493349755, -24.9883452287823], [43.763768344911156, -24.460677178649988], [43.697777540874441, -23.574116306250595], [43.345654331237611, -22.77690398528387], [43.254187046080986, -22.057413018484116], [43.433297560404633, -21.336475111580185], [43.893682895692919, -21.163307386970121], [43.89637007017209, -20.830459486578167], [44.374325392439644, -20.072366224856385], [44.464397413924374, -19.435454196859045], [44.23242190936616, -18.961994724200899], [44.042976108584149, -18.331387220943167], [43.963084344260899, -17.409944756746778], [44.312468702986273, -16.850495700754951], [44.446517368351387, -16.216219170804504], [44.944936557806521, -16.179373874580396], [45.502731967964976, -15.974373467678538], [45.872993605336255, -15.793454278224681], [46.312243279817203, -15.780018405828795], [46.882182651564271, -15.210182386946309], [47.70512983581235, -14.594302666891762], [48.005214878131241, -14.091232598530372], [47.869047479042152, -13.663868503476582], [48.29382775248137, -13.784067884987483], [48.845060255738773, -13.08917489995866], [48.863508742066976, -12.487867933810417], [49.194651320193302, -12.040556735891967], [49.543518914595737, -12.469832858940553]]] } }, - { "type": "Feature", "properties": { "admin": "Mexico", "name": "Mexico", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-97.140008307670684, 25.869997463478395], [-97.528072475966539, 24.992144069920297], [-97.702945522842214, 24.272343044526728], [-97.776041836319024, 22.932579860927653], [-97.872366706111094, 22.444211737553356], [-97.699043952204164, 21.898689480064256], [-97.388959520236739, 21.411018988525818], [-97.189333462293277, 20.635433254473124], [-96.525575527720306, 19.890930894444061], [-96.292127244841737, 19.32037140550954], [-95.90088497595994, 18.828024196848727], [-94.8390634834427, 18.562717393462204], [-94.425729539756205, 18.144370835843343], [-93.548651292682365, 18.423836981677933], [-92.786113857783477, 18.524838568592255], [-92.037348192090391, 18.704569200103432], [-91.407903408559235, 18.876083278880227], [-90.771869879910852, 19.284120388256778], [-90.533589850613026, 19.867418117751292], [-90.451475999701231, 20.707521877520428], [-90.278618333684889, 20.999855454995547], [-89.601321173851474, 21.261725775634485], [-88.543866339862845, 21.493675441976613], [-87.658416510757704, 21.458845526611977], [-87.051890224948053, 21.543543199138295], [-86.811982388032931, 21.331514797444747], [-86.845907965832595, 20.849864610268348], [-87.383291185235848, 20.255404771398727], [-87.621054450210721, 19.646553046135917], [-87.436750454441764, 19.472403469312265], [-87.586560431655911, 19.040130113190738], [-87.837191128271485, 18.259815985583426], [-88.090664028663156, 18.516647854074048], [-88.300031094093626, 18.499982204659997], [-88.490122850279278, 18.486830552641717], [-88.84834387892657, 17.883198147040329], [-89.029857347351737, 18.001511338772556], [-89.150909389995462, 17.955467637600403], [-89.143080410503316, 17.808318996649401], [-90.067933519230891, 17.819326076727517], [-91.001519945015943, 17.817594916245692], [-91.002269253284155, 17.254657701074272], [-91.453921271515114, 17.252177232324183], [-91.08167009150057, 16.918476670799517], [-90.711821865587623, 16.687483018454767], [-90.600846727240921, 16.470777899638787], [-90.438866950221993, 16.410109768128105], [-90.464472622422633, 16.069562079324722], [-91.747960171255926, 16.066564846251762], [-92.229248623406278, 15.251446641495871], [-92.087215949252013, 15.06458466232851], [-92.203229539747255, 14.830102850804108], [-92.227750006869812, 14.538828640190953], [-93.359463874061746, 15.61542959234367], [-93.875168830118511, 15.94016429286591], [-94.691656460330108, 16.20097524664288], [-95.250227016973014, 16.128318182840641], [-96.053382127653293, 15.752087917539592], [-96.557434048228274, 15.653515122942787], [-97.263592495496624, 15.917064927631312], [-98.013029954809596, 16.107311713113912], [-98.947675747456486, 16.566043402568763], [-99.697397427147024, 16.706164048728166], [-100.829498867581293, 17.171071071842047], [-101.666088629954444, 17.649026394109622], [-101.918528001700196, 17.916090196193974], [-102.478132086988907, 17.975750637275095], [-103.500989549558057, 18.292294623278845], [-103.917527432046811, 18.748571682200005], [-104.992009650475467, 19.316133938061679], [-105.493038499761411, 19.946767279535429], [-105.731396043707633, 20.434101874264108], [-105.397772996831321, 20.531718654863422], [-105.500660773524402, 20.816895046466122], [-105.27075232625792, 21.076284898355137], [-105.265817226974022, 21.422103583252348], [-105.603160976975374, 21.871145941652568], [-105.693413865973113, 22.269080308516148], [-106.028716396898943, 22.77375234627862], [-106.909980434988341, 23.767774359628895], [-107.91544877809136, 24.548915310152946], [-108.401904873470954, 25.172313951105931], [-109.260198737406625, 25.580609442644054], [-109.444089321717314, 25.824883938087673], [-109.291643846456267, 26.44293406829842], [-109.801457689231796, 26.676175645447923], [-110.391731737085692, 27.162114976504533], [-110.641018846461606, 27.859876003525521], [-111.178918830187826, 27.941240546169062], [-111.759606899851619, 28.467952582303944], [-112.228234626090369, 28.954408677683482], [-112.27182369672866, 29.266844387320074], [-112.80959448937395, 30.021113593052341], [-113.163810594518651, 30.786880804969424], [-113.148669399857141, 31.170965887978912], [-113.871881069781836, 31.56760834403519], [-114.205736660603506, 31.524045111613123], [-114.776451178835003, 31.79953217216114], [-114.936699795372121, 31.393484605427595], [-114.771231859173483, 30.91361725516526], [-114.673899298951739, 30.162681179315985], [-114.330974494262918, 29.750432440707407], [-113.588875088335413, 29.061611436473008], [-113.424053107540516, 28.826173610951223], [-113.271969367305502, 28.754782619739892], [-113.140039435664363, 28.411289374295954], [-112.962298346796473, 28.425190334582503], [-112.761587083774856, 27.78021678314752], [-112.457910529411635, 27.525813706974752], [-112.24495195193677, 27.171726792910754], [-111.616489020619184, 26.662817287700474], [-111.284674648872993, 25.732589830014426], [-110.987819383572386, 25.294606228124557], [-110.71000688357131, 24.826004340101854], [-110.655048997828871, 24.298594672131113], [-110.17285620811343, 24.265547593680417], [-109.771847093528521, 23.811182562754194], [-109.409104377055698, 23.364672349536242], [-109.433392300232896, 23.185587673428696], [-109.85421932660168, 22.818271592698061], [-110.031391974714424, 22.823077500901199], [-110.295070970483636, 23.430973212166684], [-110.949501309028022, 24.000964260345988], [-111.670568407012681, 24.484423122652508], [-112.182035895621468, 24.73841278736716], [-112.148988817170817, 25.470125230404044], [-112.300710822379671, 26.012004299416613], [-112.777296719191526, 26.321959540303162], [-113.464670783321907, 26.768185533143416], [-113.596729906043805, 26.639459540304465], [-113.848936733844241, 26.900063788352437], [-114.465746629680027, 27.142090358991361], [-115.055142178184965, 27.722726752222904], [-114.982252570437382, 27.798200181585109], [-114.570365566854917, 27.741485297144884], [-114.199328782999231, 28.115002549750553], [-114.162018398884612, 28.566111965442296], [-114.931842210736605, 29.279479275015483], [-115.518653937626965, 29.556361599235395], [-115.887365282029563, 30.180793768834171], [-116.2583503894529, 30.836464341753572], [-116.721526252084956, 31.635743720012037], [-117.127759999999839, 32.53534], [-115.99135, 32.612390000000111], [-114.72139, 32.72083], [-114.815, 32.52528], [-113.30498, 32.03914], [-111.02361, 31.33472], [-109.035, 31.341940000000129], [-108.24194, 31.34222], [-108.24, 31.754853718166366], [-106.507589999999851, 31.75452], [-106.1429, 31.39995], [-105.63159, 31.08383], [-105.03737, 30.64402], [-104.70575, 30.12173], [-104.456969999999885, 29.57196], [-103.94, 29.27], [-103.11, 28.97], [-102.48, 29.76], [-101.6624, 29.7793], [-100.9576, 29.380710000000125], [-100.45584, 28.696120000000118], [-100.11, 28.11000000000012], [-99.52, 27.54], [-99.3, 26.84], [-99.019999999999897, 26.37], [-98.24, 26.06], [-97.529999999999887, 25.84], [-97.140008307670684, 25.869997463478395]]] } }, - { "type": "Feature", "properties": { "admin": "Macedonia", "name": "Macedonia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.59023, 41.85541], [20.717310000000108, 41.84711], [20.76216, 42.05186], [21.352700000000134, 42.2068], [21.576635989402117, 42.245224397061847], [21.917080000000105, 42.30364], [22.380525750424674, 42.320259507815074], [22.881373732197339, 41.999297186850349], [22.952377150166505, 41.337993882811176], [22.76177, 41.3048], [22.597308383889008, 41.130487168943198], [22.055377638444266, 41.149865831052686], [21.674160597426969, 40.93127452245794], [21.020040317476397, 40.842726955725873], [20.60518, 41.08622], [20.46315, 41.51509], [20.59023, 41.85541]]] } }, - { "type": "Feature", "properties": { "admin": "Mali", "name": "Mali", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-12.170750291380299, 14.616834214735503], [-11.834207526079465, 14.799096991428936], [-11.666078253617853, 15.388208319556295], [-11.349095017939502, 15.411256008358475], [-10.650791388379414, 15.132745876521422], [-10.086846482778212, 15.330485744686269], [-9.700255092802703, 15.264107367407359], [-9.550238409859388, 15.486496893775435], [-5.537744309908446, 15.501689764869253], [-5.315277268891931, 16.201853745991837], [-5.488522508150438, 16.325102037007962], [-5.971128709324247, 20.640833441647626], [-6.453786586930334, 24.956590684503418], [-4.92333736817423, 24.974574082940993], [-1.550054897457613, 22.792665920497377], [1.823227573259032, 20.61080943448604], [2.060990838233919, 20.142233384679482], [2.683588494486428, 19.856230170160114], [3.146661004253899, 19.693578599521441], [3.158133172222704, 19.057364203360034], [4.267419467800038, 19.155265204336995], [4.270209995143801, 16.852227484601212], [3.723421665063482, 16.184283759012612], [3.638258904646476, 15.568119818580453], [2.749992709981483, 15.409524847876693], [1.385528191746857, 15.323561102759168], [1.01578331869851, 14.968182277887944], [0.374892205414682, 14.928908189346128], [-0.26625729003058, 14.924308986872147], [-0.515854458000348, 15.116157741755725], [-1.066363491205663, 14.973815009007764], [-2.001035122068771, 14.559008287000887], [-2.191824510090384, 14.246417548067352], [-2.967694464520576, 13.798150336151506], [-3.103706834312759, 13.54126679122859], [-3.52280270019986, 13.337661647998612], [-4.006390753587225, 13.472485459848112], [-4.280405035814879, 13.228443508349738], [-4.427166103523802, 12.542645575404292], [-5.220941941743119, 11.713858954307224], [-5.197842576508648, 11.375145778850136], [-5.470564947929004, 10.951269842976044], [-5.404341599946973, 10.370736802609144], [-5.816926235365286, 10.222554633012191], [-6.050452032892266, 10.096360785355442], [-6.205222947606429, 10.524060777219132], [-6.493965013037267, 10.411302801958268], [-6.666460944027547, 10.430810655148447], [-6.850506557635057, 10.138993841996237], [-7.622759161804808, 10.147236232946792], [-7.89958980959237, 10.297382106970824], [-8.029943610048617, 10.206534939001711], [-8.335377163109738, 10.494811916541932], [-8.282357143578279, 10.792597357623842], [-8.407310756860026, 10.90925690352276], [-8.620321010767126, 10.810890814655181], [-8.581305304386772, 11.136245632364801], [-8.376304897484911, 11.393645941610627], [-8.786099005559462, 11.812560939984705], [-8.905264858424529, 12.088358059126433], [-9.127473517279581, 12.308060411015331], [-9.327616339546008, 12.334286200403451], [-9.567911749703212, 12.194243068892472], [-9.890992804392011, 12.060478623904968], [-10.165213792348835, 11.844083563682743], [-10.593223842806278, 11.923975328005977], [-10.870829637078211, 12.177887478072106], [-11.036555955438256, 12.211244615116513], [-11.297573614944508, 12.077971096235768], [-11.456168585648269, 12.076834214725336], [-11.513942836950587, 12.442987575729415], [-11.467899135778522, 12.754518947800973], [-11.553397793005427, 13.141213690641063], [-11.927716030311613, 13.422075100147392], [-12.124887457721256, 13.994727484589784], [-12.170750291380299, 14.616834214735503]]] } }, - { "type": "Feature", "properties": { "admin": "Myanmar", "name": "Myanmar", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[99.543309360759281, 20.186597601802056], [98.959675734454848, 19.752980658440944], [98.253723992915582, 19.708203029860041], [97.797782830804394, 18.627080389881751], [97.375896437573516, 18.445437730375811], [97.859122755934848, 17.567946071843657], [98.493761020911322, 16.837835598207928], [98.90334842325673, 16.177824204976115], [98.537375929765687, 15.308497422746081], [98.192074009191373, 15.123702500870349], [98.430819126379859, 14.622027696180831], [99.097755161538728, 13.827502549693275], [99.212011753336071, 13.269293728076462], [99.196353794351637, 12.804748439988666], [99.587286004639694, 11.892762762901695], [99.038120558673953, 10.960545762572435], [98.553550653073017, 9.932959906448543], [98.457174106848697, 10.675266018105146], [98.764545526120756, 11.441291612183745], [98.428338657629823, 12.032986761925681], [98.509574009192661, 13.122377631070675], [98.103603957107666, 13.64045970301285], [97.777732375075161, 14.837285874892638], [97.597071567782749, 16.100567938699765], [97.164539829499773, 16.928734442609336], [96.505768670642965, 16.427240505432845], [95.369352248112378, 15.714389960182599], [94.808404575584092, 15.803454291237637], [94.188804152404515, 16.037936102762014], [94.533485955791321, 17.277240301985724], [94.324816522196741, 18.213513902249893], [93.540988397193615, 19.366492621330021], [93.663254835996199, 19.726961574781992], [93.078277622452163, 19.855144965081973], [92.368553501355606, 20.670883287025344], [92.30323449093865, 21.475485337809815], [92.652257114637976, 21.324047552978481], [92.672720981825549, 22.041238918541247], [93.166127557348361, 22.278459580977099], [93.060294224014598, 22.703110663335565], [93.286326938859247, 23.043658352138998], [93.325187615942767, 24.078556423432197], [94.106741977925054, 23.850740871673477], [94.552657912171611, 24.675238348890328], [94.603249139385355, 25.162495428970399], [95.155153436262566, 26.001307277932078], [95.124767694074933, 26.573572089132295], [96.419365675850941, 27.264589341739221], [97.133999058015277, 27.08377350514996], [97.051988559968066, 27.699058946233144], [97.402561476636123, 27.88253611908544], [97.327113885490007, 28.261582749946331], [97.91198774616943, 28.335945136014338], [98.24623091023328, 27.747221381129172], [98.682690057370451, 27.508812160750612], [98.712093947344499, 26.74353587494026], [98.671838006589127, 25.918702500913518], [97.724609002679117, 25.083637193292994], [97.604719679761956, 23.897404690033039], [98.660262485755737, 24.063286037689959], [98.898749220782747, 23.142722072842524], [99.531992222087382, 22.949038804612574], [99.240898878987224, 22.118314317304577], [99.983489211021464, 21.742936713136398], [100.416537713627349, 21.558839423096607], [101.150032993578222, 21.849984442629015], [101.180005324307515, 21.436572984294024], [100.329101190189519, 20.786121731036229], [100.115987583417819, 20.41784963630818], [99.543309360759281, 20.186597601802056]]] } }, - { "type": "Feature", "properties": { "admin": "Montenegro", "name": "Montenegro", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[19.801613396898681, 42.500093492190835], [19.738051385179627, 42.688247382165564], [19.30449, 42.19574], [19.371770000000136, 41.87755], [19.16246, 41.95502], [18.88214, 42.28151], [18.45, 42.48], [18.56, 42.65], [18.70648, 43.20011], [19.03165, 43.43253], [19.21852, 43.52384], [19.48389, 43.35229], [19.63, 43.213779970270522], [19.95857, 43.10604], [20.3398, 42.89852], [20.25758, 42.81275], [20.0707, 42.58863], [19.801613396898681, 42.500093492190835]]] } }, - { "type": "Feature", "properties": { "admin": "Mongolia", "name": "Mongolia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[87.751264276076697, 49.297197984405479], [88.805566847695488, 49.470520738312409], [90.713667433640666, 50.331811835321076], [92.234711541719662, 50.802170722041716], [93.104219191462661, 50.495290228876414], [94.147566359435615, 50.480536607457083], [94.815949334698701, 50.013433335970838], [95.814027947983973, 49.977466539095708], [97.259727817781396, 49.726060695995727], [98.231761509191543, 50.422400621128737], [97.825739780674283, 51.010995184933165], [98.861490513100307, 52.047366034546684], [99.981732212323507, 51.634006252643978], [100.889480421962588, 51.516855780638316], [102.065222609467298, 51.25992055928311], [102.255908644624299, 50.510560614618669], [103.676545444760194, 50.089966132195109], [104.621552362081687, 50.275329494826067], [105.886591424586726, 50.406019192092209], [106.888804152455336, 50.274295966180219], [107.868175897250936, 49.793705145865808], [108.475167270951275, 49.282547715850725], [109.402449171996636, 49.292960516957535], [110.662010532678764, 49.130128078805861], [111.581230910286607, 49.377968248077678], [112.897739699354361, 49.543565375356984], [114.362456496235239, 50.248302720737399], [114.962109816550154, 50.140247300815112], [115.485695428531386, 49.805177313834591], [116.678800897286152, 49.888531399121376], [116.191802199367544, 49.134598090199091], [115.485282017073018, 48.135382595403428], [115.742837355615748, 47.726544501326273], [116.308952671373206, 47.853410142602826], [117.295507440257396, 47.69770905210742], [118.064142694166691, 48.066730455103674], [118.866574334794933, 47.747060044946153], [119.772823927897477, 47.048058783550125], [119.66326989143873, 46.692679958678909], [118.874325799638711, 46.805412095723646], [117.421701287914175, 46.672732855814253], [116.717868280098841, 46.388202419615205], [115.985096470200062, 45.727235012385989], [114.46033165899604, 45.339816799493811], [113.463906691544139, 44.808893134127111], [112.436062453258785, 45.011645616224278], [111.873306105600278, 45.102079372735055], [111.348376906379428, 44.457441718110083], [111.667737257943202, 44.073175767587706], [111.829587843881342, 43.743118394539515], [111.129682244920218, 43.406834011400136], [110.412103306115256, 42.871233628911014], [109.243595819131428, 42.519446316084093], [107.744772576937933, 42.481515814781865], [106.129315627061658, 42.134327704428898], [104.964993931093446, 41.597409572916334], [104.522281935648977, 41.908346666016541], [103.312278273534787, 41.907468166667591], [101.833040399179922, 42.51487295182627], [100.845865513108237, 42.663804429691439], [99.515817498780009, 42.524691473961717], [97.451757440177985, 42.748889675460013], [96.349395786527793, 42.725635280928678], [95.762454868556674, 43.319449164394598], [95.306875441471504, 44.241330878265458], [94.688928664125299, 44.352331854828414], [93.480733677141274, 44.975472113619951], [92.133890822318193, 45.115075995456444], [90.945539585334288, 45.286073309910265], [90.585768263718265, 45.719716091487513], [90.970809360724985, 46.888146063822923], [90.280825636763893, 47.693549099307923], [88.854297723346733, 48.06908173277295], [88.013832228551721, 48.599462795600601], [87.751264276076697, 49.297197984405479]]] } }, - { "type": "Feature", "properties": { "admin": "Mozambique", "name": "Mozambique", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[34.559989047999345, -11.520020033415923], [35.312397902169032, -11.439146416879145], [36.514081658684248, -11.720938002166733], [36.775150994622791, -11.594537448780804], [37.471284214026596, -11.568750909067157], [37.827644891111383, -11.268769219612834], [38.427556593587745, -11.285202325081654], [39.521029900883768, -10.896853936408224], [40.316588576017182, -10.317096042525696], [40.478387485523022, -10.765440769089992], [40.437253045418672, -11.761710707245014], [40.560811395028558, -12.639176527561023], [40.599620395679743, -14.201975192931858], [40.775475294768988, -14.691764418194239], [40.477250604012596, -15.406294447493968], [40.089263950365208, -16.100774021064456], [39.452558628097044, -16.720891208566936], [38.53835086442151, -17.101023044505954], [37.411132846838875, -17.586368096591233], [36.281279331209348, -18.659687595293445], [35.896496616364054, -18.842260430580634], [35.198399692533137, -19.552811374593887], [34.786383497870041, -19.784011732667732], [34.701892531072836, -20.497043145431007], [35.176127150215358, -21.254361260668407], [35.373427768705731, -21.840837090748874], [35.385848253705397, -22.14], [35.562545536369079, -22.09], [35.533934767404297, -23.070787855727751], [35.371774122872374, -23.535358982031692], [35.607470330555621, -23.706563002214676], [35.458745558419615, -24.122609958596545], [35.040734897610655, -24.478350518493798], [34.215824008935463, -24.816314385682652], [33.013210076639005, -25.357573337507731], [32.574632195777859, -25.727318210556088], [32.660363396950082, -26.148584486599443], [32.915955031065685, -26.215867201443459], [32.830120477028878, -26.74219166433619], [32.071665480281062, -26.733820082304902], [31.985779249811962, -26.29177988048022], [31.837777947728057, -25.843331801051342], [31.752408481581874, -25.484283949487406], [31.930588820124242, -24.369416599222532], [31.670397983534645, -23.658969008073861], [31.191409132621278, -22.251509698172395], [32.244988234188007, -21.116488539313689], [32.508693068173436, -20.395292250248303], [32.659743279762573, -20.30429005298231], [32.772707960752619, -19.715592136313294], [32.611994256324884, -19.419382826416268], [32.654885695127142, -18.672089939043492], [32.849860874164385, -17.979057305577175], [32.847638787575839, -16.713398125884613], [32.328238966610222, -16.392074069893749], [31.852040643040592, -16.319417006091374], [31.636498243951188, -16.071990248277881], [31.173063999157673, -15.860943698797868], [30.338954705534537, -15.880839125230242], [30.274255812305103, -15.507786960515208], [30.179481235481827, -14.796099134991525], [33.214024692525207, -13.97186003993615], [33.789700148256678, -14.451830743063068], [34.064825473778619, -14.359950046448118], [34.459633416488536, -14.613009535381421], [34.517666049952304, -15.013708591372609], [34.307291294092089, -15.478641452702592], [34.381291945134045, -16.183559665596039], [35.033810255683527, -16.801299737213089], [35.339062941231639, -16.107440280830108], [35.771904738108347, -15.896858819240721], [35.686845330555926, -14.611045830954328], [35.267956170398001, -13.887834161029563], [34.907151320136158, -13.565424899960565], [34.559989047999345, -13.579997653866872], [34.280006137841973, -12.280025323132504], [34.559989047999345, -11.520020033415923]]] } }, - { "type": "Feature", "properties": { "admin": "Mauritania", "name": "Mauritania", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-12.170750291380299, 14.616834214735503], [-12.830658331747513, 15.303691514542942], [-13.43573767745306, 16.039383042866188], [-14.099521450242175, 16.304302273010489], [-14.577347581428977, 16.598263658102805], [-15.135737270558813, 16.587282416240779], [-15.623666144258689, 16.369337063049809], [-16.120690070041928, 16.45566254319338], [-16.463098110407881, 16.135036119038457], [-16.549707810929061, 16.673892116761959], [-16.270551723688353, 17.166962795474866], [-16.146347418674846, 18.108481553616652], [-16.256883307347163, 19.096715806550304], [-16.377651129613266, 19.593817246981981], [-16.277838100641514, 20.092520656814695], [-16.536323614965465, 20.567866319251486], [-17.063423224342568, 20.99975210213082], [-16.845193650773989, 21.333323472574875], [-12.929101935263528, 21.327070624267559], [-13.118754441774708, 22.771220201096249], [-12.874221564169574, 23.284832261645171], [-11.93722449385332, 23.374594224536164], [-11.969418911171159, 25.933352769468261], [-8.687293667017398, 25.881056219988899], [-8.684399786809051, 27.395744126895998], [-4.92333736817423, 24.974574082940993], [-6.453786586930334, 24.956590684503418], [-5.971128709324247, 20.640833441647626], [-5.488522508150438, 16.325102037007962], [-5.315277268891931, 16.201853745991837], [-5.537744309908446, 15.501689764869253], [-9.550238409859388, 15.486496893775435], [-9.700255092802703, 15.264107367407359], [-10.086846482778212, 15.330485744686269], [-10.650791388379414, 15.132745876521422], [-11.349095017939502, 15.411256008358475], [-11.666078253617853, 15.388208319556295], [-11.834207526079465, 14.799096991428936], [-12.170750291380299, 14.616834214735503]]] } }, - { "type": "Feature", "properties": { "admin": "Malawi", "name": "Malawi", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[34.559989047999345, -11.520020033415923], [34.280006137841973, -12.280025323132504], [34.559989047999345, -13.579997653866872], [34.907151320136158, -13.565424899960565], [35.267956170398001, -13.887834161029563], [35.686845330555926, -14.611045830954328], [35.771904738108347, -15.896858819240721], [35.339062941231639, -16.107440280830108], [35.033810255683527, -16.801299737213089], [34.381291945134045, -16.183559665596039], [34.307291294092089, -15.478641452702592], [34.517666049952304, -15.013708591372609], [34.459633416488536, -14.613009535381421], [34.064825473778619, -14.359950046448118], [33.789700148256678, -14.451830743063068], [33.214024692525207, -13.97186003993615], [32.688165317523122, -13.712857761289273], [32.991764357237876, -12.783870537978272], [33.306422153463068, -12.435778090060214], [33.114289178201908, -11.607198174692311], [33.315310499817279, -10.796549981329695], [33.485687697083584, -10.525558770391111], [33.231387973775291, -9.676721693564799], [32.759375441221316, -9.230599053589058], [33.739729038230443, -9.417150974162722], [33.940837724096532, -9.693673841980292], [34.280006137841973, -10.159999688358402], [34.559989047999345, -11.520020033415923]]] } }, - { "type": "Feature", "properties": { "admin": "Malaysia", "name": "Malaysia", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[101.075515578213299, 6.204867051615891], [101.154218784593809, 5.691384182147713], [101.814281854258013, 5.810808417174228], [102.141186964936423, 6.221636053894655], [102.371147088635212, 6.12820506431096], [102.961705356866673, 5.524495144061077], [103.381214634212142, 4.855001125503746], [103.438575474056165, 4.181605536308381], [103.332122023534851, 3.72669790284297], [103.42942874554052, 3.382868760589019], [103.502447544368877, 2.791018581550204], [103.854674106870334, 2.515454006353763], [104.247931756611479, 1.631141058759055], [104.228811476663523, 1.293048000489534], [103.519707472754433, 1.226333726400682], [102.573615350354771, 1.967115383304744], [101.39063846232915, 2.760813706875623], [101.273539666755838, 3.27029165284118], [100.69543541870668, 3.939139715994869], [100.557407668055092, 4.767280381688279], [100.19670617065772, 5.312492580583678], [100.306260207116509, 6.040561835143875], [100.085756870527078, 6.46448944745029], [100.259596388756918, 6.64282481528957], [101.075515578213299, 6.204867051615891]]], [[[118.618320754064825, 4.47820241944754], [117.882034946770162, 4.137551377779487], [117.01521447150634, 4.306094061699468], [115.86551720587677, 4.306559149590156], [115.51907840379198, 3.169238389494395], [115.134037306785231, 2.821481838386219], [114.621355422017473, 1.430688177898886], [113.805849644019531, 1.217548732911041], [112.859809198052176, 1.497790025229946], [112.380251906383648, 1.410120957846757], [111.797548455860408, 0.904441229654651], [111.159137811326559, 0.976478176269509], [110.514060907027101, 0.773131415200993], [109.830226678508836, 1.338135687664191], [109.663260125773718, 2.006466986494984], [110.396135288537039, 1.663774725751395], [111.168852980597478, 1.850636704918784], [111.370081007942076, 2.697303371588872], [111.796928338672842, 2.885896511238073], [112.995614862115247, 3.102394924324869], [113.712935418758718, 3.893509426281127], [114.204016554828399, 4.525873928236819], [114.659595981913526, 4.00763682699781], [114.869557326315373, 4.348313706881952], [115.347460972150671, 4.316636053887009], [115.405700311343594, 4.955227565933824], [115.450710483869798, 5.447729803891561], [116.220741001450961, 6.143191229675621], [116.725102980619752, 6.924771429873998], [117.129626092600461, 6.928052883324566], [117.643393182446303, 6.422166449403305], [117.689075148592337, 5.98749013918018], [118.347691278152197, 5.708695786965462], [119.181903924639926, 5.407835598162249], [119.110693800941718, 5.016128241389864], [118.439727004064082, 4.966518866389619], [118.618320754064825, 4.47820241944754]]]] } }, - { "type": "Feature", "properties": { "admin": "Namibia", "name": "Namibia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[16.344976840895239, -28.576705010697697], [15.601818068105812, -27.821247247022797], [15.210472446359457, -27.09095590587404], [14.989710727608548, -26.117371921495153], [14.74321414557633, -25.392920017195376], [14.40814415859583, -23.85301401132984], [14.385716586981145, -22.656652927340687], [14.257714064194172, -22.111208184499951], [13.868642205468657, -21.699036960539974], [13.352497999737437, -20.872834161057497], [12.82684533046449, -19.673165785401661], [12.608564080463617, -19.045348809487695], [11.794918654028063, -18.069129327061912], [11.734198846085118, -17.30188933682447], [12.215461460019352, -17.11166838955808], [12.814081251688405, -16.941342868724067], [13.462362094789963, -16.971211846588769], [14.058501417709007, -17.42338062914266], [14.209706658595021, -17.353100681225715], [18.26330936043416, -17.309950860262003], [18.956186964603599, -17.789094740472255], [21.377176141045563, -17.930636488519688], [23.215048455506057, -17.52311614346598], [24.033861525170771, -17.29584319424632], [24.6823490740015, -17.35341073981947], [25.076950310982255, -17.578823337476617], [25.084443393664564, -17.661815687737366], [24.520705193792534, -17.887124932529932], [24.217364536239209, -17.889347019118485], [23.579005568137713, -18.281261081620055], [23.196858351339298, -17.869038181227783], [21.655040317478971, -18.219146010005222], [20.910641310314531, -18.252218926672018], [20.881134067475866, -21.814327080983144], [19.895457797940672, -21.849156996347865], [19.895767856534427, -24.767790215760588], [19.89473432788861, -28.461104831660769], [19.002127312911082, -28.972443129188857], [18.464899122804745, -29.045461928017271], [17.836151971109526, -28.856377862261311], [17.387497185951499, -28.783514092729774], [17.218928663815401, -28.355943291946804], [16.824017368240899, -28.082161553664466], [16.344976840895239, -28.576705010697697]]] } }, - { "type": "Feature", "properties": { "admin": "New Caledonia", "name": "New Caledonia", "continent": "Oceania" }, "geometry": { "type": "Polygon", "coordinates": [[[165.779989862326346, -21.080004978115621], [166.599991489933814, -21.700018812753523], [167.120011428086883, -22.159990736583488], [166.74003462144475, -22.399976088146943], [166.189732293968632, -22.129708347260447], [165.474375441752159, -21.679606621998229], [164.829815301775653, -21.149819838141948], [164.16799523341362, -20.444746595951624], [164.029605747735957, -20.105645847252347], [164.459967075862664, -20.120011895429492], [165.020036249041993, -20.459991143477726], [165.460009393575064, -20.800022067958253], [165.779989862326346, -21.080004978115621]]] } }, - { "type": "Feature", "properties": { "admin": "Niger", "name": "Niger", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[2.154473504249949, 11.940150051313422], [2.177107781593917, 12.625017808477534], [1.024103224297619, 12.851825669806598], [0.993045688490156, 13.335749620003865], [0.429927605805517, 13.988733018443893], [0.295646396495215, 14.444234930880663], [0.374892205414767, 14.928908189346144], [1.015783318698481, 14.968182277887989], [1.385528191746971, 15.323561102759237], [2.74999270998154, 15.409524847876751], [3.63825890464659, 15.56811981858044], [3.723421665063596, 16.184283759012654], [4.270209995143886, 16.852227484601311], [4.267419467800095, 19.155265204337123], [5.677565952180712, 19.601206976799794], [8.572893100629868, 21.565660712159225], [11.999505649471697, 23.471668402596432], [13.581424594790459, 23.040506089769274], [14.143870883855239, 22.491288967371126], [14.8513, 22.862950000000119], [15.096887648181847, 21.308518785074902], [15.471076694407314, 21.048457139565979], [15.487148064850143, 20.730414537025634], [15.90324669766431, 20.387618923417499], [15.68574059414777, 19.957180080642384], [15.300441114979716, 17.927949937405], [15.247731154041842, 16.627305813050778], [13.972201775781681, 15.684365953021139], [13.540393507550785, 14.36713369390122], [13.956698846094124, 13.996691189016925], [13.954476759505607, 13.353448798063765], [14.595781284247604, 13.330426947477859], [14.495787387762899, 12.859396267137353], [14.213530714584746, 12.80203542729333], [14.181336297266906, 12.483656927943169], [13.995352817448289, 12.4615652531383], [13.318701613018558, 13.55635630945795], [13.083987257548809, 13.596147162322492], [12.302071160540546, 13.037189032437535], [11.527803175511504, 13.328980007373556], [10.989593133191532, 13.387322699431191], [10.701031935273816, 13.246917832894038], [10.114814487354748, 13.277251898649464], [9.524928012743088, 12.85110219975456], [9.014933302454436, 12.826659247280414], [7.804671258178869, 13.343526923063731], [7.330746697630046, 13.098038031461213], [6.82044192874781, 13.115091254117598], [6.445426059605721, 13.492768459522718], [5.443058302440135, 13.865923977102225], [4.368343540066006, 13.747481594289408], [4.107945997747378, 13.531215725147941], [3.967282749048933, 12.956108710171574], [3.680633579125924, 12.552903347214167], [3.611180454125587, 11.660167141155965], [2.848643019226585, 12.235635891158207], [2.490163608418015, 12.233052069543588], [2.154473504249949, 11.940150051313422]]] } }, - { "type": "Feature", "properties": { "admin": "Nigeria", "name": "Nigeria", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[8.500287713259693, 4.771982937026847], [7.462108188515939, 4.41210826254624], [7.082596469764438, 4.464689032403228], [6.698072137080598, 4.240594183769516], [5.898172641634686, 4.262453314628984], [5.362804803090881, 4.887970689305957], [5.033574252959368, 5.611802476418233], [4.325607130560683, 6.270651149923466], [3.574180128604552, 6.258300482605717], [2.691701694356254, 6.258817246928628], [2.74906253420022, 7.870734361192886], [2.723792758809509, 8.506845404489708], [2.912308383810255, 9.13760793704432], [3.220351596702101, 9.4441525333997], [3.705438266625918, 10.063210354040207], [3.600070021182801, 10.332186184119406], [3.797112257511713, 10.734745591673104], [3.572216424177469, 11.327939357951516], [3.611180454125558, 11.660167141155966], [3.68063357912581, 12.552903347214222], [3.967282749048848, 12.956108710171572], [4.107945997747321, 13.531215725147829], [4.368343540066063, 13.747481594289324], [5.443058302440163, 13.865923977102295], [6.445426059605636, 13.492768459522676], [6.820441928747753, 13.115091254117514], [7.330746697630017, 13.098038031461199], [7.804671258178784, 13.343526923063745], [9.014933302454462, 12.826659247280427], [9.524928012742945, 12.851102199754477], [10.114814487354689, 13.277251898649409], [10.701031935273702, 13.246917832894081], [10.989593133191532, 13.387322699431108], [11.527803175511393, 13.328980007373584], [12.302071160540521, 13.037189032437521], [13.083987257548866, 13.596147162322563], [13.318701613018558, 13.556356309457824], [13.995352817448346, 12.461565253138343], [14.181336297266792, 12.483656927943112], [14.57717776862253, 12.085360826053501], [14.468192172918974, 11.90475169519341], [14.415378859116682, 11.572368882692071], [13.572949659894558, 10.798565985553564], [13.308676385153914, 10.160362046748926], [13.1675997249971, 9.64062632897341], [12.955467970438971, 9.417771714714702], [12.753671502339214, 8.717762762888993], [12.218872104550597, 8.305824082874322], [12.063946160539556, 7.799808457872301], [11.839308709366801, 7.397042344589434], [11.745774366918509, 6.981382961449753], [11.058787876030349, 6.644426784690593], [10.497375115611417, 7.055357774275562], [10.118276808318255, 7.038769639509879], [9.522705926154398, 6.453482367372116], [9.233162876023043, 6.444490668153334], [8.757532993208626, 5.47966583904791], [8.500287713259693, 4.771982937026847]]] } }, - { "type": "Feature", "properties": { "admin": "Nicaragua", "name": "Nicaragua", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-85.712540452807289, 11.088444932494822], [-86.058488328785245, 11.40343862552994], [-86.525849982432931, 11.806876532432593], [-86.7459915839963, 12.143961900272483], [-87.167516242201131, 12.458257961471656], [-87.668493415054698, 12.909909979702629], [-87.557466600275603, 13.064551703336061], [-87.392386237319201, 12.914018256069836], [-87.316654425795463, 12.984685777228972], [-87.005769009127562, 13.025794379117157], [-86.880557013684339, 13.254204209847241], [-86.733821784191576, 13.263092556201441], [-86.755086636079696, 13.754845485890909], [-86.520708177419877, 13.778487453664436], [-86.312142096689911, 13.771356106008167], [-86.096263800790581, 14.038187364147245], [-85.801294725268576, 13.836054999237586], [-85.698665330736901, 13.960078436738083], [-85.514413011400222, 14.079011745657834], [-85.165364549484792, 14.354369615125076], [-85.148750576502948, 14.560196844943615], [-85.052787441736925, 14.551541042534719], [-84.924500698572388, 14.790492865452348], [-84.820036790694346, 14.819586696832669], [-84.649582078779602, 14.66680532476175], [-84.449335903648588, 14.621614284722494], [-84.228341640952394, 14.748764146376654], [-83.975721401693576, 14.749435939996458], [-83.628584967772895, 14.880073960830298], [-83.489988776366104, 15.016267198135534], [-83.147219000974104, 14.995829169164109], [-83.233234422523907, 14.8998660343981], [-83.28416154654758, 14.676623846897197], [-83.182126430987267, 14.310703029838447], [-83.412499966144424, 13.970077826386554], [-83.519831916014667, 13.56769928634588], [-83.55220720084553, 13.127054348193084], [-83.498515387694255, 12.869292303921226], [-83.473323126951968, 12.419087225794424], [-83.626104499022887, 12.320850328007563], [-83.719613003255034, 11.893124497927724], [-83.650857510090702, 11.629032090700116], [-83.855470343750369, 11.373311265503785], [-83.808935716471538, 11.103043524617274], [-83.655611741861563, 10.938764146361418], [-83.895054490885926, 10.726839097532444], [-84.190178595704822, 10.793450018756671], [-84.355930752281026, 10.999225572142901], [-84.673069017256239, 11.082657172078139], [-84.903003302738924, 10.952303371621895], [-85.561851976244171, 11.217119248901593], [-85.712540452807289, 11.088444932494822]]] } }, - { "type": "Feature", "properties": { "admin": "Netherlands", "name": "Netherlands", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[6.074182570020922, 53.51040334737813], [6.905139601274128, 53.482162177130633], [7.092053256873895, 53.14404328064488], [6.842869500362381, 52.228440253297542], [6.589396599970825, 51.85202912048338], [5.988658074577812, 51.85161570902504], [6.156658155958779, 50.803721015010574], [5.60697594567, 51.037298488969768], [4.973991326526913, 51.475023708698124], [4.047071160507527, 51.267258612668556], [3.314971144228536, 51.345755113319903], [3.830288527043137, 51.620544542031936], [4.705997348661184, 53.091798407597757], [6.074182570020922, 53.51040334737813]]] } }, - { "type": "Feature", "properties": { "admin": "Norway", "name": "Norway", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[28.165547316202911, 71.185474351680497], [31.293418409965472, 70.453787746859902], [30.005435011522785, 70.186258856884876], [31.101078728975118, 69.558080145944857], [29.399580519332879, 69.156916002063056], [28.591929559043187, 69.064776923286686], [29.015572950971968, 69.76649119737796], [27.732292107867885, 70.164193020296281], [26.179622023226298, 69.825298977326142], [25.689212680776389, 69.092113755968995], [24.735679152126714, 68.649556789821432], [23.662049594830759, 68.891247463650515], [22.356237827247405, 68.841741441514941], [21.244936150810723, 69.370443020293109], [20.645592889089581, 69.106247260200846], [20.02526899585791, 69.065138658312705], [19.878559604581248, 68.407194322372604], [17.993868442464386, 68.567391262477329], [17.729181756265344, 68.01055186631622], [16.768878614985535, 68.013936672631374], [16.108712192456832, 67.302455552836889], [15.108411492583055, 66.193866889095418], [13.555689731509087, 64.787027696381458], [13.919905226302202, 64.445420640716108], [13.571916131248766, 64.049114081469654], [12.57993533697393, 64.066218980558332], [11.930569288794228, 63.128317572676977], [11.992064243221531, 61.800362453856557], [12.63114668137524, 61.293571682370079], [12.300365838274896, 60.117932847730046], [11.468271925511173, 59.432393296945989], [11.027368605196925, 58.856149400459394], [10.356556837616095, 59.469807033925363], [8.382000359743641, 58.313288479233265], [7.048748406613297, 58.078884182357271], [5.665835402050418, 58.588155422593658], [5.308234490590733, 59.663231919993805], [4.992078077829005, 61.97099803328426], [5.912900424837885, 62.614472968182682], [8.553411085655766, 63.454008287196459], [10.527709181366784, 64.486038316497471], [12.358346795306371, 65.879725857193151], [14.7611458675816, 67.810641587995121], [16.435927361728968, 68.563205471461671], [19.184028354578512, 69.817444159617807], [21.378416375420606, 70.255169379346043], [23.02374230316158, 70.202071845166259], [24.546543409938515, 71.030496731237221], [26.370049676221807, 70.986261705195361], [28.165547316202911, 71.185474351680497]]], [[[24.72412, 77.85385], [22.49032, 77.44493], [20.72601, 77.67704], [21.41611, 77.93504], [20.8119, 78.25463], [22.88426, 78.45494], [23.28134, 78.07954], [24.72412, 77.85385]]], [[[18.25183, 79.70175], [21.54383, 78.95611], [19.02737, 78.5626], [18.47172, 77.82669], [17.59441, 77.63796], [17.1182, 76.80941], [15.91315, 76.77045], [13.76259, 77.38035], [14.66956, 77.73565], [13.1706, 78.02493], [11.22231, 78.8693], [10.44453, 79.65239], [13.17077, 80.01046], [13.71852, 79.66039], [15.14282, 79.67431], [15.52255, 80.01608], [16.99085, 80.05086], [18.25183, 79.70175]]], [[[25.447625359811887, 80.407340399894494], [27.407505730913492, 80.056405748200447], [25.924650506298171, 79.517833970854539], [23.024465773213613, 79.40001170522909], [20.075188429451877, 79.566823228667232], [19.897266473070907, 79.842361965647498], [18.46226362475792, 79.859880276194403], [17.368015170977454, 80.318896186027004], [20.455992059010693, 80.598155626132225], [21.907944777115397, 80.357679348462071], [22.919252557067431, 80.657144273593488], [25.447625359811887, 80.407340399894494]]]] } }, - { "type": "Feature", "properties": { "admin": "Nepal", "name": "Nepal", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[88.120440708369841, 27.876541652939586], [88.043132765661198, 27.445818589786818], [88.174804315140904, 26.810405178325944], [88.060237664749806, 26.414615383402484], [87.22747195836628, 26.39789805755607], [86.024392938179147, 26.630984605408567], [85.25177859898335, 26.726198431906337], [84.675017938173767, 27.234901231387528], [83.304248895199535, 27.364505723575554], [81.999987420584958, 27.925479234319987], [81.057202589851997, 28.416095282499036], [80.088424513676259, 28.794470119740136], [80.476721225917373, 29.729865220655334], [81.11125613802929, 30.183480943313398], [81.525804477874729, 30.422716986608627], [82.327512648450863, 30.115268052688126], [83.337115106137176, 29.463731594352193], [83.898992954446712, 29.320226141877654], [84.234579705750136, 28.839893703724691], [85.011638218123025, 28.642773952747337], [85.823319940131498, 28.203575954698699], [86.954517043000592, 27.97426178640351], [88.120440708369841, 27.876541652939586]]] } }, - { "type": "Feature", "properties": { "admin": "New Zealand", "name": "New Zealand", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[173.020374790740703, -40.919052422856417], [173.247234328502003, -41.331998793300777], [173.958405389702875, -40.926700534835604], [174.2475867048081, -41.349155368821663], [174.248516880589449, -41.770008233406749], [173.876446568087886, -42.233184096038819], [173.222739699595621, -42.970038344088557], [172.711246372770717, -43.372287693048492], [173.080112746470206, -43.853343601253577], [172.308583612352464, -43.865694268571332], [171.452925246463622, -44.24251881284372], [171.185137974327233, -44.897104180684885], [170.616697219116588, -45.908928724959701], [169.83142215400926, -46.355774834987585], [169.332331170934253, -46.641235446967848], [168.411353794628525, -46.619944756863582], [167.763744745146823, -46.290197442409195], [166.676886021184202, -46.219917494492236], [166.509144321964669, -45.852704766626204], [167.046424188503238, -45.110941257508664], [168.303763462596862, -44.12397307716612], [168.949408807651508, -43.93581918719142], [169.667814569373149, -43.555325616226334], [170.524919875366152, -43.031688327812823], [171.125089960004004, -42.512753594737781], [171.569713983443194, -41.767424411792128], [171.948708937871885, -41.514416599291145], [172.097227004278722, -40.956104424809674], [172.798579543343948, -40.493962090823466], [173.020374790740703, -40.919052422856417]]], [[[174.612008905330526, -36.156397393540537], [175.336615838927173, -37.209097995758263], [175.3575964704375, -36.52619394302112], [175.808886753642469, -36.798942152657681], [175.958490025127475, -37.555381768546063], [176.763195428776555, -37.881253350578696], [177.438813104560495, -37.961248467766488], [178.010354445708657, -37.579824721020124], [178.517093540762801, -37.695373223624792], [178.274731073313802, -38.582812595373092], [177.970460239979332, -39.166342868812968], [177.206992629299123, -39.145775648760839], [176.939980503647007, -39.449736423501562], [177.032946405340113, -39.879942722331471], [176.8858236026052, -40.06597787858216], [176.508017206119348, -40.60480803808958], [176.012440220440283, -41.289624118821493], [175.239567499082966, -41.688307793953236], [175.067898391009408, -41.425894870775075], [174.650972935278418, -41.281820977545443], [175.227630243223615, -40.459235528323397], [174.900156691789959, -39.908933200847216], [173.824046665743992, -39.508854262043506], [173.852261997775315, -39.146602471677461], [174.57480187408035, -38.797683200842748], [174.743473749081033, -38.027807712558378], [174.69701663645057, -37.381128838857954], [174.292028436579187, -36.71109221776144], [174.319003534235549, -36.534823907213884], [173.840996535535766, -36.121980889634109], [173.05417117745958, -35.237125339500331], [172.636005487353714, -34.529106540669382], [173.007042271209457, -34.450661716450334], [173.551298456107475, -35.006183363587958], [174.329390497126241, -35.265495700828616], [174.612008905330526, -36.156397393540537]]]] } }, - { "type": "Feature", "properties": { "admin": "Oman", "name": "Oman", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[58.861141391846573, 21.114034532144299], [58.487985874266961, 20.428985907467101], [58.03431847517659, 20.481437486243347], [57.826372511634098, 20.24300242764863], [57.66576216007094, 19.736004950433109], [57.788700392493368, 19.067570298737646], [57.694390903560667, 18.944709580963799], [57.2342639504338, 18.947991034414255], [56.609650913321971, 18.574267076079476], [56.512189162019482, 18.087113348863934], [56.283520949128011, 17.876066799383945], [55.661491733630683, 17.884128322821535], [55.269939406155189, 17.632309068263194], [55.274900343655091, 17.228354397037659], [54.791002231674113, 16.950696926333357], [54.239252964093751, 17.04498057704998], [53.57050825380459, 16.707662665264674], [53.108572625547502, 16.651051133688977], [52.782184279192066, 17.349742336491229], [52.000009800022227, 19.000003363516068], [54.999981723862405, 19.999994004796118], [55.666659376859869, 22.000001125572307], [55.208341098863187, 22.708329982997007], [55.234489373602869, 23.110992743415348], [55.52584109886449, 23.524869289640911], [55.528631626208288, 23.933604030853498], [55.981213820220503, 24.130542914317854], [55.80411868675624, 24.269604193615287], [55.88623253766805, 24.920830593357486], [56.396847365143984, 24.924732163995508], [56.845140415276049, 24.241673081961487], [57.403452589757428, 23.878594468678834], [58.136947869708322, 23.747930609628835], [58.729211460205427, 23.565667832935414], [59.180501743410346, 22.992395331305456], [59.450097690677033, 22.660270900965592], [59.80806033716285, 22.533611965418199], [59.806148309168087, 22.31052480721419], [59.442191196536399, 21.71454051359208], [59.282407667889871, 21.433885809814875], [58.861141391846573, 21.114034532144299]]], [[[56.391421339753393, 25.895990708921254], [56.261041701080913, 25.714606431576748], [56.070820753814544, 26.055464178973946], [56.362017449779344, 26.395934353128947], [56.485679152253809, 26.309117946878665], [56.391421339753393, 25.895990708921254]]]] } }, - { "type": "Feature", "properties": { "admin": "Pakistan", "name": "Pakistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[75.158027785140902, 37.13303091078911], [75.896897414050116, 36.666806138651829], [76.192848341785677, 35.898403428687821], [77.837450799474553, 35.494009507787759], [76.871721632804011, 34.653544012992732], [75.757060988268321, 34.504922593721311], [74.240202671204955, 34.748887030571247], [73.749948358051952, 34.317698879527846], [74.104293654277328, 33.441473293586846], [74.451559279278698, 32.764899603805489], [75.258641798813187, 32.271105455040491], [74.405928989564998, 31.692639471965272], [74.421380242820263, 30.97981476493117], [73.450638462217412, 29.976413479119863], [72.823751662084689, 28.961591701772047], [71.777665643200308, 27.913180243434521], [70.61649620960192, 27.989196275335861], [69.514392938113119, 26.940965684511365], [70.168926629522005, 26.491871649678835], [70.282873162725579, 25.722228705339823], [70.844699334602822, 25.215102037043511], [71.0432401874682, 24.356523952730193], [68.842599318318761, 24.359133612560932], [68.176645135373377, 23.691965033456704], [67.443666619745457, 23.944843654876983], [67.145441928989058, 24.663611151624639], [66.37282758979326, 25.425140896093847], [64.530407749291115, 25.237038682551425], [62.905700718034595, 25.218409328710202], [61.497362908784183, 25.078237006118492], [61.874187453056535, 26.239974880472097], [63.316631707619578, 26.756532497661659], [63.23389773952028, 27.217047024030702], [62.755425652929851, 27.378923448184985], [62.727830438085974, 28.259644883735383], [61.771868117118615, 28.699333807890792], [61.369308709564926, 29.303276272085917], [60.874248488208778, 29.829238999952604], [62.549856805272775, 29.318572496044304], [63.550260858011164, 29.468330796826162], [64.148002150331237, 29.340819200145965], [64.350418735618504, 29.560030625928089], [65.046862013616092, 29.472180691031902], [66.346472609324408, 29.88794342703617], [66.38145755398601, 30.738899237586448], [66.938891229118454, 31.304911200479346], [67.683393589147457, 31.303154201781414], [67.792689243444769, 31.582930406209623], [68.556932000609308, 31.713310044882011], [68.926676873657655, 31.620189113892064], [69.317764113242546, 31.901412258424436], [69.262522007122541, 32.501944078088293], [69.687147251264847, 33.105498969041228], [70.323594191371583, 33.358532619758385], [69.93054324735958, 34.020120144175102], [70.881803012988385, 33.988855902638512], [71.156773309213449, 34.348911444632144], [71.115018751921625, 34.733125718722228], [71.613076206350698, 35.153203436822857], [71.498767938121077, 35.650563259415996], [71.262348260385735, 36.074387518857797], [71.846291945283909, 36.509942328429851], [72.920024855444453, 36.720007025696312], [74.067551710917812, 36.836175645488446], [74.575892775372964, 37.02084137628345], [75.158027785140902, 37.13303091078911]]] } }, - { "type": "Feature", "properties": { "admin": "Panama", "name": "Panama", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-77.881571417945239, 7.223771267114783], [-78.214936082660103, 7.512254950384159], [-78.429160732726061, 8.052041123888925], [-78.182095709938608, 8.319182440621772], [-78.43546525746568, 8.387705389840788], [-78.622120530903928, 8.718124497915026], [-79.120307176413732, 8.996092027213022], [-79.557877366845176, 8.932374986197145], [-79.760578172510037, 8.584515082224398], [-80.164481167303322, 8.333315944853593], [-80.382659064439608, 8.29840851484043], [-80.480689256497286, 8.090307522001067], [-80.003689948227148, 7.54752411542337], [-80.276670701808982, 7.419754136581713], [-80.421158006497066, 7.271571966984763], [-80.886400926420791, 7.220541490096535], [-81.059542812814698, 7.817921047390596], [-81.189715745757937, 7.647905585150339], [-81.519514736644666, 7.706610012233908], [-81.721311204744453, 8.108962714058434], [-82.131441209628889, 8.175392767769635], [-82.390934414382542, 8.292362372262287], [-82.820081346350406, 8.290863755725821], [-82.850958014644803, 8.073822740099954], [-82.965783047197348, 8.225027980985983], [-82.9131764391242, 8.423517157419068], [-82.829770677405151, 8.626295477732368], [-82.868657192704759, 8.807266343618521], [-82.719183112300513, 8.925708726431493], [-82.927154914059145, 9.074330145702914], [-82.932890998043561, 9.476812038608172], [-82.546196255203469, 9.566134751824674], [-82.187122565423394, 9.207448635286779], [-82.207586432610952, 8.995575262890098], [-81.808566860669259, 8.95061676679617], [-81.714154018872023, 9.031955471223581], [-81.43928707551153, 8.786234035675715], [-80.947301601876745, 8.858503526235905], [-80.521901211250054, 9.11107208906243], [-79.914599778955974, 9.312765204297618], [-79.573302781884294, 9.611610012241526], [-79.021191779277913, 9.552931423374103], [-79.058450486960353, 9.454565334506523], [-78.500887620747164, 9.420458889193879], [-78.055927700497989, 9.247730414258296], [-77.729513515926399, 8.946844387238867], [-77.353360765273848, 8.670504665558068], [-77.474722866511314, 8.524286200388216], [-77.242566494440069, 7.935278225125442], [-77.431107957656977, 7.638061224798733], [-77.75341386586139, 7.709839789252141], [-77.881571417945239, 7.223771267114783]]] } }, - { "type": "Feature", "properties": { "admin": "Peru", "name": "Peru", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-69.590423753524036, -17.580011895419329], [-69.858443569605839, -18.092693780187009], [-70.3725723944777, -18.347975355708861], [-71.375250210236914, -17.77379851651385], [-71.462040778271117, -17.363487644116379], [-73.444529588500401, -16.359362888252992], [-75.23788265654143, -15.26568287522778], [-76.009205084929931, -14.649286390850317], [-76.423469204397733, -13.823186944232431], [-76.259241502574156, -13.535039157772939], [-77.10619238962181, -12.222716159720816], [-78.092152879534623, -10.377712497604062], [-79.036953091126918, -8.38656788496589], [-79.445920376284832, -7.930833428583859], [-79.760578172510037, -7.194340915560081], [-80.537481655586049, -6.541667575713715], [-81.249996304026411, -6.136834405139182], [-80.926346808582423, -5.690556735866563], [-81.410942552399433, -4.736764825055459], [-81.099669562489353, -4.036394138203696], [-80.302560594387188, -3.404856459164712], [-80.184014858709645, -3.821161797708043], [-80.46929460317692, -4.059286797708999], [-80.442241990872134, -4.425724379090673], [-80.028908047185581, -4.346090996928893], [-79.62497921417615, -4.454198093283494], [-79.205289069317715, -4.959128513207388], [-78.639897223612323, -4.547784112164072], [-78.450683966775628, -3.873096612161375], [-77.83790483265858, -3.003020521663103], [-76.635394253226707, -2.608677666843817], [-75.544995693652027, -1.56160979574588], [-75.233722703741932, -0.911416924649529], [-75.373223232713841, -0.15203175212045], [-75.106624518520064, -0.05720549886486], [-74.441600511355958, -0.530820000819887], [-74.122395189089048, -1.002832533373848], [-73.659503546834586, -1.260491224781134], [-73.070392218707212, -2.308954359550952], [-72.325786505813639, -2.434218031426453], [-71.774760708285385, -2.169789727388937], [-71.413645799429773, -2.342802422702128], [-70.813475714791949, -2.256864515800742], [-70.047708502874841, -2.725156345229699], [-70.692682054309699, -3.742872002785858], [-70.394043952094975, -3.766591485207825], [-69.893635219996611, -4.298186944194326], [-70.79476884630229, -4.251264743673302], [-70.928843349883564, -4.401591485210367], [-71.748405727816532, -4.59398284263301], [-72.891927659787243, -5.274561455916979], [-72.964507208941185, -5.741251315944892], [-73.219711269814596, -6.089188734566076], [-73.120027431923575, -6.629930922068238], [-73.724486660441627, -6.918595472850638], [-73.723401455363486, -7.340998630404412], [-73.987235480429646, -7.523829847853063], [-73.571059332967053, -8.424446709835832], [-73.015382656532537, -9.03283334720806], [-73.226713426390148, -9.462212823121233], [-72.563033006465631, -9.520193780152715], [-72.184890713169821, -10.05359791426943], [-71.302412278921523, -10.079436130415372], [-70.481893886991159, -9.490118096558842], [-70.548685675728393, -11.009146823778462], [-70.093752204046879, -11.123971856331011], [-69.52967810736493, -10.951734307502193], [-68.665079718689611, -12.561300144097171], [-68.880079515239956, -12.89972909917665], [-68.929223802349526, -13.602683607643007], [-68.94888668483658, -14.45363941819328], [-69.339534674747, -14.953195489158828], [-69.160346645774936, -15.323973890853015], [-69.389764166934697, -15.66012908291165], [-68.959635382753291, -16.500697930571267], [-69.590423753524036, -17.580011895419329]]] } }, - { "type": "Feature", "properties": { "admin": "Philippines", "name": "Philippines", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[126.376813592637447, 8.414706325713352], [126.478512811387873, 7.750354112168976], [126.537423944200611, 7.189380601424572], [126.19677290253253, 6.274294338400038], [125.831420526229081, 7.293715318221855], [125.363852166852283, 6.78648529706099], [125.683160841983707, 6.049656887227257], [125.396511672060626, 5.581003322772288], [124.219787632342332, 6.16135549562618], [123.938719517106918, 6.88513560630612], [124.243662144061318, 7.360610459823659], [123.610212437027542, 7.833527329942753], [123.29607140512519, 7.418875637232786], [122.825505812675388, 7.457374579290216], [122.085499302255769, 6.899424139834847], [121.919928013192603, 7.192119452336072], [122.312358840017112, 8.034962063016506], [122.94239790251963, 8.316236883981174], [123.487687616063511, 8.693009751821192], [123.841154412939815, 8.240324204944384], [124.6014697612502, 8.514157619659015], [124.764612257995623, 8.960409450715458], [125.471390822451539, 8.986996975129641], [125.412117954612754, 9.760334784377545], [126.222714471543156, 9.28607432701885], [126.306636997585073, 8.782487494334573], [126.376813592637447, 8.414706325713352]]], [[[123.982437778825798, 10.278778591345811], [123.62318322153277, 9.950090643753297], [123.309920688979332, 9.318268744336676], [122.995883009941636, 9.022188625520398], [122.380054966319463, 9.713360907424201], [122.586088901867072, 9.981044826696104], [122.837081333508706, 10.261156927934234], [122.947410516451896, 10.881868394408029], [123.498849725438447, 10.940624497923945], [123.337774285984722, 10.267383938025445], [124.077935825701218, 11.232725531453706], [123.982437778825798, 10.278778591345811]]], [[[118.504580926590336, 9.316382554558087], [117.174274530100675, 8.367499904814663], [117.664477166821371, 9.066888739452933], [118.386913690261736, 9.684499619989223], [118.98734215706105, 10.376292019080507], [119.511496209797528, 11.36966807702721], [119.689676548339889, 10.554291490109872], [119.029458449378978, 10.003653265823869], [118.504580926590336, 9.316382554558087]]], [[[121.883547804859106, 11.891755072471977], [122.483821242361458, 11.582187404827506], [123.120216506035959, 11.583660183147867], [123.100837843926442, 11.165933742716486], [122.637713657726692, 10.741308498574226], [122.002610304859559, 10.441016750526087], [121.967366978036523, 10.905691229694622], [122.038370396005519, 11.415840969280039], [121.883547804859106, 11.891755072471977]]], [[[125.502551711123488, 12.162694606978347], [125.783464797062152, 11.046121934447767], [125.01188398651226, 11.311454576050377], [125.032761265158115, 10.975816148314703], [125.277449172060244, 10.358722032101308], [124.801819289245714, 10.134678859899889], [124.760168084818474, 10.8379951033923], [124.459101190286049, 10.889929917845633], [124.302521600441722, 11.495370998577227], [124.891012811381572, 11.415582587118589], [124.877990350443952, 11.794189968304988], [124.266761509295705, 12.557760931849682], [125.22711632700782, 12.53572093347719], [125.502551711123488, 12.162694606978347]]], [[[121.527393833503481, 13.069590155484516], [121.262190382981544, 12.2055602075644], [120.833896112146533, 12.704496161342416], [120.323436313967477, 13.466413479053866], [121.18012820850214, 13.429697373910439], [121.527393833503481, 13.069590155484516]]], [[[121.321308221523566, 18.504064642811013], [121.937601353036371, 18.21855235439838], [122.246006300954264, 18.478949896717094], [122.336956821787965, 18.224882717354173], [122.174279412933174, 17.810282701076371], [122.51565392465335, 17.09350474697197], [122.252310825693883, 16.262444362854122], [121.662786086108255, 15.931017564350125], [121.505069614753367, 15.124813544164621], [121.728828566577249, 14.328376369682244], [122.258925409027313, 14.218202216035973], [122.701275669445636, 14.336541245984417], [123.950295037940236, 13.782130642141066], [123.855107049658599, 13.237771104378464], [124.181288690284873, 12.997527370653469], [124.077419061378222, 12.536676947474573], [123.298035109552245, 13.027525539598981], [122.928651971529902, 13.552919826710404], [122.671355015148663, 13.185836289925131], [122.034649692880521, 13.784481919810343], [121.126384718918587, 13.636687323455559], [120.628637323083296, 13.857655747935649], [120.679383579593832, 14.271015529838319], [120.99181928923052, 14.525392767795079], [120.693336216312687, 14.756670640517282], [120.564145135582976, 14.396279201713821], [120.070428501466367, 14.970869452367094], [119.920928582846102, 15.406346747290735], [119.883773228028247, 16.363704331929963], [120.286487664878791, 16.034628811095327], [120.39004723519173, 17.599081122299506], [120.7158671407919, 18.505227362537536], [121.321308221523566, 18.504064642811013]]]] } }, - { "type": "Feature", "properties": { "admin": "Papua New Guinea", "name": "Papua New Guinea", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[155.880025669578401, -6.819996840037758], [155.599991082988765, -6.919990736522491], [155.166994256815087, -6.535931491729299], [154.729191522438327, -5.900828138862208], [154.514114211239644, -5.139117526880012], [154.652503696917336, -5.042430922061839], [154.759990676084357, -5.339983819198493], [155.062917922179338, -5.566791680527486], [155.547746209941693, -6.200654799019658], [156.019965448224752, -6.540013929880386], [155.880025669578401, -6.819996840037758]]], [[[151.982795851854462, -5.478063246282344], [151.459106887008659, -5.560280450058739], [151.301390415653884, -5.840728448106701], [150.754447056276661, -6.083762709175387], [150.241196730753813, -6.317753594592984], [149.709963006793316, -6.316513360218051], [148.890064732050462, -6.026040134305432], [148.318936802360696, -5.74714242922613], [148.401825799756864, -5.437755629094722], [149.298411900020824, -5.583741550319216], [149.845561965127217, -5.505503431829339], [149.996250441690279, -5.026101169457674], [150.139755894164921, -5.001348158389788], [150.236907586873485, -5.53222014732428], [150.807467075808063, -5.455842380396886], [151.089672072553981, -5.113692722192368], [151.647880894170811, -4.757073662946168], [151.537861769821518, -4.167807305521889], [152.136791620084352, -4.148790378438519], [152.338743117480988, -4.31296640382976], [152.318692661751754, -4.867661228050748], [151.982795851854462, -5.478063246282344]]], [[[147.191873814074938, -7.388024183789978], [148.084635858349372, -8.044108168167609], [148.734105259393573, -9.104663588093755], [149.306835158484432, -9.071435642130067], [149.266630894161324, -9.514406019736027], [150.038728469034311, -9.684318129111698], [149.738798456012262, -9.872937106977002], [150.801627638959133, -10.29368661869742], [150.690574985963849, -10.582712904505865], [150.028393182575826, -10.652476088099929], [149.782310012001972, -10.393267103723941], [148.923137648717216, -10.28092253992136], [147.913018426707993, -10.130440769087469], [147.135443150012236, -9.492443536012017], [146.567880894150619, -8.942554619994153], [146.048481073184917, -8.067414239131308], [144.74416792213799, -7.630128269077473], [143.897087844009661, -7.915330498896279], [143.286375767184268, -8.245491224809056], [143.413913202080664, -8.983068942910945], [142.628431431244223, -9.326820570516501], [142.068258905200196, -9.159595635620034], [141.033851760013874, -9.117892754760417], [141.017056919519007, -5.85902190513802], [141.000210402591847, -2.600151055515624], [142.735246616791443, -3.289152927263216], [144.583970982033236, -3.861417738463401], [145.27317955950997, -4.373737888205027], [145.829786411725649, -4.876497897972683], [145.981921828392956, -5.465609226100012], [147.648073358347574, -6.083659356310803], [147.891107619416175, -6.614014580922315], [146.970905389594861, -6.721656589386255], [147.191873814074938, -7.388024183789978]]], [[[153.14003787659874, -4.499983412294113], [152.827292108368255, -4.766427097190998], [152.63867313050298, -4.176127211120927], [152.406025832324929, -3.789742526874561], [151.953236932583536, -3.462062269711821], [151.384279413050024, -3.035421644710111], [150.6620495953388, -2.741486097833956], [150.939965448204532, -2.500002129734028], [151.479984165654514, -2.779985039891386], [151.820015090135087, -2.999971612157907], [152.239989455371074, -3.24000864015366], [152.640016717742526, -3.659983005389647], [153.019993524384631, -3.980015150573293], [153.14003787659874, -4.499983412294113]]]] } }, - { "type": "Feature", "properties": { "admin": "Poland", "name": "Poland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[15.016995883858666, 51.106674099321566], [14.607098422919531, 51.745188096719964], [14.685026482815685, 52.089947414755187], [14.437599725002197, 52.624850165408382], [14.074521111719488, 52.981262518925426], [14.353315463934136, 53.248171291712957], [14.119686313542584, 53.757029120491026], [14.802900424873455, 54.050706285205735], [16.363477003655728, 54.513158677785711], [17.622831658608671, 54.851535956432897], [18.620858595461637, 54.682605699270766], [18.696254510175461, 54.438718777069276], [19.6606400896064, 54.426083889373913], [20.89224450041862, 54.312524929412518], [22.731098667092649, 54.327536932993311], [23.243987257589506, 54.220566718149129], [23.484127638449841, 53.912497667041123], [23.527535841574995, 53.47012156840654], [23.804934930117774, 53.08973135030606], [23.799198846133375, 52.691099351606553], [23.19949384938618, 52.486977444053664], [23.508002150168689, 52.023646552124717], [23.52707075368437, 51.578454087930233], [24.029985792748899, 50.705406602575174], [23.922757195743259, 50.424881089878738], [23.426508416444388, 50.308505764357449], [22.518450148211596, 49.476773586619736], [22.776418898212619, 49.027395331409608], [22.558137648211751, 49.08573802346713], [21.607808058364206, 49.470107326854077], [20.887955356538406, 49.328772284535823], [20.415839471119849, 49.431453355499755], [19.825022820726865, 49.217125352569219], [19.320712517990469, 49.571574001659179], [18.909574822676316, 49.435845852244562], [18.85314415861361, 49.496229763377634], [18.392913852622168, 49.988628648470737], [17.649445021238986, 50.049038397819942], [17.554567091551117, 50.36214590107641], [16.868769158605655, 50.473973700556016], [16.719475945714429, 50.215746568393527], [16.176253289462263, 50.4226073268579], [16.238626743238566, 50.697732652379827], [15.490972120839725, 50.7847299261432], [15.016995883858666, 51.106674099321566]]] } }, - { "type": "Feature", "properties": { "admin": "Puerto Rico", "name": "Puerto Rico", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-66.2824344550082, 18.51476166429536], [-65.771302863209286, 18.426679185453875], [-65.591003790942935, 18.228034979723912], [-65.847163865813755, 17.975905666571855], [-66.599934455009475, 17.98182261806927], [-67.184162360285256, 17.946553453030074], [-67.24242753769434, 18.374460150622934], [-67.100679083917726, 18.520601101144347], [-66.2824344550082, 18.51476166429536]]] } }, - { "type": "Feature", "properties": { "admin": "North Korea", "name": "Dem. Rep. Korea", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[130.640015903852401, 42.39500946712527], [130.780007358931101, 42.220007229168843], [130.400030552288996, 42.280003567059701], [129.965948521037234, 41.941367906251052], [129.667362095254788, 41.601104437825221], [129.705189243692445, 40.882827867184318], [129.188114862179958, 40.661807766271984], [129.010399611528186, 40.485436102859801], [128.633368361526692, 40.189846910150301], [127.967414178581322, 40.025412502597547], [127.533435500194145, 39.756850083976694], [127.502119582225276, 39.323930772451526], [127.385434198110261, 39.213472398427648], [127.783342726757709, 39.050898342437414], [128.349716424676586, 38.612242946927843], [128.205745884311426, 38.370397243801882], [127.780035435090966, 38.304535630845884], [127.073308547067342, 38.256114813788393], [126.683719924018888, 37.804772854151174], [126.237338901881742, 37.840377916000271], [126.174758742376213, 37.749685777328033], [125.689103631697165, 37.940010077459014], [125.568439162295675, 37.752088731429616], [125.275330438336184, 37.66907054295271], [125.24008711151312, 37.857224432927424], [124.981033156433952, 37.948820909164773], [124.712160679219352, 38.108346055649783], [124.985994093933954, 38.548474229479673], [125.221948683778677, 38.665857245430665], [125.13285851450749, 38.848559271798578], [125.386589797060566, 39.387957872061158], [125.321115757346774, 39.551384589184202], [124.737482131042384, 39.660344346671614], [124.265624627785286, 39.928493353834149], [125.079941847840615, 40.569823716792442], [126.182045119329402, 41.107336127276362], [126.86908328664984, 41.816569322266176], [127.343782993682993, 41.50315176041596], [128.208433058790632, 41.466771552082477], [128.052215203972281, 41.994284572917934], [129.59666873587949, 42.424981797854542], [129.994267205933198, 42.985386867843779], [130.640015903852401, 42.39500946712527]]] } }, - { "type": "Feature", "properties": { "admin": "Portugal", "name": "Portugal", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-9.034817674180244, 41.880570583659669], [-8.671945766626719, 42.134689439454952], [-8.26385698081779, 42.280468654950326], [-8.01317460776991, 41.790886135417118], [-7.422512986673794, 41.792074693359822], [-7.251308966490822, 41.91834605566504], [-6.668605515967655, 41.883386949219577], [-6.389087693700914, 41.381815497394641], [-6.851126674822551, 41.111082668617513], [-6.864019944679383, 40.330871893874821], [-7.026413133156593, 40.184524237624238], [-7.066591559263527, 39.711891587882768], [-7.498632371439724, 39.629571031241802], [-7.098036668313126, 39.03007274022378], [-7.374092169616317, 38.373058580064914], [-7.029281175148794, 38.075764065089757], [-7.166507941099863, 37.803894354802217], [-7.537105475281022, 37.428904323876232], [-7.45372555177809, 37.097787583966053], [-7.855613165711985, 36.838268540996253], [-8.382816127953687, 36.978880113262449], [-8.898856980820325, 36.868809312480771], [-8.746101446965552, 37.6513455266766], [-8.839997524439879, 38.266243394517609], [-9.287463751655221, 38.358485826158592], [-9.526570603869713, 38.737429104154906], [-9.44698889814023, 39.392066148428363], [-9.048305223008425, 39.755093085278766], [-8.977353481471679, 40.159306138665798], [-8.7686840478771, 40.76063894303018], [-8.790853237330309, 41.18433401139125], [-8.990789353867568, 41.543459377603625], [-9.034817674180244, 41.880570583659669]]] } }, - { "type": "Feature", "properties": { "admin": "Paraguay", "name": "Paraguay", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-62.685057135657871, -22.24902922942238], [-62.291179368729203, -21.051634616787389], [-62.265961269770784, -20.513734633061272], [-61.786326463453761, -19.633736667562957], [-60.043564622626477, -19.342746677327419], [-59.11504248720609, -19.356906019775398], [-58.183471442280492, -19.868399346600359], [-58.166392381408038, -20.176700941653674], [-57.870673997617786, -20.732687676681948], [-57.937155727761287, -22.090175876557169], [-56.881509568902885, -22.282153822521476], [-56.473317430229379, -22.086300144135279], [-55.797958136606894, -22.356929620047815], [-55.61068274598113, -22.655619398694839], [-55.517639329639621, -23.57199757252663], [-55.400747239795407, -23.956935316668797], [-55.027901780809543, -24.001273695575225], [-54.652834235235119, -23.839578138933955], [-54.292959560754511, -24.021014092710722], [-54.293476325077435, -24.570799655863958], [-54.428946092330577, -25.162184747012162], [-54.625290696823562, -25.739255466415507], [-54.788794928595038, -26.621785577096126], [-55.695845506398143, -27.387837009390857], [-56.486701626192989, -27.548499037386286], [-57.609759690976134, -27.395898532828383], [-58.618173590719735, -27.123718763947089], [-57.633660040911117, -25.603656508081638], [-57.777217169817924, -25.162339776309032], [-58.807128465394968, -24.771459242453307], [-60.028966030504016, -24.032796319273267], [-60.846564704009907, -23.880712579038288], [-62.685057135657871, -22.24902922942238]]] } }, - { "type": "Feature", "properties": { "admin": "Palestine", "name": "Palestine", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.545665317534535, 32.393992011030569], [35.545251906076196, 31.782504787720832], [35.397560662586038, 31.489086005167572], [34.927408481594554, 31.35343537040141], [34.970506626125989, 31.616778469360803], [35.225891554512422, 31.754341132121759], [34.974640740709319, 31.866582343059715], [35.183930291491428, 32.532510687788935], [35.545665317534535, 32.393992011030569]]] } }, - { "type": "Feature", "properties": { "admin": "Qatar", "name": "Qatar", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[50.810108270069563, 24.754742539971371], [50.743910760303677, 25.482424221289389], [51.01335167827348, 26.006991685484191], [51.286461622936045, 26.114582017515865], [51.589078810437243, 25.801112779233375], [51.606700473848804, 25.215670477798735], [51.389607781790623, 24.627385972588051], [51.112415398977006, 24.556330878186721], [50.810108270069563, 24.754742539971371]]] } }, - { "type": "Feature", "properties": { "admin": "Romania", "name": "Romania", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.710531447040488, 47.882193915389394], [23.142236362406798, 48.096341050806942], [23.760958286237404, 47.985598456405448], [24.402056105250374, 47.981877753280422], [24.866317172960571, 47.737525743188307], [25.207743361112986, 47.891056423527459], [25.945941196402394, 47.987148749374207], [26.197450392366925, 48.220881252630342], [26.619336785597788, 48.220726223333457], [26.924176059687561, 48.123264472030982], [27.233872918412736, 47.826770941756365], [27.551166212684841, 47.405117092470817], [28.128030226359037, 46.81047638608824], [28.160017937947707, 46.371562608417207], [28.054442986775392, 45.944586086605618], [28.233553501099035, 45.488283189468369], [28.679779493939371, 45.30403087013169], [29.149724969201646, 45.464925442072442], [29.603289015427425, 45.293308010431119], [29.62654340995876, 45.035390936862392], [29.141611769331831, 44.820210272799038], [28.837857700320196, 44.913873806328041], [28.55808149589199, 43.707461656258118], [27.970107049275068, 43.812468166675202], [27.242399529740904, 44.175986029632398], [26.065158725699739, 43.943493760751259], [25.569271681426923, 43.688444729174712], [24.100679152124169, 43.741051337247846], [23.332302280376322, 43.897010809904707], [22.94483239105184, 43.823785305347123], [22.657149692482985, 44.234923000661276], [22.474008416440594, 44.409227606781762], [22.705725538837349, 44.578002834647016], [22.459022251075933, 44.702517198254291], [22.145087924902807, 44.478422349620573], [21.562022739353605, 44.768947251965486], [21.483526238702233, 45.181170152357772], [20.874312778413351, 45.416375433934228], [20.76217492033998, 45.734573065771428], [20.220192498462833, 46.127468980486547], [21.021952345471245, 46.316087958351886], [21.626514926853869, 46.994237779318148], [22.09976769378283, 47.672439276716695], [22.710531447040488, 47.882193915389394]]] } }, - { "type": "Feature", "properties": { "admin": "Russia", "name": "Russia", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[143.648007440362846, 50.747600409541512], [144.65414757708561, 48.976390692737581], [143.173927850517174, 49.306551418650365], [142.558668247650076, 47.861575018904908], [143.533492466404027, 46.836728013692479], [143.505277134372591, 46.137907619809475], [142.747700636973889, 46.740764878926562], [142.092030064054484, 45.966755276058777], [141.906925083585008, 46.805928860046535], [142.018442824470867, 47.780132961612921], [141.904444614835029, 48.859188544299563], [142.135800002205656, 49.615163072297449], [142.179983351815281, 50.952342434281903], [141.594075962490024, 51.935434882202529], [141.682546014573632, 53.301966457728767], [142.606934035410745, 53.762145087287891], [142.209748976815376, 54.225475979216853], [142.654786411712934, 54.365880845753864], [142.914615513276544, 53.704577541714734], [143.260847609632037, 52.740760403039033], [143.235267775647628, 51.756660264688733], [143.648007440362846, 50.747600409541512]]], [[[22.731098667092649, 54.327536932993311], [20.892244500418652, 54.312524929412568], [19.6606400896064, 54.42608388937397], [19.88848147958134, 54.866160386771483], [21.268448927503492, 55.190481675835279], [22.315723504330599, 55.015298570365886], [22.757763706155281, 54.856574408581416], [22.651051873472564, 54.582740993866693], [22.731098667092649, 54.327536932993311]]], [[[180.000000000000114, 70.832199208546669], [178.903425, 70.78114], [178.7253, 71.0988], [180.000000000000114, 71.515714336428246], [180.000000000000114, 70.832199208546669]]], [[[143.60385, 73.21244], [142.08763, 73.20544], [140.038155, 73.31692], [139.86312, 73.36983], [140.81171, 73.76506], [142.06207, 73.85758], [143.48283, 73.47525], [143.60385, 73.21244]]], [[[150.73167, 75.08406], [149.575925, 74.68892], [147.977465, 74.778355], [146.11919, 75.17298], [146.358485, 75.49682], [148.22223, 75.345845], [150.73167, 75.08406]]], [[[145.086285, 75.562625], [144.3, 74.82], [140.61381, 74.84768], [138.95544, 74.61148], [136.97439, 75.26167], [137.51176, 75.94917], [138.831075, 76.13676], [141.471615, 76.09289], [145.086285, 75.562625]]], [[[57.535692579992386, 70.720463975702145], [56.944979282463933, 70.63274323188665], [53.677375115784187, 70.762657782668455], [53.412016635965372, 71.206661688920192], [51.601894565645708, 71.474759019650477], [51.455753615124209, 72.014881089965129], [52.478275180883564, 72.229441636840946], [52.444168735570841, 72.77473135038484], [54.427613559797649, 73.627547512497571], [53.508289829325136, 73.749813951300141], [55.902458937407644, 74.627486477345329], [55.631932814359701, 75.081412258597155], [57.868643833248839, 75.609390367323186], [61.170044386647497, 76.251883450008123], [64.498368361270209, 76.439055487769267], [66.210977003855092, 76.809782213031227], [68.157059767534818, 76.939696763812904], [68.852211134725124, 76.544811306454605], [68.180572544227644, 76.233641669409096], [64.637326287703004, 75.737754625136219], [61.583507521414752, 75.260884507946784], [58.477082147053366, 74.309056301562819], [56.986785516187993, 73.333043524866227], [55.41933597191094, 72.371267605265956], [55.622837762276291, 71.540594794390316], [57.535692579992386, 70.720463975702145]]], [[[106.970130000000111, 76.97419], [107.240000000000123, 76.48], [108.1538, 76.723350000000138], [111.077260000000138, 76.71], [113.33151, 76.22224], [114.13417, 75.84764], [113.88539, 75.327790000000121], [112.77918, 75.03186], [110.151250000000175, 74.47673], [109.4, 74.18], [110.64, 74.04], [112.11919, 73.787740000000113], [113.019540000000234, 73.976930000000138], [113.529580000000294, 73.33505], [113.96881, 73.59488], [115.56782, 73.75285], [118.776330000000215, 73.58772], [119.02, 73.12], [123.20066, 72.97122], [123.257770000000178, 73.73503], [125.380000000000166, 73.56], [126.97644, 73.56549], [128.59126, 73.03871], [129.05157, 72.39872], [128.46, 71.98], [129.715990000000204, 71.19304], [131.288580000000252, 70.786990000000102], [132.253500000000145, 71.8363], [133.857660000000294, 71.386420000000143], [135.56193, 71.655250000000123], [137.49755, 71.34763], [138.234090000000123, 71.62803], [139.86983, 71.487830000000116], [139.14791, 72.4161900000001], [140.46817, 72.849410000000134], [149.5, 72.2], [150.35118000000017, 71.60643], [152.96890000000019, 70.84222], [157.00688, 71.03141], [158.99779, 70.86672], [159.830310000000225, 70.45324], [159.70866, 69.72198], [160.94053000000028, 69.43728], [162.279070000000104, 69.64204], [164.05248, 69.66823], [165.940370000000172, 69.47199], [167.83567, 69.58269], [169.57763000000017, 68.6938], [170.816880000000253, 69.01363], [170.008200000000159, 69.65276], [170.453450000000259, 70.09703], [173.643910000000204, 69.81743], [175.72403000000017, 69.877250000000217], [178.6, 69.4], [180.000000000000114, 68.963636363636553], [180.000000000000114, 64.979708702198465], [179.99281, 64.97433], [178.707200000000199, 64.53493], [177.411280000000147, 64.60821], [178.313000000000187, 64.07593], [178.90825000000018, 63.251970000000128], [179.37034, 62.98262], [179.48636, 62.56894], [179.228250000000116, 62.304100000000133], [177.3643, 62.5219], [174.569290000000194, 61.76915], [173.68013, 61.65261], [172.15, 60.95], [170.6985, 60.33618], [170.330850000000282, 59.88177], [168.90046, 60.57355], [166.294980000000265, 59.7885500000002], [165.840000000000202, 60.16], [164.87674, 59.7316], [163.539290000000108, 59.86871], [163.217110000000218, 59.21101], [162.01733, 58.24328], [162.05297, 57.83912], [163.19191, 57.61503], [163.057940000000144, 56.159240000000111], [162.129580000000203, 56.12219], [161.70146, 55.285680000000148], [162.117490000000117, 54.85514], [160.368770000000325, 54.34433], [160.021730000000218, 53.20257], [158.530940000000157, 52.958680000000236], [158.23118, 51.94269], [156.789790000000266, 51.01105], [156.42000000000013, 51.7], [155.99182, 53.15895], [155.43366, 55.381030000000109], [155.914420000000291, 56.767920000000132], [156.75815, 57.3647], [156.81035, 57.83204], [158.364330000000166, 58.05575], [160.150640000000124, 59.314770000000109], [161.87204, 60.343000000000117], [163.66969, 61.1409], [164.473550000000103, 62.55061], [163.258420000000172, 62.46627], [162.65791, 61.6425], [160.12148, 60.54423], [159.30232, 61.77396], [156.72068, 61.43442], [154.218060000000293, 59.758180000000117], [155.04375, 59.14495], [152.81185, 58.88385], [151.265730000000246, 58.78089], [151.33815, 59.50396], [149.78371, 59.655730000000126], [148.54481, 59.16448], [145.48722, 59.33637], [142.197820000000121, 59.03998], [138.958480000000293, 57.08805], [135.12619, 54.72959], [136.70171, 54.603550000000112], [137.19342, 53.97732], [138.1647, 53.755010000000247], [138.80463, 54.25455], [139.90151, 54.189680000000166], [141.34531, 53.089570000000109], [141.37923, 52.23877], [140.59742000000017, 51.23967], [140.51308, 50.045530000000113], [140.061930000000189, 48.446710000000152], [138.554720000000202, 46.99965], [138.21971, 46.30795], [136.86232, 45.143500000000174], [135.515350000000183, 43.989], [134.869390000000237, 43.39821], [133.536870000000249, 42.81147], [132.90627, 42.79849], [132.278070000000241, 43.284560000000106], [130.935870000000136, 42.55274], [130.78, 42.220000000000191], [130.640000000000157, 42.395], [130.633866408409801, 42.903014634770543], [131.144687941614961, 42.929989732426932], [131.288555129115593, 44.111519680348252], [131.025190000000237, 44.96796], [131.883454217659562, 45.321161607436508], [133.097120000000189, 45.14409], [133.769643996313164, 46.116926988299149], [134.112350000000163, 47.212480000000127], [134.50081, 47.578450000000139], [135.026311476786759, 48.478229885443902], [133.373595819228001, 48.183441677434836], [132.506690000000106, 47.78896], [130.987260000000106, 47.79013], [130.582293328982644, 48.72968740497619], [129.397817824420486, 49.4406000840156], [127.657400000000351, 49.76027], [127.287455682484904, 50.739797268265434], [126.939156528837827, 51.353894151405896], [126.564399041856959, 51.784255479532689], [125.946348911646439, 52.792798570356936], [125.068211297710434, 53.161044826868924], [123.57147, 53.4588], [122.245747918793043, 53.431725979213681], [121.003084751470354, 53.251401068731226], [120.177088657716865, 52.753886216841195], [120.725789015791975, 52.516226304730893], [120.7382, 51.96411], [120.182080000000155, 51.64355], [119.27939, 50.58292], [119.288460728025839, 50.142882798861947], [117.87924441942647, 49.510983384797036], [116.67880089728618, 49.888531399121398], [115.485695428531415, 49.805177313834733], [114.962109816550353, 50.140247300815119], [114.362456496235325, 50.24830272073747], [112.897739699354361, 49.543565375356984], [111.581230910286649, 49.377968248077671], [110.662010532678835, 49.130128078805846], [109.402449171996707, 49.292960516957685], [108.475167270951275, 49.282547715850704], [107.868175897251092, 49.793705145865871], [106.888804152455293, 50.274295966180276], [105.886591424586868, 50.40601919209216], [104.62158, 50.275320000000157], [103.676545444760336, 50.08996613219513], [102.25589, 50.510560000000105], [102.06521, 51.25991], [100.889480421962631, 51.516855780638409], [99.981732212323564, 51.63400625264395], [98.861490513100492, 52.047366034546698], [97.82573978067451, 51.010995184933236], [98.231761509191699, 50.422400621128716], [97.259760000000199, 49.72605], [95.814020000000156, 49.977460000000114], [94.815949334698757, 50.01343333597088], [94.147566359435601, 50.480536607457161], [93.10421, 50.49529], [92.234711541719676, 50.802170722041737], [90.713667433640765, 50.331811835321098], [88.805566847695573, 49.470520738312459], [87.751264276076824, 49.297197984405543], [87.359970330762692, 49.214980780629148], [86.829356723989648, 49.826674709668133], [85.541269972682485, 49.69285858824815], [85.115559523462082, 50.117302964877631], [84.416377394553038, 50.311399644565817], [83.935114780618903, 50.889245510453563], [83.383003778012451, 51.069182847693881], [81.945985548839943, 50.812195949906325], [80.568446893235446, 51.388336493528435], [80.035559523441705, 50.864750881547209], [77.80091556184432, 53.404414984747532], [76.525179477854749, 54.177003485727127], [76.891100294913443, 54.490524400441913], [74.384820000000119, 53.546850000000113], [73.425678745420512, 53.489810289109741], [73.50851606638436, 54.035616766976588], [72.224150018202195, 54.376655381886778], [71.180131056609468, 54.133285224008247], [70.86526655465515, 55.169733588270091], [69.068166945272893, 55.385250149143488], [68.169100376258896, 54.970391750704366], [65.66687, 54.601250000000149], [65.178533563095939, 54.354227810272064], [61.436600000000126, 54.00625], [60.978066440683236, 53.664993394579128], [61.69998619980062, 52.979996446334255], [60.73999311711453, 52.719986477257734], [60.927268507740237, 52.447548326214999], [59.967533807215567, 51.96042043721566], [61.588003371024136, 51.272658799843171], [61.337424350840998, 50.799070136104248], [59.932807244715555, 50.842194118851822], [59.642282342370564, 50.545442206415707], [58.363320000000122, 51.06364], [56.77798, 51.04355], [55.71694, 50.621710000000142], [54.532878452376181, 51.026239732459359], [52.328723585831042, 51.718652248738088], [50.766648390512174, 51.692762356159861], [48.702381626181044, 50.605128485712825], [48.577841424357601, 49.87475962991563], [47.549480421749379, 50.454698391311119], [46.751596307162764, 49.356005764353725], [47.043671502476585, 49.152038886097571], [46.466445753776291, 48.394152330104923], [47.315240000000152, 47.71585], [48.05725, 47.74377], [48.694733514201872, 47.075628160177885], [48.59325000000014, 46.56104], [49.101160000000121, 46.39933], [48.645410000000105, 45.80629], [47.67591, 45.641490000000111], [46.68201, 44.6092], [47.59094, 43.660160000000118], [47.49252, 42.98658], [48.58437000000017, 41.80888], [47.987283156126033, 41.405819200194387], [47.815665724484653, 41.151416124021338], [47.373315464066387, 41.219732367511135], [46.686070591016708, 41.827137152669899], [46.404950799348924, 41.860675157227426], [45.7764, 42.092440000000224], [45.470279168485909, 42.502780666670041], [44.537622918482057, 42.711992702803677], [43.93121, 42.554960000000101], [43.755990000000182, 42.74083], [42.394400000000154, 43.2203], [40.922190000000128, 43.382150000000131], [40.076964959479838, 43.553104153002486], [39.95500857927108, 43.434997666999287], [38.68, 44.28], [37.539120000000104, 44.65721], [36.675460000000122, 45.24469], [37.40317, 45.40451], [38.23295, 46.24087], [37.67372, 46.63657], [39.14767, 47.044750000000128], [39.121200000000123, 47.26336], [38.22353803889947, 47.102189846375971], [38.2551123390298, 47.546400458356956], [38.77057, 47.825620000000228], [39.738277622238982, 47.898937079452068], [39.895620000000136, 48.23241], [39.67465, 48.783820000000127], [40.080789015469477, 49.307429917999364], [40.069040000000108, 49.60105], [38.594988234213552, 49.926461900423718], [38.010631137857068, 49.915661526074715], [37.393459506995228, 50.383953355503664], [36.626167840325387, 50.225590928745127], [35.35611616388811, 50.577197374059139], [35.37791, 50.77394], [35.02218305841793, 51.207572333371495], [34.224815708154402, 51.255993150428921], [34.141978387190612, 51.56641347920619], [34.391730584457228, 51.768881740925892], [33.75269982273587, 52.335074571331646], [32.715760532367163, 52.238465481162159], [32.412058139787767, 52.288694973349763], [32.15944000000021, 52.061250000000101], [31.78597, 52.10168], [31.540018344862254, 52.742052313846429], [31.305200636527978, 53.073995876673301], [31.49764, 53.167430000000124], [32.304519484188368, 53.132726141972839], [32.693643019346119, 53.351420803432141], [32.405598585751157, 53.618045355842], [31.731272820774585, 53.794029446012011], [31.791424187962399, 53.974638576872181], [31.384472283663818, 54.157056382862365], [30.757533807098774, 54.811770941784388], [30.971835971813245, 55.08154775656412], [30.873909132620064, 55.55097646750351], [29.896294386522435, 55.789463202530484], [29.371571893030783, 55.670090643936263], [29.229513380660389, 55.918344224666399], [28.176709425577933, 56.169129950578778], [27.855282016722519, 56.759326483784363], [27.770015903440985, 57.244258124411189], [27.288184848751648, 57.474528306703903], [27.716685825315771, 57.791899115624439], [27.420150000000202, 58.724570000000128], [28.131699253051856, 59.300825100330982], [27.98112, 59.47537], [29.1177, 60.028050000000107], [28.07, 60.503520000000137], [30.211107212044645, 61.780027777749673], [31.139991082491029, 62.357692776124431], [31.516092156711263, 62.867687486412898], [30.035872430142796, 63.552813625738551], [30.444684686003736, 64.204453436939062], [29.544429559047014, 64.948671576590542], [30.21765, 65.80598], [29.054588657352376, 66.944286200622017], [29.977426385220689, 67.69829702419274], [28.445943637818765, 68.364612942163987], [28.591929559043358, 69.064776923286686], [29.39955, 69.15692000000017], [31.101080000000103, 69.55811], [32.132720000000255, 69.905950000000232], [33.77547, 69.301420000000107], [36.51396, 69.06342], [40.292340000000159, 67.9324], [41.059870000000124, 67.457130000000106], [41.125950000000174, 66.79158000000011], [40.01583, 66.266180000000119], [38.38295, 65.99953], [33.918710000000168, 66.75961], [33.18444, 66.63253], [34.81477, 65.900150000000124], [34.87857425307876, 65.436212877048192], [34.943910000000152, 64.414370000000147], [36.23129, 64.10945], [37.012730000000111, 63.84983], [37.141970000000143, 64.33471], [36.539579035089801, 64.76446], [37.176040000000135, 65.143220000000113], [39.59345, 64.520790000000162], [40.4356, 64.76446], [39.762600000000148, 65.49682], [42.09309, 66.47623], [43.01604000000011, 66.41858], [43.94975000000013, 66.06908], [44.53226, 66.756340000000122], [43.69839, 67.35245], [44.187950000000136, 67.95051], [43.45282, 68.57079], [46.250000000000135, 68.25], [46.821340000000156, 67.68997], [45.55517, 67.56652], [45.56202, 67.010050000000192], [46.349150000000137, 66.66767], [47.894160000000248, 66.884550000000146], [48.13876, 67.52238], [50.227660000000142, 67.998670000000132], [53.717430000000164, 68.85738], [54.47171, 68.80815], [53.485820000000118, 68.20131], [54.72628, 68.09702], [55.442680000000124, 68.43866], [57.317020000000149, 68.46628], [58.802000000000206, 68.88082], [59.941420000000178, 68.27844], [61.077840000000165, 68.94069], [60.03, 69.52], [60.55, 69.85], [63.504000000000147, 69.54739], [64.888115, 69.234835000000132], [68.512160000000108, 68.09233000000016], [69.18068, 68.61563000000011], [68.16444, 69.14436], [68.13522, 69.35649], [66.930080000000103, 69.454610000000102], [67.25976, 69.92873], [66.724920000000125, 70.708890000000125], [66.69466, 71.028970000000228], [68.540060000000111, 71.934500000000227], [69.19636, 72.843360000000146], [69.94, 73.04000000000012], [72.58754, 72.77629], [72.79603, 72.22006], [71.84811, 71.40898], [72.47011, 71.09019], [72.79188, 70.39114], [72.564700000000201, 69.02085], [73.66787, 68.4079], [73.2387, 67.7404], [71.280000000000101, 66.320000000000149], [72.423010000000147, 66.172670000000167], [72.82077, 66.53267], [73.920990000000131, 66.789460000000119], [74.186510000000183, 67.28429], [75.052, 67.760470000000154], [74.469260000000148, 68.32899], [74.93584, 68.98918], [73.84236, 69.07146], [73.601870000000204, 69.62763], [74.3998, 70.63175], [73.1011, 71.447170000000241], [74.890820000000204, 72.12119], [74.65926, 72.83227], [75.158010000000175, 72.854970000000108], [75.68351, 72.300560000000118], [75.288980000000109, 71.33556], [76.35911, 71.152870000000135], [75.903130000000161, 71.87401], [77.5766500000001, 72.26717], [79.652020000000107, 72.32011], [81.5, 71.75], [80.61071, 72.582850000000107], [80.51109, 73.6482], [82.25, 73.85], [84.65526, 73.805910000000154], [86.822300000000226, 73.93688], [86.00956, 74.459670000000145], [87.166820000000143, 75.11643], [88.31571, 75.14393], [90.26, 75.64], [92.90058, 75.77333], [93.234210000000132, 76.0472], [95.860000000000127, 76.14], [96.67821, 75.91548], [98.922540000000197, 76.44689], [100.759670000000199, 76.43028], [101.03532, 76.86189], [101.990840000000105, 77.287540000000192], [104.3516, 77.69792], [106.066640000000135, 77.37389], [104.705000000000211, 77.1274], [106.970130000000111, 76.97419]]], [[[105.07547, 78.30689], [99.43814, 77.921], [101.2649, 79.23399], [102.08635, 79.34641], [102.837815, 79.28129], [105.37243, 78.71334], [105.07547, 78.30689]]], [[[51.136186557831266, 80.54728017854093], [49.793684523320692, 80.415427761548202], [48.894411248577526, 80.33956675894369], [48.75493655782175, 80.175468248200829], [47.586119012244147, 80.010181179515328], [46.502825962109647, 80.247246812654339], [47.072455275262897, 80.559424140129451], [44.846958042181107, 80.589809882317169], [46.799138624871226, 80.771917629713627], [48.31847741068465, 80.784009914869927], [48.52280602396668, 80.514568996900138], [49.097189568890897, 80.753985907708412], [50.039767693894603, 80.918885403151791], [51.522932977103679, 80.699725653801906], [51.136186557831266, 80.54728017854093]]], [[[99.93976, 78.88094], [97.75794, 78.7562], [94.97259, 79.044745], [93.31288, 79.4265], [92.5454, 80.14379], [91.18107, 80.34146], [93.77766, 81.0246], [95.940895, 81.2504], [97.88385, 80.746975], [100.186655, 79.780135], [99.93976, 78.88094]]]] } }, - { "type": "Feature", "properties": { "admin": "Rwanda", "name": "Rwanda", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[30.419104852019235, -1.134659112150416], [30.816134881317705, -1.698914076345388], [30.758308953583104, -2.287250257988368], [30.469696079232978, -2.413857517103458], [29.938359002407935, -2.348486830254238], [29.632176141078585, -2.917857761246096], [29.02492638521678, -2.839257907730157], [29.117478875451546, -2.292211195488384], [29.254834832483336, -2.215109958508911], [29.29188683443661, -1.620055840667987], [29.579466180140876, -1.341313164885626], [29.821518588996003, -1.443322442229785], [30.419104852019235, -1.134659112150416]]] } }, - { "type": "Feature", "properties": { "admin": "Western Sahara", "name": "W. Sahara", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-8.794883999049075, 27.120696316022503], [-8.81782833498667, 27.656425889592349], [-8.665589565454805, 27.656425889592349], [-8.66512447756419, 27.58947907155822], [-8.684399786809051, 27.395744126895998], [-8.687293667017398, 25.881056219988899], [-11.969418911171159, 25.933352769468261], [-11.93722449385332, 23.374594224536164], [-12.874221564169574, 23.284832261645171], [-13.118754441774708, 22.771220201096249], [-12.929101935263528, 21.327070624267559], [-16.845193650773989, 21.333323472574875], [-17.063423224342568, 20.99975210213082], [-17.020428432675736, 21.422310288981475], [-17.002961798561085, 21.420734157796574], [-14.750954555713532, 21.50060008390366], [-14.630832688851068, 21.860939846274899], [-14.221167771857251, 22.310163072188153], [-13.891110398809044, 23.691009019459297], [-12.500962693725368, 24.770116278578193], [-12.030758836301613, 26.030866197203036], [-11.718219773800353, 26.104091701760616], [-11.392554897496977, 26.883423977154358], [-10.551262579785272, 26.990807603456879], [-10.18942420087758, 26.860944729107398], [-9.735343390328877, 26.860944729107398], [-9.413037482124464, 27.088476060488514], [-8.794883999049075, 27.120696316022503]]] } }, - { "type": "Feature", "properties": { "admin": "Saudi Arabia", "name": "Saudi Arabia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[42.779332309750963, 16.34789134364868], [42.64957278826607, 16.77463532151496], [42.347989129410706, 17.075805568911996], [42.270887892431219, 17.474721787989122], [41.754381951673949, 17.833046169500971], [41.221391229015573, 18.671599636301206], [40.939341261566533, 19.486485297111752], [40.247652215339819, 20.174634507726488], [39.801684604660934, 20.338862209550054], [39.139399448408277, 21.29190481209293], [39.023695916506782, 21.986875311770191], [39.066328973147577, 22.579655666590263], [38.492772251140075, 23.688451036060851], [38.023860304523616, 24.078685614512928], [37.483634881344379, 24.285494696545008], [37.154817742671177, 24.858482977797301], [37.209491408035994, 25.084541530858104], [36.931627231602583, 25.602959499610172], [36.639603712721218, 25.826227525327219], [36.249136590323808, 26.570135606384873], [35.640181512196385, 27.376520494083415], [35.130186801907875, 28.063351955674712], [34.632336053207972, 28.058546047471559], [34.787778761541936, 28.607427273059692], [34.832220493312938, 28.957483425404838], [34.956037225084252, 29.356554673778835], [36.068940870922049, 29.19749461518445], [36.501214227043583, 29.505253607698702], [36.740527784987243, 29.865283311476183], [37.503581984209028, 30.003776150018396], [37.668119744626374, 30.338665269485894], [37.998848911294367, 30.508499864213128], [37.002165561681004, 31.508412990844736], [39.004885695152545, 32.010216986614971], [39.195468377444961, 32.16100881604266], [40.399994337736238, 31.889991766887931], [41.889980910007829, 31.190008653278362], [44.709498732284736, 29.178891099559376], [46.568713413281742, 29.099025173452283], [47.459821811722819, 29.002519436147217], [47.708850538937376, 28.526062730416136], [48.416094191283939, 28.552004299426663], [48.807594842327163, 27.689627997339876], [49.299554477745815, 27.461218166609804], [49.470913527225647, 27.109999294538078], [50.152422316290874, 26.689663194275994], [50.212935418504671, 26.277026882425371], [50.113303257045928, 25.943972276304248], [50.23985883972874, 25.608049628190923], [50.527386509000728, 25.327808335872099], [50.660556675016885, 24.999895534764018], [50.810108270069563, 24.754742539971371], [51.112415398977006, 24.556330878186721], [51.389607781790623, 24.627385972588051], [51.579518670463258, 24.245497137951102], [51.617707553926969, 24.014219265228824], [52.000733270074321, 23.001154486578937], [55.006803012924898, 22.496947536707129], [55.208341098863187, 22.708329982997039], [55.666659376859812, 22.000001125572336], [54.999981723862355, 19.999994004796104], [52.000009800022227, 19.000003363516054], [49.116671583864857, 18.616667588774941], [48.183343540241324, 18.166669216377311], [47.466694777217626, 17.116681626854877], [47.000004917189749, 16.949999294497438], [46.749994337761642, 17.283338120996174], [46.366658563020529, 17.233315334537632], [45.399999220568752, 17.333335069238554], [45.216651238797184, 17.43332896572333], [44.062613152855072, 17.410358791569589], [43.791518589051904, 17.319976711491105], [43.380794305196098, 17.579986680567668], [43.115797560403351, 17.088440456607369], [43.218375278502734, 16.666889960186406], [42.779332309750963, 16.34789134364868]]] } }, - { "type": "Feature", "properties": { "admin": "Sudan", "name": "Sudan", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[33.963392794971178, 9.464285229420623], [33.824963480907506, 9.48406084571536], [33.842130853028145, 9.981914637215992], [33.721959248183097, 10.325262079630191], [33.206938084561777, 10.720111638406591], [33.086766479716729, 11.441141267476493], [33.206938084561777, 12.179338268667093], [32.743419037302537, 12.24800775714999], [32.674749548819641, 12.024831919580716], [32.073891524594778, 11.973329803218517], [32.314234734284746, 11.681484477166519], [32.400071594888338, 11.080626452941486], [31.850715687025509, 10.531270545078822], [31.352861895524875, 9.810240916008693], [30.837840731903377, 9.707236683284519], [29.996639497988546, 10.290927335388684], [29.618957311332842, 10.084918869940223], [29.515953078608607, 9.793073543888053], [29.000931914987166, 9.604232450560287], [28.966597170745779, 9.398223985111654], [27.970889587744345, 9.398223985111654], [27.833550610778783, 9.604232450560287], [27.112520981708876, 9.638567194801622], [26.752006167173811, 9.466893473594492], [26.477328213242508, 9.552730334198086], [25.96230704962101, 10.136420986302422], [25.790633328413943, 10.411098940233726], [25.069603699343979, 10.27375996326799], [24.79492574541268, 9.810240916008693], [24.537415163602017, 8.917537565731719], [24.194067721187643, 8.728696472403895], [23.886979580860665, 8.619729712933063], [23.805813429466745, 8.666318874542522], [23.459012892355979, 8.954285793489019], [23.394779087017291, 9.26506785729225], [23.557249790142915, 9.681218166538766], [23.554304233502187, 10.089255275915319], [22.977543572692749, 10.714462591998538], [22.864165480244246, 11.142395127807616], [22.87622, 11.384610000000119], [22.50869, 11.67936], [22.49762, 12.26024], [22.28801, 12.64605], [21.93681, 12.588180000000133], [22.03759, 12.95546], [22.29658, 13.37232], [22.18329, 13.78648], [22.51202, 14.09318], [22.30351, 14.32682], [22.567950000000106, 14.944290000000134], [23.02459, 15.68072], [23.886890000000101, 15.61084], [23.837660000000135, 19.580470000000101], [23.850000000000129, 20.0], [25.00000000000011, 20.00304], [25.00000000000011, 22.0], [29.02, 22.0], [32.9, 22.0], [36.86623, 22.0], [37.18872, 21.01885], [36.96941, 20.837440000000125], [37.114700000000134, 19.80796], [37.48179, 18.61409], [37.86276, 18.36786], [38.410089959473218, 17.998307399970312], [37.904000000000103, 17.42754], [37.16747, 17.263140000000128], [36.852530000000108, 16.95655], [36.75389, 16.29186], [36.32322, 14.82249], [36.42951, 14.42211], [36.27022, 13.563330000000118], [35.86363, 12.57828], [35.26049, 12.08286], [34.831630000000125, 11.318960000000116], [34.73115000000012, 10.910170000000106], [34.25745, 10.63009], [33.96162, 9.58358], [33.963392794971178, 9.464285229420623]]] } }, - { "type": "Feature", "properties": { "admin": "South Sudan", "name": "S. Sudan", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[33.963392794971178, 9.464285229420623], [33.97498, 8.68456], [33.82550000000014, 8.37916], [33.294800000000116, 8.35458], [32.95418, 7.7849700000001], [33.56829, 7.71334], [34.0751, 7.22595], [34.25032, 6.82607], [34.70702, 6.59422000000012], [35.298007118233095, 5.506], [34.620196267853935, 4.847122742082034], [34.005, 4.249884947362147], [33.39, 3.79], [32.68642, 3.79232], [31.881450000000136, 3.55827], [31.24556, 3.7819], [30.83385, 3.50917], [29.95349, 4.1737], [29.715995314256013, 4.600804755060152], [29.159078403446635, 4.389267279473244], [28.696677687298795, 4.455077215996993], [28.428993768026992, 4.287154649264607], [27.979977247842946, 4.408413397637388], [27.374226108517625, 5.233944403500173], [27.213409051225248, 5.550953477394613], [26.465909458123289, 5.946717434101855], [26.213418409945113, 6.546603298362127], [25.796647983511257, 6.979315904158169], [25.124130893664805, 7.500085150579422], [25.114932488716867, 7.825104071479244], [24.567369012152191, 8.229187933785452], [23.886979580860665, 8.619729712933063], [24.194067721187643, 8.728696472403895], [24.537415163602017, 8.917537565731719], [24.79492574541268, 9.810240916008693], [25.069603699343979, 10.27375996326799], [25.790633328413943, 10.411098940233726], [25.96230704962101, 10.136420986302422], [26.477328213242508, 9.552730334198086], [26.752006167173811, 9.466893473594492], [27.112520981708876, 9.638567194801622], [27.833550610778783, 9.604232450560287], [27.970889587744345, 9.398223985111654], [28.966597170745779, 9.398223985111654], [29.000931914987166, 9.604232450560287], [29.515953078608607, 9.793073543888053], [29.618957311332842, 10.084918869940223], [29.996639497988546, 10.290927335388684], [30.837840731903377, 9.707236683284519], [31.352861895524875, 9.810240916008693], [31.850715687025509, 10.531270545078822], [32.400071594888338, 11.080626452941486], [32.314234734284746, 11.681484477166519], [32.073891524594778, 11.973329803218517], [32.674749548819641, 12.024831919580716], [32.743419037302537, 12.24800775714999], [33.206938084561777, 12.179338268667093], [33.086766479716729, 11.441141267476493], [33.206938084561777, 10.720111638406591], [33.721959248183097, 10.325262079630191], [33.842130853028145, 9.981914637215992], [33.824963480907506, 9.48406084571536], [33.963392794971178, 9.464285229420623]]] } }, - { "type": "Feature", "properties": { "admin": "Senegal", "name": "Senegal", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-16.713728807023468, 13.594958604379853], [-17.126106736712611, 14.373515733289221], [-17.625042690490655, 14.72954051356407], [-17.185172898822227, 14.91947724045286], [-16.700706346085919, 15.621527411354107], [-16.463098110407881, 16.135036119038457], [-16.120690070041928, 16.45566254319338], [-15.623666144258689, 16.369337063049809], [-15.135737270558813, 16.587282416240779], [-14.577347581428977, 16.598263658102805], [-14.099521450242175, 16.304302273010489], [-13.43573767745306, 16.039383042866188], [-12.830658331747513, 15.303691514542942], [-12.170750291380299, 14.616834214735503], [-12.124887457721256, 13.994727484589784], [-11.927716030311613, 13.422075100147392], [-11.553397793005427, 13.141213690641063], [-11.467899135778522, 12.754518947800973], [-11.513942836950587, 12.442987575729415], [-11.658300950557928, 12.386582749882834], [-12.20356482588563, 12.465647691289401], [-12.278599005573438, 12.354440008997285], [-12.499050665730561, 12.332089952031053], [-13.217818162478235, 12.575873521367964], [-13.700476040084322, 12.586182969610192], [-15.548476935274005, 12.628170070847343], [-15.816574266004251, 12.515567124883345], [-16.147716844130581, 12.547761542201185], [-16.67745195155457, 12.38485158940105], [-16.84152462408127, 13.151393947802557], [-15.931295945692208, 13.130284125211331], [-15.691000535534991, 13.270353094938455], [-15.511812506562931, 13.278569647672864], [-15.141163295949463, 13.509511623585235], [-14.712197231494626, 13.298206691943774], [-14.277701788784553, 13.28058502853224], [-13.844963344772404, 13.505041612191999], [-14.046992356817478, 13.794067898000446], [-14.376713833055785, 13.625680243377371], [-14.687030808968483, 13.63035696049978], [-15.081735398813816, 13.876491807505982], [-15.398770310924457, 13.860368760630916], [-15.624596320039936, 13.623587347869556], [-16.713728807023468, 13.594958604379853]]] } }, - { "type": "Feature", "properties": { "admin": "Solomon Islands", "name": "Solomon Is.", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[162.119024693040842, -10.482719008021133], [162.398645868172196, -10.826367282762119], [161.700032180018354, -10.820011081590222], [161.319796991214702, -10.204751478723123], [161.917383254237933, -10.446700534713653], [162.119024693040842, -10.482719008021133]]], [[[160.852228631837903, -9.872937106977002], [160.462588332357228, -9.89520964929484], [159.849447463214176, -9.794027194867367], [159.640002883135139, -9.639979750205269], [159.70294477766663, -9.242949720906777], [160.362956170898428, -9.400304457235533], [160.688517694337179, -9.610162448772808], [160.852228631837903, -9.872937106977002]]], [[[161.679981724289121, -9.599982191611373], [161.52939660059053, -9.784312025596433], [160.788253208660507, -8.917543226764918], [160.579997186524338, -8.320008640173965], [160.92002811100491, -8.320008640173965], [161.280006138349961, -9.120011488484449], [161.679981724289121, -9.599982191611373]]], [[[159.875027297198585, -8.337320244991714], [159.917401971677975, -8.538289890174864], [159.133677199539335, -8.114181410355398], [158.586113722974687, -7.754823500197713], [158.211149530264834, -7.421872246941147], [158.359977655265425, -7.320017998893915], [158.820001255527671, -7.56000335045739], [159.640002883135139, -8.020026950719567], [159.875027297198585, -8.337320244991714]]], [[[157.53842573468927, -7.347819919466928], [157.339419793933217, -7.404767347852554], [156.902030471014768, -7.176874281445391], [156.491357863591304, -6.765943291860394], [156.542827590153934, -6.599338474151478], [157.140000441718882, -7.021638278840653], [157.53842573468927, -7.347819919466928]]]] } }, - { "type": "Feature", "properties": { "admin": "Sierra Leone", "name": "Sierra Leone", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-11.438779466182053, 6.785916856305746], [-11.708194545935736, 6.860098374860724], [-12.428098924193815, 7.262942002792029], [-12.949049038128193, 7.798645738145736], [-13.124025437868479, 8.163946438016977], [-13.246550258832512, 8.903048610871506], [-12.711957566773076, 9.342711696810765], [-12.596719122762206, 9.620188300001969], [-12.425928514037562, 9.835834051955953], [-12.150338100625003, 9.858571682164378], [-11.917277390988655, 10.046983954300556], [-11.117481248407328, 10.045872911006283], [-10.839151984083299, 9.688246161330367], [-10.622395188835037, 9.267910061068276], [-10.65477047366589, 8.977178452994194], [-10.494315151399629, 8.715540676300433], [-10.505477260774667, 8.348896389189603], [-10.230093553091276, 8.406205552601291], [-10.695594855176477, 7.939464016141085], [-11.14670427086838, 7.396706447779534], [-11.199801805048278, 7.105845648624735], [-11.438779466182053, 6.785916856305746]]] } }, - { "type": "Feature", "properties": { "admin": "El Salvador", "name": "El Salvador", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-87.793111131526558, 13.384480495655051], [-87.904112108089507, 13.149016831917134], [-88.483301561216791, 13.163951320849488], [-88.843227912129692, 13.259733588102474], [-89.256742723329282, 13.4585328231293], [-89.812393561547637, 13.520622056527994], [-90.095554572290951, 13.73533763270073], [-90.064677903996568, 13.881969509328924], [-89.7219339668207, 14.134228013561694], [-89.5342193265205, 14.244815578666302], [-89.587342698916544, 14.362586167859485], [-89.353325975282772, 14.424132798719112], [-89.058511929057644, 14.340029405164085], [-88.843072882832814, 14.140506700085169], [-88.541230841815974, 13.980154730683475], [-88.50399797234968, 13.845485948130854], [-88.065342576840123, 13.964625962779774], [-87.859515347021585, 13.893312486216979], [-87.723502977229387, 13.785050360565503], [-87.793111131526558, 13.384480495655051]]] } }, - { "type": "Feature", "properties": { "admin": "Somaliland", "name": "Somaliland", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[48.938129510296491, 9.451748968946672], [48.486735874226994, 8.837626247589979], [47.78942, 8.003], [46.948328484897942, 7.996876532417386], [43.67875, 9.183580000000116], [43.296975132018744, 9.540477403191742], [42.92812, 10.021940000000139], [42.55876, 10.572580000000126], [42.776851841000948, 10.926878566934416], [43.145304803242126, 11.462039699748853], [43.470659620951658, 11.27770986576388], [43.666668328634834, 10.864169216348158], [44.117803582542805, 10.445538438351603], [44.614259067570849, 10.442205308468941], [45.556940545439133, 10.698029486529775], [46.645401238802997, 10.816549383991171], [47.525657586462778, 11.127228094929986], [48.021596307167769, 11.193063869669741], [48.378783807169263, 11.375481675660122], [48.948206414593457, 11.410621649618516], [48.942005242718423, 11.394266058798163], [48.938491245322595, 10.982327378783451], [48.938232863161076, 9.973500067581481], [48.938129510296491, 9.451748968946672]]] } }, - { "type": "Feature", "properties": { "admin": "Somalia", "name": "Somalia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[49.72862, 11.5789], [50.25878, 11.67957], [50.73202, 12.0219], [51.1112, 12.02464], [51.13387, 11.74815], [51.04153, 11.16651], [51.04531, 10.6409], [50.83418, 10.27972], [50.55239, 9.19874], [50.07092, 8.08173], [49.4527, 6.80466], [48.59455, 5.33911], [47.74079, 4.2194], [46.56476, 2.85529], [45.56399, 2.04576], [44.06815, 1.05283], [43.13597, 0.2922], [42.04157, -0.91916], [41.81095, -1.44647], [41.58513, -1.68325], [40.993, -0.85829], [40.98105, 2.78452], [41.855083092643966, 3.918911920483726], [42.12861, 4.23413], [42.76967, 4.25259], [43.66087, 4.95755], [44.9636, 5.00162], [47.78942, 8.003], [48.486735874226937, 8.837626247589993], [48.938129510296442, 9.451748968946616], [48.938232863161026, 9.973500067581508], [48.938491245322481, 10.982327378783465], [48.942005242718345, 11.394266058798136], [48.948204758509732, 11.410617281697961], [49.26776, 11.43033], [49.72862, 11.5789]]] } }, - { "type": "Feature", "properties": { "admin": "Republic of Serbia", "name": "Serbia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.874312778413408, 45.416375433934306], [21.483526238702204, 45.181170152357865], [21.562022739353718, 44.768947251965635], [22.145087924902892, 44.478422349620573], [22.459022251075961, 44.702517198254426], [22.705725538837434, 44.578002834647002], [22.47400841644065, 44.409227606781762], [22.657149692483067, 44.234923000661347], [22.410446404721593, 44.008063462900047], [22.500156691180219, 43.642814439460999], [22.986018507588479, 43.211161200527094], [22.604801466571352, 42.898518785161109], [22.43659467946139, 42.580321153323943], [22.545011834409642, 42.461362006188025], [22.380525750424674, 42.320259507815074], [21.917080000000105, 42.30364], [21.576635989402117, 42.245224397061847], [21.54332, 42.32025], [21.66292, 42.43922], [21.77505, 42.6827], [21.63302, 42.67717], [21.43866, 42.86255], [21.27421, 42.90959], [21.143395, 43.068685000000123], [20.95651, 43.13094], [20.81448, 43.27205], [20.63508, 43.21671], [20.49679, 42.88469], [20.25758, 42.81275], [20.3398, 42.89852], [19.95857, 43.10604], [19.63, 43.213779970270522], [19.48389, 43.35229], [19.21852, 43.52384], [19.454, 43.568100000000115], [19.59976, 44.03847], [19.11761, 44.42307], [19.36803, 44.863], [19.00548, 44.86023], [19.390475701584588, 45.236515611342369], [19.072768995854172, 45.521511135432078], [18.82982, 45.90888], [19.596044549241636, 46.171729844744547], [20.22019249846289, 46.127468980486569], [20.76217492033998, 45.734573065771478], [20.874312778413408, 45.416375433934306]]] } }, - { "type": "Feature", "properties": { "admin": "Suriname", "name": "Suriname", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-57.147436489476874, 5.973149929219161], [-55.949318406789786, 5.772877915872], [-55.841779751190408, 5.953125311706059], [-55.033250291551759, 6.025291449401662], [-53.958044603070888, 5.756548163267764], [-54.478632981979224, 4.896755682795585], [-54.3995422023565, 4.212611395683466], [-54.006930508018996, 3.620037746592558], [-54.181726040246261, 3.189779771330421], [-54.269705166223183, 2.732391669115046], [-54.524754197799709, 2.311848863123785], [-55.097587449755125, 2.523748073736612], [-55.569755011605984, 2.42150625244713], [-55.973322109589361, 2.510363877773016], [-56.073341844290283, 2.220794989425499], [-55.905600145070871, 2.021995754398659], [-55.995698004771739, 1.817667141116601], [-56.53938574891454, 1.89952260986692], [-57.150097825739898, 2.768926906745406], [-57.281433478409703, 3.333491929534119], [-57.601568976457848, 3.334654649260684], [-58.044694383360664, 4.060863552258382], [-57.860209520078691, 4.576801052260449], [-57.914288906472123, 4.812626451024413], [-57.307245856339492, 5.073566595882225], [-57.147436489476874, 5.973149929219161]]] } }, - { "type": "Feature", "properties": { "admin": "Slovakia", "name": "Slovakia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[18.85314415861361, 49.496229763377634], [18.909574822676316, 49.435845852244562], [19.320712517990469, 49.571574001659179], [19.825022820726865, 49.217125352569219], [20.415839471119849, 49.431453355499755], [20.887955356538406, 49.328772284535823], [21.607808058364206, 49.470107326854077], [22.558137648211751, 49.08573802346713], [22.280841912533553, 48.825392157580659], [22.085608351334848, 48.422264309271782], [21.872236362401729, 48.319970811550007], [20.801293979584919, 48.62385407164237], [20.473562045989862, 48.562850043321809], [20.239054396249344, 48.327567247096916], [19.769470656013109, 48.2026911484636], [19.66136355965849, 48.266614895208647], [19.174364861739885, 48.111378892603859], [18.777024773847668, 48.081768296900627], [18.696512892336923, 47.88095368101439], [17.857132602620023, 47.758428860050365], [17.488472934649813, 47.867466132186209], [16.979666782304033, 48.123497015976298], [16.879982944412998, 48.470013332709463], [16.960288120194573, 48.596982326850593], [17.101984897538895, 48.8169688991171], [17.545006951577101, 48.800019029325362], [17.886484816161808, 48.903475246773695], [17.913511590250462, 48.996492824899072], [18.104972771891848, 49.043983466175298], [18.170498488037961, 49.271514797556421], [18.399993523846174, 49.315000515330034], [18.554971144289478, 49.495015367218777], [18.85314415861361, 49.496229763377634]]] } }, - { "type": "Feature", "properties": { "admin": "Slovenia", "name": "Slovenia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[13.806475457421524, 46.509306138691201], [14.632471551174827, 46.431817328469535], [15.137091912504982, 46.658702704447016], [16.011663852612653, 46.683610744811688], [16.202298211337361, 46.852385972676949], [16.370504998447412, 46.841327216166498], [16.564808383864854, 46.503750922219822], [15.768732944408548, 46.238108222023442], [15.671529575267552, 45.834153550797865], [15.323953891672403, 45.731782538427673], [15.327674594797424, 45.452316392593218], [14.935243767972931, 45.471695054702671], [14.595109490627804, 45.6349409043127], [14.411968214585411, 45.466165676447446], [13.715059848697221, 45.500323798192369], [13.937630242578305, 45.591015936864608], [13.698109978905475, 46.016778062517339], [13.806475457421524, 46.509306138691201]]] } }, - { "type": "Feature", "properties": { "admin": "Sweden", "name": "Sweden", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.183173455501922, 65.723740546320158], [21.213516879977213, 65.02600535751526], [21.369631381930954, 64.413587958424273], [19.778875766690216, 63.609554348395022], [17.847779168375208, 62.749400132896803], [17.11955488451812, 61.341165676510954], [17.831346062906388, 60.636583360427394], [18.787721795332086, 60.081914374422581], [17.869224887776337, 58.95376618105869], [16.829185011470084, 58.719826972073385], [16.44770958829147, 57.041118069071871], [15.87978559740378, 56.104301866268649], [14.666681349352071, 56.20088511822216], [14.100721062891461, 55.407781073622637], [12.942910597392054, 55.361737372450563], [12.625100538797025, 56.307080186581956], [11.787942335668671, 57.441817125063061], [11.027368605196866, 58.856149400459344], [11.468271925511145, 59.432393296946024], [12.300365838274896, 60.117932847730025], [12.631146681375181, 61.293571682370121], [11.992064243221559, 61.800362453856543], [11.930569288794228, 63.128317572676963], [12.57993533697393, 64.066218980558318], [13.571916131248711, 64.049114081469696], [13.9199052263022, 64.445420640716065], [13.555689731509087, 64.7870276963815], [15.108411492582999, 66.19386688909546], [16.108712192456775, 67.302455552836875], [16.768878614985478, 68.013936672631388], [17.729181756265344, 68.010551866316263], [17.993868442464329, 68.567391262477344], [19.878559604581248, 68.407194322372561], [20.025268995857882, 69.065138658312691], [20.645592889089521, 69.106247260200846], [21.978534783626113, 68.616845608180682], [23.539473097434435, 67.936008612735236], [23.565879754335576, 66.396050930437411], [23.903378533633795, 66.006927395279604], [22.183173455501922, 65.723740546320158]]] } }, - { "type": "Feature", "properties": { "admin": "Swaziland", "name": "Swaziland", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[32.071665480281062, -26.733820082304902], [31.868060337051073, -27.17792734142127], [31.282773064913325, -27.285879408478991], [30.685961948374477, -26.743845310169526], [30.676608514129633, -26.398078301704604], [30.949666782359905, -26.022649021104144], [31.044079624157146, -25.731452325139436], [31.333157586397899, -25.660190525008943], [31.837777947728057, -25.843331801051342], [31.985779249811962, -26.29177988048022], [32.071665480281062, -26.733820082304902]]] } }, - { "type": "Feature", "properties": { "admin": "Syria", "name": "Syria", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[38.792340529136077, 33.378686428352218], [36.834062127435537, 32.312937526980768], [35.719918247222743, 32.709192409794859], [35.700797967274745, 32.716013698857374], [35.836396925608618, 32.868123277308506], [35.821100701650231, 33.277426459276292], [36.066460402172048, 33.824912421192543], [36.611750115715886, 34.201788641897174], [36.448194207512095, 34.59393524834406], [35.998402540843628, 34.644914048799997], [35.905023227692219, 35.410009467097318], [36.149762811026527, 35.821534735653664], [36.417550083163029, 36.040616970355053], [36.685389031731795, 36.259699205056457], [36.739494256341395, 36.817520453431079], [37.066761102045824, 36.623036200500614], [38.167727492024191, 36.901210435527766], [38.699891391765895, 36.712927354472335], [39.522580193852541, 36.716053778625984], [40.673259311695681, 37.091276353497285], [41.212089471203043, 37.074352321921687], [42.349591098811764, 37.22987254490409], [41.837064243340954, 36.605853786763568], [41.289707472505448, 36.358814602192261], [41.383965285005807, 35.628316555314349], [41.00615888851992, 34.419372260062111], [38.792340529136077, 33.378686428352218]]] } }, - { "type": "Feature", "properties": { "admin": "Chad", "name": "Chad", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[14.495787387762899, 12.859396267137353], [14.595781284247604, 13.330426947477859], [13.954476759505607, 13.353448798063765], [13.956698846094124, 13.996691189016925], [13.540393507550785, 14.36713369390122], [13.97217, 15.68437], [15.247731154041842, 16.627305813050778], [15.300441114979716, 17.927949937405], [15.68574059414777, 19.957180080642384], [15.90324669766431, 20.387618923417499], [15.487148064850143, 20.730414537025634], [15.47106, 21.04845], [15.096887648181847, 21.308518785074902], [14.8513, 22.862950000000119], [15.86085, 23.40972], [19.84926, 21.49509], [23.837660000000135, 19.580470000000101], [23.886890000000101, 15.61084], [23.02459, 15.68072], [22.567950000000106, 14.944290000000134], [22.30351, 14.32682], [22.51202, 14.09318], [22.18329, 13.78648], [22.29658, 13.37232], [22.03759, 12.95546], [21.93681, 12.588180000000133], [22.28801, 12.64605], [22.49762, 12.26024], [22.50869, 11.67936], [22.87622, 11.384610000000119], [22.864165480244246, 11.142395127807616], [22.231129184668756, 10.971888739460608], [21.723821648859538, 10.567055568885959], [21.000868361096305, 9.475985215691479], [20.059685499764267, 9.012706000194838], [19.094008009526071, 9.074846910025768], [18.81200971850927, 8.982914536978623], [18.911021762780589, 8.630894680206435], [18.389554884523303, 8.281303615751879], [17.964929640380884, 7.890914008002992], [16.705988396886365, 7.508327541529978], [16.4561845231874, 7.734773667832938], [16.290561557691884, 7.754307359239417], [16.106231723706738, 7.497087917506461], [15.279460483469164, 7.42192454673801], [15.436091749745737, 7.692812404811887], [15.120865512765302, 8.382150173369437], [14.979995558337688, 8.796104234243442], [14.544466586981851, 8.965861314322238], [13.954218377344088, 9.549494940626685], [14.17146609869911, 10.021378282100043], [14.627200555081057, 9.920919297724591], [14.909353875394796, 9.992129421422758], [15.46787275560524, 9.982336737503543], [14.923564894275042, 10.891325181517514], [14.960151808337679, 11.555574042197234], [14.89336, 12.21905], [14.495787387762899, 12.859396267137353]]] } }, - { "type": "Feature", "properties": { "admin": "Togo", "name": "Togo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[1.865240512712318, 6.14215770102973], [1.060121697604927, 5.928837388528875], [0.836931186536333, 6.279978745952147], [0.570384148774849, 6.914358628767188], [0.490957472342245, 7.411744289576474], [0.712029249686878, 8.312464504423827], [0.461191847342121, 8.677222601756013], [0.365900506195885, 9.46500397382948], [0.367579990245389, 10.191212876827176], [-0.049784715159944, 10.706917832883928], [0.023802524423701, 11.018681748900802], [0.899563022474069, 10.997339382364258], [0.772335646171484, 10.470808213742357], [1.077795037448737, 10.175606594275022], [1.425060662450136, 9.825395412632998], [1.46304284018467, 9.334624335157086], [1.664477573258381, 9.128590399609378], [1.618950636409238, 6.832038072126236], [1.865240512712318, 6.14215770102973]]] } }, - { "type": "Feature", "properties": { "admin": "Thailand", "name": "Thailand", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[102.58493248902667, 12.186594956913279], [101.687157830819928, 12.645740057826568], [100.831809523524839, 12.627084865769204], [100.978467238369191, 13.412721665902563], [100.097797479251099, 13.406856390837429], [100.018732537844528, 12.307001044153353], [99.478920526123602, 10.846366685423545], [99.153772414143134, 9.963061428258554], [99.222398716226749, 9.239255479362425], [99.873831821698118, 9.207862046745118], [100.279646844486194, 8.29515289960605], [100.45927412313273, 7.429572658717175], [101.017327915452697, 6.856868597842476], [101.623079054778032, 6.740622463401918], [102.141186964936367, 6.221636053894626], [101.81428185425797, 5.810808417174242], [101.154218784593837, 5.691384182147713], [101.075515578213327, 6.20486705161592], [100.259596388756933, 6.642824815289542], [100.085756870527092, 6.46448944745029], [99.690690545655727, 6.848212795433595], [99.519641554769606, 7.343453884302759], [98.988252801512289, 7.907993068875325], [98.503786248775967, 8.382305202666286], [98.339661899816988, 7.794511623562384], [98.150009393305808, 8.350007432483876], [98.259150018306229, 8.973922837759799], [98.553550653073017, 9.932959906448543], [99.038120558673953, 10.960545762572435], [99.587286004639694, 11.892762762901695], [99.196353794351637, 12.804748439988666], [99.212011753336071, 13.269293728076462], [99.097755161538728, 13.827502549693275], [98.430819126379859, 14.622027696180831], [98.192074009191373, 15.123702500870349], [98.537375929765687, 15.308497422746081], [98.90334842325673, 16.177824204976115], [98.493761020911322, 16.837835598207928], [97.859122755934848, 17.567946071843657], [97.375896437573516, 18.445437730375811], [97.797782830804394, 18.627080389881751], [98.253723992915582, 19.708203029860041], [98.959675734454848, 19.752980658440944], [99.543309360759281, 20.186597601802056], [100.115987583417819, 20.41784963630818], [100.548881056726856, 20.109237982661124], [100.606293573003128, 19.508344427971217], [101.282014601651667, 19.462584947176762], [101.035931431077742, 18.408928330961611], [101.059547560635139, 17.512497259994486], [102.113591750092453, 18.109101670804161], [102.413004998791592, 17.932781683824281], [102.998705682387694, 17.961694647691598], [103.200192091893726, 18.309632066312769], [103.956476678485288, 18.240954087796872], [104.716947056092465, 17.428858954330078], [104.779320509868768, 16.441864935771445], [105.589038527450128, 15.570316066952856], [105.544338413517664, 14.723933620660414], [105.218776890078871, 14.27321177821069], [104.281418084736586, 14.416743068901363], [102.988422072361601, 14.225721136934464], [102.348099399833004, 13.39424734135822], [102.58493248902667, 12.186594956913279]]] } }, - { "type": "Feature", "properties": { "admin": "Tajikistan", "name": "Tajikistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[71.014198032520156, 40.244365546218226], [70.648018833299957, 39.935753892571157], [69.559609816368507, 40.103211371412968], [69.464886915977516, 39.526683254548693], [70.549161818325601, 39.604197902986492], [71.784693637991992, 39.279463202464363], [73.67537926625478, 39.431236884105594], [73.928852166646408, 38.505815334622724], [74.257514276022718, 38.606506862943441], [74.864815708316812, 38.378846340481587], [74.829985792952087, 37.990007025701388], [74.980002475895404, 37.419990139305888], [73.948695916646486, 37.421566270490786], [73.260055779924983, 37.495256862938994], [72.636889682917271, 37.047558091778349], [72.193040805962383, 36.94828766534566], [71.84463829945058, 36.738171291646914], [71.448693475230229, 37.065644843080513], [71.541917759084768, 37.905774441065631], [71.239403924448155, 37.953265082341879], [71.348131137990251, 38.258905341132156], [70.806820509732873, 38.486281643216408], [70.376304152309274, 38.138395901027515], [70.270574171840124, 37.73516469985401], [70.116578403610319, 37.588222764632086], [69.518785434857946, 37.608996690413413], [69.196272820924364, 37.15114350030742], [68.859445835245921, 37.344335842430588], [68.135562371701369, 37.023115139304302], [67.829999627559502, 37.144994004864678], [68.392032505165943, 38.157025254868728], [68.176025018185911, 38.901553453113898], [67.442219679641298, 39.140143541005479], [67.701428664017342, 39.580478420564518], [68.536416456989414, 39.533452867178923], [69.011632928345477, 40.086158148756653], [69.329494663372813, 40.727824408524839], [70.666622348925031, 40.960213324541407], [70.458159621059608, 40.49649485937028], [70.601406691372674, 40.218527330072284], [71.014198032520156, 40.244365546218226]]] } }, - { "type": "Feature", "properties": { "admin": "Turkmenistan", "name": "Turkmenistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[61.21081709172573, 35.650072333309218], [61.123070509694131, 36.491597194966239], [60.377637973883864, 36.52738312432836], [59.234761997316795, 37.412987982730336], [58.436154412678192, 37.522309475243794], [57.330433790928964, 38.029229437810933], [56.619366082592805, 38.121394354803478], [56.180374790273319, 37.935126654607423], [55.511578403551894, 37.964117133123153], [54.800303989486558, 37.392420762678178], [53.921597934795543, 37.198918361961255], [53.735511102112504, 37.906136176091685], [53.880928582581831, 38.952093003895349], [53.101027866432894, 39.290573635407121], [53.357808058491216, 39.975286363274442], [52.693972609269807, 40.033629055331964], [52.91525109234361, 40.87652334244472], [53.85813927594112, 40.631034450842165], [54.736845330632136, 40.951014919593455], [54.0083109881813, 41.551210842447404], [53.721713494690576, 42.123191433270016], [52.916749708880069, 41.868116563477322], [52.81468875510361, 41.135370591794704], [52.502459751196135, 41.783315538086356], [52.94429324729164, 42.116034247397586], [54.079417759014937, 42.324109402020817], [54.755345493392625, 42.04397146256656], [55.455251092353755, 41.259859117185826], [55.968191359282898, 41.308641669269356], [57.096391229079089, 41.32231008561056], [56.93221520368779, 41.82602610937559], [57.786529982337065, 42.170552883465511], [58.629010857991453, 42.751551011723045], [59.976422153569771, 42.223081976890199], [60.083340691981654, 41.425146185871391], [60.46595299667068, 41.22032664648254], [61.547178989513547, 41.2663703476546], [61.882714064384679, 41.084856879229392], [62.374260288344992, 40.053886216790382], [63.518014764261018, 39.363256537425627], [64.170223016216752, 38.892406724598231], [65.215998976507379, 38.402695013984292], [66.546150343700205, 37.974684963526855], [66.518606805288655, 37.362784328758785], [66.217384881459324, 37.393790188133913], [65.745630731066811, 37.661164048812061], [65.588947788357828, 37.305216783185628], [64.746105177677393, 37.111817735333297], [64.546479119733888, 36.31207326918426], [63.982895949158696, 36.007957465146596], [63.193538445900337, 35.857165635718907], [62.984662306576588, 35.404040839167614], [62.230651483005879, 35.270663967422287], [61.21081709172573, 35.650072333309218]]] } }, - { "type": "Feature", "properties": { "admin": "East Timor", "name": "Timor-Leste", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[124.96868248911619, -8.892790215697081], [125.086246372580248, -8.656887302284678], [125.947072381698234, -8.432094821815033], [126.64470421763852, -8.39824675866385], [126.957243280139792, -8.273344821814396], [127.335928175974615, -8.397316582882601], [126.967991978056517, -8.668256117388891], [125.925885044458568, -9.106007175333351], [125.088520135601073, -9.393173109579292], [125.070019972840583, -9.08998748132287], [124.96868248911619, -8.892790215697081]]] } }, - { "type": "Feature", "properties": { "admin": "Trinidad and Tobago", "name": "Trinidad and Tobago", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-61.68, 10.76], [-61.105, 10.89], [-60.895, 10.855], [-60.935, 10.11], [-61.77, 10.0], [-61.95, 10.09], [-61.66, 10.365], [-61.68, 10.76]]] } }, - { "type": "Feature", "properties": { "admin": "Tunisia", "name": "Tunisia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[9.482139926805273, 30.307556057246181], [9.055602654668148, 32.102691962201284], [8.439102817426116, 32.506284898400814], [8.430472853233367, 32.748337307255944], [7.612641635782181, 33.344114895148955], [7.524481642292242, 34.097376410451453], [8.140981479534302, 34.655145982393783], [8.376367628623766, 35.479876003555937], [8.217824334352313, 36.433176988260271], [8.420964389691674, 36.946427313783154], [9.509993523810605, 37.349994411766531], [10.210002475636315, 37.230001735984807], [10.180650262094529, 36.724037787415071], [11.028867221733348, 37.09210317641395], [11.100025668999249, 36.899996039368908], [10.600004510143092, 36.410000108377368], [10.593286573945134, 35.947444362932806], [10.939518670300686, 35.698984076473486], [10.807847120821007, 34.833507188449182], [10.149592726287123, 34.330773016897702], [10.339658644256613, 33.785741685515312], [10.856836378633684, 33.768740139291275], [11.108500603895118, 33.293342800422188], [11.488787469131008, 33.136995754523134], [11.432253452203692, 32.368903103152867], [10.944789666394453, 32.081814683555358], [10.636901482799484, 31.761420803345747], [9.950225050505081, 31.376069647745251], [10.056575148161752, 30.961831366493595], [9.97001712407285, 30.539324856075236], [9.482139926805273, 30.307556057246181]]] } }, - { "type": "Feature", "properties": { "admin": "Turkey", "name": "Turkey", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[36.913127068842151, 41.335358384764291], [38.347664829264502, 40.948586127275711], [39.512606642420238, 41.102762763018561], [40.373432651538245, 41.013672593747337], [41.554084100110707, 41.535656236327604], [42.619548781104548, 41.58317271581992], [43.582745802592704, 41.09214325618256], [43.752657911968491, 40.740200914058811], [43.656436395040963, 40.253563951166157], [44.400008579288759, 40.005000311842302], [44.79398969908199, 39.713002631177027], [44.109225294782355, 39.428136298168049], [44.421402622257595, 38.281281236314513], [44.225755649600522, 37.971584377589345], [44.772699008977739, 37.170444647768441], [44.293451775902852, 37.001514390606353], [43.942258742047343, 37.256227525372928], [42.77912560402185, 37.385263576805798], [42.349591098811764, 37.229872544904104], [41.212089471203015, 37.074352321921729], [40.673259311695702, 37.091276353497356], [39.522580193852512, 36.716053778626012], [38.699891391765917, 36.712927354472313], [38.167727492024156, 36.90121043552778], [37.066761102045824, 36.623036200500614], [36.739494256341366, 36.817520453431108], [36.685389031731816, 36.259699205056499], [36.417550083163086, 36.040616970355096], [36.149762811026584, 35.821534735653664], [35.782084995269848, 36.274995429014915], [36.160821567537049, 36.650605577128367], [35.550936313628334, 36.565442816711325], [34.714553256984367, 36.795532131490909], [34.026894972476455, 36.219960028623966], [32.509158156064096, 36.107563788389193], [31.69959516777956, 36.644275214172602], [30.621624790171062, 36.677864895162308], [30.391096225717114, 36.262980658506983], [29.69997562024556, 36.144357408181001], [28.732902866335387, 36.676831366516431], [27.641186557737363, 36.658822129862749], [27.048767937943289, 37.653360907536005], [26.318218214633042, 38.208133246405382], [26.804700148228726, 38.985760199533551], [26.170785353304375, 39.463612168936457], [27.280019972449388, 40.420013739578302], [28.819977654747209, 40.460011298172212], [29.240003696415574, 41.219990749672682], [31.145933872204434, 41.087621568357058], [32.347979363745786, 41.736264146484629], [33.513282911927512, 42.018960069337304], [35.167703891751863, 42.040224921225438], [36.913127068842151, 41.335358384764291]]], [[[27.192376743282406, 40.690565700842448], [26.358009067497782, 40.151993923496477], [26.043351271272535, 40.617753607743161], [26.056942172965332, 40.824123440100735], [26.294602085075692, 40.936261298174166], [26.604195590936282, 41.562114569661013], [26.117041863720825, 41.826904608724554], [27.135739373490505, 42.141484890301307], [27.996720411905407, 42.007358710287768], [28.115524529744441, 41.622886054036279], [28.988442824018779, 41.299934190428175], [28.806438429486743, 41.05496206314853], [27.619017368284112, 40.999823309893102], [27.192376743282406, 40.690565700842448]]]] } }, - { "type": "Feature", "properties": { "admin": "Taiwan", "name": "Taiwan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[121.777817824389899, 24.394273586519393], [121.175632358892713, 22.790857245367164], [120.747079705896198, 21.970571397382106], [120.220083449383651, 22.814860948166732], [120.106188592612369, 23.556262722258229], [120.694679803552233, 24.53845083261373], [121.49504438688875, 25.295458889257379], [121.951243931161429, 24.997595933527034], [121.777817824389899, 24.394273586519393]]] } }, - { "type": "Feature", "properties": { "admin": "United Republic of Tanzania", "name": "Tanzania", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[33.903711197104592, -0.95], [34.07262, -1.05982], [37.69869, -3.09699], [37.7669, -3.67712], [39.20222, -4.67677], [38.74054, -5.90895], [38.79977, -6.47566], [39.44, -6.84], [39.470000000000134, -7.1], [39.19469, -7.7039], [39.25203, -8.00781], [39.18652, -8.48551], [39.53574, -9.112369999999883], [39.9496, -10.0984], [40.31659, -10.317099999999867], [39.521, -10.89688], [38.427556593587767, -11.285202325081626], [37.82764, -11.26879], [37.47129, -11.56876], [36.775150994622884, -11.59453744878078], [36.514081658684397, -11.720938002166745], [35.312397902169145, -11.439146416879165], [34.559989047999451, -11.520020033415845], [34.28, -10.16], [33.940837724096518, -9.693673841980283], [33.73972, -9.41715], [32.759375441221373, -9.230599053589001], [32.191864861791935, -8.930358981973255], [31.556348097466628, -8.762048841998647], [31.157751336950064, -8.594578747317312], [30.74, -8.34], [30.2, -7.08], [29.62, -6.52], [29.419992710088305, -5.939998874539297], [29.519986606573063, -5.419978936386257], [29.339997592900367, -4.499983412294113], [29.753512404099858, -4.452389418153301], [30.11632, -4.09012], [30.50554, -3.56858], [30.75224, -3.35931], [30.74301, -3.03431], [30.52766, -2.80762], [30.46967, -2.41383], [30.758308953583132, -2.287250257988375], [30.816134881317844, -1.698914076345374], [30.419104852019291, -1.134659112150416], [30.769860000000101, -1.01455], [31.86617, -1.02736], [33.903711197104592, -0.95]]] } }, - { "type": "Feature", "properties": { "admin": "Uganda", "name": "Uganda", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[31.86617, -1.02736], [30.769860000000101, -1.01455], [30.419104852019291, -1.134659112150416], [29.821518588996121, -1.443322442229771], [29.579466180141019, -1.341313164885605], [29.587837762172164, -0.587405694179381], [29.8195, -0.2053], [29.875778842902431, 0.597379868976361], [30.086153598762785, 1.062312730306416], [30.468507521290285, 1.583805446779706], [30.852670118948133, 1.849396470543752], [31.174149204235952, 2.204465236821306], [30.77332, 2.339890000000139], [30.83385, 3.50917], [31.24556, 3.7819], [31.88145, 3.55827], [32.68642, 3.79232], [33.39, 3.79], [34.005, 4.249884947362147], [34.47913, 3.5556], [34.59607, 3.053740000000118], [35.03599, 1.90584], [34.6721, 1.17694], [34.18, 0.515], [33.893568969666994, 0.109813537861839], [33.903711197104592, -0.95], [31.86617, -1.02736]]] } }, - { "type": "Feature", "properties": { "admin": "Ukraine", "name": "Ukraine", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[31.78599816257158, 52.10167796488544], [32.159412062312661, 52.061266994833204], [32.412058139787625, 52.288694973349735], [32.715760532366964, 52.238465481162038], [33.7526998227357, 52.335074571331681], [34.391730584457001, 51.768881740925778], [34.141978387190385, 51.566413479206226], [34.22481570815426, 51.255993150428942], [35.022183058417873, 51.207572333371445], [35.377923618315116, 50.773955390010343], [35.35611616388794, 50.577197374059054], [36.62616784032533, 50.225590928745127], [37.393459506995065, 50.383953355503586], [38.01063113785689, 49.915661526074622], [38.59498823421341, 49.926461900423618], [40.069058465339097, 49.601055406281688], [40.080789015469342, 49.307429917999272], [39.674663934087526, 48.783818467801872], [39.895632358567575, 48.232405097031425], [39.738277622238819, 47.898937079451983], [38.770584751141186, 47.825608222029807], [38.255112339029743, 47.546400458356807], [38.223538038899413, 47.102189846375872], [37.42513715998998, 47.022220567404197], [36.759854770664383, 46.698700263040919], [35.823684523264816, 46.645964463887054], [34.962341749823871, 46.273196519549636], [35.020787794745978, 45.65121898048465], [35.51000857925316, 45.409993394546177], [36.529997999830151, 45.46998973243705], [36.334712762199146, 45.113215643893952], [35.239999220528112, 44.939996242851599], [33.882511020652878, 44.361478583344066], [33.326420932760037, 44.564877020844875], [33.546924269349446, 45.034770819674883], [32.454174432105496, 45.327466132176063], [32.630804477679128, 45.519185695978905], [33.588162062318382, 45.851568508480227], [33.298567335754704, 46.08059845639783], [31.744140252415171, 46.333347886737378], [31.675307244602401, 46.706245022155528], [30.748748813609094, 46.583100084003995], [30.37760867688888, 46.032410183285663], [29.603289015427425, 45.293308010431119], [29.149724969201646, 45.464925442072442], [28.679779493939371, 45.30403087013169], [28.233553501099035, 45.488283189468369], [28.48526940279276, 45.596907050145887], [28.659987420371575, 45.939986884131628], [28.933717482221621, 46.258830471372491], [28.862972446414055, 46.437889309263824], [29.072106967899288, 46.517677720722482], [29.170653924279879, 46.379262396828693], [29.759971958136383, 46.349987697935354], [30.024658644335364, 46.423936672545032], [29.838210076626289, 46.525325832701675], [29.908851759569295, 46.67436066343145], [29.559674106573105, 46.928582872091312], [29.415135125452732, 47.346645209332571], [29.050867954227321, 47.510226955752493], [29.122698195113024, 47.849095160506458], [28.670891147585163, 48.118148505234089], [28.259546746541837, 48.155562242213406], [27.52253746919515, 48.467119452501102], [26.857823520624798, 48.368210761094488], [26.619336785597788, 48.220726223333457], [26.197450392366925, 48.220881252630342], [25.945941196402394, 47.987148749374207], [25.207743361112986, 47.891056423527459], [24.866317172960571, 47.737525743188307], [24.402056105250374, 47.981877753280422], [23.760958286237404, 47.985598456405448], [23.142236362406798, 48.096341050806942], [22.710531447040488, 47.882193915389394], [22.640819939878746, 48.150239569687351], [22.085608351334848, 48.422264309271782], [22.280841912533553, 48.825392157580659], [22.558137648211751, 49.08573802346713], [22.776418898212619, 49.027395331409608], [22.518450148211596, 49.476773586619736], [23.426508416444388, 50.308505764357449], [23.922757195743259, 50.424881089878738], [24.029985792748899, 50.705406602575174], [23.52707075368437, 51.578454087930233], [24.005077752384206, 51.617443956094448], [24.553106316839511, 51.888461005249177], [25.327787713327005, 51.910656032918538], [26.337958611768549, 51.832288723347915], [27.454066196408426, 51.59230337178446], [28.241615024536564, 51.572227077839059], [28.617612745892242, 51.427713934934836], [28.992835320763522, 51.602044379271462], [29.254938185347921, 51.368234361366881], [30.157363722460889, 51.416138414101454], [30.55511722181145, 51.319503485715643], [30.619454380014837, 51.822806098022362], [30.927549269338975, 52.042353420614383], [31.78599816257158, 52.10167796488544]]] } }, - { "type": "Feature", "properties": { "admin": "Uruguay", "name": "Uruguay", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-57.625133429582945, -30.216294854454258], [-56.976025763564721, -30.109686374636119], [-55.97324459494093, -30.883075860316296], [-55.601510179249331, -30.853878676071385], [-54.572451544805105, -31.494511407193745], [-53.787951626182185, -32.047242526987617], [-53.209588995971529, -32.727666110974717], [-53.650543992718084, -33.202004082981823], [-53.373661668498229, -33.768377780900757], [-53.806425950726521, -34.396814874002224], [-54.935866054897716, -34.952646579733617], [-55.674089728403274, -34.752658786764066], [-56.215297003796053, -34.85983570733741], [-57.139685024633096, -34.430456231424238], [-57.817860683815489, -34.462547295877492], [-58.427074144104381, -33.909454441057569], [-58.349611172098854, -33.2631889788154], [-58.132647671121433, -33.040566908502008], [-58.142440355040748, -32.044503676076147], [-57.874937303281875, -31.016556084926201], [-57.625133429582945, -30.216294854454258]]] } }, - { "type": "Feature", "properties": { "admin": "United States of America", "name": "United States", "continent": "North America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-155.54211, 19.08348], [-155.68817, 18.91619], [-155.93665, 19.05939], [-155.90806, 19.33888], [-156.07347, 19.70294], [-156.02368, 19.81422], [-155.85008, 19.97729], [-155.91907, 20.17395], [-155.86108, 20.26721], [-155.78505, 20.2487], [-155.40214, 20.07975], [-155.22452, 19.99302], [-155.06226, 19.8591], [-154.80741, 19.50871], [-154.83147, 19.45328], [-155.222169999999892, 19.23972], [-155.54211, 19.08348]]], [[[-156.07926, 20.64397], [-156.41445, 20.57241], [-156.58673, 20.783], [-156.70167, 20.8643], [-156.71055, 20.92676], [-156.61258, 21.01249], [-156.25711, 20.91745], [-155.99566, 20.76404], [-156.07926, 20.64397]]], [[[-156.75824, 21.17684], [-156.78933, 21.06873], [-157.32521, 21.09777], [-157.25027, 21.21958], [-156.75824, 21.17684]]], [[[-157.65283, 21.32217], [-157.70703, 21.26442], [-157.7786, 21.27729], [-158.12667, 21.31244], [-158.2538, 21.53919], [-158.29265, 21.57912], [-158.0252, 21.71696], [-157.94161, 21.65272], [-157.65283, 21.32217]]], [[[-159.34512, 21.982], [-159.46372, 21.88299], [-159.80051, 22.06533], [-159.74877, 22.1382], [-159.5962, 22.23618], [-159.36569, 22.21494], [-159.34512, 21.982]]], [[[-94.81758, 49.38905], [-94.639999999999858, 48.840000000000103], [-94.32914, 48.67074], [-93.63087, 48.60926], [-92.61, 48.45], [-91.64, 48.14], [-90.829999999999856, 48.27], [-89.6, 48.01], [-89.272917446636654, 48.019808254582834], [-88.378114183286513, 48.302917588893806], [-87.439792623300207, 47.94], [-86.461990831228135, 47.553338019392037], [-85.652363247403215, 47.220218817730498], [-84.876079881514855, 46.900083319682366], [-84.779238247399817, 46.637101955749117], [-84.54374874544564, 46.538684190449224], [-84.6049, 46.4396], [-84.3367, 46.408770000000104], [-84.142119513673279, 46.512225857115723], [-84.091851264161463, 46.275418606138253], [-83.890765347005654, 46.116926988299149], [-83.616130947590491, 46.116926988299149], [-83.469550747394621, 45.994686387712584], [-83.592850714843067, 45.816893622412543], [-82.550924648758169, 45.347516587905446], [-82.337763125431053, 44.44], [-82.137642381503952, 43.571087551439987], [-82.43, 42.98], [-82.899999999999878, 42.430000000000135], [-83.119999999999877, 42.08], [-83.141999681312555, 41.975681057292995], [-83.029810146806909, 41.832795722005997], [-82.690089280920162, 41.675105088867319], [-82.439277716791608, 41.675105088867319], [-81.277746548167059, 42.209025987306845], [-80.247447679347843, 42.36619985612267], [-78.939362148743683, 42.863611355148116], [-78.92, 42.965], [-79.009999999999863, 43.27], [-79.171673550111862, 43.466339423184301], [-78.720279914042365, 43.625089423184953], [-77.737885097957601, 43.629055589363382], [-76.820034145805565, 43.628784288093748], [-76.5, 44.018458893758599], [-76.375, 44.09631], [-75.31821, 44.81645000000016], [-74.867, 45.00048000000011], [-73.347829999999874, 45.00738], [-71.505059999999858, 45.0082], [-71.405, 45.255000000000123], [-71.08482, 45.305240000000154], [-70.659999999999783, 45.46], [-70.305, 45.915], [-69.99997, 46.69307], [-69.237216, 47.447781], [-68.905, 47.185], [-68.23444, 47.35486], [-67.79046, 47.06636], [-67.79134, 45.702810000000134], [-67.13741, 45.13753], [-66.96466, 44.809700000000149], [-68.03252, 44.3252], [-69.059999999999874, 43.98], [-70.116169999999897, 43.684050000000141], [-70.645475633410967, 43.090238348964043], [-70.81489, 42.8653], [-70.825, 42.335], [-70.494999999999891, 41.805], [-70.08, 41.78], [-70.185, 42.145], [-69.88497, 41.922830000000111], [-69.96503, 41.637170000000161], [-70.64, 41.475], [-71.12039, 41.494450000000164], [-71.859999999999829, 41.32], [-72.295, 41.27], [-72.87643, 41.22065], [-73.71, 40.931102351654481], [-72.24126, 41.119480000000138], [-71.944999999999808, 40.93], [-73.345, 40.63], [-73.982, 40.628], [-73.952325, 40.75075], [-74.25671, 40.47351], [-73.96244, 40.42763], [-74.17838, 39.70926], [-74.90604, 38.93954], [-74.98041, 39.1964], [-75.20002, 39.24845], [-75.52805, 39.4985], [-75.32, 38.96], [-75.071834764789784, 38.782032230179276], [-75.05673, 38.404120000000106], [-75.37747, 38.01551], [-75.94023, 37.21689], [-76.03127, 37.2566], [-75.722049999999783, 37.937050000000106], [-76.23287, 38.319215], [-76.35, 39.15], [-76.542725, 38.717615], [-76.32933, 38.08326], [-76.98999793161353, 38.239991766913384], [-76.301619999999886, 37.917945], [-76.25874, 36.9664000000001], [-75.9718, 36.89726], [-75.868039999999809, 36.55125], [-75.72749, 35.550740000000125], [-76.36318, 34.808540000000129], [-77.39763499999988, 34.51201], [-78.05496, 33.92547], [-78.554349999999815, 33.861330000000116], [-79.06067, 33.49395], [-79.20357, 33.15839], [-80.301325, 32.509355], [-80.86498, 32.0333], [-81.33629, 31.44049], [-81.49042, 30.729990000000122], [-81.31371, 30.03552], [-80.98, 29.18000000000011], [-80.53558499999987, 28.47213], [-80.529999999999774, 28.04], [-80.056539284977532, 26.88000000000013], [-80.088015, 26.205765], [-80.131559999999837, 25.816775], [-80.38103, 25.20616], [-80.679999999999879, 25.08], [-81.17213, 25.201260000000126], [-81.33, 25.64], [-81.709999999999795, 25.87], [-82.239999999999895, 26.730000000000125], [-82.70515, 27.49504], [-82.85526, 27.88624], [-82.65, 28.550000000000146], [-82.929999999999865, 29.100000000000129], [-83.70959, 29.93656], [-84.1, 30.090000000000114], [-85.10882, 29.63615], [-85.28784, 29.686120000000127], [-85.7731, 30.152610000000116], [-86.399999999999878, 30.400000000000112], [-87.530359999999831, 30.27433], [-88.41782, 30.3849], [-89.180489999999836, 30.31598], [-89.593831178419748, 30.159994004836843], [-89.413735, 29.89419], [-89.43, 29.48864], [-89.21767, 29.29108], [-89.40823, 29.15961], [-89.77928, 29.307140000000135], [-90.15463, 29.11743], [-90.880224999999896, 29.148535000000116], [-91.626784999999842, 29.677000000000127], [-92.49906, 29.5523], [-93.22637, 29.78375], [-93.84842, 29.71363], [-94.69, 29.480000000000125], [-95.60026, 28.73863], [-96.59404, 28.30748], [-97.139999999999802, 27.83], [-97.37, 27.38], [-97.379999999999853, 26.69], [-97.33, 26.210000000000115], [-97.139999999999802, 25.87], [-97.529999999999859, 25.84], [-98.239999999999895, 26.060000000000109], [-99.019999999999854, 26.37], [-99.3, 26.84], [-99.52, 27.54], [-100.11, 28.11000000000012], [-100.45584, 28.696120000000118], [-100.957599999999886, 29.380710000000125], [-101.6624, 29.779300000000113], [-102.48, 29.76], [-103.11, 28.97], [-103.94, 29.27], [-104.456969999999814, 29.57196], [-104.705749999999895, 30.12173], [-105.03737, 30.64402], [-105.63159, 31.083830000000113], [-106.1429, 31.39995], [-106.507589999999794, 31.75452], [-108.24, 31.754853718166398], [-108.24194, 31.34222], [-109.035, 31.341940000000161], [-111.02361, 31.33472], [-113.30498, 32.03914], [-114.815, 32.52528], [-114.721389999999829, 32.72083], [-115.991349999999869, 32.61239000000014], [-117.127759999999753, 32.53534], [-117.295937691273863, 33.04622461520389], [-117.944, 33.621236431201389], [-118.410602275897475, 33.740909223124497], [-118.519894822799685, 34.027781577575745], [-119.081, 34.078], [-119.438840642016658, 34.348477178284291], [-120.36778, 34.44711], [-120.62286, 34.60855], [-120.74433, 35.156860000000101], [-121.714569999999853, 36.16153], [-122.54747, 37.551760000000101], [-122.51201, 37.783390000000132], [-122.95319, 38.113710000000104], [-123.7272, 38.951660000000111], [-123.865169999999878, 39.766990000000128], [-124.39807, 40.3132], [-124.17886, 41.142020000000109], [-124.2137, 41.999640000000134], [-124.532839999999894, 42.76599], [-124.14214, 43.70838], [-124.020535, 44.615895], [-123.898929999999893, 45.52341], [-124.079635, 46.86475], [-124.395669999999896, 47.72017], [-124.687210083007812, 48.184432983398537], [-124.566101074218736, 48.379714965820384], [-123.12, 48.04], [-122.587359999999876, 47.096], [-122.34, 47.36], [-122.5, 48.18], [-122.84, 49.0], [-120.0, 49.0], [-117.03121, 49.0], [-116.04818, 49.0], [-112.999999999999872, 49.0], [-110.049999999999812, 49.0], [-107.049999999999898, 49.0], [-104.04826, 48.99986], [-100.65, 49.0], [-97.228720000004699, 49.0007], [-95.159069509171943, 49.0], [-95.15609, 49.38425], [-94.81758, 49.38905]]], [[[-153.006314053336837, 57.115842190165878], [-154.0050902984581, 56.734676825581047], [-154.516402757770067, 56.992748928446687], [-154.670992804971092, 57.461195787172493], [-153.762779507441451, 57.816574612043773], [-153.228729417921073, 57.968968410872421], [-152.564790615835108, 57.901427313866961], [-152.141147223906273, 57.591058661521977], [-153.006314053336837, 57.115842190165878]]], [[[-165.579164191733554, 59.909986884187539], [-166.192770148767238, 59.754440822988961], [-166.848337368821944, 59.941406155020942], [-167.455277066090048, 60.213069159579376], [-166.467792121424566, 60.384169826897775], [-165.674429694663644, 60.293606879306232], [-165.579164191733554, 59.909986884187539]]], [[[-171.731656867539357, 63.782515367275906], [-171.114433560245175, 63.592191067144981], [-170.491112433940657, 63.694975490973505], [-169.682505459653555, 63.431115627691142], [-168.689439460300662, 63.297506212000584], [-168.77194088445458, 63.188598130945437], [-169.529439867204985, 62.976931464277882], [-170.290556200215917, 63.194437567794452], [-170.671385667990847, 63.375821845138965], [-171.553063117538642, 63.317789211675077], [-171.791110602891166, 63.40584585230048], [-171.731656867539357, 63.782515367275906]]], [[[-155.067790290324211, 71.147776394323685], [-154.344165208941206, 70.696408596470192], [-153.900006273392563, 70.889988511835682], [-152.210006069935275, 70.829992173944831], [-152.270002407826127, 70.60000621202984], [-150.739992438744508, 70.430016588005699], [-149.720003018167489, 70.530010484490433], [-147.613361579357047, 70.214034939241785], [-145.689989800225248, 70.120009670686741], [-144.920010959076393, 69.989991767040479], [-143.58944618042517, 70.152514146598307], [-142.072510348713365, 69.851938178172631], [-140.985987521560702, 69.711998399526365], [-140.985988329004869, 69.711998399526365], [-140.992498752029377, 66.000028591568665], [-140.997769748123119, 60.306396796298593], [-140.012997816153074, 60.276837877027575], [-139.03900042031583, 60.000007229240012], [-138.340889999999888, 59.562110000000146], [-137.4525, 58.905000000000101], [-136.47972, 59.46389], [-135.47583, 59.78778], [-134.945, 59.270560000000117], [-134.27111, 58.86111], [-133.355548882207188, 58.410285142645151], [-132.73042, 57.692890000000105], [-131.707809999999853, 56.55212], [-130.00778, 55.91583], [-129.979994263358265, 55.284997870497207], [-130.536110189467223, 54.802753404349389], [-131.08581823797212, 55.178906155002025], [-131.967211467142278, 55.497775580459049], [-132.250010742859445, 56.369996242897443], [-133.539181084356386, 57.178887437562125], [-134.07806292029602, 58.123067531966889], [-135.038211032279037, 58.187714748763931], [-136.628062309954629, 58.212209377670447], [-137.800006279686016, 58.499995429103777], [-139.867787041412981, 59.537761542389134], [-140.825273817133024, 59.72751740176507], [-142.574443535564427, 60.084446519604981], [-143.958880994879848, 59.99918040632339], [-145.925556816827822, 60.458609727614274], [-147.114373949146625, 60.884656073644628], [-148.224306200127643, 60.672989406977152], [-148.018065558850736, 59.978328965893631], [-148.570822516860858, 59.914172675203297], [-149.727857835875824, 59.705658270905545], [-150.608243374616421, 59.368211168039487], [-151.716392788683294, 59.155821031319974], [-151.859433153267105, 59.74498403587959], [-151.40971900124714, 60.725802720779392], [-150.346941494732505, 61.033587551509854], [-150.621110806256951, 61.284424953854447], [-151.895839199816834, 60.727197984451273], [-152.578329841095581, 60.061657212964285], [-154.019172126257558, 59.350279446034264], [-153.287511359653166, 58.864727688219787], [-154.232492438758442, 58.146373602930531], [-155.307491421510207, 57.727794501366319], [-156.308334723923082, 57.422774359763636], [-156.556097378546298, 56.979984849670636], [-158.117216559867728, 56.463608099994175], [-158.433321296197136, 55.994153550838533], [-159.603327399717415, 55.566686102920116], [-160.289719611634183, 55.643580634170561], [-161.223047655257773, 55.364734605523481], [-162.23776607974105, 55.024186916720097], [-163.069446581046378, 54.689737046927171], [-164.785569221027174, 54.40417308208216], [-164.942226325520011, 54.572224839895327], [-163.84833960676562, 55.039431464246107], [-162.870001390615897, 55.348043117893198], [-161.804174974596009, 55.894986477270429], [-160.563604702781134, 56.008054511125025], [-160.070559862284483, 56.418055324928744], [-158.684442918919416, 57.016675116597852], [-158.461097378553944, 57.216921291728866], [-157.722770352183858, 57.570000515363056], [-157.550274421193564, 58.328326321030218], [-157.041674974576949, 58.918884589261708], [-158.194731208305427, 58.615802313869828], [-158.517217984023034, 58.787781480537305], [-159.058606126928709, 58.424186102931671], [-159.711667040017318, 58.931390285876333], [-159.981288825500144, 58.572549140041623], [-160.355271165996498, 59.071123358793628], [-161.355003425115001, 58.670837714260742], [-161.968893602526293, 58.671664537177371], [-162.054986538724648, 59.266925360747436], [-161.874170702135331, 59.633621324290587], [-162.518059048492034, 59.989723619213905], [-163.818341437820123, 59.798055731843377], [-164.662217577146407, 60.267484442782639], [-165.346387702474772, 60.507495632562396], [-165.350831875651835, 61.073895168697497], [-166.121379157555907, 61.500019029376212], [-165.734451870770471, 62.074996853271792], [-164.919178636717788, 62.633076483807919], [-164.562507901039339, 63.146378485763044], [-163.753332485996964, 63.219448961023758], [-163.067224494457832, 63.05945872664801], [-162.260555386381697, 63.541935736741159], [-161.534449836248569, 63.455816962326757], [-160.772506680321101, 63.76610810002326], [-160.958335130842528, 64.222798570402759], [-161.518068407212184, 64.402787584075313], [-160.777777676414729, 64.788603827566405], [-161.391926235987597, 64.777235012462327], [-162.453050096668818, 64.559444688568206], [-162.757786017894034, 64.338605455168803], [-163.54639421288428, 64.559160468190484], [-164.960829841145141, 64.446945095468848], [-166.425288255864473, 64.686672064870706], [-166.845004238939026, 65.088895575614529], [-168.110560065767146, 65.669997056736733], [-166.70527116602193, 66.088317776139391], [-164.474709642575448, 66.576660061297488], [-163.652511766595637, 66.576660061297488], [-163.788601651036117, 66.077207343196662], [-161.677774421210131, 66.116119696712403], [-162.489714525379981, 66.735565090595102], [-163.719716966791083, 67.116394558370089], [-164.430991380856511, 67.616338202577779], [-165.390286831706703, 68.042772121850234], [-166.764440680995989, 68.35887685817967], [-166.204707404626561, 68.883030910916162], [-164.430810513343431, 68.915535386827727], [-163.168613654614489, 69.371114813912882], [-162.930566169261965, 69.858061835399255], [-161.908897264635499, 70.333329983187625], [-160.93479651593367, 70.447689927849567], [-159.039175788387126, 70.891642157668926], [-158.119722866833939, 70.824721177851032], [-156.580824551398024, 71.357763576941736], [-155.067790290324211, 71.147776394323685]]]] } }, - { "type": "Feature", "properties": { "admin": "Uzbekistan", "name": "Uzbekistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[66.518606805288655, 37.362784328758785], [66.546150343700205, 37.974684963526855], [65.215998976507379, 38.402695013984292], [64.170223016216752, 38.892406724598231], [63.518014764261018, 39.363256537425627], [62.374260288344992, 40.053886216790382], [61.882714064384679, 41.084856879229392], [61.547178989513547, 41.2663703476546], [60.46595299667068, 41.22032664648254], [60.083340691981654, 41.425146185871391], [59.976422153569771, 42.223081976890199], [58.629010857991453, 42.751551011723045], [57.786529982337065, 42.170552883465511], [56.93221520368779, 41.82602610937559], [57.096391229079089, 41.32231008561056], [55.968191359282898, 41.308641669269356], [55.928917270741081, 44.995858466159099], [58.503127068928457, 45.586804307632818], [58.689989048095882, 45.500013739598621], [60.239971958258316, 44.784036770194717], [61.05831994003244, 44.405816962250505], [62.013300408786236, 43.504476630215642], [63.185786981056559, 43.650074978197999], [64.900824415959264, 43.728080552742576], [66.098012322865074, 42.997660020513088], [66.023391554635609, 41.994646307943974], [66.510648634715707, 41.987644151368436], [66.714047072216502, 41.168443508461493], [67.985855747351806, 41.135990708982213], [68.259895867795606, 40.662324530594894], [68.632482944620008, 40.668680731766798], [69.070027296835306, 41.384244289712363], [70.388964878220776, 42.081307684897439], [70.96231489449913, 42.266154283205481], [71.259247674448218, 42.167710679689456], [70.420022414028196, 41.519998277343134], [71.157858514291576, 41.143587144529107], [71.870114780570447, 41.392900092121259], [73.055417108049156, 40.86603302668945], [71.774875115856545, 40.145844428053763], [71.014198032520156, 40.244365546218226], [70.601406691372674, 40.218527330072284], [70.458159621059608, 40.49649485937028], [70.666622348925031, 40.960213324541407], [69.329494663372813, 40.727824408524839], [69.011632928345477, 40.086158148756653], [68.536416456989414, 39.533452867178923], [67.701428664017342, 39.580478420564518], [67.442219679641298, 39.140143541005479], [68.176025018185911, 38.901553453113898], [68.392032505165943, 38.157025254868728], [67.829999627559502, 37.144994004864678], [67.075782098259609, 37.35614390720928], [66.518606805288655, 37.362784328758785]]] } }, - { "type": "Feature", "properties": { "admin": "Venezuela", "name": "Venezuela", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-71.331583624950284, 11.776284084515805], [-71.36000566271079, 11.53999359786121], [-71.947049933546495, 11.423282375530018], [-71.620868292920164, 10.969459947142791], [-71.633063930941063, 10.446494452349027], [-72.074173956984495, 9.865651353388369], [-71.695644090446521, 9.072263088411246], [-71.26455929226772, 9.137194525585981], [-71.039999355743376, 9.859992784052407], [-71.350083787710773, 10.211935126176213], [-71.400623338492224, 10.968969021036013], [-70.155298834906503, 11.375481675660039], [-70.293843349881016, 11.846822414594211], [-69.943244594996813, 12.162307033736095], [-69.584300096297454, 11.459610907431211], [-68.882999233664435, 11.44338450769156], [-68.233271450458716, 10.885744126829945], [-68.194126552997616, 10.554653225135921], [-67.296248541926317, 10.545868231646306], [-66.227864142507983, 10.648626817258684], [-65.655237596281737, 10.20079885501732], [-64.890452236578156, 10.077214667191296], [-64.329478725833724, 10.389598700395679], [-64.318006557864933, 10.641417954953978], [-63.079322475828725, 10.701724351438598], [-61.880946010980182, 10.7156253117251], [-62.730118984616396, 10.420268662960904], [-62.388511928950969, 9.948204453974636], [-61.588767462801918, 9.873066921422263], [-60.830596686431711, 9.38133982994894], [-60.671252407459718, 8.580174261911877], [-60.150095587796166, 8.602756862823425], [-59.758284878159181, 8.367034816924045], [-60.550587938058186, 7.779602972846178], [-60.637972785063752, 7.414999904810853], [-60.295668097562377, 7.043911444522918], [-60.543999192940966, 6.856584377464881], [-61.159336310456467, 6.696077378766317], [-61.139415045807937, 6.234296779806142], [-61.410302903881941, 5.959068101419616], [-60.733574184803707, 5.2002772078619], [-60.601179165271922, 4.918098049332129], [-60.966893276601517, 4.536467596856638], [-62.085429653559125, 4.162123521334308], [-62.804533047116692, 4.006965033377951], [-63.093197597899092, 3.770571193858784], [-63.888342861574145, 4.020530096854571], [-64.628659430587533, 4.14848094320925], [-64.816064012294007, 4.056445217297422], [-64.368494432214092, 3.797210394705246], [-64.408827887617903, 3.126786200366623], [-64.269999152265783, 2.497005520025566], [-63.422867397705105, 2.411067613124174], [-63.368788011311644, 2.200899562993129], [-64.083085496666072, 1.91636912679408], [-64.199305792890499, 1.49285492594602], [-64.611011928959854, 1.328730576987041], [-65.354713304288353, 1.0952822941085], [-65.548267381437554, 0.78925446207603], [-66.325765143484944, 0.724452215982012], [-66.876325853122566, 1.253360500489336], [-67.181294318293041, 2.250638129074062], [-67.447092047786299, 2.600280869960869], [-67.809938117123693, 2.820655015469569], [-67.303173183853417, 3.31845408773718], [-67.33756384954367, 3.542342230641721], [-67.621835903581271, 3.839481716319994], [-67.823012254493534, 4.503937282728898], [-67.744696621355203, 5.221128648291667], [-67.521531948502741, 5.556870428891968], [-67.34143958196556, 6.095468044454021], [-67.695087246355001, 6.267318020040645], [-68.265052456318216, 6.153268133972473], [-68.985318569602327, 6.206804917826856], [-69.389479946557103, 6.099860541198835], [-70.093312954372408, 6.960376491723109], [-70.674233567981503, 7.087784735538717], [-71.960175747348629, 6.991614895043538], [-72.19835242378187, 7.340430813013682], [-72.444487270788059, 7.42378489830048], [-72.479678921178831, 7.632506008327352], [-72.360900641555958, 8.002638454617893], [-72.439862230097944, 8.405275376820027], [-72.660494757768092, 8.62528778730268], [-72.788729824500379, 9.085027167187331], [-73.304951544880026, 9.151999823437604], [-73.027604132769554, 9.736770331252441], [-72.905286017534692, 10.45034434655477], [-72.614657762325194, 10.821975409381777], [-72.227575446242923, 11.108702093953237], [-71.973921678338272, 11.608671576377116], [-71.331583624950284, 11.776284084515805]]] } }, - { "type": "Feature", "properties": { "admin": "Vietnam", "name": "Vietnam", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[108.050180291782908, 21.552379869060111], [106.715067987090066, 20.696850694252014], [105.881682163519002, 19.752050482659694], [105.662005649846279, 19.058165188060567], [106.426816847765991, 18.004120998603224], [107.36195356651973, 16.697456569887049], [108.269495070429599, 16.079742336486145], [108.877106561317447, 15.276690578670436], [109.335269810017209, 13.42602834721772], [109.200135939573954, 11.666859239137761], [108.366129998815424, 11.00832062422627], [107.22092858279521, 10.36448395430183], [106.4051127462034, 9.530839748569317], [105.158263787865081, 8.599759629750492], [104.795185174582372, 9.2410383162765], [105.076201613385592, 9.918490505406806], [104.334334751403446, 10.486543687375228], [105.199914992292321, 10.889309800658094], [106.249670037869436, 10.961811835163585], [105.810523716253101, 11.567614650921225], [107.491403029410861, 12.337205918827944], [107.614547967562402, 13.535530707244202], [107.382727492301058, 14.202440904186968], [107.564525181103875, 15.202173163305554], [107.312705926545576, 15.908538316303177], [106.55600792849566, 16.604283962464802], [105.925762160264, 17.485315456608955], [105.094598423281496, 18.666974595611073], [103.896532017026701, 19.265180975821799], [104.183387892678908, 19.624668077060214], [104.822573683697073, 19.886641750563879], [104.435000441508024, 20.758733221921528], [103.203861118586431, 20.766562201413745], [102.754896274834636, 21.675137233969462], [102.170435825613552, 22.464753119389297], [102.706992222100084, 22.708795070887668], [103.504514601660546, 22.703756618739202], [104.476858351664447, 22.819150092046961], [105.329209425886603, 23.352063300056908], [105.811247186305209, 22.976892401617899], [106.725403273548451, 22.794267889898414], [106.567273390735295, 22.218204860924768], [107.043420037872608, 21.811898912029907], [108.050180291782908, 21.552379869060111]]] } }, - { "type": "Feature", "properties": { "admin": "Vanuatu", "name": "Vanuatu", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[167.844876743845077, -16.466333103097153], [167.515181105822847, -16.597849623279966], [167.180007765977791, -16.159995212470957], [167.2168013857696, -15.891846205308449], [167.844876743845077, -16.466333103097153]]], [[[167.107712437201485, -14.933920179913951], [167.2700281110302, -15.74002084723487], [167.001207310247935, -15.614602146062492], [166.79315799384085, -15.668810723536719], [166.649859247095549, -15.392703545801192], [166.629136997746429, -14.6264970842096], [167.107712437201485, -14.933920179913951]]]] } }, - { "type": "Feature", "properties": { "admin": "Yemen", "name": "Yemen", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[53.108572625547502, 16.651051133688949], [52.385205926325874, 16.38241120041965], [52.191729363825075, 15.938433132384018], [52.168164910699986, 15.597420355689945], [51.172515089732471, 15.175249742081489], [49.574576450403136, 14.708766587782746], [48.679230584514151, 14.003202419485657], [48.238947381387412, 13.948089504446369], [47.938914015500771, 14.007233181204423], [47.354453566279702, 13.592219753468379], [46.71707645039173, 13.399699204965016], [45.877592807810252, 13.347764390511681], [45.625050083199874, 13.290946153206759], [45.406458774605241, 13.02690542241143], [45.144355910020849, 12.953938300015306], [44.9895333188744, 12.699586900274708], [44.494576450382844, 12.721652736863344], [44.175112745954486, 12.585950425664873], [43.48295861183712, 12.63680003504008], [43.222871128112118, 13.220950425667422], [43.251448195169516, 13.767583726450848], [43.087943963398047, 14.062630316621306], [42.892245314308717, 14.802249253798745], [42.604872674333606, 15.213335272680592], [42.805015496600042, 15.261962795467252], [42.702437778500652, 15.718885809791995], [42.823670688657408, 15.911742255105263], [42.779332309750963, 16.34789134364868], [43.218375278502734, 16.666889960186406], [43.115797560403351, 17.088440456607369], [43.380794305196098, 17.579986680567668], [43.791518589051904, 17.319976711491105], [44.062613152855072, 17.410358791569589], [45.216651238797184, 17.43332896572333], [45.399999220568752, 17.333335069238554], [46.366658563020529, 17.233315334537632], [46.749994337761642, 17.283338120996174], [47.000004917189749, 16.949999294497438], [47.466694777217626, 17.116681626854877], [48.183343540241324, 18.166669216377311], [49.116671583864857, 18.616667588774941], [52.000009800022227, 19.000003363516054], [52.782184279192037, 17.349742336491229], [53.108572625547502, 16.651051133688949]]] } }, - { "type": "Feature", "properties": { "admin": "South Africa", "name": "South Africa", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[31.521001417778869, -29.257386976846245], [31.325561150850994, -29.401977634398907], [30.901762729625336, -29.909956963828034], [30.622813348113816, -30.423775730106122], [30.055716180142774, -31.140269463832951], [28.925552605919535, -32.172041110972494], [28.219755893677092, -32.771952813448848], [27.464608188595967, -33.226963799778794], [26.419452345492818, -33.614950453426175], [25.909664340933482, -33.667040297176392], [25.78062828950069, -33.944646091448334], [25.172861769315965, -33.796851495093577], [24.67785322439212, -33.987175795224537], [23.594043409934635, -33.794474379208147], [22.988188917744729, -33.916430759416976], [22.574157342222232, -33.864082533505304], [21.542799106541022, -34.258838799782922], [20.689052768646999, -34.417175388325226], [20.071261020597628, -34.795136814107984], [19.616405063564567, -34.819166355123706], [19.193278435958714, -34.462598972309777], [18.855314568769867, -34.444305515278458], [18.424643182049376, -33.997872816708963], [18.377410922934612, -34.13652068454806], [18.244499139079917, -33.867751560198023], [18.250080193767442, -33.281430759414434], [17.925190463948436, -32.61129078545342], [18.247909783611185, -32.429131361624563], [18.221761508871477, -31.661632989225662], [17.566917758868861, -30.72572112398754], [17.0644161312627, -29.878641045859158], [17.06291751472622, -29.875953871379977], [16.344976840895239, -28.576705010697697], [16.824017368240899, -28.082161553664466], [17.218928663815401, -28.355943291946804], [17.387497185951499, -28.783514092729774], [17.836151971109526, -28.856377862261311], [18.464899122804745, -29.045461928017271], [19.002127312911082, -28.972443129188857], [19.89473432788861, -28.461104831660769], [19.895767856534427, -24.767790215760588], [20.165725538827186, -24.917961928000768], [20.758609246511831, -25.868136488551446], [20.666470167735437, -26.477453301704916], [20.889609002371731, -26.828542982695907], [21.60589603036939, -26.726533705351748], [22.105968865657864, -26.28025603607913], [22.579531691180584, -25.979447523708142], [22.824271274514896, -25.500458672794768], [23.312096795350179, -25.268689873965712], [23.733569777122703, -25.39012948985161], [24.211266717228792, -25.670215752873567], [25.025170525825782, -25.719670098576891], [25.664666375437712, -25.486816094669706], [25.765848829865206, -25.174845472923671], [25.941652052522151, -24.696373386333214], [26.485753208123292, -24.616326592713097], [26.78640669119741, -24.240690606383478], [27.119409620886238, -23.574323011979772], [28.017235955525244, -22.827753594659072], [29.432188348109033, -22.091312758067584], [29.839036899542965, -22.102216485281172], [30.322883335091767, -22.271611830333931], [30.659865350067083, -22.151567478119912], [31.191409132621278, -22.251509698172395], [31.670397983534645, -23.658969008073861], [31.930588820124242, -24.369416599222532], [31.752408481581874, -25.484283949487406], [31.837777947728057, -25.843331801051342], [31.333157586397899, -25.660190525008943], [31.044079624157146, -25.731452325139436], [30.949666782359905, -26.022649021104144], [30.676608514129633, -26.398078301704604], [30.685961948374477, -26.743845310169526], [31.282773064913325, -27.285879408478991], [31.868060337051073, -27.17792734142127], [32.071665480281062, -26.733820082304902], [32.830120477028878, -26.74219166433619], [32.580264926897677, -27.470157566031808], [32.462132602678444, -28.30101124442055], [32.203388706193032, -28.752404880490065], [31.521001417778869, -29.257386976846245]], [[28.978262566857236, -28.955596612261708], [28.541700066855491, -28.647501722937562], [28.07433841320778, -28.851468601193581], [27.532511020627471, -29.242710870075353], [26.999261915807629, -29.875953871379977], [27.749397006956478, -30.645105889612214], [28.107204624145421, -30.545732110314944], [28.291069370239903, -30.226216729454293], [28.848399692507734, -30.070050551068245], [29.018415154748016, -29.743765557577362], [29.325166456832587, -29.257386976846245], [28.978262566857236, -28.955596612261708]]] } }, - { "type": "Feature", "properties": { "admin": "Zambia", "name": "Zambia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[32.759375441221316, -9.230599053589058], [33.231387973775291, -9.676721693564799], [33.485687697083584, -10.525558770391111], [33.315310499817279, -10.796549981329695], [33.114289178201908, -11.607198174692311], [33.306422153463068, -12.435778090060214], [32.991764357237876, -12.783870537978272], [32.688165317523122, -13.712857761289273], [33.214024692525207, -13.97186003993615], [30.179481235481827, -14.796099134991525], [30.274255812305103, -15.507786960515208], [29.51683434420314, -15.644677829656386], [28.947463413211256, -16.043051446194436], [28.825868768028492, -16.389748630440611], [28.467906121542676, -16.468400160388843], [27.598243442502753, -17.290830580314005], [27.044427117630729, -17.938026218337427], [26.706773309035633, -17.961228936436477], [26.381935255648919, -17.846042168857892], [25.264225701608005, -17.736539808831413], [25.084443393664564, -17.661815687737366], [25.076950310982255, -17.578823337476617], [24.6823490740015, -17.35341073981947], [24.033861525170771, -17.29584319424632], [23.215048455506057, -17.52311614346598], [22.562478468524255, -16.89845142992181], [21.887842644953867, -16.080310153876876], [21.933886346125913, -12.898437188369357], [24.016136508894672, -12.91104623784857], [23.930922072045373, -12.565847670138854], [24.079905226342838, -12.191296888887361], [23.904153680118181, -11.722281589406318], [24.017893507592586, -11.237298272347088], [23.912215203555714, -10.926826267137512], [24.257155389103982, -10.951992689663655], [24.314516228947948, -11.262826429899269], [24.783169793402948, -11.238693536018962], [25.418118116973197, -11.330935967659958], [25.752309604604726, -11.784965101776356], [26.55308759939961, -11.924439792532125], [27.164419793412456, -11.608748467661071], [27.38879886242378, -12.132747491100663], [28.15510867687998, -12.272480564017894], [28.52356163912102, -12.698604424696679], [28.934285922976834, -13.248958428605132], [29.699613885219485, -13.257226657771827], [29.616001417771223, -12.178894545137307], [29.341547885869087, -12.36074391037241], [28.642417433392346, -11.971568698782312], [28.372253045370421, -11.793646742401389], [28.496069777141763, -10.789883721564044], [28.673681674928922, -9.605924981324931], [28.449871046672818, -9.164918308146083], [28.734866570762495, -8.526559340044576], [29.002912225060467, -8.40703175215347], [30.34608605319081, -8.238256524288216], [30.740015496551781, -8.340007419470913], [31.157751336950042, -8.594578747317362], [31.55634809746649, -8.76204884199864], [32.191864861791963, -8.930358981973276], [32.759375441221316, -9.230599053589058]]] } }, - { "type": "Feature", "properties": { "admin": "Zimbabwe", "name": "Zimbabwe", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[31.191409132621278, -22.251509698172395], [30.659865350067083, -22.151567478119912], [30.322883335091767, -22.271611830333931], [29.839036899542965, -22.102216485281172], [29.432188348109033, -22.091312758067584], [28.794656202924209, -21.639454034107445], [28.02137007010861, -21.485975030200578], [27.727227817503252, -20.851801853114711], [27.724747348753247, -20.499058526290387], [27.296504754350501, -20.391519870690995], [26.164790887158478, -19.293085625894935], [25.850391473094724, -18.714412937090533], [25.649163445750155, -18.536025892818987], [25.264225701608005, -17.736539808831413], [26.381935255648919, -17.846042168857892], [26.706773309035633, -17.961228936436477], [27.044427117630729, -17.938026218337427], [27.598243442502753, -17.290830580314005], [28.467906121542676, -16.468400160388843], [28.825868768028492, -16.389748630440611], [28.947463413211256, -16.043051446194436], [29.51683434420314, -15.644677829656386], [30.274255812305103, -15.507786960515208], [30.338954705534537, -15.880839125230242], [31.173063999157673, -15.860943698797868], [31.636498243951188, -16.071990248277881], [31.852040643040592, -16.319417006091374], [32.328238966610222, -16.392074069893749], [32.847638787575839, -16.713398125884613], [32.849860874164385, -17.979057305577175], [32.654885695127142, -18.672089939043492], [32.611994256324884, -19.419382826416268], [32.772707960752619, -19.715592136313294], [32.659743279762573, -20.30429005298231], [32.508693068173436, -20.395292250248303], [32.244988234188007, -21.116488539313689], [31.191409132621278, -22.251509698172395]]] } } - ] - }; - -var randomcountriesData1 = [ - { country: "Iran", "continent": "Asia", "CategoryName": "Books", "Sales": 550 }, - { country: "Benin", "continent": "Africa", "CategoryName": "Books", "Sales": 1000 }, - { country: "China", "continent": "Asia", "CategoryName": "Books", "Sales": 420 }, - { country: "Chile", "continent": "South America", "CategoryName": "Books", "Sales": 1100 }, - { country: "Cuba", "continent": "North America", "CategoryName": "Books", "Sales": 450 }, - { country: "Spain", "continent": "Europe", "CategoryName": "Books", "Sales": 1200 }, - { country: "Fiji", "continent": "Oceania", "CategoryName": "Books", "Sales": 618.0 }, -]; - -module mapcomponenet { - $(function () { - var mapsample = new ej.datavisualization.Map($("#map"), { - enableAnimation: true, - navigationControl: { - enableNavigation: true, - orientation: 'vertical', - absolutePosition: { x: 5, y: 15 }, - dockPosition: 'none' - }, - layers: [ - { - layerType: 'geometry', - enableMouseHover: false, - enableSelection: false, - shapeSettings: { - fill: "#626171", - autoFill: false, - highlightStroke: "white", - stroke: "white", - strokeThickness: 0.5, - highlightColor: "#BFBFBF" - }, - shapeData: world_map, - legendSettings: { dockOnMap: false } - } - ] - }); - }); -} - - - - - - - -module MenuComponent { - $(function () { - var sample = new ej.Menu($("#syncfusionProducts"),{ - width: "100%", - animationType: ej.AnimationType.Default, - cssClass: 'gradient-lime ', - enableAnimation: true, - enableSeparator: true, - height: 40, - htmlAttributes: { "aria-label": "menu" }, - menuType: "normalmenu", - orientation: ej.Orientation.Horizontal, - showRootLevelArrows: true, - showSubLevelArrows: true, - subMenuDirection: ej.Direction.Right, - titleText: "Menu", - - }); - }); - -} - - - - - - - - -module NavigationDrawerComponent { - $(function () { - var navigationdrawerInstance = new ej.NavigationDrawer($("#navpane"), { - targetId: "butdrawer", - contentId: "content_container", - type: "overlay", - direction: "left", - enableListView: true, - listViewSettings: { - width: 300, - selectedItemIndex: 0 - }, - position: "normal" - }); - $("#navpane_listview").click(function(e: any) { - var text=e.target["text"]||$(e.target).closest("li.e-list").text(); - $("#butdrawer").parent().children("h2").text(text); - }); - }); -} - - - -module PDFViewerComponent { - $(function () { - var pdfviewerControl = new ej.PdfViewer($("#pdfviewer"), { - serviceUrl:(window).baseurl+ "api/PdfViewer", - isResponsive: true - }); - }); -} - - - -module PivotChartOlap { - $(function () { - var sample = new ej.PivotChart($("#PivotChart"),{ - dataSource: { - data: "http://bi.syncfusion.com/olap/msmdpump.dll", - catalog: "Adventure Works DW 2008 SE", - cube: "Adventure Works", - rows: [ - { - fieldName: "[Date].[Fiscal]" - } - ], - columns: [ - { - fieldName: "[Customer].[Customer Geography]" - } - ], - values: [ - { - measures: [ - { - fieldName: "[Measures].[Internet Sales Amount]" - } - ], - axis: "columns" - } - ], - filters:[] - }, - isResponsive: true,zooming:{enableScrollbar: true}, - commonSeriesOptions: { - type: "column" - }, - size: { height: "460px", width: "100%" }, - primaryXAxis: { title: { text: "Date - Fiscal" }, labelRotation: 0 }, - primaryYAxis: { title: { text: "Internet Sales Amount" } }, - legend: { visible: true, rowCount: 2 } - }); - }); -} - - - -var pivot_dataset = [ - { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" }, - { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" }, - { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" }, - { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" }, - { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }, - { Amount: 100, Country: "Canada", Date: "FY 2007", Product: "Van", Quantity: 1, State: "Quebec" }, - { Amount: 200, Country: "France", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Charente-Maritime" }, - { Amount: 250, Country: "France", Date: "FY 2006", Product: "Van", Quantity: 4, State: "Essonne" }, - { Amount: 300, Country: "France", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Garonne (Haute)" }, - { Amount: 150, Country: "France", Date: "FY 2008", Product: "Van", Quantity: 2, State: "Gers" }, - { Amount: 200, Country: "Germany", Date: "FY 2006", Product: "Van", Quantity: 3, State: "Bayern" }, - { Amount: 250, Country: "Germany", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Brandenburg" }, - { Amount: 150, Country: "Germany", Date: "FY 2008", Product: "Car", Quantity: 4, State: "Hamburg" }, - { Amount: 200, Country: "Germany", Date: "FY 2008", Product: "Bike", Quantity: 4, State: "Hessen" }, - { Amount: 150, Country: "Germany", Date: "FY 2007", Product: "Van", Quantity: 3, State: "Nordrhein-Westfalen" }, - { Amount: 100, Country: "Germany", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Saarland" }, - { Amount: 150, Country: "United Kingdom", Date: "FY 2008", Product: "Bike", Quantity: 5, State: "England" }, - { Amount: 250, Country: "United States", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Alabama" }, - { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Van", Quantity: 4, State: "California" }, - { Amount: 100, Country: "United States", Date: "FY 2006", Product: "Bike", Quantity: 2, State: "Colorado" }, - { Amount: 150, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "New Mexico" }, - { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Bike", Quantity: 4, State: "New York" }, - { Amount: 250, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "North Carolina" }, - { Amount: 300, Country: "United States", Date: "FY 2007", Product: "Van", Quantity: 4, State: "South Carolina" } -] - -module PivotChartRelational { - - $(function () { - var sample = new ej.PivotChart($("#PivotChart"),{ - dataSource: { - data: pivot_dataset, - rows: [ - { - fieldName: "Country", - fieldCaption: "Country" - }, - { - fieldName: "State", - fieldCaption: "State" - }, - { - fieldName: "Date", - fieldCaption: "Date" - } - ], - columns: [ - { - fieldName: "Product", - fieldCaption: "Product" - } - ], - values: [ - { - fieldName: "Amount", - fieldCaption: "Amount" - } - ], - filters:[] - }, - isResponsive: true,zooming:{enableScrollbar: true}, - commonSeriesOptions: { - type: "column" - }, - size: { height: "460px", width: "100%" }, - primaryYAxis: { title: { text: "Amount" } }, - legend: { visible: true } - }); - }); -} - - - -module PivotGaugeOlap { - - $(function () { - var sample = new ej.PivotGauge($("#PivotGauge"),{ - dataSource: { - data: "http://bi.syncfusion.com/olap/msmdpump.dll", - catalog: "Adventure Works DW 2008 SE", - cube: "Adventure Works", - rows: [ - { - fieldName: "[Date].[Fiscal]", - filterItems: { filterType: "include", values: ["[Date].[Fiscal].[Fiscal Year].&[2004]"] } - }, - ], - columns: [ - { - fieldName: "[Customer].[Customer Geography]" - } - ], - values: [ - { - measures: [ - { - fieldName: "[Measures].[Internet Sales Amount]" - }, - { - fieldName: "[Measures].[Internet Revenue Status]" - }, - { - fieldName: "[Measures].[Internet Revenue Trend]" - }, - { - fieldName: "[Measures].[Internet Revenue Goal]" - }, - ], - axis: "columns" - } - ], - filters:[] - }, - enableTooltip: true, isResponsive: true, - labelFormatSettings: { decimalPlaces: 2 }, - scales: [{ - showRanges: true, - radius: 150, showScaleBar: true, size: 1, - border: { - width: 0.5 - }, - showIndicators: true, showLabels: true, - pointers: [{ - showBackNeedle: true, - backNeedleLength: 20, - length: 120, - width: 7 - }, - { - type: "marker", - markerType: "diamond", - distanceFromScale: 5, - placement: "center", - backgroundColor: "#29A4D9", - length: 25, - width: 15 - }], - ticks: [{ - type: "major", - distanceFromScale: 2, - height: 16, - width: 1, color: "#8c8c8c" - }, - { - type: "minor", - height: 6, - width: 1, - distanceFromScale: 2, - color: "#8c8c8c" - }], - labels: [{ - color: "#8c8c8c" - }], - ranges: [{ - distanceFromScale: -5, - backgroundColor: "#fc0606", - border: { color: "#fc0606" } - }, - { - distanceFromScale: -5 - }], - customLabels: [{ - position: { x: 180, y: 290 }, - font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" - }, - { - position: { x: 180, y: 320 }, - font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" - }, - { - position: { x: 180, y: 150 }, - font: { size: "12px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" - }] - }] - }); - }); -} - - - -var pivot_dataset = [ - { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" }, - { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" }, - { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" }, - { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" }, - { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }, - { Amount: 100, Country: "Canada", Date: "FY 2007", Product: "Van", Quantity: 1, State: "Quebec" }, - { Amount: 200, Country: "France", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Charente-Maritime" }, - { Amount: 250, Country: "France", Date: "FY 2006", Product: "Van", Quantity: 4, State: "Essonne" }, - { Amount: 300, Country: "France", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Garonne (Haute)" }, - { Amount: 150, Country: "France", Date: "FY 2008", Product: "Van", Quantity: 2, State: "Gers" }, - { Amount: 200, Country: "Germany", Date: "FY 2006", Product: "Van", Quantity: 3, State: "Bayern" }, - { Amount: 250, Country: "Germany", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Brandenburg" }, - { Amount: 150, Country: "Germany", Date: "FY 2008", Product: "Car", Quantity: 4, State: "Hamburg" }, - { Amount: 200, Country: "Germany", Date: "FY 2008", Product: "Bike", Quantity: 4, State: "Hessen" }, - { Amount: 150, Country: "Germany", Date: "FY 2007", Product: "Van", Quantity: 3, State: "Nordrhein-Westfalen" }, - { Amount: 100, Country: "Germany", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Saarland" }, - { Amount: 150, Country: "United Kingdom", Date: "FY 2008", Product: "Bike", Quantity: 5, State: "England" }, - { Amount: 250, Country: "United States", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Alabama" }, - { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Van", Quantity: 4, State: "California" }, - { Amount: 100, Country: "United States", Date: "FY 2006", Product: "Bike", Quantity: 2, State: "Colorado" }, - { Amount: 150, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "New Mexico" }, - { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Bike", Quantity: 4, State: "New York" }, - { Amount: 250, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "North Carolina" }, - { Amount: 300, Country: "United States", Date: "FY 2007", Product: "Van", Quantity: 4, State: "South Carolina" } -] - -module PivotGaugeRelational { - $(function () { - var sample = new ej.PivotGauge($("#PivotGauge"),{ - dataSource: { - data: pivot_dataset, - rows: [ - { - fieldName: "Country", - }, - { - fieldName: "State", - } - ], - columns: [ - { - fieldName: "Product", - } - ], - values: [ - { - fieldName: "Amount", - }, - { - fieldName: "Quantity", - } - ] - }, - enableTooltip: true, isResponsive: true, - labelFormatSettings: { decimalPlaces: 2 }, - scales: [{ - showRanges: true, - radius: 150, showScaleBar: true, size: 1, - border: { - width: 0.5 - }, - showIndicators: true, showLabels: true, - pointers: [{ - showBackNeedle: true, - backNeedleLength: 20, - length: 120, - width: 7 - }, - { - type: "marker", - markerType: "diamond", - distanceFromScale: 5, - placement: "center", - backgroundColor: "#29A4D9", - length: 25, - width: 15 - }], - ticks: [{ - type: "major", - distanceFromScale: 2, - height: 16, - width: 1, color: "#8c8c8c" - }, - { - type: "minor", - height: 6, - width: 1, - distanceFromScale: 2, - color: "#8c8c8c" - }], - labels: [{ - color: "#8c8c8c" - }], - ranges: [{ - distanceFromScale: -5, - backgroundColor: "#fc0606", - border: { color: "#fc0606" } - }, - { - distanceFromScale: -5 - }], - customLabels: [{ - position: { x: 180, y: 290 }, - font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" - }, - { - position: { x: 180, y: 320 }, - font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" - }, - { - position: { x: 180, y: 150 }, - font: { size: "12px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" - }] - }] - }); - }); -} - - - -module PivotGridOlap { - - $(function () { - var sample = new ej.PivotGrid($("#PivotGrid"),{ - dataSource: { - data: "http://bi.syncfusion.com/olap/msmdpump.dll", - catalog: "Adventure Works DW 2008 SE", - cube: "Adventure Works", - rows: [ - { - fieldName: "[Date].[Fiscal]" - } - ], - columns: [ - { - fieldName: "[Customer].[Customer Geography]" - } - ], - values: [ - { - measures: [ - { - fieldName: "[Measures].[Internet Sales Amount]", - } - ], - axis: "columns" - } - ], - filters:[] - }, - enableGroupingBar: true, - pivotTableFieldListID:"PivotSchemaDesigner" - }); - $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); - }); -} - - - -var pivot_dataset = [ - { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" }, - { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" }, - { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" }, - { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" }, - { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }, - { Amount: 100, Country: "Canada", Date: "FY 2007", Product: "Van", Quantity: 1, State: "Quebec" }, - { Amount: 200, Country: "France", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Charente-Maritime" }, - { Amount: 250, Country: "France", Date: "FY 2006", Product: "Van", Quantity: 4, State: "Essonne" }, - { Amount: 300, Country: "France", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Garonne (Haute)" }, - { Amount: 150, Country: "France", Date: "FY 2008", Product: "Van", Quantity: 2, State: "Gers" }, - { Amount: 200, Country: "Germany", Date: "FY 2006", Product: "Van", Quantity: 3, State: "Bayern" }, - { Amount: 250, Country: "Germany", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Brandenburg" }, - { Amount: 150, Country: "Germany", Date: "FY 2008", Product: "Car", Quantity: 4, State: "Hamburg" }, - { Amount: 200, Country: "Germany", Date: "FY 2008", Product: "Bike", Quantity: 4, State: "Hessen" }, - { Amount: 150, Country: "Germany", Date: "FY 2007", Product: "Van", Quantity: 3, State: "Nordrhein-Westfalen" }, - { Amount: 100, Country: "Germany", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Saarland" }, - { Amount: 150, Country: "United Kingdom", Date: "FY 2008", Product: "Bike", Quantity: 5, State: "England" }, - { Amount: 250, Country: "United States", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Alabama" }, - { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Van", Quantity: 4, State: "California" }, - { Amount: 100, Country: "United States", Date: "FY 2006", Product: "Bike", Quantity: 2, State: "Colorado" }, - { Amount: 150, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "New Mexico" }, - { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Bike", Quantity: 4, State: "New York" }, - { Amount: 250, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "North Carolina" }, - { Amount: 300, Country: "United States", Date: "FY 2007", Product: "Van", Quantity: 4, State: "South Carolina" } -] - -module PivotGridRelational { - $(function () { - var sample = new ej.PivotGrid($("#PivotGrid"),{ - dataSource: { - data: pivot_dataset, - rows: [ - { - fieldName: "Country", - fieldCaption: "Country" - }, - { - fieldName: "State", - fieldCaption: "State" - } - ], - columns: - [{ - fieldName: "Product", - fieldCaption: "Product" - } - ], - values: [ - { - fieldName: "Amount", - fieldCaption: "Amount" - }, - { - fieldName: "Quantity", - fieldCaption: "Quantity" - } - ], - filters:[] - }, - enableGroupingBar: true, - pivotTableFieldListID:"PivotSchemaDesigner" - }); - $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); - - }); -} - - - -module PivotTreeMap { - $(function () { - var sample = new ej.PivotTreeMap($("#PivotTreeMap"),{ - dataSource: { - data: "http://bi.syncfusion.com/olap/msmdpump.dll;Locale Identifier=1033;", - catalog: "Adventure Works DW 2008 SE", - cube: "Adventure Works", - rows: [ - { - fieldName: "[Customer].[Customer Geography]" - } - ], - columns: [ - { - fieldName: "[Date].[Fiscal]" - } - ], - values: [ - { - measures: [ - { - fieldName: "[Measures].[Customer Count]", - } - ], - axis: "columns" - } - ], - filters:[] - } - }); - }); -} - - - -module ProgressBarComponent { - $(function () { - var sample = new ej.ProgressBar($("#progressBar"),{ - width: 200, - value: 45, - height: 20, - enablePersistence: true, - maxValue: 200, - minValue: 0, - showRoundedCorner: true, - text: 'loading...' - }); - }); - -} - - - - -declare var rteObj: any; -declare var data: any; -var radialEle = $('#defaultradialmenu'), action = 0, forRedo = 0; -var rteEle = $("#rteSample1"); -module RadialMenuComponent { - $(function () { - - if (!(ej.browserInfo().name == "msie" && parseInt(ej.browserInfo().version) < 9)) { - var radialmenuInstance = new ej.RadialMenu($("#defaultradialmenu"), { - imageClass: "imageclass", - backImageClass: "backimageclass", - targetElementId: "radialtarget1" - }); - $("#radialtarget1").parent().css("position", "relative"); - } - else { - $("#contentDiv").html("Radial Menu is only supported from Internet Explorer Versioned 9 and above.").css({ "font-size": "20px", "color": "red" }); - } - var rteInstance = new ej.RTE($("#rteSample1"), { - width: "100%", - minWidth: "10px", - change: (e) => { radialEle.ejRadialMenu("enableItem", "Undo"); }, - select: (e) => { - var target = $("#radialtarget1"), radialRadius = 150, radialDiameter = 2 * radialRadius, - // To get Iframe positions - iframeY = e.event.clientY, iframeX = e.event.clientX, - // To set Radial Menu position within target - x = iframeX > target.width() - radialRadius ? target.width() - radialDiameter : (iframeX > radialRadius ? iframeX - radialRadius : 0), - y = iframeY > target.height() - radialRadius ? target.height() - radialDiameter : (iframeY > radialRadius ? iframeY - radialRadius : 0); - radialEle.ejRadialMenu("setPosition", x, y); - radialEle.focus(); - $('iframe').contents().find('body').blur(); - }, - showToolbar: false, - showContextMenu: false - }); - $(window).resize(function () { - if (ej.isMobile() && ej.isPortrait()) - $('#defaultradialmenu').css({ "left": 25 }); - }); - }); -} - - -function bold(e: any) { - - rteObj = rteEle.data("ejRTE"); - rteObj.executeCommand("bold"); - data = rteObj._getSelectedHtmlString() ? true : false; - if (data) action += 1; - forRedo = action; - radialEle.focus(); -} -function italic(e: any) { - rteObj = rteEle.data("ejRTE"); - rteObj.executeCommand("italic"); - data = rteObj._getSelectedHtmlString() ? true : false; - if (data) action += 1; - forRedo = action; - radialEle.focus(); -} -function undo(e: any) { - rteObj = rteEle.data("ejRTE"); - rteObj.executeCommand("undo"); - action -= 1; - if (action == 0) - radialEle.ejRadialMenu("disableItem", "Undo"); - radialEle.ejRadialMenu("enableItem", "Redo"); - radialEle.focus(); -} -function redo(e: any) { - rteObj = rteEle.data("ejRTE"); - rteObj.executeCommand("redo"); - action += 1; - if (forRedo == action) radialEle.ejRadialMenu("disableItem", "Redo"); - radialEle.ejRadialMenu("enableItem", "Undo"); - radialEle.focus(); -} - - - - -module RadialSliderComponent { - $(function () { - var radialsliderInstance = new ej.RadialSlider($("#radialSlider"), { - innerCircleImageUrl: "images/radialslider/chevron-right.png" - }); - }); -} - - -module rangecomponent { - $(function () { - var linearsample = new ej.datavisualization.RangeNavigator($("#RangeNavigator"), { - enableDeferredUpdate: true, - padding: "15", - allowSnapping: true, - selectedRangeSettings: { - start: "2010/5/1", end: "2011/10/1" - }, - isResponsive: true, - tooltipSettings: { - visible: true, labelFormat: "MM/dd/yyyy", backgroundColor: "gray", tooltipDisplayMode: "ondemand" - }, - load: () => { - var rn = $("#RangeNavigator").data("ejRangeNavigator"); - rn.model.series = [ - { - type: 'line', - dataSource: data.Open, xName: "XValue", yName: "YValue", - fill: '#69D2E7' - } - ]; - } - - }); - }); -} -var data; -data = GetData(); - -function GetData() { - var series1:any[]=[]; - var series2:any[]= []; - var value = 100; - var value1 = 120; - for (var i = 1; i < 730; i++) { - - if (Math.random() > .5) { - value += Math.random(); - value1 += Math.random(); - } else { - value -= Math.random(); - value1 -= Math.random(); - } - var point1 = { XValue: new Date(2010, 0, i), YValue: value }; - var point2 = { XValue: new Date(2010, 0, i), YValue: value1 }; - series1.push(point1); - series2.push(point2); - } - - data = { Open: series1, Close: series2 }; - return data; -}; - - - -module RatingComponent { - $(function () { - - var sample1 = new ej.Rating($("#fullRating"),{ - value: 4, - precision: ej.Rating.Precision.Full, - allowReset: true, - cssClass: "gradient-lime", - enabled: true, - enablePersistence: true, - incrementStep: 2, - maxValue: 10, - minValue: 0, - orientation: ej.Orientation.Horizontal, - shapeHeight: 25, - shapeWidth: 25, - showTooltip: true - }); - - var sample2 = new ej.Rating($("#halfRating"),{ - precision: ej.Rating.Precision.Half, - value: 3.5, - allowReset: true, - cssClass: "gradient-lime", - enabled: true, - enablePersistence: true, - incrementStep: 2, - maxValue: 10, - minValue: 0, - orientation: "horizontal", - shapeHeight: 25, - shapeWidth: 25, - showTooltip: true - }); - - var sample3 = new ej.Rating($("#exactRating"),{ - precision: ej.Rating.Precision.Exact, - value: 3.7, - allowReset: true, - cssClass: "gradient-lime", - enabled: true, - enablePersistence: true, - incrementStep: 2, - maxValue: 10, - minValue: 0, - orientation: "horizontal", - shapeHeight: 25, - shapeWidth: 25, - showTooltip: true - }); - }); - -} - - - -module ReportViewerComponent { - $(function () { - var report = new ej.ReportViewer($("#territoryReportViewer"), { - reportServiceUrl: (window).baseurl + 'api/ReportViewer', - reportServerUrl: 'http://mvc.syncfusion.com/reportserver', - processingMode: ej.ReportViewer.ProcessingMode.Remote, - reportPath: "/SSRSSamples2/Territory Sales new", - isResponsive: true - }); - }); -} - - - -var fontfamily = ["Segoe UI", "Arial", "Times New Roman", "Tahoma", "Helvetica"], fontsize = ["1pt", "2pt", "3pt", "4pt", "5pt"], action1 = ["New", "Clear"], action2 = ["Bold", "Italic", "Underline", "strikethrough", "superscript", "subscript", "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyFull", "Undo", "Redo"]; -module RibbonComponent { - $(function () { - var sample = new ej.Ribbon($("#defaultRibbon"), { - width: "100%", - expandPinSettings: { - toolTip: "Collapse the Ribbon" - }, - collapsePinSettings: { - toolTip: "Pin the Ribbon" - }, - applicationTab: { - type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false } - }, - tabs: [{ - id: "home", text: "HOME", groups: [{ - text: "New", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "new", - text: "New", - toolTip: "New", - buttonSettings: { - contentType: ej.ContentType.ImageOnly, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-new", - click: "onClick" - } - } - ], - defaults: { - type: "button", - width: 60, - height: 70 - } - }] - }, - { - text: "Clipboard", alignType: ej.Ribbon.AlignType.Columns, content: [{ - groups: [{ - id: "paste", - text: "paste", - toolTip: "Paste", - splitButtonSettings: { - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-ribbonpaste", - targetID: "pasteSplit", - buttonMode: "dropdown", - click: "onClick", - arrowPosition: ej.ArrowPosition.Bottom - } - } - ], - defaults: { - type: "splitbutton", - width: 50, - height: 70 - } - }, - { - groups: [{ - id: "cut", - text: "Cut", - toolTip: "Cut", - buttonSettings: { - contentType: ej.ContentType.TextAndImage, - click: "onClick", - prefixIcon: "e-icon e-ribbon e-ribboncut" - } - }, - { - id: "copy", - text: "Copy", - toolTip: "Copy", - buttonSettings: { - contentType: ej.ContentType.TextAndImage, - click: "onClick", - prefixIcon: "e-icon e-ribbon e-ribboncopy" - } - }, - { - id: "clear", - text: "Clear", - toolTip: "Clear All", - buttonSettings: { - contentType: ej.ContentType.TextAndImage, - click: "onClick", - prefixIcon: "e-icon e-ribbon clearAll" - } - }], - defaults: { - type: "button", - width: 60, - isBig: false - } - }] - }, - { - text: "Font", alignType: "rows", content: [{ - groups: [{ - id: "fontfamily", - toolTip: "Font", - dropdownSettings: { - dataSource: fontfamily, - text: "Segoe UI", - select: "onClick", - width: 150 - } - }, - { - id: "fontsize", - toolTip: "FontSize", - dropdownSettings: { - dataSource: fontsize, - text: "1pt", - select: "onClick", - width: 65 - } - }], - defaults: { - type: "dropdownlist", - height: 28 - } - }, - { - groups: [{ - id: "bold", - toolTip: "Bold", - type: ej.Ribbon.Type.ToggleButton, - toggleButtonSettings: { - contentType: ej.ContentType.ImageOnly, - defaultText: "Bold", - activeText: "Bold", - click: "onClick", - defaultPrefixIcon: "e-icon e-ribbon bold", - activePrefixIcon: "e-icon e-ribbon bold" - } - }, - { - id: "italic", - toolTip: "Italic", - type: ej.Ribbon.Type.ToggleButton, - toggleButtonSettings: { - contentType: ej.ContentType.ImageOnly, - defaultText: "Italic", - activeText: "Italic", - click: "onClick", - defaultPrefixIcon: "e-icon e-ribbon e-ribbonitalic", - activePrefixIcon: "e-icon e-ribbon e-ribbonitalic" - } - }, - { - id: "underline", - text: "Underline", - toolTip: "Underline", - type: ej.Ribbon.Type.ToggleButton, - toggleButtonSettings: { - contentType: ej.ContentType.ImageOnly, - defaultText: "Underline", - activeText: "Underline", - click: "onClick", - defaultPrefixIcon: "e-icon e-ribbon e-ribbonunderline", - activePrefixIcon: "e-icon e-ribbon e-ribbonunderline" - } - }, - { - id: "strikethrough", - text: "strikethrough", - toolTip: "Strikethrough", - type: ej.Ribbon.Type.ToggleButton, - toggleButtonSettings: { - contentType: ej.ContentType.ImageOnly, - defaultText: "Strikethrough", - activeText: "Strikethrough", - click: "onClick", - defaultPrefixIcon: "e-icon e-ribbon strikethrough", - activePrefixIcon: "e-icon e-ribbon strikethrough" - } - }, - { - id: "superscript", - text: "superscript", - toolTip: "Superscript", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-superscripticon" - } - }, - { - id: "subscript", - text: "subscript", - toolTip: "Subscript", - enableSeparator: true, - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-subscripticon" - } - }, - { - id: "fontcolor", - text: "Font Color", - toolTip: "Font Color", - type: ej.Ribbon.Type.Custom, - contentID: "fontcolor" - }, - { - id: "fillcolor", - text: "Fill Color", - toolTip: "Fill Color", - type: ej.Ribbon.Type.Custom, - contentID: "fillcolor" - } - ], - defaults: { - isBig: false - } - }] - }, - { - text: "Alignment", alignType: ej.Ribbon.AlignType.Rows, content: [ - { - groups: [{ - id: "bullet", - text: "Bullet Format", - toolTip: "Bullets", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-bullet" - } - }, - { - id: "number", - text: "Number Format", - toolTip: "Numbering", - enableSeparator: true, - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-numbericon" - } - }, - { - id: "textindent", - text: "Indent", - toolTip: "Text Indent", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-indent" - } - }, - { - id: "textoudent", - text: "Outdent", - toolTip: "Text Outdent", - enableSeparator: true, - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-outdent" - } - }, - { - id: "sortascending", - text: "Sort", - toolTip: "Sort", - enableSeparator: true, - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-sort" - } - }, - { - id: "border", - text: "Border", - toolTip: "Border", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-border" - } - }], - defaults: { - type: "button", - isBig: false - } - }, - { - groups: [{ - id: "alignleft", - text: "JustifyLeft", - toolTip: "Align Left", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon alignleft" - } - }, - { - id: "aligncenter", - text: "JustifyCenter", - toolTip: "Align Center", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon aligncenter" - } - }, - { - id: "alignright", - text: "JustifyRight", - toolTip: "Align Right", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon alignright" - } - }, - { - id: "justify", - text: "JustifyFull", - toolTip: "Justify", - enableSeparator: true, - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon justify" - } - }, - { - id: "uppercase", - text: "Upper Case", - toolTip: "Upper Case", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-uppercase" - } - }, - { - id: "lowercase", - text: "Lower Case", - toolTip: "Lower Case", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.ImageOnly, - prefixIcon: "e-icon e-ribbon e-lowercase" - } - }], - defaults: { - type: "button", - isBig: false - } - }] - }, - { - text: "Actions", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "undo", - text: "Undo", - toolTip: "Undo", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-undo" - } - }, - { - id: "redo", - text: "Redo", - toolTip: "Redo", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-redo" - } - } - ], - defaults: { - type: "button", - width: 40, - height: 70 - } - }] - }, - { - text: "View", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "zoomin", - text: "Zoom In", - toolTip: "Zoom In", - buttonSettings: { - width: 58, - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-zoomin" - } - }, - { - id: "zoomout", - text: "Zoom Out", - toolTip: "Zoom Out", - buttonSettings: { - width: 70, - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-zoomout" - } - }, - { - id: "fullscreen", - text: "Full Screen", - toolTip: "Full Screen", - buttonSettings: { - width: 73, - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-fullscreen" - } - } - ], - defaults: { - type: "button", - height: 70 - } - }] - }] - },{ - id: "insert", text: "INSERT", groups: [{ - text: "Tables", alignType: ej.Ribbon.AlignType.Columns, content: [{ - groups: [{ - id: "tables", - text: "Tables", - toolTip: "Tables", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-table" - } - } - ], - defaults: { - type: "button", - width: 50, - height: 70 - } - }] - }, - { - text: "Illustrations", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "pictures", - text: "Pictures", - toolTip: "Pictures", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-picture" - } - }, - { - id: "videos", - text: "Videos", - toolTip: "Videos", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-video" - } - }, - { - id: "shapes", - text: "Shapes", - toolTip: "Shapes", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-shape" - } - }, - { - id: "charts", - text: "Charts", - toolTip: "Charts", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-chart" - } - } - ], - defaults: { - type: "button", - width: 56, - height: 70 - } - }] - }, - { - text: "Comments", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "comments", - text: "Comments", - toolTip: "Comments", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-comment" - } - } - ], - defaults: { - type: "button", - width: 70, - height: 70 - } - }] - }, - { - text: "Text", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "text", - text: "Text", - toolTip: "Text", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-text", - width: 50 - } - }, - { - id: "datetime", - text: "Date Time", - toolTip: "DateTime", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-datetimenew" - } - } - ], - defaults: { - type: "button", - width: 70, - height: 70 - } - }] - }, - { - text: "Hyperlink", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "hyperlink", - text: "Hyperlink", - toolTip: "Hyperlink", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-hyperlink" - } - } - ], - defaults: { - type: "button", - width: 70, - height: 70 - } - }] - }, - { - text: "Equation", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "equation", - text: "Equation", - toolTip: "Equation", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-equation" - } - } - ], - defaults: { - type: "button", - width: 60, - height: 70 - } - }] - }, - { - text: "Print Layout", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "printlayout", - text: "Print Layout", - toolTip: "Print Layout", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-printlayout" - } - } - ], - defaults: { - type: "button", - width: 80, - height: 70 - } - }] - }, - { - text: "Save", alignType: ej.Ribbon.AlignType.Rows, content: [{ - groups: [{ - id: "print", - text: "Print", - toolTip: "Print", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-print" - } - }, - { - id: "save", - text: "Save", - toolTip: "Save", - buttonSettings: { - click: "onClick", - contentType: ej.ContentType.TextAndImage, - imagePosition: ej.ImagePosition.ImageTop, - prefixIcon: "e-icon e-ribbon e-save" - } - } - ], - defaults: { - type: "button", - width: 50, - height: 70 - } - }] - } - ] - } - ], - create: function createControl(args) { - var ribbon = $("#defaultRibbon").data("ejRibbon"); - $("#fontcolor").ejColorPicker({ value: "#FFFF00", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fontcoloricon", select: colorHandler }); - $("#fillcolor").ejColorPicker({ value: "#FF0000", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fillcoloricon", select: colorHandler }); - } - }); - }); -} -function colorHandler(args:any) { - (this._id.indexOf("fillcolor") != -1) ? $("#contenteditor").css('background-color', args.value) : document.execCommand('forecolor', false, args.value); -} -function onClick(args) { - var val, prop = args.text; - val = (ej.isNullOrUndefined(args.model.text)) ? args.model.activeText : args.model.text; - if (action1.indexOf(val) != -1) - $("#contenteditor").empty(); - else if (action2.indexOf(val) != -1) - document.execCommand(val, false, null); - else if (fontfamily.indexOf(prop) != -1) - document.execCommand("FontName", false, prop); - else if (fontsize.indexOf(prop) != -1) - document.execCommand("FontSize", false, prop.replace("pt", "")); - else - $("#contenteditor").append("

Action: " + val + " Triggered

"); -} - - - - - - -module RotatorComponent { - $(function () { - var rotatorInstance = new ej.Rotator($("#sliderContent"), { - slideWidth: "100%", - frameSpace: "0px", - slideHeight: "auto", - displayItemsCount: "1", - navigateSteps: "1", - pagerPosition:"outside", - orientation: "horizontal", - showPager: true, - enabled: true, - showCaption: true, - allowKeyboardNavigation: true, - showPlayButton: true, - isResponsive:true, - animationType: "slide", - }); - }); -} - - - -module RTEComponent { - $(function () { - var sample = new ej.RTE($("#rteSample"),{ - width: "100%", - minWidth: "150px", - showFooter: true, - showHtmlSource: true, - allowEditing: true, - allowKeyboardNavigation: true, - autoFocus: true, - autoHeight: true, - colorPaletteColumns: 10, - colorPaletteRows: 5, - cssClass: 'gradient-lime', - enableResize: true, - enableTabKeyNavigation: true, - fileBrowser: { - filePath: (window).baseurl + "Content/FileBrowser/", - extensionAllow: "*.png, *.doc, *.pdf, *.txt, *.docx", - ajaxAction: (window).baseurl + "api/FileExplorer/FileOperations" - }, - imageBrowser: { - filePath: (window).baseurl + "Content/FileBrowser/", - extensionAllow: "*.png, *.gif, *.jpg, *.jpeg, *.docx", - ajaxAction: (window).baseurl + "api/FileExplorer/FileOperations" - }, - isResponsive: true, - showClearAll: true, - showClearFormat: true, - showDimensions: true, - showCharCount: true, - tools: { - formatStyle: ["format"], - edit: ["findAndReplace"], - font: ["fontName", "fontSize", "fontColor", "backgroundColor"], - style: ["bold", "italic", "underline", "strikethrough"], - alignment: ["justifyLeft", "justifyCenter", "justifyRight", "justifyFull"], - lists: ["unorderedList", "orderedList"], - clipboard: ["cut", "copy", "paste"], - doAction: ["undo", "redo"], - indenting: ["outdent", "indent"], - clear: ["clearFormat", "clearAll"], - links: ["createLink", "removeLink"], - images: ["image"], - media: ["video"], - tables: ["createTable", "addRowAbove", "addRowBelow", "addColumnLeft", "addColumnRight", "deleteRow", "deleteColumn", "deleteTable"], - effects: ["superscript", "subscript"], - casing: ["upperCase", "lowerCase"], - view: ["fullScreen", "zoomIn", "zoomOut"], - print: ["print"], - customUnorderedList: [{ - name: "unOrderInsert", - tooltip: "Custom UnOrderList", - css: "e-rte-toolbar-icon e-rte-unlistitems customUnOrder", - text: "Smiley", - listImage: "url('../content/images/rte/Smiley-GIF.gif')" - }], - customOrderedList: [{ - name: "orderInsert", - tooltip: "Custom OrderList", - css: "e-rte-toolbar-icon e-rte-listitems customOrder", - text: "Lower-Greek", - listStyle: "lower-greek" - }] - } - }); - }); - -} - - - -module ScheduleComponent { - $(function () { - var sample = new ej.Schedule($("#Schedule1"), { - width: "100%", - height: "525px", - currentDate: new Date(2017, 5, 5), - timeScale: { - minorSlotCount: 4, - majorSlot: 60 - }, - contextMenuSettings: { - enable: true, - menuItems: { - appointment: [ - { id: "open", text: "Open Appointment" }, - { id: "delete", text: "Delete Appointment" }, - { id: "customMenu3", text: "Menu Item 3" }, - { id: "customMenu4", text: "Menu Item 4" } - ], - cells: [ - { id: "new", text: "New Appointment" }, - { id: "recurrence", text: "New Recurring Appointment" }, - { id: "today", text: "Today" }, - { id: "gotodate", text: "Go to date" }, - { id: "settings", text: "Settings" }, - { id: "view", text: "View", parentId: "settings" }, - { id: "timemode", text: "TimeMode", parentId: "settings" }, - { id: "view_Day", text: "Day", parentId: "view" }, - { id: "view_Week", text: "Week", parentId: "view" }, - { id: "view_Workweek", text: "Workweek", parentId: "view" }, - { id: "view_Month", text: "Month", parentId: "view" }, - { id: "timemode_Hour12", text: "12 Hours", parentId: "timemode" }, - { id: "timemode_Hour24", text: "24 Hours", parentId: "timemode" }, - { id: "workhours", text: "Work Hours", parentId: "settings" }, - { id: "customMenu1", text: "Menu Item 1" }, - { id: "customMenu2", text: "Menu Item 2" } - ] - } - }, - resources: [{ - field: "ownerId", - title: "Owner", - name: "Owners", allowMultiple: true, - resourceSettings: { - dataSource: [ - { text: "Nancy", id: 1, groupId: 1, color: "#f8a398" }, - { text: "Steven", id: 3, groupId: 2, color: "#56ca85" }, - { text: "Michael", id: 5, groupId: 1, color: "#51a0ed" } - ], - text: "text", id: "id", groupId: "groupId", color: "color" - } - }], - appointmentSettings: { - dataSource: new ej.DataManager((window).ResourcesData).executeLocal(new ej.Query().take(10)), - id: "Id", - subject: "Subject", - startTime: "StartTime", - endTime: "EndTime", - description: "Description", - allDay: "AllDay", - recurrence: "Recurrence", - recurrenceRule: "RecurrenceRule", - resourceFields: "ownerId" - } - }); - }); -} - - - -module ScrollerComponent { - $(function () { - var scrollerSample = new ej.Scroller($("#scrollcontent"), { - height: "300px", - width: "100%" - }); - $(window).bind('resize', function () { - scrollerSample.refresh(); - }); - - }); -} - - - -module SignatureComponent { - $(function () { - var basicSignature = new ej.Signature($("#signature"), { - height: "400px", - isResponsive: true, - strokeWidth: 3 - }); - }); -} - - - - -module SliderComponent { - $(function () { - var slider = new ej.Slider($("#minSlider"), { - sliderType: "MinRange", - value: 60, - minValue: 0, - maxValue: 100 - }); - var rangeslider = new ej.Slider($("#rangeSlider"), { - sliderType: "Range", - values: [30, 60], - minValue: 0 - }); - - }); -} - - - - - - -module linesparkline { - $(function () { - - var sparklinesample = new ej.Sparkline($("#line"), { - dataSource: [12, 14, 11, 12, 11, 15, 12, 10, 11, 12, 15, 13, 12, 11, 10, 13, 15, 12, 14, 16, 14, 12, 11], - tooltip: { - visible: true, - font: { size:"12px" } - }, - type: "line", - size: { height: "40", width:"170" }, - }); - }); -} - -module columnsparkline { - $(function () { - var sparkcolumnsample = new ej.Sparkline($("#column"), { - dataSource: [2, 6, -1, 1, 12, 5, -2, 7, -3, 5, 8, 10,], - negativePointColor: "red", - highPointColor: "blue", - tooltip: { - visible: true, - font: { - size: "12px", - } - }, - type: "column", - size: { height: "100", width: "150" }, - }); - }); -} - -module areasparkline { - $(function () { - var sparkareasample = new ej.Sparkline($("#area"), { - dataSource: [12, -10, 11, 8, 17, 6, 2, -17, 13, -6, 8, 10,], - markerSettings: { visible: true }, - highPointColor: "blue", - lowPointColor: "orange", - type: "area", - opacity: 0.5, - tooltip: { - visible: true, - font: { - size: "12px", - } - }, - size: { height: "100", width: "150" }, - }); - }); -} - -module windlosssparkline { - $(function () { - var sparkwinlosssample = new ej.Sparkline($("#winloss"), { - dataSource: [12, 15, -11, 13, 17, 0, -12, 17, 13, -15, 8, 10,], - type: "winloss", - size: { height: "100", width: "150" }, - }); - }); -} - -module piesparkline1 { - $(function () { - var sparkpiesample1 = new ej.Sparkline($("#pie1"), { - dataSource: [4, 6, 7], - type: "pie", - tooltip: { - visible: true, - font: { - size: "12px", - } - }, - size: { height: "40", width: "40" }, - }); - }); -} - -module piesparkline2 { - $(function () { - var sparkpiesample2 = new ej.Sparkline($("#pie2"), { - dataSource: [8, 9, 1,], - type: "pie", - tooltip: { - visible: true, - font: { - size: "12px", - } - }, - size: { height: "40", width: "40" }, - }); - }); -} - -module piesparkline3 { - $(function () { - var sparkpiesample3 = new ej.Sparkline($("#pie3"), { - dataSource: [2, 3, 5], - type: "pie", - tooltip: { - visible: true, - font: { - size: "12px", - } - }, - size: { height: "40", width: "40" }, - }); - }); -} - -module piesparkline4 { - $(function () { - var sparkpiesample4 = new ej.Sparkline($("#pie4"), { - dataSource: [10, 12, 11], - type: "pie", - tooltip: { - visible: true, - font: { - size: "12px", - } - }, - size: { height: "40", width: "40" }, - }); - }); -} - - - - - - -module SplitterComponent { - $(function () { - var splitterInstance = new ej.Splitter($("#outterSpliter"), { - height: "250px", - width: "50%", - orientation: ej.Orientation.Vertical, - properties: [{}, { paneSize: 80 }], - isResponsive:true - }); - var splitterInstance1 = new ej.Splitter($("#innerSpliter"), { - isResponsive:true, - }); - }); -} - - - -module SpreadsheetComponent { -$(function () { - var sample = new ej.Spreadsheet($("#basicSpreadsheet"), { - scrollSettings: { - height: 550, - }, - importSettings: { - importMapper: (window).baseurl + "api/Spreadsheet/Import" - }, - exportSettings: { - excelUrl: (window).baseurl + "api/Spreadsheet/ExcelExport", - csvUrl: (window).baseurl + "api/Spreadsheet/CsvExport", - pdfUrl: (window).baseurl + "api/Spreadsheet/PdfExport" - }, - sheets: [{ rangeSettings: [{ dataSource: (window).defaultData, startCell: "A1" }] }], - loadComplete: () => { - var spreadsheet = $("#basicSpreadsheet").data("ejSpreadsheet"), xlFormat = spreadsheet.XLFormat; - if (!(spreadsheet).isImport) { - spreadsheet.setWidthToColumns([140, 128, 105, 100, 100, 110, 120, 120, 100]); - xlFormat.format({ "style": { "font-weight": "bold" } }, "A1:H1"); - xlFormat.format({ "type": "currency" }, "E2:H11"); - spreadsheet.XLRibbon.updateRibbonIcons(); - }} - }); - }); -} - - - - -var default_data: Array = [ - { Category : "Employees", Country : "USA", JobDescription : "Sales", JobGroup:"Executive", EmployeesCount : 50 }, - { Category : "Employees", Country : "USA", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 }, - { Category : "Employees", Country : "USA", JobDescription : "Marketing", EmployeesCount : 40 }, - { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 55 }, - { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 175}, - { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 70 }, - { Category : "Employees", Country : "USA", JobDescription : "Management", EmployeesCount : 40 }, - { Category : "Employees", Country : "USA", JobDescription : "Accounts", EmployeesCount : 60 }, - - { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 43 }, - { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 125}, - { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 60 }, - { Category : "Employees", Country : "India", JobDescription : "HR Executives", EmployeesCount : 70 }, - { Category : "Employees", Country : "India", JobDescription : "Accounts", EmployeesCount : 45 }, - - { Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Executive", EmployeesCount : 30 }, - { Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 }, - { Category : "Employees", Country : "Germany", JobDescription : "Marketing", EmployeesCount : 50 }, - { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 }, - { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 }, - { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 }, - { Category : "Employees", Country : "Germany", JobDescription : "Management", EmployeesCount : 33 }, - { Category : "Employees", Country : "Germany", JobDescription : "Accounts", EmployeesCount : 55 }, - - { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 45 }, - { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 96 }, - { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 55 }, - { Category : "Employees", Country : "UK", JobDescription : "HR Executives", EmployeesCount : 60 }, - { Category : "Employees", Country : "UK", JobDescription: "Accounts", EmployeesCount: 30 }, - - { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 }, - { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 }, - { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 }, - { Category : "Employees", Country : "France", JobDescription: "Marketing", EmployeesCount: 50 } -]; - -module sunburstcomponent { - $(function () { - var sunburstsample = new ej.SunburstChart($("#Sunburst"), { - valueMemberPath: "EmployeesCount", - levels: [ - {groupMemberPath: "Country"}, - {groupMemberPath: "JobDescription"}, - {groupMemberPath: "JobGroup"}, - {groupMemberPath: "JobRole"} - ], - dataSource: default_data, - dataLabelSettings:{visible:true}, - tooltip:{visible:false}, - enableAnimation:false, - size:{height:"600"}, - innerRadius:0.2, - title:{text:"Employees Count"}, - zoomSettings:{enable:false}, - legend:{visible:true,position:'top'} - }); - }); -} - - - - -module TabComponent { - $(function () { - var sample = new ej.Tab($("#defaultTab"),{ - width: "500px", - collapsible: true, - events: "click", - heightAdjustMode: ej.Tab.HeightAdjustMode.Content, - showCloseButton: true, - showRoundedCorner: false - }); - }); -} - - - -module TagCloudComponent { - - - var websiteCollection = [ - { text: "Google", url: "http://www.google.com", frequency: 12 }, - { text: "All Things Digital", url: "http://allthingsd.com/", frequency: 3 }, - { text: "Arts Technica", url: "http://arstechnica.com/", frequency: 8 }, - { text: "Business Week", url: "http://www.businessweek.com/", frequency: 2 }, - { text: "Yahoo", url: "http://in.yahoo.com/", frequency: 12 }, - { text: "Center Networks", url: "http://www.centernetworks.com/", frequency: 5 }, - { text: "Crave", url: "http://news.cnet.com/crave/", frequency: 8 }, - { text: "Crunch Gear", url: "http://techcrunch.com/gadgets/", frequency: 20 }, - { text: "Daily Tech", url: "http://www.dailytech.com/", frequency: 1 }, - { text: "Electronista", url: "http://www.electronista.com/", frequency: 3 }, - { text: "Engadget", url: "http://www.engadget.com/", frequency: 5 }, - { text: "Gearlog", url: "http://www.gearlog.com/", frequency: 9 }, - { text: "Information Week", url: "http://www.informationweek.com/", frequency: 0 }, - { text: "PCWorld", url: "http://www.pcworld.com/", frequency: 11 }, - { text: "Tech Republic", url: "http://techrepublic.com/", frequency: 3 }, - { text: "Valleywag", url: "http://valleywag.gawker.com/", frequency: 6 }, - { text: "Rediff", url: "http://in.rediff.com/", frequency: 9 }, - { text: "WebProNews", url: "http://www.webpronews.com/", frequency: 2 } - ]; - - $(function () { - var sample = new ej.TagCloud($("#techWebList"), { - titleText: "Tech Sites", - dataSource: websiteCollection, - cssClass: "gradient-lime", - fields: { - text: "text", url: "url", frequency: "frequency" - } - }); - - }); -} - - - -module EditorComponent { - $(function () { - var num = new ej.NumericTextbox($("#numeric"), { - value: 30, - minValue: 1, - maxValue: 100, - name: "numeric", - width: "100%" - }); - var per = new ej.PercentageTextbox($("#percent"), { - value: 60, - minValue: 10, - maxValue: 1000, - name: "percent", - width: "100%" - }); - var cur = new ej.CurrencyTextbox($("#currency"), { - value: 100, - minValue: 10, - maxValue: 1000, - name: "currency", - width: "100%" - }); - var mask = new ej.MaskEdit($("#maskedit"), { - name: "mask", - value: "4242422424", - maskFormat: "99 999-99999", - width: "100%" - }) - }); -} - - - - - -module TileViewComponent { - $(function () { - var tile1 = new ej.Tile($("#tile1"), { - imagePosition:"fill", - caption:{text:"People"}, - tileSize:"medium", - imageUrl:'content/images/tile/windows/people_1.png' - }); - var tile2 = new ej.Tile($("#tile2"), { - imagePosition:"center", - tileSize:"small", - imageUrl:'content/images/tile/windows/alerts.png', - - }); - var tile3 = new ej.Tile($("#tile3"), { - imagePosition:"center", - tileSize:"small", - imageUrl:'content/images/tile/windows/bing.png', - }); - var tile4 = new ej.Tile($("#tile4"), { - tileSize:"small", - imageUrl:'content/images/tile/windows/camera.png', - }); - var tile5 = new ej.Tile($("#tile5"), { - imagePosition:"center", - tileSize:"small", - imageUrl:'content/images/tile/windows/messages.png', - }); - var tile6 = new ej.Tile($("#tile6"), { - imagePosition:"center", - tileSize:"medium", - imageUrl:'content/images/tile/windows/games.png', - caption:{text:"Play"} - }); - var tile7 = new ej.Tile($("#tile7"), { - tileSize:"medium", - imageUrl:'content/images/tile/windows/map.png', - caption:{text:"Maps"} - }); - var tile8 = new ej.Tile($("#tile8"), { - imagePosition:"fill", - tileSize:"wide", - imageUrl:'content/images/tile/windows/sports.png', - caption:{text:"Sports"} - }); - var tile9 = new ej.Tile($("#tile9"), { - imagePosition:"fill", - tileSize:"medium", - imageUrl:'content/images/tile/windows/people_2.png', - caption:{text:"People"} - }); - var tile10 = new ej.Tile($("#tile10"), { - imagePosition:"center", - tileSize:"medium", - imageUrl:'content/images/tile/windows/pictures.png', - caption:{text:"Photo"} - }); - var tile11 = new ej.Tile($("#tile11"), { - imagePosition:"center", - tileSize:"wide", - imageUrl:'content/images/tile/windows/weather.png', - caption:{text:"Weather"} - }); - var tile12 = new ej.Tile($("#tile12"), { - imagePosition:"center", - tileSize:"medium", - imageUrl:'content/images/tile/windows/music.png', - caption:{text:"Music"} - }); - var tile13 = new ej.Tile($("#tile13"), { - imagePosition:"center", - tileSize:"medium", - imageUrl:'content/images/tile/windows/favs.png', - caption:{text:"Favorites"} - }); - }); -} - - - -module TimePickerComponent { - $(function () { - var timeSample = new ej.TimePicker($("#timepick"), { - width: "100%" - }); - }); -} - - - - -module ToolbarComponent { - - $(function () { - var sample = new ej.Toolbar($("#editingToolbar"),{ - width: "100%", - cssClass: "gradient-lime", - enableSeparator: true, - - isResponsive: true, - orientation: ej.Orientation.Horizontal, - showRoundedCorner: true - }); - }); - -} - - - - -module TooltipComponent { - - $(function () { - - var sample1 = new ej.Tooltip($("#link1"),{ - content: "ECMAScript (or ES) is a trademarked scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262.", - associate: "mousefollow", - autoCloseTimeout: 5000, - collision: "fit", - containment: ".frame", - showRoundedCorner: true, - showShadow: true - }); - - var sample2 = new ej.Tooltip($("#link2"),{ - content: "The World Wide Web (WWW) is an information space where documents and other web resources are identified by URLs, interlinked by hypertext links, and can be accessed via the Internet.", - position: { - stem: { - horizontal: "right", - vertical: "center" - }, - target: { - horizontal: "left", - vertical: "center" - } - }, - autoCloseTimeout: 5000, - collision: "fit", - containment: ".frame", - showRoundedCorner: true, - showShadow: true - }); - - var sample3 = new ej.Tooltip($("#link3"),{ - content: 'Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic.', - position: { - stem: { - horizontal: "right", - vertical: "center" - }, - target: { - horizontal: "left", - vertical: "center", - }, - }, - associate: "mousefollow", - autoCloseTimeout: 5000, - collision: "fit", - containment: ".frame", - showRoundedCorner: true, - showShadow: true - }); - }); -} - - - -module TreeGridComponent { - $(function () { - var treegridInstance = new ej.TreeGrid($("#TreeGridContainer"), { - dataSource: (window).treeGridData, - childMapping: "subtasks", - allowSorting: true, - allowMultiSorting: true, - enableAltRow: true, - allowFiltering: true, - treeColumnIndex: 1, - allowKeyboardNavigation: true, - showColumnChooser: true, - showColumnOptions: true, - contextMenuSettings: { - showContextMenu: true, - contextMenuItems: ["add", "edit", "delete"] - }, - columnDialogFields: ["field", "headerText", "editType", "width", "visible", "allowSorting", "textAlign", "headerTextAlign"], - editSettings: { - allowAdding: true, - allowEditing: true, - allowDeleting: true, - editMode: "cellEditing", - rowPosition: "belowSelectedRow" - }, - toolbarSettings: { - showToolbar: true, - toolbarItems: ["add","edit","delete","update","cancel","expandAll","collapseAll"] - }, - columns: [ - { field: "taskID", headerText: "Task Id", allowFiltering: false, editType: "numericedit", filterEditType: "numericedit" }, - { field: "taskName", headerText: "Task Name", editType: "stringedit", filterEditType: "stringedit" }, - { field: "startDate", headerText: "Start Date", editType: "datepicker", filterEditType: "datepicker", format:"{0:MM/dd/yyyy}" }, - { field: "endDate", headerText: "End Date", editType: "datepicker", filterEditType: "datepicker", format:"{0:MM/dd/yyyy}" }, - { field: "progress", headerText: "Progress", editType: "numericedit", filterEditType: "numericedit" } - ], - isResponsive: true, - }); -}); -} - - - - -var population_data: Array = [ - { Continent: "Asia", Country: "Indonesia", Growth: 3, Population: 237641326 }, - { Continent: "Asia", Country: "Russia", Growth: 2, Population: 152518015 }, - { Continent: "Asia", Country: "Malaysia", Growth: 1, Population: 29672000 }, - { Continent: "North America", Country: "United States", Growth: 4, Population: 315645000 }, - { Continent: "North America", Country: "Mexico", Growth: 2, Population: 112336538 }, - { Continent: "North America", Country: "Canada", Growth: 1, Population: 39056064 }, - { Continent: "South America", Country: "Colombia", Growth: 1, Population: 47000000 }, - { Continent: "South America", Country: "Brazil", Growth: 3, Population: 193946886 }, - { Continent: "Africa", Country: "Nigeria", Growth: 2, Population: 170901000 }, - { Continent: "Africa", Country: "Egypt", Growth: 1, Population: 83661000 }, - { Continent: "Europe", Country: "Germany", Growth: 1, Population: 81993000 }, - { Continent: "Europe", Country: "France", Growth: 1, Population: 65605000 }, - { Continent: "Europe", Country: "UK", Growth: 1, Population: 63181775 } -]; - -module treemapcomponent { - $(function () { - var treemapsample = new ej.datavisualization.TreeMap($("#treemap"), { - leafItemSettings: { showLabels: true, labelPath: "Country" }, - rangeColorMapping: [ - { color: "#77D8D8", legendLabel: "1% Growth", from: 0, to: 1 }, - { color: "#AED960", from: 0, legendLabel: "2% Growth", to: 2 }, - { color: "#FFAF51", from: 0, legendLabel: "3% Growth", to: 3 }, - { color: "#F3D240", from: 0, legendLabel: "4% Growth", to: 4 } - ], - levels: [ - { groupPath: "Continent", groupGap: 5, headerHeight: 25, showHeader: true, headerTemplate: 'headertemplate' } - ], - dataSource: population_data, - colorValuePath: "Growth", - weightValuePath: "Population", - borderThickness: 0, - showLegend: true - }); - }); -} - - - - - -module TreeViewComponent { - $(function () { - var tree = new ej.TreeView($("#treeView"), { - allowEditing: true, - allowDragAndDrop: true, - allowDropChild: true, - allowDropSibling: true, - }); - }); -} - - - - -module UploadboxComponent { - - $(function () { - var sample = new ej.Uploadbox($("#UploadDefault"),{ - saveUrl: (window).baseurl + "api/uploadbox/Save", - removeUrl: (window).baseurl + "api/uploadbox/Remove", - buttonText: { - browse: "Choose File", upload: "Upload", cancel: "Cancel" - }, - cssClass: "gradient- purple", - dialogAction: { - modal: false, closeOnComplete: false, drag: true - }, - extensionsAllow: ".zip", - multipleFilesSelection: true, - showFileDetails: true - }); - }); - -} - - - - -module WaitingPopupComponent { - $(function () { - var sample = new ej.WaitingPopup($("#target"),{ - showOnInit: true, - showImage: true, - text: 'waiting…', - target: "#target", - appendTo: "#waiting" - }); - }); - -} +/// +/// + + + + +module AccordionComponent { + $(function () { + var sample = new ej.Accordion($("#basicAccordion"), { + width: "100%", + allowKeyboardNavigation: true, + collapseSpeed: 500, + collapsible: true, + enableAnimation: true, + enableMultipleOpen: true, + events: "click", + expandSpeed: 500, + headerSize: "40px", + htmlAttributes: { title: "Demo" }, + selectedItemIndex: 1, + showCloseButton: true, + showRoundedCorner: true + }); + }); +} + + + +module AutocompleteComponent{ + var carList = [ + "Audi S6", "Austin-Healey", "Alfa Romeo", "Aston Martin", + "BMW 7", "Bentley Mulsanne", "Bugatti Veyron", + "Chevrolet Camaro", "Cadillac", + "Duesenberg J", "Dodge Sprinter", + "Elantra", "Excavator", + "Ford Boss 302", "Ferrari 360", "Ford Thunderbird", + "GAZ Siber", + "Honda S2000", "Hyundai Santro", + "Isuzu Swift", "Infiniti Skyline", + "Jaguar XJS", + "Kia Sedona EX", "Koenigsegg Agera", + "Lotus Esprit", "Lamborghini Diablo", + "Mercedes-Benz", "Mercury Coupe", "Maruti Alto 800", + "Nissan Qashqai", + "Oldsmobile S98", "Opel Superboss", + "Porsche 356", "Pontiac Sunbird", + "Scion SRS/SC/SD", "Saab Sportcombi", "Subaru Sambar", "Suzuki Swift", + "Triumph Spitfire", "Toyota 2000GT", + "Volvo P1800", "Volkswagen Shirako" + ]; + $(function () { + var autocompleteInstance =new ej.Autocomplete($("#selectCar"), { + width: "100%", + watermarkText: "Select a car", + dataSource: carList, + enableAutoFill: true, + showPopupButton: true, + multiSelectMode: "delimiter" + }); + }); +} + + + + + +module Barcodecomponent { + $(function () { + var barcodesample = new ej.datavisualization.Barcode($("#Barcode"), { + text:"http://www.syncfusion.com" + }); + }); +} + + + + + +module Bulletgraphcomponent { + $(function () { + var bulletsample = new ej.datavisualization.BulletGraph($("#BulletGraph"), { + isResponsive: true, + tooltipSettings: { visible: true }, + quantitativeScaleSettings: { + featureMeasures: [{ + value: 8, comparativeMeasureValue:6.7 + }] + }, + qualitativeRanges: [{ + rangeEnd: 4.3, rangeStroke:"#ebebeb", + }, + { + rangeEnd: 7.3, rangeStroke:"#d8d8d8" + }, + { + rangeEnd: 10, rangeStroke: "#7f7f7f" + } + ], + captionSettings: { + textPosition: 'right', text: 'Revenue YTD', + subTitle: { + text: "$ in Thousands", textPosition:"right" + } + } + }); + }); +} + + + + + +module ButtonComponent { + $(function () { + var basicButton = new ej.Button($("#buttonnormal"), { + size: "large", + showRoundedCorner: true, + contentType: "textandimage", + prefixIcon: "e-icon e-save", + text: "Save" + }); + var toggleButton = new ej.ToggleButton($("#TextOnly"), { + showRoundedCorner: true, + size: "large", + contentType: "textandimage", + defaultPrefixIcon: "e-icon e-save", + activePrefixIcon: "e-icon e-delete", + defaultText: "Save", + activeText: "Delete" + }); + var splitbuttonnormal = new ej.SplitButton($("#splitbuttonnormal"), { + showRoundedCorner: true, + size: "large", + prefixIcon: "e-icon e-file-empty", + targetID: "menu1", + contentType: "textandimage", + text: "File" + }); + var groupButton = new ej.GroupButton($("#groupButton"), { + showRoundedCorner: true, + size: "large" + }); + var check1 = new ej.CheckBox($("#check1"), { + size: "medium", enableTriState: true + }); + var check2 = new ej.CheckBox($("#check2"), { + size: "medium", enableTriState: true + }); + var radio1 = new ej.RadioButton($("#radio1"), { + size: "medium" + }); + var radio2 = new ej.RadioButton($("#radio2"), { + size: "medium", checked: true + }); + }); +} + + + + +module ChartComponent { + $(function () { + var chartsample = new ej.datavisualization.Chart($("#Chart"), { + primaryXAxis: { + range: { min: 2005, max: 2011, interval: 1 }, + title: { text: "Year" }, + valueType: "category" + }, + primaryYAxis: { + range: { min: 25, max: 50, interval: 5 }, + labelFormat: "{value}%", + title: { text: "Efficiency" }, + + }, + commonSeriesOptions: + { + type: 'line', enableAnimation: true, + tooltip:{ visible :true, template:'Tooltip'}, + marker: + { + shape: 'circle', + size: + { + height: 10, width: 10 + }, + visible: true + }, + border : {width: 2} + }, + series: + [ + { + points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 }, + { x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }], + name: 'India' + }, + { + points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 }, + { x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }], + name: 'Germany' + }, + { + points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 }, + { x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }], + name: 'England' + }, + { + points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 }, + { x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }], + name: 'France' + } + ], + isResponsive: true, + load: function () { + var sender = $("#Chart").data("ejChart"); + if (!!window.orientation && sender) { //to modify chart properties for mobile view + var model = sender.model, + seriesLength = model.series.length; + model.legend.visible = false; + model.size.height = null; + model.size.width = null; + for (var i = 0; i < seriesLength; i++) { + if (!model.series[i].marker) + model.series[i].marker = {}; + if (!model.series[i].marker.size) + model.series[i].marker.size = {}; + model.series[i].marker.size.width = 6; + model.series[i].marker.size.height = 6; + } + model.primaryXAxis.labelIntersectAction = "rotate45"; + if (model.primaryXAxis.title) + model.primaryXAxis.title.text = ""; + if (model.primaryYAxis.title) + model.primaryYAxis.title.text = ""; + model.primaryXAxis.edgeLabelPlacement = "hide"; + model.primaryYAxis.labelIntersectAction = "rotate45"; + model.primaryYAxis.edgeLabelPlacement = "hide"; + } + }, + title: { text: 'Efficiency of oil-fired power production' }, + size: { height: "600" }, + legend: { visible: true} + }); + }); +} + + + + + +module circulargaugecomponent { + $(function () { + var circularsample = new ej.datavisualization.CircularGauge($("#CircularGauge"), { + enableAnimation: false, + isResponsive: true, + backgroundColor: "transparent", width: 500, + scales: [{ + showRanges: true, + startAngle: 122, sweepAngle: 296, radius: 130, showScaleBar: true, size: 1, maximum: 120, majorIntervalValue: 20, minorIntervalValue: 10, + border: { + width: 0.5, + }, + pointers: [{ + value: 60, + showBackNeedle: true, + backNeedleLength: 20, + length: 95, + width: 7 + }], + ticks: [{ + type: "major", + distanceFromScale: 2, + height: 16, + width: 1, color: "#8c8c8c" + }, { type: "minor", height: 8, width: 1, distanceFromScale: 2, color: "#8c8c8c" }], + labels: [{ + color: "#8c8c8c" + }], + ranges: [{ + distanceFromScale: -30, + startValue: 0, + endValue: 70 + }, { + distanceFromScale: -30, + startValue: 70, + endValue: 110, + backgroundColor: "#fc0606", + border: { color: "#fc0606" } + }, + { + distanceFromScale: -30, + startValue: 110, + endValue: 120, + backgroundColor: "#f5b43f", + border: { color: "#f5b43f" } + }] + }] + }); + }); +} + + + + +module ColorPickerComponent { + $(function () { + var colorSample = new ej.ColorPicker($("#colorpick"), { + value: "#278787" + }); + }); +} + + + + +module DatePickerComponent { + $(function () { + var dateSample = new ej.DatePicker($("#datepick"), { + width: "100%" + }); + }); +} + + + + +module DateTimePickerComponent { + $(function () { + var datetimeSample = new ej.DateRangePicker($("#daterangepick"), { + width: "100%" + }); + }); +} + + + +module DateTimePickerComponent { + $(function () { + var datetimeSample = new ej.DateTimePicker($("#datetimepick"), { + width: "100%" + }); + }); +} + + + +$(function () { + var diagram = new ej.datavisualization.Diagram($("#diagram"), { + width: "1000px", + height: "600px", + pageSettings: { + //Sets page size + pageHeight: 500, + pageWidth: 500, + //Customizes the appearance of page + pageBorderWidth: 4, + pageBackgroundColor: "white", + pageBorderColor: "lightgray", + pageMargin: 25, + showPageBreak: true, + multiplePage: true, + pageOrientation: ej.datavisualization.Diagram.PageOrientations.Portrait + }, + scrollSettings: { + horizontalOffset: 0, + verticalOffset: 0 + }, + snapSettings: { + snapConstraints: ej.datavisualization.Diagram.SnapConstraints.ShowLines + }, + nodes: [ + createNode({ name: "NewIdea", width: 150, height: 60, offsetX: 300, offsetY: 60, labels: [createLabel({ "text": "New idea identified" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Terminator }), + createNode({ name: "Meeting", width: 150, height: 60, offsetX: 300, offsetY: 155, labels: [createLabel({ "text": "Meeting with board" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }), + createNode({ + name: "BoardDecision", width: 150, height: 110, offsetX: 300, offsetY: 280, labels: [createLabel({ text: "Board decides \nwhether \nto proceed", wrapText: "true", "margin": { left: 20, top: 0, right: 20, bottom: 0 } })], + type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Decision + }), + createNode({ name: "Project", width: 150, height: 100, offsetX: 300, offsetY: 430, labels: [createLabel({ "text": "Find Project \nmanager" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Decision }), + createNode({ + name: "End", width: 150, height: 60, offsetX: 300, offsetY: 555, labels: [createLabel({ "text": "Implement and Deliver" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }), + createNode({ name: "Decision", width: 250, height: 60, offsetX: 550, offsetY: 60, labels: [createLabel({ "text": "Decision Process for new software ideas" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Card, fillColor: "#858585", borderColor: "#858585" }), + createNode({ name: "Reject", width: 150, height: 60, offsetX: 550, offsetY: 285, labels: [createLabel({ "text": "Reject and write report" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }), + createNode({ name: "Resources", width: 150, height: 60, offsetX: 550, offsetY: 430, labels: [createLabel({ "text": "Hire new resources" })], type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process }) + ], + connectors: [ + createConnector({ name: "connector1", sourceNode: "NewIdea", targetNode: "Meeting" }), + createConnector({ name: "connector2", sourceNode: "Meeting", targetNode: "BoardDecision" }), + createConnector({ name: "connector3", sourceNode: "BoardDecision", targetNode: "Project", labels: [createLabel({ "text": "Yes" })] }), + createConnector({ name: "connector4", sourceNode: "Project", targetNode: "End", labels: [createLabel({ "text": "Yes" })] }), + createConnector({ name: "connector5", sourceNode: "BoardDecision", targetNode: "Reject", labels: [createLabel({ "text": "No" })] }), + createConnector({ name: "connector6", sourceNode: "Project", targetNode: "Resources", labels: [createLabel({ "text": "No" })] }) + ] + }); + +}); + +function createNode(option: ej.datavisualization.Diagram.Node) { + if (!option.fillColor) { + option.borderColor = "#1BA0E2"; + option.fillColor = "#1BA0E2"; + } + option.labels[0].fontColor = "white"; + return option; +} + +function createConnector(option: ej.datavisualization.Diagram.Connector) { + option.targetDecorator = { shape: ej.datavisualization.Diagram.DecoratorShapes.Arrow, borderColor: "#606060", width: 10, height: 10 }; + option.lineColor = "#606060"; + if (option.labels && option.labels.length > 0) { + option.labels[0].fillColor = "white"; + } + return option; +} + +function createLabel(options : any) { + return options; +} + + + +module DialogComponent { + $(function () { + var dialogInstance = new ej.Dialog($("#basicDialog"), { + width: 550, + minWidth: 310, + minHeight: 215, + target:".control", + close:()=>{ + $("#btnOpen").show();} + }); + var btnInstance = new ej.Button($("#btnOpen"), { + size: "medium", + click: ()=>{ + $("#btnOpen").hide(); + $("#basicDialog").ejDialog("open");}, + type: "button", + height: 30, + width: 150 + }); + }); +} + + + + +module digitalgaugecomponent { + $(function () { + var digitalgaugesample = new ej.datavisualization.DigitalGauge($("#DigitalGauge"), { + width: 525, + height: 305, + isResponsive: true, + items: [{ + segmentSettings: { + width: 1, + spacing: 0, + color: "#8c8c8c" + }, + characterSettings: { + opacity: 0.8, + }, + value: "Syncfusion", + position: { x: 52, y: 52 } + }] + }); + }); +} + + + + + + +module DropDownListComponent { + var BikeList = [ + { empid: "bk1", text: "Apache RTR" }, { empid: "bk2", text: "CBR 150-R" }, { empid: "bk3", text: "CBZ Xtreme" }, + { empid: "bk4", text: "Discover" }, { empid: "bk5", text: "Dazzler" }, { empid: "bk6", text: "Flame" }, + { empid: "bk7", text: "Fazzer" }, { empid: "bk8", text: "FZ-S" }, { empid: "bk9", text: "Pulsar" }, + { empid: "bk10", text: "Shine" }, { empid: "bk11", text: "R15" }, { empid: "bk12", text: "Unicorn" } + ]; + $(function () { + var sample = new ej.DropDownList($("#bikeList"),{ + dataSource: BikeList, + width: "100%", + watermarkText: "Select a bike", + fields: { id: "empid", text: "text", value: "text" }, + enableFilterSearch: true, + caseSensitiveSearch: true, + enableIncrementalSearch: true, + enablePopupResize: true, + delimiterChar: ";", + multiSelectMode: ej.MultiSelectMode.Delimiter, + maxPopupHeight: "300px", + minPopupHeight: "150px", + maxPopupWidth: "500px", + minPopupWidth: "350px", + showCheckbox: true, + showRoundedCorner: true + }); + }); + +} + + + + + + +module ExplorerComponent { + $(function () { + var file = new ej.FileExplorer($("#fileExplorer"), { + path: (window).baseurl + "Content/FileBrowser/", + width: "100%", + minWidth: "150px", + layout: "tile", + isResponsive: true, + ajaxAction: (window).baseurl + "api/FileExplorer/FileOperations" + }); + }); +} + + + + +module GanttComponent { + $(function () { + var ganttInstance = new ej.Gantt($("#GanttContainer"), { + dataSource: (window).projectData, + allowColumnResize: true, + allowSorting: true, + allowSelection: true, + enableContextMenu: true, + taskIdMapping: "taskID", + allowDragAndDrop: true, + taskNameMapping: "taskName", + startDateMapping: "startDate", + showColumnChooser: true, + showColumnOptions: true, + progressMapping: "progress", + durationMapping: "duration", + endDateMapping: "endDate", + childMapping: "subtasks", + scheduleStartDate: "02/01/2014", + scheduleEndDate: "04/09/2014", + //Resources mapping + resourceInfoMapping: "resourceId", + resourceNameMapping: "resourceName", + resourceIdMapping: "resourceId", + resources: (window).projectResources, + predecessorMapping: "predecessor", + showResourceNames: true, + toolbarSettings: { + showToolbar: true, + toolbarItems: ["add","edit","delete","update","cancel","indent","outdent","expandAll","collapseAll","search"] + }, + editSettings: { + allowEditing: true, + allowAdding: true, + allowDeleting: true, + allowIndent: true, + editMode: "cellEditing" + }, + sizeSettings: { + width: "100%", + height: "100%" + }, + dragTooltip: { showTooltip: true }, + showGridCellTooltip: true, + treeColumnIndex: 1, + isResponsive: true, + }); +}); +} + + + +module GridComponent { + $(function () { + var gridInstance = new ej.Grid($("#Grid"), { + dataSource: (window).gridData, + allowGrouping: true, + allowSorting: true, + allowMultiSorting: true, + enableAltRow: true, + allowPaging: true, + allowReordering: true, + allowResizing: true, + allowFiltering: true, + allowScrolling: true, + enableRowHover: true, + selectionType: "multiple", + selectionSettings: { enableToggle: true, selectionMode: ["row", "cell", "column"] }, + allowKeyboardNavigation: true, + editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, allowEditOnDblClick: true, showDeleteConfirmDialog: true }, + toolbarSettings: { showToolbar: true, toolbarItems: ["add", "edit", "delete", "update", "cancel", "search"] }, + columns: [ + { field: "OrderID", headerText: "Order ID", isPrimaryKey: true, width: 75, textAlign: ej.TextAlign.Right }, + { field: "CustomerID", headerText: "Customer ID", editType: ej.Grid.EditingType.String, width: 80 }, + { field: "EmployeeID", headerText: "Employee ID", width: 75, editType: ej.Grid.EditingType.Dropdown, textAlign: ej.TextAlign.Right, priority: 4 }, + { field: "Freight", width: 75, format: "{0:C}", editType: ej.Grid.EditingType.Numeric, textAlign: ej.TextAlign.Right, priority: 3 }, + { field: "OrderDate", headerText: "Order Date", width: 80, format: "{0:MM/dd/yyyy}", textAlign: ej.TextAlign.Right, priority: 2 }, + { field: "ShipCity", headerText: "Ship City", editType: ej.Grid.EditingType.Dropdown, width: 110, priority: 2 } + ], + isResponsive: true, + minWidth: 700, + showSummary: true, + summaryRows: [{ title: "Sum", summaryColumns: [{ summaryType: ej.Grid.SummaryType.Sum, displayColumn: "Freight", dataMember: "Freight", format: "{0:C2}" }] }] + }); + }); +} + + + +var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fltemysost"] +var itemSource: any[] = []; +for (var i = 0; i < columns.length; i++) { + for (var j = 0; j < 6; j++) { + var value = Math.floor((Math.random() * 100) + 1); + itemSource.push({ ProductName: columns[i], Year: "Y" + (2011 + j), Value: value }) + } +} + +$(function () { + var heatmap = new ej.datavisualization.HeatMap($("#heatmap"), { + colorMappingCollection: [ + { value: 0, color: "#8ec8f8", label: { text: "0" } }, + { value: 100, color: "#0d47a1", label: { text: "100" } } + ], + isResponsive: true, + itemsSource: itemSource, + width: "100%", + itemsMapping: { + column: { propertyName: "ProductName", displayName: "Product Name" }, + row: { propertyName: "Year", displayName: "Year" }, + value: { propertyName: "Value" }, + columnMapping: [ + { "propertyName": columns[0], "displayName": columns[0] }, + { "propertyName": columns[1], "displayName": columns[1] }, + { "propertyName": columns[2], "displayName": columns[2] }, + { "propertyName": columns[3], "displayName": columns[3] }, + { "propertyName": columns[4], "displayName": columns[4] }, + { "propertyName": columns[5], "displayName": columns[5] } + ], + headerMapping: { propertyName: "Year", displayName: "Year", columnStyle: { width: 105, textAlign: "right" } }, + }, + legendCollection: ["heatmap_legend"] + }); + var heatmaplegend = new ej.datavisualization.HeatMapLegend($("#heatmap_legend"), { + colorMappingCollection: [ + { value: 0, color: "#8ec8f8", label: { text: "0" } }, + { value: 100, color: "#0d47a1", label: { text: "100" } } + ], + height: "50px", + width: "75%", + isResponsive: true + }); +}); + + + + +declare var window:myWindow; +export interface myWindow extends Window{ +kanbanData:any; +} +module KanbanComponent { + $(function () { + var sample = new ej.Kanban($("#Kanban"), { + dataSource: new ej.DataManager(window["kanbanData"]).executeLocal(new ej.Query().take(20)), + columns: [ + { headerText: "Backlog", key: "Open" }, + { headerText: "In Progress", key: "InProgress" }, + { headerText: "Testing", key: "Testing" }, + { headerText: "Done", key: "Close" } + ], + keyField: "Status", + allowTitle: true, + fields: { + content: "Summary", + primaryKey: "Id", + imageUrl: "ImgUrl" + }, + allowSelection: false + }); + }); +} + + + + +module lineargaugecomponent { + $(function () { + var linearsample = new ej.datavisualization.LinearGauge($("#LinearGauge"), { + labelColor: "#8c8c8c", width: 500, + isResponsive: true, enableAnimation: false, + scales: [{ + width: 4, border: { color: "transparent", width: 0 }, showBarPointers: false, showRanges: true, length: 310, + position: { x: 52, y: 50 }, markerPointers: [{ + value: 50, length: 10, width: 10, backgroundColor: "#4D4D4D", border: { color: "#4D4D4D" } + }], + labels: [{ font: { size: "11px", fontFamily: "Segoe UI", fontStyle: "bold" }, distanceFromScale: { x: -13 } }], + ticks: [{ type: "majorinterval", width: 1, color: "#8c8c8c" }], + ranges: [{ + endValue: 60, + startValue: 0, + backgroundColor: "#F6B53F", + border: { color: "#F6B53F" }, startWidth: 4, endWidth: 4 + }, { + endValue: 100, + startValue: 60, + backgroundColor: "#E94649", + border: { color: "#E94649" }, startWidth: 4, endWidth: 4 + }] + }] + }); + }); +} + + + + + +module ListBoxComponent { + $(function () { + var listboxInstance = new ej.ListBox($("#selectcar"), { + showCheckbox: true + }); + }); +} + + + +module ListviewComponent { + $(function () { + var listviewInstance = new ej.ListView($("#defaultlistview"), { + enableCheckMark: true, + width: 400 + }); + }); +} + + +var world_map= + { + "type": "FeatureCollection", + "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, + "features": [ + { "type": "Feature", "properties": { "admin": "Afghanistan", "name": "Afghanistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[61.21081709172573, 35.650072333309218], [62.230651483005879, 35.270663967422287], [62.984662306576588, 35.404040839167614], [63.193538445900337, 35.857165635718907], [63.982895949158696, 36.007957465146596], [64.546479119733888, 36.31207326918426], [64.746105177677393, 37.111817735333297], [65.588947788357828, 37.305216783185628], [65.745630731066811, 37.661164048812061], [66.217384881459324, 37.393790188133913], [66.518606805288655, 37.362784328758785], [67.075782098259609, 37.35614390720928], [67.829999627559502, 37.144994004864678], [68.135562371701369, 37.023115139304302], [68.859445835245921, 37.344335842430588], [69.196272820924364, 37.15114350030742], [69.518785434857946, 37.608996690413413], [70.116578403610319, 37.588222764632086], [70.270574171840124, 37.73516469985401], [70.376304152309274, 38.138395901027515], [70.806820509732873, 38.486281643216408], [71.348131137990251, 38.258905341132156], [71.239403924448155, 37.953265082341879], [71.541917759084768, 37.905774441065631], [71.448693475230229, 37.065644843080513], [71.84463829945058, 36.738171291646914], [72.193040805962383, 36.94828766534566], [72.636889682917271, 37.047558091778349], [73.260055779924983, 37.495256862938994], [73.948695916646486, 37.421566270490786], [74.980002475895404, 37.419990139305888], [75.158027785140902, 37.13303091078911], [74.575892775372964, 37.02084137628345], [74.067551710917812, 36.836175645488446], [72.920024855444453, 36.720007025696312], [71.846291945283909, 36.509942328429851], [71.262348260385735, 36.074387518857797], [71.498767938121077, 35.650563259415996], [71.613076206350698, 35.153203436822857], [71.115018751921625, 34.733125718722228], [71.156773309213449, 34.348911444632144], [70.881803012988385, 33.988855902638512], [69.93054324735958, 34.020120144175102], [70.323594191371583, 33.358532619758385], [69.687147251264847, 33.105498969041228], [69.262522007122541, 32.501944078088293], [69.317764113242546, 31.901412258424436], [68.926676873657655, 31.620189113892064], [68.556932000609308, 31.713310044882011], [67.792689243444769, 31.582930406209623], [67.683393589147457, 31.303154201781414], [66.938891229118454, 31.304911200479346], [66.38145755398601, 30.738899237586448], [66.346472609324408, 29.88794342703617], [65.046862013616092, 29.472180691031902], [64.350418735618504, 29.560030625928089], [64.148002150331237, 29.340819200145965], [63.550260858011164, 29.468330796826162], [62.549856805272775, 29.318572496044304], [60.874248488208778, 29.829238999952604], [61.78122155136343, 30.735850328081231], [61.699314406180811, 31.379506130492661], [60.941944614511115, 31.548074652628745], [60.863654819588952, 32.182919623334421], [60.536077915290761, 32.981268825811561], [60.963700392505991, 33.528832302376252], [60.528429803311575, 33.676446031217999], [60.80319339380744, 34.404101874319856], [61.21081709172573, 35.650072333309218]]] } }, + { "type": "Feature", "properties": { "admin": "Angola", "name": "Angola", "continent": "Africa" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[16.326528354567042, -5.877470391466217], [16.573179965896141, -6.622644545115092], [16.860190870845226, -7.222297865429978], [17.089995965247166, -7.545688978712474], [17.472970004962288, -8.068551120641656], [18.134221632569048, -7.987677504104865], [18.464175652752683, -7.847014255406475], [19.016751743249664, -7.988245944860138], [19.166613396896079, -7.738183688999724], [19.417502475673214, -7.155428562044277], [20.037723016040214, -7.116361179231658], [20.091621534920616, -6.943090101756949], [20.60182295093832, -6.939317722199688], [20.514748162526526, -7.299605808138663], [21.728110792739752, -7.290872491081315], [21.74645592620336, -7.920084730667113], [21.949130893652033, -8.305900974158304], [21.80180138518795, -8.908706556842985], [21.875181919042397, -9.523707777548564], [22.208753289486417, -9.894796237836529], [22.155268182064326, -11.084801120653777], [22.402798292742428, -10.99307545333569], [22.837345411884762, -11.017621758674334], [23.456790805767461, -10.867863457892481], [23.912215203555743, -10.926826267137541], [24.017893507592614, -11.237298272347115], [23.904153680118235, -11.722281589406332], [24.079905226342895, -12.191296888887305], [23.930922072045373, -12.565847670138821], [24.0161365088947, -12.91104623784855], [21.933886346125941, -12.898437188369353], [21.887842644953871, -16.080310153876891], [22.562478468524283, -16.898451429921831], [23.215048455506086, -17.523116143465952], [21.377176141045592, -17.930636488519706], [18.956186964603628, -17.789094740472233], [18.263309360434217, -17.309950860262003], [14.209706658595049, -17.353100681225708], [14.058501417709035, -17.423380629142653], [13.462362094789963, -16.971211846588741], [12.814081251688405, -16.941342868724075], [12.21546146001938, -17.111668389558059], [11.734198846085146, -17.301889336824498], [11.640096062881609, -16.673142185129205], [11.778537224991563, -15.793816013250687], [12.123580763404444, -14.878316338767927], [12.175618930722264, -14.449143568583889], [12.500095249083014, -13.547699883684398], [12.738478631245439, -13.137905775609934], [13.312913852601834, -12.483630466362511], [13.633721144269824, -12.038644707897189], [13.738727654686924, -11.297863050993142], [13.686379428775293, -10.73107594161584], [13.38732791510216, -10.373578383020726], [13.120987583069873, -9.766897067914112], [12.875369500386567, -9.166933689005488], [12.929061313537797, -8.959091078327573], [13.23643273280987, -8.56262948978434], [12.933040398824314, -7.596538588087752], [12.728298374083916, -6.927122084178803], [12.227347039446441, -6.294447523629372], [12.322431674863562, -6.100092461779651], [12.735171339578695, -5.965682061388476], [13.024869419006988, -5.984388929878106], [13.375597364971892, -5.864241224799555], [16.326528354567042, -5.877470391466217]]], [[[12.436688266660919, -5.684303887559223], [12.182336866920277, -5.789930515163801], [11.914963006242115, -5.037986748884733], [12.318607618873923, -4.606230157086158], [12.620759718484548, -4.438023369976121], [12.995517205465202, -4.781103203961918], [12.631611769265842, -4.991271254092935], [12.468004184629759, -5.248361504744991], [12.436688266660919, -5.684303887559223]]]] } }, + { "type": "Feature", "properties": { "admin": "Albania", "name": "Albania", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.590247430104906, 41.855404161133592], [20.463175083099195, 41.515089016275333], [20.605181919037356, 41.086226304685219], [21.020040317476397, 40.842726955725873], [20.99998986174722, 40.580003973953964], [20.67499677906363, 40.43499990494302], [20.61500044117275, 40.110006822259365], [20.150015903410516, 39.624997666983965], [19.980000441170144, 39.694993394523401], [19.9600016618732, 39.915005805006039], [19.40608198413673, 40.250773423822459], [19.319058872157139, 40.727230129553554], [19.403549838954287, 41.409565741535445], [19.540027296637099, 41.71998607031275], [19.371768833094958, 41.87754751237064], [19.304486118250786, 42.195745144207812], [19.738051385179627, 42.688247382165564], [19.801613396898681, 42.500093492190835], [20.0707, 42.58863], [20.28375451018189, 42.320259507815074], [20.52295, 42.21787], [20.590247430104906, 41.855404161133592]]] } }, + { "type": "Feature", "properties": { "admin": "United Arab Emirates", "name": "United Arab Emirates", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[51.579518670463258, 24.245497137951102], [51.757440626844172, 24.294072984305462], [51.794389275932865, 24.019826158132499], [52.577080519425593, 24.177439276622703], [53.404006788960139, 24.151316840099167], [54.008000929587574, 24.121757920828212], [54.693023716048614, 24.797892360935084], [55.439024692614126, 25.439145209244934], [56.070820753814544, 26.055464178973978], [56.261041701080948, 25.714606431576762], [56.396847365143991, 24.924732163995483], [55.886232537667993, 24.92083059335744], [55.804118686756212, 24.269604193615258], [55.981213820220454, 24.130542914317822], [55.528631626208231, 23.933604030853498], [55.525841098864461, 23.524869289640929], [55.234489373602869, 23.110992743415316], [55.208341098863187, 22.708329982997039], [55.006803012924898, 22.496947536707129], [52.000733270074321, 23.001154486578937], [51.617707553926969, 24.014219265228824], [51.579518670463258, 24.245497137951102]]] } }, + { "type": "Feature", "properties": { "admin": "Argentina", "name": "Argentina", "continent": "South America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-65.5, -55.2], [-66.45, -55.25], [-66.95992, -54.89681], [-67.56244, -54.87001], [-68.63335, -54.8695], [-68.634010227583147, -52.636370458874453], [-68.25, -53.1], [-67.75, -53.85], [-66.45, -54.45], [-65.05, -54.7], [-65.5, -55.2]]], [[[-64.964892137294569, -22.075861504812348], [-64.377021043542257, -22.79809132252354], [-63.986838141522462, -21.993644301035953], [-62.84646847192154, -22.034985446869452], [-62.685057135657885, -22.249029229422401], [-60.846564704009928, -23.880712579038299], [-60.028966030503973, -24.032796319273238], [-58.807128465394939, -24.771459242453268], [-57.777217169817952, -25.162339776309032], [-57.633660040911124, -25.603656508081666], [-58.618173590719707, -27.123718763947117], [-57.609759690976134, -27.395898532828419], [-56.486701626192989, -27.548499037386243], [-55.695845506398186, -27.387837009390815], [-54.788794928595038, -26.621785577096087], [-54.625290696823541, -25.739255466415479], [-54.130049607954412, -25.547639255477243], [-53.628348965048716, -26.12486500417743], [-53.648735317587885, -26.923472588816104], [-54.490725267135517, -27.474756768505767], [-55.162286342984586, -27.881915378533414], [-56.290899624239088, -28.852760512000849], [-57.62513342958291, -30.21629485445424], [-57.874937303281897, -31.016556084926158], [-58.14244035504074, -32.044503676076182], [-58.132647671121404, -33.040566908502008], [-58.349611172098818, -33.263188978815428], [-58.427074144104367, -33.909454441057541], [-58.495442064026541, -34.4314897600701], [-57.225829637263629, -35.288026625307886], [-57.362358771378737, -35.977390232081497], [-56.737487352105447, -36.413125909166574], [-56.788285285048339, -36.901571547189327], [-57.749156867083421, -38.183870538079901], [-59.231857062401865, -38.720220228837199], [-61.2374452378656, -38.92842457454114], [-62.335956997310134, -38.827707208004362], [-62.125763108962914, -39.424104913084868], [-62.33053097191943, -40.172586358400316], [-62.145994432205228, -40.676896661136723], [-62.74580278181697, -41.028761488612083], [-63.770494757732514, -41.166789239263657], [-64.732089809819698, -40.802677097335128], [-65.118035244391578, -41.064314874028874], [-64.97856055363583, -42.058000990569312], [-64.303407965742466, -42.359016208669495], [-63.755947842042339, -42.043686618824495], [-63.458059048095883, -42.563138116222355], [-64.378803880456289, -42.873558444999638], [-65.181803961839691, -43.495380954767782], [-65.328823411710133, -44.501366062193689], [-65.565268927661592, -45.03678557716978], [-66.509965786389344, -45.039627780945843], [-67.293793911392427, -45.551896254255183], [-67.580546434180079, -46.301772963242527], [-66.597066413017259, -47.033924655953804], [-65.641026577401433, -47.23613453551188], [-65.98508826360073, -48.133289076531128], [-67.166178961847649, -48.697337334996931], [-67.816087612566449, -49.869668877970412], [-68.728745083273154, -50.26421843851886], [-69.138539191347789, -50.732510267947788], [-68.815561489523517, -51.771104011594097], [-68.149994879820397, -52.349983406127699], [-68.571545376241332, -52.299443855346247], [-69.498362189396076, -52.142760912637236], [-71.914803839796321, -52.009022305865912], [-72.329403856074023, -51.425956312872394], [-72.309973517532342, -50.677009779666342], [-72.975746832964617, -50.741450290734299], [-73.328050910114456, -50.378785088909865], [-73.415435757120022, -49.318436374712952], [-72.648247443314929, -48.878618259476774], [-72.331160854771937, -48.244238376661819], [-72.44735531278026, -47.738532810253517], [-71.917258470330196, -46.884838148791786], [-71.552009446891233, -45.560732924177117], [-71.659315558545316, -44.973688653341434], [-71.222778896759721, -44.784242852559409], [-71.329800788036195, -44.407521661151677], [-71.793622606071935, -44.207172133156099], [-71.464056159130493, -43.787611179378324], [-71.915423956983901, -43.408564548517404], [-72.148898078078517, -42.254888197601375], [-71.746803758415453, -42.051386407235988], [-71.915734015577542, -40.832339369470716], [-71.680761277946445, -39.808164157878061], [-71.413516608349042, -38.916022230791107], [-70.814664272734703, -38.552995293940732], [-71.118625047475419, -37.576827487947192], [-71.121880662709771, -36.65812387466233], [-70.364769253201658, -36.005088799789931], [-70.388049485949082, -35.169687595359441], [-69.817309129501453, -34.193571465798279], [-69.814776984319209, -33.273886000299839], [-70.074399380153622, -33.09120981214803], [-70.535068935819439, -31.365010267870279], [-69.919008348251921, -30.336339206668306], [-70.013550381129861, -29.367922865518544], [-69.656130337183143, -28.459141127233686], [-69.001234910748266, -27.521213881136127], [-68.295541551370391, -26.899339694935787], [-68.594799770772667, -26.50690886811126], [-68.386001146097342, -26.185016371365229], [-68.417652960876111, -24.518554782816874], [-67.328442959244128, -24.025303236590908], [-66.985233934177629, -22.986348565362825], [-67.106673550063604, -22.735924574476392], [-66.273339402924833, -21.832310479420677], [-64.964892137294569, -22.075861504812348]]]] } }, + { "type": "Feature", "properties": { "admin": "Armenia", "name": "Armenia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[43.582745802592726, 41.09214325618256], [44.972480096218071, 41.248128567055588], [45.179495883979335, 40.985353908851401], [45.560351189970433, 40.812289537105919], [45.359174839058156, 40.561503811193447], [45.891907179555076, 40.218475653639992], [45.610012241402913, 39.899993801425175], [46.034534132680662, 39.628020738273058], [46.483498976432443, 39.464154771475528], [46.505719842317966, 38.770605373686287], [46.143623081248812, 38.74120148371221], [45.735379266143006, 39.319719143219736], [45.739978468616975, 39.473999131827114], [45.298144972521456, 39.471751207022422], [45.00198733905674, 39.740003567049548], [44.793989699081934, 39.713002631177041], [44.400008579288695, 40.005000311842267], [43.656436395040934, 40.253563951166178], [43.752657911968399, 40.740200914058754], [43.582745802592726, 41.09214325618256]]] } }, + { "type": "Feature", "properties": { "admin": "French Southern and Antarctic Lands", "name": "Fr. S. Antarctic Lands", "continent": "Seven seas (open ocean)" }, "geometry": { "type": "Polygon", "coordinates": [[[68.935, -48.625], [69.58, -48.94], [70.525, -49.065], [70.56, -49.255], [70.28, -49.71], [68.745, -49.775], [68.72, -49.2425], [68.8675, -48.83], [68.935, -48.625]]] } }, + { "type": "Feature", "properties": { "admin": "Australia", "name": "Australia", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[145.397978143494782, -40.792548516605883], [146.364120721623692, -41.137695407883335], [146.908583612250823, -41.000546156580668], [147.689259474884125, -40.808258152022681], [148.289067824495987, -40.875437514002122], [148.359864536735785, -42.062445163746439], [148.017301467073082, -42.40702361426861], [147.914051955353784, -43.211522312188485], [147.564564243763982, -42.937688897473855], [146.87034305235494, -43.634597263362082], [146.663327264593647, -43.580853773778543], [146.048377720320389, -43.54974456153888], [145.431929559510536, -42.693776137056268], [145.295090366801674, -42.03360971452755], [144.7180713238306, -41.162551771815707], [144.743754510679622, -40.703975111657705], [145.397978143494782, -40.792548516605883]]], [[[143.561811151299935, -13.763655694232209], [143.922099237238882, -14.548310642152], [144.563713820574804, -14.171176039285879], [144.894908075133515, -14.594457696188622], [145.374723748963419, -14.984976495018284], [145.271991001567244, -15.428205254785691], [145.48525963763575, -16.285672295804769], [145.637033319276952, -16.784918308176611], [145.888904250267672, -16.906926364817647], [146.160308872664473, -17.76165455492524], [146.063673944278662, -18.280072523677315], [146.387478469019584, -18.958274021075905], [147.471081577747896, -19.480722751546676], [148.177601760042478, -19.955939222902767], [148.848413527623222, -20.391209812097252], [148.717465448195583, -20.633468926681513], [149.289420200802056, -21.260510756111096], [149.678337030230637, -22.342511895438388], [150.07738244038859, -22.122783705333315], [150.482939081015161, -22.556142266533012], [150.727265252891158, -22.402404880464655], [150.899554478152254, -23.462236830338679], [151.609175246384211, -24.076256198830755], [152.07353966695905, -24.45788665130619], [152.855197381805908, -25.267501316023008], [153.136162144176751, -26.071173191026187], [153.161948683890358, -26.641319268502439], [153.09290897034856, -27.260299574494503], [153.569469028944184, -28.110066827102099], [153.512108189100218, -28.995077406532751], [153.339095493787056, -29.458201592732443], [153.069241164358857, -30.350240166954809], [153.089601678681788, -30.923641859665445], [152.891577590139377, -31.640445651985949], [152.450002476205327, -32.550002536755237], [151.709117466436766, -33.041342054986337], [151.343971795862387, -33.816023451473846], [151.010555454715103, -34.310360202777879], [150.714139439089024, -35.173459974916803], [150.328219842733233, -35.671879164371923], [150.075212030232251, -36.420205580390508], [149.946124302367139, -37.109052422841224], [149.997283970336127, -37.425260512035123], [149.423882277625523, -37.772681166333463], [148.304622430615893, -37.809061374666875], [147.38173302631526, -38.219217217767543], [146.922122837511324, -38.606532077795116], [146.317921991154776, -39.035756524411433], [145.489652134380549, -38.593767999019043], [144.876976353128157, -38.41744801203911], [145.032212355732952, -37.896187839510972], [144.485682407814011, -38.085323581699257], [143.609973586196077, -38.809465427405321], [142.745426873952965, -38.538267510737519], [142.17832970598198, -38.380034275059835], [141.606581659104677, -38.308514092767872], [140.638578729413211, -38.019332777662541], [139.992158237874321, -37.402936293285094], [139.806588169514043, -36.643602797188272], [139.574147577065219, -36.138362318670666], [139.082808058834075, -35.732754001611774], [138.120747918856296, -35.612296237939397], [138.449461704664998, -35.127261244447887], [138.207564325106659, -34.384722588845925], [137.719170363516128, -35.07682504653102], [136.829405552314711, -35.260534763328614], [137.352371047108477, -34.707338555644093], [137.503886346588331, -34.130267836240769], [137.890116001537649, -33.640478610978327], [137.810327590079112, -32.900007012668105], [136.996837192940347, -33.752771498348629], [136.372069126531642, -34.094766127256186], [135.98904341038434, -34.89011809666048], [135.208212518454104, -34.478670342752601], [135.239218377829161, -33.947953383114971], [134.613416782774607, -33.222778008763136], [134.085903761939107, -32.848072198214759], [134.273902622617015, -32.617233575166949], [132.990776808809812, -32.011224053680188], [132.288080682504869, -31.982646986622761], [131.326330601120901, -31.495803318001041], [129.535793898639668, -31.590422865527476], [128.240937534702198, -31.948488864877849], [127.102867466338282, -32.282266941051041], [126.148713820501129, -32.2159660784206], [125.088623488465586, -32.728751316052829], [124.22164798390493, -32.959486586236061], [124.028946567888511, -33.483847344701708], [123.65966678273071, -33.890179131812722], [122.811036411633609, -33.914467054989835], [122.18306440642283, -34.003402194964217], [121.299190708502579, -33.821036065406126], [120.580268182458113, -33.930176690406618], [119.893695103028222, -33.976065362281808], [119.298899367348781, -34.50936614353396], [119.007340936357977, -34.464149265278529], [118.505717808100769, -34.746819349915093], [118.024971958489516, -35.064732761374707], [117.295507440257438, -35.025458672832862], [116.62510908413492, -35.025096937806829], [115.564346958479689, -34.386427911111547], [115.026808709779516, -34.196517022438918], [115.048616164206763, -33.623425388322026], [115.545123325667078, -33.487257989232951], [115.714673700016661, -33.259571628554944], [115.679378696761376, -32.900368747694124], [115.801645135563959, -32.205062351207026], [115.689610630355105, -31.612437025683782], [115.160909051576937, -30.601594333622455], [114.99704308477942, -30.030724786094162], [115.040037876446249, -29.461095472940794], [114.64197431850198, -28.810230808224706], [114.61649783738217, -28.516398614213042], [114.173579136208446, -28.118076674107321], [114.048883905088132, -27.33476531342712], [113.477497593236876, -26.543134047147898], [113.338953078262477, -26.116545098578477], [113.77835778204026, -26.549025160429174], [113.440962355606587, -25.621278171493152], [113.936901076311642, -25.911234633082877], [114.232852004047288, -26.298446140245868], [114.216160516417006, -25.786281019801105], [113.721255324357685, -24.998938897402123], [113.625343866024025, -24.683971042583146], [113.393523390762667, -24.384764499613262], [113.502043898575607, -23.80635019297025], [113.706992629045146, -23.56021534596406], [113.843418410295669, -23.059987481378734], [113.736551548316072, -22.475475355725372], [114.149756300921865, -21.755881036061009], [114.225307244932651, -22.51748829517863], [114.64776207891866, -21.829519952076904], [115.460167270979298, -21.495173435148541], [115.94737267462699, -21.068687839443708], [116.711615431791529, -20.701681817306817], [117.166316359527684, -20.623598728113802], [117.441545037914238, -20.746898695562162], [118.229558953932951, -20.374208265873232], [118.836085239742701, -20.263310642174822], [118.987807244951753, -20.044202569257319], [119.252493931150624, -19.952941989829835], [119.805225050944543, -19.976506442954978], [120.856220330896633, -19.683707777589188], [121.399856398607199, -19.239755547769729], [121.655137974129062, -18.70531788500713], [122.241665480641757, -18.197648614171765], [122.286623976735655, -17.798603204013911], [122.312772251475408, -17.254967136303446], [123.012574497571904, -16.405199883695854], [123.433789097183009, -17.268558037996225], [123.859344517106592, -17.069035332917249], [123.503242222183232, -16.596506036040363], [123.817073195491915, -16.11131601325199], [124.258286574399847, -16.32794361741956], [124.379726190285794, -15.567059828353973], [124.926152785340022, -15.07510019293532], [125.167275018413875, -14.680395603090004], [125.670086704613823, -14.510070082256018], [125.685796340030493, -14.230655612853834], [126.125149367376096, -14.347340996968949], [126.142822707219864, -14.095986830301211], [126.582589146023736, -13.95279143642041], [127.065867140817332, -13.817967624570922], [127.804633416861932, -14.276906019755042], [128.359689976108939, -14.869169610252253], [128.985543247595899, -14.875990899314738], [129.621473423379598, -14.969783623924553], [129.409600050982988, -14.420669854391031], [129.888640578328591, -13.618703301653481], [130.339465773642928, -13.357375583553473], [130.183506300985982, -13.107520033422301], [130.617795037966971, -12.536392103732464], [131.223494500859999, -12.183648776908113], [131.73509118054946, -12.302452894747159], [132.575298293183096, -12.114040622611013], [132.557211541881031, -11.603012383676683], [131.824698114143644, -11.273781833545097], [132.357223748911395, -11.128519382372641], [133.019560581596409, -11.376411228076844], [133.550845981989028, -11.786515394745134], [134.393068475481982, -12.042365411022173], [134.678632440327021, -11.9411829565947], [135.298491245667975, -12.248606052299051], [135.882693312727611, -11.962266940969796], [136.258380975489445, -12.049341729381606], [136.492475213771627, -11.857208754120389], [136.951620314684988, -12.351958916882735], [136.685124953355739, -12.887223402562054], [136.305406528875096, -13.291229750219895], [135.961758254134111, -13.324509372615889], [136.077616815332533, -13.72427825282578], [135.783836297753226, -14.223989353088211], [135.4286641786112, -14.715432224183896], [135.500184360903177, -14.997740573794427], [136.295174595281367, -15.550264987859121], [137.065360142159477, -15.870762220933353], [137.580470819244795, -16.215082289294084], [138.303217401278971, -16.807604261952658], [138.58516401586337, -16.806622409739173], [139.108542922115475, -17.062679131745366], [139.260574985918197, -17.371600843986183], [140.215245396078274, -17.710804945550063], [140.875463495039241, -17.36906869880394], [141.071110467696258, -16.832047214426719], [141.274095493738798, -16.388870131091604], [141.398222284103781, -15.840531508042584], [141.702183058844611, -15.044921156476928], [141.563380161708665, -14.561333103089506], [141.635520461188094, -14.270394789286284], [141.519868605718955, -13.698078301653805], [141.650920038011009, -12.944687595270562], [141.842691278246207, -12.741547539931187], [141.68699018775078, -12.407614434461134], [141.928629185147543, -11.877465915578778], [142.118488397387978, -11.328042087451619], [142.14370649634634, -11.04273650476814], [142.51526004452495, -10.668185723516642], [142.797310011974048, -11.157354831591515], [142.866763136974271, -11.784706719614929], [143.11594689348567, -11.90562957117791], [143.158631626558758, -12.325655612846187], [143.522123651299864, -12.834358412327429], [143.597157830987669, -13.400422051652594], [143.561811151299935, -13.763655694232209]]]] } }, + { "type": "Feature", "properties": { "admin": "Austria", "name": "Austria", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[16.979666782304033, 48.123497015976298], [16.903754103267257, 47.714865627628321], [16.340584344150411, 47.712901923201215], [16.534267612380372, 47.496170966169103], [16.202298211337361, 46.852385972676949], [16.011663852612653, 46.683610744811688], [15.137091912504982, 46.658702704447016], [14.632471551174827, 46.431817328469535], [13.806475457421524, 46.509306138691201], [12.376485223040813, 46.767559109069843], [12.153088006243051, 47.115393174826437], [11.164827915093268, 46.941579494812721], [11.048555942436533, 46.751358547546324], [10.442701450246627, 46.893546250997424], [9.932448357796657, 46.920728054382948], [9.479969516649019, 47.102809963563367], [9.632931756232974, 47.347601223329974], [9.594226108446346, 47.525058091820256], [9.896068149463188, 47.58019684507569], [10.402083774465209, 47.302487697939156], [10.544504021861625, 47.566399237653762], [11.426414015354736, 47.523766181012967], [12.141357456112784, 47.703083401065761], [12.620759718484491, 47.672387600284395], [12.932626987365945, 47.467645575543983], [13.025851271220487, 47.637583523135824], [12.884102817443901, 48.289145819687903], [13.243357374736998, 48.41611481382904], [13.595945672264433, 48.877171942737135], [14.33889773932472, 48.555305284207193], [14.901447381254055, 48.964401760445817], [15.253415561593979, 49.039074205107575], [16.029647251050218, 48.733899034207916], [16.49928266771877, 48.785808010445095], [16.960288120194573, 48.596982326850593], [16.879982944412998, 48.470013332709463], [16.979666782304033, 48.123497015976298]]] } }, + { "type": "Feature", "properties": { "admin": "Azerbaijan", "name": "Azerbaijan", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[45.001987339056789, 39.740003567049591], [45.298144972521435, 39.471751207022422], [45.739978468616997, 39.473999131827149], [45.735379266143092, 39.319719143219785], [46.143623081248812, 38.74120148371221], [45.457721795438729, 38.874139105783108], [44.952688022650264, 39.33576467544642], [44.79398969908199, 39.713002631177027], [45.001987339056789, 39.740003567049591]]], [[[47.373315464066216, 41.219732367511249], [47.81566572448471, 41.151416124021338], [47.987283156126033, 41.405819200194223], [48.584352654826283, 41.808869533854669], [49.110263706260653, 41.282286688800518], [49.618914829309588, 40.572924302729966], [50.084829542853093, 40.526157131505776], [50.392821079312704, 40.256561184239096], [49.569202101444795, 40.176100979160701], [49.395259230350419, 39.39948171646224], [49.2232283872507, 39.04921885838791], [48.856532423707584, 38.815486355131775], [48.883249139202533, 38.320245266262638], [48.634375441284831, 38.270377509100925], [48.010744256386502, 38.794014797514528], [48.355529412637928, 39.288764960276886], [48.060095249225256, 39.582235419262439], [47.685079380083117, 39.508363959301185], [46.505719842317966, 38.770605373686251], [46.483498976432443, 39.464154771475528], [46.034534132680697, 39.628020738273044], [45.610012241402913, 39.899993801425175], [45.891907179555133, 40.21847565363997], [45.359174839058156, 40.561503811193482], [45.560351189970469, 40.812289537105947], [45.179495883979392, 40.98535390885143], [44.972480096218156, 41.248128567055623], [45.217426385281634, 41.411451931314041], [45.962600538930438, 41.123872585609789], [46.501637404166978, 41.064444688474104], [46.637908156120567, 41.181672675128219], [46.145431756378983, 41.72280243587263], [46.404950799348818, 41.860675157227341], [46.686070591016652, 41.827137152669899], [47.373315464066216, 41.219732367511249]]]] } }, + { "type": "Feature", "properties": { "admin": "Burundi", "name": "Burundi", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[29.339997592900342, -4.499983412294092], [29.276383904749046, -3.293907159034063], [29.02492638521678, -2.839257907730157], [29.632176141078585, -2.917857761246096], [29.938359002407935, -2.348486830254238], [30.469696079232978, -2.413857517103458], [30.527677036264457, -2.807631931167534], [30.743012729624692, -3.034284763199686], [30.752262811004943, -3.359329522315569], [30.505559523243559, -3.568567396665364], [30.116332635221166, -4.090137627787242], [29.753512404099919, -4.45238941815328], [29.339997592900342, -4.499983412294092]]] } }, + { "type": "Feature", "properties": { "admin": "Belgium", "name": "Belgium", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[3.314971144228536, 51.345780951536071], [4.047071160507527, 51.267258612668556], [4.973991326526913, 51.475023708698124], [5.60697594567, 51.037298488969768], [6.156658155958779, 50.803721015010574], [6.043073357781109, 50.128051662794221], [5.782417433300905, 50.090327867221205], [5.674051954784828, 49.52948354755749], [4.799221632515809, 49.985373033236371], [4.286022983425084, 49.90749664977254], [3.588184441755685, 50.378992418003563], [3.123251580425801, 50.780363267614561], [2.658422071960274, 50.796848049515731], [2.513573032246142, 51.148506171261815], [3.314971144228536, 51.345780951536071]]] } }, + { "type": "Feature", "properties": { "admin": "Benin", "name": "Benin", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[2.691701694356254, 6.258817246928628], [1.865240512712318, 6.14215770102973], [1.618950636409238, 6.832038072126236], [1.664477573258381, 9.128590399609378], [1.46304284018467, 9.334624335157086], [1.425060662450136, 9.825395412632998], [1.077795037448737, 10.175606594275022], [0.772335646171484, 10.470808213742357], [0.899563022474069, 10.997339382364258], [1.243469679376488, 11.11051076908346], [1.447178175471066, 11.547719224488857], [1.93598554851988, 11.641150214072551], [2.154473504249921, 11.940150051313337], [2.49016360841793, 12.233052069543671], [2.84864301922667, 12.235635891158266], [3.611180454125558, 11.660167141155966], [3.572216424177469, 11.327939357951516], [3.797112257511713, 10.734745591673104], [3.600070021182801, 10.332186184119406], [3.705438266625918, 10.063210354040207], [3.220351596702101, 9.4441525333997], [2.912308383810255, 9.13760793704432], [2.723792758809509, 8.506845404489708], [2.74906253420022, 7.870734361192886], [2.691701694356254, 6.258817246928628]]] } }, + { "type": "Feature", "properties": { "admin": "Burkina Faso", "name": "Burkina Faso", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.827496303712706, 9.642460842319775], [-3.511898972986272, 9.900326239456216], [-3.980449184576684, 9.862344061721698], [-4.330246954760383, 9.610834865757139], [-4.779883592131966, 9.821984768101741], [-4.954653286143098, 10.152713934769732], [-5.404341599946973, 10.370736802609144], [-5.470564947929004, 10.951269842976044], [-5.197842576508648, 11.375145778850136], [-5.220941941743119, 11.713858954307224], [-4.427166103523802, 12.542645575404292], [-4.280405035814879, 13.228443508349738], [-4.006390753587225, 13.472485459848112], [-3.52280270019986, 13.337661647998612], [-3.103706834312759, 13.54126679122859], [-2.967694464520576, 13.798150336151506], [-2.191824510090384, 14.246417548067352], [-2.001035122068771, 14.559008287000887], [-1.066363491205663, 14.973815009007764], [-0.515854458000348, 15.116157741755725], [-0.26625729003058, 14.924308986872147], [0.374892205414682, 14.928908189346128], [0.295646396495101, 14.444234930880651], [0.429927605805517, 13.988733018443922], [0.993045688490071, 13.335749620003821], [1.024103224297477, 12.851825669806573], [2.177107781593775, 12.625017808477532], [2.154473504249921, 11.940150051313337], [1.93598554851988, 11.641150214072551], [1.447178175471066, 11.547719224488857], [1.243469679376488, 11.11051076908346], [0.899563022474069, 10.997339382364258], [0.023802524423701, 11.018681748900802], [-0.438701544588582, 11.09834096927872], [-0.761575893548183, 10.936929633015053], [-1.203357713211431, 11.009819240762736], [-2.94040930827046, 10.962690334512557], [-2.963896246747111, 10.395334784380081], [-2.827496303712706, 9.642460842319775]]] } }, + { "type": "Feature", "properties": { "admin": "Bangladesh", "name": "Bangladesh", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[92.672720981825549, 22.041238918541247], [92.652257114637976, 21.324047552978481], [92.30323449093865, 21.475485337809815], [92.368553501355606, 20.670883287025344], [92.082886183646124, 21.192195135985767], [92.025215285208361, 21.701569729086764], [91.834890985077408, 22.182935695885561], [91.417087029997646, 22.765019029221218], [90.496006300827247, 22.805016587815125], [90.586956821660948, 22.392793687422863], [90.272970819055544, 21.836367702720107], [89.847467075564268, 22.039146023033421], [89.70204959509492, 21.857115790285299], [89.41886274613546, 21.966178900637296], [89.031961297566198, 22.055708319582973], [88.876311883503064, 22.879146429937826], [88.529769728553759, 23.631141872649163], [88.699940220090895, 24.233714911388557], [88.084422235062405, 24.501657212821918], [88.30637251175601, 24.866079413344199], [88.931553989623069, 25.238692328384769], [88.209789259802477, 25.768065700782707], [88.56304935094974, 26.446525580342716], [89.355094028687276, 26.014407253518065], [89.832480910199592, 25.965082098895476], [89.920692580121838, 25.269749864192171], [90.872210727912105, 25.13260061288954], [91.799595981822065, 25.14743174895731], [92.376201613334786, 24.976692816664961], [91.915092807994398, 24.130413723237108], [91.467729933643668, 24.072639471934789], [91.158963250699713, 23.503526923104381], [91.706475050832083, 22.985263983649183], [91.869927606171302, 23.62434642180278], [92.146034783906799, 23.62749868417259], [92.672720981825549, 22.041238918541247]]] } }, + { "type": "Feature", "properties": { "admin": "Bulgaria", "name": "Bulgaria", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.657149692482985, 44.234923000661276], [22.94483239105184, 43.823785305347123], [23.332302280376322, 43.897010809904707], [24.100679152124169, 43.741051337247846], [25.569271681426923, 43.688444729174712], [26.065158725699739, 43.943493760751259], [27.242399529740904, 44.175986029632398], [27.970107049275068, 43.812468166675202], [28.55808149589199, 43.707461656258118], [28.039095086384712, 43.293171698574177], [27.673897739378042, 42.577892361006214], [27.996720411905383, 42.007358710287775], [27.135739373490473, 42.141484890301335], [26.117041863720793, 41.826904608724554], [26.106138136507205, 41.328898830727766], [25.197201368925441, 41.234485988930523], [24.492644891058031, 41.583896185872028], [23.692073601992345, 41.309080918943842], [22.952377150166445, 41.337993882811141], [22.881373732197424, 41.999297186850242], [22.380525750424585, 42.320259507815081], [22.545011834409614, 42.461362006188025], [22.436594679461273, 42.580321153323929], [22.604801466571324, 42.898518785161137], [22.986018507588479, 43.211161200526959], [22.500156691180276, 43.642814439460977], [22.410446404721593, 44.008063462899948], [22.657149692482985, 44.234923000661276]]] } }, + { "type": "Feature", "properties": { "admin": "The Bahamas", "name": "Bahamas", "continent": "North America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-77.53466, 23.75975], [-77.78, 23.71], [-78.03405, 24.28615], [-78.40848, 24.57564], [-78.19087, 25.2103], [-77.89, 25.17], [-77.54, 24.34], [-77.53466, 23.75975]]], [[[-77.82, 26.58], [-78.91, 26.42], [-78.98, 26.79], [-78.51, 26.87], [-77.85, 26.84], [-77.82, 26.58]]], [[[-77.0, 26.59], [-77.17255, 25.87918], [-77.35641, 26.00735], [-77.34, 26.53], [-77.78802, 26.92516], [-77.79, 27.04], [-77.0, 26.59]]]] } }, + { "type": "Feature", "properties": { "admin": "Bosnia and Herzegovina", "name": "Bosnia and Herz.", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[19.005486281010118, 44.860233669609144], [19.36803, 44.863], [19.11761, 44.42307], [19.59976, 44.03847], [19.454, 43.568100000000115], [19.21852, 43.52384], [19.03165, 43.43253], [18.70648, 43.20011], [18.56, 42.65], [17.674921502358981, 43.028562527023603], [17.297373488034449, 43.446340643887353], [16.916156447017325, 43.667722479825663], [16.456442905348862, 44.041239732431265], [16.239660271884528, 44.351143296885695], [15.750026075918978, 44.81871165626255], [15.959367303133373, 45.233776760430935], [16.318156772535868, 45.004126695325901], [16.534939406000202, 45.211607570977705], [17.00214603035101, 45.233776760430935], [17.861783481526398, 45.067740383477137], [18.553214145591646, 45.08158966733145], [19.005486281010118, 44.860233669609144]]] } }, + { "type": "Feature", "properties": { "admin": "Belarus", "name": "Belarus", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[23.484127638449841, 53.912497667041123], [24.45068362803703, 53.905702216194747], [25.536353794056989, 54.282423407602515], [25.768432651479792, 54.846962592175082], [26.588279249790386, 55.167175604871659], [26.494331495883749, 55.61510691997762], [27.102459751094525, 55.783313707087672], [28.17670942557799, 56.169129950578807], [29.2295133806603, 55.918344224666356], [29.371571893030669, 55.67009064393617], [29.896294386522353, 55.789463202530406], [30.87390913262, 55.550976467503396], [30.971835971813132, 55.081547756564028], [30.75753380709871, 54.811770941784303], [31.384472283663733, 54.157056382862422], [31.791424187962232, 53.974638576872117], [31.731272820774503, 53.794029446012011], [32.405598585751157, 53.618045355842028], [32.693643019346034, 53.351420803432106], [32.304519484188226, 53.132726141972903], [31.497643670382924, 53.167426866256889], [31.30520063652801, 53.073995876673195], [31.540018344862254, 52.742052313846344], [31.78599816257158, 52.10167796488544], [30.927549269338975, 52.042353420614383], [30.619454380014837, 51.822806098022362], [30.55511722181145, 51.319503485715643], [30.157363722460889, 51.416138414101454], [29.254938185347921, 51.368234361366881], [28.992835320763522, 51.602044379271462], [28.617612745892242, 51.427713934934836], [28.241615024536564, 51.572227077839059], [27.454066196408426, 51.59230337178446], [26.337958611768549, 51.832288723347915], [25.327787713327005, 51.910656032918538], [24.553106316839511, 51.888461005249177], [24.005077752384206, 51.617443956094448], [23.52707075368437, 51.578454087930233], [23.508002150168689, 52.023646552124717], [23.19949384938618, 52.486977444053664], [23.799198846133375, 52.691099351606553], [23.804934930117774, 53.08973135030606], [23.527535841574995, 53.47012156840654], [23.484127638449841, 53.912497667041123]]] } }, + { "type": "Feature", "properties": { "admin": "Belize", "name": "Belize", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-89.143080410503302, 17.808318996649316], [-89.150909389995519, 17.955467637600414], [-89.029857347351808, 18.001511338772485], [-88.848343878926585, 17.883198147040229], [-88.490122850279334, 18.486830552641603], [-88.300031094093669, 18.499982204659897], [-88.296336229184803, 18.353272813383263], [-88.106812913754368, 18.348673610909284], [-88.123478563168476, 18.076674709541003], [-88.285354987322776, 17.644142971258031], [-88.197866787452625, 17.489475409408453], [-88.302640753924422, 17.13169363043566], [-88.239517991879893, 17.036066392479551], [-88.355428229510551, 16.530774237529624], [-88.551824510435821, 16.265467434143144], [-88.732433641295927, 16.233634751851351], [-88.930612759135244, 15.887273464415072], [-89.229121670269265, 15.886937567605166], [-89.15080603713092, 17.015576687075832], [-89.143080410503302, 17.808318996649316]]] } }, + { "type": "Feature", "properties": { "admin": "Bolivia", "name": "Bolivia", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-62.84646847192154, -22.034985446869442], [-63.986838141522462, -21.993644301035946], [-64.377021043542243, -22.798091322523533], [-64.964892137294598, -22.07586150481232], [-66.273339402924833, -21.832310479420713], [-67.10667355006359, -22.735924574476414], [-67.82817989772272, -22.872918796482171], [-68.219913092711266, -21.494346612231858], [-68.757167121033731, -20.372657972904459], [-68.442225104430904, -19.405068454671426], [-68.966818406841853, -18.9816834449041], [-69.100246955019472, -18.260125420812674], [-69.590423753524036, -17.580011895419329], [-68.959635382753291, -16.500697930571267], [-69.389764166934697, -15.66012908291165], [-69.160346645774936, -15.323973890853015], [-69.339534674747, -14.953195489158828], [-68.94888668483658, -14.45363941819328], [-68.929223802349526, -13.602683607643007], [-68.880079515239956, -12.89972909917665], [-68.665079718689611, -12.561300144097171], [-69.52967810736493, -10.951734307502193], [-68.786157599549469, -11.036380303596276], [-68.27125362819325, -11.014521172736817], [-68.048192308205373, -10.712059014532484], [-67.173801235610725, -10.30681243249961], [-66.646908331962791, -9.931331475466861], [-65.33843522811641, -9.76198780684639], [-65.444837002205375, -10.51145110437543], [-65.321898769783004, -10.895872084194675], [-65.402281460213018, -11.566270440317151], [-64.31635291203159, -12.461978041232191], [-63.196498786050562, -12.627032565972433], [-62.803060268796372, -13.000653171442682], [-62.127080857986371, -13.19878061284972], [-61.713204311760769, -13.489202162330049], [-61.084121263255646, -13.479383640194595], [-60.503304002511122, -13.775954685117656], [-60.459198167550014, -14.354007256734551], [-60.264326341377355, -14.645979099183638], [-60.251148851142922, -15.077218926659318], [-60.542965664295131, -15.093910414289592], [-60.158389655179022, -16.258283786690082], [-58.241219855366673, -16.299573256091289], [-58.388058437724027, -16.877109063385273], [-58.280804002502244, -17.271710300366014], [-57.734558274960989, -17.552468357007765], [-57.498371141170971, -18.174187513911289], [-57.676008877174297, -18.961839694904025], [-57.949997321185819, -19.400004164306814], [-57.853801642474494, -19.969995212486186], [-58.166392381408038, -20.176700941653674], [-58.183471442280492, -19.868399346600359], [-59.11504248720609, -19.356906019775398], [-60.043564622626477, -19.342746677327419], [-61.786326463453761, -19.633736667562957], [-62.265961269770784, -20.513734633061272], [-62.291179368729203, -21.051634616787389], [-62.685057135657871, -22.24902922942238], [-62.84646847192154, -22.034985446869442]]] } }, + { "type": "Feature", "properties": { "admin": "Brazil", "name": "Brazil", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-57.625133429582945, -30.216294854454258], [-56.290899624239067, -28.852760512000884], [-55.162286342984558, -27.881915378533456], [-54.49072526713551, -27.474756768505785], [-53.648735317587885, -26.923472588816086], [-53.628348965048737, -26.124865004177465], [-54.130049607954376, -25.547639255477247], [-54.625290696823562, -25.739255466415507], [-54.428946092330577, -25.162184747012162], [-54.293476325077435, -24.570799655863958], [-54.292959560754511, -24.021014092710722], [-54.652834235235119, -23.839578138933955], [-55.027901780809543, -24.001273695575225], [-55.400747239795407, -23.956935316668797], [-55.517639329639621, -23.57199757252663], [-55.61068274598113, -22.655619398694839], [-55.797958136606894, -22.356929620047815], [-56.473317430229379, -22.086300144135279], [-56.881509568902885, -22.282153822521476], [-57.937155727761287, -22.090175876557169], [-57.870673997617786, -20.732687676681948], [-58.166392381408038, -20.176700941653674], [-57.853801642474494, -19.969995212486186], [-57.949997321185819, -19.400004164306814], [-57.676008877174297, -18.961839694904025], [-57.498371141170971, -18.174187513911289], [-57.734558274960989, -17.552468357007765], [-58.280804002502244, -17.271710300366014], [-58.388058437724027, -16.877109063385273], [-58.241219855366673, -16.299573256091289], [-60.158389655179022, -16.258283786690082], [-60.542965664295131, -15.093910414289592], [-60.251148851142922, -15.077218926659318], [-60.264326341377355, -14.645979099183638], [-60.459198167550014, -14.354007256734551], [-60.503304002511122, -13.775954685117656], [-61.084121263255646, -13.479383640194595], [-61.713204311760769, -13.489202162330049], [-62.127080857986371, -13.19878061284972], [-62.803060268796372, -13.000653171442682], [-63.196498786050562, -12.627032565972433], [-64.31635291203159, -12.461978041232191], [-65.402281460213018, -11.566270440317151], [-65.321898769783004, -10.895872084194675], [-65.444837002205375, -10.51145110437543], [-65.33843522811641, -9.76198780684639], [-66.646908331962791, -9.931331475466861], [-67.173801235610725, -10.30681243249961], [-68.048192308205373, -10.712059014532484], [-68.27125362819325, -11.014521172736817], [-68.786157599549469, -11.036380303596276], [-69.52967810736493, -10.951734307502193], [-70.093752204046879, -11.123971856331011], [-70.548685675728393, -11.009146823778462], [-70.481893886991159, -9.490118096558842], [-71.302412278921523, -10.079436130415372], [-72.184890713169821, -10.05359791426943], [-72.563033006465631, -9.520193780152715], [-73.226713426390148, -9.462212823121233], [-73.015382656532537, -9.03283334720806], [-73.571059332967053, -8.424446709835832], [-73.987235480429646, -7.523829847853063], [-73.723401455363486, -7.340998630404412], [-73.724486660441627, -6.918595472850638], [-73.120027431923575, -6.629930922068238], [-73.219711269814596, -6.089188734566076], [-72.964507208941185, -5.741251315944892], [-72.891927659787243, -5.274561455916979], [-71.748405727816532, -4.59398284263301], [-70.928843349883564, -4.401591485210367], [-70.79476884630229, -4.251264743673302], [-69.893635219996611, -4.298186944194326], [-69.444101935489599, -1.556287123219817], [-69.420485805932216, -1.122618503426409], [-69.577065395776586, -0.549991957200163], [-70.02065589057004, -0.185156345219539], [-70.015565761989293, 0.541414292804205], [-69.452396002872447, 0.706158758950693], [-69.252434048119042, 0.602650865070075], [-69.218637661400166, 0.985676581217433], [-69.804596727157701, 1.089081122233466], [-69.816973232691609, 1.714805202639624], [-67.868565029558823, 1.692455145673392], [-67.537810024674684, 2.037162787276329], [-67.25999752467358, 1.719998684084956], [-67.065048183852483, 1.130112209473225], [-66.876325853122566, 1.253360500489336], [-66.325765143484944, 0.724452215982012], [-65.548267381437554, 0.78925446207603], [-65.354713304288353, 1.0952822941085], [-64.611011928959854, 1.328730576987041], [-64.199305792890499, 1.49285492594602], [-64.083085496666072, 1.91636912679408], [-63.368788011311644, 2.200899562993129], [-63.422867397705105, 2.411067613124174], [-64.269999152265783, 2.497005520025566], [-64.408827887617903, 3.126786200366623], [-64.368494432214092, 3.797210394705246], [-64.816064012294007, 4.056445217297422], [-64.628659430587533, 4.14848094320925], [-63.888342861574145, 4.020530096854571], [-63.093197597899092, 3.770571193858784], [-62.804533047116692, 4.006965033377951], [-62.085429653559125, 4.162123521334308], [-60.966893276601517, 4.536467596856638], [-60.601179165271922, 4.918098049332129], [-60.733574184803707, 5.2002772078619], [-60.213683437731319, 5.2444863956876], [-59.980958624904865, 5.014061184098138], [-60.111002366767373, 4.574966538914082], [-59.767405768458701, 4.423502915866606], [-59.538039923731219, 3.958802598481937], [-59.815413174057852, 3.606498521332085], [-59.974524909084543, 2.755232652188055], [-59.718545701726732, 2.249630438644359], [-59.646043667221242, 1.786893825686789], [-59.030861579002639, 1.317697658692722], [-58.540012986878288, 1.26808828369252], [-58.429477098205957, 1.46394196207872], [-58.113449876525003, 1.507195135907025], [-57.660971035377358, 1.682584947105638], [-57.33582292339689, 1.948537705895759], [-56.782704230360814, 1.863710842288653], [-56.53938574891454, 1.89952260986692], [-55.995698004771739, 1.817667141116601], [-55.905600145070871, 2.021995754398659], [-56.073341844290283, 2.220794989425499], [-55.973322109589361, 2.510363877773016], [-55.569755011605984, 2.42150625244713], [-55.097587449755125, 2.523748073736612], [-54.524754197799709, 2.311848863123785], [-54.088062506717243, 2.105556545414629], [-53.778520677288903, 2.376702785650081], [-53.554839240113537, 2.33489655192595], [-53.4184651352953, 2.05338918701598], [-52.939657151894949, 2.124857692875636], [-52.556424730018414, 2.504705308437053], [-52.249337531123942, 3.241094468596244], [-51.657797410678882, 4.156232408053028], [-51.317146369010842, 4.203490505383953], [-51.069771287629649, 3.65039765056403], [-50.508875291533641, 1.901563828942456], [-49.974075893745045, 1.736483465986069], [-49.947100796088705, 1.046189683431223], [-50.699251268096901, 0.222984117021681], [-50.388210822132123, -0.078444512536819], [-48.620566779156313, -0.235489190271821], [-48.584496629416577, -1.237805271005001], [-47.824956427590621, -0.5816179337628], [-46.566583624851219, -0.941027520352776], [-44.9057030909904, -1.551739597178134], [-44.417619187993658, -2.137750339367975], [-44.581588507655773, -2.691308282078523], [-43.418791266440188, -2.383110039889793], [-41.47265682632824, -2.912018324397116], [-39.97866533055403, -2.87305429444904], [-38.50038347019656, -3.700652357603394], [-37.223252122535193, -4.820945733258915], [-36.45293738457638, -5.109403578312153], [-35.597795783010454, -5.149504489770648], [-35.235388963347553, -5.464937432480245], [-34.896029832486825, -6.738193047719709], [-34.729993455533027, -7.343220716992965], [-35.128212042774216, -8.996401462442284], [-35.636966518687707, -9.649281508017811], [-37.046518724096991, -11.040721123908799], [-37.683611619607355, -12.17119475672582], [-38.423876512188436, -13.038118584854285], [-38.673887091616507, -13.057652276260615], [-38.953275722802537, -13.79336964280002], [-38.882298143049645, -15.667053724838764], [-39.161092495264306, -17.208406670808468], [-39.267339240056394, -17.867746270420479], [-39.583521491034219, -18.262295830968934], [-39.76082333022763, -19.599113457927402], [-40.774740770010332, -20.90451181405242], [-40.944756232250597, -21.937316989837807], [-41.75416419123821, -22.370675551037454], [-41.988284267736546, -22.970070489190888], [-43.074703742024738, -22.967693373305462], [-44.647811855637798, -23.351959323827838], [-45.35213578955991, -23.796841729428579], [-46.472093268405523, -24.088968601174539], [-47.648972337420645, -24.885199069927715], [-48.495458136577689, -25.877024834905647], [-48.641004808127725, -26.623697605090928], [-48.474735887228647, -27.175911960561887], [-48.661520351747612, -28.186134535435713], [-48.888457404157393, -28.674115085567877], [-49.587329474472668, -29.224469089476333], [-50.696874152211478, -30.984465020472953], [-51.576226162306149, -31.777698256153204], [-52.256081305538032, -32.245369968394662], [-52.71209998229768, -33.196578057591175], [-53.373661668498229, -33.768377780900757], [-53.650543992718084, -33.202004082981823], [-53.209588995971529, -32.727666110974717], [-53.787951626182185, -32.047242526987617], [-54.572451544805105, -31.494511407193745], [-55.601510179249331, -30.853878676071385], [-55.97324459494093, -30.883075860316296], [-56.976025763564721, -30.109686374636119], [-57.625133429582945, -30.216294854454258]]] } }, + { "type": "Feature", "properties": { "admin": "Brunei", "name": "Brunei", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[114.204016554828343, 4.525873928236805], [114.599961379048707, 4.900011298029965], [115.450710483869798, 5.447729803891532], [115.405700311343566, 4.955227565933837], [115.347460972150643, 4.316636053887009], [114.869557326315373, 4.348313706881924], [114.659595981913498, 4.007636826997753], [114.204016554828343, 4.525873928236805]]] } }, + { "type": "Feature", "properties": { "admin": "Bhutan", "name": "Bhutan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[91.69665652869665, 27.771741848251661], [92.10371178585973, 27.4526140406332], [92.033483514375078, 26.838310451763554], [91.217512648486405, 26.808648179628019], [90.37327477413406, 26.875724188742872], [89.744527622438838, 26.71940298105995], [88.835642531289366, 27.098966376243755], [88.814248488320544, 27.299315904239361], [89.475810174521101, 28.04275889740639], [90.015828891971154, 28.296438503527209], [90.730513950567769, 28.064953925075748], [91.258853794319904, 28.040614325466287], [91.69665652869665, 27.771741848251661]]] } }, + { "type": "Feature", "properties": { "admin": "Botswana", "name": "Botswana", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[25.649163445750155, -18.536025892818987], [25.850391473094724, -18.714412937090533], [26.164790887158478, -19.293085625894935], [27.296504754350501, -20.391519870690995], [27.724747348753247, -20.499058526290387], [27.727227817503252, -20.851801853114711], [28.02137007010861, -21.485975030200578], [28.794656202924209, -21.639454034107445], [29.432188348109033, -22.091312758067584], [28.017235955525244, -22.827753594659072], [27.119409620886238, -23.574323011979772], [26.78640669119741, -24.240690606383478], [26.485753208123292, -24.616326592713097], [25.941652052522151, -24.696373386333214], [25.765848829865206, -25.174845472923671], [25.664666375437712, -25.486816094669706], [25.025170525825782, -25.719670098576891], [24.211266717228792, -25.670215752873567], [23.733569777122703, -25.39012948985161], [23.312096795350179, -25.268689873965712], [22.824271274514896, -25.500458672794768], [22.579531691180584, -25.979447523708142], [22.105968865657864, -26.28025603607913], [21.60589603036939, -26.726533705351748], [20.889609002371731, -26.828542982695907], [20.666470167735437, -26.477453301704916], [20.758609246511831, -25.868136488551446], [20.165725538827186, -24.917961928000768], [19.895767856534427, -24.767790215760588], [19.895457797940672, -21.849156996347865], [20.881134067475866, -21.814327080983144], [20.910641310314531, -18.252218926672018], [21.655040317478971, -18.219146010005222], [23.196858351339298, -17.869038181227783], [23.579005568137713, -18.281261081620055], [24.217364536239209, -17.889347019118485], [24.520705193792534, -17.887124932529932], [25.084443393664564, -17.661815687737366], [25.264225701608005, -17.736539808831413], [25.649163445750155, -18.536025892818987]]] } }, + { "type": "Feature", "properties": { "admin": "Central African Republic", "name": "Central African Rep.", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[15.279460483469107, 7.421924546737968], [16.106231723706767, 7.497087917506504], [16.290561557691884, 7.754307359239304], [16.456184523187343, 7.734773667832966], [16.705988396886251, 7.508327541529978], [17.964929640380884, 7.890914008002865], [18.389554884523218, 8.281303615751822], [18.911021762780504, 8.630894680206351], [18.81200971850927, 8.982914536978596], [19.094008009526018, 9.074846910025837], [20.059685499764267, 9.01270600019485], [21.00086836109616, 9.475985215691507], [21.723821648859452, 10.567055568885973], [22.231129184668784, 10.971888739460507], [22.864165480244218, 11.142395127807543], [22.977543572692603, 10.714462591998538], [23.554304233502187, 10.089255275915306], [23.557249790142826, 9.681218166538683], [23.394779087017181, 9.26506785729222], [23.459012892355979, 8.954285793488891], [23.805813429466745, 8.666318874542425], [24.567369012152078, 8.229187933785466], [25.114932488716786, 7.825104071479172], [25.12413089366472, 7.500085150579436], [25.796647983511171, 6.979315904158069], [26.21341840994511, 6.546603298362071], [26.465909458123232, 5.94671743410187], [27.213409051225163, 5.550953477394557], [27.374226108517483, 5.233944403500059], [27.044065382604703, 5.127852688004835], [26.402760857862535, 5.150874538590869], [25.650455356557465, 5.256087754737123], [25.278798455514302, 5.170408229997191], [25.128833449003274, 4.927244777847789], [24.805028924262409, 4.897246608902349], [24.41053104014625, 5.108784084489129], [23.297213982850135, 4.609693101414221], [22.841479526468103, 4.710126247573483], [22.704123569436284, 4.633050848810156], [22.405123732195531, 4.02916006104732], [21.659122755630019, 4.224341945813719], [20.927591180106273, 4.322785549329736], [20.290679152108932, 4.691677761245287], [19.467783644293146, 5.031527818212779], [18.932312452884755, 4.709506130385973], [18.542982211997778, 4.201785183118317], [18.453065219809925, 3.504385891123348], [17.809900343505259, 3.560196437998569], [17.133042433346297, 3.728196519379451], [16.537058139724135, 3.198254706226278], [16.01285241055535, 2.267639675298084], [15.907380812247649, 2.557389431158612], [15.862732374747479, 3.013537298998982], [15.405395948964379, 3.335300604664339], [15.036219516671249, 3.851367295747123], [14.950953403389658, 4.21038930909492], [14.478372430080466, 4.732605495620446], [14.558935988023501, 5.03059764243153], [14.459407179429345, 5.451760565610299], [14.536560092841111, 6.22695872642069], [14.776545444404572, 6.408498033062044], [15.279460483469107, 7.421924546737968]]] } }, + { "type": "Feature", "properties": { "admin": "Canada", "name": "Canada", "continent": "North America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-63.6645, 46.55001], [-62.9393, 46.41587], [-62.01208, 46.44314], [-62.50391, 46.03339], [-62.87433, 45.96818], [-64.1428, 46.39265], [-64.39261, 46.72747], [-64.01486, 47.03601], [-63.6645, 46.55001]]], [[[-61.806305, 49.10506], [-62.29318, 49.08717], [-63.58926, 49.40069], [-64.51912, 49.87304], [-64.17322, 49.95718], [-62.85829, 49.70641], [-61.835585, 49.28855], [-61.806305, 49.10506]]], [[[-123.510001587551116, 48.51001089130343], [-124.012890788399474, 48.370846259141402], [-125.655012777338342, 48.825004584338494], [-125.954994466792726, 49.179995835967638], [-126.850004435871853, 49.530000311880421], [-127.029993449544392, 49.814995835970073], [-128.059336304366212, 49.994959011426594], [-128.444584107102145, 50.53913768167611], [-128.358413656255408, 50.770648098343678], [-127.308581096029883, 50.552573554071948], [-126.695000977212302, 50.40090322529538], [-125.755006673823161, 50.295018215529367], [-125.415001587558791, 49.950000515332604], [-124.920768189119315, 49.47527497008339], [-123.92250870832099, 49.062483628935794], [-123.510001587551116, 48.51001089130343]]], [[[-56.134035814017111, 50.687009792679298], [-56.795881720595261, 49.812308661490945], [-56.143105027884289, 50.15011749938283], [-55.471492275602934, 49.935815334668447], [-55.822401089080913, 49.587128607779093], [-54.93514258484565, 49.313010972686833], [-54.473775397343772, 49.556691189159167], [-53.47654944519131, 49.24913890237405], [-53.786013759971233, 48.516780503933617], [-53.086133999226249, 48.687803656603528], [-52.95864824076223, 48.157164211614472], [-52.648098720904173, 47.53554840757549], [-53.069158291218336, 46.655498765644936], [-53.521456264853029, 46.618291734394823], [-54.178935512902527, 46.807065741556997], [-53.961868659060471, 47.625207017601909], [-54.240482143762122, 47.752279364607617], [-55.400773078011483, 46.88499380145312], [-55.997480841685835, 46.919720363953289], [-55.291219041552765, 47.389562486350982], [-56.250798712780508, 47.632545070987383], [-57.325229254777085, 47.572807115257987], [-59.26601518414676, 47.603347886742498], [-59.41949418805369, 47.89945384377485], [-58.796586473207398, 48.251525376979473], [-59.23162451845652, 48.523188381537793], [-58.391804979065213, 49.125580552764163], [-57.358689744686025, 50.718274034215845], [-56.738650071831998, 51.287438259478527], [-55.87097693543528, 51.632094224649187], [-55.406974249886602, 51.588272610065722], [-55.600218268442077, 51.317074693397913], [-56.134035814017111, 50.687009792679298]]], [[[-133.180004041711669, 54.169975490935308], [-132.710007884431292, 54.040009315423518], [-131.749989584003259, 54.120004380909208], [-132.049480347350965, 52.984621487024519], [-131.179042521826574, 52.18043284769827], [-131.577829549822894, 52.182370713909236], [-132.180428426778519, 52.639707139692391], [-132.549992432313843, 53.100014960332132], [-133.054611178755493, 53.411468817755363], [-133.239664482792676, 53.851080227262386], [-133.180004041711669, 54.169975490935308]]], [[[-79.26582, 62.158675], [-79.65752, 61.63308], [-80.09956, 61.7181], [-80.36215, 62.01649], [-80.315395, 62.085565], [-79.92939, 62.3856], [-79.52002, 62.36371], [-79.26582, 62.158675]]], [[[-81.89825, 62.7108], [-83.06857, 62.15922], [-83.77462, 62.18231], [-83.99367, 62.4528], [-83.25048, 62.91409], [-81.87699, 62.90458], [-81.89825, 62.7108]]], [[[-85.161307949549851, 65.657284654392797], [-84.975763719405933, 65.217518215588981], [-84.464012010419495, 65.371772365980163], [-83.88262630891974, 65.109617824963536], [-82.78757687043877, 64.766693020274673], [-81.642013719392509, 64.455135809986942], [-81.553440314444245, 63.979609280037131], [-80.817361212878851, 64.057485663500998], [-80.103451300766594, 63.725981350348597], [-80.991019863595653, 63.41124603947496], [-82.547178107416997, 63.651722317145229], [-83.108797573565042, 64.101875718839707], [-84.100416632813847, 63.569711819098004], [-85.523404710618991, 63.052379055424076], [-85.866768764982339, 63.637252916103542], [-87.221983201836721, 63.541238104905212], [-86.352759772471259, 64.035833238370699], [-86.224886440765133, 64.822916978608262], [-85.883847825854858, 65.738778388117041], [-85.161307949549851, 65.657284654392797]]], [[[-75.86588, 67.14886], [-76.98687, 67.09873], [-77.2364, 67.58809], [-76.81166, 68.14856], [-75.89521, 68.28721], [-75.1145, 68.01036], [-75.10333, 67.58202], [-75.21597, 67.44425], [-75.86588, 67.14886]]], [[[-95.647681203800488, 69.107690358321761], [-96.269521203800579, 68.757040358321731], [-97.61740120380054, 69.060030358321782], [-98.431801203800504, 68.950700358321768], [-99.797401203800504, 69.400030358321786], [-98.917401203800523, 69.710030358321788], [-98.218261203800466, 70.143540358321744], [-97.157401203800532, 69.860030358321794], [-96.557401203800524, 69.680030358321758], [-96.257401203800498, 69.490030358321761], [-95.647681203800488, 69.107690358321761]]], [[[-90.5471, 69.49766], [-90.55151, 68.47499], [-89.21515, 69.25873], [-88.01966, 68.61508], [-88.31749, 67.87338], [-87.35017, 67.19872], [-86.30607, 67.92146], [-85.57664, 68.78456], [-85.52197, 69.88211], [-84.10081, 69.80539], [-82.62258, 69.65826], [-81.28043, 69.16202], [-81.2202, 68.66567], [-81.96436, 68.13253], [-81.25928, 67.59716], [-81.38653, 67.11078], [-83.34456, 66.41154], [-84.73542, 66.2573], [-85.76943, 66.55833], [-86.0676, 66.05625], [-87.03143, 65.21297], [-87.32324, 64.77563], [-88.48296, 64.09897], [-89.91444, 64.03273], [-90.70398, 63.61017], [-90.77004, 62.96021], [-91.93342, 62.83508], [-93.15698, 62.02469], [-94.24153, 60.89865], [-94.62931, 60.11021], [-94.6846, 58.94882], [-93.21502, 58.78212], [-92.76462, 57.84571], [-92.297029999999893, 57.08709], [-90.89769, 57.28468], [-89.03953, 56.85172], [-88.03978, 56.47162], [-87.32421, 55.99914], [-86.07121, 55.72383], [-85.01181, 55.3026], [-83.36055, 55.24489], [-82.27285, 55.14832], [-82.4362, 54.28227], [-82.12502, 53.27703], [-81.40075, 52.15788], [-79.91289, 51.20842], [-79.14301, 51.53393], [-78.60191, 52.56208], [-79.12421, 54.14145], [-79.82958, 54.66772], [-78.22874, 55.13645], [-77.0956, 55.83741], [-76.54137, 56.53423], [-76.62319, 57.20263], [-77.30226, 58.05209], [-78.51688, 58.80458], [-77.33676, 59.85261], [-77.77272, 60.75788], [-78.10687, 62.31964], [-77.41067, 62.55053], [-75.69621, 62.2784], [-74.6682, 62.18111], [-73.83988, 62.4438], [-72.90853, 62.10507], [-71.67708, 61.52535], [-71.37369, 61.13717], [-69.59042, 61.06141], [-69.62033, 60.22125], [-69.2879, 58.95736], [-68.37455, 58.80106], [-67.64976, 58.21206], [-66.20178, 58.76731], [-65.24517, 59.87071], [-64.58352, 60.33558], [-63.80475, 59.4426], [-62.50236, 58.16708], [-61.39655, 56.96745], [-61.79866, 56.33945], [-60.46853, 55.77548], [-59.56962, 55.20407], [-57.97508, 54.94549], [-57.3332, 54.6265], [-56.93689, 53.78032], [-56.15811, 53.64749], [-55.75632, 53.27036], [-55.68338, 52.14664], [-56.40916, 51.7707], [-57.12691, 51.41972], [-58.77482, 51.0643], [-60.03309, 50.24277], [-61.72366, 50.08046], [-63.86251, 50.29099], [-65.36331, 50.2982], [-66.39905, 50.22897], [-67.23631, 49.51156], [-68.51114, 49.06836], [-69.95362, 47.74488], [-71.10458, 46.82171], [-70.25522, 46.98606], [-68.65, 48.3], [-66.55243, 49.1331], [-65.05626, 49.23278], [-64.17099, 48.74248], [-65.11545, 48.07085], [-64.79854, 46.99297], [-64.47219, 46.23849], [-63.17329, 45.73902], [-61.52072, 45.88377], [-60.51815, 47.00793], [-60.4486, 46.28264], [-59.80287, 45.9204], [-61.03988, 45.26525], [-63.25471, 44.67014], [-64.24656, 44.26553], [-65.36406, 43.54523], [-66.1234, 43.61867], [-66.16173, 44.46512], [-64.42549, 45.29204], [-66.02605, 45.25931], [-67.13741, 45.13753], [-67.79134, 45.70281], [-67.79046, 47.06636], [-68.23444, 47.35486], [-68.905, 47.185], [-69.237216, 47.447781], [-69.99997, 46.69307], [-70.305, 45.915], [-70.66, 45.46], [-71.08482, 45.30524], [-71.405, 45.255], [-71.50506, 45.0082], [-73.34783, 45.00738], [-74.867, 45.00048], [-75.31821, 44.81645], [-76.375, 44.09631], [-76.5, 44.018458893758712], [-76.820034145805565, 43.628784288093748], [-77.737885097957687, 43.62905558936329], [-78.720279914042365, 43.625089423184868], [-79.171673550111862, 43.466339423184216], [-79.01, 43.27], [-78.92, 42.965], [-78.939362148743683, 42.863611355148031], [-80.247447679347928, 42.366199856122584], [-81.277746548167144, 42.209025987306845], [-82.439277716791608, 41.675105088867149], [-82.690089280920162, 41.675105088867149], [-83.029810146806909, 41.832795722005834], [-83.141999681312555, 41.975681057292825], [-83.12, 42.08], [-82.9, 42.43], [-82.43, 42.98], [-82.137642381503881, 43.571087551439909], [-82.337763125431053, 44.44], [-82.550924648758169, 45.347516587905368], [-83.592850714843067, 45.816893622412373], [-83.469550747394621, 45.994686387712584], [-83.616130947590563, 46.116926988299056], [-83.890765347005726, 46.116926988299056], [-84.091851264161463, 46.27541860613816], [-84.14211951367335, 46.512225857115723], [-84.3367, 46.40877], [-84.6049, 46.4396], [-84.543748745445853, 46.538684190449132], [-84.779238247399888, 46.637101955749038], [-84.876079881514855, 46.900083319682366], [-85.652363247403414, 47.220218817730498], [-86.461990831228249, 47.553338019392037], [-87.439792623300207, 47.94], [-88.378114183286698, 48.302917588893727], [-89.272917446636654, 48.019808254582657], [-89.6, 48.01], [-90.83, 48.27], [-91.64, 48.14], [-92.61, 48.45], [-93.63087, 48.60926], [-94.32914, 48.67074], [-94.64, 48.84], [-94.81758, 49.38905], [-95.15609, 49.38425], [-95.159069509172014, 49.0], [-97.228720000004799, 49.0007], [-100.65, 49.0], [-104.04826, 48.99986], [-107.05, 49.0], [-110.05, 49.0], [-113.0, 49.0], [-116.04818, 49.0], [-117.03121, 49.0], [-120.0, 49.0], [-122.84, 49.0], [-122.97421, 49.002537777777789], [-124.91024, 49.98456], [-125.62461, 50.41656], [-127.43561, 50.83061], [-127.99276, 51.71583], [-127.85032, 52.32961], [-129.12979, 52.75538], [-129.30523, 53.56159], [-130.51497, 54.28757], [-130.53611, 54.80278], [-129.98, 55.285], [-130.00778, 55.91583], [-131.70781, 56.55212], [-132.73042, 57.69289], [-133.35556, 58.41028], [-134.27111, 58.86111], [-134.945, 59.27056], [-135.47583, 59.78778], [-136.47972, 59.46389], [-137.4525, 58.905], [-138.34089, 59.56211], [-139.039, 60.0], [-140.013, 60.27682], [-140.99778, 60.30639], [-140.9925, 66.00003], [-140.986, 69.712], [-139.12052, 69.47102], [-137.54636, 68.99002], [-136.50358, 68.89804], [-135.62576, 69.31512], [-134.41464, 69.62743], [-132.92925, 69.50534], [-131.43136, 69.94451], [-129.79471, 70.19369], [-129.10773, 69.77927], [-128.36156, 70.01286], [-128.13817, 70.48384], [-127.44712, 70.37721], [-125.75632, 69.48058], [-124.42483, 70.1584], [-124.28968, 69.39969], [-123.06108, 69.56372], [-122.6835, 69.85553], [-121.47226, 69.79778], [-119.94288, 69.37786], [-117.60268, 69.01128], [-116.22643, 68.84151], [-115.2469, 68.90591], [-113.89794, 68.3989], [-115.30489, 67.90261], [-113.49727, 67.68815], [-110.798, 67.80612], [-109.94619, 67.98104], [-108.8802, 67.38144], [-107.79239, 67.88736], [-108.81299, 68.31164], [-108.16721, 68.65392], [-106.95, 68.7], [-106.15, 68.8], [-105.34282, 68.56122], [-104.33791, 68.018], [-103.22115, 68.09775], [-101.45433, 67.64689], [-99.90195, 67.80566], [-98.4432, 67.78165], [-98.5586, 68.40394], [-97.66948, 68.57864], [-96.11991, 68.23939], [-96.12588, 67.29338], [-95.48943, 68.0907], [-94.685, 68.06383], [-94.23282, 69.06903], [-95.30408, 69.68571], [-96.47131, 70.08976], [-96.39115, 71.19482], [-95.2088, 71.92053], [-93.88997, 71.76015], [-92.87818, 71.31869], [-91.51964, 70.19129], [-92.40692, 69.69997], [-90.5471, 69.49766]]], [[[-114.167169999999871, 73.12145], [-114.66634, 72.65277], [-112.441019999999867, 72.9554], [-111.05039, 72.4504], [-109.920349999999857, 72.96113], [-109.00654, 72.63335], [-108.188349999999886, 71.65089], [-107.68599, 72.06548], [-108.39639, 73.08953], [-107.51645, 73.23598], [-106.522589999999866, 73.07601], [-105.402459999999877, 72.67259], [-104.77484, 71.6984], [-104.464759999999814, 70.99297], [-102.78537, 70.49776], [-100.980779999999868, 70.02432], [-101.089289999999892, 69.58447000000011], [-102.731159999999875, 69.50402], [-102.09329, 69.11962], [-102.43024, 68.75282], [-104.24, 68.91], [-105.96, 69.180000000000135], [-107.12254, 69.11922], [-108.999999999999872, 68.78], [-111.534148875200117, 68.630059156817921], [-113.3132, 68.53554], [-113.854959999999807, 69.007440000000102], [-115.22, 69.28], [-116.10794, 69.16821], [-117.34, 69.960000000000107], [-116.674729999999869, 70.06655], [-115.13112, 70.2373], [-113.72141, 70.19237], [-112.4161, 70.36638], [-114.35, 70.6], [-116.48684, 70.52045], [-117.9048, 70.540560000000127], [-118.43238, 70.9092], [-116.11311, 71.30918], [-117.65568, 71.2952], [-119.40199, 71.55859], [-118.56267, 72.30785], [-117.866419999999877, 72.70594], [-115.18909, 73.314590000000109], [-114.167169999999871, 73.12145]]], [[[-104.5, 73.42], [-105.38, 72.76], [-106.94, 73.46], [-106.6, 73.6], [-105.26, 73.64], [-104.5, 73.42]]], [[[-76.34, 73.102684989953005], [-76.251403808593736, 72.826385498046861], [-77.314437866210895, 72.85554504394527], [-78.391670227050795, 72.876655578613253], [-79.486251831054645, 72.742202758789062], [-79.775833129882827, 72.80290222167973], [-80.876098632812514, 73.333183288574205], [-80.833885192871051, 73.693183898925767], [-80.353057861328111, 73.75971984863277], [-78.064437866210923, 73.651931762695327], [-76.34, 73.102684989953005]]], [[[-86.562178514334107, 73.157447007938444], [-85.774371304044521, 72.534125881633798], [-84.850112474288224, 73.34027822538711], [-82.315590176100969, 73.750950832810574], [-80.600087653307611, 72.716543687624181], [-80.748941616524391, 72.061906643350753], [-78.770638597310764, 72.352173163534147], [-77.824623989559569, 72.749616604291035], [-75.605844692675717, 72.243678493937381], [-74.228616095664975, 71.767144273557889], [-74.099140794557698, 71.330840155717638], [-72.242225714797641, 71.556924546994495], [-71.200015428335192, 70.920012518997211], [-68.78605424668487, 70.525023708774242], [-67.914970465756923, 70.121947536897594], [-66.969033372654152, 69.18608734809186], [-68.805122850200533, 68.720198472764409], [-66.449866095633851, 68.067163397892003], [-64.862314419195215, 67.847538560651614], [-63.424934454996745, 66.928473212340649], [-61.851981370680569, 66.862120673277829], [-62.163176845942296, 66.160251369889593], [-63.91844438338417, 64.998668524832837], [-65.148860236253611, 65.426032619886669], [-66.72121904159853, 66.388041083432185], [-68.015016038673949, 66.262725735124391], [-68.141287400979152, 65.689789130304362], [-67.089646165623392, 65.108455105236985], [-65.732080451099748, 64.64840566675862], [-65.320167609301265, 64.382737128346051], [-64.669406297449669, 63.392926744227474], [-65.013803880458894, 62.674185085695974], [-66.275044725190455, 62.945098781986069], [-68.783186204692711, 63.745670071051805], [-67.369680752213029, 62.883965562584869], [-66.328297288667201, 62.28007477482204], [-66.165568203380147, 61.930897121825879], [-68.877366502544632, 62.330149237712803], [-71.023437059193824, 62.910708116295829], [-72.23537858751898, 63.397836005295154], [-71.886278449171286, 63.679989325608837], [-73.37830624051837, 64.193963121183813], [-74.834418911422588, 64.679075629323776], [-74.818502570276706, 64.389093329517962], [-77.709979824520019, 64.229542344816778], [-78.55594885935416, 64.572906399180127], [-77.897281053361908, 65.309192206474776], [-76.018274298797181, 65.326968899183143], [-73.95979529488271, 65.454764716240888], [-74.293883429649625, 65.81177134872938], [-73.94491248238262, 66.310578111426722], [-72.65116716173938, 67.284575507263853], [-72.926059943316076, 67.726925767682374], [-73.311617804645721, 68.069437160912898], [-74.8433072577768, 68.554627183701271], [-76.869100918266739, 68.894735622830254], [-76.228649054657339, 69.147769273547411], [-77.28736996123709, 69.769540106883269], [-78.168633999326588, 69.826487535268896], [-78.95724219431672, 70.166880194775402], [-79.492455003563649, 69.871807766388898], [-81.305470954091732, 69.743185126414332], [-84.944706183598456, 69.966634019644388], [-87.060003424817864, 70.260001125765356], [-88.681713223001495, 70.410741278760796], [-89.513419562523012, 70.762037665480975], [-88.467721116880753, 71.218185533321318], [-89.888151211287465, 71.222552191849942], [-90.205160285181989, 72.235074367960792], [-89.43657670770493, 73.129464219852352], [-88.408241543312784, 73.537888902471209], [-85.826151089200906, 73.803815823045213], [-86.562178514334107, 73.157447007938444]]], [[[-100.35642, 73.84389], [-99.16387, 73.63339], [-97.38, 73.76], [-97.12, 73.47], [-98.05359, 72.99052], [-96.54, 72.56], [-96.72, 71.66], [-98.35966, 71.27285], [-99.32286, 71.35639], [-100.01482, 71.73827], [-102.5, 72.51], [-102.48, 72.83], [-100.43836, 72.70588], [-101.54, 73.36], [-100.35642, 73.84389]]], [[[-93.196295539100205, 72.771992499473342], [-94.26904659704725, 72.024596259235949], [-95.409855516322637, 72.061880805134578], [-96.033745083382428, 72.940276801231789], [-96.01826799191096, 73.437429918095788], [-95.495793423224001, 73.862416897264154], [-94.503657599652328, 74.134906724739196], [-92.420012173211745, 74.100025132942179], [-90.509792853542578, 73.85673248971203], [-92.003965216829869, 72.966244208458477], [-93.196295539100205, 72.771992499473342]]], [[[-120.46, 71.383601793087578], [-123.09219, 70.90164], [-123.62, 71.34], [-125.92894873747332, 71.868688463011395], [-125.499999999999872, 72.292260811795003], [-124.80729, 73.02256], [-123.94, 73.680000000000135], [-124.917749999999899, 74.292750000000112], [-121.53788, 74.44893], [-120.10978, 74.24135], [-117.55564, 74.18577], [-116.58442, 73.89607], [-115.51081, 73.47519], [-116.767939999999882, 73.22292], [-119.22, 72.52], [-120.46, 71.82], [-120.46, 71.383601793087578]]], [[[-93.612755906940464, 74.979997260224437], [-94.156908738973812, 74.59234650338685], [-95.60868058956558, 74.666863918751758], [-96.820932176484561, 74.927623196096576], [-96.288587409229791, 75.377828274223333], [-94.850819871789113, 75.647217515760886], [-93.977746548217908, 75.296489569795952], [-93.612755906940464, 74.979997260224437]]], [[[-98.5, 76.72], [-97.735585, 76.25656], [-97.704415, 75.74344], [-98.16, 75.0], [-99.80874, 74.89744], [-100.88366, 75.05736], [-100.86292, 75.64075], [-102.50209, 75.5638], [-102.56552, 76.3366], [-101.48973, 76.30537], [-99.98349, 76.64634], [-98.57699, 76.58859], [-98.5, 76.72]]], [[[-108.21141, 76.20168], [-107.81943, 75.84552], [-106.92893, 76.01282], [-105.881, 75.9694], [-105.70498, 75.47951], [-106.31347, 75.00527], [-109.7, 74.85], [-112.22307, 74.41696], [-113.74381, 74.39427], [-113.87135, 74.72029], [-111.79421, 75.1625], [-116.31221, 75.04343], [-117.7104, 75.2222], [-116.34602, 76.19903], [-115.40487, 76.47887], [-112.59056, 76.14134], [-110.81422, 75.54919], [-109.0671, 75.47321], [-110.49726, 76.42982], [-109.5811, 76.79417], [-108.54859, 76.67832], [-108.21141, 76.20168]]], [[[-94.684085862999439, 77.097878323058367], [-93.573921068073105, 76.776295884906062], [-91.605023159536586, 76.778517971494594], [-90.741845872749209, 76.449597479956807], [-90.969661424507976, 76.074013170059445], [-89.822237921899244, 75.847773749485626], [-89.187082892599776, 75.610165513807615], [-87.838276333349611, 75.566188869927217], [-86.379192267588664, 75.482421373182163], [-84.789625210290595, 75.699204006646497], [-82.753444586910049, 75.784315090631225], [-81.12853084992436, 75.713983466282016], [-80.05751095245914, 75.336848863415867], [-79.833932868148324, 74.923127346487192], [-80.457770758775823, 74.657303778777774], [-81.948842536125511, 74.442459011524321], [-83.2288936022114, 74.564027818490928], [-86.097452358733292, 74.410032050261137], [-88.150350307960196, 74.392307033984977], [-89.764722052758358, 74.515555325001117], [-92.422440965529418, 74.837757880340973], [-92.768285488642789, 75.38681997344213], [-92.889905972041717, 75.882655341282629], [-93.893824022175977, 76.319243679500516], [-95.962457445035795, 76.44138092722244], [-97.121378953829463, 76.751077785947587], [-96.745122850312342, 77.161388658345132], [-94.684085862999439, 77.097878323058367]]], [[[-116.198586595507322, 77.645286770326194], [-116.335813361458349, 76.876961575010554], [-117.106050584768766, 76.530031846819114], [-118.040412157038119, 76.481171780087081], [-119.899317586885687, 76.053213406061971], [-121.499995077126471, 75.900018622532784], [-122.85492448615895, 76.116542873835684], [-122.854925293603188, 76.116542873835684], [-121.157535360328239, 76.864507554828336], [-119.103938971821023, 77.512219957174608], [-117.570130784965954, 77.498318996888102], [-116.198586595507322, 77.645286770326194]]], [[[-93.840003017943971, 77.51999726023449], [-94.295608283245244, 77.491342678528682], [-96.169654100310055, 77.55511139597688], [-96.436304490936109, 77.83462921824362], [-94.422577277386353, 77.820004787904978], [-93.720656297565867, 77.634331366680314], [-93.840003017943971, 77.51999726023449]]], [[[-110.186938035912945, 77.697014879050286], [-112.051191169058455, 77.409228827616843], [-113.534278937619035, 77.732206529441143], [-112.724586758253835, 78.051050116681935], [-111.264443325630822, 78.152956041161545], [-109.854451870547067, 77.996324774884812], [-110.186938035912945, 77.697014879050286]]], [[[-109.663145718202557, 78.601972561345676], [-110.88131425661885, 78.406919867659994], [-112.542091437615142, 78.407901719873493], [-112.525890876091566, 78.550554511215225], [-111.500010342233367, 78.849993598130538], [-110.96366065147599, 78.804440823065207], [-109.663145718202557, 78.601972561345676]]], [[[-95.830294969449312, 78.056941229963243], [-97.309842902397975, 77.85059723582178], [-98.124289313533964, 78.082856960757567], [-98.55286780474664, 78.458105373845086], [-98.631984422585504, 78.871930243638374], [-97.337231411512604, 78.831984361476756], [-96.754398769908761, 78.765812689926989], [-95.559277920294562, 78.41831452098026], [-95.830294969449312, 78.056941229963243]]], [[[-100.060191820052111, 78.324754340315891], [-99.670939093813601, 77.907544664207393], [-101.303940192452984, 78.018984890444798], [-102.949808722733025, 78.343228664860206], [-105.176132778731514, 78.38033234324574], [-104.210429450277147, 78.677420152491777], [-105.419580451258511, 78.918335679836431], [-105.492289191493128, 79.301593939929177], [-103.529282396237917, 79.16534902619162], [-100.8251580472688, 78.80046173777869], [-100.060191820052111, 78.324754340315891]]], [[[-87.02, 79.66], [-85.81435, 79.3369], [-87.18756, 79.0393], [-89.03535, 78.28723], [-90.80436, 78.21533], [-92.87669, 78.34333], [-93.95116, 78.75099], [-93.93574, 79.11373], [-93.14524, 79.3801], [-94.974, 79.37248], [-96.07614, 79.70502], [-96.70972, 80.15777], [-96.01644, 80.60233], [-95.32345, 80.90729], [-94.29843, 80.97727], [-94.73542, 81.20646], [-92.40984, 81.25739], [-91.13289, 80.72345], [-89.45, 80.509322033898258], [-87.81, 80.32], [-87.02, 79.66]]], [[[-68.5, 83.106321516765732], [-65.82735, 83.02801], [-63.68, 82.9], [-61.85, 82.6286], [-61.89388, 82.36165], [-64.334, 81.92775], [-66.75342, 81.72527], [-67.65755, 81.50141], [-65.48031, 81.50657], [-67.84, 80.9], [-69.4697, 80.61683], [-71.18, 79.8], [-73.2428, 79.63415], [-73.88, 79.430162204802073], [-76.90773, 79.32309], [-75.52924, 79.19766], [-76.22046, 79.01907], [-75.39345, 78.52581], [-76.34354, 78.18296], [-77.88851, 77.89991], [-78.36269, 77.50859], [-79.75951, 77.20968], [-79.61965, 76.98336], [-77.91089, 77.022045], [-77.88911, 76.777955], [-80.56125, 76.17812], [-83.17439, 76.45403], [-86.11184, 76.29901], [-87.6, 76.42], [-89.49068, 76.47239], [-89.6161, 76.95213], [-87.76739, 77.17833], [-88.26, 77.9], [-87.65, 77.970222222222205], [-84.97634, 77.53873], [-86.34, 78.18], [-87.96192, 78.37181], [-87.15198, 78.75867], [-85.37868, 78.9969], [-85.09495, 79.34543], [-86.50734, 79.73624], [-86.93179, 80.25145], [-84.19844, 80.20836], [-83.408695652173819, 80.1], [-81.84823, 80.46442], [-84.1, 80.58], [-87.59895, 80.51627], [-89.36663, 80.85569], [-90.2, 81.26], [-91.36786, 81.5531], [-91.58702, 81.89429], [-90.1, 82.085], [-88.93227, 82.11751], [-86.97024, 82.27961], [-85.5, 82.652273458057024], [-84.260005, 82.6], [-83.18, 82.32], [-82.42, 82.86], [-81.1, 83.02], [-79.30664, 83.13056], [-76.25, 83.172058823529369], [-75.71878, 83.06404], [-72.83153, 83.23324], [-70.665765, 83.169780758382828], [-68.5, 83.106321516765732]]]] } }, + { "type": "Feature", "properties": { "admin": "Switzerland", "name": "Switzerland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[9.594226108446346, 47.525058091820256], [9.632931756232974, 47.347601223329974], [9.479969516649019, 47.102809963563367], [9.932448357796657, 46.920728054382948], [10.442701450246627, 46.893546250997424], [10.36337812667861, 46.483571275409851], [9.922836541390378, 46.314899400409182], [9.182881707403054, 46.440214748716976], [8.966305779667804, 46.036931871111186], [8.489952426801322, 46.005150865251672], [8.316629672894377, 46.163642483090847], [7.755992058959832, 45.824490057959302], [7.273850945676655, 45.776947740250769], [6.843592970414504, 45.991146552100595], [6.500099724970424, 46.429672756529428], [6.022609490593537, 46.272989813820466], [6.037388950229, 46.725778713561859], [6.768713820023605, 47.287708238303686], [6.736571079138058, 47.541801255882838], [7.192202182655505, 47.449765529971003], [7.466759067422228, 47.620581976911794], [8.31730146651415, 47.613579820336255], [8.522611932009765, 47.830827541691285], [9.594226108446346, 47.525058091820256]]] } }, + { "type": "Feature", "properties": { "admin": "Chile", "name": "Chile", "continent": "South America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-68.634010227583147, -52.636370458874353], [-68.633349999999879, -54.8695], [-67.56244, -54.87001], [-66.95992, -54.89681], [-67.291029999999878, -55.30124], [-68.148629999999841, -55.61183], [-68.639990810811796, -55.580017999086877], [-69.2321, -55.49906], [-69.95809, -55.19843], [-71.00568, -55.05383], [-72.2639, -54.49514], [-73.2852, -53.957519999999874], [-74.66253, -52.83749], [-73.8381, -53.04743], [-72.43418, -53.7154], [-71.10773, -54.07433], [-70.591779999999787, -53.61583], [-70.26748, -52.93123], [-69.345649999999878, -52.5183], [-68.634010227583147, -52.636370458874353]]], [[[-68.219913092711224, -21.49434661223183], [-67.828179897722634, -22.872918796482178], [-67.106673550063604, -22.735924574476392], [-66.985233934177629, -22.986348565362825], [-67.328442959244128, -24.025303236590908], [-68.417652960876111, -24.518554782816874], [-68.386001146097342, -26.185016371365229], [-68.594799770772667, -26.50690886811126], [-68.295541551370391, -26.899339694935787], [-69.001234910748266, -27.521213881136127], [-69.656130337183143, -28.459141127233686], [-70.013550381129861, -29.367922865518544], [-69.919008348251921, -30.336339206668306], [-70.535068935819439, -31.365010267870279], [-70.074399380153622, -33.09120981214803], [-69.814776984319209, -33.273886000299839], [-69.817309129501453, -34.193571465798279], [-70.388049485949082, -35.169687595359441], [-70.364769253201658, -36.005088799789931], [-71.121880662709771, -36.65812387466233], [-71.118625047475419, -37.576827487947192], [-70.814664272734703, -38.552995293940732], [-71.413516608349042, -38.916022230791107], [-71.680761277946445, -39.808164157878061], [-71.915734015577542, -40.832339369470716], [-71.746803758415453, -42.051386407235988], [-72.148898078078517, -42.254888197601375], [-71.915423956983901, -43.408564548517404], [-71.464056159130493, -43.787611179378324], [-71.793622606071935, -44.207172133156099], [-71.329800788036195, -44.407521661151677], [-71.222778896759721, -44.784242852559409], [-71.659315558545316, -44.973688653341434], [-71.552009446891233, -45.560732924177117], [-71.917258470330196, -46.884838148791786], [-72.44735531278026, -47.738532810253517], [-72.331160854771937, -48.244238376661819], [-72.648247443314929, -48.878618259476774], [-73.415435757120022, -49.318436374712952], [-73.328050910114456, -50.378785088909865], [-72.975746832964617, -50.741450290734299], [-72.309973517532342, -50.677009779666342], [-72.329403856074023, -51.425956312872394], [-71.914803839796321, -52.009022305865912], [-69.498362189396076, -52.142760912637236], [-68.571545376241332, -52.299443855346247], [-69.461284349226617, -52.291950772663924], [-69.94277950710611, -52.537930590373243], [-70.8451016913545, -52.899200528525711], [-71.006332160105217, -53.833252042201345], [-71.429794684520928, -53.856454760300373], [-72.557942877884855, -53.531410001184447], [-73.702756720662862, -52.835069268607249], [-73.702756720662862, -52.835070076051487], [-74.946763475225154, -52.262753588419017], [-75.260026007778507, -51.62935475037321], [-74.976632453089806, -51.043395684615675], [-75.47975419788348, -50.378371677451547], [-75.608015102831942, -48.673772881871784], [-75.182769741502128, -47.711919447623153], [-74.126580980104677, -46.939253431995084], [-75.644395311165439, -46.647643324572016], [-74.69215369332305, -45.76397633238097], [-74.351709357384252, -44.10304412208788], [-73.240356004515192, -44.454960625995611], [-72.717803921179765, -42.383355808278985], [-73.388899909138232, -42.117532240569567], [-73.701335618774834, -43.365776462579738], [-74.33194312203257, -43.224958184584395], [-74.017957119427152, -41.794812920906828], [-73.677099372029943, -39.942212823243111], [-73.217592536090663, -39.258688653318508], [-73.505559455037044, -38.282882582351064], [-73.588060879191076, -37.156284681956016], [-73.166717088499283, -37.123780206044351], [-72.553136969681717, -35.508840020491022], [-71.861732143832555, -33.909092706031522], [-71.438450486929895, -32.418899428030819], [-71.668720669222424, -30.920644626592516], [-71.370082567007714, -30.095682061484997], [-71.48989437527645, -28.861442152625909], [-70.905123867461569, -27.640379734001193], [-70.724953986275963, -25.705924167587209], [-70.403965827095035, -23.628996677344542], [-70.091245897080668, -21.393319187101223], [-70.164419725205974, -19.756468194256183], [-70.372572394477714, -18.347975355708879], [-69.858443569605797, -18.092693780187027], [-69.590423753523979, -17.580011895419286], [-69.100246955019401, -18.260125420812653], [-68.966818406841824, -18.981683444904089], [-68.442225104430918, -19.405068454671419], [-68.757167121033703, -20.37265797290447], [-68.219913092711224, -21.49434661223183]]]] } }, + { "type": "Feature", "properties": { "admin": "China", "name": "China", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[110.339187860151526, 18.678395087147603], [109.475209588663702, 18.19770091396861], [108.655207961056135, 18.507681993071397], [108.626217482540426, 19.367887885001974], [109.119055617308007, 19.821038519769385], [110.211598748822837, 20.101253973872073], [110.786550734502228, 20.077534491450077], [111.01005130416462, 19.695929877190732], [110.570646600386794, 19.255879218009305], [110.339187860151526, 18.678395087147603]]], [[[127.657407261262378, 49.760270494172929], [129.397817824420429, 49.440600084015429], [130.58229332898236, 48.729687404976112], [130.987281528853828, 47.790132351261391], [132.506671991099495, 47.788969631534876], [133.373595819228001, 48.183441677434914], [135.026311476786702, 48.478229885443902], [134.500813836810607, 47.578439846377833], [134.112362095272601, 47.212467352886719], [133.76964399631288, 46.116926988299056], [133.097126906466428, 45.14406647397216], [131.883454217659562, 45.32116160743643], [131.025212030156069, 44.967953192721573], [131.288555129115537, 44.111519680348252], [131.144687941614848, 42.929989732426932], [130.633866408409801, 42.903014634770543], [130.640015903852429, 42.39500946712527], [129.994267205933227, 42.985386867843793], [129.596668735879462, 42.424981797854592], [128.05221520397231, 41.994284572917984], [128.208433058790717, 41.466771552082534], [127.343782993683021, 41.503151760415953], [126.869083286649854, 41.816569322266155], [126.18204511932943, 41.107336127276362], [125.079941847840587, 40.569823716792449], [124.265624627785314, 39.928493353834135], [122.86757042856101, 39.637787583976255], [122.131387974130917, 39.170451768544623], [121.054554478032856, 38.89747101496291], [121.585994907722466, 39.360853583324136], [121.376757033372641, 39.750261338859524], [122.168595005381007, 40.422442531896046], [121.640358514493528, 40.946389878903304], [120.768628778161954, 40.593388169917596], [119.639602085449056, 39.898055935214209], [119.023463983233015, 39.252333075511096], [118.042748651197897, 39.204273993479674], [117.532702264477052, 38.73763580988409], [118.05969852098967, 38.061475531561051], [118.878149855628351, 37.897325344385898], [118.911636183753501, 37.448463853498723], [119.702802362142037, 37.156388658185072], [120.823457472823648, 37.870427761377968], [121.711258579597938, 37.481123358707165], [122.357937453298462, 37.454484157860684], [122.519994744965814, 36.930614325501828], [121.104163853033029, 36.651329047180432], [120.63700890511457, 36.111439520811125], [119.66456180224607, 35.609790554337728], [119.151208123858567, 34.909859117160458], [120.227524855633717, 34.360331936168613], [120.620369093916565, 33.37672272392512], [121.229014113450219, 32.460318711877186], [121.908145786630044, 31.692174384074683], [121.891919386890336, 30.949351508095098], [121.264257440273298, 30.676267401648712], [121.503519321784722, 30.14291494396425], [122.092113885589086, 29.832520453403156], [121.93842817595305, 29.018022365834803], [121.684438511238469, 28.225512600206677], [121.125661248866436, 28.135673122667178], [120.395473260582307, 27.053206895449385], [119.585496860839555, 25.740780544532605], [118.656871372554519, 24.547390855400234], [117.281606479970833, 23.624501451099714], [115.890735304835118, 22.782873236578094], [114.763827345846209, 22.668074042241663], [114.152546828265656, 22.223760077396204], [113.806779819800752, 22.548339748621423], [113.241077915501592, 22.051367499270462], [111.843592157032447, 21.550493679281512], [110.78546552942413, 21.39714386645533], [110.444039341271662, 20.34103261970639], [109.88986128137357, 20.282457383703441], [109.627655063924635, 21.008227037026725], [109.864488153118316, 21.395050970947516], [108.522812941524421, 21.715212307211821], [108.050180291782979, 21.552379869060101], [107.043420037872636, 21.8118989120299], [106.567273390735352, 22.21820486092474], [106.725403273548466, 22.794267889898375], [105.811247186305209, 22.976892401617899], [105.329209425886631, 23.352063300056976], [104.476858351664475, 22.819150092046918], [103.504514601660503, 22.703756618739217], [102.706992222100155, 22.708795070887696], [102.170435825613552, 22.464753119389336], [101.652017856861576, 22.318198757409554], [101.803119744882906, 21.174366766845051], [101.27002566936001, 21.201651923095167], [101.180005324307558, 21.436572984294052], [101.150032993578236, 21.849984442629015], [100.416537713627349, 21.558839423096654], [99.983489211021549, 21.742936713136451], [99.240898878987196, 22.118314317304559], [99.53199222208741, 22.949038804612591], [98.898749220782804, 23.142722072842581], [98.66026248575578, 24.063286037690002], [97.604719679762027, 23.897404690033049], [97.724609002679131, 25.083637193293036], [98.671838006589212, 25.91870250091349], [98.712093947344556, 26.743535874940243], [98.682690057370507, 27.508812160750658], [98.246230910233351, 27.747221381129172], [97.91198774616943, 28.335945136014367], [97.327113885490007, 28.261582749946339], [96.248833449287829, 28.411030992134467], [96.586590610747521, 28.830979519154361], [96.117678664131006, 29.452802028922513], [95.404802280664626, 29.031716620392157], [94.565990431702929, 29.27743805593996], [93.413347609432662, 28.640629380807233], [92.503118931043616, 27.896876329046442], [91.696656528696693, 27.771741848251615], [91.258853794319876, 28.040614325466343], [90.730513950567797, 28.064953925075738], [90.015828891971182, 28.296438503527177], [89.475810174521158, 28.042758897406365], [88.814248488320573, 27.299315904239389], [88.730325962278528, 28.086864732367552], [88.120440708369941, 27.876541652939572], [86.954517043000635, 27.974261786403524], [85.823319940131526, 28.203575954698742], [85.011638218123053, 28.642773952747369], [84.23457970575015, 28.839893703724691], [83.89899295444674, 29.320226141877633], [83.337115106137176, 29.463731594352193], [82.327512648450877, 30.115268052688204], [81.525804477874786, 30.422716986608659], [81.111256138029276, 30.183480943313402], [79.721366815107118, 30.882714748654728], [78.738894484374001, 31.515906073527045], [78.458446486326025, 32.61816437431272], [79.176128777995544, 32.483779812137747], [79.208891636068543, 32.994394639613738], [78.811086460285722, 33.506198025032397], [78.912268914713209, 34.321936346975768], [77.83745079947461, 35.494009507787794], [76.192848341785705, 35.89840342868785], [75.896897414050173, 36.666806138651872], [75.158027785140987, 37.133030910789152], [74.980002475895404, 37.419990139305888], [74.829985792952144, 37.990007025701445], [74.864815708316783, 38.378846340481587], [74.25751427602269, 38.606506862943476], [73.928852166646394, 38.505815334622717], [73.675379266254836, 39.431236884105566], [73.960013055318427, 39.660008449861714], [73.822243686828315, 39.893973497063136], [74.776862420556043, 40.366425279291619], [75.467827996730719, 40.56207225194867], [76.526368035797432, 40.427946071935132], [76.90448449087711, 41.066485907549648], [78.187196893226044, 41.185315863604799], [78.543660923175253, 41.582242540038713], [80.119430373051401, 42.12394074153822], [80.259990268885318, 42.34999929459908], [80.180150180994374, 42.920067857426844], [80.866206496101213, 43.180362046881008], [79.966106398441426, 44.917516994804622], [81.947070753918084, 45.317027492853143], [82.458925815769035, 45.539649563166499], [83.180483839860543, 47.330031236350735], [85.164290399113213, 47.000955715516099], [85.720483839870667, 47.452969468773077], [85.76823286330837, 48.455750637396896], [86.59877648310335, 48.549181626980605], [87.359970330762692, 49.214980780629148], [87.751264276076668, 49.297197984405464], [88.013832228551678, 48.599462795600594], [88.854297723346747, 48.069081732773007], [90.280825636763893, 47.693549099307901], [90.970809360724957, 46.88814606382293], [90.585768263718307, 45.719716091487491], [90.945539585334316, 45.286073309910243], [92.133890822318222, 45.115075995456429], [93.480733677141316, 44.97547211362], [94.688928664125356, 44.352331854828456], [95.306875441471504, 44.241330878265458], [95.762454868556688, 43.319449164394619], [96.349395786527808, 42.725635280928643], [97.451757440177971, 42.74888967546007], [99.515817498779995, 42.524691473961688], [100.845865513108279, 42.663804429691417], [101.833040399179936, 42.51487295182627], [103.312278273534787, 41.907468166667613], [104.522281935649005, 41.90834666601662], [104.964993931093431, 41.597409572916334], [106.129315627061658, 42.134327704428891], [107.744772576937976, 42.481515814781908], [109.243595819131428, 42.519446316084149], [110.412103306115299, 42.871233628911014], [111.129682244920218, 43.406834011400171], [111.82958784388137, 43.743118394539486], [111.667737257943202, 44.073175767587706], [111.348376906379428, 44.457441718110047], [111.87330610560025, 45.102079372735112], [112.436062453258842, 45.01164561622425], [113.463906691544196, 44.808893134127111], [114.46033165899604, 45.339816799493875], [115.985096470200133, 45.727235012386004], [116.717868280098855, 46.38820241961524], [117.421701287914246, 46.67273285581421], [118.874325799638711, 46.805412095723646], [119.663269891438745, 46.692679958678944], [119.772823927897562, 47.048058783550132], [118.866574334794947, 47.747060044946195], [118.064142694166719, 48.06673045510373], [117.295507440257438, 47.697709052107385], [116.308952671373234, 47.853410142602812], [115.742837355615734, 47.726544501326273], [115.485282017073018, 48.135382595403442], [116.191802199367601, 49.134598090199056], [116.67880089728618, 49.888531399121398], [117.879244419426371, 49.510983384796944], [119.288460728025839, 50.142882798862033], [119.279365675942358, 50.582907619827282], [120.182049595216924, 51.64356639261802], [120.738191359541972, 51.964115302124547], [120.725789015791975, 52.516226304730814], [120.177088657716865, 52.753886216841195], [121.003084751470226, 53.251401068731226], [122.245747918792858, 53.431725979213681], [123.571506789240843, 53.458804429734627], [125.068211297710434, 53.161044826868832], [125.946348911646169, 52.792798570356936], [126.564399041856959, 51.784255479532689], [126.939156528837657, 51.353894151405896], [127.287455682484904, 50.739797268265434], [127.657407261262378, 49.760270494172929]]]] } }, + { "type": "Feature", "properties": { "admin": "Ivory Coast", "name": "Cte d'Ivoire", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.856125047202397, 4.994475816259508], [-3.311084357100071, 4.984295559098014], [-4.008819545904941, 5.179813340674314], [-4.64991736491791, 5.168263658057084], [-5.834496222344525, 4.993700669775135], [-6.528769090185845, 4.705087795425015], [-7.518941209330434, 4.338288479017307], [-7.712159389669749, 4.364565944837721], [-7.63536821128403, 5.188159084489455], [-7.53971513511176, 5.313345241716517], [-7.570152553731686, 5.707352199725903], [-7.993692592795879, 6.126189683451541], [-8.311347622094017, 6.193033148621081], [-8.602880214868618, 6.467564195171659], [-8.385451626000572, 6.911800645368742], [-8.485445522485348, 7.395207831243068], [-8.439298468448696, 7.686042792181736], [-8.280703497744936, 7.687179673692156], [-8.221792364932197, 8.123328762235571], [-8.299048631208562, 8.316443589710302], [-8.203498907900878, 8.455453192575446], [-7.832100389019186, 8.575704250518625], [-8.079113735374348, 9.376223863152033], [-8.309616461612249, 9.789531968622439], [-8.22933712404682, 10.129020290563897], [-8.029943610048617, 10.206534939001711], [-7.89958980959237, 10.297382106970824], [-7.622759161804808, 10.147236232946792], [-6.850506557635057, 10.138993841996237], [-6.666460944027547, 10.430810655148447], [-6.493965013037267, 10.411302801958268], [-6.205222947606429, 10.524060777219132], [-6.050452032892266, 10.096360785355442], [-5.816926235365286, 10.222554633012191], [-5.404341599946973, 10.370736802609144], [-4.954653286143098, 10.152713934769732], [-4.779883592131966, 9.821984768101741], [-4.330246954760383, 9.610834865757139], [-3.980449184576684, 9.862344061721698], [-3.511898972986272, 9.900326239456216], [-2.827496303712706, 9.642460842319775], [-2.56218950032624, 8.219627793811481], [-2.983584967450326, 7.379704901555511], [-3.244370083011261, 6.2504715031135], [-2.810701463217839, 5.389051215024109], [-2.856125047202397, 4.994475816259508]]] } }, + { "type": "Feature", "properties": { "admin": "Cameroon", "name": "Cameroon", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[13.07582238124675, 2.267097072759014], [12.951333855855605, 2.321615708826939], [12.359380323952218, 2.19281220133945], [11.751665480199787, 2.326757513839993], [11.276449008843711, 2.261050930180871], [9.649158155972627, 2.283866075037735], [9.795195753629455, 3.073404445809117], [9.404366896205998, 3.734526882335202], [8.948115675501068, 3.904128933117135], [8.744923943729416, 4.352215277519959], [8.488815545290889, 4.495617377129917], [8.500287713259693, 4.771982937026847], [8.757532993208626, 5.47966583904791], [9.233162876023043, 6.444490668153334], [9.522705926154398, 6.453482367372116], [10.118276808318255, 7.038769639509879], [10.497375115611417, 7.055357774275562], [11.058787876030349, 6.644426784690593], [11.745774366918509, 6.981382961449753], [11.839308709366801, 7.397042344589434], [12.063946160539556, 7.799808457872301], [12.218872104550597, 8.305824082874322], [12.753671502339214, 8.717762762888993], [12.955467970438971, 9.417771714714702], [13.1675997249971, 9.64062632897341], [13.308676385153914, 10.160362046748926], [13.572949659894558, 10.798565985553564], [14.415378859116682, 11.572368882692071], [14.468192172918974, 11.90475169519341], [14.57717776862253, 12.085360826053501], [14.181336297266792, 12.483656927943112], [14.213530714584634, 12.802035427293344], [14.495787387762842, 12.859396267137326], [14.893385857816522, 12.219047756392582], [14.960151808337598, 11.555574042197222], [14.923564894274955, 10.891325181517471], [15.467872755605269, 9.982336737503429], [14.909353875394713, 9.99212942142273], [14.627200555081057, 9.920919297724536], [14.171466098699025, 10.021378282099928], [13.954218377344002, 9.549494940626685], [14.544466586981766, 8.965861314322266], [14.979995558337688, 8.796104234243471], [15.120865512765331, 8.382150173369423], [15.436091749745765, 7.692812404811971], [15.279460483469107, 7.421924546737968], [14.776545444404572, 6.408498033062044], [14.536560092841111, 6.22695872642069], [14.459407179429345, 5.451760565610299], [14.558935988023501, 5.03059764243153], [14.478372430080466, 4.732605495620446], [14.950953403389658, 4.21038930909492], [15.036219516671249, 3.851367295747123], [15.405395948964379, 3.335300604664339], [15.862732374747479, 3.013537298998982], [15.907380812247649, 2.557389431158612], [16.01285241055535, 2.267639675298084], [15.940918816805061, 1.727672634280295], [15.14634199388524, 1.964014797367184], [14.337812534246577, 2.22787466064949], [13.07582238124675, 2.267097072759014]]] } }, + { "type": "Feature", "properties": { "admin": "Democratic Republic of the Congo", "name": "Dem. Rep. Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[30.833859897593801, 3.50916596111034], [30.773346795380036, 2.339883327642127], [31.174149204235807, 2.204465236821263], [30.852670118948048, 1.849396470543809], [30.468507521290292, 1.58380544677972], [30.086153598762703, 1.062312730306288], [29.875778842902488, 0.597379868976304], [29.819503208136634, -0.205310153813372], [29.587837762172164, -0.58740569417948], [29.579466180140876, -1.341313164885626], [29.29188683443661, -1.620055840667987], [29.254834832483336, -2.215109958508911], [29.117478875451546, -2.292211195488384], [29.02492638521678, -2.839257907730157], [29.276383904749046, -3.293907159034063], [29.339997592900342, -4.499983412294092], [29.519986606572925, -5.419978936386313], [29.41999271008816, -5.939998874539432], [29.620032179490003, -6.520015150583424], [30.199996779101692, -7.079980970898161], [30.740015496551781, -8.340007419470913], [30.34608605319081, -8.238256524288216], [29.002912225060467, -8.40703175215347], [28.734866570762495, -8.526559340044576], [28.449871046672818, -9.164918308146083], [28.673681674928922, -9.605924981324931], [28.496069777141763, -10.789883721564044], [28.372253045370421, -11.793646742401389], [28.642417433392346, -11.971568698782312], [29.341547885869087, -12.36074391037241], [29.616001417771223, -12.178894545137307], [29.699613885219485, -13.257226657771827], [28.934285922976834, -13.248958428605132], [28.52356163912102, -12.698604424696679], [28.15510867687998, -12.272480564017894], [27.38879886242378, -12.132747491100663], [27.164419793412456, -11.608748467661071], [26.55308759939961, -11.924439792532125], [25.752309604604726, -11.784965101776356], [25.418118116973197, -11.330935967659958], [24.783169793402948, -11.238693536018962], [24.314516228947948, -11.262826429899269], [24.257155389103982, -10.951992689663655], [23.912215203555714, -10.926826267137512], [23.456790805767433, -10.867863457892481], [22.837345411884733, -11.017621758674329], [22.402798292742371, -10.99307545333569], [22.155268182064304, -11.084801120653768], [22.208753289486388, -9.894796237836507], [21.87518191904234, -9.523707777548564], [21.801801385187897, -8.908706556842978], [21.949130893652036, -8.305900974158275], [21.746455926203303, -7.920084730667147], [21.728110792739695, -7.2908724910813], [20.514748162526498, -7.299605808138629], [20.601822950938292, -6.93931772219968], [20.091621534920645, -6.943090101756993], [20.037723016040214, -7.116361179231644], [19.417502475673157, -7.155428562044297], [19.166613396896107, -7.738183688999753], [19.016751743249664, -7.988245944860132], [18.464175652752683, -7.847014255406442], [18.134221632569048, -7.98767750410492], [17.472970004962232, -8.068551120641699], [17.089995965247166, -7.545688978712525], [16.860190870845198, -7.222297865429984], [16.573179965896141, -6.622644545115087], [16.326528354567042, -5.877470391466267], [13.375597364971892, -5.864241224799548], [13.02486941900696, -5.984388929878157], [12.735171339578695, -5.965682061388497], [12.322431674863507, -6.100092461779658], [12.182336866920249, -5.789930515163837], [12.436688266660866, -5.684303887559245], [12.468004184629734, -5.248361504745003], [12.631611769265788, -4.991271254092935], [12.995517205465173, -4.781103203961883], [13.258240187237044, -4.882957452009165], [13.600234816144676, -4.500138441590969], [14.144956088933295, -4.510008640158715], [14.209034864975219, -4.793092136253597], [14.582603794013179, -4.970238946150139], [15.170991652088441, -4.3435071753143], [15.753540073314749, -3.855164890156096], [16.006289503654298, -3.535132744972528], [15.972803175529149, -2.712392266453612], [16.407091912510051, -1.740927015798682], [16.86530683764212, -1.225816338713287], [17.523716261472853, -0.743830254726987], [17.638644646889983, -0.424831638189246], [17.663552687254676, -0.058083998213817], [17.826540154703245, 0.288923244626105], [17.774191928791563, 0.855658677571085], [17.89883548347958, 1.741831976728278], [18.09427575040743, 2.365721543788055], [18.39379235197114, 2.90044342692822], [18.453065219809925, 3.504385891123348], [18.542982211997778, 4.201785183118317], [18.932312452884755, 4.709506130385973], [19.467783644293146, 5.031527818212779], [20.290679152108932, 4.691677761245287], [20.927591180106273, 4.322785549329736], [21.659122755630019, 4.224341945813719], [22.405123732195531, 4.02916006104732], [22.704123569436284, 4.633050848810156], [22.841479526468103, 4.710126247573483], [23.297213982850135, 4.609693101414221], [24.41053104014625, 5.108784084489129], [24.805028924262409, 4.897246608902349], [25.128833449003274, 4.927244777847789], [25.278798455514302, 5.170408229997191], [25.650455356557465, 5.256087754737123], [26.402760857862535, 5.150874538590869], [27.044065382604703, 5.127852688004835], [27.374226108517483, 5.233944403500059], [27.979977247842807, 4.408413397637373], [28.428993768026906, 4.287154649264493], [28.696677687298795, 4.455077215996936], [29.159078403446497, 4.38926727947323], [29.715995314256013, 4.600804755060024], [29.953500197069467, 4.173699042167683], [30.833859897593801, 3.50916596111034]]] } }, + { "type": "Feature", "properties": { "admin": "Republic of Congo", "name": "Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[12.995517205465173, -4.781103203961883], [12.620759718484491, -4.438023369976135], [12.318607618873923, -4.606230157086187], [11.914963006242086, -5.037986748884789], [11.093772820691923, -3.978826592630546], [11.855121697648114, -3.42687061932105], [11.478038771214299, -2.765618991714241], [11.820963575903189, -2.514161472181982], [12.495702752338159, -2.391688327650242], [12.575284458067639, -1.948511244315134], [13.109618767965626, -2.428740329603513], [13.992407260807706, -2.470804945489099], [14.299210239324564, -1.998275648612213], [14.425455763413593, -1.333406670744971], [14.316418491277741, -0.552627455247048], [13.843320753645653, 0.038757635901149], [14.276265903386953, 1.196929836426619], [14.026668735417214, 1.395677395021153], [13.282631463278816, 1.31418366129688], [13.003113641012074, 1.830896307783319], [13.07582238124675, 2.267097072759014], [14.337812534246577, 2.22787466064949], [15.14634199388524, 1.964014797367184], [15.940918816805061, 1.727672634280295], [16.01285241055535, 2.267639675298084], [16.537058139724135, 3.198254706226278], [17.133042433346297, 3.728196519379451], [17.809900343505259, 3.560196437998569], [18.453065219809925, 3.504385891123348], [18.39379235197114, 2.90044342692822], [18.09427575040743, 2.365721543788055], [17.89883548347958, 1.741831976728278], [17.774191928791563, 0.855658677571085], [17.826540154703245, 0.288923244626105], [17.663552687254676, -0.058083998213817], [17.638644646889983, -0.424831638189246], [17.523716261472853, -0.743830254726987], [16.86530683764212, -1.225816338713287], [16.407091912510051, -1.740927015798682], [15.972803175529149, -2.712392266453612], [16.006289503654298, -3.535132744972528], [15.753540073314749, -3.855164890156096], [15.170991652088441, -4.3435071753143], [14.582603794013179, -4.970238946150139], [14.209034864975219, -4.793092136253597], [14.144956088933295, -4.510008640158715], [13.600234816144676, -4.500138441590969], [13.258240187237044, -4.882957452009165], [12.995517205465173, -4.781103203961883]]] } }, + { "type": "Feature", "properties": { "admin": "Colombia", "name": "Colombia", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-75.373223232713841, -0.15203175212045], [-75.801465827116587, 0.084801337073202], [-76.292314419240938, 0.416047268064119], [-76.576379767549383, 0.256935533037435], [-77.424984300430367, 0.395686753741117], [-77.668612840470416, 0.825893052570961], [-77.855061408179509, 0.809925034992773], [-78.855258755188686, 1.380923773601822], [-78.990935228171026, 1.691369940595251], [-78.617831387023699, 1.766404120283056], [-78.662118089497838, 2.267355454920476], [-78.427610439757302, 2.629555568854215], [-77.931542527971473, 2.696605739752925], [-77.510431281224996, 3.325016994638246], [-77.127689785455246, 3.849636135265356], [-77.496271938776999, 4.087606105969427], [-77.307601284479375, 4.667984117039452], [-77.533220587865713, 5.582811997902496], [-77.318815070286718, 5.845354112161359], [-77.476660732722266, 6.691116441266301], [-77.881571417945239, 7.223771267114783], [-77.75341386586139, 7.709839789252141], [-77.431107957656977, 7.638061224798733], [-77.242566494440069, 7.935278225125442], [-77.474722866511314, 8.524286200388216], [-77.353360765273848, 8.670504665558068], [-76.836673957003541, 8.638749497914715], [-76.086383836557843, 9.336820583529486], [-75.674600185840035, 9.443248195834597], [-75.664704149056149, 9.774003200718736], [-75.480425991503338, 10.618990383339305], [-74.906895107711975, 11.08304474532032], [-74.276752692344871, 11.102035834187586], [-74.197222663047683, 11.310472723836865], [-73.414763963500278, 11.227015285685479], [-72.62783525255962, 11.731971543825519], [-72.238194953078903, 11.955549628136325], [-71.754090135368628, 12.437303168177305], [-71.399822353791691, 12.376040757695289], [-71.137461107045866, 12.112981879113503], [-71.331583624950284, 11.776284084515805], [-71.973921678338272, 11.608671576377116], [-72.227575446242923, 11.108702093953237], [-72.614657762325194, 10.821975409381777], [-72.905286017534692, 10.45034434655477], [-73.027604132769554, 9.736770331252441], [-73.304951544880026, 9.151999823437604], [-72.788729824500379, 9.085027167187331], [-72.660494757768092, 8.62528778730268], [-72.439862230097944, 8.405275376820027], [-72.360900641555958, 8.002638454617893], [-72.479678921178831, 7.632506008327352], [-72.444487270788059, 7.42378489830048], [-72.19835242378187, 7.340430813013682], [-71.960175747348629, 6.991614895043538], [-70.674233567981503, 7.087784735538717], [-70.093312954372408, 6.960376491723109], [-69.389479946557103, 6.099860541198835], [-68.985318569602327, 6.206804917826856], [-68.265052456318216, 6.153268133972473], [-67.695087246355001, 6.267318020040645], [-67.34143958196556, 6.095468044454021], [-67.521531948502741, 5.556870428891968], [-67.744696621355203, 5.221128648291667], [-67.823012254493534, 4.503937282728898], [-67.621835903581271, 3.839481716319994], [-67.33756384954367, 3.542342230641721], [-67.303173183853417, 3.31845408773718], [-67.809938117123693, 2.820655015469569], [-67.447092047786299, 2.600280869960869], [-67.181294318293041, 2.250638129074062], [-66.876325853122566, 1.253360500489336], [-67.065048183852483, 1.130112209473225], [-67.25999752467358, 1.719998684084956], [-67.537810024674684, 2.037162787276329], [-67.868565029558823, 1.692455145673392], [-69.816973232691609, 1.714805202639624], [-69.804596727157701, 1.089081122233466], [-69.218637661400166, 0.985676581217433], [-69.252434048119042, 0.602650865070075], [-69.452396002872447, 0.706158758950693], [-70.015565761989293, 0.541414292804205], [-70.02065589057004, -0.185156345219539], [-69.577065395776586, -0.549991957200163], [-69.420485805932216, -1.122618503426409], [-69.444101935489599, -1.556287123219817], [-69.893635219996611, -4.298186944194326], [-70.394043952094975, -3.766591485207825], [-70.692682054309699, -3.742872002785858], [-70.047708502874841, -2.725156345229699], [-70.813475714791949, -2.256864515800742], [-71.413645799429773, -2.342802422702128], [-71.774760708285385, -2.169789727388937], [-72.325786505813639, -2.434218031426453], [-73.070392218707212, -2.308954359550952], [-73.659503546834586, -1.260491224781134], [-74.122395189089048, -1.002832533373848], [-74.441600511355958, -0.530820000819887], [-75.106624518520064, -0.05720549886486], [-75.373223232713841, -0.15203175212045]]] } }, + { "type": "Feature", "properties": { "admin": "Costa Rica", "name": "Costa Rica", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-82.965783047197348, 8.225027980985983], [-83.508437262694287, 8.446926581247281], [-83.711473965169063, 8.656836249216864], [-83.596313035806631, 8.830443223501417], [-83.632641567707822, 9.051385809765319], [-83.909885626953724, 9.290802720573579], [-84.303401658856345, 9.487354030795712], [-84.64764421256865, 9.615537421095707], [-84.713350796227743, 9.908051866083849], [-84.975660366541319, 10.086723130733004], [-84.911374884770211, 9.795991522658921], [-85.110923428065291, 9.557039699741308], [-85.339488288092255, 9.834542141148658], [-85.660786505866966, 9.93334747969072], [-85.797444831062819, 10.134885565629032], [-85.791708747078417, 10.439337266476612], [-85.65931372754666, 10.754330959511718], [-85.941725430021748, 10.895278428587799], [-85.712540452807289, 11.088444932494822], [-85.561851976244171, 11.217119248901593], [-84.903003302738924, 10.952303371621895], [-84.673069017256239, 11.082657172078139], [-84.355930752281026, 10.999225572142901], [-84.190178595704822, 10.793450018756671], [-83.895054490885926, 10.726839097532444], [-83.655611741861563, 10.938764146361418], [-83.402319708982944, 10.39543813724465], [-83.015676642575158, 9.992982082555553], [-82.546196255203469, 9.566134751824674], [-82.932890998043561, 9.476812038608172], [-82.927154914059145, 9.074330145702914], [-82.719183112300513, 8.925708726431493], [-82.868657192704759, 8.807266343618521], [-82.829770677405151, 8.626295477732368], [-82.9131764391242, 8.423517157419068], [-82.965783047197348, 8.225027980985983]]] } }, + { "type": "Feature", "properties": { "admin": "Cuba", "name": "Cuba", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-82.268151211257035, 23.188610744717703], [-81.404457160146819, 23.117271429938775], [-80.61876868358118, 23.105980129482994], [-79.679523688460222, 22.765303249598823], [-79.281485968732071, 22.399201565027049], [-78.347434455056472, 22.512166246017085], [-77.993295864560253, 22.277193508385928], [-77.146422492161037, 21.657851467367831], [-76.523824835908528, 21.20681956632437], [-76.194620123993175, 21.220565497314006], [-75.598222418912655, 21.01662445727413], [-75.671060350228032, 20.735091254147999], [-74.933896043584483, 20.693905137611381], [-74.178024868451246, 20.284627793859737], [-74.296648118777242, 20.050378526280678], [-74.961594611292924, 19.923435370355687], [-75.634680141894577, 19.873774318923193], [-76.323656175425981, 19.952890936762056], [-77.755480923153044, 19.855480861891873], [-77.085108405246729, 20.413353786698789], [-77.492654588516601, 20.673105373613886], [-78.137292243141573, 20.739948838783427], [-78.482826707661161, 21.028613389565848], [-78.719866502583997, 21.598113511638431], [-79.284999966127913, 21.559175319906497], [-80.217475348618635, 21.827324327069032], [-80.517534552721401, 22.037078965741756], [-81.820943366203167, 22.192056586185068], [-82.169991828118611, 22.387109279870746], [-81.79500179719264, 22.636964830001951], [-82.775897996740838, 22.688150336187057], [-83.494458787759328, 22.168517971276124], [-83.908800421875611, 22.154565334557329], [-84.052150845053248, 21.910575059491251], [-84.547030198896351, 21.801227728761639], [-84.974911058273079, 21.896028143801082], [-84.44706214062775, 22.204949856041903], [-84.23035702181177, 22.56575470630376], [-83.778239915690165, 22.78811839445569], [-83.267547573565736, 22.983041897060641], [-82.510436164057495, 23.078746649665181], [-82.268151211257035, 23.188610744717703]]] } }, + { "type": "Feature", "properties": { "admin": "Northern Cyprus", "name": "N. Cyprus", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[32.731780226377445, 35.14002594658843], [32.802473585752743, 35.145503648411363], [32.946960890440799, 35.38670339613369], [33.667227003724939, 35.373215847305509], [34.576473829900458, 35.671595567358786], [33.900804477684197, 35.245755927057608], [33.973616570783456, 35.058506374647997], [33.866439650210104, 35.093594672174177], [33.675391880027057, 35.017862860650446], [33.525685255677494, 35.038688462864066], [33.475817498515845, 35.000344550103499], [33.45592207208346, 35.101423651666401], [33.383833449036295, 35.162711900364563], [33.190977003723042, 35.173124701471373], [32.919572381326127, 35.087832749973636], [32.731780226377445, 35.14002594658843]]] } }, + { "type": "Feature", "properties": { "admin": "Cyprus", "name": "Cyprus", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[33.973616570783456, 35.058506374647997], [34.004880812320032, 34.978097846001852], [32.97982710137844, 34.571869411755436], [32.490296258277532, 34.701654771456468], [32.256667107885953, 35.103232326796622], [32.731780226377445, 35.14002594658843], [32.919572381326127, 35.087832749973636], [33.190977003723042, 35.173124701471373], [33.383833449036295, 35.162711900364563], [33.45592207208346, 35.101423651666401], [33.475817498515845, 35.000344550103499], [33.525685255677494, 35.038688462864066], [33.675391880027057, 35.017862860650446], [33.866439650210104, 35.093594672174177], [33.973616570783456, 35.058506374647997]]] } }, + { "type": "Feature", "properties": { "admin": "Czech Republic", "name": "Czech Rep.", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[16.960288120194573, 48.596982326850593], [16.49928266771877, 48.785808010445095], [16.029647251050218, 48.733899034207916], [15.253415561593979, 49.039074205107575], [14.901447381254055, 48.964401760445817], [14.33889773932472, 48.555305284207193], [13.595945672264433, 48.877171942737135], [13.031328973043427, 49.307068182973232], [12.52102420416119, 49.54741526956272], [12.415190870827441, 49.96912079528056], [12.240111118222556, 50.266337795607271], [12.96683678554319, 50.484076443069071], [13.338131951560282, 50.733234361364346], [14.05622765468817, 50.926917629594286], [14.307013380600633, 51.117267767941399], [14.570718214586062, 51.002339382524262], [15.016995883858666, 51.106674099321566], [15.490972120839725, 50.7847299261432], [16.238626743238566, 50.697732652379827], [16.176253289462263, 50.4226073268579], [16.719475945714429, 50.215746568393527], [16.868769158605655, 50.473973700556016], [17.554567091551117, 50.36214590107641], [17.649445021238986, 50.049038397819942], [18.392913852622168, 49.988628648470737], [18.85314415861361, 49.496229763377634], [18.554971144289478, 49.495015367218777], [18.399993523846174, 49.315000515330034], [18.170498488037961, 49.271514797556421], [18.104972771891848, 49.043983466175298], [17.913511590250462, 48.996492824899072], [17.886484816161808, 48.903475246773695], [17.545006951577101, 48.800019029325362], [17.101984897538895, 48.8169688991171], [16.960288120194573, 48.596982326850593]]] } }, + { "type": "Feature", "properties": { "admin": "Germany", "name": "Germany", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[9.92190636560923, 54.983104153048025], [9.939579705452898, 54.596641954153242], [10.950112338920517, 54.363607082733147], [10.939466993868447, 54.008693345752583], [11.95625247564328, 54.196485500701144], [12.518440382546711, 54.470370591847988], [13.647467075259495, 54.075510972705885], [14.119686313542555, 53.757029120491026], [14.353315463934164, 53.248171291713092], [14.074521111719431, 52.981262518925334], [14.437599725002197, 52.62485016540829], [14.685026482815713, 52.089947414755208], [14.607098422919645, 51.745188096719964], [15.016995883858781, 51.106674099321701], [14.570718214586119, 51.002339382524369], [14.307013380600662, 51.117267767941364], [14.05622765468831, 50.92691762959435], [13.338131951560397, 50.733234361364268], [12.966836785543249, 50.484076443069164], [12.240111118222668, 50.266337795607214], [12.41519087082747, 49.969120795280602], [12.521024204161332, 49.547415269562741], [13.031328973043513, 49.307068182973232], [13.595945672264575, 48.877171942737156], [13.243357374737112, 48.416114813829026], [12.884102817443873, 48.289145819687846], [13.025851271220514, 47.637583523135945], [12.93262698736606, 47.467645575543983], [12.620759718484519, 47.672387600284409], [12.141357456112869, 47.703083401065768], [11.426414015354847, 47.523766181013045], [10.544504021861597, 47.566399237653783], [10.402083774465321, 47.302487697939164], [9.896068149463188, 47.58019684507569], [9.594226108446376, 47.525058091820185], [8.522611932009793, 47.830827541691342], [8.317301466514092, 47.613579820336263], [7.466759067422286, 47.620581976911907], [7.59367638513106, 48.333019110703724], [8.099278598674855, 49.017783515003423], [6.658229607783709, 49.201958319691627], [6.186320428094176, 49.4638028021145], [6.242751092156992, 49.90222565367872], [6.043073357781109, 50.128051662794221], [6.156658155958779, 50.803721015010574], [5.988658074577812, 51.85161570902504], [6.589396599970825, 51.85202912048338], [6.842869500362381, 52.228440253297542], [7.092053256873895, 53.14404328064488], [6.905139601274128, 53.482162177130633], [7.100424838905268, 53.693932196662658], [7.936239454793961, 53.748295803433777], [8.121706170289483, 53.527792466844275], [8.800734490604667, 54.02078563090889], [8.572117954145368, 54.395646470754045], [8.526229282270206, 54.962743638725144], [9.282048780971136, 54.830865383516297], [9.92190636560923, 54.983104153048025]]] } }, + { "type": "Feature", "properties": { "admin": "Djibouti", "name": "Djibouti", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[43.081226027200152, 12.699638576707112], [43.317852410664663, 12.390148423711022], [43.286381463398911, 11.974928290245883], [42.715873650896519, 11.735640570518338], [43.145304803242126, 11.462039699748853], [42.776851841000948, 10.926878566934416], [42.55493000000012, 11.105110000000193], [42.314140000000116, 11.0342], [41.755570000000191, 11.05091], [41.739590000000177, 11.355110000000137], [41.661760000000122, 11.6312], [42.000000000000107, 12.100000000000133], [42.351560000000106, 12.54223000000013], [42.779642368344739, 12.455415757695672], [43.081226027200152, 12.699638576707112]]] } }, + { "type": "Feature", "properties": { "admin": "Denmark", "name": "Denmark", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[12.690006137755629, 55.60999095318077], [12.089991082414738, 54.800014553437919], [11.043543328504226, 55.36486379660424], [10.90391360845163, 55.779954738988735], [12.370904168353288, 56.111407375708822], [12.690006137755629, 55.60999095318077]]], [[[10.912181837618359, 56.4586213242779], [10.667803989309986, 56.081383368547208], [10.369992710011983, 56.190007229224719], [9.649984978889306, 55.469999498102041], [9.921906365609173, 54.983104153048046], [9.282048780971136, 54.830865383516155], [8.526229282270235, 54.962743638724973], [8.120310906617588, 55.517722683323612], [8.089976840862247, 56.540011705137587], [8.256581658571262, 56.809969387430286], [8.543437534223385, 57.110002753316891], [9.424469028367609, 57.172066148499468], [9.775558709358561, 57.447940782289649], [10.580005730846151, 57.730016587954843], [10.54610599126269, 57.21573273378614], [10.250000034230222, 56.890016181050456], [10.369992710011983, 56.60998159446082], [10.912181837618359, 56.4586213242779]]]] } }, + { "type": "Feature", "properties": { "admin": "Dominican Republic", "name": "Dominican Rep.", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-71.71236141629295, 19.714455878167353], [-71.587304450146604, 19.884910590082093], [-70.806706102161726, 19.880285549391981], [-70.214364997016119, 19.622885240146157], [-69.950815192327568, 19.647999986240002], [-69.769250047470067, 19.293267116772437], [-69.222125820579862, 19.313214219637096], [-69.254346076113819, 19.015196234609871], [-68.809411994080818, 18.979074408437846], [-68.317943284768958, 18.612197577381689], [-68.689315965434503, 18.205142320218609], [-69.164945848248905, 18.422648423735108], [-69.623987596297624, 18.380712998930246], [-69.952933926051529, 18.428306993071057], [-70.133232998317879, 18.245915025296892], [-70.517137213814195, 18.184290879788829], [-70.669298468697619, 18.42688589118303], [-70.999950120717173, 18.283328762276206], [-71.400209927033885, 17.598564357976596], [-71.657661912712001, 17.757572740138695], [-71.708304816358037, 18.044997056546091], [-71.687737596305865, 18.316660061104468], [-71.945112067335543, 18.616900132720257], [-71.701302659782485, 18.785416978424049], [-71.624873216422813, 19.169837958243303], [-71.71236141629295, 19.714455878167353]]] } }, + { "type": "Feature", "properties": { "admin": "Algeria", "name": "Algeria", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[11.99950564947161, 23.471668402596443], [8.572893100629782, 21.565660712159136], [5.677565952180684, 19.601206976799713], [4.267419467800038, 19.155265204336995], [3.158133172222704, 19.057364203360034], [3.146661004253899, 19.693578599521441], [2.683588494486428, 19.856230170160114], [2.060990838233919, 20.142233384679482], [1.823227573259032, 20.61080943448604], [-1.550054897457613, 22.792665920497377], [-4.92333736817423, 24.974574082940993], [-8.684399786809051, 27.395744126895998], [-8.66512447756419, 27.58947907155822], [-8.665589565454805, 27.656425889592349], [-8.674116176782972, 28.841288967396572], [-7.059227667661928, 29.579228420524522], [-6.060632290053772, 29.731699734001687], [-5.242129278982786, 30.000443020135581], [-4.859646165374469, 30.501187649043839], [-3.690441046554695, 30.896951605751152], [-3.647497931320145, 31.637294012980668], [-3.068980271812647, 31.724497992473207], [-2.616604783529567, 32.094346218386143], [-1.30789913573787, 32.262888902306095], [-1.124551153966308, 32.651521511357124], [-1.388049282222567, 32.864015000941301], [-1.733454555661467, 33.91971283623198], [-1.792985805661686, 34.527918606091198], [-2.169913702798624, 35.168396307916673], [-1.208602871089056, 35.71484874118709], [-0.127454392894606, 35.888662421200799], [0.503876580415209, 36.301272894835272], [1.466918572606545, 36.605647081034398], [3.161698846050824, 36.783904934225205], [4.815758090849129, 36.865036932923452], [5.320120070017792, 36.716518866516616], [6.261819695672611, 37.110655015606731], [7.330384962603969, 37.118380642234364], [7.737078484741003, 36.885707505840209], [8.420964389691674, 36.946427313783154], [8.217824334352313, 36.433176988260271], [8.376367628623766, 35.479876003555937], [8.140981479534302, 34.655145982393783], [7.524481642292242, 34.097376410451453], [7.612641635782181, 33.344114895148955], [8.430472853233367, 32.748337307255944], [8.439102817426116, 32.506284898400814], [9.055602654668148, 32.102691962201284], [9.482139926805273, 30.307556057246181], [9.805634392952411, 29.424638373323383], [9.859997999723443, 28.959989732371007], [9.683884718472765, 28.144173895779193], [9.756128370816779, 27.688258571884141], [9.629056023811073, 27.140953477480913], [9.716285841519747, 26.512206325785691], [9.319410841518161, 26.094324856057447], [9.910692579801774, 25.365454616796733], [9.948261346077969, 24.93695364023251], [10.30384687667836, 24.37931325937091], [10.771363559622925, 24.562532050061744], [11.560669386449002, 24.097909247325511], [11.99950564947161, 23.471668402596443]]] } }, + { "type": "Feature", "properties": { "admin": "Ecuador", "name": "Ecuador", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-80.302560594387188, -3.404856459164712], [-79.770293341780913, -2.65751189535964], [-79.986559210922394, -2.220794366061014], [-80.368783942369234, -2.685158786635788], [-80.967765469064332, -2.246942640800703], [-80.764806281238023, -1.965047702648532], [-80.933659023751702, -1.057454522306358], [-80.583370327461239, -0.906662692878683], [-80.39932471385373, -0.283703301600141], [-80.020898200180355, 0.360340074053468], [-80.090609707342097, 0.768428859862396], [-79.542762010399784, 0.982937730305963], [-78.855258755188686, 1.380923773601822], [-77.855061408179509, 0.809925034992773], [-77.668612840470416, 0.825893052570961], [-77.424984300430367, 0.395686753741117], [-76.576379767549383, 0.256935533037435], [-76.292314419240938, 0.416047268064119], [-75.801465827116587, 0.084801337073202], [-75.373223232713841, -0.15203175212045], [-75.233722703741932, -0.911416924649529], [-75.544995693652027, -1.56160979574588], [-76.635394253226707, -2.608677666843817], [-77.83790483265858, -3.003020521663103], [-78.450683966775628, -3.873096612161375], [-78.639897223612323, -4.547784112164072], [-79.205289069317715, -4.959128513207388], [-79.62497921417615, -4.454198093283494], [-80.028908047185581, -4.346090996928893], [-80.442241990872134, -4.425724379090673], [-80.46929460317692, -4.059286797708999], [-80.184014858709645, -3.821161797708043], [-80.302560594387188, -3.404856459164712]]] } }, + { "type": "Feature", "properties": { "admin": "Egypt", "name": "Egypt", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[34.9226, 29.50133], [34.64174, 29.09942], [34.42655, 28.34399], [34.15451, 27.8233], [33.92136, 27.6487], [33.58811, 27.97136], [33.13676, 28.41765], [32.42323, 29.85108], [32.32046, 29.76043], [32.73482, 28.70523], [33.34876, 27.69989], [34.10455, 26.14227], [34.47387, 25.59856], [34.79507, 25.03375], [35.69241, 23.92671], [35.49372, 23.75237], [35.52598, 23.10244], [36.69069, 22.20485], [36.86623, 22.0], [32.9, 22.0], [29.02, 22.0], [25.0, 22.0], [25.0, 25.682499996360992], [25.0, 29.238654529533452], [24.70007, 30.04419], [24.95762, 30.6616], [24.80287, 31.08929], [25.16482, 31.56915], [26.49533, 31.58568], [27.45762, 31.32126], [28.45048, 31.02577], [28.91353, 30.87005], [29.68342, 31.18686], [30.09503, 31.4734], [30.97693, 31.55586], [31.68796, 31.4296], [31.96041, 30.9336], [32.19247, 31.26034], [32.99392, 31.02407], [33.7734, 30.96746], [34.26544, 31.21936], [34.9226, 29.50133]]] } }, + { "type": "Feature", "properties": { "admin": "Eritrea", "name": "Eritrea", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[42.351560000000106, 12.54223000000013], [42.00975, 12.86582], [41.59856, 13.452090000000108], [41.15519371924983, 13.773319810435224], [40.8966, 14.118640000000138], [40.026218702969167, 14.519579169162281], [39.34061, 14.53155], [39.0994, 14.74064], [38.51295, 14.50547], [37.90607, 14.959430000000165], [37.59377, 14.2131], [36.42951, 14.42211], [36.323188917798113, 14.822480577041057], [36.753860304518575, 16.291874091044289], [36.852530000000108, 16.95655], [37.16747, 17.263140000000128], [37.904000000000103, 17.42754], [38.410089959473218, 17.998307399970312], [38.990622999839999, 16.84062612555169], [39.266110060388016, 15.922723496967246], [39.814293654140208, 15.435647284400314], [41.179274936697645, 14.491079616753209], [41.734951613132345, 13.921036892141554], [42.276830682144848, 13.34399201095442], [42.589576450375255, 13.000421250861901], [43.081226027200152, 12.699638576707112], [42.779642368344739, 12.455415757695672], [42.351560000000106, 12.54223000000013]]] } }, + { "type": "Feature", "properties": { "admin": "Spain", "name": "Spain", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-9.034817674180244, 41.880570583659669], [-8.98443315269567, 42.592775173506261], [-9.392883673530644, 43.026624660812686], [-7.978189663108308, 43.748337714200979], [-6.754491746436754, 43.567909450853918], [-5.411886359061596, 43.574239813809669], [-4.347842779955783, 43.403449205085025], [-3.51753170410609, 43.455900783861296], [-1.901351284177764, 43.422802028978332], [-1.502770961910528, 43.034014390630425], [0.338046909190581, 42.579546006839543], [0.701590610363894, 42.795734361332599], [1.826793247087153, 42.343384711265678], [2.985998976258457, 42.473015041669854], [3.039484083680548, 41.892120266276891], [2.091841668312184, 41.226088568683082], [0.810524529635188, 41.014731960609332], [0.721331007499401, 40.678318386389229], [0.106691521819869, 40.123933620762003], [-0.278711310212941, 39.309978135732713], [0.111290724293838, 38.738514309233032], [-0.467123582349103, 38.292365831041138], [-0.683389451490598, 37.642353827457811], [-1.438382127274849, 37.443063666324214], [-2.146452602538119, 36.674144192037282], [-3.415780808923386, 36.658899644511173], [-4.368900926114718, 36.677839056946141], [-4.995219285492211, 36.32470815687963], [-5.377159796561457, 35.946850083961458], [-5.866432257500902, 36.02981659600605], [-6.236693894872174, 36.367677110330327], [-6.520190802425402, 36.942913316387312], [-7.45372555177809, 37.097787583966053], [-7.537105475281022, 37.428904323876232], [-7.166507941099863, 37.803894354802217], [-7.029281175148794, 38.075764065089757], [-7.374092169616317, 38.373058580064914], [-7.098036668313126, 39.03007274022378], [-7.498632371439724, 39.629571031241802], [-7.066591559263527, 39.711891587882768], [-7.026413133156593, 40.184524237624238], [-6.864019944679383, 40.330871893874821], [-6.851126674822551, 41.111082668617513], [-6.389087693700914, 41.381815497394641], [-6.668605515967655, 41.883386949219577], [-7.251308966490822, 41.91834605566504], [-7.422512986673794, 41.792074693359822], [-8.01317460776991, 41.790886135417118], [-8.26385698081779, 42.280468654950326], [-8.671945766626719, 42.134689439454952], [-9.034817674180244, 41.880570583659669]]] } }, + { "type": "Feature", "properties": { "admin": "Estonia", "name": "Estonia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[24.312862583114615, 57.793423570376966], [24.428927850042154, 58.383413397853275], [24.061198357853179, 58.257374579493394], [23.426560092876681, 58.612753404364618], [23.339795363058641, 59.187240302153363], [24.604214308376182, 59.465853786855007], [25.864189080516631, 59.611090399811324], [26.949135776484518, 59.445803331125767], [27.981114129353237, 59.47538808861286], [28.131699253051742, 59.300825100330904], [27.420166456824941, 58.724581203844224], [27.716685825315714, 57.791899115624354], [27.288184848751509, 57.474528306703817], [26.46353234223778, 57.476388658266316], [25.602809685984365, 57.847528794986559], [25.164593540149262, 57.970156968815175], [24.312862583114615, 57.793423570376966]]] } }, + { "type": "Feature", "properties": { "admin": "Ethiopia", "name": "Ethiopia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[37.90607, 14.959430000000165], [38.51295, 14.50547], [39.0994, 14.74064], [39.34061, 14.53155], [40.026250000000111, 14.51959], [40.8966, 14.118640000000138], [41.1552, 13.77333], [41.59856, 13.452090000000108], [42.00975, 12.86582], [42.351560000000106, 12.54223000000013], [42.000000000000107, 12.100000000000133], [41.661760000000122, 11.6312], [41.739590000000177, 11.355110000000137], [41.755570000000191, 11.05091], [42.314140000000116, 11.0342], [42.55493000000012, 11.105110000000193], [42.776851841000948, 10.926878566934416], [42.55876, 10.572580000000126], [42.92812, 10.021940000000139], [43.29699, 9.540480000000169], [43.67875, 9.183580000000116], [46.94834, 7.99688], [47.78942, 8.003], [44.9636, 5.001620000000115], [43.66087, 4.95755], [42.769670000000119, 4.252590000000223], [42.12861, 4.234130000000163], [41.855083092644108, 3.918911920483764], [41.171800000000125, 3.91909], [40.768480000000118, 4.257020000000124], [39.854940000000106, 3.83879000000013], [39.559384258765917, 3.422060000000215], [38.89251, 3.50074], [38.67114, 3.61607], [38.436970000000137, 3.58851], [38.120915000000132, 3.598605], [36.85509323800823, 4.447864127672857], [36.159078632855646, 4.447864127672857], [35.817447662353622, 4.776965663462021], [35.817447662353622, 5.338232082790852], [35.298007118233095, 5.506], [34.70702, 6.59422000000012], [34.25032, 6.82607], [34.075100000000184, 7.22595], [33.56829, 7.71334], [32.954180000000228, 7.7849700000001], [33.294800000000116, 8.35458], [33.82550000000014, 8.37916], [33.97498, 8.684560000000145], [33.96162, 9.58358], [34.25745, 10.63009], [34.73115000000012, 10.910170000000106], [34.831630000000125, 11.318960000000116], [35.26049, 12.08286], [35.863630000000164, 12.57828], [36.27022, 13.563330000000118], [36.42951, 14.42211], [37.59377, 14.2131], [37.90607, 14.959430000000165]]] } }, + { "type": "Feature", "properties": { "admin": "Finland", "name": "Finland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[28.591929559043187, 69.064776923286644], [28.445943637818651, 68.36461294216403], [29.9774263852206, 67.698297024192641], [29.054588657352319, 66.944286200621917], [30.21765, 65.80598], [29.544429559046982, 64.948671576590471], [30.444684686003704, 64.204453436939076], [30.035872430142714, 63.552813625738544], [31.516092156711117, 62.867687486412869], [31.139991082490891, 62.357692776124395], [30.211107212044443, 61.780027777749673], [28.06999759289527, 60.503516547275829], [26.25517296723697, 60.423960679762487], [24.496623976344516, 60.057316392651636], [22.869694858499454, 59.846373196036211], [22.290763787533589, 60.391921291741525], [21.322244093519313, 60.720169989659503], [21.544866163832687, 61.705329494871783], [21.059211053153682, 62.607393296958726], [21.536029493910799, 63.189735012455863], [22.442744174903986, 63.817810370531276], [24.730511508897528, 64.902343655040823], [25.398067661243939, 65.111426500093728], [25.2940430030404, 65.53434642197044], [23.903378533633795, 66.006927395279604], [23.565879754335576, 66.396050930437411], [23.539473097434435, 67.936008612735236], [21.978534783626113, 68.616845608180682], [20.645592889089521, 69.106247260200846], [21.244936150810666, 69.370443020293067], [22.356237827247405, 68.841741441514898], [23.662049594830751, 68.891247463650529], [24.735679152126721, 68.649556789821446], [25.689212680776361, 69.092113755969024], [26.179622023226241, 69.825298977326113], [27.732292107867856, 70.164193020296239], [29.015572950971968, 69.766491197377974], [28.591929559043187, 69.064776923286644]]] } }, + { "type": "Feature", "properties": { "admin": "Fiji", "name": "Fiji", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[178.3736, -17.33992], [178.71806, -17.62846], [178.55271, -18.15059], [177.93266, -18.28799], [177.38146, -18.16432], [177.28504, -17.72465], [177.67087, -17.38114], [178.12557, -17.50481], [178.3736, -17.33992]]], [[[179.364142661964223, -16.801354076946847], [178.725059362997058, -17.012041674368017], [178.596838595117021, -16.63915], [179.096609362997128, -16.43398427754742], [179.413509362997075, -16.379054277547393], [180.000000000000114, -16.067132663642436], [180.000000000000114, -16.555216566639157], [179.364142661964223, -16.801354076946847]]], [[[-179.917369384765237, -16.501783135649358], [-180.0, -16.555216566639157], [-180.0, -16.067132663642436], [-179.793320109048551, -16.020882256741228], [-179.917369384765237, -16.501783135649358]]]] } }, + { "type": "Feature", "properties": { "admin": "Falkland Islands", "name": "Falkland Is.", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-61.2, -51.85], [-60.0, -51.25], [-59.15, -51.5], [-58.55, -51.1], [-57.75, -51.55], [-58.05, -51.9], [-59.4, -52.2], [-59.85, -51.85], [-60.7, -52.3], [-61.2, -51.85]]] } }, + { "type": "Feature", "properties": { "admin": "France", "name": "France", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-52.556424730018378, 2.504705308437053], [-52.939657151894963, 2.124857692875622], [-53.41846513529525, 2.053389187016037], [-53.554839240113481, 2.334896551925964], [-53.778520677288881, 2.376702785650053], [-54.088062506717264, 2.105556545414629], [-54.524754197799737, 2.311848863123785], [-54.271229620975781, 2.738747870286942], [-54.184284023644743, 3.194172268075234], [-54.011503872276812, 3.622569891774857], [-54.3995422023565, 4.212611395683481], [-54.478632981979203, 4.896755682795642], [-53.958044603070917, 5.756548163267808], [-53.618452928264837, 5.646529038918401], [-52.882141282754063, 5.409850979021598], [-51.823342861525916, 4.565768133966144], [-51.657797410678874, 4.156232408053028], [-52.249337531123977, 3.241094468596287], [-52.556424730018378, 2.504705308437053]]], [[[9.560016310269132, 42.152491970379558], [9.229752231491771, 41.380006822264441], [8.77572309737536, 41.583611965494427], [8.544212680707828, 42.256516628583078], [8.746009148807586, 42.628121853193946], [9.390000848028901, 43.009984849614725], [9.560016310269132, 42.152491970379558]]], [[[3.588184441755714, 50.378992418003563], [4.28602298342514, 49.90749664977254], [4.799221632515752, 49.985373033236314], [5.674051954784885, 49.529483547557433], [5.897759230176375, 49.442667141307155], [6.186320428094204, 49.463802802114444], [6.658229607783538, 49.201958319691549], [8.09927859867477, 49.017783515003366], [7.59367638513106, 48.333019110703724], [7.466759067422228, 47.620581976911851], [7.192202182655533, 47.449765529970982], [6.736571079138086, 47.541801255882874], [6.768713820023634, 47.287708238303672], [6.037388950228971, 46.725778713561894], [6.022609490593566, 46.272989813820502], [6.500099724970453, 46.429672756529428], [6.84359297041456, 45.991146552100659], [6.80235517744566, 45.708579820328673], [7.096652459347835, 45.333098863295859], [6.749955275101711, 45.028517971367584], [7.007562290076661, 44.254766750661382], [7.549596388386161, 44.127901109384808], [7.435184767291841, 43.693844916349164], [6.529245232783068, 43.12889232031835], [4.556962517931395, 43.399650987311581], [3.100410597352719, 43.075200507167118], [2.985998976258486, 42.473015041669882], [1.826793247087181, 42.343384711265649], [0.701590610363922, 42.795734361332642], [0.338046909190581, 42.57954600683955], [-1.502770961910471, 43.034014390630482], [-1.901351284177735, 43.422802028978332], [-1.384225226232956, 44.022610378590166], [-1.193797573237361, 46.014917710954862], [-2.225724249673788, 47.064362697938201], [-2.963276129559573, 47.570326646507958], [-4.491554938159481, 47.95495433205641], [-4.592349819344746, 48.68416046812694], [-3.295813971357745, 48.901692409859628], [-1.616510789384932, 48.644421291694577], [-1.933494025063254, 49.776341864615759], [-0.98946895995536, 49.347375800160869], [1.338761020522753, 50.127173163445256], [1.6390010921385, 50.9466063502975], [2.51357303224617, 51.14850617126185], [2.65842207196033, 50.796848049515646], [3.123251580425716, 50.780363267614504], [3.588184441755714, 50.378992418003563]]]] } }, + { "type": "Feature", "properties": { "admin": "Gabon", "name": "Gabon", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[11.093772820691923, -3.978826592630546], [10.066135288135738, -2.969482517105681], [9.405245395554969, -2.144313246269042], [8.797995639693168, -1.111301364754496], [8.830086704146423, -0.779073581550037], [9.048419630579586, -0.459351494960217], [9.291350538783687, 0.268666083167687], [9.492888624721981, 1.010119533691494], [9.83028405115564, 1.067893784993799], [11.285078973036461, 1.057661851400013], [11.276449008843711, 2.261050930180871], [11.751665480199787, 2.326757513839993], [12.359380323952218, 2.19281220133945], [12.951333855855605, 2.321615708826939], [13.07582238124675, 2.267097072759014], [13.003113641012074, 1.830896307783319], [13.282631463278816, 1.31418366129688], [14.026668735417214, 1.395677395021153], [14.276265903386953, 1.196929836426619], [13.843320753645653, 0.038757635901149], [14.316418491277741, -0.552627455247048], [14.425455763413593, -1.333406670744971], [14.299210239324564, -1.998275648612213], [13.992407260807706, -2.470804945489099], [13.109618767965626, -2.428740329603513], [12.575284458067639, -1.948511244315134], [12.495702752338159, -2.391688327650242], [11.820963575903189, -2.514161472181982], [11.478038771214299, -2.765618991714241], [11.855121697648114, -3.42687061932105], [11.093772820691923, -3.978826592630546]]] } }, + { "type": "Feature", "properties": { "admin": "United Kingdom", "name": "United Kingdom", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-5.661948614921896, 54.554603176483838], [-6.197884894220976, 53.867565009163329], [-6.953730231137994, 54.073702297575622], [-7.572167934591078, 54.059956366585979], [-7.366030646178785, 54.595840969452688], [-7.572167934591078, 55.131622219454883], [-6.733847011736144, 55.172860012423783], [-5.661948614921896, 54.554603176483838]]], [[[-3.00500484863528, 58.635000108466322], [-4.073828497728015, 57.55302480735525], [-3.055001796877661, 57.690019029360933], [-1.959280564776918, 57.684799709699512], [-2.219988165689301, 56.870017401753515], [-3.119003058271118, 55.97379303651546], [-2.085009324543023, 55.909998480851264], [-2.005675679673856, 55.804902850350217], [-1.11499101399221, 54.624986477265388], [-0.4304849918542, 54.464376125702145], [0.184981316742039, 53.325014146531018], [0.469976840831777, 52.929999498091959], [1.681530795914739, 52.739520168663987], [1.559987827164377, 52.099998480836], [1.050561557630914, 51.806760565795678], [1.4498653499503, 51.289427802121949], [0.550333693045502, 50.765738837275862], [-0.787517462558639, 50.774988918656206], [-2.489997524414377, 50.500018622431227], [-2.956273972984035, 50.696879991247002], [-3.617448085942327, 50.228355617872708], [-4.542507900399243, 50.341837063185658], [-5.245023159191134, 49.959999904981082], [-5.776566941745299, 50.159677639356815], [-4.309989793301837, 51.210001125689146], [-3.414850633142122, 51.426008612669236], [-3.422719467108322, 51.426848167406078], [-4.984367234710873, 51.593466091510962], [-5.267295701508885, 51.991400458374571], [-4.222346564134852, 52.30135569926135], [-4.770013393564112, 52.840004991255611], [-4.579999152026914, 53.495003770555165], [-3.093830673788658, 53.404547400669671], [-3.092079637047106, 53.404440822963544], [-2.945008510744343, 53.98499970154667], [-3.614700825433033, 54.60093677329256], [-3.63000545898933, 54.615012925833], [-4.844169073903003, 54.790971177786837], [-5.082526617849224, 55.061600653699358], [-4.719112107756643, 55.508472601943467], [-5.047980922862108, 55.783985500707516], [-5.586397670911139, 55.311146145236805], [-5.64499874513018, 56.275014960344791], [-6.149980841486352, 56.785009670633528], [-5.78682471355529, 57.818848375064633], [-5.009998745127574, 58.630013332750039], [-4.211494513353555, 58.550845038479153], [-3.00500484863528, 58.635000108466322]]]] } }, + { "type": "Feature", "properties": { "admin": "Georgia", "name": "Georgia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[41.55408410011065, 41.535656236327561], [41.703170607272703, 41.962942816732912], [41.453470086438379, 42.645123399417926], [40.875469191253785, 43.013628038091277], [40.321394484220313, 43.128633938156831], [39.955008579270917, 43.434997666999216], [40.07696495947976, 43.553104153002309], [40.922184686045618, 43.38215851498078], [42.394394565608806, 43.220307929042619], [43.756016880067378, 42.74082815202248], [43.931199985536828, 42.554973863284758], [44.537622918481979, 42.71199270280362], [45.470279168485703, 42.502780666669963], [45.776410353382758, 42.09244395605635], [46.404950799348818, 41.860675157227298], [46.145431756379004, 41.722802435872573], [46.637908156120574, 41.181672675128219], [46.501637404166921, 41.064444688474104], [45.962600538930381, 41.123872585609767], [45.217426385281577, 41.411451931314041], [44.972480096218071, 41.248128567055588], [43.582745802592726, 41.09214325618256], [42.619548781104484, 41.583172715819934], [41.55408410011065, 41.535656236327561]]] } }, + { "type": "Feature", "properties": { "admin": "Ghana", "name": "Ghana", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[1.060121697604927, 5.928837388528875], [-0.507637905265938, 5.343472601742675], [-1.063624640294193, 5.000547797053811], [-1.964706590167594, 4.71046214438337], [-2.856125047202397, 4.994475816259508], [-2.810701463217839, 5.389051215024109], [-3.244370083011261, 6.2504715031135], [-2.983584967450326, 7.379704901555511], [-2.56218950032624, 8.219627793811481], [-2.827496303712706, 9.642460842319775], [-2.963896246747111, 10.395334784380081], [-2.94040930827046, 10.962690334512557], [-1.203357713211431, 11.009819240762736], [-0.761575893548183, 10.936929633015053], [-0.438701544588582, 11.09834096927872], [0.023802524423701, 11.018681748900802], [-0.049784715159944, 10.706917832883928], [0.367579990245389, 10.191212876827176], [0.365900506195885, 9.46500397382948], [0.461191847342121, 8.677222601756013], [0.712029249686878, 8.312464504423827], [0.490957472342245, 7.411744289576474], [0.570384148774849, 6.914358628767188], [0.836931186536333, 6.279978745952147], [1.060121697604927, 5.928837388528875]]] } }, + { "type": "Feature", "properties": { "admin": "Guinea", "name": "Guinea", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-8.439298468448696, 7.686042792181736], [-8.722123582382123, 7.711674302598509], [-8.926064622422002, 7.309037380396375], [-9.208786383490844, 7.313920803247952], [-9.403348151069748, 7.526905218938906], [-9.33727983238458, 7.928534450711351], [-9.755342169625832, 8.541055202666923], [-10.016566534861253, 8.42850393313523], [-10.230093553091276, 8.406205552601291], [-10.505477260774667, 8.348896389189603], [-10.494315151399629, 8.715540676300433], [-10.65477047366589, 8.977178452994194], [-10.622395188835037, 9.267910061068276], [-10.839151984083299, 9.688246161330367], [-11.117481248407328, 10.045872911006283], [-11.917277390988655, 10.046983954300556], [-12.150338100625003, 9.858571682164378], [-12.425928514037562, 9.835834051955953], [-12.596719122762206, 9.620188300001969], [-12.711957566773076, 9.342711696810765], [-13.246550258832512, 8.903048610871506], [-13.685153977909788, 9.494743760613458], [-14.074044969122278, 9.886166897008248], [-14.330075852912367, 10.015719712763966], [-14.579698859098254, 10.214467271358513], [-14.693231980843501, 10.65630076745404], [-14.83955379887794, 10.876571560098139], [-15.130311245168167, 11.040411688679525], [-14.685687221728896, 11.527823798056485], [-14.382191534878727, 11.509271958863691], [-14.121406419317776, 11.677117010947693], [-13.900799729863772, 11.678718980348744], [-13.743160773157411, 11.811269029177408], [-13.828271857142122, 12.142644151249041], [-13.718743658899511, 12.247185573775507], [-13.700476040084322, 12.586182969610192], [-13.217818162478235, 12.575873521367964], [-12.499050665730561, 12.332089952031053], [-12.278599005573438, 12.354440008997285], [-12.20356482588563, 12.465647691289401], [-11.658300950557928, 12.386582749882834], [-11.513942836950587, 12.442987575729415], [-11.456168585648269, 12.076834214725336], [-11.297573614944508, 12.077971096235768], [-11.036555955438256, 12.211244615116513], [-10.870829637078211, 12.177887478072106], [-10.593223842806278, 11.923975328005977], [-10.165213792348835, 11.844083563682743], [-9.890992804392011, 12.060478623904968], [-9.567911749703212, 12.194243068892472], [-9.327616339546008, 12.334286200403451], [-9.127473517279581, 12.308060411015331], [-8.905264858424529, 12.088358059126433], [-8.786099005559462, 11.812560939984705], [-8.376304897484911, 11.393645941610627], [-8.581305304386772, 11.136245632364801], [-8.620321010767126, 10.810890814655181], [-8.407310756860026, 10.90925690352276], [-8.282357143578279, 10.792597357623842], [-8.335377163109738, 10.494811916541932], [-8.029943610048617, 10.206534939001711], [-8.22933712404682, 10.129020290563897], [-8.309616461612249, 9.789531968622439], [-8.079113735374348, 9.376223863152033], [-7.832100389019186, 8.575704250518625], [-8.203498907900878, 8.455453192575446], [-8.299048631208562, 8.316443589710302], [-8.221792364932197, 8.123328762235571], [-8.280703497744936, 7.687179673692156], [-8.439298468448696, 7.686042792181736]]] } }, + { "type": "Feature", "properties": { "admin": "Gambia", "name": "Gambia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-16.84152462408127, 13.151393947802557], [-16.713728807023468, 13.594958604379853], [-15.624596320039936, 13.623587347869556], [-15.398770310924457, 13.860368760630916], [-15.081735398813816, 13.876491807505982], [-14.687030808968483, 13.63035696049978], [-14.376713833055785, 13.625680243377371], [-14.046992356817478, 13.794067898000446], [-13.844963344772404, 13.505041612191999], [-14.277701788784553, 13.28058502853224], [-14.712197231494626, 13.298206691943774], [-15.141163295949463, 13.509511623585235], [-15.511812506562931, 13.278569647672864], [-15.691000535534991, 13.270353094938455], [-15.931295945692208, 13.130284125211331], [-16.84152462408127, 13.151393947802557]]] } }, + { "type": "Feature", "properties": { "admin": "Guinea Bissau", "name": "Guinea-Bissau", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-15.130311245168167, 11.040411688679525], [-15.664180467175523, 11.458474025920792], [-16.085214199273562, 11.524594021038236], [-16.314786749730199, 11.806514797406548], [-16.308947312881227, 11.958701890506116], [-16.613838263403277, 12.170911159712698], [-16.67745195155457, 12.38485158940105], [-16.147716844130581, 12.547761542201185], [-15.816574266004251, 12.515567124883345], [-15.548476935274005, 12.628170070847343], [-13.700476040084322, 12.586182969610192], [-13.718743658899511, 12.247185573775507], [-13.828271857142122, 12.142644151249041], [-13.743160773157411, 11.811269029177408], [-13.900799729863772, 11.678718980348744], [-14.121406419317776, 11.677117010947693], [-14.382191534878727, 11.509271958863691], [-14.685687221728896, 11.527823798056485], [-15.130311245168167, 11.040411688679525]]] } }, + { "type": "Feature", "properties": { "admin": "Equatorial Guinea", "name": "Eq. Guinea", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[9.492888624721981, 1.010119533691494], [9.305613234096255, 1.160911363119183], [9.649158155972627, 2.283866075037735], [11.276449008843711, 2.261050930180871], [11.285078973036461, 1.057661851400013], [9.83028405115564, 1.067893784993799], [9.492888624721981, 1.010119533691494]]] } }, + { "type": "Feature", "properties": { "admin": "Greece", "name": "Greece", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[23.699980096133, 35.705004380835526], [24.246665073348673, 35.368022365860149], [25.025015496528873, 35.424995632461979], [25.769207797964182, 35.354018052709073], [25.745023227651579, 35.179997666966209], [26.290002882601719, 35.299990342747911], [26.164997592887651, 35.004995429009789], [24.724982130642299, 34.919987697889603], [24.735007358506941, 35.084990546197581], [23.514978468528106, 35.27999156345097], [23.699980096133, 35.705004380835526]]], [[[26.604195590936282, 41.562114569661098], [26.294602085075777, 40.936261298174244], [26.056942172965499, 40.824123440100827], [25.44767703624418, 40.852545477861455], [24.925848422960932, 40.947061672523226], [23.714811232200809, 40.687129218095116], [24.407998894964063, 40.124992987624083], [23.89996788910258, 39.962005520175573], [23.342999301860797, 39.960997829745786], [22.813987664488959, 40.476005153966547], [22.626298862404777, 40.256561184239175], [22.849747755634805, 39.659310818025759], [23.350027296652595, 39.190011298167256], [22.97309939951554, 38.97090322524965], [23.53001631032495, 38.51000112563846], [24.025024855248937, 38.219992987616443], [24.040011020613601, 37.655014553369419], [23.115002882589145, 37.920011298162215], [23.409971958111065, 37.409990749657389], [22.77497195810863, 37.305010077456551], [23.154225294698612, 36.422505804992042], [22.4900281104511, 36.410000108377446], [21.670026482843692, 36.84498647719419], [21.295010613701574, 37.644989325504689], [21.120034213961329, 38.31032339126272], [20.730032179454579, 38.769985256498778], [20.217712029712853, 39.340234686839629], [20.150015903410516, 39.624997666984022], [20.615000441172779, 40.110006822259422], [20.67499677906363, 40.434999904943048], [20.999989861747274, 40.580003973953964], [21.020040317476422, 40.842726955725873], [21.674160597426969, 40.931274522457976], [22.055377638444266, 41.149865831052686], [22.597308383889008, 41.130487168943198], [22.76177, 41.3048], [22.952377150166562, 41.337993882811212], [23.692073601992455, 41.309080918943849], [24.492644891058031, 41.583896185872035], [25.19720136892553, 41.234485988930651], [26.106138136507177, 41.328898830727823], [26.11704186372091, 41.826904608724725], [26.604195590936282, 41.562114569661098]]]] } }, + { "type": "Feature", "properties": { "admin": "Greenland", "name": "Greenland", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-46.76379, 82.62796], [-43.40644, 83.22516], [-39.89753, 83.18018], [-38.62214, 83.54905], [-35.08787, 83.64513], [-27.10046, 83.51966], [-20.84539, 82.72669], [-22.69182, 82.34165], [-26.51753, 82.29765], [-31.9, 82.2], [-31.39646, 82.02154], [-27.85666, 82.13178], [-24.84448, 81.78697], [-22.90328, 82.09317], [-22.07175, 81.73449], [-23.16961, 81.15271], [-20.62363, 81.52462], [-15.76818, 81.91245], [-12.77018, 81.71885], [-12.20855, 81.29154], [-16.28533, 80.58004], [-16.85, 80.35], [-20.04624, 80.17708], [-17.73035, 80.12912], [-18.9, 79.4], [-19.70499, 78.75128], [-19.67353, 77.63859], [-18.47285, 76.98565], [-20.03503, 76.94434], [-21.67944, 76.62795], [-19.83407, 76.09808], [-19.59896, 75.24838], [-20.66818, 75.15585], [-19.37281, 74.29561], [-21.59422, 74.22382], [-20.43454, 73.81713], [-20.76234, 73.46436], [-22.17221, 73.30955], [-23.56593, 73.30663], [-22.31311, 72.62928], [-22.29954, 72.18409], [-24.27834, 72.59788], [-24.79296, 72.3302], [-23.44296, 72.08016], [-22.13281, 71.46898], [-21.75356, 70.66369], [-23.53603, 70.471], [-24.30702, 70.85649], [-25.54341, 71.43094], [-25.20135, 70.75226], [-26.36276, 70.22646], [-23.72742, 70.18401], [-22.34902, 70.12946], [-25.02927, 69.2588], [-27.74737, 68.47046], [-30.67371, 68.12503], [-31.77665, 68.12078], [-32.81105, 67.73547], [-34.20196, 66.67974], [-36.35284, 65.9789], [-37.04378, 65.93768], [-38.37505, 65.69213], [-39.81222, 65.45848], [-40.66899, 64.83997], [-40.68281, 64.13902], [-41.1887, 63.48246], [-42.81938, 62.68233], [-42.41666, 61.90093], [-42.86619, 61.07404], [-43.3784, 60.09772], [-44.7875, 60.03676], [-46.26364, 60.85328], [-48.26294, 60.85843], [-49.23308, 61.40681], [-49.90039, 62.38336], [-51.63325, 63.62691], [-52.14014, 64.27842], [-52.27659, 65.1767], [-53.66166, 66.09957], [-53.30161, 66.8365], [-53.96911, 67.18899], [-52.9804, 68.35759], [-51.47536, 68.72958], [-51.08041, 69.14781], [-50.87122, 69.9291], [-52.013585, 69.574925], [-52.55792, 69.42616], [-53.45629, 69.283625], [-54.68336, 69.61003], [-54.75001, 70.28932], [-54.35884, 70.821315], [-53.431315, 70.835755], [-51.39014, 70.56978], [-53.10937, 71.20485], [-54.00422, 71.54719], [-55.0, 71.406536967272558], [-55.83468, 71.65444], [-54.71819, 72.58625], [-55.32634, 72.95861], [-56.12003, 73.64977], [-57.32363, 74.71026], [-58.59679, 75.09861], [-58.58516, 75.51727], [-61.26861, 76.10238], [-63.39165, 76.1752], [-66.06427, 76.13486], [-68.50438, 76.06141], [-69.66485, 76.37975], [-71.40257, 77.00857], [-68.77671, 77.32312], [-66.76397, 77.37595], [-71.04293, 77.63595], [-73.297, 78.04419], [-73.15938, 78.43271], [-69.37345, 78.91388], [-65.7107, 79.39436], [-65.3239, 79.75814], [-68.02298, 80.11721], [-67.15129, 80.51582], [-63.68925, 81.21396], [-62.23444, 81.3211], [-62.65116, 81.77042], [-60.28249, 82.03363], [-57.20744, 82.19074], [-54.13442, 82.19962], [-53.04328, 81.88833], [-50.39061, 82.43883], [-48.00386, 82.06481], [-46.59984, 81.985945], [-44.523, 81.6607], [-46.9007, 82.19979], [-46.76379, 82.62796]]] } }, + { "type": "Feature", "properties": { "admin": "Guatemala", "name": "Guatemala", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-90.095554572290951, 13.73533763270073], [-90.608624030300817, 13.909771429901948], [-91.232410244496037, 13.927832342987953], [-91.689746670279106, 14.126218166556452], [-92.227750006869812, 14.538828640190925], [-92.203229539747298, 14.830102850804066], [-92.087215949252041, 15.064584662328436], [-92.229248623406249, 15.251446641495857], [-91.747960171255912, 16.066564846251719], [-90.464472622422647, 16.069562079324651], [-90.438866950222021, 16.410109768128091], [-90.600846727240906, 16.470777899638758], [-90.711821865587694, 16.687483018454724], [-91.081670091500641, 16.918476670799404], [-91.453921271515128, 17.252177232324168], [-91.002269253284197, 17.254657701074176], [-91.001519945015943, 17.817594916245707], [-90.067933519230948, 17.819326076727474], [-89.143080410503302, 17.808318996649316], [-89.15080603713092, 17.015576687075832], [-89.229121670269265, 15.886937567605166], [-88.930612759135244, 15.887273464415072], [-88.604586147805833, 15.706380113177358], [-88.518364020526846, 15.855389105690971], [-88.22502275262201, 15.727722479713901], [-88.680679694355618, 15.346247056535301], [-89.15481096063354, 15.066419175674806], [-89.225220099631244, 14.874286200413618], [-89.145535041037149, 14.67801911056908], [-89.353325975282772, 14.424132798719112], [-89.587342698916544, 14.362586167859485], [-89.5342193265205, 14.244815578666302], [-89.7219339668207, 14.134228013561694], [-90.064677903996568, 13.881969509328924], [-90.095554572290951, 13.73533763270073]]] } }, + { "type": "Feature", "properties": { "admin": "Guyana", "name": "Guyana", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-59.758284878159181, 8.367034816924045], [-59.10168412945864, 7.99920197187049], [-58.482962205628041, 7.347691351750696], [-58.454876064677414, 6.832787380394463], [-58.078103196837361, 6.809093736188641], [-57.542218593970631, 6.321268215353355], [-57.147436489476874, 5.973149929219161], [-57.307245856339492, 5.073566595882225], [-57.914288906472123, 4.812626451024413], [-57.860209520078691, 4.576801052260449], [-58.044694383360664, 4.060863552258382], [-57.601568976457848, 3.334654649260684], [-57.281433478409703, 3.333491929534119], [-57.150097825739898, 2.768926906745406], [-56.53938574891454, 1.89952260986692], [-56.782704230360814, 1.863710842288653], [-57.33582292339689, 1.948537705895759], [-57.660971035377358, 1.682584947105638], [-58.113449876525003, 1.507195135907025], [-58.429477098205957, 1.46394196207872], [-58.540012986878288, 1.26808828369252], [-59.030861579002639, 1.317697658692722], [-59.646043667221242, 1.786893825686789], [-59.718545701726732, 2.249630438644359], [-59.974524909084543, 2.755232652188055], [-59.815413174057852, 3.606498521332085], [-59.538039923731219, 3.958802598481937], [-59.767405768458701, 4.423502915866606], [-60.111002366767373, 4.574966538914082], [-59.980958624904865, 5.014061184098138], [-60.213683437731319, 5.2444863956876], [-60.733574184803707, 5.2002772078619], [-61.410302903881941, 5.959068101419616], [-61.139415045807937, 6.234296779806142], [-61.159336310456467, 6.696077378766317], [-60.543999192940966, 6.856584377464881], [-60.295668097562377, 7.043911444522918], [-60.637972785063752, 7.414999904810853], [-60.550587938058186, 7.779602972846178], [-59.758284878159181, 8.367034816924045]]] } }, + { "type": "Feature", "properties": { "admin": "Honduras", "name": "Honduras", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-87.316654425795463, 12.984685777229], [-87.48940873894712, 13.29753489832393], [-87.793111131526501, 13.384480495655165], [-87.723502977229288, 13.785050360565602], [-87.859515347021599, 13.893312486217097], [-88.065342576840109, 13.964625962779788], [-88.503997972349609, 13.845485948130939], [-88.541230841815931, 13.98015473068352], [-88.843072882832743, 14.140506700085208], [-89.058511929057644, 14.340029405164213], [-89.353325975282786, 14.424132798719084], [-89.145535041037164, 14.678019110569149], [-89.22522009963123, 14.874286200413675], [-89.154810960633526, 15.066419175674863], [-88.680679694355575, 15.346247056535386], [-88.225022752621925, 15.727722479714027], [-88.121153123715359, 15.688655096901355], [-87.901812506852394, 15.864458319558194], [-87.615680101252309, 15.878798529519198], [-87.522920905288444, 15.797278957578779], [-87.367762417332116, 15.846940009011286], [-86.903191291028165, 15.756712958229565], [-86.440945604177372, 15.782835394753189], [-86.119233974944322, 15.893448798073958], [-86.00195431185783, 16.005405788634388], [-85.68331743034625, 15.953651841693949], [-85.444003872402547, 15.885749009662444], [-85.182443610357183, 15.909158433490628], [-84.98372188997881, 15.995923163308698], [-84.526979743167118, 15.857223619037423], [-84.36825558138257, 15.835157782448729], [-84.063054572266807, 15.648244126849132], [-83.773976610026111, 15.42407176356687], [-83.410381232420363, 15.27090281825377], [-83.147219000974104, 14.995829169164207], [-83.489988776366005, 15.01626719813566], [-83.628584967772866, 14.880073960830368], [-83.975721401693576, 14.749435939996483], [-84.228341640952394, 14.748764146376626], [-84.449335903648588, 14.62161428472251], [-84.64958207877963, 14.666805324761865], [-84.820036790694289, 14.819586696832628], [-84.924500698572302, 14.790492865452332], [-85.052787441736868, 14.551541042534719], [-85.148750576502877, 14.560196844943615], [-85.165364549484806, 14.354369615125048], [-85.514413011400265, 14.079011745657905], [-85.698665330736944, 13.960078436737998], [-85.801294725268505, 13.8360549992376], [-86.096263800790595, 14.03818736414723], [-86.312142096689826, 13.771356106008223], [-86.520708177419891, 13.778487453664464], [-86.755086636079596, 13.754845485890936], [-86.733821784191463, 13.263092556201398], [-86.880557013684353, 13.254204209847213], [-87.005769009127434, 13.025794379117254], [-87.316654425795463, 12.984685777229]]] } }, + { "type": "Feature", "properties": { "admin": "Croatia", "name": "Croatia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[18.829838087650039, 45.908877671891837], [19.072768995854172, 45.521511135432078], [19.390475701584588, 45.236515611342369], [19.005486281010118, 44.860233669609144], [18.553214145591646, 45.08158966733145], [17.861783481526398, 45.067740383477137], [17.00214603035101, 45.233776760430935], [16.534939406000202, 45.211607570977705], [16.318156772535868, 45.004126695325901], [15.959367303133373, 45.233776760430935], [15.750026075918978, 44.81871165626255], [16.239660271884528, 44.351143296885695], [16.456442905348862, 44.041239732431265], [16.916156447017325, 43.667722479825663], [17.297373488034449, 43.446340643887353], [17.674921502358981, 43.028562527023603], [18.56, 42.65], [18.450016310304814, 42.47999136002931], [17.509970330483323, 42.84999461523914], [16.930005730871638, 43.209998480800373], [16.015384555737679, 43.507215481127204], [15.174453973052094, 44.243191229827907], [15.376250441151793, 44.317915350922064], [14.920309279040504, 44.73848399512945], [14.901602410550874, 45.076060289076104], [14.258747592839992, 45.233776760430935], [13.952254672917032, 44.802123521496853], [13.65697553880119, 45.136935126315947], [13.679403110415816, 45.484149074884996], [13.715059848697248, 45.500323798192419], [14.411968214585496, 45.466165676447403], [14.595109490627916, 45.63494090431282], [14.935243767972961, 45.471695054702757], [15.327674594797424, 45.452316392593325], [15.323953891672428, 45.731782538427687], [15.671529575267638, 45.8341535507979], [15.768732944408608, 46.23810822202352], [16.564808383864939, 46.503750922219794], [16.882515089595412, 46.380631822284428], [17.630066359129554, 45.951769110694087], [18.456062452882858, 45.759481106136143], [18.829838087650039, 45.908877671891837]]] } }, + { "type": "Feature", "properties": { "admin": "Haiti", "name": "Haiti", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-73.189790615517595, 19.915683905511909], [-72.579672817663607, 19.871500555902351], [-71.71236141629295, 19.714455878167353], [-71.624873216422813, 19.169837958243303], [-71.701302659782485, 18.785416978424049], [-71.945112067335543, 18.616900132720257], [-71.687737596305865, 18.316660061104468], [-71.708304816358037, 18.044997056546091], [-72.372476162389333, 18.214960842354053], [-72.844411180294856, 18.145611070218362], [-73.454554816365018, 18.217906398994696], [-73.922433234335642, 18.030992743395], [-74.458033616824764, 18.342549953682703], [-74.369925299767118, 18.664907538319408], [-73.449542202432696, 18.526052964751141], [-72.694937099890623, 18.445799465401858], [-72.334881557896992, 18.66842153571525], [-72.791649542924873, 19.101625067618027], [-72.784104783810264, 19.483591416903405], [-73.41502234566174, 19.639550889560276], [-73.189790615517595, 19.915683905511909]]] } }, + { "type": "Feature", "properties": { "admin": "Hungary", "name": "Hungary", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[16.202298211337361, 46.852385972676949], [16.534267612380372, 47.496170966169103], [16.340584344150411, 47.712901923201215], [16.903754103267257, 47.714865627628321], [16.979666782304033, 48.123497015976298], [17.488472934649813, 47.867466132186209], [17.857132602620023, 47.758428860050365], [18.696512892336923, 47.88095368101439], [18.777024773847668, 48.081768296900627], [19.174364861739885, 48.111378892603859], [19.66136355965849, 48.266614895208647], [19.769470656013109, 48.2026911484636], [20.239054396249344, 48.327567247096916], [20.473562045989862, 48.562850043321809], [20.801293979584919, 48.62385407164237], [21.872236362401729, 48.319970811550007], [22.085608351334848, 48.422264309271782], [22.640819939878746, 48.150239569687351], [22.710531447040488, 47.882193915389394], [22.09976769378283, 47.672439276716695], [21.626514926853869, 46.994237779318148], [21.021952345471245, 46.316087958351886], [20.220192498462833, 46.127468980486547], [19.596044549241579, 46.171729844744533], [18.829838087649957, 45.908877671891915], [18.456062452882858, 45.759481106136121], [17.630066359129554, 45.95176911069418], [16.882515089595298, 46.380631822284428], [16.564808383864854, 46.503750922219822], [16.370504998447412, 46.841327216166498], [16.202298211337361, 46.852385972676949]]] } }, + { "type": "Feature", "properties": { "admin": "Indonesia", "name": "Indonesia", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[120.715608758630438, -10.239581394087862], [120.295014276206871, -10.258649997603525], [118.967808465654684, -9.55796925215803], [119.900309686361609, -9.361340427287514], [120.425755649905398, -9.665921319215796], [120.775501743656719, -9.969675388227456], [120.715608758630438, -10.239581394087862]]], [[[124.435950148619384, -10.14000090906144], [123.579981724136701, -10.359987481327961], [123.459989048354998, -10.239994805546171], [123.55000939340745, -9.900015557497978], [123.980008986508096, -9.290026950724693], [124.96868248911619, -8.892790215697046], [125.070019972840612, -9.089987481322835], [125.088520135601073, -9.393173109579321], [124.435950148619384, -10.14000090906144]]], [[[117.900018345207741, -8.095681247594923], [118.260616489740471, -8.362383314653327], [118.87845991422212, -8.280682875199828], [119.126506789223086, -8.705824883665072], [117.97040164598927, -8.906639499551257], [117.277730747549015, -9.040894870645557], [116.74014082241662, -9.032936700072637], [117.083737420725313, -8.457157891476539], [117.632024367342126, -8.44930307376819], [117.900018345207741, -8.095681247594923]]], [[[122.903537225436082, -8.094234307490735], [122.756982863456287, -8.649807631060638], [121.2544905945701, -8.933666273639941], [119.924390903809567, -8.810417982623873], [119.920928582846102, -8.44485890059107], [120.715091994307542, -8.236964613480863], [121.341668735846554, -8.53673959720602], [122.007364536630405, -8.46062021244016], [122.903537225436082, -8.094234307490735]]], [[[108.623478631628927, -6.777673841990675], [110.539227329553285, -6.877357679881682], [110.759575636845909, -6.465186455921751], [112.614811232556349, -6.946035658397589], [112.978768345188087, -7.594213148634578], [114.478935174621142, -7.776527601760277], [115.705526971501058, -8.370806573116864], [114.564511346496488, -8.75181690840483], [113.464733514460875, -8.348947442257424], [112.559672479301028, -8.376180922075163], [111.522061395312448, -8.302128594600957], [110.586149530074294, -8.122604668819021], [109.427667270955183, -7.740664157749761], [108.693655226681301, -7.641600437046219], [108.277763299596302, -7.766657403192579], [106.454102004016136, -7.354899590690947], [106.280624220812285, -6.924899997590201], [105.365486281355516, -6.851416110871169], [106.051645949327053, -5.895918877794499], [107.265008579540165, -5.954985039904058], [108.072091099074683, -6.345762220895237], [108.486846144649235, -6.421984958525768], [108.623478631628927, -6.777673841990675]]], [[[134.724624465066654, -6.214400730009286], [134.210133905168902, -6.895237725454704], [134.112775506730998, -6.142467136259014], [134.290335728085779, -5.783057549669038], [134.499625278867882, -5.445042006047898], [134.727001580952106, -5.737582289252158], [134.724624465066654, -6.214400730009286]]], [[[127.249215122588893, -3.459065036638889], [126.874922723498855, -3.790982761249579], [126.183802118027302, -3.607376397316556], [125.989033644719257, -3.177273451351325], [127.00065148326496, -3.12931772218441], [127.249215122588893, -3.459065036638889]]], [[[130.471344028851775, -3.09376433676762], [130.834836053592767, -3.858472181822761], [129.990546502808115, -3.446300957862817], [129.155248651242403, -3.362636813982248], [128.590683628453633, -3.428679294451256], [127.898891229362334, -3.393435967628192], [128.135879347852779, -2.843650404474914], [129.370997756060888, -2.802154229344551], [130.471344028851775, -3.09376433676762]]], [[[134.143367954647772, -1.151867364103594], [134.422627394753022, -2.769184665542383], [135.457602980694674, -3.367752780779113], [136.293314243718754, -2.30704233155609], [137.4407377463275, -1.703513278819372], [138.329727411044757, -1.70268645590265], [139.18492068904294, -2.051295668143637], [139.926684198160387, -2.409051608900284], [141.000210402591847, -2.600151055515624], [141.017056919519007, -5.85902190513802], [141.033851760013874, -9.117892754760417], [140.143415155192542, -8.297167657100955], [139.127766554928087, -8.096042982620942], [138.881476678624949, -8.380935153846094], [137.614473911692812, -8.41168263105976], [138.039099155835174, -7.597882175327354], [138.668621454014783, -7.320224704623072], [138.407913853102343, -6.232849216337483], [137.927839797110835, -5.393365573755998], [135.989250116113453, -4.546543877789047], [135.164597609599667, -4.462931410340771], [133.662880487197867, -3.538853448097526], [133.367704705946778, -4.024818617370314], [132.983955519747326, -4.112978610860281], [132.75694095268895, -3.746282647317129], [132.753788690319197, -3.311787204607071], [131.989804315316178, -2.820551039240455], [133.066844517143466, -2.460417982598443], [133.780030959203486, -2.479848321140209], [133.69621178602614, -2.214541517753687], [132.232373488494204, -2.212526136894325], [131.836221958544684, -1.617161960459597], [130.942839797082797, -1.432522067880796], [130.519558140180038, -0.937720228686075], [131.867537876513609, -0.695461114101818], [132.380116408416768, -0.369537855636977], [133.985548130428384, -0.780210463060442], [134.143367954647772, -1.151867364103594]]], [[[125.240500522971573, 1.419836127117605], [124.43703535369734, 0.427881171058971], [123.685504998876695, 0.235593166500877], [122.723083123872854, 0.431136786293337], [121.056724888189081, 0.381217352699451], [120.18308312386273, 0.23724681233422], [120.040869582195455, -0.519657891444851], [120.935905389490699, -1.408905938323372], [121.475820754076167, -0.955962009285116], [123.34056481332847, -0.615672702643081], [123.258399285984481, -1.076213067228337], [122.822715285331597, -0.930950616055881], [122.388529901215364, -1.516858005381124], [121.508273553555455, -1.904482924002422], [122.454572381684272, -3.186058444840881], [122.271896193532541, -3.529500013852696], [123.170962762546537, -4.683693129091707], [123.162332798353759, -5.34060393638596], [122.628515252778683, -5.634591159694494], [122.236394484548057, -5.282933037948281], [122.71956912647704, -4.46417164471579], [121.738233677254357, -4.851331475446499], [121.48946333220124, -4.574552504091215], [121.619171177253861, -4.188477878438674], [120.898181593917684, -3.602105401222828], [120.972388950688767, -2.627642917494909], [120.305452915529884, -2.931603692235725], [120.39004723519173, -4.097579034037223], [120.430716587405371, -5.528241062037778], [119.796543410319487, -5.67340016034565], [119.36690555224493, -5.379878024927804], [119.653606398600104, -4.459417412944958], [119.498835483885969, -3.49441171632651], [119.078344354326987, -3.487021986508764], [118.767768996252869, -2.801999200047688], [119.180973748858662, -2.147103773612798], [119.323393996255049, -1.35314706788047], [119.825998976725828, 0.154254462073496], [120.035701938966341, 0.566477362465804], [120.885779250167687, 1.309222723796835], [121.666816847826965, 1.013943589681076], [122.927566766451818, 0.875192368977465], [124.077522414242836, 0.917101955566139], [125.065989211121803, 1.643259182131558], [125.240500522971573, 1.419836127117605]]], [[[128.688248732620707, 1.132385972494106], [128.635952183141342, 0.258485826006179], [128.120169712436166, 0.356412665199286], [127.968034295768845, -0.252077325037533], [128.379998813999691, -0.780003757331286], [128.100015903842291, -0.899996433112974], [127.69647464407501, -0.266598402511505], [127.399490187693743, 1.011721503092573], [127.600511509309044, 1.81069082275718], [127.932377557487484, 2.174596258956555], [128.004156121940809, 1.628531398928331], [128.594559360875451, 1.540810655112864], [128.688248732620707, 1.132385972494106]]], [[[117.875627069166001, 1.827640692548911], [118.996747267738158, 0.902219143066048], [117.811858351717788, 0.784241848143722], [117.478338657706047, 0.102474676917026], [117.521643507966587, -0.803723239753211], [116.560048455879496, -1.487660821136231], [116.533796828275158, -2.483517347832901], [116.148083937648607, -4.012726332214014], [116.000857782049067, -3.657037448749008], [114.864803094544513, -4.106984144714416], [114.468651564595064, -3.49570362713382], [113.755671828264099, -3.439169610206519], [113.256994256647545, -3.118775729996854], [112.068126255340644, -3.478392022316071], [111.703290643359992, -2.994442233902631], [111.04824018762821, -3.049425957861188], [110.223846063275971, -2.934032484553483], [110.070935500124335, -1.592874037282414], [109.571947869914041, -1.314906507984489], [109.091873813922518, -0.459506524257051], [108.952657505328162, 0.415375474444346], [109.069136183714036, 1.341933905437642], [109.663260125773718, 2.006466986494984], [109.830226678508836, 1.338135687664191], [110.514060907027101, 0.773131415200993], [111.159137811326559, 0.976478176269509], [111.797548455860408, 0.904441229654651], [112.380251906383648, 1.410120957846757], [112.859809198052176, 1.497790025229946], [113.805849644019531, 1.217548732911041], [114.621355422017473, 1.430688177898886], [115.134037306785231, 2.821481838386219], [115.51907840379198, 3.169238389494395], [115.86551720587677, 4.306559149590156], [117.01521447150634, 4.306094061699468], [117.882034946770162, 4.137551377779487], [117.313232456533513, 3.234428208830578], [118.048329705885351, 2.287690131027361], [117.875627069166001, 1.827640692548911]]], [[[105.817655063909356, -5.852355645372411], [104.710384149191498, -5.873284600450644], [103.868213332130736, -5.037314955264974], [102.584260695406897, -4.220258884298203], [102.156173130300999, -3.614146009946765], [101.399113397225051, -2.799777113459171], [100.902502882900137, -2.05026213949786], [100.141980828860596, -0.650347588710957], [99.26373986206022, 0.183141587724663], [98.970011020913319, 1.042882391764536], [98.601351352943084, 1.823506577965616], [97.699597609449881, 2.453183905442116], [97.17694217324987, 3.30879059489861], [96.424016554757316, 3.86885976807791], [95.380876092513475, 4.970782172053673], [95.293026157617305, 5.479820868344816], [95.936862827541745, 5.439513251157108], [97.484882033277088, 5.24632090903401], [98.369169142655679, 4.268370266126366], [99.142558628335792, 3.590349636240915], [99.693997837322399, 3.174328518075156], [100.641433546961665, 2.099381211755798], [101.658012323007313, 2.083697414555189], [102.498271112073212, 1.398700466310217], [103.076840448013002, 0.561361395668854], [103.838396030698348, 0.104541734208666], [103.437645298274973, -0.711945896002845], [104.010788608824001, -1.059211521004229], [104.369991489684878, -1.084843031421016], [104.539490187602155, -1.782371514496716], [104.887892694113987, -2.340425306816655], [105.622111444116982, -2.42884368246807], [106.10859337771268, -3.06177662517895], [105.857445916774111, -4.305524997579723], [105.817655063909356, -5.852355645372411]]]] } }, + { "type": "Feature", "properties": { "admin": "India", "name": "India", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[77.837450799474553, 35.494009507787759], [78.912268914713209, 34.321936346975782], [78.811086460285722, 33.506198025032404], [79.208891636068572, 32.994394639613709], [79.176128777995501, 32.483779812137705], [78.458446486325997, 32.61816437431272], [78.738894484374001, 31.515906073527056], [79.721366815107089, 30.882714748654724], [81.11125613802929, 30.183480943313398], [80.476721225917373, 29.729865220655334], [80.088424513676259, 28.794470119740136], [81.057202589851997, 28.416095282499036], [81.999987420584958, 27.925479234319987], [83.304248895199535, 27.364505723575554], [84.675017938173767, 27.234901231387528], [85.25177859898335, 26.726198431906337], [86.024392938179147, 26.630984605408567], [87.22747195836628, 26.39789805755607], [88.060237664749806, 26.414615383402484], [88.174804315140904, 26.810405178325944], [88.043132765661198, 27.445818589786818], [88.120440708369841, 27.876541652939586], [88.730325962278528, 28.086864732367509], [88.814248488320544, 27.299315904239361], [88.835642531289366, 27.098966376243755], [89.744527622438838, 26.71940298105995], [90.37327477413406, 26.875724188742872], [91.217512648486405, 26.808648179628019], [92.033483514375078, 26.838310451763554], [92.10371178585973, 27.4526140406332], [91.69665652869665, 27.771741848251661], [92.503118931043616, 27.896876329046442], [93.413347609432662, 28.640629380807219], [94.565990431702929, 29.277438055939978], [95.404802280664612, 29.031716620392125], [96.117678664131006, 29.452802028922459], [96.586590610747479, 28.830979519154337], [96.248833449287758, 28.411030992134435], [97.327113885490007, 28.261582749946331], [97.402561476636123, 27.88253611908544], [97.051988559968066, 27.699058946233144], [97.133999058015277, 27.08377350514996], [96.419365675850941, 27.264589341739221], [95.124767694074933, 26.573572089132295], [95.155153436262566, 26.001307277932078], [94.603249139385355, 25.162495428970399], [94.552657912171611, 24.675238348890328], [94.106741977925054, 23.850740871673477], [93.325187615942767, 24.078556423432197], [93.286326938859247, 23.043658352138998], [93.060294224014598, 22.703110663335565], [93.166127557348361, 22.278459580977099], [92.672720981825549, 22.041238918541247], [92.146034783906799, 23.62749868417259], [91.869927606171302, 23.62434642180278], [91.706475050832083, 22.985263983649183], [91.158963250699713, 23.503526923104381], [91.467729933643668, 24.072639471934789], [91.915092807994398, 24.130413723237108], [92.376201613334786, 24.976692816664961], [91.799595981822065, 25.14743174895731], [90.872210727912105, 25.13260061288954], [89.920692580121838, 25.269749864192171], [89.832480910199592, 25.965082098895476], [89.355094028687276, 26.014407253518065], [88.56304935094974, 26.446525580342716], [88.209789259802477, 25.768065700782707], [88.931553989623069, 25.238692328384769], [88.30637251175601, 24.866079413344199], [88.084422235062405, 24.501657212821918], [88.699940220090895, 24.233714911388557], [88.529769728553759, 23.631141872649163], [88.876311883503064, 22.879146429937826], [89.031961297566198, 22.055708319582973], [88.888765903685396, 21.690588487224741], [88.208497348995209, 21.703171698487804], [86.975704380240259, 21.495561631755201], [87.033168572948853, 20.743307806882406], [86.499351027373777, 20.151638495356604], [85.060265740909671, 19.478578802971096], [83.941005893899998, 18.302009792549722], [83.189217156917834, 17.671221421778977], [82.192792189465905, 17.016636053937813], [82.191241896497175, 16.556664130107844], [81.692719354177456, 16.3102192245079], [80.791999139330116, 15.951972357644488], [80.324895867843864, 15.899184882058346], [80.025069207686428, 15.136414903214144], [80.23327355339039, 13.835770778859978], [80.286293572921849, 13.006260687710832], [79.862546828128487, 12.056215318240886], [79.85799930208681, 10.357275091997108], [79.340511509115984, 10.308854274939618], [78.885345493489169, 9.54613597252772], [79.189719679688281, 9.216543687370146], [78.27794070833049, 8.933046779816932], [77.94116539908434, 8.25295909263974], [77.539897902337927, 7.965534776232331], [76.592978957021657, 8.899276231314188], [76.130061476551063, 10.299630031775518], [75.746467319648488, 11.308250637248303], [75.396101108709573, 11.781245022015822], [74.864815708316812, 12.741935736537895], [74.616717156883524, 13.992582912649677], [74.443859490867197, 14.617221787977693], [73.534199253233368, 15.990652167214957], [73.119909295549419, 17.928570054592495], [72.820909458308634, 19.208233547436162], [72.824475132136783, 20.41950328214153], [72.630533481745388, 21.356009426351001], [71.175273471973938, 20.757441311114228], [70.470458611945091, 20.877330634031381], [69.164130080038817, 22.089298000572697], [69.644927606082391, 22.450774644454334], [69.349596795534325, 22.843179633062686], [68.176645135373377, 23.691965033456704], [68.842599318318761, 24.359133612560932], [71.0432401874682, 24.356523952730193], [70.844699334602822, 25.215102037043511], [70.282873162725579, 25.722228705339823], [70.168926629522005, 26.491871649678835], [69.514392938113119, 26.940965684511365], [70.61649620960192, 27.989196275335861], [71.777665643200308, 27.913180243434521], [72.823751662084689, 28.961591701772047], [73.450638462217412, 29.976413479119863], [74.421380242820263, 30.97981476493117], [74.405928989564998, 31.692639471965272], [75.258641798813187, 32.271105455040491], [74.451559279278698, 32.764899603805489], [74.104293654277328, 33.441473293586846], [73.749948358051952, 34.317698879527846], [74.240202671204955, 34.748887030571247], [75.757060988268321, 34.504922593721311], [76.871721632804011, 34.653544012992732], [77.837450799474553, 35.494009507787759]]] } }, + { "type": "Feature", "properties": { "admin": "Ireland", "name": "Ireland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-6.197884894220989, 53.86756500916335], [-6.032985398777609, 53.153164170944336], [-6.788856573910847, 52.260117906292322], [-8.561616583683557, 51.669301255899349], [-9.977085740590267, 51.820454820353071], [-9.16628251793078, 52.864628811242667], [-9.688524542672452, 53.881362616585285], [-8.327987433292007, 54.664518947968624], [-7.572167934591064, 55.131622219454854], [-7.366030646178785, 54.595840969452709], [-7.572167934591064, 54.059956366585986], [-6.953730231138065, 54.073702297575622], [-6.197884894220989, 53.86756500916335]]] } }, + { "type": "Feature", "properties": { "admin": "Iran", "name": "Iran", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[53.921597934795543, 37.198918361961255], [54.800303989486558, 37.392420762678178], [55.511578403551894, 37.964117133123153], [56.180374790273319, 37.935126654607423], [56.619366082592805, 38.121394354803478], [57.330433790928964, 38.029229437810933], [58.436154412678192, 37.522309475243794], [59.234761997316795, 37.412987982730336], [60.377637973883864, 36.52738312432836], [61.123070509694131, 36.491597194966239], [61.21081709172573, 35.650072333309218], [60.80319339380744, 34.404101874319856], [60.528429803311575, 33.676446031217999], [60.963700392505991, 33.528832302376252], [60.536077915290761, 32.981268825811561], [60.863654819588952, 32.182919623334421], [60.941944614511115, 31.548074652628745], [61.699314406180811, 31.379506130492661], [61.78122155136343, 30.735850328081231], [60.874248488208778, 29.829238999952604], [61.369308709564926, 29.303276272085917], [61.771868117118615, 28.699333807890792], [62.727830438085974, 28.259644883735383], [62.755425652929851, 27.378923448184985], [63.23389773952028, 27.217047024030702], [63.316631707619578, 26.756532497661659], [61.874187453056535, 26.239974880472097], [61.497362908784183, 25.078237006118492], [59.616134067630831, 25.380156561783775], [58.525761346272297, 25.609961656185725], [57.39725141788238, 25.739902045183634], [56.97076582217754, 26.966106268821356], [56.492138706290199, 27.14330475515019], [55.723710158110059, 26.964633490501036], [54.715089552637252, 26.480657863871507], [53.493096958231334, 26.812368882753042], [52.483597853409599, 27.580849107365488], [51.520762566947404, 27.865689602158291], [50.852948032439528, 28.814520575469377], [50.115008579311571, 30.14777252859971], [49.576850213423988, 29.9857152369324], [48.941333449098536, 30.31709035900403], [48.567971225789748, 29.926778265903515], [48.014568312376085, 30.452456773392594], [48.00469811380831, 30.985137437457237], [47.685286085812258, 30.984853217079621], [47.849203729042095, 31.709175930298663], [47.334661492711895, 32.469155381799105], [46.109361606639304, 33.017287299118998], [45.416690708199035, 33.967797756479577], [45.648459507028079, 34.748137722303007], [46.15178795755093, 35.093258775364284], [46.076340366404786, 35.67738332777548], [45.420618117053202, 35.977545884742817], [44.77267, 37.17045], [44.225755649600522, 37.971584377589345], [44.421402622257538, 38.281281236314534], [44.109225294782334, 39.428136298168091], [44.793989699081934, 39.713002631177041], [44.9526880226503, 39.335764675446363], [45.457721795438765, 38.874139105783051], [46.143623081248812, 38.74120148371221], [46.505719842317966, 38.770605373686287], [47.685079380083081, 39.508363959301207], [48.060095249225235, 39.582235419262453], [48.355529412637871, 39.2887649602769], [48.010744256386474, 38.794014797514514], [48.634375441284803, 38.27037750910096], [48.883249139202483, 38.32024526626261], [49.199612257693332, 37.582874253889877], [50.147771437384606, 37.37456655532133], [50.842354363819695, 36.872814235983384], [52.26402469260141, 36.700421657857696], [53.825789829326411, 36.965030829408228], [53.921597934795543, 37.198918361961255]]] } }, + { "type": "Feature", "properties": { "admin": "Iraq", "name": "Iraq", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[45.420618117053202, 35.977545884742817], [46.076340366404786, 35.67738332777548], [46.15178795755093, 35.093258775364284], [45.648459507028079, 34.748137722303007], [45.416690708199035, 33.967797756479577], [46.109361606639304, 33.017287299118998], [47.334661492711895, 32.469155381799105], [47.849203729042095, 31.709175930298663], [47.685286085812258, 30.984853217079621], [48.00469811380831, 30.985137437457237], [48.014568312376085, 30.452456773392594], [48.567971225789748, 29.926778265903515], [47.974519077349889, 29.975819200148493], [47.302622104690947, 30.059069932570711], [46.568713413281742, 29.099025173452283], [44.709498732284736, 29.178891099559376], [41.889980910007829, 31.190008653278362], [40.399994337736238, 31.889991766887931], [39.195468377444961, 32.16100881604266], [38.792340529136077, 33.378686428352218], [41.00615888851992, 34.419372260062111], [41.383965285005807, 35.628316555314349], [41.289707472505448, 36.358814602192261], [41.837064243340954, 36.605853786763568], [42.349591098811764, 37.22987254490409], [42.779125604021822, 37.385263576805741], [43.942258742047287, 37.256227525372942], [44.293451775902852, 37.001514390606289], [44.772699008977689, 37.170444647768427], [45.420618117053202, 35.977545884742817]]] } }, + { "type": "Feature", "properties": { "admin": "Iceland", "name": "Iceland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-14.508695441129232, 66.455892239031414], [-14.739637417041605, 65.808748277440287], [-13.609732224979807, 65.126671047619851], [-14.9098337467949, 64.36408193628867], [-17.794438035543418, 63.67874909123384], [-18.656245896874989, 63.496382961675806], [-19.972754685942757, 63.643634955491514], [-22.762971971110154, 63.960178941495371], [-21.778484259517676, 64.402115790455497], [-23.955043911219104, 64.891129869233481], [-22.184402635170354, 65.084968166760291], [-22.227423265053329, 65.378593655042721], [-24.326184047939332, 65.611189276788451], [-23.650514695723082, 66.262519029395207], [-22.134922451250883, 66.410468655046856], [-20.576283738679543, 65.732112128351417], [-19.056841600001587, 66.276600857194751], [-17.798623826559048, 65.993853257909763], [-16.167818976292121, 66.526792304135853], [-14.508695441129232, 66.455892239031414]]] } }, + { "type": "Feature", "properties": { "admin": "Israel", "name": "Israel", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.719918247222743, 32.709192409794859], [35.545665317534535, 32.393992011030569], [35.183930291491428, 32.532510687788935], [34.974640740709319, 31.866582343059715], [35.225891554512422, 31.754341132121759], [34.970506626125989, 31.616778469360803], [34.927408481594554, 31.35343537040141], [35.397560662586038, 31.489086005167572], [35.420918409981958, 31.100065822874349], [34.922602573391423, 29.501326198844517], [34.26543338393568, 31.219360866820146], [34.556371697738903, 31.548823960896989], [34.48810713068135, 31.605538845337314], [34.752587111151165, 32.07292633720116], [34.955417107896771, 32.827376410446369], [35.098457472480668, 33.080539252244257], [35.126052687324538, 33.090900376918775], [35.460709262846699, 33.089040025356276], [35.552796665190805, 33.264274807258012], [35.821100701650231, 33.277426459276292], [35.836396925608618, 32.868123277308506], [35.700797967274745, 32.716013698857374], [35.719918247222743, 32.709192409794859]]] } }, + { "type": "Feature", "properties": { "admin": "Italy", "name": "Italy", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[15.52037601081383, 38.231155096991465], [15.160242954171732, 37.444045518537813], [15.309897902089002, 37.134219468731793], [15.099988234119445, 36.61998729099539], [14.335228712632013, 36.996630967754747], [13.826732618879927, 37.104531358380186], [12.431003859108809, 37.612949937483812], [12.570943637755132, 38.126381130519682], [13.741156447004581, 38.03496552179535], [14.761249220446157, 38.143873602850498], [15.52037601081383, 38.231155096991465]]], [[[9.210011834356264, 41.209991360024212], [9.809975213264973, 40.500008856766094], [9.669518670295671, 39.177376410471787], [9.214817742559486, 39.240473334300127], [8.806935662479729, 38.906617743478471], [8.428302443077113, 39.171847032216611], [8.388253208050939, 40.378310858718798], [8.159998406617659, 40.950007229163774], [8.709990675500107, 40.899984442705225], [9.210011834356264, 41.209991360024212]]], [[[12.376485223040842, 46.767559109069872], [13.806475457421552, 46.50930613869118], [13.698109978905475, 46.016778062517368], [13.937630242578335, 45.59101593686465], [13.141606479554294, 45.736691799495411], [12.328581170306304, 45.38177806251484], [12.383874952858601, 44.885374253919075], [12.261453484759157, 44.600482082694008], [12.589237094786482, 44.091365871754462], [13.526905958722491, 43.587727362637899], [14.029820997787024, 42.761007798832473], [15.142569614327952, 41.955139675456891], [15.926191033601892, 41.961315009115729], [16.169897088290409, 41.740294908203417], [15.889345737377793, 41.541082261718195], [16.785001661860573, 41.179605617836579], [17.519168735431204, 40.877143459632229], [18.376687452882575, 40.355624904942651], [18.4802470231954, 40.168866278639818], [18.293385044028096, 39.810774441073235], [17.738380161213279, 40.277671006830289], [16.869595981522334, 40.442234605463838], [16.448743116937319, 39.795400702466473], [17.171489698971495, 39.424699815420716], [17.052840610429339, 38.902871202137291], [16.635088331781841, 38.843572496082395], [16.100960727613053, 37.985898749334176], [15.684086948314498, 37.908849188787023], [15.687962680736318, 38.214592800441849], [15.891981235424705, 38.750942491199218], [16.109332309644312, 38.964547024077682], [15.718813510814638, 39.544072374014938], [15.413612501698818, 40.048356838535163], [14.998495721098234, 40.172948716790913], [14.703268263414767, 40.604550279292617], [14.06067182786526, 40.786347968095434], [13.627985060285393, 41.188287258461649], [12.888081902730418, 41.253089504555604], [12.106682570044907, 41.7045348170574], [11.191906365614184, 42.355425319989671], [10.511947869517794, 42.93146251074721], [10.200028924204046, 43.920006822274608], [9.702488234097812, 44.036278794931313], [8.888946160526869, 44.366336167979533], [8.428560825238575, 44.23122813575241], [7.8507666357832, 43.767147935555236], [7.435184767291841, 43.693844916349164], [7.549596388386161, 44.127901109384808], [7.007562290076661, 44.254766750661382], [6.749955275101711, 45.028517971367584], [7.096652459347835, 45.333098863295859], [6.80235517744566, 45.708579820328673], [6.84359297041456, 45.991146552100659], [7.273850945676683, 45.776947740250748], [7.755992058959832, 45.824490057959267], [8.316629672894377, 46.16364248309084], [8.489952426801294, 46.005150865251736], [8.966305779667833, 46.03693187111115], [9.18288170740311, 46.440214748716976], [9.92283654139035, 46.314899400409182], [10.363378126678665, 46.48357127540983], [10.4427014502466, 46.893546250997431], [11.048555942436504, 46.751358547546396], [11.164827915093325, 46.941579494812729], [12.153088006243079, 47.115393174826423], [12.376485223040842, 46.767559109069872]]]] } }, + { "type": "Feature", "properties": { "admin": "Jamaica", "name": "Jamaica", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-77.569600796199197, 18.490525417550483], [-76.896618618462114, 18.400866807524078], [-76.365359056285527, 18.16070058844759], [-76.19965857614163, 17.886867173732963], [-76.902561408175671, 17.868237819891743], [-77.206341315403449, 17.701116237859818], [-77.766022915340599, 17.861597398342237], [-78.337719285785596, 18.225967922432226], [-78.217726610003865, 18.454532782459193], [-77.797364671525614, 18.524218451404774], [-77.569600796199197, 18.490525417550483]]] } }, + { "type": "Feature", "properties": { "admin": "Jordan", "name": "Jordan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.545665317534535, 32.393992011030569], [35.719918247222743, 32.709192409794859], [36.834062127435537, 32.312937526980768], [38.792340529136077, 33.378686428352218], [39.195468377444961, 32.16100881604266], [39.004885695152545, 32.010216986614971], [37.002165561681004, 31.508412990844736], [37.998848911294367, 30.508499864213128], [37.668119744626374, 30.338665269485894], [37.503581984209028, 30.003776150018396], [36.740527784987243, 29.865283311476183], [36.501214227043583, 29.505253607698702], [36.068940870922049, 29.19749461518445], [34.956037225084252, 29.356554673778835], [34.922602573391423, 29.501326198844517], [35.420918409981958, 31.100065822874349], [35.397560662586038, 31.489086005167572], [35.545251906076196, 31.782504787720832], [35.545665317534535, 32.393992011030569]]] } }, + { "type": "Feature", "properties": { "admin": "Japan", "name": "Japan", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[134.638428176003856, 34.149233710256418], [134.766379022358478, 33.806334743783673], [134.20341596897083, 33.201177883429622], [133.792950067276479, 33.521985175097583], [133.280268182508848, 33.289570420864941], [133.014858026257855, 32.704567369104772], [132.363114862192674, 32.989382025681373], [132.371176385630179, 33.463642483040068], [132.924372593314786, 34.060298570282036], [133.492968377822194, 33.944620876596694], [133.904106073136347, 34.364931138642611], [134.638428176003856, 34.149233710256418]]], [[[140.976387567305267, 37.142074286440156], [140.599769728762084, 36.343983466124534], [140.774074334882641, 35.842877102190229], [140.253279250245072, 35.138113918593653], [138.975527785396196, 34.667600002576101], [137.217598911691198, 34.606285915661843], [135.792983026268871, 33.46480520276662], [135.120982700745401, 33.849071153289053], [135.07943484918269, 34.596544908174813], [133.340316196831964, 34.375938218720755], [132.156770868051296, 33.904933376596503], [130.986144647343451, 33.885761420216276], [132.000036248910021, 33.149992377244608], [131.33279015515734, 31.450354519164836], [130.68631798718593, 31.029579169228235], [130.202419875204953, 31.418237616495411], [130.447676222862128, 32.319474595665717], [129.81469160371887, 32.610309556604385], [129.408463169472554, 33.296055813117583], [130.353935174684636, 33.604150702441693], [130.878450962447118, 34.232742824840031], [131.884229364143891, 34.749713853487911], [132.617672967662486, 35.433393052709413], [134.608300815977771, 35.731617743465812], [135.677537876528902, 35.527134100886819], [136.723830601142424, 37.304984239240376], [137.390611607004473, 36.827390651998819], [138.857602166906247, 37.827484646143454], [139.426404657142882, 38.215962225897634], [140.054790073812057, 39.438807481436378], [139.883379347899847, 40.563312486323682], [140.305782505453664, 41.195005194659551], [141.368973423426667, 41.378559882160282], [141.914263136970476, 39.991616115878678], [141.884600864834965, 39.18086456965149], [140.959489373945729, 38.174000962876583], [140.976387567305267, 37.142074286440156]]], [[[143.910161981379474, 44.174099839853724], [144.613426548439634, 43.960882880217511], [145.320825230083074, 44.384732977875437], [145.543137241802754, 43.262088324550596], [144.059661899999867, 42.988358262700551], [143.183849725517291, 41.995214748699183], [141.611490920172457, 42.678790595056071], [141.067286411706618, 41.58459381770799], [139.95510623592105, 41.56955597591103], [139.817543573159924, 42.563758856774392], [140.312087030193169, 43.333272610032644], [141.380548944259999, 43.388824774746489], [141.671952345953912, 44.772125352551477], [141.967644891527982, 45.551483466161343], [143.142870314709796, 44.510358384776957], [143.910161981379474, 44.174099839853724]]]] } }, + { "type": "Feature", "properties": { "admin": "Kazakhstan", "name": "Kazakhstan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[70.962314894499272, 42.26615428320553], [70.388964878220776, 42.081307684897517], [69.070027296835221, 41.384244289712335], [68.632482944620037, 40.668680731766855], [68.259895867795635, 40.662324530594894], [67.985855747351806, 41.135990708982199], [66.714047072216587, 41.168443508461557], [66.510648634715707, 41.987644151368549], [66.023391554635609, 41.994646307944031], [66.098012322865188, 42.997660020513074], [64.90082441595932, 43.728080552742647], [63.18578698105658, 43.650074978197999], [62.013300408786264, 43.504476630215649], [61.05831994003249, 44.405816962250576], [60.239971958258472, 44.784036770194739], [58.689989048095796, 45.500013739598721], [58.503127068928428, 45.58680430763296], [55.928917270741167, 44.995858466159163], [55.968191359283011, 41.30864166926937], [55.455251092353805, 41.259859117185826], [54.755345493392653, 42.04397146256661], [54.079417759014959, 42.324109402020831], [52.944293247291725, 42.116034247397572], [52.502459751196277, 41.783315538086462], [52.446339145727208, 42.027150783855561], [52.692112257707251, 42.443895372073364], [52.501426222550315, 42.792297878585188], [51.342427199108201, 43.132974758469338], [50.891291945200223, 44.031033637053774], [50.339129266161358, 44.284015611338468], [50.305642938036257, 44.609835516938908], [51.278503452363211, 44.514854234386448], [51.316899041556034, 45.245998236667894], [52.167389764215713, 45.408391425145098], [53.040876499245194, 45.259046535821753], [53.220865512917712, 46.23464590105992], [53.042736850807771, 46.853006089864486], [52.042022739475598, 46.804636949239232], [51.191945428274252, 47.048704738953909], [50.034083286342465, 46.608989976582208], [49.10116, 46.39933000000012], [48.593241001180495, 46.561034247415471], [48.694733514201729, 47.075628160177921], [48.057253045449258, 47.743752753279516], [47.315231154170242, 47.715847479841948], [46.466445753776256, 48.394152330104923], [47.043671502476506, 49.1520388860976], [46.751596307162728, 49.35600576435376], [47.549480421749301, 50.454698391311119], [48.577841424357523, 49.874759629915658], [48.702381626181008, 50.605128485712825], [50.766648390512145, 51.692762356159889], [52.328723585830957, 51.71865224873811], [54.53287845237621, 51.026239732459302], [55.716940545479801, 50.62171662047853], [56.777961053296551, 51.043551337277037], [58.363290643146733, 51.063653469438563], [59.642282342370599, 50.545442206415707], [59.932807244715484, 50.842194118851857], [61.337424350840919, 50.799070136104248], [61.588003371024158, 51.2726587998432], [59.967533807215531, 51.960420437215696], [60.927268507740258, 52.447548326215028], [60.739993117114572, 52.719986477257734], [61.699986199800584, 52.979996446334255], [60.978066440683151, 53.664993394579128], [61.436591424409052, 54.006264553434775], [65.178533563095911, 54.354227810272093], [65.66687584825398, 54.601266994843449], [68.169100376258811, 54.970391750704309], [69.068166945272864, 55.385250149143516], [70.865266554655122, 55.169733588270091], [71.180131056609397, 54.133285224008247], [72.224150018202167, 54.376655381886728], [73.508516066384388, 54.035616766976588], [73.425678745420427, 53.489810289109741], [74.384845005190044, 53.546861070360066], [76.891100294913414, 54.490524400441913], [76.525179477854735, 54.177003485727127], [77.800915561844221, 53.404414984747561], [80.035559523441663, 50.864750881547238], [80.568446893235475, 51.388336493528456], [81.945985548839914, 50.812195949906354], [83.383003778012366, 51.069182847693909], [83.935114780618832, 50.889245510453563], [84.416377394553052, 50.311399644565817], [85.115559523462011, 50.117302964877631], [85.541269972682457, 49.69285858824815], [86.829356723989619, 49.826674709668154], [87.359970330762664, 49.214980780629148], [86.598776483103379, 48.549181626980605], [85.768232863308285, 48.455750637396974], [85.72048383987071, 47.452969468773112], [85.164290399113355, 47.000955715516099], [83.180483839860443, 47.330031236350848], [82.458925815769106, 45.539649563166499], [81.947070753918112, 45.317027492853235], [79.966106398441397, 44.917516994804643], [80.866206496101356, 43.180362046881037], [80.180150180994289, 42.920067857426936], [80.259990268885332, 42.349999294599101], [79.643645460940135, 42.496682847659649], [79.142177361979776, 42.856092434249589], [77.658391961583206, 42.960685533208327], [76.000353631498555, 42.988022365890622], [75.636964959622091, 42.877899888676765], [74.212865838522575, 43.298339341803505], [73.645303582660901, 43.091271877609863], [73.489757521462337, 42.500894476891276], [71.844638299450637, 42.845395412765178], [71.186280552052253, 42.704292914392219], [70.962314894499272, 42.26615428320553]]] } }, + { "type": "Feature", "properties": { "admin": "Kenya", "name": "Kenya", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[40.993, -0.85829], [41.58513, -1.68325], [40.88477, -2.08255], [40.63785, -2.49979], [40.26304, -2.57309], [40.12119, -3.27768], [39.80006, -3.68116], [39.60489, -4.34653], [39.20222, -4.67677], [37.7669, -3.67712], [37.69869, -3.09699], [34.07262, -1.05982], [33.903711197104521, -0.95], [33.893568969666937, 0.109813537861896], [34.18, 0.515], [34.6721, 1.17694], [35.03599, 1.90584], [34.59607, 3.05374], [34.47913, 3.5556], [34.005, 4.249884947362047], [34.620196267853871, 4.847122742081987], [35.298007118232974, 5.506], [35.817447662353501, 5.338232082790795], [35.817447662353501, 4.776965663461889], [36.159078632855639, 4.447864127672768], [36.855093238008116, 4.447864127672768], [38.120915, 3.598605], [38.43697, 3.58851], [38.67114, 3.61607], [38.89251, 3.50074], [39.559384258765846, 3.42206], [39.85494, 3.83879], [40.76848, 4.25702], [41.1718, 3.91909], [41.855083092643966, 3.918911920483726], [40.98105, 2.78452], [40.993, -0.85829]]] } }, + { "type": "Feature", "properties": { "admin": "Kyrgyzstan", "name": "Kyrgyzstan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[70.96231489449913, 42.266154283205481], [71.186280552052111, 42.704292914392127], [71.84463829945058, 42.845395412765093], [73.489757521462337, 42.500894476891311], [73.645303582660901, 43.09127187760982], [74.212865838522546, 43.298339341803363], [75.636964959622006, 42.877899888676673], [76.000353631498442, 42.988022365890664], [77.658391961583206, 42.960685533208256], [79.142177361979762, 42.856092434249511], [79.643645460940107, 42.496682847659514], [80.259990268885289, 42.349999294599044], [80.119430373051358, 42.123940741538235], [78.543660923175295, 41.582242540038685], [78.187196893225959, 41.185315863604792], [76.904484490877067, 41.066485907549634], [76.526368035797432, 40.427946071935111], [75.467827996730691, 40.562072251948663], [74.776862420556043, 40.366425279291619], [73.822243686828287, 39.893973497063179], [73.960013055318413, 39.660008449861721], [73.67537926625478, 39.431236884105594], [71.784693637991992, 39.279463202464363], [70.549161818325601, 39.604197902986492], [69.464886915977516, 39.526683254548693], [69.559609816368507, 40.103211371412968], [70.648018833299957, 39.935753892571157], [71.014198032520156, 40.244365546218226], [71.774875115856545, 40.145844428053763], [73.055417108049156, 40.86603302668945], [71.870114780570447, 41.392900092121259], [71.157858514291576, 41.143587144529107], [70.420022414028196, 41.519998277343134], [71.259247674448218, 42.167710679689456], [70.96231489449913, 42.266154283205481]]] } }, + { "type": "Feature", "properties": { "admin": "Cambodia", "name": "Cambodia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[103.497279901139677, 10.632555446815926], [103.090689731867229, 11.153660590047162], [102.58493248902667, 12.186594956913279], [102.348099399833004, 13.39424734135822], [102.988422072361601, 14.225721136934464], [104.281418084736586, 14.416743068901363], [105.218776890078871, 14.27321177821069], [106.04394616091551, 13.881091009979952], [106.496373325630856, 14.57058380783428], [107.382727492301058, 14.202440904186968], [107.614547967562402, 13.535530707244202], [107.491403029410861, 12.337205918827944], [105.810523716253101, 11.567614650921225], [106.249670037869436, 10.961811835163585], [105.199914992292321, 10.889309800658094], [104.334334751403446, 10.486543687375228], [103.497279901139677, 10.632555446815926]]] } }, + { "type": "Feature", "properties": { "admin": "South Korea", "name": "Korea", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[128.349716424676586, 38.612242946927843], [129.212919549680038, 37.432392483055942], [129.460449660358137, 36.784189154602821], [129.468304478066472, 35.632140611303939], [129.091376580929563, 35.08248423923142], [128.18585045787907, 34.890377102186385], [127.386519403188373, 34.475673733044111], [126.485747511908713, 34.390045884736473], [126.3739197124291, 34.934560451795939], [126.559231398627773, 35.684540513647896], [126.117397902532261, 36.725484727519252], [126.860143263863364, 36.893924058574612], [126.174758742376213, 37.749685777328033], [126.237338901881742, 37.840377916000271], [126.683719924018888, 37.804772854151174], [127.073308547067342, 38.256114813788393], [127.780035435090966, 38.304535630845884], [128.205745884311426, 38.370397243801882], [128.349716424676586, 38.612242946927843]]] } }, + { "type": "Feature", "properties": { "admin": "Kosovo", "name": "Kosovo", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.76216, 42.05186], [20.717310000000108, 41.84711], [20.59023, 41.85541], [20.52295, 42.21787], [20.28374, 42.32025], [20.0707, 42.58863], [20.25758, 42.81275], [20.49679, 42.88469], [20.63508, 43.21671], [20.81448, 43.27205], [20.95651, 43.13094], [21.143395, 43.068685000000123], [21.27421, 42.90959], [21.43866, 42.86255], [21.63302, 42.67717], [21.77505, 42.6827], [21.66292, 42.43922], [21.54332, 42.32025], [21.576635989402117, 42.245224397061847], [21.352700000000134, 42.2068], [20.76216, 42.05186]]] } }, + { "type": "Feature", "properties": { "admin": "Kuwait", "name": "Kuwait", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[47.974519077349889, 29.975819200148493], [48.183188510944483, 29.534476630159759], [48.09394331237641, 29.306299343374999], [48.416094191283939, 28.552004299426663], [47.708850538937376, 28.526062730416136], [47.459821811722819, 29.002519436147217], [46.568713413281742, 29.099025173452283], [47.302622104690947, 30.059069932570711], [47.974519077349889, 29.975819200148493]]] } }, + { "type": "Feature", "properties": { "admin": "Laos", "name": "Lao PDR", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[105.218776890078871, 14.27321177821069], [105.544338413517664, 14.723933620660414], [105.589038527450128, 15.570316066952856], [104.779320509868768, 16.441864935771445], [104.716947056092465, 17.428858954330078], [103.956476678485288, 18.240954087796872], [103.200192091893726, 18.309632066312769], [102.998705682387694, 17.961694647691598], [102.413004998791592, 17.932781683824281], [102.113591750092453, 18.109101670804161], [101.059547560635139, 17.512497259994486], [101.035931431077742, 18.408928330961611], [101.282014601651667, 19.462584947176762], [100.606293573003128, 19.508344427971217], [100.548881056726856, 20.109237982661124], [100.115987583417819, 20.41784963630818], [100.329101190189519, 20.786121731036229], [101.180005324307515, 21.436572984294024], [101.270025669359939, 21.201651923095177], [101.803119744882906, 21.174366766845065], [101.652017856861491, 22.318198757409544], [102.170435825613552, 22.464753119389297], [102.754896274834636, 21.675137233969462], [103.203861118586431, 20.766562201413745], [104.435000441508024, 20.758733221921528], [104.822573683697073, 19.886641750563879], [104.183387892678908, 19.624668077060214], [103.896532017026701, 19.265180975821799], [105.094598423281496, 18.666974595611073], [105.925762160264, 17.485315456608955], [106.55600792849566, 16.604283962464802], [107.312705926545576, 15.908538316303177], [107.564525181103875, 15.202173163305554], [107.382727492301058, 14.202440904186968], [106.496373325630856, 14.57058380783428], [106.04394616091551, 13.881091009979952], [105.218776890078871, 14.27321177821069]]] } }, + { "type": "Feature", "properties": { "admin": "Lebanon", "name": "Lebanon", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.821100701650231, 33.277426459276292], [35.552796665190805, 33.264274807258012], [35.460709262846699, 33.089040025356276], [35.126052687324538, 33.090900376918775], [35.48220665868012, 33.905450140919434], [35.979592319489392, 34.610058295219126], [35.998402540843628, 34.644914048799997], [36.448194207512095, 34.59393524834406], [36.611750115715886, 34.201788641897174], [36.066460402172048, 33.824912421192543], [35.821100701650231, 33.277426459276292]]] } }, + { "type": "Feature", "properties": { "admin": "Liberia", "name": "Liberia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-7.712159389669749, 4.364565944837721], [-7.974107224957249, 4.355755113131961], [-9.004793667018673, 4.832418524592199], [-9.913420376006682, 5.593560695819205], [-10.765383876986643, 6.140710760925556], [-11.438779466182053, 6.785916856305746], [-11.199801805048278, 7.105845648624735], [-11.14670427086838, 7.396706447779534], [-10.695594855176477, 7.939464016141085], [-10.230093553091276, 8.406205552601291], [-10.016566534861253, 8.42850393313523], [-9.755342169625832, 8.541055202666923], [-9.33727983238458, 7.928534450711351], [-9.403348151069748, 7.526905218938906], [-9.208786383490844, 7.313920803247952], [-8.926064622422002, 7.309037380396375], [-8.722123582382123, 7.711674302598509], [-8.439298468448696, 7.686042792181736], [-8.485445522485348, 7.395207831243068], [-8.385451626000572, 6.911800645368742], [-8.602880214868618, 6.467564195171659], [-8.311347622094017, 6.193033148621081], [-7.993692592795879, 6.126189683451541], [-7.570152553731686, 5.707352199725903], [-7.53971513511176, 5.313345241716517], [-7.63536821128403, 5.188159084489455], [-7.712159389669749, 4.364565944837721]]] } }, + { "type": "Feature", "properties": { "admin": "Libya", "name": "Libya", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[14.8513, 22.862950000000119], [14.143870883855239, 22.491288967371126], [13.581424594790459, 23.040506089769274], [11.999505649471697, 23.471668402596432], [11.560669386449032, 24.09790924732561], [10.771363559622952, 24.562532050061741], [10.303846876678445, 24.379313259370967], [9.948261346078024, 24.936953640232613], [9.910692579801774, 25.365454616796789], [9.319410841518218, 26.094324856057476], [9.716285841519662, 26.512206325785652], [9.629056023811073, 27.140953477481041], [9.756128370816779, 27.688258571884198], [9.68388471847288, 28.144173895779311], [9.859997999723472, 28.959989732371064], [9.805634392952353, 29.424638373323369], [9.482139926805415, 30.307556057246181], [9.970017124072966, 30.539324856075375], [10.056575148161697, 30.961831366493517], [9.950225050505194, 31.376069647745275], [10.636901482799484, 31.761420803345679], [10.944789666394511, 32.081814683555358], [11.43225345220378, 32.368903103152824], [11.488787469131008, 33.136995754523234], [12.66331, 32.79278], [13.08326, 32.87882], [13.91868, 32.71196], [15.24563, 32.26508], [15.71394, 31.37626], [16.61162, 31.18218], [18.02109, 30.76357], [19.08641, 30.26639], [19.57404, 30.52582], [20.05335, 30.98576], [19.82033, 31.751790000000135], [20.13397, 32.2382], [20.85452, 32.7068], [21.54298, 32.8432], [22.89576, 32.63858], [23.2368, 32.19149], [23.6091300000001, 32.18726], [23.9275, 32.01667], [24.92114, 31.89936], [25.16482, 31.56915], [24.80287, 31.08929], [24.95762, 30.6616], [24.70007, 30.04419], [25.00000000000011, 29.238654529533552], [25.00000000000011, 25.682499996360995], [25.00000000000011, 22.0], [25.00000000000011, 20.00304], [23.850000000000129, 20.0], [23.837660000000135, 19.580470000000101], [19.84926, 21.49509], [15.86085, 23.40972], [14.8513, 22.862950000000119]]] } }, + { "type": "Feature", "properties": { "admin": "Sri Lanka", "name": "Sri Lanka", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[81.787959018891371, 7.523055324733162], [81.637322218760573, 6.481775214051921], [81.218019647144317, 6.197141424988287], [80.348356968104397, 5.968369859232154], [79.872468703128519, 6.763463446474928], [79.6951668639351, 8.200843410673384], [80.147800734379629, 9.824077663609554], [80.838817986986541, 9.268426825391186], [81.304319289071756, 8.564206244333688], [81.787959018891371, 7.523055324733162]]] } }, + { "type": "Feature", "properties": { "admin": "Lesotho", "name": "Lesotho", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[28.978262566857236, -28.955596612261708], [29.325166456832587, -29.257386976846245], [29.018415154748016, -29.743765557577362], [28.848399692507734, -30.070050551068245], [28.291069370239903, -30.226216729454293], [28.107204624145421, -30.545732110314944], [27.749397006956478, -30.645105889612214], [26.999261915807629, -29.875953871379977], [27.532511020627471, -29.242710870075353], [28.07433841320778, -28.851468601193581], [28.541700066855491, -28.647501722937562], [28.978262566857236, -28.955596612261708]]] } }, + { "type": "Feature", "properties": { "admin": "Lithuania", "name": "Lithuania", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.731098667092649, 54.327536932993311], [22.651051873472536, 54.582740993866729], [22.757763706155256, 54.856574408581366], [22.31572350433057, 55.01529857036585], [21.26844892750346, 55.190481675835301], [21.05580040862241, 56.031076361711051], [22.201156853939491, 56.337801825579483], [23.878263787539957, 56.273671373105259], [24.860684441840753, 56.372528388079616], [25.000934279080887, 56.164530748104831], [25.533046502390327, 56.100296942766029], [26.494331495883749, 55.61510691997762], [26.588279249790386, 55.167175604871659], [25.768432651479792, 54.846962592175082], [25.536353794056989, 54.282423407602515], [24.45068362803703, 53.905702216194747], [23.484127638449841, 53.912497667041123], [23.243987257589506, 54.220566718149129], [22.731098667092649, 54.327536932993311]]] } }, + { "type": "Feature", "properties": { "admin": "Luxembourg", "name": "Luxembourg", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[6.043073357781109, 50.128051662794221], [6.242751092156992, 49.90222565367872], [6.186320428094176, 49.4638028021145], [5.897759230176403, 49.442667141307012], [5.674051954784828, 49.52948354755749], [5.782417433300905, 50.090327867221205], [6.043073357781109, 50.128051662794221]]] } }, + { "type": "Feature", "properties": { "admin": "Latvia", "name": "Latvia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[21.05580040862241, 56.031076361711051], [21.090423618257965, 56.783872789122924], [21.581866489353668, 57.411870632549913], [22.524341261492872, 57.753374335350756], [23.31845299652209, 57.006236477274854], [24.120729607853423, 57.025692654032753], [24.312862583114615, 57.793423570376966], [25.164593540149262, 57.970156968815175], [25.602809685984365, 57.847528794986559], [26.46353234223778, 57.476388658266316], [27.288184848751509, 57.474528306703817], [27.770015903440925, 57.244258124411218], [27.855282016722519, 56.759326483784278], [28.17670942557799, 56.169129950578807], [27.102459751094525, 55.783313707087672], [26.494331495883749, 55.61510691997762], [25.533046502390327, 56.100296942766029], [25.000934279080887, 56.164530748104831], [24.860684441840753, 56.372528388079616], [23.878263787539957, 56.273671373105259], [22.201156853939491, 56.337801825579483], [21.05580040862241, 56.031076361711051]]] } }, + { "type": "Feature", "properties": { "admin": "Morocco", "name": "Morocco", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-5.193863491222031, 35.755182196590845], [-4.591006232105143, 35.330711981745644], [-3.640056525070007, 35.39985504815197], [-2.604305792644111, 35.17909332940112], [-2.169913702798624, 35.168396307916694], [-1.792985805661658, 34.527918606091298], [-1.73345455566141, 33.919712836232115], [-1.388049282222596, 32.864015000941372], [-1.124551153966195, 32.651521511357195], [-1.30789913573787, 32.262888902306024], [-2.616604783529567, 32.094346218386157], [-3.068980271812648, 31.724497992473285], [-3.647497931320145, 31.637294012980814], [-3.690441046554666, 30.896951605751152], [-4.859646165374442, 30.501187649043874], [-5.242129278982786, 30.00044302013557], [-6.060632290053745, 29.731699734001801], [-7.059227667661899, 29.57922842052465], [-8.67411617678283, 28.841288967396643], [-8.665589565454836, 27.656425889592462], [-8.817809007940523, 27.656425889592462], [-8.817828334986642, 27.656425889592462], [-8.794883999049032, 27.120696316022553], [-9.413037482124507, 27.088476060488539], [-9.735343390328749, 26.860944729107409], [-10.189424200877452, 26.860944729107409], [-10.551262579785258, 26.990807603456879], [-11.392554897496948, 26.883423977154386], [-11.718219773800339, 26.104091701760801], [-12.030758836301654, 26.030866197203121], [-12.500962693725368, 24.770116278578136], [-13.891110398809044, 23.691009019459383], [-14.22116777185715, 22.310163072188338], [-14.630832688850942, 21.860939846274867], [-14.750954555713404, 21.500600083903802], [-17.002961798561071, 21.42073415779668], [-17.020428432675768, 21.422310288981631], [-16.973247849993182, 21.88574453377495], [-16.589136928767626, 22.158234361250091], [-16.26192175949566, 22.679339504481273], [-16.326413946995896, 23.017768459560894], [-15.982610642958059, 23.723358466074096], [-15.426003790742183, 24.359133612561035], [-15.089331834360729, 24.520260728446964], [-14.824645148161689, 25.103532619725307], [-14.800925665739666, 25.636264960222285], [-14.439939947964827, 26.254418443297645], [-13.773804897506462, 26.618892320252279], [-13.13994177901429, 27.640147813420491], [-13.121613369914709, 27.654147671719805], [-12.61883663578311, 28.038185533148656], [-11.688919236690761, 28.148643907172577], [-10.9009569971044, 28.832142238880913], [-10.39959225100864, 29.09858592377778], [-9.564811163765624, 29.933573716749855], [-9.814718390329174, 31.177735500609053], [-9.434793260119362, 32.038096421836478], [-9.300692918321827, 32.564679266890629], [-8.657476365585039, 33.24024526624239], [-7.654178432638217, 33.697064927702506], [-6.912544114601358, 34.11047638603744], [-6.24434200685141, 35.145865383437517], [-5.929994269219832, 35.759988104793983], [-5.193863491222031, 35.755182196590845]]] } }, + { "type": "Feature", "properties": { "admin": "Moldova", "name": "Moldova", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[26.619336785597788, 48.220726223333457], [26.857823520624798, 48.368210761094488], [27.52253746919515, 48.467119452501102], [28.259546746541837, 48.155562242213406], [28.670891147585163, 48.118148505234089], [29.122698195113024, 47.849095160506458], [29.050867954227321, 47.510226955752493], [29.415135125452732, 47.346645209332571], [29.559674106573105, 46.928582872091312], [29.908851759569295, 46.67436066343145], [29.838210076626289, 46.525325832701675], [30.024658644335364, 46.423936672545032], [29.759971958136383, 46.349987697935354], [29.170653924279879, 46.379262396828693], [29.072106967899288, 46.517677720722482], [28.862972446414055, 46.437889309263824], [28.933717482221621, 46.258830471372491], [28.659987420371575, 45.939986884131628], [28.48526940279276, 45.596907050145887], [28.233553501099035, 45.488283189468369], [28.054442986775392, 45.944586086605618], [28.160017937947707, 46.371562608417207], [28.128030226359037, 46.81047638608824], [27.551166212684841, 47.405117092470817], [27.233872918412736, 47.826770941756365], [26.924176059687561, 48.123264472030982], [26.619336785597788, 48.220726223333457]]] } }, + { "type": "Feature", "properties": { "admin": "Madagascar", "name": "Madagascar", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[49.543518914595737, -12.469832858940553], [49.80898074727908, -12.895284925999551], [50.05651085795715, -13.555761407121981], [50.217431268114055, -14.758788750876795], [50.476536899625515, -15.226512139550541], [50.377111443895942, -15.706069431219122], [50.200274692593169, -16.000263360256763], [49.860605503138665, -15.414252618066913], [49.672606642460849, -15.710203545802477], [49.863344354050142, -16.451036879138773], [49.774564243372694, -16.875042006093597], [49.49861209493411, -17.10603565843827], [49.435618523970298, -17.953064060134363], [49.04179243347393, -19.118781019774442], [48.548540887247995, -20.496888116134119], [47.930749139198653, -22.391501153251077], [47.547723423051295, -23.781958916928513], [47.095761346226588, -24.941629733990446], [46.282477654817079, -25.178462823184102], [45.409507684110444, -25.601434421493082], [44.833573846217547, -25.346101169538933], [44.039720493349755, -24.9883452287823], [43.763768344911156, -24.460677178649988], [43.697777540874441, -23.574116306250595], [43.345654331237611, -22.77690398528387], [43.254187046080986, -22.057413018484116], [43.433297560404633, -21.336475111580185], [43.893682895692919, -21.163307386970121], [43.89637007017209, -20.830459486578167], [44.374325392439644, -20.072366224856385], [44.464397413924374, -19.435454196859045], [44.23242190936616, -18.961994724200899], [44.042976108584149, -18.331387220943167], [43.963084344260899, -17.409944756746778], [44.312468702986273, -16.850495700754951], [44.446517368351387, -16.216219170804504], [44.944936557806521, -16.179373874580396], [45.502731967964976, -15.974373467678538], [45.872993605336255, -15.793454278224681], [46.312243279817203, -15.780018405828795], [46.882182651564271, -15.210182386946309], [47.70512983581235, -14.594302666891762], [48.005214878131241, -14.091232598530372], [47.869047479042152, -13.663868503476582], [48.29382775248137, -13.784067884987483], [48.845060255738773, -13.08917489995866], [48.863508742066976, -12.487867933810417], [49.194651320193302, -12.040556735891967], [49.543518914595737, -12.469832858940553]]] } }, + { "type": "Feature", "properties": { "admin": "Mexico", "name": "Mexico", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-97.140008307670684, 25.869997463478395], [-97.528072475966539, 24.992144069920297], [-97.702945522842214, 24.272343044526728], [-97.776041836319024, 22.932579860927653], [-97.872366706111094, 22.444211737553356], [-97.699043952204164, 21.898689480064256], [-97.388959520236739, 21.411018988525818], [-97.189333462293277, 20.635433254473124], [-96.525575527720306, 19.890930894444061], [-96.292127244841737, 19.32037140550954], [-95.90088497595994, 18.828024196848727], [-94.8390634834427, 18.562717393462204], [-94.425729539756205, 18.144370835843343], [-93.548651292682365, 18.423836981677933], [-92.786113857783477, 18.524838568592255], [-92.037348192090391, 18.704569200103432], [-91.407903408559235, 18.876083278880227], [-90.771869879910852, 19.284120388256778], [-90.533589850613026, 19.867418117751292], [-90.451475999701231, 20.707521877520428], [-90.278618333684889, 20.999855454995547], [-89.601321173851474, 21.261725775634485], [-88.543866339862845, 21.493675441976613], [-87.658416510757704, 21.458845526611977], [-87.051890224948053, 21.543543199138295], [-86.811982388032931, 21.331514797444747], [-86.845907965832595, 20.849864610268348], [-87.383291185235848, 20.255404771398727], [-87.621054450210721, 19.646553046135917], [-87.436750454441764, 19.472403469312265], [-87.586560431655911, 19.040130113190738], [-87.837191128271485, 18.259815985583426], [-88.090664028663156, 18.516647854074048], [-88.300031094093626, 18.499982204659997], [-88.490122850279278, 18.486830552641717], [-88.84834387892657, 17.883198147040329], [-89.029857347351737, 18.001511338772556], [-89.150909389995462, 17.955467637600403], [-89.143080410503316, 17.808318996649401], [-90.067933519230891, 17.819326076727517], [-91.001519945015943, 17.817594916245692], [-91.002269253284155, 17.254657701074272], [-91.453921271515114, 17.252177232324183], [-91.08167009150057, 16.918476670799517], [-90.711821865587623, 16.687483018454767], [-90.600846727240921, 16.470777899638787], [-90.438866950221993, 16.410109768128105], [-90.464472622422633, 16.069562079324722], [-91.747960171255926, 16.066564846251762], [-92.229248623406278, 15.251446641495871], [-92.087215949252013, 15.06458466232851], [-92.203229539747255, 14.830102850804108], [-92.227750006869812, 14.538828640190953], [-93.359463874061746, 15.61542959234367], [-93.875168830118511, 15.94016429286591], [-94.691656460330108, 16.20097524664288], [-95.250227016973014, 16.128318182840641], [-96.053382127653293, 15.752087917539592], [-96.557434048228274, 15.653515122942787], [-97.263592495496624, 15.917064927631312], [-98.013029954809596, 16.107311713113912], [-98.947675747456486, 16.566043402568763], [-99.697397427147024, 16.706164048728166], [-100.829498867581293, 17.171071071842047], [-101.666088629954444, 17.649026394109622], [-101.918528001700196, 17.916090196193974], [-102.478132086988907, 17.975750637275095], [-103.500989549558057, 18.292294623278845], [-103.917527432046811, 18.748571682200005], [-104.992009650475467, 19.316133938061679], [-105.493038499761411, 19.946767279535429], [-105.731396043707633, 20.434101874264108], [-105.397772996831321, 20.531718654863422], [-105.500660773524402, 20.816895046466122], [-105.27075232625792, 21.076284898355137], [-105.265817226974022, 21.422103583252348], [-105.603160976975374, 21.871145941652568], [-105.693413865973113, 22.269080308516148], [-106.028716396898943, 22.77375234627862], [-106.909980434988341, 23.767774359628895], [-107.91544877809136, 24.548915310152946], [-108.401904873470954, 25.172313951105931], [-109.260198737406625, 25.580609442644054], [-109.444089321717314, 25.824883938087673], [-109.291643846456267, 26.44293406829842], [-109.801457689231796, 26.676175645447923], [-110.391731737085692, 27.162114976504533], [-110.641018846461606, 27.859876003525521], [-111.178918830187826, 27.941240546169062], [-111.759606899851619, 28.467952582303944], [-112.228234626090369, 28.954408677683482], [-112.27182369672866, 29.266844387320074], [-112.80959448937395, 30.021113593052341], [-113.163810594518651, 30.786880804969424], [-113.148669399857141, 31.170965887978912], [-113.871881069781836, 31.56760834403519], [-114.205736660603506, 31.524045111613123], [-114.776451178835003, 31.79953217216114], [-114.936699795372121, 31.393484605427595], [-114.771231859173483, 30.91361725516526], [-114.673899298951739, 30.162681179315985], [-114.330974494262918, 29.750432440707407], [-113.588875088335413, 29.061611436473008], [-113.424053107540516, 28.826173610951223], [-113.271969367305502, 28.754782619739892], [-113.140039435664363, 28.411289374295954], [-112.962298346796473, 28.425190334582503], [-112.761587083774856, 27.78021678314752], [-112.457910529411635, 27.525813706974752], [-112.24495195193677, 27.171726792910754], [-111.616489020619184, 26.662817287700474], [-111.284674648872993, 25.732589830014426], [-110.987819383572386, 25.294606228124557], [-110.71000688357131, 24.826004340101854], [-110.655048997828871, 24.298594672131113], [-110.17285620811343, 24.265547593680417], [-109.771847093528521, 23.811182562754194], [-109.409104377055698, 23.364672349536242], [-109.433392300232896, 23.185587673428696], [-109.85421932660168, 22.818271592698061], [-110.031391974714424, 22.823077500901199], [-110.295070970483636, 23.430973212166684], [-110.949501309028022, 24.000964260345988], [-111.670568407012681, 24.484423122652508], [-112.182035895621468, 24.73841278736716], [-112.148988817170817, 25.470125230404044], [-112.300710822379671, 26.012004299416613], [-112.777296719191526, 26.321959540303162], [-113.464670783321907, 26.768185533143416], [-113.596729906043805, 26.639459540304465], [-113.848936733844241, 26.900063788352437], [-114.465746629680027, 27.142090358991361], [-115.055142178184965, 27.722726752222904], [-114.982252570437382, 27.798200181585109], [-114.570365566854917, 27.741485297144884], [-114.199328782999231, 28.115002549750553], [-114.162018398884612, 28.566111965442296], [-114.931842210736605, 29.279479275015483], [-115.518653937626965, 29.556361599235395], [-115.887365282029563, 30.180793768834171], [-116.2583503894529, 30.836464341753572], [-116.721526252084956, 31.635743720012037], [-117.127759999999839, 32.53534], [-115.99135, 32.612390000000111], [-114.72139, 32.72083], [-114.815, 32.52528], [-113.30498, 32.03914], [-111.02361, 31.33472], [-109.035, 31.341940000000129], [-108.24194, 31.34222], [-108.24, 31.754853718166366], [-106.507589999999851, 31.75452], [-106.1429, 31.39995], [-105.63159, 31.08383], [-105.03737, 30.64402], [-104.70575, 30.12173], [-104.456969999999885, 29.57196], [-103.94, 29.27], [-103.11, 28.97], [-102.48, 29.76], [-101.6624, 29.7793], [-100.9576, 29.380710000000125], [-100.45584, 28.696120000000118], [-100.11, 28.11000000000012], [-99.52, 27.54], [-99.3, 26.84], [-99.019999999999897, 26.37], [-98.24, 26.06], [-97.529999999999887, 25.84], [-97.140008307670684, 25.869997463478395]]] } }, + { "type": "Feature", "properties": { "admin": "Macedonia", "name": "Macedonia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.59023, 41.85541], [20.717310000000108, 41.84711], [20.76216, 42.05186], [21.352700000000134, 42.2068], [21.576635989402117, 42.245224397061847], [21.917080000000105, 42.30364], [22.380525750424674, 42.320259507815074], [22.881373732197339, 41.999297186850349], [22.952377150166505, 41.337993882811176], [22.76177, 41.3048], [22.597308383889008, 41.130487168943198], [22.055377638444266, 41.149865831052686], [21.674160597426969, 40.93127452245794], [21.020040317476397, 40.842726955725873], [20.60518, 41.08622], [20.46315, 41.51509], [20.59023, 41.85541]]] } }, + { "type": "Feature", "properties": { "admin": "Mali", "name": "Mali", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-12.170750291380299, 14.616834214735503], [-11.834207526079465, 14.799096991428936], [-11.666078253617853, 15.388208319556295], [-11.349095017939502, 15.411256008358475], [-10.650791388379414, 15.132745876521422], [-10.086846482778212, 15.330485744686269], [-9.700255092802703, 15.264107367407359], [-9.550238409859388, 15.486496893775435], [-5.537744309908446, 15.501689764869253], [-5.315277268891931, 16.201853745991837], [-5.488522508150438, 16.325102037007962], [-5.971128709324247, 20.640833441647626], [-6.453786586930334, 24.956590684503418], [-4.92333736817423, 24.974574082940993], [-1.550054897457613, 22.792665920497377], [1.823227573259032, 20.61080943448604], [2.060990838233919, 20.142233384679482], [2.683588494486428, 19.856230170160114], [3.146661004253899, 19.693578599521441], [3.158133172222704, 19.057364203360034], [4.267419467800038, 19.155265204336995], [4.270209995143801, 16.852227484601212], [3.723421665063482, 16.184283759012612], [3.638258904646476, 15.568119818580453], [2.749992709981483, 15.409524847876693], [1.385528191746857, 15.323561102759168], [1.01578331869851, 14.968182277887944], [0.374892205414682, 14.928908189346128], [-0.26625729003058, 14.924308986872147], [-0.515854458000348, 15.116157741755725], [-1.066363491205663, 14.973815009007764], [-2.001035122068771, 14.559008287000887], [-2.191824510090384, 14.246417548067352], [-2.967694464520576, 13.798150336151506], [-3.103706834312759, 13.54126679122859], [-3.52280270019986, 13.337661647998612], [-4.006390753587225, 13.472485459848112], [-4.280405035814879, 13.228443508349738], [-4.427166103523802, 12.542645575404292], [-5.220941941743119, 11.713858954307224], [-5.197842576508648, 11.375145778850136], [-5.470564947929004, 10.951269842976044], [-5.404341599946973, 10.370736802609144], [-5.816926235365286, 10.222554633012191], [-6.050452032892266, 10.096360785355442], [-6.205222947606429, 10.524060777219132], [-6.493965013037267, 10.411302801958268], [-6.666460944027547, 10.430810655148447], [-6.850506557635057, 10.138993841996237], [-7.622759161804808, 10.147236232946792], [-7.89958980959237, 10.297382106970824], [-8.029943610048617, 10.206534939001711], [-8.335377163109738, 10.494811916541932], [-8.282357143578279, 10.792597357623842], [-8.407310756860026, 10.90925690352276], [-8.620321010767126, 10.810890814655181], [-8.581305304386772, 11.136245632364801], [-8.376304897484911, 11.393645941610627], [-8.786099005559462, 11.812560939984705], [-8.905264858424529, 12.088358059126433], [-9.127473517279581, 12.308060411015331], [-9.327616339546008, 12.334286200403451], [-9.567911749703212, 12.194243068892472], [-9.890992804392011, 12.060478623904968], [-10.165213792348835, 11.844083563682743], [-10.593223842806278, 11.923975328005977], [-10.870829637078211, 12.177887478072106], [-11.036555955438256, 12.211244615116513], [-11.297573614944508, 12.077971096235768], [-11.456168585648269, 12.076834214725336], [-11.513942836950587, 12.442987575729415], [-11.467899135778522, 12.754518947800973], [-11.553397793005427, 13.141213690641063], [-11.927716030311613, 13.422075100147392], [-12.124887457721256, 13.994727484589784], [-12.170750291380299, 14.616834214735503]]] } }, + { "type": "Feature", "properties": { "admin": "Myanmar", "name": "Myanmar", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[99.543309360759281, 20.186597601802056], [98.959675734454848, 19.752980658440944], [98.253723992915582, 19.708203029860041], [97.797782830804394, 18.627080389881751], [97.375896437573516, 18.445437730375811], [97.859122755934848, 17.567946071843657], [98.493761020911322, 16.837835598207928], [98.90334842325673, 16.177824204976115], [98.537375929765687, 15.308497422746081], [98.192074009191373, 15.123702500870349], [98.430819126379859, 14.622027696180831], [99.097755161538728, 13.827502549693275], [99.212011753336071, 13.269293728076462], [99.196353794351637, 12.804748439988666], [99.587286004639694, 11.892762762901695], [99.038120558673953, 10.960545762572435], [98.553550653073017, 9.932959906448543], [98.457174106848697, 10.675266018105146], [98.764545526120756, 11.441291612183745], [98.428338657629823, 12.032986761925681], [98.509574009192661, 13.122377631070675], [98.103603957107666, 13.64045970301285], [97.777732375075161, 14.837285874892638], [97.597071567782749, 16.100567938699765], [97.164539829499773, 16.928734442609336], [96.505768670642965, 16.427240505432845], [95.369352248112378, 15.714389960182599], [94.808404575584092, 15.803454291237637], [94.188804152404515, 16.037936102762014], [94.533485955791321, 17.277240301985724], [94.324816522196741, 18.213513902249893], [93.540988397193615, 19.366492621330021], [93.663254835996199, 19.726961574781992], [93.078277622452163, 19.855144965081973], [92.368553501355606, 20.670883287025344], [92.30323449093865, 21.475485337809815], [92.652257114637976, 21.324047552978481], [92.672720981825549, 22.041238918541247], [93.166127557348361, 22.278459580977099], [93.060294224014598, 22.703110663335565], [93.286326938859247, 23.043658352138998], [93.325187615942767, 24.078556423432197], [94.106741977925054, 23.850740871673477], [94.552657912171611, 24.675238348890328], [94.603249139385355, 25.162495428970399], [95.155153436262566, 26.001307277932078], [95.124767694074933, 26.573572089132295], [96.419365675850941, 27.264589341739221], [97.133999058015277, 27.08377350514996], [97.051988559968066, 27.699058946233144], [97.402561476636123, 27.88253611908544], [97.327113885490007, 28.261582749946331], [97.91198774616943, 28.335945136014338], [98.24623091023328, 27.747221381129172], [98.682690057370451, 27.508812160750612], [98.712093947344499, 26.74353587494026], [98.671838006589127, 25.918702500913518], [97.724609002679117, 25.083637193292994], [97.604719679761956, 23.897404690033039], [98.660262485755737, 24.063286037689959], [98.898749220782747, 23.142722072842524], [99.531992222087382, 22.949038804612574], [99.240898878987224, 22.118314317304577], [99.983489211021464, 21.742936713136398], [100.416537713627349, 21.558839423096607], [101.150032993578222, 21.849984442629015], [101.180005324307515, 21.436572984294024], [100.329101190189519, 20.786121731036229], [100.115987583417819, 20.41784963630818], [99.543309360759281, 20.186597601802056]]] } }, + { "type": "Feature", "properties": { "admin": "Montenegro", "name": "Montenegro", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[19.801613396898681, 42.500093492190835], [19.738051385179627, 42.688247382165564], [19.30449, 42.19574], [19.371770000000136, 41.87755], [19.16246, 41.95502], [18.88214, 42.28151], [18.45, 42.48], [18.56, 42.65], [18.70648, 43.20011], [19.03165, 43.43253], [19.21852, 43.52384], [19.48389, 43.35229], [19.63, 43.213779970270522], [19.95857, 43.10604], [20.3398, 42.89852], [20.25758, 42.81275], [20.0707, 42.58863], [19.801613396898681, 42.500093492190835]]] } }, + { "type": "Feature", "properties": { "admin": "Mongolia", "name": "Mongolia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[87.751264276076697, 49.297197984405479], [88.805566847695488, 49.470520738312409], [90.713667433640666, 50.331811835321076], [92.234711541719662, 50.802170722041716], [93.104219191462661, 50.495290228876414], [94.147566359435615, 50.480536607457083], [94.815949334698701, 50.013433335970838], [95.814027947983973, 49.977466539095708], [97.259727817781396, 49.726060695995727], [98.231761509191543, 50.422400621128737], [97.825739780674283, 51.010995184933165], [98.861490513100307, 52.047366034546684], [99.981732212323507, 51.634006252643978], [100.889480421962588, 51.516855780638316], [102.065222609467298, 51.25992055928311], [102.255908644624299, 50.510560614618669], [103.676545444760194, 50.089966132195109], [104.621552362081687, 50.275329494826067], [105.886591424586726, 50.406019192092209], [106.888804152455336, 50.274295966180219], [107.868175897250936, 49.793705145865808], [108.475167270951275, 49.282547715850725], [109.402449171996636, 49.292960516957535], [110.662010532678764, 49.130128078805861], [111.581230910286607, 49.377968248077678], [112.897739699354361, 49.543565375356984], [114.362456496235239, 50.248302720737399], [114.962109816550154, 50.140247300815112], [115.485695428531386, 49.805177313834591], [116.678800897286152, 49.888531399121376], [116.191802199367544, 49.134598090199091], [115.485282017073018, 48.135382595403428], [115.742837355615748, 47.726544501326273], [116.308952671373206, 47.853410142602826], [117.295507440257396, 47.69770905210742], [118.064142694166691, 48.066730455103674], [118.866574334794933, 47.747060044946153], [119.772823927897477, 47.048058783550125], [119.66326989143873, 46.692679958678909], [118.874325799638711, 46.805412095723646], [117.421701287914175, 46.672732855814253], [116.717868280098841, 46.388202419615205], [115.985096470200062, 45.727235012385989], [114.46033165899604, 45.339816799493811], [113.463906691544139, 44.808893134127111], [112.436062453258785, 45.011645616224278], [111.873306105600278, 45.102079372735055], [111.348376906379428, 44.457441718110083], [111.667737257943202, 44.073175767587706], [111.829587843881342, 43.743118394539515], [111.129682244920218, 43.406834011400136], [110.412103306115256, 42.871233628911014], [109.243595819131428, 42.519446316084093], [107.744772576937933, 42.481515814781865], [106.129315627061658, 42.134327704428898], [104.964993931093446, 41.597409572916334], [104.522281935648977, 41.908346666016541], [103.312278273534787, 41.907468166667591], [101.833040399179922, 42.51487295182627], [100.845865513108237, 42.663804429691439], [99.515817498780009, 42.524691473961717], [97.451757440177985, 42.748889675460013], [96.349395786527793, 42.725635280928678], [95.762454868556674, 43.319449164394598], [95.306875441471504, 44.241330878265458], [94.688928664125299, 44.352331854828414], [93.480733677141274, 44.975472113619951], [92.133890822318193, 45.115075995456444], [90.945539585334288, 45.286073309910265], [90.585768263718265, 45.719716091487513], [90.970809360724985, 46.888146063822923], [90.280825636763893, 47.693549099307923], [88.854297723346733, 48.06908173277295], [88.013832228551721, 48.599462795600601], [87.751264276076697, 49.297197984405479]]] } }, + { "type": "Feature", "properties": { "admin": "Mozambique", "name": "Mozambique", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[34.559989047999345, -11.520020033415923], [35.312397902169032, -11.439146416879145], [36.514081658684248, -11.720938002166733], [36.775150994622791, -11.594537448780804], [37.471284214026596, -11.568750909067157], [37.827644891111383, -11.268769219612834], [38.427556593587745, -11.285202325081654], [39.521029900883768, -10.896853936408224], [40.316588576017182, -10.317096042525696], [40.478387485523022, -10.765440769089992], [40.437253045418672, -11.761710707245014], [40.560811395028558, -12.639176527561023], [40.599620395679743, -14.201975192931858], [40.775475294768988, -14.691764418194239], [40.477250604012596, -15.406294447493968], [40.089263950365208, -16.100774021064456], [39.452558628097044, -16.720891208566936], [38.53835086442151, -17.101023044505954], [37.411132846838875, -17.586368096591233], [36.281279331209348, -18.659687595293445], [35.896496616364054, -18.842260430580634], [35.198399692533137, -19.552811374593887], [34.786383497870041, -19.784011732667732], [34.701892531072836, -20.497043145431007], [35.176127150215358, -21.254361260668407], [35.373427768705731, -21.840837090748874], [35.385848253705397, -22.14], [35.562545536369079, -22.09], [35.533934767404297, -23.070787855727751], [35.371774122872374, -23.535358982031692], [35.607470330555621, -23.706563002214676], [35.458745558419615, -24.122609958596545], [35.040734897610655, -24.478350518493798], [34.215824008935463, -24.816314385682652], [33.013210076639005, -25.357573337507731], [32.574632195777859, -25.727318210556088], [32.660363396950082, -26.148584486599443], [32.915955031065685, -26.215867201443459], [32.830120477028878, -26.74219166433619], [32.071665480281062, -26.733820082304902], [31.985779249811962, -26.29177988048022], [31.837777947728057, -25.843331801051342], [31.752408481581874, -25.484283949487406], [31.930588820124242, -24.369416599222532], [31.670397983534645, -23.658969008073861], [31.191409132621278, -22.251509698172395], [32.244988234188007, -21.116488539313689], [32.508693068173436, -20.395292250248303], [32.659743279762573, -20.30429005298231], [32.772707960752619, -19.715592136313294], [32.611994256324884, -19.419382826416268], [32.654885695127142, -18.672089939043492], [32.849860874164385, -17.979057305577175], [32.847638787575839, -16.713398125884613], [32.328238966610222, -16.392074069893749], [31.852040643040592, -16.319417006091374], [31.636498243951188, -16.071990248277881], [31.173063999157673, -15.860943698797868], [30.338954705534537, -15.880839125230242], [30.274255812305103, -15.507786960515208], [30.179481235481827, -14.796099134991525], [33.214024692525207, -13.97186003993615], [33.789700148256678, -14.451830743063068], [34.064825473778619, -14.359950046448118], [34.459633416488536, -14.613009535381421], [34.517666049952304, -15.013708591372609], [34.307291294092089, -15.478641452702592], [34.381291945134045, -16.183559665596039], [35.033810255683527, -16.801299737213089], [35.339062941231639, -16.107440280830108], [35.771904738108347, -15.896858819240721], [35.686845330555926, -14.611045830954328], [35.267956170398001, -13.887834161029563], [34.907151320136158, -13.565424899960565], [34.559989047999345, -13.579997653866872], [34.280006137841973, -12.280025323132504], [34.559989047999345, -11.520020033415923]]] } }, + { "type": "Feature", "properties": { "admin": "Mauritania", "name": "Mauritania", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-12.170750291380299, 14.616834214735503], [-12.830658331747513, 15.303691514542942], [-13.43573767745306, 16.039383042866188], [-14.099521450242175, 16.304302273010489], [-14.577347581428977, 16.598263658102805], [-15.135737270558813, 16.587282416240779], [-15.623666144258689, 16.369337063049809], [-16.120690070041928, 16.45566254319338], [-16.463098110407881, 16.135036119038457], [-16.549707810929061, 16.673892116761959], [-16.270551723688353, 17.166962795474866], [-16.146347418674846, 18.108481553616652], [-16.256883307347163, 19.096715806550304], [-16.377651129613266, 19.593817246981981], [-16.277838100641514, 20.092520656814695], [-16.536323614965465, 20.567866319251486], [-17.063423224342568, 20.99975210213082], [-16.845193650773989, 21.333323472574875], [-12.929101935263528, 21.327070624267559], [-13.118754441774708, 22.771220201096249], [-12.874221564169574, 23.284832261645171], [-11.93722449385332, 23.374594224536164], [-11.969418911171159, 25.933352769468261], [-8.687293667017398, 25.881056219988899], [-8.684399786809051, 27.395744126895998], [-4.92333736817423, 24.974574082940993], [-6.453786586930334, 24.956590684503418], [-5.971128709324247, 20.640833441647626], [-5.488522508150438, 16.325102037007962], [-5.315277268891931, 16.201853745991837], [-5.537744309908446, 15.501689764869253], [-9.550238409859388, 15.486496893775435], [-9.700255092802703, 15.264107367407359], [-10.086846482778212, 15.330485744686269], [-10.650791388379414, 15.132745876521422], [-11.349095017939502, 15.411256008358475], [-11.666078253617853, 15.388208319556295], [-11.834207526079465, 14.799096991428936], [-12.170750291380299, 14.616834214735503]]] } }, + { "type": "Feature", "properties": { "admin": "Malawi", "name": "Malawi", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[34.559989047999345, -11.520020033415923], [34.280006137841973, -12.280025323132504], [34.559989047999345, -13.579997653866872], [34.907151320136158, -13.565424899960565], [35.267956170398001, -13.887834161029563], [35.686845330555926, -14.611045830954328], [35.771904738108347, -15.896858819240721], [35.339062941231639, -16.107440280830108], [35.033810255683527, -16.801299737213089], [34.381291945134045, -16.183559665596039], [34.307291294092089, -15.478641452702592], [34.517666049952304, -15.013708591372609], [34.459633416488536, -14.613009535381421], [34.064825473778619, -14.359950046448118], [33.789700148256678, -14.451830743063068], [33.214024692525207, -13.97186003993615], [32.688165317523122, -13.712857761289273], [32.991764357237876, -12.783870537978272], [33.306422153463068, -12.435778090060214], [33.114289178201908, -11.607198174692311], [33.315310499817279, -10.796549981329695], [33.485687697083584, -10.525558770391111], [33.231387973775291, -9.676721693564799], [32.759375441221316, -9.230599053589058], [33.739729038230443, -9.417150974162722], [33.940837724096532, -9.693673841980292], [34.280006137841973, -10.159999688358402], [34.559989047999345, -11.520020033415923]]] } }, + { "type": "Feature", "properties": { "admin": "Malaysia", "name": "Malaysia", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[101.075515578213299, 6.204867051615891], [101.154218784593809, 5.691384182147713], [101.814281854258013, 5.810808417174228], [102.141186964936423, 6.221636053894655], [102.371147088635212, 6.12820506431096], [102.961705356866673, 5.524495144061077], [103.381214634212142, 4.855001125503746], [103.438575474056165, 4.181605536308381], [103.332122023534851, 3.72669790284297], [103.42942874554052, 3.382868760589019], [103.502447544368877, 2.791018581550204], [103.854674106870334, 2.515454006353763], [104.247931756611479, 1.631141058759055], [104.228811476663523, 1.293048000489534], [103.519707472754433, 1.226333726400682], [102.573615350354771, 1.967115383304744], [101.39063846232915, 2.760813706875623], [101.273539666755838, 3.27029165284118], [100.69543541870668, 3.939139715994869], [100.557407668055092, 4.767280381688279], [100.19670617065772, 5.312492580583678], [100.306260207116509, 6.040561835143875], [100.085756870527078, 6.46448944745029], [100.259596388756918, 6.64282481528957], [101.075515578213299, 6.204867051615891]]], [[[118.618320754064825, 4.47820241944754], [117.882034946770162, 4.137551377779487], [117.01521447150634, 4.306094061699468], [115.86551720587677, 4.306559149590156], [115.51907840379198, 3.169238389494395], [115.134037306785231, 2.821481838386219], [114.621355422017473, 1.430688177898886], [113.805849644019531, 1.217548732911041], [112.859809198052176, 1.497790025229946], [112.380251906383648, 1.410120957846757], [111.797548455860408, 0.904441229654651], [111.159137811326559, 0.976478176269509], [110.514060907027101, 0.773131415200993], [109.830226678508836, 1.338135687664191], [109.663260125773718, 2.006466986494984], [110.396135288537039, 1.663774725751395], [111.168852980597478, 1.850636704918784], [111.370081007942076, 2.697303371588872], [111.796928338672842, 2.885896511238073], [112.995614862115247, 3.102394924324869], [113.712935418758718, 3.893509426281127], [114.204016554828399, 4.525873928236819], [114.659595981913526, 4.00763682699781], [114.869557326315373, 4.348313706881952], [115.347460972150671, 4.316636053887009], [115.405700311343594, 4.955227565933824], [115.450710483869798, 5.447729803891561], [116.220741001450961, 6.143191229675621], [116.725102980619752, 6.924771429873998], [117.129626092600461, 6.928052883324566], [117.643393182446303, 6.422166449403305], [117.689075148592337, 5.98749013918018], [118.347691278152197, 5.708695786965462], [119.181903924639926, 5.407835598162249], [119.110693800941718, 5.016128241389864], [118.439727004064082, 4.966518866389619], [118.618320754064825, 4.47820241944754]]]] } }, + { "type": "Feature", "properties": { "admin": "Namibia", "name": "Namibia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[16.344976840895239, -28.576705010697697], [15.601818068105812, -27.821247247022797], [15.210472446359457, -27.09095590587404], [14.989710727608548, -26.117371921495153], [14.74321414557633, -25.392920017195376], [14.40814415859583, -23.85301401132984], [14.385716586981145, -22.656652927340687], [14.257714064194172, -22.111208184499951], [13.868642205468657, -21.699036960539974], [13.352497999737437, -20.872834161057497], [12.82684533046449, -19.673165785401661], [12.608564080463617, -19.045348809487695], [11.794918654028063, -18.069129327061912], [11.734198846085118, -17.30188933682447], [12.215461460019352, -17.11166838955808], [12.814081251688405, -16.941342868724067], [13.462362094789963, -16.971211846588769], [14.058501417709007, -17.42338062914266], [14.209706658595021, -17.353100681225715], [18.26330936043416, -17.309950860262003], [18.956186964603599, -17.789094740472255], [21.377176141045563, -17.930636488519688], [23.215048455506057, -17.52311614346598], [24.033861525170771, -17.29584319424632], [24.6823490740015, -17.35341073981947], [25.076950310982255, -17.578823337476617], [25.084443393664564, -17.661815687737366], [24.520705193792534, -17.887124932529932], [24.217364536239209, -17.889347019118485], [23.579005568137713, -18.281261081620055], [23.196858351339298, -17.869038181227783], [21.655040317478971, -18.219146010005222], [20.910641310314531, -18.252218926672018], [20.881134067475866, -21.814327080983144], [19.895457797940672, -21.849156996347865], [19.895767856534427, -24.767790215760588], [19.89473432788861, -28.461104831660769], [19.002127312911082, -28.972443129188857], [18.464899122804745, -29.045461928017271], [17.836151971109526, -28.856377862261311], [17.387497185951499, -28.783514092729774], [17.218928663815401, -28.355943291946804], [16.824017368240899, -28.082161553664466], [16.344976840895239, -28.576705010697697]]] } }, + { "type": "Feature", "properties": { "admin": "New Caledonia", "name": "New Caledonia", "continent": "Oceania" }, "geometry": { "type": "Polygon", "coordinates": [[[165.779989862326346, -21.080004978115621], [166.599991489933814, -21.700018812753523], [167.120011428086883, -22.159990736583488], [166.74003462144475, -22.399976088146943], [166.189732293968632, -22.129708347260447], [165.474375441752159, -21.679606621998229], [164.829815301775653, -21.149819838141948], [164.16799523341362, -20.444746595951624], [164.029605747735957, -20.105645847252347], [164.459967075862664, -20.120011895429492], [165.020036249041993, -20.459991143477726], [165.460009393575064, -20.800022067958253], [165.779989862326346, -21.080004978115621]]] } }, + { "type": "Feature", "properties": { "admin": "Niger", "name": "Niger", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[2.154473504249949, 11.940150051313422], [2.177107781593917, 12.625017808477534], [1.024103224297619, 12.851825669806598], [0.993045688490156, 13.335749620003865], [0.429927605805517, 13.988733018443893], [0.295646396495215, 14.444234930880663], [0.374892205414767, 14.928908189346144], [1.015783318698481, 14.968182277887989], [1.385528191746971, 15.323561102759237], [2.74999270998154, 15.409524847876751], [3.63825890464659, 15.56811981858044], [3.723421665063596, 16.184283759012654], [4.270209995143886, 16.852227484601311], [4.267419467800095, 19.155265204337123], [5.677565952180712, 19.601206976799794], [8.572893100629868, 21.565660712159225], [11.999505649471697, 23.471668402596432], [13.581424594790459, 23.040506089769274], [14.143870883855239, 22.491288967371126], [14.8513, 22.862950000000119], [15.096887648181847, 21.308518785074902], [15.471076694407314, 21.048457139565979], [15.487148064850143, 20.730414537025634], [15.90324669766431, 20.387618923417499], [15.68574059414777, 19.957180080642384], [15.300441114979716, 17.927949937405], [15.247731154041842, 16.627305813050778], [13.972201775781681, 15.684365953021139], [13.540393507550785, 14.36713369390122], [13.956698846094124, 13.996691189016925], [13.954476759505607, 13.353448798063765], [14.595781284247604, 13.330426947477859], [14.495787387762899, 12.859396267137353], [14.213530714584746, 12.80203542729333], [14.181336297266906, 12.483656927943169], [13.995352817448289, 12.4615652531383], [13.318701613018558, 13.55635630945795], [13.083987257548809, 13.596147162322492], [12.302071160540546, 13.037189032437535], [11.527803175511504, 13.328980007373556], [10.989593133191532, 13.387322699431191], [10.701031935273816, 13.246917832894038], [10.114814487354748, 13.277251898649464], [9.524928012743088, 12.85110219975456], [9.014933302454436, 12.826659247280414], [7.804671258178869, 13.343526923063731], [7.330746697630046, 13.098038031461213], [6.82044192874781, 13.115091254117598], [6.445426059605721, 13.492768459522718], [5.443058302440135, 13.865923977102225], [4.368343540066006, 13.747481594289408], [4.107945997747378, 13.531215725147941], [3.967282749048933, 12.956108710171574], [3.680633579125924, 12.552903347214167], [3.611180454125587, 11.660167141155965], [2.848643019226585, 12.235635891158207], [2.490163608418015, 12.233052069543588], [2.154473504249949, 11.940150051313422]]] } }, + { "type": "Feature", "properties": { "admin": "Nigeria", "name": "Nigeria", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[8.500287713259693, 4.771982937026847], [7.462108188515939, 4.41210826254624], [7.082596469764438, 4.464689032403228], [6.698072137080598, 4.240594183769516], [5.898172641634686, 4.262453314628984], [5.362804803090881, 4.887970689305957], [5.033574252959368, 5.611802476418233], [4.325607130560683, 6.270651149923466], [3.574180128604552, 6.258300482605717], [2.691701694356254, 6.258817246928628], [2.74906253420022, 7.870734361192886], [2.723792758809509, 8.506845404489708], [2.912308383810255, 9.13760793704432], [3.220351596702101, 9.4441525333997], [3.705438266625918, 10.063210354040207], [3.600070021182801, 10.332186184119406], [3.797112257511713, 10.734745591673104], [3.572216424177469, 11.327939357951516], [3.611180454125558, 11.660167141155966], [3.68063357912581, 12.552903347214222], [3.967282749048848, 12.956108710171572], [4.107945997747321, 13.531215725147829], [4.368343540066063, 13.747481594289324], [5.443058302440163, 13.865923977102295], [6.445426059605636, 13.492768459522676], [6.820441928747753, 13.115091254117514], [7.330746697630017, 13.098038031461199], [7.804671258178784, 13.343526923063745], [9.014933302454462, 12.826659247280427], [9.524928012742945, 12.851102199754477], [10.114814487354689, 13.277251898649409], [10.701031935273702, 13.246917832894081], [10.989593133191532, 13.387322699431108], [11.527803175511393, 13.328980007373584], [12.302071160540521, 13.037189032437521], [13.083987257548866, 13.596147162322563], [13.318701613018558, 13.556356309457824], [13.995352817448346, 12.461565253138343], [14.181336297266792, 12.483656927943112], [14.57717776862253, 12.085360826053501], [14.468192172918974, 11.90475169519341], [14.415378859116682, 11.572368882692071], [13.572949659894558, 10.798565985553564], [13.308676385153914, 10.160362046748926], [13.1675997249971, 9.64062632897341], [12.955467970438971, 9.417771714714702], [12.753671502339214, 8.717762762888993], [12.218872104550597, 8.305824082874322], [12.063946160539556, 7.799808457872301], [11.839308709366801, 7.397042344589434], [11.745774366918509, 6.981382961449753], [11.058787876030349, 6.644426784690593], [10.497375115611417, 7.055357774275562], [10.118276808318255, 7.038769639509879], [9.522705926154398, 6.453482367372116], [9.233162876023043, 6.444490668153334], [8.757532993208626, 5.47966583904791], [8.500287713259693, 4.771982937026847]]] } }, + { "type": "Feature", "properties": { "admin": "Nicaragua", "name": "Nicaragua", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-85.712540452807289, 11.088444932494822], [-86.058488328785245, 11.40343862552994], [-86.525849982432931, 11.806876532432593], [-86.7459915839963, 12.143961900272483], [-87.167516242201131, 12.458257961471656], [-87.668493415054698, 12.909909979702629], [-87.557466600275603, 13.064551703336061], [-87.392386237319201, 12.914018256069836], [-87.316654425795463, 12.984685777228972], [-87.005769009127562, 13.025794379117157], [-86.880557013684339, 13.254204209847241], [-86.733821784191576, 13.263092556201441], [-86.755086636079696, 13.754845485890909], [-86.520708177419877, 13.778487453664436], [-86.312142096689911, 13.771356106008167], [-86.096263800790581, 14.038187364147245], [-85.801294725268576, 13.836054999237586], [-85.698665330736901, 13.960078436738083], [-85.514413011400222, 14.079011745657834], [-85.165364549484792, 14.354369615125076], [-85.148750576502948, 14.560196844943615], [-85.052787441736925, 14.551541042534719], [-84.924500698572388, 14.790492865452348], [-84.820036790694346, 14.819586696832669], [-84.649582078779602, 14.66680532476175], [-84.449335903648588, 14.621614284722494], [-84.228341640952394, 14.748764146376654], [-83.975721401693576, 14.749435939996458], [-83.628584967772895, 14.880073960830298], [-83.489988776366104, 15.016267198135534], [-83.147219000974104, 14.995829169164109], [-83.233234422523907, 14.8998660343981], [-83.28416154654758, 14.676623846897197], [-83.182126430987267, 14.310703029838447], [-83.412499966144424, 13.970077826386554], [-83.519831916014667, 13.56769928634588], [-83.55220720084553, 13.127054348193084], [-83.498515387694255, 12.869292303921226], [-83.473323126951968, 12.419087225794424], [-83.626104499022887, 12.320850328007563], [-83.719613003255034, 11.893124497927724], [-83.650857510090702, 11.629032090700116], [-83.855470343750369, 11.373311265503785], [-83.808935716471538, 11.103043524617274], [-83.655611741861563, 10.938764146361418], [-83.895054490885926, 10.726839097532444], [-84.190178595704822, 10.793450018756671], [-84.355930752281026, 10.999225572142901], [-84.673069017256239, 11.082657172078139], [-84.903003302738924, 10.952303371621895], [-85.561851976244171, 11.217119248901593], [-85.712540452807289, 11.088444932494822]]] } }, + { "type": "Feature", "properties": { "admin": "Netherlands", "name": "Netherlands", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[6.074182570020922, 53.51040334737813], [6.905139601274128, 53.482162177130633], [7.092053256873895, 53.14404328064488], [6.842869500362381, 52.228440253297542], [6.589396599970825, 51.85202912048338], [5.988658074577812, 51.85161570902504], [6.156658155958779, 50.803721015010574], [5.60697594567, 51.037298488969768], [4.973991326526913, 51.475023708698124], [4.047071160507527, 51.267258612668556], [3.314971144228536, 51.345755113319903], [3.830288527043137, 51.620544542031936], [4.705997348661184, 53.091798407597757], [6.074182570020922, 53.51040334737813]]] } }, + { "type": "Feature", "properties": { "admin": "Norway", "name": "Norway", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[28.165547316202911, 71.185474351680497], [31.293418409965472, 70.453787746859902], [30.005435011522785, 70.186258856884876], [31.101078728975118, 69.558080145944857], [29.399580519332879, 69.156916002063056], [28.591929559043187, 69.064776923286686], [29.015572950971968, 69.76649119737796], [27.732292107867885, 70.164193020296281], [26.179622023226298, 69.825298977326142], [25.689212680776389, 69.092113755968995], [24.735679152126714, 68.649556789821432], [23.662049594830759, 68.891247463650515], [22.356237827247405, 68.841741441514941], [21.244936150810723, 69.370443020293109], [20.645592889089581, 69.106247260200846], [20.02526899585791, 69.065138658312705], [19.878559604581248, 68.407194322372604], [17.993868442464386, 68.567391262477329], [17.729181756265344, 68.01055186631622], [16.768878614985535, 68.013936672631374], [16.108712192456832, 67.302455552836889], [15.108411492583055, 66.193866889095418], [13.555689731509087, 64.787027696381458], [13.919905226302202, 64.445420640716108], [13.571916131248766, 64.049114081469654], [12.57993533697393, 64.066218980558332], [11.930569288794228, 63.128317572676977], [11.992064243221531, 61.800362453856557], [12.63114668137524, 61.293571682370079], [12.300365838274896, 60.117932847730046], [11.468271925511173, 59.432393296945989], [11.027368605196925, 58.856149400459394], [10.356556837616095, 59.469807033925363], [8.382000359743641, 58.313288479233265], [7.048748406613297, 58.078884182357271], [5.665835402050418, 58.588155422593658], [5.308234490590733, 59.663231919993805], [4.992078077829005, 61.97099803328426], [5.912900424837885, 62.614472968182682], [8.553411085655766, 63.454008287196459], [10.527709181366784, 64.486038316497471], [12.358346795306371, 65.879725857193151], [14.7611458675816, 67.810641587995121], [16.435927361728968, 68.563205471461671], [19.184028354578512, 69.817444159617807], [21.378416375420606, 70.255169379346043], [23.02374230316158, 70.202071845166259], [24.546543409938515, 71.030496731237221], [26.370049676221807, 70.986261705195361], [28.165547316202911, 71.185474351680497]]], [[[24.72412, 77.85385], [22.49032, 77.44493], [20.72601, 77.67704], [21.41611, 77.93504], [20.8119, 78.25463], [22.88426, 78.45494], [23.28134, 78.07954], [24.72412, 77.85385]]], [[[18.25183, 79.70175], [21.54383, 78.95611], [19.02737, 78.5626], [18.47172, 77.82669], [17.59441, 77.63796], [17.1182, 76.80941], [15.91315, 76.77045], [13.76259, 77.38035], [14.66956, 77.73565], [13.1706, 78.02493], [11.22231, 78.8693], [10.44453, 79.65239], [13.17077, 80.01046], [13.71852, 79.66039], [15.14282, 79.67431], [15.52255, 80.01608], [16.99085, 80.05086], [18.25183, 79.70175]]], [[[25.447625359811887, 80.407340399894494], [27.407505730913492, 80.056405748200447], [25.924650506298171, 79.517833970854539], [23.024465773213613, 79.40001170522909], [20.075188429451877, 79.566823228667232], [19.897266473070907, 79.842361965647498], [18.46226362475792, 79.859880276194403], [17.368015170977454, 80.318896186027004], [20.455992059010693, 80.598155626132225], [21.907944777115397, 80.357679348462071], [22.919252557067431, 80.657144273593488], [25.447625359811887, 80.407340399894494]]]] } }, + { "type": "Feature", "properties": { "admin": "Nepal", "name": "Nepal", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[88.120440708369841, 27.876541652939586], [88.043132765661198, 27.445818589786818], [88.174804315140904, 26.810405178325944], [88.060237664749806, 26.414615383402484], [87.22747195836628, 26.39789805755607], [86.024392938179147, 26.630984605408567], [85.25177859898335, 26.726198431906337], [84.675017938173767, 27.234901231387528], [83.304248895199535, 27.364505723575554], [81.999987420584958, 27.925479234319987], [81.057202589851997, 28.416095282499036], [80.088424513676259, 28.794470119740136], [80.476721225917373, 29.729865220655334], [81.11125613802929, 30.183480943313398], [81.525804477874729, 30.422716986608627], [82.327512648450863, 30.115268052688126], [83.337115106137176, 29.463731594352193], [83.898992954446712, 29.320226141877654], [84.234579705750136, 28.839893703724691], [85.011638218123025, 28.642773952747337], [85.823319940131498, 28.203575954698699], [86.954517043000592, 27.97426178640351], [88.120440708369841, 27.876541652939586]]] } }, + { "type": "Feature", "properties": { "admin": "New Zealand", "name": "New Zealand", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[173.020374790740703, -40.919052422856417], [173.247234328502003, -41.331998793300777], [173.958405389702875, -40.926700534835604], [174.2475867048081, -41.349155368821663], [174.248516880589449, -41.770008233406749], [173.876446568087886, -42.233184096038819], [173.222739699595621, -42.970038344088557], [172.711246372770717, -43.372287693048492], [173.080112746470206, -43.853343601253577], [172.308583612352464, -43.865694268571332], [171.452925246463622, -44.24251881284372], [171.185137974327233, -44.897104180684885], [170.616697219116588, -45.908928724959701], [169.83142215400926, -46.355774834987585], [169.332331170934253, -46.641235446967848], [168.411353794628525, -46.619944756863582], [167.763744745146823, -46.290197442409195], [166.676886021184202, -46.219917494492236], [166.509144321964669, -45.852704766626204], [167.046424188503238, -45.110941257508664], [168.303763462596862, -44.12397307716612], [168.949408807651508, -43.93581918719142], [169.667814569373149, -43.555325616226334], [170.524919875366152, -43.031688327812823], [171.125089960004004, -42.512753594737781], [171.569713983443194, -41.767424411792128], [171.948708937871885, -41.514416599291145], [172.097227004278722, -40.956104424809674], [172.798579543343948, -40.493962090823466], [173.020374790740703, -40.919052422856417]]], [[[174.612008905330526, -36.156397393540537], [175.336615838927173, -37.209097995758263], [175.3575964704375, -36.52619394302112], [175.808886753642469, -36.798942152657681], [175.958490025127475, -37.555381768546063], [176.763195428776555, -37.881253350578696], [177.438813104560495, -37.961248467766488], [178.010354445708657, -37.579824721020124], [178.517093540762801, -37.695373223624792], [178.274731073313802, -38.582812595373092], [177.970460239979332, -39.166342868812968], [177.206992629299123, -39.145775648760839], [176.939980503647007, -39.449736423501562], [177.032946405340113, -39.879942722331471], [176.8858236026052, -40.06597787858216], [176.508017206119348, -40.60480803808958], [176.012440220440283, -41.289624118821493], [175.239567499082966, -41.688307793953236], [175.067898391009408, -41.425894870775075], [174.650972935278418, -41.281820977545443], [175.227630243223615, -40.459235528323397], [174.900156691789959, -39.908933200847216], [173.824046665743992, -39.508854262043506], [173.852261997775315, -39.146602471677461], [174.57480187408035, -38.797683200842748], [174.743473749081033, -38.027807712558378], [174.69701663645057, -37.381128838857954], [174.292028436579187, -36.71109221776144], [174.319003534235549, -36.534823907213884], [173.840996535535766, -36.121980889634109], [173.05417117745958, -35.237125339500331], [172.636005487353714, -34.529106540669382], [173.007042271209457, -34.450661716450334], [173.551298456107475, -35.006183363587958], [174.329390497126241, -35.265495700828616], [174.612008905330526, -36.156397393540537]]]] } }, + { "type": "Feature", "properties": { "admin": "Oman", "name": "Oman", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[58.861141391846573, 21.114034532144299], [58.487985874266961, 20.428985907467101], [58.03431847517659, 20.481437486243347], [57.826372511634098, 20.24300242764863], [57.66576216007094, 19.736004950433109], [57.788700392493368, 19.067570298737646], [57.694390903560667, 18.944709580963799], [57.2342639504338, 18.947991034414255], [56.609650913321971, 18.574267076079476], [56.512189162019482, 18.087113348863934], [56.283520949128011, 17.876066799383945], [55.661491733630683, 17.884128322821535], [55.269939406155189, 17.632309068263194], [55.274900343655091, 17.228354397037659], [54.791002231674113, 16.950696926333357], [54.239252964093751, 17.04498057704998], [53.57050825380459, 16.707662665264674], [53.108572625547502, 16.651051133688977], [52.782184279192066, 17.349742336491229], [52.000009800022227, 19.000003363516068], [54.999981723862405, 19.999994004796118], [55.666659376859869, 22.000001125572307], [55.208341098863187, 22.708329982997007], [55.234489373602869, 23.110992743415348], [55.52584109886449, 23.524869289640911], [55.528631626208288, 23.933604030853498], [55.981213820220503, 24.130542914317854], [55.80411868675624, 24.269604193615287], [55.88623253766805, 24.920830593357486], [56.396847365143984, 24.924732163995508], [56.845140415276049, 24.241673081961487], [57.403452589757428, 23.878594468678834], [58.136947869708322, 23.747930609628835], [58.729211460205427, 23.565667832935414], [59.180501743410346, 22.992395331305456], [59.450097690677033, 22.660270900965592], [59.80806033716285, 22.533611965418199], [59.806148309168087, 22.31052480721419], [59.442191196536399, 21.71454051359208], [59.282407667889871, 21.433885809814875], [58.861141391846573, 21.114034532144299]]], [[[56.391421339753393, 25.895990708921254], [56.261041701080913, 25.714606431576748], [56.070820753814544, 26.055464178973946], [56.362017449779344, 26.395934353128947], [56.485679152253809, 26.309117946878665], [56.391421339753393, 25.895990708921254]]]] } }, + { "type": "Feature", "properties": { "admin": "Pakistan", "name": "Pakistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[75.158027785140902, 37.13303091078911], [75.896897414050116, 36.666806138651829], [76.192848341785677, 35.898403428687821], [77.837450799474553, 35.494009507787759], [76.871721632804011, 34.653544012992732], [75.757060988268321, 34.504922593721311], [74.240202671204955, 34.748887030571247], [73.749948358051952, 34.317698879527846], [74.104293654277328, 33.441473293586846], [74.451559279278698, 32.764899603805489], [75.258641798813187, 32.271105455040491], [74.405928989564998, 31.692639471965272], [74.421380242820263, 30.97981476493117], [73.450638462217412, 29.976413479119863], [72.823751662084689, 28.961591701772047], [71.777665643200308, 27.913180243434521], [70.61649620960192, 27.989196275335861], [69.514392938113119, 26.940965684511365], [70.168926629522005, 26.491871649678835], [70.282873162725579, 25.722228705339823], [70.844699334602822, 25.215102037043511], [71.0432401874682, 24.356523952730193], [68.842599318318761, 24.359133612560932], [68.176645135373377, 23.691965033456704], [67.443666619745457, 23.944843654876983], [67.145441928989058, 24.663611151624639], [66.37282758979326, 25.425140896093847], [64.530407749291115, 25.237038682551425], [62.905700718034595, 25.218409328710202], [61.497362908784183, 25.078237006118492], [61.874187453056535, 26.239974880472097], [63.316631707619578, 26.756532497661659], [63.23389773952028, 27.217047024030702], [62.755425652929851, 27.378923448184985], [62.727830438085974, 28.259644883735383], [61.771868117118615, 28.699333807890792], [61.369308709564926, 29.303276272085917], [60.874248488208778, 29.829238999952604], [62.549856805272775, 29.318572496044304], [63.550260858011164, 29.468330796826162], [64.148002150331237, 29.340819200145965], [64.350418735618504, 29.560030625928089], [65.046862013616092, 29.472180691031902], [66.346472609324408, 29.88794342703617], [66.38145755398601, 30.738899237586448], [66.938891229118454, 31.304911200479346], [67.683393589147457, 31.303154201781414], [67.792689243444769, 31.582930406209623], [68.556932000609308, 31.713310044882011], [68.926676873657655, 31.620189113892064], [69.317764113242546, 31.901412258424436], [69.262522007122541, 32.501944078088293], [69.687147251264847, 33.105498969041228], [70.323594191371583, 33.358532619758385], [69.93054324735958, 34.020120144175102], [70.881803012988385, 33.988855902638512], [71.156773309213449, 34.348911444632144], [71.115018751921625, 34.733125718722228], [71.613076206350698, 35.153203436822857], [71.498767938121077, 35.650563259415996], [71.262348260385735, 36.074387518857797], [71.846291945283909, 36.509942328429851], [72.920024855444453, 36.720007025696312], [74.067551710917812, 36.836175645488446], [74.575892775372964, 37.02084137628345], [75.158027785140902, 37.13303091078911]]] } }, + { "type": "Feature", "properties": { "admin": "Panama", "name": "Panama", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-77.881571417945239, 7.223771267114783], [-78.214936082660103, 7.512254950384159], [-78.429160732726061, 8.052041123888925], [-78.182095709938608, 8.319182440621772], [-78.43546525746568, 8.387705389840788], [-78.622120530903928, 8.718124497915026], [-79.120307176413732, 8.996092027213022], [-79.557877366845176, 8.932374986197145], [-79.760578172510037, 8.584515082224398], [-80.164481167303322, 8.333315944853593], [-80.382659064439608, 8.29840851484043], [-80.480689256497286, 8.090307522001067], [-80.003689948227148, 7.54752411542337], [-80.276670701808982, 7.419754136581713], [-80.421158006497066, 7.271571966984763], [-80.886400926420791, 7.220541490096535], [-81.059542812814698, 7.817921047390596], [-81.189715745757937, 7.647905585150339], [-81.519514736644666, 7.706610012233908], [-81.721311204744453, 8.108962714058434], [-82.131441209628889, 8.175392767769635], [-82.390934414382542, 8.292362372262287], [-82.820081346350406, 8.290863755725821], [-82.850958014644803, 8.073822740099954], [-82.965783047197348, 8.225027980985983], [-82.9131764391242, 8.423517157419068], [-82.829770677405151, 8.626295477732368], [-82.868657192704759, 8.807266343618521], [-82.719183112300513, 8.925708726431493], [-82.927154914059145, 9.074330145702914], [-82.932890998043561, 9.476812038608172], [-82.546196255203469, 9.566134751824674], [-82.187122565423394, 9.207448635286779], [-82.207586432610952, 8.995575262890098], [-81.808566860669259, 8.95061676679617], [-81.714154018872023, 9.031955471223581], [-81.43928707551153, 8.786234035675715], [-80.947301601876745, 8.858503526235905], [-80.521901211250054, 9.11107208906243], [-79.914599778955974, 9.312765204297618], [-79.573302781884294, 9.611610012241526], [-79.021191779277913, 9.552931423374103], [-79.058450486960353, 9.454565334506523], [-78.500887620747164, 9.420458889193879], [-78.055927700497989, 9.247730414258296], [-77.729513515926399, 8.946844387238867], [-77.353360765273848, 8.670504665558068], [-77.474722866511314, 8.524286200388216], [-77.242566494440069, 7.935278225125442], [-77.431107957656977, 7.638061224798733], [-77.75341386586139, 7.709839789252141], [-77.881571417945239, 7.223771267114783]]] } }, + { "type": "Feature", "properties": { "admin": "Peru", "name": "Peru", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-69.590423753524036, -17.580011895419329], [-69.858443569605839, -18.092693780187009], [-70.3725723944777, -18.347975355708861], [-71.375250210236914, -17.77379851651385], [-71.462040778271117, -17.363487644116379], [-73.444529588500401, -16.359362888252992], [-75.23788265654143, -15.26568287522778], [-76.009205084929931, -14.649286390850317], [-76.423469204397733, -13.823186944232431], [-76.259241502574156, -13.535039157772939], [-77.10619238962181, -12.222716159720816], [-78.092152879534623, -10.377712497604062], [-79.036953091126918, -8.38656788496589], [-79.445920376284832, -7.930833428583859], [-79.760578172510037, -7.194340915560081], [-80.537481655586049, -6.541667575713715], [-81.249996304026411, -6.136834405139182], [-80.926346808582423, -5.690556735866563], [-81.410942552399433, -4.736764825055459], [-81.099669562489353, -4.036394138203696], [-80.302560594387188, -3.404856459164712], [-80.184014858709645, -3.821161797708043], [-80.46929460317692, -4.059286797708999], [-80.442241990872134, -4.425724379090673], [-80.028908047185581, -4.346090996928893], [-79.62497921417615, -4.454198093283494], [-79.205289069317715, -4.959128513207388], [-78.639897223612323, -4.547784112164072], [-78.450683966775628, -3.873096612161375], [-77.83790483265858, -3.003020521663103], [-76.635394253226707, -2.608677666843817], [-75.544995693652027, -1.56160979574588], [-75.233722703741932, -0.911416924649529], [-75.373223232713841, -0.15203175212045], [-75.106624518520064, -0.05720549886486], [-74.441600511355958, -0.530820000819887], [-74.122395189089048, -1.002832533373848], [-73.659503546834586, -1.260491224781134], [-73.070392218707212, -2.308954359550952], [-72.325786505813639, -2.434218031426453], [-71.774760708285385, -2.169789727388937], [-71.413645799429773, -2.342802422702128], [-70.813475714791949, -2.256864515800742], [-70.047708502874841, -2.725156345229699], [-70.692682054309699, -3.742872002785858], [-70.394043952094975, -3.766591485207825], [-69.893635219996611, -4.298186944194326], [-70.79476884630229, -4.251264743673302], [-70.928843349883564, -4.401591485210367], [-71.748405727816532, -4.59398284263301], [-72.891927659787243, -5.274561455916979], [-72.964507208941185, -5.741251315944892], [-73.219711269814596, -6.089188734566076], [-73.120027431923575, -6.629930922068238], [-73.724486660441627, -6.918595472850638], [-73.723401455363486, -7.340998630404412], [-73.987235480429646, -7.523829847853063], [-73.571059332967053, -8.424446709835832], [-73.015382656532537, -9.03283334720806], [-73.226713426390148, -9.462212823121233], [-72.563033006465631, -9.520193780152715], [-72.184890713169821, -10.05359791426943], [-71.302412278921523, -10.079436130415372], [-70.481893886991159, -9.490118096558842], [-70.548685675728393, -11.009146823778462], [-70.093752204046879, -11.123971856331011], [-69.52967810736493, -10.951734307502193], [-68.665079718689611, -12.561300144097171], [-68.880079515239956, -12.89972909917665], [-68.929223802349526, -13.602683607643007], [-68.94888668483658, -14.45363941819328], [-69.339534674747, -14.953195489158828], [-69.160346645774936, -15.323973890853015], [-69.389764166934697, -15.66012908291165], [-68.959635382753291, -16.500697930571267], [-69.590423753524036, -17.580011895419329]]] } }, + { "type": "Feature", "properties": { "admin": "Philippines", "name": "Philippines", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[126.376813592637447, 8.414706325713352], [126.478512811387873, 7.750354112168976], [126.537423944200611, 7.189380601424572], [126.19677290253253, 6.274294338400038], [125.831420526229081, 7.293715318221855], [125.363852166852283, 6.78648529706099], [125.683160841983707, 6.049656887227257], [125.396511672060626, 5.581003322772288], [124.219787632342332, 6.16135549562618], [123.938719517106918, 6.88513560630612], [124.243662144061318, 7.360610459823659], [123.610212437027542, 7.833527329942753], [123.29607140512519, 7.418875637232786], [122.825505812675388, 7.457374579290216], [122.085499302255769, 6.899424139834847], [121.919928013192603, 7.192119452336072], [122.312358840017112, 8.034962063016506], [122.94239790251963, 8.316236883981174], [123.487687616063511, 8.693009751821192], [123.841154412939815, 8.240324204944384], [124.6014697612502, 8.514157619659015], [124.764612257995623, 8.960409450715458], [125.471390822451539, 8.986996975129641], [125.412117954612754, 9.760334784377545], [126.222714471543156, 9.28607432701885], [126.306636997585073, 8.782487494334573], [126.376813592637447, 8.414706325713352]]], [[[123.982437778825798, 10.278778591345811], [123.62318322153277, 9.950090643753297], [123.309920688979332, 9.318268744336676], [122.995883009941636, 9.022188625520398], [122.380054966319463, 9.713360907424201], [122.586088901867072, 9.981044826696104], [122.837081333508706, 10.261156927934234], [122.947410516451896, 10.881868394408029], [123.498849725438447, 10.940624497923945], [123.337774285984722, 10.267383938025445], [124.077935825701218, 11.232725531453706], [123.982437778825798, 10.278778591345811]]], [[[118.504580926590336, 9.316382554558087], [117.174274530100675, 8.367499904814663], [117.664477166821371, 9.066888739452933], [118.386913690261736, 9.684499619989223], [118.98734215706105, 10.376292019080507], [119.511496209797528, 11.36966807702721], [119.689676548339889, 10.554291490109872], [119.029458449378978, 10.003653265823869], [118.504580926590336, 9.316382554558087]]], [[[121.883547804859106, 11.891755072471977], [122.483821242361458, 11.582187404827506], [123.120216506035959, 11.583660183147867], [123.100837843926442, 11.165933742716486], [122.637713657726692, 10.741308498574226], [122.002610304859559, 10.441016750526087], [121.967366978036523, 10.905691229694622], [122.038370396005519, 11.415840969280039], [121.883547804859106, 11.891755072471977]]], [[[125.502551711123488, 12.162694606978347], [125.783464797062152, 11.046121934447767], [125.01188398651226, 11.311454576050377], [125.032761265158115, 10.975816148314703], [125.277449172060244, 10.358722032101308], [124.801819289245714, 10.134678859899889], [124.760168084818474, 10.8379951033923], [124.459101190286049, 10.889929917845633], [124.302521600441722, 11.495370998577227], [124.891012811381572, 11.415582587118589], [124.877990350443952, 11.794189968304988], [124.266761509295705, 12.557760931849682], [125.22711632700782, 12.53572093347719], [125.502551711123488, 12.162694606978347]]], [[[121.527393833503481, 13.069590155484516], [121.262190382981544, 12.2055602075644], [120.833896112146533, 12.704496161342416], [120.323436313967477, 13.466413479053866], [121.18012820850214, 13.429697373910439], [121.527393833503481, 13.069590155484516]]], [[[121.321308221523566, 18.504064642811013], [121.937601353036371, 18.21855235439838], [122.246006300954264, 18.478949896717094], [122.336956821787965, 18.224882717354173], [122.174279412933174, 17.810282701076371], [122.51565392465335, 17.09350474697197], [122.252310825693883, 16.262444362854122], [121.662786086108255, 15.931017564350125], [121.505069614753367, 15.124813544164621], [121.728828566577249, 14.328376369682244], [122.258925409027313, 14.218202216035973], [122.701275669445636, 14.336541245984417], [123.950295037940236, 13.782130642141066], [123.855107049658599, 13.237771104378464], [124.181288690284873, 12.997527370653469], [124.077419061378222, 12.536676947474573], [123.298035109552245, 13.027525539598981], [122.928651971529902, 13.552919826710404], [122.671355015148663, 13.185836289925131], [122.034649692880521, 13.784481919810343], [121.126384718918587, 13.636687323455559], [120.628637323083296, 13.857655747935649], [120.679383579593832, 14.271015529838319], [120.99181928923052, 14.525392767795079], [120.693336216312687, 14.756670640517282], [120.564145135582976, 14.396279201713821], [120.070428501466367, 14.970869452367094], [119.920928582846102, 15.406346747290735], [119.883773228028247, 16.363704331929963], [120.286487664878791, 16.034628811095327], [120.39004723519173, 17.599081122299506], [120.7158671407919, 18.505227362537536], [121.321308221523566, 18.504064642811013]]]] } }, + { "type": "Feature", "properties": { "admin": "Papua New Guinea", "name": "Papua New Guinea", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[155.880025669578401, -6.819996840037758], [155.599991082988765, -6.919990736522491], [155.166994256815087, -6.535931491729299], [154.729191522438327, -5.900828138862208], [154.514114211239644, -5.139117526880012], [154.652503696917336, -5.042430922061839], [154.759990676084357, -5.339983819198493], [155.062917922179338, -5.566791680527486], [155.547746209941693, -6.200654799019658], [156.019965448224752, -6.540013929880386], [155.880025669578401, -6.819996840037758]]], [[[151.982795851854462, -5.478063246282344], [151.459106887008659, -5.560280450058739], [151.301390415653884, -5.840728448106701], [150.754447056276661, -6.083762709175387], [150.241196730753813, -6.317753594592984], [149.709963006793316, -6.316513360218051], [148.890064732050462, -6.026040134305432], [148.318936802360696, -5.74714242922613], [148.401825799756864, -5.437755629094722], [149.298411900020824, -5.583741550319216], [149.845561965127217, -5.505503431829339], [149.996250441690279, -5.026101169457674], [150.139755894164921, -5.001348158389788], [150.236907586873485, -5.53222014732428], [150.807467075808063, -5.455842380396886], [151.089672072553981, -5.113692722192368], [151.647880894170811, -4.757073662946168], [151.537861769821518, -4.167807305521889], [152.136791620084352, -4.148790378438519], [152.338743117480988, -4.31296640382976], [152.318692661751754, -4.867661228050748], [151.982795851854462, -5.478063246282344]]], [[[147.191873814074938, -7.388024183789978], [148.084635858349372, -8.044108168167609], [148.734105259393573, -9.104663588093755], [149.306835158484432, -9.071435642130067], [149.266630894161324, -9.514406019736027], [150.038728469034311, -9.684318129111698], [149.738798456012262, -9.872937106977002], [150.801627638959133, -10.29368661869742], [150.690574985963849, -10.582712904505865], [150.028393182575826, -10.652476088099929], [149.782310012001972, -10.393267103723941], [148.923137648717216, -10.28092253992136], [147.913018426707993, -10.130440769087469], [147.135443150012236, -9.492443536012017], [146.567880894150619, -8.942554619994153], [146.048481073184917, -8.067414239131308], [144.74416792213799, -7.630128269077473], [143.897087844009661, -7.915330498896279], [143.286375767184268, -8.245491224809056], [143.413913202080664, -8.983068942910945], [142.628431431244223, -9.326820570516501], [142.068258905200196, -9.159595635620034], [141.033851760013874, -9.117892754760417], [141.017056919519007, -5.85902190513802], [141.000210402591847, -2.600151055515624], [142.735246616791443, -3.289152927263216], [144.583970982033236, -3.861417738463401], [145.27317955950997, -4.373737888205027], [145.829786411725649, -4.876497897972683], [145.981921828392956, -5.465609226100012], [147.648073358347574, -6.083659356310803], [147.891107619416175, -6.614014580922315], [146.970905389594861, -6.721656589386255], [147.191873814074938, -7.388024183789978]]], [[[153.14003787659874, -4.499983412294113], [152.827292108368255, -4.766427097190998], [152.63867313050298, -4.176127211120927], [152.406025832324929, -3.789742526874561], [151.953236932583536, -3.462062269711821], [151.384279413050024, -3.035421644710111], [150.6620495953388, -2.741486097833956], [150.939965448204532, -2.500002129734028], [151.479984165654514, -2.779985039891386], [151.820015090135087, -2.999971612157907], [152.239989455371074, -3.24000864015366], [152.640016717742526, -3.659983005389647], [153.019993524384631, -3.980015150573293], [153.14003787659874, -4.499983412294113]]]] } }, + { "type": "Feature", "properties": { "admin": "Poland", "name": "Poland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[15.016995883858666, 51.106674099321566], [14.607098422919531, 51.745188096719964], [14.685026482815685, 52.089947414755187], [14.437599725002197, 52.624850165408382], [14.074521111719488, 52.981262518925426], [14.353315463934136, 53.248171291712957], [14.119686313542584, 53.757029120491026], [14.802900424873455, 54.050706285205735], [16.363477003655728, 54.513158677785711], [17.622831658608671, 54.851535956432897], [18.620858595461637, 54.682605699270766], [18.696254510175461, 54.438718777069276], [19.6606400896064, 54.426083889373913], [20.89224450041862, 54.312524929412518], [22.731098667092649, 54.327536932993311], [23.243987257589506, 54.220566718149129], [23.484127638449841, 53.912497667041123], [23.527535841574995, 53.47012156840654], [23.804934930117774, 53.08973135030606], [23.799198846133375, 52.691099351606553], [23.19949384938618, 52.486977444053664], [23.508002150168689, 52.023646552124717], [23.52707075368437, 51.578454087930233], [24.029985792748899, 50.705406602575174], [23.922757195743259, 50.424881089878738], [23.426508416444388, 50.308505764357449], [22.518450148211596, 49.476773586619736], [22.776418898212619, 49.027395331409608], [22.558137648211751, 49.08573802346713], [21.607808058364206, 49.470107326854077], [20.887955356538406, 49.328772284535823], [20.415839471119849, 49.431453355499755], [19.825022820726865, 49.217125352569219], [19.320712517990469, 49.571574001659179], [18.909574822676316, 49.435845852244562], [18.85314415861361, 49.496229763377634], [18.392913852622168, 49.988628648470737], [17.649445021238986, 50.049038397819942], [17.554567091551117, 50.36214590107641], [16.868769158605655, 50.473973700556016], [16.719475945714429, 50.215746568393527], [16.176253289462263, 50.4226073268579], [16.238626743238566, 50.697732652379827], [15.490972120839725, 50.7847299261432], [15.016995883858666, 51.106674099321566]]] } }, + { "type": "Feature", "properties": { "admin": "Puerto Rico", "name": "Puerto Rico", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-66.2824344550082, 18.51476166429536], [-65.771302863209286, 18.426679185453875], [-65.591003790942935, 18.228034979723912], [-65.847163865813755, 17.975905666571855], [-66.599934455009475, 17.98182261806927], [-67.184162360285256, 17.946553453030074], [-67.24242753769434, 18.374460150622934], [-67.100679083917726, 18.520601101144347], [-66.2824344550082, 18.51476166429536]]] } }, + { "type": "Feature", "properties": { "admin": "North Korea", "name": "Dem. Rep. Korea", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[130.640015903852401, 42.39500946712527], [130.780007358931101, 42.220007229168843], [130.400030552288996, 42.280003567059701], [129.965948521037234, 41.941367906251052], [129.667362095254788, 41.601104437825221], [129.705189243692445, 40.882827867184318], [129.188114862179958, 40.661807766271984], [129.010399611528186, 40.485436102859801], [128.633368361526692, 40.189846910150301], [127.967414178581322, 40.025412502597547], [127.533435500194145, 39.756850083976694], [127.502119582225276, 39.323930772451526], [127.385434198110261, 39.213472398427648], [127.783342726757709, 39.050898342437414], [128.349716424676586, 38.612242946927843], [128.205745884311426, 38.370397243801882], [127.780035435090966, 38.304535630845884], [127.073308547067342, 38.256114813788393], [126.683719924018888, 37.804772854151174], [126.237338901881742, 37.840377916000271], [126.174758742376213, 37.749685777328033], [125.689103631697165, 37.940010077459014], [125.568439162295675, 37.752088731429616], [125.275330438336184, 37.66907054295271], [125.24008711151312, 37.857224432927424], [124.981033156433952, 37.948820909164773], [124.712160679219352, 38.108346055649783], [124.985994093933954, 38.548474229479673], [125.221948683778677, 38.665857245430665], [125.13285851450749, 38.848559271798578], [125.386589797060566, 39.387957872061158], [125.321115757346774, 39.551384589184202], [124.737482131042384, 39.660344346671614], [124.265624627785286, 39.928493353834149], [125.079941847840615, 40.569823716792442], [126.182045119329402, 41.107336127276362], [126.86908328664984, 41.816569322266176], [127.343782993682993, 41.50315176041596], [128.208433058790632, 41.466771552082477], [128.052215203972281, 41.994284572917934], [129.59666873587949, 42.424981797854542], [129.994267205933198, 42.985386867843779], [130.640015903852401, 42.39500946712527]]] } }, + { "type": "Feature", "properties": { "admin": "Portugal", "name": "Portugal", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[-9.034817674180244, 41.880570583659669], [-8.671945766626719, 42.134689439454952], [-8.26385698081779, 42.280468654950326], [-8.01317460776991, 41.790886135417118], [-7.422512986673794, 41.792074693359822], [-7.251308966490822, 41.91834605566504], [-6.668605515967655, 41.883386949219577], [-6.389087693700914, 41.381815497394641], [-6.851126674822551, 41.111082668617513], [-6.864019944679383, 40.330871893874821], [-7.026413133156593, 40.184524237624238], [-7.066591559263527, 39.711891587882768], [-7.498632371439724, 39.629571031241802], [-7.098036668313126, 39.03007274022378], [-7.374092169616317, 38.373058580064914], [-7.029281175148794, 38.075764065089757], [-7.166507941099863, 37.803894354802217], [-7.537105475281022, 37.428904323876232], [-7.45372555177809, 37.097787583966053], [-7.855613165711985, 36.838268540996253], [-8.382816127953687, 36.978880113262449], [-8.898856980820325, 36.868809312480771], [-8.746101446965552, 37.6513455266766], [-8.839997524439879, 38.266243394517609], [-9.287463751655221, 38.358485826158592], [-9.526570603869713, 38.737429104154906], [-9.44698889814023, 39.392066148428363], [-9.048305223008425, 39.755093085278766], [-8.977353481471679, 40.159306138665798], [-8.7686840478771, 40.76063894303018], [-8.790853237330309, 41.18433401139125], [-8.990789353867568, 41.543459377603625], [-9.034817674180244, 41.880570583659669]]] } }, + { "type": "Feature", "properties": { "admin": "Paraguay", "name": "Paraguay", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-62.685057135657871, -22.24902922942238], [-62.291179368729203, -21.051634616787389], [-62.265961269770784, -20.513734633061272], [-61.786326463453761, -19.633736667562957], [-60.043564622626477, -19.342746677327419], [-59.11504248720609, -19.356906019775398], [-58.183471442280492, -19.868399346600359], [-58.166392381408038, -20.176700941653674], [-57.870673997617786, -20.732687676681948], [-57.937155727761287, -22.090175876557169], [-56.881509568902885, -22.282153822521476], [-56.473317430229379, -22.086300144135279], [-55.797958136606894, -22.356929620047815], [-55.61068274598113, -22.655619398694839], [-55.517639329639621, -23.57199757252663], [-55.400747239795407, -23.956935316668797], [-55.027901780809543, -24.001273695575225], [-54.652834235235119, -23.839578138933955], [-54.292959560754511, -24.021014092710722], [-54.293476325077435, -24.570799655863958], [-54.428946092330577, -25.162184747012162], [-54.625290696823562, -25.739255466415507], [-54.788794928595038, -26.621785577096126], [-55.695845506398143, -27.387837009390857], [-56.486701626192989, -27.548499037386286], [-57.609759690976134, -27.395898532828383], [-58.618173590719735, -27.123718763947089], [-57.633660040911117, -25.603656508081638], [-57.777217169817924, -25.162339776309032], [-58.807128465394968, -24.771459242453307], [-60.028966030504016, -24.032796319273267], [-60.846564704009907, -23.880712579038288], [-62.685057135657871, -22.24902922942238]]] } }, + { "type": "Feature", "properties": { "admin": "Palestine", "name": "Palestine", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[35.545665317534535, 32.393992011030569], [35.545251906076196, 31.782504787720832], [35.397560662586038, 31.489086005167572], [34.927408481594554, 31.35343537040141], [34.970506626125989, 31.616778469360803], [35.225891554512422, 31.754341132121759], [34.974640740709319, 31.866582343059715], [35.183930291491428, 32.532510687788935], [35.545665317534535, 32.393992011030569]]] } }, + { "type": "Feature", "properties": { "admin": "Qatar", "name": "Qatar", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[50.810108270069563, 24.754742539971371], [50.743910760303677, 25.482424221289389], [51.01335167827348, 26.006991685484191], [51.286461622936045, 26.114582017515865], [51.589078810437243, 25.801112779233375], [51.606700473848804, 25.215670477798735], [51.389607781790623, 24.627385972588051], [51.112415398977006, 24.556330878186721], [50.810108270069563, 24.754742539971371]]] } }, + { "type": "Feature", "properties": { "admin": "Romania", "name": "Romania", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.710531447040488, 47.882193915389394], [23.142236362406798, 48.096341050806942], [23.760958286237404, 47.985598456405448], [24.402056105250374, 47.981877753280422], [24.866317172960571, 47.737525743188307], [25.207743361112986, 47.891056423527459], [25.945941196402394, 47.987148749374207], [26.197450392366925, 48.220881252630342], [26.619336785597788, 48.220726223333457], [26.924176059687561, 48.123264472030982], [27.233872918412736, 47.826770941756365], [27.551166212684841, 47.405117092470817], [28.128030226359037, 46.81047638608824], [28.160017937947707, 46.371562608417207], [28.054442986775392, 45.944586086605618], [28.233553501099035, 45.488283189468369], [28.679779493939371, 45.30403087013169], [29.149724969201646, 45.464925442072442], [29.603289015427425, 45.293308010431119], [29.62654340995876, 45.035390936862392], [29.141611769331831, 44.820210272799038], [28.837857700320196, 44.913873806328041], [28.55808149589199, 43.707461656258118], [27.970107049275068, 43.812468166675202], [27.242399529740904, 44.175986029632398], [26.065158725699739, 43.943493760751259], [25.569271681426923, 43.688444729174712], [24.100679152124169, 43.741051337247846], [23.332302280376322, 43.897010809904707], [22.94483239105184, 43.823785305347123], [22.657149692482985, 44.234923000661276], [22.474008416440594, 44.409227606781762], [22.705725538837349, 44.578002834647016], [22.459022251075933, 44.702517198254291], [22.145087924902807, 44.478422349620573], [21.562022739353605, 44.768947251965486], [21.483526238702233, 45.181170152357772], [20.874312778413351, 45.416375433934228], [20.76217492033998, 45.734573065771428], [20.220192498462833, 46.127468980486547], [21.021952345471245, 46.316087958351886], [21.626514926853869, 46.994237779318148], [22.09976769378283, 47.672439276716695], [22.710531447040488, 47.882193915389394]]] } }, + { "type": "Feature", "properties": { "admin": "Russia", "name": "Russia", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[143.648007440362846, 50.747600409541512], [144.65414757708561, 48.976390692737581], [143.173927850517174, 49.306551418650365], [142.558668247650076, 47.861575018904908], [143.533492466404027, 46.836728013692479], [143.505277134372591, 46.137907619809475], [142.747700636973889, 46.740764878926562], [142.092030064054484, 45.966755276058777], [141.906925083585008, 46.805928860046535], [142.018442824470867, 47.780132961612921], [141.904444614835029, 48.859188544299563], [142.135800002205656, 49.615163072297449], [142.179983351815281, 50.952342434281903], [141.594075962490024, 51.935434882202529], [141.682546014573632, 53.301966457728767], [142.606934035410745, 53.762145087287891], [142.209748976815376, 54.225475979216853], [142.654786411712934, 54.365880845753864], [142.914615513276544, 53.704577541714734], [143.260847609632037, 52.740760403039033], [143.235267775647628, 51.756660264688733], [143.648007440362846, 50.747600409541512]]], [[[22.731098667092649, 54.327536932993311], [20.892244500418652, 54.312524929412568], [19.6606400896064, 54.42608388937397], [19.88848147958134, 54.866160386771483], [21.268448927503492, 55.190481675835279], [22.315723504330599, 55.015298570365886], [22.757763706155281, 54.856574408581416], [22.651051873472564, 54.582740993866693], [22.731098667092649, 54.327536932993311]]], [[[180.000000000000114, 70.832199208546669], [178.903425, 70.78114], [178.7253, 71.0988], [180.000000000000114, 71.515714336428246], [180.000000000000114, 70.832199208546669]]], [[[143.60385, 73.21244], [142.08763, 73.20544], [140.038155, 73.31692], [139.86312, 73.36983], [140.81171, 73.76506], [142.06207, 73.85758], [143.48283, 73.47525], [143.60385, 73.21244]]], [[[150.73167, 75.08406], [149.575925, 74.68892], [147.977465, 74.778355], [146.11919, 75.17298], [146.358485, 75.49682], [148.22223, 75.345845], [150.73167, 75.08406]]], [[[145.086285, 75.562625], [144.3, 74.82], [140.61381, 74.84768], [138.95544, 74.61148], [136.97439, 75.26167], [137.51176, 75.94917], [138.831075, 76.13676], [141.471615, 76.09289], [145.086285, 75.562625]]], [[[57.535692579992386, 70.720463975702145], [56.944979282463933, 70.63274323188665], [53.677375115784187, 70.762657782668455], [53.412016635965372, 71.206661688920192], [51.601894565645708, 71.474759019650477], [51.455753615124209, 72.014881089965129], [52.478275180883564, 72.229441636840946], [52.444168735570841, 72.77473135038484], [54.427613559797649, 73.627547512497571], [53.508289829325136, 73.749813951300141], [55.902458937407644, 74.627486477345329], [55.631932814359701, 75.081412258597155], [57.868643833248839, 75.609390367323186], [61.170044386647497, 76.251883450008123], [64.498368361270209, 76.439055487769267], [66.210977003855092, 76.809782213031227], [68.157059767534818, 76.939696763812904], [68.852211134725124, 76.544811306454605], [68.180572544227644, 76.233641669409096], [64.637326287703004, 75.737754625136219], [61.583507521414752, 75.260884507946784], [58.477082147053366, 74.309056301562819], [56.986785516187993, 73.333043524866227], [55.41933597191094, 72.371267605265956], [55.622837762276291, 71.540594794390316], [57.535692579992386, 70.720463975702145]]], [[[106.970130000000111, 76.97419], [107.240000000000123, 76.48], [108.1538, 76.723350000000138], [111.077260000000138, 76.71], [113.33151, 76.22224], [114.13417, 75.84764], [113.88539, 75.327790000000121], [112.77918, 75.03186], [110.151250000000175, 74.47673], [109.4, 74.18], [110.64, 74.04], [112.11919, 73.787740000000113], [113.019540000000234, 73.976930000000138], [113.529580000000294, 73.33505], [113.96881, 73.59488], [115.56782, 73.75285], [118.776330000000215, 73.58772], [119.02, 73.12], [123.20066, 72.97122], [123.257770000000178, 73.73503], [125.380000000000166, 73.56], [126.97644, 73.56549], [128.59126, 73.03871], [129.05157, 72.39872], [128.46, 71.98], [129.715990000000204, 71.19304], [131.288580000000252, 70.786990000000102], [132.253500000000145, 71.8363], [133.857660000000294, 71.386420000000143], [135.56193, 71.655250000000123], [137.49755, 71.34763], [138.234090000000123, 71.62803], [139.86983, 71.487830000000116], [139.14791, 72.4161900000001], [140.46817, 72.849410000000134], [149.5, 72.2], [150.35118000000017, 71.60643], [152.96890000000019, 70.84222], [157.00688, 71.03141], [158.99779, 70.86672], [159.830310000000225, 70.45324], [159.70866, 69.72198], [160.94053000000028, 69.43728], [162.279070000000104, 69.64204], [164.05248, 69.66823], [165.940370000000172, 69.47199], [167.83567, 69.58269], [169.57763000000017, 68.6938], [170.816880000000253, 69.01363], [170.008200000000159, 69.65276], [170.453450000000259, 70.09703], [173.643910000000204, 69.81743], [175.72403000000017, 69.877250000000217], [178.6, 69.4], [180.000000000000114, 68.963636363636553], [180.000000000000114, 64.979708702198465], [179.99281, 64.97433], [178.707200000000199, 64.53493], [177.411280000000147, 64.60821], [178.313000000000187, 64.07593], [178.90825000000018, 63.251970000000128], [179.37034, 62.98262], [179.48636, 62.56894], [179.228250000000116, 62.304100000000133], [177.3643, 62.5219], [174.569290000000194, 61.76915], [173.68013, 61.65261], [172.15, 60.95], [170.6985, 60.33618], [170.330850000000282, 59.88177], [168.90046, 60.57355], [166.294980000000265, 59.7885500000002], [165.840000000000202, 60.16], [164.87674, 59.7316], [163.539290000000108, 59.86871], [163.217110000000218, 59.21101], [162.01733, 58.24328], [162.05297, 57.83912], [163.19191, 57.61503], [163.057940000000144, 56.159240000000111], [162.129580000000203, 56.12219], [161.70146, 55.285680000000148], [162.117490000000117, 54.85514], [160.368770000000325, 54.34433], [160.021730000000218, 53.20257], [158.530940000000157, 52.958680000000236], [158.23118, 51.94269], [156.789790000000266, 51.01105], [156.42000000000013, 51.7], [155.99182, 53.15895], [155.43366, 55.381030000000109], [155.914420000000291, 56.767920000000132], [156.75815, 57.3647], [156.81035, 57.83204], [158.364330000000166, 58.05575], [160.150640000000124, 59.314770000000109], [161.87204, 60.343000000000117], [163.66969, 61.1409], [164.473550000000103, 62.55061], [163.258420000000172, 62.46627], [162.65791, 61.6425], [160.12148, 60.54423], [159.30232, 61.77396], [156.72068, 61.43442], [154.218060000000293, 59.758180000000117], [155.04375, 59.14495], [152.81185, 58.88385], [151.265730000000246, 58.78089], [151.33815, 59.50396], [149.78371, 59.655730000000126], [148.54481, 59.16448], [145.48722, 59.33637], [142.197820000000121, 59.03998], [138.958480000000293, 57.08805], [135.12619, 54.72959], [136.70171, 54.603550000000112], [137.19342, 53.97732], [138.1647, 53.755010000000247], [138.80463, 54.25455], [139.90151, 54.189680000000166], [141.34531, 53.089570000000109], [141.37923, 52.23877], [140.59742000000017, 51.23967], [140.51308, 50.045530000000113], [140.061930000000189, 48.446710000000152], [138.554720000000202, 46.99965], [138.21971, 46.30795], [136.86232, 45.143500000000174], [135.515350000000183, 43.989], [134.869390000000237, 43.39821], [133.536870000000249, 42.81147], [132.90627, 42.79849], [132.278070000000241, 43.284560000000106], [130.935870000000136, 42.55274], [130.78, 42.220000000000191], [130.640000000000157, 42.395], [130.633866408409801, 42.903014634770543], [131.144687941614961, 42.929989732426932], [131.288555129115593, 44.111519680348252], [131.025190000000237, 44.96796], [131.883454217659562, 45.321161607436508], [133.097120000000189, 45.14409], [133.769643996313164, 46.116926988299149], [134.112350000000163, 47.212480000000127], [134.50081, 47.578450000000139], [135.026311476786759, 48.478229885443902], [133.373595819228001, 48.183441677434836], [132.506690000000106, 47.78896], [130.987260000000106, 47.79013], [130.582293328982644, 48.72968740497619], [129.397817824420486, 49.4406000840156], [127.657400000000351, 49.76027], [127.287455682484904, 50.739797268265434], [126.939156528837827, 51.353894151405896], [126.564399041856959, 51.784255479532689], [125.946348911646439, 52.792798570356936], [125.068211297710434, 53.161044826868924], [123.57147, 53.4588], [122.245747918793043, 53.431725979213681], [121.003084751470354, 53.251401068731226], [120.177088657716865, 52.753886216841195], [120.725789015791975, 52.516226304730893], [120.7382, 51.96411], [120.182080000000155, 51.64355], [119.27939, 50.58292], [119.288460728025839, 50.142882798861947], [117.87924441942647, 49.510983384797036], [116.67880089728618, 49.888531399121398], [115.485695428531415, 49.805177313834733], [114.962109816550353, 50.140247300815119], [114.362456496235325, 50.24830272073747], [112.897739699354361, 49.543565375356984], [111.581230910286649, 49.377968248077671], [110.662010532678835, 49.130128078805846], [109.402449171996707, 49.292960516957685], [108.475167270951275, 49.282547715850704], [107.868175897251092, 49.793705145865871], [106.888804152455293, 50.274295966180276], [105.886591424586868, 50.40601919209216], [104.62158, 50.275320000000157], [103.676545444760336, 50.08996613219513], [102.25589, 50.510560000000105], [102.06521, 51.25991], [100.889480421962631, 51.516855780638409], [99.981732212323564, 51.63400625264395], [98.861490513100492, 52.047366034546698], [97.82573978067451, 51.010995184933236], [98.231761509191699, 50.422400621128716], [97.259760000000199, 49.72605], [95.814020000000156, 49.977460000000114], [94.815949334698757, 50.01343333597088], [94.147566359435601, 50.480536607457161], [93.10421, 50.49529], [92.234711541719676, 50.802170722041737], [90.713667433640765, 50.331811835321098], [88.805566847695573, 49.470520738312459], [87.751264276076824, 49.297197984405543], [87.359970330762692, 49.214980780629148], [86.829356723989648, 49.826674709668133], [85.541269972682485, 49.69285858824815], [85.115559523462082, 50.117302964877631], [84.416377394553038, 50.311399644565817], [83.935114780618903, 50.889245510453563], [83.383003778012451, 51.069182847693881], [81.945985548839943, 50.812195949906325], [80.568446893235446, 51.388336493528435], [80.035559523441705, 50.864750881547209], [77.80091556184432, 53.404414984747532], [76.525179477854749, 54.177003485727127], [76.891100294913443, 54.490524400441913], [74.384820000000119, 53.546850000000113], [73.425678745420512, 53.489810289109741], [73.50851606638436, 54.035616766976588], [72.224150018202195, 54.376655381886778], [71.180131056609468, 54.133285224008247], [70.86526655465515, 55.169733588270091], [69.068166945272893, 55.385250149143488], [68.169100376258896, 54.970391750704366], [65.66687, 54.601250000000149], [65.178533563095939, 54.354227810272064], [61.436600000000126, 54.00625], [60.978066440683236, 53.664993394579128], [61.69998619980062, 52.979996446334255], [60.73999311711453, 52.719986477257734], [60.927268507740237, 52.447548326214999], [59.967533807215567, 51.96042043721566], [61.588003371024136, 51.272658799843171], [61.337424350840998, 50.799070136104248], [59.932807244715555, 50.842194118851822], [59.642282342370564, 50.545442206415707], [58.363320000000122, 51.06364], [56.77798, 51.04355], [55.71694, 50.621710000000142], [54.532878452376181, 51.026239732459359], [52.328723585831042, 51.718652248738088], [50.766648390512174, 51.692762356159861], [48.702381626181044, 50.605128485712825], [48.577841424357601, 49.87475962991563], [47.549480421749379, 50.454698391311119], [46.751596307162764, 49.356005764353725], [47.043671502476585, 49.152038886097571], [46.466445753776291, 48.394152330104923], [47.315240000000152, 47.71585], [48.05725, 47.74377], [48.694733514201872, 47.075628160177885], [48.59325000000014, 46.56104], [49.101160000000121, 46.39933], [48.645410000000105, 45.80629], [47.67591, 45.641490000000111], [46.68201, 44.6092], [47.59094, 43.660160000000118], [47.49252, 42.98658], [48.58437000000017, 41.80888], [47.987283156126033, 41.405819200194387], [47.815665724484653, 41.151416124021338], [47.373315464066387, 41.219732367511135], [46.686070591016708, 41.827137152669899], [46.404950799348924, 41.860675157227426], [45.7764, 42.092440000000224], [45.470279168485909, 42.502780666670041], [44.537622918482057, 42.711992702803677], [43.93121, 42.554960000000101], [43.755990000000182, 42.74083], [42.394400000000154, 43.2203], [40.922190000000128, 43.382150000000131], [40.076964959479838, 43.553104153002486], [39.95500857927108, 43.434997666999287], [38.68, 44.28], [37.539120000000104, 44.65721], [36.675460000000122, 45.24469], [37.40317, 45.40451], [38.23295, 46.24087], [37.67372, 46.63657], [39.14767, 47.044750000000128], [39.121200000000123, 47.26336], [38.22353803889947, 47.102189846375971], [38.2551123390298, 47.546400458356956], [38.77057, 47.825620000000228], [39.738277622238982, 47.898937079452068], [39.895620000000136, 48.23241], [39.67465, 48.783820000000127], [40.080789015469477, 49.307429917999364], [40.069040000000108, 49.60105], [38.594988234213552, 49.926461900423718], [38.010631137857068, 49.915661526074715], [37.393459506995228, 50.383953355503664], [36.626167840325387, 50.225590928745127], [35.35611616388811, 50.577197374059139], [35.37791, 50.77394], [35.02218305841793, 51.207572333371495], [34.224815708154402, 51.255993150428921], [34.141978387190612, 51.56641347920619], [34.391730584457228, 51.768881740925892], [33.75269982273587, 52.335074571331646], [32.715760532367163, 52.238465481162159], [32.412058139787767, 52.288694973349763], [32.15944000000021, 52.061250000000101], [31.78597, 52.10168], [31.540018344862254, 52.742052313846429], [31.305200636527978, 53.073995876673301], [31.49764, 53.167430000000124], [32.304519484188368, 53.132726141972839], [32.693643019346119, 53.351420803432141], [32.405598585751157, 53.618045355842], [31.731272820774585, 53.794029446012011], [31.791424187962399, 53.974638576872181], [31.384472283663818, 54.157056382862365], [30.757533807098774, 54.811770941784388], [30.971835971813245, 55.08154775656412], [30.873909132620064, 55.55097646750351], [29.896294386522435, 55.789463202530484], [29.371571893030783, 55.670090643936263], [29.229513380660389, 55.918344224666399], [28.176709425577933, 56.169129950578778], [27.855282016722519, 56.759326483784363], [27.770015903440985, 57.244258124411189], [27.288184848751648, 57.474528306703903], [27.716685825315771, 57.791899115624439], [27.420150000000202, 58.724570000000128], [28.131699253051856, 59.300825100330982], [27.98112, 59.47537], [29.1177, 60.028050000000107], [28.07, 60.503520000000137], [30.211107212044645, 61.780027777749673], [31.139991082491029, 62.357692776124431], [31.516092156711263, 62.867687486412898], [30.035872430142796, 63.552813625738551], [30.444684686003736, 64.204453436939062], [29.544429559047014, 64.948671576590542], [30.21765, 65.80598], [29.054588657352376, 66.944286200622017], [29.977426385220689, 67.69829702419274], [28.445943637818765, 68.364612942163987], [28.591929559043358, 69.064776923286686], [29.39955, 69.15692000000017], [31.101080000000103, 69.55811], [32.132720000000255, 69.905950000000232], [33.77547, 69.301420000000107], [36.51396, 69.06342], [40.292340000000159, 67.9324], [41.059870000000124, 67.457130000000106], [41.125950000000174, 66.79158000000011], [40.01583, 66.266180000000119], [38.38295, 65.99953], [33.918710000000168, 66.75961], [33.18444, 66.63253], [34.81477, 65.900150000000124], [34.87857425307876, 65.436212877048192], [34.943910000000152, 64.414370000000147], [36.23129, 64.10945], [37.012730000000111, 63.84983], [37.141970000000143, 64.33471], [36.539579035089801, 64.76446], [37.176040000000135, 65.143220000000113], [39.59345, 64.520790000000162], [40.4356, 64.76446], [39.762600000000148, 65.49682], [42.09309, 66.47623], [43.01604000000011, 66.41858], [43.94975000000013, 66.06908], [44.53226, 66.756340000000122], [43.69839, 67.35245], [44.187950000000136, 67.95051], [43.45282, 68.57079], [46.250000000000135, 68.25], [46.821340000000156, 67.68997], [45.55517, 67.56652], [45.56202, 67.010050000000192], [46.349150000000137, 66.66767], [47.894160000000248, 66.884550000000146], [48.13876, 67.52238], [50.227660000000142, 67.998670000000132], [53.717430000000164, 68.85738], [54.47171, 68.80815], [53.485820000000118, 68.20131], [54.72628, 68.09702], [55.442680000000124, 68.43866], [57.317020000000149, 68.46628], [58.802000000000206, 68.88082], [59.941420000000178, 68.27844], [61.077840000000165, 68.94069], [60.03, 69.52], [60.55, 69.85], [63.504000000000147, 69.54739], [64.888115, 69.234835000000132], [68.512160000000108, 68.09233000000016], [69.18068, 68.61563000000011], [68.16444, 69.14436], [68.13522, 69.35649], [66.930080000000103, 69.454610000000102], [67.25976, 69.92873], [66.724920000000125, 70.708890000000125], [66.69466, 71.028970000000228], [68.540060000000111, 71.934500000000227], [69.19636, 72.843360000000146], [69.94, 73.04000000000012], [72.58754, 72.77629], [72.79603, 72.22006], [71.84811, 71.40898], [72.47011, 71.09019], [72.79188, 70.39114], [72.564700000000201, 69.02085], [73.66787, 68.4079], [73.2387, 67.7404], [71.280000000000101, 66.320000000000149], [72.423010000000147, 66.172670000000167], [72.82077, 66.53267], [73.920990000000131, 66.789460000000119], [74.186510000000183, 67.28429], [75.052, 67.760470000000154], [74.469260000000148, 68.32899], [74.93584, 68.98918], [73.84236, 69.07146], [73.601870000000204, 69.62763], [74.3998, 70.63175], [73.1011, 71.447170000000241], [74.890820000000204, 72.12119], [74.65926, 72.83227], [75.158010000000175, 72.854970000000108], [75.68351, 72.300560000000118], [75.288980000000109, 71.33556], [76.35911, 71.152870000000135], [75.903130000000161, 71.87401], [77.5766500000001, 72.26717], [79.652020000000107, 72.32011], [81.5, 71.75], [80.61071, 72.582850000000107], [80.51109, 73.6482], [82.25, 73.85], [84.65526, 73.805910000000154], [86.822300000000226, 73.93688], [86.00956, 74.459670000000145], [87.166820000000143, 75.11643], [88.31571, 75.14393], [90.26, 75.64], [92.90058, 75.77333], [93.234210000000132, 76.0472], [95.860000000000127, 76.14], [96.67821, 75.91548], [98.922540000000197, 76.44689], [100.759670000000199, 76.43028], [101.03532, 76.86189], [101.990840000000105, 77.287540000000192], [104.3516, 77.69792], [106.066640000000135, 77.37389], [104.705000000000211, 77.1274], [106.970130000000111, 76.97419]]], [[[105.07547, 78.30689], [99.43814, 77.921], [101.2649, 79.23399], [102.08635, 79.34641], [102.837815, 79.28129], [105.37243, 78.71334], [105.07547, 78.30689]]], [[[51.136186557831266, 80.54728017854093], [49.793684523320692, 80.415427761548202], [48.894411248577526, 80.33956675894369], [48.75493655782175, 80.175468248200829], [47.586119012244147, 80.010181179515328], [46.502825962109647, 80.247246812654339], [47.072455275262897, 80.559424140129451], [44.846958042181107, 80.589809882317169], [46.799138624871226, 80.771917629713627], [48.31847741068465, 80.784009914869927], [48.52280602396668, 80.514568996900138], [49.097189568890897, 80.753985907708412], [50.039767693894603, 80.918885403151791], [51.522932977103679, 80.699725653801906], [51.136186557831266, 80.54728017854093]]], [[[99.93976, 78.88094], [97.75794, 78.7562], [94.97259, 79.044745], [93.31288, 79.4265], [92.5454, 80.14379], [91.18107, 80.34146], [93.77766, 81.0246], [95.940895, 81.2504], [97.88385, 80.746975], [100.186655, 79.780135], [99.93976, 78.88094]]]] } }, + { "type": "Feature", "properties": { "admin": "Rwanda", "name": "Rwanda", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[30.419104852019235, -1.134659112150416], [30.816134881317705, -1.698914076345388], [30.758308953583104, -2.287250257988368], [30.469696079232978, -2.413857517103458], [29.938359002407935, -2.348486830254238], [29.632176141078585, -2.917857761246096], [29.02492638521678, -2.839257907730157], [29.117478875451546, -2.292211195488384], [29.254834832483336, -2.215109958508911], [29.29188683443661, -1.620055840667987], [29.579466180140876, -1.341313164885626], [29.821518588996003, -1.443322442229785], [30.419104852019235, -1.134659112150416]]] } }, + { "type": "Feature", "properties": { "admin": "Western Sahara", "name": "W. Sahara", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-8.794883999049075, 27.120696316022503], [-8.81782833498667, 27.656425889592349], [-8.665589565454805, 27.656425889592349], [-8.66512447756419, 27.58947907155822], [-8.684399786809051, 27.395744126895998], [-8.687293667017398, 25.881056219988899], [-11.969418911171159, 25.933352769468261], [-11.93722449385332, 23.374594224536164], [-12.874221564169574, 23.284832261645171], [-13.118754441774708, 22.771220201096249], [-12.929101935263528, 21.327070624267559], [-16.845193650773989, 21.333323472574875], [-17.063423224342568, 20.99975210213082], [-17.020428432675736, 21.422310288981475], [-17.002961798561085, 21.420734157796574], [-14.750954555713532, 21.50060008390366], [-14.630832688851068, 21.860939846274899], [-14.221167771857251, 22.310163072188153], [-13.891110398809044, 23.691009019459297], [-12.500962693725368, 24.770116278578193], [-12.030758836301613, 26.030866197203036], [-11.718219773800353, 26.104091701760616], [-11.392554897496977, 26.883423977154358], [-10.551262579785272, 26.990807603456879], [-10.18942420087758, 26.860944729107398], [-9.735343390328877, 26.860944729107398], [-9.413037482124464, 27.088476060488514], [-8.794883999049075, 27.120696316022503]]] } }, + { "type": "Feature", "properties": { "admin": "Saudi Arabia", "name": "Saudi Arabia", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[42.779332309750963, 16.34789134364868], [42.64957278826607, 16.77463532151496], [42.347989129410706, 17.075805568911996], [42.270887892431219, 17.474721787989122], [41.754381951673949, 17.833046169500971], [41.221391229015573, 18.671599636301206], [40.939341261566533, 19.486485297111752], [40.247652215339819, 20.174634507726488], [39.801684604660934, 20.338862209550054], [39.139399448408277, 21.29190481209293], [39.023695916506782, 21.986875311770191], [39.066328973147577, 22.579655666590263], [38.492772251140075, 23.688451036060851], [38.023860304523616, 24.078685614512928], [37.483634881344379, 24.285494696545008], [37.154817742671177, 24.858482977797301], [37.209491408035994, 25.084541530858104], [36.931627231602583, 25.602959499610172], [36.639603712721218, 25.826227525327219], [36.249136590323808, 26.570135606384873], [35.640181512196385, 27.376520494083415], [35.130186801907875, 28.063351955674712], [34.632336053207972, 28.058546047471559], [34.787778761541936, 28.607427273059692], [34.832220493312938, 28.957483425404838], [34.956037225084252, 29.356554673778835], [36.068940870922049, 29.19749461518445], [36.501214227043583, 29.505253607698702], [36.740527784987243, 29.865283311476183], [37.503581984209028, 30.003776150018396], [37.668119744626374, 30.338665269485894], [37.998848911294367, 30.508499864213128], [37.002165561681004, 31.508412990844736], [39.004885695152545, 32.010216986614971], [39.195468377444961, 32.16100881604266], [40.399994337736238, 31.889991766887931], [41.889980910007829, 31.190008653278362], [44.709498732284736, 29.178891099559376], [46.568713413281742, 29.099025173452283], [47.459821811722819, 29.002519436147217], [47.708850538937376, 28.526062730416136], [48.416094191283939, 28.552004299426663], [48.807594842327163, 27.689627997339876], [49.299554477745815, 27.461218166609804], [49.470913527225647, 27.109999294538078], [50.152422316290874, 26.689663194275994], [50.212935418504671, 26.277026882425371], [50.113303257045928, 25.943972276304248], [50.23985883972874, 25.608049628190923], [50.527386509000728, 25.327808335872099], [50.660556675016885, 24.999895534764018], [50.810108270069563, 24.754742539971371], [51.112415398977006, 24.556330878186721], [51.389607781790623, 24.627385972588051], [51.579518670463258, 24.245497137951102], [51.617707553926969, 24.014219265228824], [52.000733270074321, 23.001154486578937], [55.006803012924898, 22.496947536707129], [55.208341098863187, 22.708329982997039], [55.666659376859812, 22.000001125572336], [54.999981723862355, 19.999994004796104], [52.000009800022227, 19.000003363516054], [49.116671583864857, 18.616667588774941], [48.183343540241324, 18.166669216377311], [47.466694777217626, 17.116681626854877], [47.000004917189749, 16.949999294497438], [46.749994337761642, 17.283338120996174], [46.366658563020529, 17.233315334537632], [45.399999220568752, 17.333335069238554], [45.216651238797184, 17.43332896572333], [44.062613152855072, 17.410358791569589], [43.791518589051904, 17.319976711491105], [43.380794305196098, 17.579986680567668], [43.115797560403351, 17.088440456607369], [43.218375278502734, 16.666889960186406], [42.779332309750963, 16.34789134364868]]] } }, + { "type": "Feature", "properties": { "admin": "Sudan", "name": "Sudan", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[33.963392794971178, 9.464285229420623], [33.824963480907506, 9.48406084571536], [33.842130853028145, 9.981914637215992], [33.721959248183097, 10.325262079630191], [33.206938084561777, 10.720111638406591], [33.086766479716729, 11.441141267476493], [33.206938084561777, 12.179338268667093], [32.743419037302537, 12.24800775714999], [32.674749548819641, 12.024831919580716], [32.073891524594778, 11.973329803218517], [32.314234734284746, 11.681484477166519], [32.400071594888338, 11.080626452941486], [31.850715687025509, 10.531270545078822], [31.352861895524875, 9.810240916008693], [30.837840731903377, 9.707236683284519], [29.996639497988546, 10.290927335388684], [29.618957311332842, 10.084918869940223], [29.515953078608607, 9.793073543888053], [29.000931914987166, 9.604232450560287], [28.966597170745779, 9.398223985111654], [27.970889587744345, 9.398223985111654], [27.833550610778783, 9.604232450560287], [27.112520981708876, 9.638567194801622], [26.752006167173811, 9.466893473594492], [26.477328213242508, 9.552730334198086], [25.96230704962101, 10.136420986302422], [25.790633328413943, 10.411098940233726], [25.069603699343979, 10.27375996326799], [24.79492574541268, 9.810240916008693], [24.537415163602017, 8.917537565731719], [24.194067721187643, 8.728696472403895], [23.886979580860665, 8.619729712933063], [23.805813429466745, 8.666318874542522], [23.459012892355979, 8.954285793489019], [23.394779087017291, 9.26506785729225], [23.557249790142915, 9.681218166538766], [23.554304233502187, 10.089255275915319], [22.977543572692749, 10.714462591998538], [22.864165480244246, 11.142395127807616], [22.87622, 11.384610000000119], [22.50869, 11.67936], [22.49762, 12.26024], [22.28801, 12.64605], [21.93681, 12.588180000000133], [22.03759, 12.95546], [22.29658, 13.37232], [22.18329, 13.78648], [22.51202, 14.09318], [22.30351, 14.32682], [22.567950000000106, 14.944290000000134], [23.02459, 15.68072], [23.886890000000101, 15.61084], [23.837660000000135, 19.580470000000101], [23.850000000000129, 20.0], [25.00000000000011, 20.00304], [25.00000000000011, 22.0], [29.02, 22.0], [32.9, 22.0], [36.86623, 22.0], [37.18872, 21.01885], [36.96941, 20.837440000000125], [37.114700000000134, 19.80796], [37.48179, 18.61409], [37.86276, 18.36786], [38.410089959473218, 17.998307399970312], [37.904000000000103, 17.42754], [37.16747, 17.263140000000128], [36.852530000000108, 16.95655], [36.75389, 16.29186], [36.32322, 14.82249], [36.42951, 14.42211], [36.27022, 13.563330000000118], [35.86363, 12.57828], [35.26049, 12.08286], [34.831630000000125, 11.318960000000116], [34.73115000000012, 10.910170000000106], [34.25745, 10.63009], [33.96162, 9.58358], [33.963392794971178, 9.464285229420623]]] } }, + { "type": "Feature", "properties": { "admin": "South Sudan", "name": "S. Sudan", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[33.963392794971178, 9.464285229420623], [33.97498, 8.68456], [33.82550000000014, 8.37916], [33.294800000000116, 8.35458], [32.95418, 7.7849700000001], [33.56829, 7.71334], [34.0751, 7.22595], [34.25032, 6.82607], [34.70702, 6.59422000000012], [35.298007118233095, 5.506], [34.620196267853935, 4.847122742082034], [34.005, 4.249884947362147], [33.39, 3.79], [32.68642, 3.79232], [31.881450000000136, 3.55827], [31.24556, 3.7819], [30.83385, 3.50917], [29.95349, 4.1737], [29.715995314256013, 4.600804755060152], [29.159078403446635, 4.389267279473244], [28.696677687298795, 4.455077215996993], [28.428993768026992, 4.287154649264607], [27.979977247842946, 4.408413397637388], [27.374226108517625, 5.233944403500173], [27.213409051225248, 5.550953477394613], [26.465909458123289, 5.946717434101855], [26.213418409945113, 6.546603298362127], [25.796647983511257, 6.979315904158169], [25.124130893664805, 7.500085150579422], [25.114932488716867, 7.825104071479244], [24.567369012152191, 8.229187933785452], [23.886979580860665, 8.619729712933063], [24.194067721187643, 8.728696472403895], [24.537415163602017, 8.917537565731719], [24.79492574541268, 9.810240916008693], [25.069603699343979, 10.27375996326799], [25.790633328413943, 10.411098940233726], [25.96230704962101, 10.136420986302422], [26.477328213242508, 9.552730334198086], [26.752006167173811, 9.466893473594492], [27.112520981708876, 9.638567194801622], [27.833550610778783, 9.604232450560287], [27.970889587744345, 9.398223985111654], [28.966597170745779, 9.398223985111654], [29.000931914987166, 9.604232450560287], [29.515953078608607, 9.793073543888053], [29.618957311332842, 10.084918869940223], [29.996639497988546, 10.290927335388684], [30.837840731903377, 9.707236683284519], [31.352861895524875, 9.810240916008693], [31.850715687025509, 10.531270545078822], [32.400071594888338, 11.080626452941486], [32.314234734284746, 11.681484477166519], [32.073891524594778, 11.973329803218517], [32.674749548819641, 12.024831919580716], [32.743419037302537, 12.24800775714999], [33.206938084561777, 12.179338268667093], [33.086766479716729, 11.441141267476493], [33.206938084561777, 10.720111638406591], [33.721959248183097, 10.325262079630191], [33.842130853028145, 9.981914637215992], [33.824963480907506, 9.48406084571536], [33.963392794971178, 9.464285229420623]]] } }, + { "type": "Feature", "properties": { "admin": "Senegal", "name": "Senegal", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-16.713728807023468, 13.594958604379853], [-17.126106736712611, 14.373515733289221], [-17.625042690490655, 14.72954051356407], [-17.185172898822227, 14.91947724045286], [-16.700706346085919, 15.621527411354107], [-16.463098110407881, 16.135036119038457], [-16.120690070041928, 16.45566254319338], [-15.623666144258689, 16.369337063049809], [-15.135737270558813, 16.587282416240779], [-14.577347581428977, 16.598263658102805], [-14.099521450242175, 16.304302273010489], [-13.43573767745306, 16.039383042866188], [-12.830658331747513, 15.303691514542942], [-12.170750291380299, 14.616834214735503], [-12.124887457721256, 13.994727484589784], [-11.927716030311613, 13.422075100147392], [-11.553397793005427, 13.141213690641063], [-11.467899135778522, 12.754518947800973], [-11.513942836950587, 12.442987575729415], [-11.658300950557928, 12.386582749882834], [-12.20356482588563, 12.465647691289401], [-12.278599005573438, 12.354440008997285], [-12.499050665730561, 12.332089952031053], [-13.217818162478235, 12.575873521367964], [-13.700476040084322, 12.586182969610192], [-15.548476935274005, 12.628170070847343], [-15.816574266004251, 12.515567124883345], [-16.147716844130581, 12.547761542201185], [-16.67745195155457, 12.38485158940105], [-16.84152462408127, 13.151393947802557], [-15.931295945692208, 13.130284125211331], [-15.691000535534991, 13.270353094938455], [-15.511812506562931, 13.278569647672864], [-15.141163295949463, 13.509511623585235], [-14.712197231494626, 13.298206691943774], [-14.277701788784553, 13.28058502853224], [-13.844963344772404, 13.505041612191999], [-14.046992356817478, 13.794067898000446], [-14.376713833055785, 13.625680243377371], [-14.687030808968483, 13.63035696049978], [-15.081735398813816, 13.876491807505982], [-15.398770310924457, 13.860368760630916], [-15.624596320039936, 13.623587347869556], [-16.713728807023468, 13.594958604379853]]] } }, + { "type": "Feature", "properties": { "admin": "Solomon Islands", "name": "Solomon Is.", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[162.119024693040842, -10.482719008021133], [162.398645868172196, -10.826367282762119], [161.700032180018354, -10.820011081590222], [161.319796991214702, -10.204751478723123], [161.917383254237933, -10.446700534713653], [162.119024693040842, -10.482719008021133]]], [[[160.852228631837903, -9.872937106977002], [160.462588332357228, -9.89520964929484], [159.849447463214176, -9.794027194867367], [159.640002883135139, -9.639979750205269], [159.70294477766663, -9.242949720906777], [160.362956170898428, -9.400304457235533], [160.688517694337179, -9.610162448772808], [160.852228631837903, -9.872937106977002]]], [[[161.679981724289121, -9.599982191611373], [161.52939660059053, -9.784312025596433], [160.788253208660507, -8.917543226764918], [160.579997186524338, -8.320008640173965], [160.92002811100491, -8.320008640173965], [161.280006138349961, -9.120011488484449], [161.679981724289121, -9.599982191611373]]], [[[159.875027297198585, -8.337320244991714], [159.917401971677975, -8.538289890174864], [159.133677199539335, -8.114181410355398], [158.586113722974687, -7.754823500197713], [158.211149530264834, -7.421872246941147], [158.359977655265425, -7.320017998893915], [158.820001255527671, -7.56000335045739], [159.640002883135139, -8.020026950719567], [159.875027297198585, -8.337320244991714]]], [[[157.53842573468927, -7.347819919466928], [157.339419793933217, -7.404767347852554], [156.902030471014768, -7.176874281445391], [156.491357863591304, -6.765943291860394], [156.542827590153934, -6.599338474151478], [157.140000441718882, -7.021638278840653], [157.53842573468927, -7.347819919466928]]]] } }, + { "type": "Feature", "properties": { "admin": "Sierra Leone", "name": "Sierra Leone", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-11.438779466182053, 6.785916856305746], [-11.708194545935736, 6.860098374860724], [-12.428098924193815, 7.262942002792029], [-12.949049038128193, 7.798645738145736], [-13.124025437868479, 8.163946438016977], [-13.246550258832512, 8.903048610871506], [-12.711957566773076, 9.342711696810765], [-12.596719122762206, 9.620188300001969], [-12.425928514037562, 9.835834051955953], [-12.150338100625003, 9.858571682164378], [-11.917277390988655, 10.046983954300556], [-11.117481248407328, 10.045872911006283], [-10.839151984083299, 9.688246161330367], [-10.622395188835037, 9.267910061068276], [-10.65477047366589, 8.977178452994194], [-10.494315151399629, 8.715540676300433], [-10.505477260774667, 8.348896389189603], [-10.230093553091276, 8.406205552601291], [-10.695594855176477, 7.939464016141085], [-11.14670427086838, 7.396706447779534], [-11.199801805048278, 7.105845648624735], [-11.438779466182053, 6.785916856305746]]] } }, + { "type": "Feature", "properties": { "admin": "El Salvador", "name": "El Salvador", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-87.793111131526558, 13.384480495655051], [-87.904112108089507, 13.149016831917134], [-88.483301561216791, 13.163951320849488], [-88.843227912129692, 13.259733588102474], [-89.256742723329282, 13.4585328231293], [-89.812393561547637, 13.520622056527994], [-90.095554572290951, 13.73533763270073], [-90.064677903996568, 13.881969509328924], [-89.7219339668207, 14.134228013561694], [-89.5342193265205, 14.244815578666302], [-89.587342698916544, 14.362586167859485], [-89.353325975282772, 14.424132798719112], [-89.058511929057644, 14.340029405164085], [-88.843072882832814, 14.140506700085169], [-88.541230841815974, 13.980154730683475], [-88.50399797234968, 13.845485948130854], [-88.065342576840123, 13.964625962779774], [-87.859515347021585, 13.893312486216979], [-87.723502977229387, 13.785050360565503], [-87.793111131526558, 13.384480495655051]]] } }, + { "type": "Feature", "properties": { "admin": "Somaliland", "name": "Somaliland", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[48.938129510296491, 9.451748968946672], [48.486735874226994, 8.837626247589979], [47.78942, 8.003], [46.948328484897942, 7.996876532417386], [43.67875, 9.183580000000116], [43.296975132018744, 9.540477403191742], [42.92812, 10.021940000000139], [42.55876, 10.572580000000126], [42.776851841000948, 10.926878566934416], [43.145304803242126, 11.462039699748853], [43.470659620951658, 11.27770986576388], [43.666668328634834, 10.864169216348158], [44.117803582542805, 10.445538438351603], [44.614259067570849, 10.442205308468941], [45.556940545439133, 10.698029486529775], [46.645401238802997, 10.816549383991171], [47.525657586462778, 11.127228094929986], [48.021596307167769, 11.193063869669741], [48.378783807169263, 11.375481675660122], [48.948206414593457, 11.410621649618516], [48.942005242718423, 11.394266058798163], [48.938491245322595, 10.982327378783451], [48.938232863161076, 9.973500067581481], [48.938129510296491, 9.451748968946672]]] } }, + { "type": "Feature", "properties": { "admin": "Somalia", "name": "Somalia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[49.72862, 11.5789], [50.25878, 11.67957], [50.73202, 12.0219], [51.1112, 12.02464], [51.13387, 11.74815], [51.04153, 11.16651], [51.04531, 10.6409], [50.83418, 10.27972], [50.55239, 9.19874], [50.07092, 8.08173], [49.4527, 6.80466], [48.59455, 5.33911], [47.74079, 4.2194], [46.56476, 2.85529], [45.56399, 2.04576], [44.06815, 1.05283], [43.13597, 0.2922], [42.04157, -0.91916], [41.81095, -1.44647], [41.58513, -1.68325], [40.993, -0.85829], [40.98105, 2.78452], [41.855083092643966, 3.918911920483726], [42.12861, 4.23413], [42.76967, 4.25259], [43.66087, 4.95755], [44.9636, 5.00162], [47.78942, 8.003], [48.486735874226937, 8.837626247589993], [48.938129510296442, 9.451748968946616], [48.938232863161026, 9.973500067581508], [48.938491245322481, 10.982327378783465], [48.942005242718345, 11.394266058798136], [48.948204758509732, 11.410617281697961], [49.26776, 11.43033], [49.72862, 11.5789]]] } }, + { "type": "Feature", "properties": { "admin": "Republic of Serbia", "name": "Serbia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[20.874312778413408, 45.416375433934306], [21.483526238702204, 45.181170152357865], [21.562022739353718, 44.768947251965635], [22.145087924902892, 44.478422349620573], [22.459022251075961, 44.702517198254426], [22.705725538837434, 44.578002834647002], [22.47400841644065, 44.409227606781762], [22.657149692483067, 44.234923000661347], [22.410446404721593, 44.008063462900047], [22.500156691180219, 43.642814439460999], [22.986018507588479, 43.211161200527094], [22.604801466571352, 42.898518785161109], [22.43659467946139, 42.580321153323943], [22.545011834409642, 42.461362006188025], [22.380525750424674, 42.320259507815074], [21.917080000000105, 42.30364], [21.576635989402117, 42.245224397061847], [21.54332, 42.32025], [21.66292, 42.43922], [21.77505, 42.6827], [21.63302, 42.67717], [21.43866, 42.86255], [21.27421, 42.90959], [21.143395, 43.068685000000123], [20.95651, 43.13094], [20.81448, 43.27205], [20.63508, 43.21671], [20.49679, 42.88469], [20.25758, 42.81275], [20.3398, 42.89852], [19.95857, 43.10604], [19.63, 43.213779970270522], [19.48389, 43.35229], [19.21852, 43.52384], [19.454, 43.568100000000115], [19.59976, 44.03847], [19.11761, 44.42307], [19.36803, 44.863], [19.00548, 44.86023], [19.390475701584588, 45.236515611342369], [19.072768995854172, 45.521511135432078], [18.82982, 45.90888], [19.596044549241636, 46.171729844744547], [20.22019249846289, 46.127468980486569], [20.76217492033998, 45.734573065771478], [20.874312778413408, 45.416375433934306]]] } }, + { "type": "Feature", "properties": { "admin": "Suriname", "name": "Suriname", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-57.147436489476874, 5.973149929219161], [-55.949318406789786, 5.772877915872], [-55.841779751190408, 5.953125311706059], [-55.033250291551759, 6.025291449401662], [-53.958044603070888, 5.756548163267764], [-54.478632981979224, 4.896755682795585], [-54.3995422023565, 4.212611395683466], [-54.006930508018996, 3.620037746592558], [-54.181726040246261, 3.189779771330421], [-54.269705166223183, 2.732391669115046], [-54.524754197799709, 2.311848863123785], [-55.097587449755125, 2.523748073736612], [-55.569755011605984, 2.42150625244713], [-55.973322109589361, 2.510363877773016], [-56.073341844290283, 2.220794989425499], [-55.905600145070871, 2.021995754398659], [-55.995698004771739, 1.817667141116601], [-56.53938574891454, 1.89952260986692], [-57.150097825739898, 2.768926906745406], [-57.281433478409703, 3.333491929534119], [-57.601568976457848, 3.334654649260684], [-58.044694383360664, 4.060863552258382], [-57.860209520078691, 4.576801052260449], [-57.914288906472123, 4.812626451024413], [-57.307245856339492, 5.073566595882225], [-57.147436489476874, 5.973149929219161]]] } }, + { "type": "Feature", "properties": { "admin": "Slovakia", "name": "Slovakia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[18.85314415861361, 49.496229763377634], [18.909574822676316, 49.435845852244562], [19.320712517990469, 49.571574001659179], [19.825022820726865, 49.217125352569219], [20.415839471119849, 49.431453355499755], [20.887955356538406, 49.328772284535823], [21.607808058364206, 49.470107326854077], [22.558137648211751, 49.08573802346713], [22.280841912533553, 48.825392157580659], [22.085608351334848, 48.422264309271782], [21.872236362401729, 48.319970811550007], [20.801293979584919, 48.62385407164237], [20.473562045989862, 48.562850043321809], [20.239054396249344, 48.327567247096916], [19.769470656013109, 48.2026911484636], [19.66136355965849, 48.266614895208647], [19.174364861739885, 48.111378892603859], [18.777024773847668, 48.081768296900627], [18.696512892336923, 47.88095368101439], [17.857132602620023, 47.758428860050365], [17.488472934649813, 47.867466132186209], [16.979666782304033, 48.123497015976298], [16.879982944412998, 48.470013332709463], [16.960288120194573, 48.596982326850593], [17.101984897538895, 48.8169688991171], [17.545006951577101, 48.800019029325362], [17.886484816161808, 48.903475246773695], [17.913511590250462, 48.996492824899072], [18.104972771891848, 49.043983466175298], [18.170498488037961, 49.271514797556421], [18.399993523846174, 49.315000515330034], [18.554971144289478, 49.495015367218777], [18.85314415861361, 49.496229763377634]]] } }, + { "type": "Feature", "properties": { "admin": "Slovenia", "name": "Slovenia", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[13.806475457421524, 46.509306138691201], [14.632471551174827, 46.431817328469535], [15.137091912504982, 46.658702704447016], [16.011663852612653, 46.683610744811688], [16.202298211337361, 46.852385972676949], [16.370504998447412, 46.841327216166498], [16.564808383864854, 46.503750922219822], [15.768732944408548, 46.238108222023442], [15.671529575267552, 45.834153550797865], [15.323953891672403, 45.731782538427673], [15.327674594797424, 45.452316392593218], [14.935243767972931, 45.471695054702671], [14.595109490627804, 45.6349409043127], [14.411968214585411, 45.466165676447446], [13.715059848697221, 45.500323798192369], [13.937630242578305, 45.591015936864608], [13.698109978905475, 46.016778062517339], [13.806475457421524, 46.509306138691201]]] } }, + { "type": "Feature", "properties": { "admin": "Sweden", "name": "Sweden", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[22.183173455501922, 65.723740546320158], [21.213516879977213, 65.02600535751526], [21.369631381930954, 64.413587958424273], [19.778875766690216, 63.609554348395022], [17.847779168375208, 62.749400132896803], [17.11955488451812, 61.341165676510954], [17.831346062906388, 60.636583360427394], [18.787721795332086, 60.081914374422581], [17.869224887776337, 58.95376618105869], [16.829185011470084, 58.719826972073385], [16.44770958829147, 57.041118069071871], [15.87978559740378, 56.104301866268649], [14.666681349352071, 56.20088511822216], [14.100721062891461, 55.407781073622637], [12.942910597392054, 55.361737372450563], [12.625100538797025, 56.307080186581956], [11.787942335668671, 57.441817125063061], [11.027368605196866, 58.856149400459344], [11.468271925511145, 59.432393296946024], [12.300365838274896, 60.117932847730025], [12.631146681375181, 61.293571682370121], [11.992064243221559, 61.800362453856543], [11.930569288794228, 63.128317572676963], [12.57993533697393, 64.066218980558318], [13.571916131248711, 64.049114081469696], [13.9199052263022, 64.445420640716065], [13.555689731509087, 64.7870276963815], [15.108411492582999, 66.19386688909546], [16.108712192456775, 67.302455552836875], [16.768878614985478, 68.013936672631388], [17.729181756265344, 68.010551866316263], [17.993868442464329, 68.567391262477344], [19.878559604581248, 68.407194322372561], [20.025268995857882, 69.065138658312691], [20.645592889089521, 69.106247260200846], [21.978534783626113, 68.616845608180682], [23.539473097434435, 67.936008612735236], [23.565879754335576, 66.396050930437411], [23.903378533633795, 66.006927395279604], [22.183173455501922, 65.723740546320158]]] } }, + { "type": "Feature", "properties": { "admin": "Swaziland", "name": "Swaziland", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[32.071665480281062, -26.733820082304902], [31.868060337051073, -27.17792734142127], [31.282773064913325, -27.285879408478991], [30.685961948374477, -26.743845310169526], [30.676608514129633, -26.398078301704604], [30.949666782359905, -26.022649021104144], [31.044079624157146, -25.731452325139436], [31.333157586397899, -25.660190525008943], [31.837777947728057, -25.843331801051342], [31.985779249811962, -26.29177988048022], [32.071665480281062, -26.733820082304902]]] } }, + { "type": "Feature", "properties": { "admin": "Syria", "name": "Syria", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[38.792340529136077, 33.378686428352218], [36.834062127435537, 32.312937526980768], [35.719918247222743, 32.709192409794859], [35.700797967274745, 32.716013698857374], [35.836396925608618, 32.868123277308506], [35.821100701650231, 33.277426459276292], [36.066460402172048, 33.824912421192543], [36.611750115715886, 34.201788641897174], [36.448194207512095, 34.59393524834406], [35.998402540843628, 34.644914048799997], [35.905023227692219, 35.410009467097318], [36.149762811026527, 35.821534735653664], [36.417550083163029, 36.040616970355053], [36.685389031731795, 36.259699205056457], [36.739494256341395, 36.817520453431079], [37.066761102045824, 36.623036200500614], [38.167727492024191, 36.901210435527766], [38.699891391765895, 36.712927354472335], [39.522580193852541, 36.716053778625984], [40.673259311695681, 37.091276353497285], [41.212089471203043, 37.074352321921687], [42.349591098811764, 37.22987254490409], [41.837064243340954, 36.605853786763568], [41.289707472505448, 36.358814602192261], [41.383965285005807, 35.628316555314349], [41.00615888851992, 34.419372260062111], [38.792340529136077, 33.378686428352218]]] } }, + { "type": "Feature", "properties": { "admin": "Chad", "name": "Chad", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[14.495787387762899, 12.859396267137353], [14.595781284247604, 13.330426947477859], [13.954476759505607, 13.353448798063765], [13.956698846094124, 13.996691189016925], [13.540393507550785, 14.36713369390122], [13.97217, 15.68437], [15.247731154041842, 16.627305813050778], [15.300441114979716, 17.927949937405], [15.68574059414777, 19.957180080642384], [15.90324669766431, 20.387618923417499], [15.487148064850143, 20.730414537025634], [15.47106, 21.04845], [15.096887648181847, 21.308518785074902], [14.8513, 22.862950000000119], [15.86085, 23.40972], [19.84926, 21.49509], [23.837660000000135, 19.580470000000101], [23.886890000000101, 15.61084], [23.02459, 15.68072], [22.567950000000106, 14.944290000000134], [22.30351, 14.32682], [22.51202, 14.09318], [22.18329, 13.78648], [22.29658, 13.37232], [22.03759, 12.95546], [21.93681, 12.588180000000133], [22.28801, 12.64605], [22.49762, 12.26024], [22.50869, 11.67936], [22.87622, 11.384610000000119], [22.864165480244246, 11.142395127807616], [22.231129184668756, 10.971888739460608], [21.723821648859538, 10.567055568885959], [21.000868361096305, 9.475985215691479], [20.059685499764267, 9.012706000194838], [19.094008009526071, 9.074846910025768], [18.81200971850927, 8.982914536978623], [18.911021762780589, 8.630894680206435], [18.389554884523303, 8.281303615751879], [17.964929640380884, 7.890914008002992], [16.705988396886365, 7.508327541529978], [16.4561845231874, 7.734773667832938], [16.290561557691884, 7.754307359239417], [16.106231723706738, 7.497087917506461], [15.279460483469164, 7.42192454673801], [15.436091749745737, 7.692812404811887], [15.120865512765302, 8.382150173369437], [14.979995558337688, 8.796104234243442], [14.544466586981851, 8.965861314322238], [13.954218377344088, 9.549494940626685], [14.17146609869911, 10.021378282100043], [14.627200555081057, 9.920919297724591], [14.909353875394796, 9.992129421422758], [15.46787275560524, 9.982336737503543], [14.923564894275042, 10.891325181517514], [14.960151808337679, 11.555574042197234], [14.89336, 12.21905], [14.495787387762899, 12.859396267137353]]] } }, + { "type": "Feature", "properties": { "admin": "Togo", "name": "Togo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[1.865240512712318, 6.14215770102973], [1.060121697604927, 5.928837388528875], [0.836931186536333, 6.279978745952147], [0.570384148774849, 6.914358628767188], [0.490957472342245, 7.411744289576474], [0.712029249686878, 8.312464504423827], [0.461191847342121, 8.677222601756013], [0.365900506195885, 9.46500397382948], [0.367579990245389, 10.191212876827176], [-0.049784715159944, 10.706917832883928], [0.023802524423701, 11.018681748900802], [0.899563022474069, 10.997339382364258], [0.772335646171484, 10.470808213742357], [1.077795037448737, 10.175606594275022], [1.425060662450136, 9.825395412632998], [1.46304284018467, 9.334624335157086], [1.664477573258381, 9.128590399609378], [1.618950636409238, 6.832038072126236], [1.865240512712318, 6.14215770102973]]] } }, + { "type": "Feature", "properties": { "admin": "Thailand", "name": "Thailand", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[102.58493248902667, 12.186594956913279], [101.687157830819928, 12.645740057826568], [100.831809523524839, 12.627084865769204], [100.978467238369191, 13.412721665902563], [100.097797479251099, 13.406856390837429], [100.018732537844528, 12.307001044153353], [99.478920526123602, 10.846366685423545], [99.153772414143134, 9.963061428258554], [99.222398716226749, 9.239255479362425], [99.873831821698118, 9.207862046745118], [100.279646844486194, 8.29515289960605], [100.45927412313273, 7.429572658717175], [101.017327915452697, 6.856868597842476], [101.623079054778032, 6.740622463401918], [102.141186964936367, 6.221636053894626], [101.81428185425797, 5.810808417174242], [101.154218784593837, 5.691384182147713], [101.075515578213327, 6.20486705161592], [100.259596388756933, 6.642824815289542], [100.085756870527092, 6.46448944745029], [99.690690545655727, 6.848212795433595], [99.519641554769606, 7.343453884302759], [98.988252801512289, 7.907993068875325], [98.503786248775967, 8.382305202666286], [98.339661899816988, 7.794511623562384], [98.150009393305808, 8.350007432483876], [98.259150018306229, 8.973922837759799], [98.553550653073017, 9.932959906448543], [99.038120558673953, 10.960545762572435], [99.587286004639694, 11.892762762901695], [99.196353794351637, 12.804748439988666], [99.212011753336071, 13.269293728076462], [99.097755161538728, 13.827502549693275], [98.430819126379859, 14.622027696180831], [98.192074009191373, 15.123702500870349], [98.537375929765687, 15.308497422746081], [98.90334842325673, 16.177824204976115], [98.493761020911322, 16.837835598207928], [97.859122755934848, 17.567946071843657], [97.375896437573516, 18.445437730375811], [97.797782830804394, 18.627080389881751], [98.253723992915582, 19.708203029860041], [98.959675734454848, 19.752980658440944], [99.543309360759281, 20.186597601802056], [100.115987583417819, 20.41784963630818], [100.548881056726856, 20.109237982661124], [100.606293573003128, 19.508344427971217], [101.282014601651667, 19.462584947176762], [101.035931431077742, 18.408928330961611], [101.059547560635139, 17.512497259994486], [102.113591750092453, 18.109101670804161], [102.413004998791592, 17.932781683824281], [102.998705682387694, 17.961694647691598], [103.200192091893726, 18.309632066312769], [103.956476678485288, 18.240954087796872], [104.716947056092465, 17.428858954330078], [104.779320509868768, 16.441864935771445], [105.589038527450128, 15.570316066952856], [105.544338413517664, 14.723933620660414], [105.218776890078871, 14.27321177821069], [104.281418084736586, 14.416743068901363], [102.988422072361601, 14.225721136934464], [102.348099399833004, 13.39424734135822], [102.58493248902667, 12.186594956913279]]] } }, + { "type": "Feature", "properties": { "admin": "Tajikistan", "name": "Tajikistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[71.014198032520156, 40.244365546218226], [70.648018833299957, 39.935753892571157], [69.559609816368507, 40.103211371412968], [69.464886915977516, 39.526683254548693], [70.549161818325601, 39.604197902986492], [71.784693637991992, 39.279463202464363], [73.67537926625478, 39.431236884105594], [73.928852166646408, 38.505815334622724], [74.257514276022718, 38.606506862943441], [74.864815708316812, 38.378846340481587], [74.829985792952087, 37.990007025701388], [74.980002475895404, 37.419990139305888], [73.948695916646486, 37.421566270490786], [73.260055779924983, 37.495256862938994], [72.636889682917271, 37.047558091778349], [72.193040805962383, 36.94828766534566], [71.84463829945058, 36.738171291646914], [71.448693475230229, 37.065644843080513], [71.541917759084768, 37.905774441065631], [71.239403924448155, 37.953265082341879], [71.348131137990251, 38.258905341132156], [70.806820509732873, 38.486281643216408], [70.376304152309274, 38.138395901027515], [70.270574171840124, 37.73516469985401], [70.116578403610319, 37.588222764632086], [69.518785434857946, 37.608996690413413], [69.196272820924364, 37.15114350030742], [68.859445835245921, 37.344335842430588], [68.135562371701369, 37.023115139304302], [67.829999627559502, 37.144994004864678], [68.392032505165943, 38.157025254868728], [68.176025018185911, 38.901553453113898], [67.442219679641298, 39.140143541005479], [67.701428664017342, 39.580478420564518], [68.536416456989414, 39.533452867178923], [69.011632928345477, 40.086158148756653], [69.329494663372813, 40.727824408524839], [70.666622348925031, 40.960213324541407], [70.458159621059608, 40.49649485937028], [70.601406691372674, 40.218527330072284], [71.014198032520156, 40.244365546218226]]] } }, + { "type": "Feature", "properties": { "admin": "Turkmenistan", "name": "Turkmenistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[61.21081709172573, 35.650072333309218], [61.123070509694131, 36.491597194966239], [60.377637973883864, 36.52738312432836], [59.234761997316795, 37.412987982730336], [58.436154412678192, 37.522309475243794], [57.330433790928964, 38.029229437810933], [56.619366082592805, 38.121394354803478], [56.180374790273319, 37.935126654607423], [55.511578403551894, 37.964117133123153], [54.800303989486558, 37.392420762678178], [53.921597934795543, 37.198918361961255], [53.735511102112504, 37.906136176091685], [53.880928582581831, 38.952093003895349], [53.101027866432894, 39.290573635407121], [53.357808058491216, 39.975286363274442], [52.693972609269807, 40.033629055331964], [52.91525109234361, 40.87652334244472], [53.85813927594112, 40.631034450842165], [54.736845330632136, 40.951014919593455], [54.0083109881813, 41.551210842447404], [53.721713494690576, 42.123191433270016], [52.916749708880069, 41.868116563477322], [52.81468875510361, 41.135370591794704], [52.502459751196135, 41.783315538086356], [52.94429324729164, 42.116034247397586], [54.079417759014937, 42.324109402020817], [54.755345493392625, 42.04397146256656], [55.455251092353755, 41.259859117185826], [55.968191359282898, 41.308641669269356], [57.096391229079089, 41.32231008561056], [56.93221520368779, 41.82602610937559], [57.786529982337065, 42.170552883465511], [58.629010857991453, 42.751551011723045], [59.976422153569771, 42.223081976890199], [60.083340691981654, 41.425146185871391], [60.46595299667068, 41.22032664648254], [61.547178989513547, 41.2663703476546], [61.882714064384679, 41.084856879229392], [62.374260288344992, 40.053886216790382], [63.518014764261018, 39.363256537425627], [64.170223016216752, 38.892406724598231], [65.215998976507379, 38.402695013984292], [66.546150343700205, 37.974684963526855], [66.518606805288655, 37.362784328758785], [66.217384881459324, 37.393790188133913], [65.745630731066811, 37.661164048812061], [65.588947788357828, 37.305216783185628], [64.746105177677393, 37.111817735333297], [64.546479119733888, 36.31207326918426], [63.982895949158696, 36.007957465146596], [63.193538445900337, 35.857165635718907], [62.984662306576588, 35.404040839167614], [62.230651483005879, 35.270663967422287], [61.21081709172573, 35.650072333309218]]] } }, + { "type": "Feature", "properties": { "admin": "East Timor", "name": "Timor-Leste", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[124.96868248911619, -8.892790215697081], [125.086246372580248, -8.656887302284678], [125.947072381698234, -8.432094821815033], [126.64470421763852, -8.39824675866385], [126.957243280139792, -8.273344821814396], [127.335928175974615, -8.397316582882601], [126.967991978056517, -8.668256117388891], [125.925885044458568, -9.106007175333351], [125.088520135601073, -9.393173109579292], [125.070019972840583, -9.08998748132287], [124.96868248911619, -8.892790215697081]]] } }, + { "type": "Feature", "properties": { "admin": "Trinidad and Tobago", "name": "Trinidad and Tobago", "continent": "North America" }, "geometry": { "type": "Polygon", "coordinates": [[[-61.68, 10.76], [-61.105, 10.89], [-60.895, 10.855], [-60.935, 10.11], [-61.77, 10.0], [-61.95, 10.09], [-61.66, 10.365], [-61.68, 10.76]]] } }, + { "type": "Feature", "properties": { "admin": "Tunisia", "name": "Tunisia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[9.482139926805273, 30.307556057246181], [9.055602654668148, 32.102691962201284], [8.439102817426116, 32.506284898400814], [8.430472853233367, 32.748337307255944], [7.612641635782181, 33.344114895148955], [7.524481642292242, 34.097376410451453], [8.140981479534302, 34.655145982393783], [8.376367628623766, 35.479876003555937], [8.217824334352313, 36.433176988260271], [8.420964389691674, 36.946427313783154], [9.509993523810605, 37.349994411766531], [10.210002475636315, 37.230001735984807], [10.180650262094529, 36.724037787415071], [11.028867221733348, 37.09210317641395], [11.100025668999249, 36.899996039368908], [10.600004510143092, 36.410000108377368], [10.593286573945134, 35.947444362932806], [10.939518670300686, 35.698984076473486], [10.807847120821007, 34.833507188449182], [10.149592726287123, 34.330773016897702], [10.339658644256613, 33.785741685515312], [10.856836378633684, 33.768740139291275], [11.108500603895118, 33.293342800422188], [11.488787469131008, 33.136995754523134], [11.432253452203692, 32.368903103152867], [10.944789666394453, 32.081814683555358], [10.636901482799484, 31.761420803345747], [9.950225050505081, 31.376069647745251], [10.056575148161752, 30.961831366493595], [9.97001712407285, 30.539324856075236], [9.482139926805273, 30.307556057246181]]] } }, + { "type": "Feature", "properties": { "admin": "Turkey", "name": "Turkey", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[36.913127068842151, 41.335358384764291], [38.347664829264502, 40.948586127275711], [39.512606642420238, 41.102762763018561], [40.373432651538245, 41.013672593747337], [41.554084100110707, 41.535656236327604], [42.619548781104548, 41.58317271581992], [43.582745802592704, 41.09214325618256], [43.752657911968491, 40.740200914058811], [43.656436395040963, 40.253563951166157], [44.400008579288759, 40.005000311842302], [44.79398969908199, 39.713002631177027], [44.109225294782355, 39.428136298168049], [44.421402622257595, 38.281281236314513], [44.225755649600522, 37.971584377589345], [44.772699008977739, 37.170444647768441], [44.293451775902852, 37.001514390606353], [43.942258742047343, 37.256227525372928], [42.77912560402185, 37.385263576805798], [42.349591098811764, 37.229872544904104], [41.212089471203015, 37.074352321921729], [40.673259311695702, 37.091276353497356], [39.522580193852512, 36.716053778626012], [38.699891391765917, 36.712927354472313], [38.167727492024156, 36.90121043552778], [37.066761102045824, 36.623036200500614], [36.739494256341366, 36.817520453431108], [36.685389031731816, 36.259699205056499], [36.417550083163086, 36.040616970355096], [36.149762811026584, 35.821534735653664], [35.782084995269848, 36.274995429014915], [36.160821567537049, 36.650605577128367], [35.550936313628334, 36.565442816711325], [34.714553256984367, 36.795532131490909], [34.026894972476455, 36.219960028623966], [32.509158156064096, 36.107563788389193], [31.69959516777956, 36.644275214172602], [30.621624790171062, 36.677864895162308], [30.391096225717114, 36.262980658506983], [29.69997562024556, 36.144357408181001], [28.732902866335387, 36.676831366516431], [27.641186557737363, 36.658822129862749], [27.048767937943289, 37.653360907536005], [26.318218214633042, 38.208133246405382], [26.804700148228726, 38.985760199533551], [26.170785353304375, 39.463612168936457], [27.280019972449388, 40.420013739578302], [28.819977654747209, 40.460011298172212], [29.240003696415574, 41.219990749672682], [31.145933872204434, 41.087621568357058], [32.347979363745786, 41.736264146484629], [33.513282911927512, 42.018960069337304], [35.167703891751863, 42.040224921225438], [36.913127068842151, 41.335358384764291]]], [[[27.192376743282406, 40.690565700842448], [26.358009067497782, 40.151993923496477], [26.043351271272535, 40.617753607743161], [26.056942172965332, 40.824123440100735], [26.294602085075692, 40.936261298174166], [26.604195590936282, 41.562114569661013], [26.117041863720825, 41.826904608724554], [27.135739373490505, 42.141484890301307], [27.996720411905407, 42.007358710287768], [28.115524529744441, 41.622886054036279], [28.988442824018779, 41.299934190428175], [28.806438429486743, 41.05496206314853], [27.619017368284112, 40.999823309893102], [27.192376743282406, 40.690565700842448]]]] } }, + { "type": "Feature", "properties": { "admin": "Taiwan", "name": "Taiwan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[121.777817824389899, 24.394273586519393], [121.175632358892713, 22.790857245367164], [120.747079705896198, 21.970571397382106], [120.220083449383651, 22.814860948166732], [120.106188592612369, 23.556262722258229], [120.694679803552233, 24.53845083261373], [121.49504438688875, 25.295458889257379], [121.951243931161429, 24.997595933527034], [121.777817824389899, 24.394273586519393]]] } }, + { "type": "Feature", "properties": { "admin": "United Republic of Tanzania", "name": "Tanzania", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[33.903711197104592, -0.95], [34.07262, -1.05982], [37.69869, -3.09699], [37.7669, -3.67712], [39.20222, -4.67677], [38.74054, -5.90895], [38.79977, -6.47566], [39.44, -6.84], [39.470000000000134, -7.1], [39.19469, -7.7039], [39.25203, -8.00781], [39.18652, -8.48551], [39.53574, -9.112369999999883], [39.9496, -10.0984], [40.31659, -10.317099999999867], [39.521, -10.89688], [38.427556593587767, -11.285202325081626], [37.82764, -11.26879], [37.47129, -11.56876], [36.775150994622884, -11.59453744878078], [36.514081658684397, -11.720938002166745], [35.312397902169145, -11.439146416879165], [34.559989047999451, -11.520020033415845], [34.28, -10.16], [33.940837724096518, -9.693673841980283], [33.73972, -9.41715], [32.759375441221373, -9.230599053589001], [32.191864861791935, -8.930358981973255], [31.556348097466628, -8.762048841998647], [31.157751336950064, -8.594578747317312], [30.74, -8.34], [30.2, -7.08], [29.62, -6.52], [29.419992710088305, -5.939998874539297], [29.519986606573063, -5.419978936386257], [29.339997592900367, -4.499983412294113], [29.753512404099858, -4.452389418153301], [30.11632, -4.09012], [30.50554, -3.56858], [30.75224, -3.35931], [30.74301, -3.03431], [30.52766, -2.80762], [30.46967, -2.41383], [30.758308953583132, -2.287250257988375], [30.816134881317844, -1.698914076345374], [30.419104852019291, -1.134659112150416], [30.769860000000101, -1.01455], [31.86617, -1.02736], [33.903711197104592, -0.95]]] } }, + { "type": "Feature", "properties": { "admin": "Uganda", "name": "Uganda", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[31.86617, -1.02736], [30.769860000000101, -1.01455], [30.419104852019291, -1.134659112150416], [29.821518588996121, -1.443322442229771], [29.579466180141019, -1.341313164885605], [29.587837762172164, -0.587405694179381], [29.8195, -0.2053], [29.875778842902431, 0.597379868976361], [30.086153598762785, 1.062312730306416], [30.468507521290285, 1.583805446779706], [30.852670118948133, 1.849396470543752], [31.174149204235952, 2.204465236821306], [30.77332, 2.339890000000139], [30.83385, 3.50917], [31.24556, 3.7819], [31.88145, 3.55827], [32.68642, 3.79232], [33.39, 3.79], [34.005, 4.249884947362147], [34.47913, 3.5556], [34.59607, 3.053740000000118], [35.03599, 1.90584], [34.6721, 1.17694], [34.18, 0.515], [33.893568969666994, 0.109813537861839], [33.903711197104592, -0.95], [31.86617, -1.02736]]] } }, + { "type": "Feature", "properties": { "admin": "Ukraine", "name": "Ukraine", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[31.78599816257158, 52.10167796488544], [32.159412062312661, 52.061266994833204], [32.412058139787625, 52.288694973349735], [32.715760532366964, 52.238465481162038], [33.7526998227357, 52.335074571331681], [34.391730584457001, 51.768881740925778], [34.141978387190385, 51.566413479206226], [34.22481570815426, 51.255993150428942], [35.022183058417873, 51.207572333371445], [35.377923618315116, 50.773955390010343], [35.35611616388794, 50.577197374059054], [36.62616784032533, 50.225590928745127], [37.393459506995065, 50.383953355503586], [38.01063113785689, 49.915661526074622], [38.59498823421341, 49.926461900423618], [40.069058465339097, 49.601055406281688], [40.080789015469342, 49.307429917999272], [39.674663934087526, 48.783818467801872], [39.895632358567575, 48.232405097031425], [39.738277622238819, 47.898937079451983], [38.770584751141186, 47.825608222029807], [38.255112339029743, 47.546400458356807], [38.223538038899413, 47.102189846375872], [37.42513715998998, 47.022220567404197], [36.759854770664383, 46.698700263040919], [35.823684523264816, 46.645964463887054], [34.962341749823871, 46.273196519549636], [35.020787794745978, 45.65121898048465], [35.51000857925316, 45.409993394546177], [36.529997999830151, 45.46998973243705], [36.334712762199146, 45.113215643893952], [35.239999220528112, 44.939996242851599], [33.882511020652878, 44.361478583344066], [33.326420932760037, 44.564877020844875], [33.546924269349446, 45.034770819674883], [32.454174432105496, 45.327466132176063], [32.630804477679128, 45.519185695978905], [33.588162062318382, 45.851568508480227], [33.298567335754704, 46.08059845639783], [31.744140252415171, 46.333347886737378], [31.675307244602401, 46.706245022155528], [30.748748813609094, 46.583100084003995], [30.37760867688888, 46.032410183285663], [29.603289015427425, 45.293308010431119], [29.149724969201646, 45.464925442072442], [28.679779493939371, 45.30403087013169], [28.233553501099035, 45.488283189468369], [28.48526940279276, 45.596907050145887], [28.659987420371575, 45.939986884131628], [28.933717482221621, 46.258830471372491], [28.862972446414055, 46.437889309263824], [29.072106967899288, 46.517677720722482], [29.170653924279879, 46.379262396828693], [29.759971958136383, 46.349987697935354], [30.024658644335364, 46.423936672545032], [29.838210076626289, 46.525325832701675], [29.908851759569295, 46.67436066343145], [29.559674106573105, 46.928582872091312], [29.415135125452732, 47.346645209332571], [29.050867954227321, 47.510226955752493], [29.122698195113024, 47.849095160506458], [28.670891147585163, 48.118148505234089], [28.259546746541837, 48.155562242213406], [27.52253746919515, 48.467119452501102], [26.857823520624798, 48.368210761094488], [26.619336785597788, 48.220726223333457], [26.197450392366925, 48.220881252630342], [25.945941196402394, 47.987148749374207], [25.207743361112986, 47.891056423527459], [24.866317172960571, 47.737525743188307], [24.402056105250374, 47.981877753280422], [23.760958286237404, 47.985598456405448], [23.142236362406798, 48.096341050806942], [22.710531447040488, 47.882193915389394], [22.640819939878746, 48.150239569687351], [22.085608351334848, 48.422264309271782], [22.280841912533553, 48.825392157580659], [22.558137648211751, 49.08573802346713], [22.776418898212619, 49.027395331409608], [22.518450148211596, 49.476773586619736], [23.426508416444388, 50.308505764357449], [23.922757195743259, 50.424881089878738], [24.029985792748899, 50.705406602575174], [23.52707075368437, 51.578454087930233], [24.005077752384206, 51.617443956094448], [24.553106316839511, 51.888461005249177], [25.327787713327005, 51.910656032918538], [26.337958611768549, 51.832288723347915], [27.454066196408426, 51.59230337178446], [28.241615024536564, 51.572227077839059], [28.617612745892242, 51.427713934934836], [28.992835320763522, 51.602044379271462], [29.254938185347921, 51.368234361366881], [30.157363722460889, 51.416138414101454], [30.55511722181145, 51.319503485715643], [30.619454380014837, 51.822806098022362], [30.927549269338975, 52.042353420614383], [31.78599816257158, 52.10167796488544]]] } }, + { "type": "Feature", "properties": { "admin": "Uruguay", "name": "Uruguay", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-57.625133429582945, -30.216294854454258], [-56.976025763564721, -30.109686374636119], [-55.97324459494093, -30.883075860316296], [-55.601510179249331, -30.853878676071385], [-54.572451544805105, -31.494511407193745], [-53.787951626182185, -32.047242526987617], [-53.209588995971529, -32.727666110974717], [-53.650543992718084, -33.202004082981823], [-53.373661668498229, -33.768377780900757], [-53.806425950726521, -34.396814874002224], [-54.935866054897716, -34.952646579733617], [-55.674089728403274, -34.752658786764066], [-56.215297003796053, -34.85983570733741], [-57.139685024633096, -34.430456231424238], [-57.817860683815489, -34.462547295877492], [-58.427074144104381, -33.909454441057569], [-58.349611172098854, -33.2631889788154], [-58.132647671121433, -33.040566908502008], [-58.142440355040748, -32.044503676076147], [-57.874937303281875, -31.016556084926201], [-57.625133429582945, -30.216294854454258]]] } }, + { "type": "Feature", "properties": { "admin": "United States of America", "name": "United States", "continent": "North America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-155.54211, 19.08348], [-155.68817, 18.91619], [-155.93665, 19.05939], [-155.90806, 19.33888], [-156.07347, 19.70294], [-156.02368, 19.81422], [-155.85008, 19.97729], [-155.91907, 20.17395], [-155.86108, 20.26721], [-155.78505, 20.2487], [-155.40214, 20.07975], [-155.22452, 19.99302], [-155.06226, 19.8591], [-154.80741, 19.50871], [-154.83147, 19.45328], [-155.222169999999892, 19.23972], [-155.54211, 19.08348]]], [[[-156.07926, 20.64397], [-156.41445, 20.57241], [-156.58673, 20.783], [-156.70167, 20.8643], [-156.71055, 20.92676], [-156.61258, 21.01249], [-156.25711, 20.91745], [-155.99566, 20.76404], [-156.07926, 20.64397]]], [[[-156.75824, 21.17684], [-156.78933, 21.06873], [-157.32521, 21.09777], [-157.25027, 21.21958], [-156.75824, 21.17684]]], [[[-157.65283, 21.32217], [-157.70703, 21.26442], [-157.7786, 21.27729], [-158.12667, 21.31244], [-158.2538, 21.53919], [-158.29265, 21.57912], [-158.0252, 21.71696], [-157.94161, 21.65272], [-157.65283, 21.32217]]], [[[-159.34512, 21.982], [-159.46372, 21.88299], [-159.80051, 22.06533], [-159.74877, 22.1382], [-159.5962, 22.23618], [-159.36569, 22.21494], [-159.34512, 21.982]]], [[[-94.81758, 49.38905], [-94.639999999999858, 48.840000000000103], [-94.32914, 48.67074], [-93.63087, 48.60926], [-92.61, 48.45], [-91.64, 48.14], [-90.829999999999856, 48.27], [-89.6, 48.01], [-89.272917446636654, 48.019808254582834], [-88.378114183286513, 48.302917588893806], [-87.439792623300207, 47.94], [-86.461990831228135, 47.553338019392037], [-85.652363247403215, 47.220218817730498], [-84.876079881514855, 46.900083319682366], [-84.779238247399817, 46.637101955749117], [-84.54374874544564, 46.538684190449224], [-84.6049, 46.4396], [-84.3367, 46.408770000000104], [-84.142119513673279, 46.512225857115723], [-84.091851264161463, 46.275418606138253], [-83.890765347005654, 46.116926988299149], [-83.616130947590491, 46.116926988299149], [-83.469550747394621, 45.994686387712584], [-83.592850714843067, 45.816893622412543], [-82.550924648758169, 45.347516587905446], [-82.337763125431053, 44.44], [-82.137642381503952, 43.571087551439987], [-82.43, 42.98], [-82.899999999999878, 42.430000000000135], [-83.119999999999877, 42.08], [-83.141999681312555, 41.975681057292995], [-83.029810146806909, 41.832795722005997], [-82.690089280920162, 41.675105088867319], [-82.439277716791608, 41.675105088867319], [-81.277746548167059, 42.209025987306845], [-80.247447679347843, 42.36619985612267], [-78.939362148743683, 42.863611355148116], [-78.92, 42.965], [-79.009999999999863, 43.27], [-79.171673550111862, 43.466339423184301], [-78.720279914042365, 43.625089423184953], [-77.737885097957601, 43.629055589363382], [-76.820034145805565, 43.628784288093748], [-76.5, 44.018458893758599], [-76.375, 44.09631], [-75.31821, 44.81645000000016], [-74.867, 45.00048000000011], [-73.347829999999874, 45.00738], [-71.505059999999858, 45.0082], [-71.405, 45.255000000000123], [-71.08482, 45.305240000000154], [-70.659999999999783, 45.46], [-70.305, 45.915], [-69.99997, 46.69307], [-69.237216, 47.447781], [-68.905, 47.185], [-68.23444, 47.35486], [-67.79046, 47.06636], [-67.79134, 45.702810000000134], [-67.13741, 45.13753], [-66.96466, 44.809700000000149], [-68.03252, 44.3252], [-69.059999999999874, 43.98], [-70.116169999999897, 43.684050000000141], [-70.645475633410967, 43.090238348964043], [-70.81489, 42.8653], [-70.825, 42.335], [-70.494999999999891, 41.805], [-70.08, 41.78], [-70.185, 42.145], [-69.88497, 41.922830000000111], [-69.96503, 41.637170000000161], [-70.64, 41.475], [-71.12039, 41.494450000000164], [-71.859999999999829, 41.32], [-72.295, 41.27], [-72.87643, 41.22065], [-73.71, 40.931102351654481], [-72.24126, 41.119480000000138], [-71.944999999999808, 40.93], [-73.345, 40.63], [-73.982, 40.628], [-73.952325, 40.75075], [-74.25671, 40.47351], [-73.96244, 40.42763], [-74.17838, 39.70926], [-74.90604, 38.93954], [-74.98041, 39.1964], [-75.20002, 39.24845], [-75.52805, 39.4985], [-75.32, 38.96], [-75.071834764789784, 38.782032230179276], [-75.05673, 38.404120000000106], [-75.37747, 38.01551], [-75.94023, 37.21689], [-76.03127, 37.2566], [-75.722049999999783, 37.937050000000106], [-76.23287, 38.319215], [-76.35, 39.15], [-76.542725, 38.717615], [-76.32933, 38.08326], [-76.98999793161353, 38.239991766913384], [-76.301619999999886, 37.917945], [-76.25874, 36.9664000000001], [-75.9718, 36.89726], [-75.868039999999809, 36.55125], [-75.72749, 35.550740000000125], [-76.36318, 34.808540000000129], [-77.39763499999988, 34.51201], [-78.05496, 33.92547], [-78.554349999999815, 33.861330000000116], [-79.06067, 33.49395], [-79.20357, 33.15839], [-80.301325, 32.509355], [-80.86498, 32.0333], [-81.33629, 31.44049], [-81.49042, 30.729990000000122], [-81.31371, 30.03552], [-80.98, 29.18000000000011], [-80.53558499999987, 28.47213], [-80.529999999999774, 28.04], [-80.056539284977532, 26.88000000000013], [-80.088015, 26.205765], [-80.131559999999837, 25.816775], [-80.38103, 25.20616], [-80.679999999999879, 25.08], [-81.17213, 25.201260000000126], [-81.33, 25.64], [-81.709999999999795, 25.87], [-82.239999999999895, 26.730000000000125], [-82.70515, 27.49504], [-82.85526, 27.88624], [-82.65, 28.550000000000146], [-82.929999999999865, 29.100000000000129], [-83.70959, 29.93656], [-84.1, 30.090000000000114], [-85.10882, 29.63615], [-85.28784, 29.686120000000127], [-85.7731, 30.152610000000116], [-86.399999999999878, 30.400000000000112], [-87.530359999999831, 30.27433], [-88.41782, 30.3849], [-89.180489999999836, 30.31598], [-89.593831178419748, 30.159994004836843], [-89.413735, 29.89419], [-89.43, 29.48864], [-89.21767, 29.29108], [-89.40823, 29.15961], [-89.77928, 29.307140000000135], [-90.15463, 29.11743], [-90.880224999999896, 29.148535000000116], [-91.626784999999842, 29.677000000000127], [-92.49906, 29.5523], [-93.22637, 29.78375], [-93.84842, 29.71363], [-94.69, 29.480000000000125], [-95.60026, 28.73863], [-96.59404, 28.30748], [-97.139999999999802, 27.83], [-97.37, 27.38], [-97.379999999999853, 26.69], [-97.33, 26.210000000000115], [-97.139999999999802, 25.87], [-97.529999999999859, 25.84], [-98.239999999999895, 26.060000000000109], [-99.019999999999854, 26.37], [-99.3, 26.84], [-99.52, 27.54], [-100.11, 28.11000000000012], [-100.45584, 28.696120000000118], [-100.957599999999886, 29.380710000000125], [-101.6624, 29.779300000000113], [-102.48, 29.76], [-103.11, 28.97], [-103.94, 29.27], [-104.456969999999814, 29.57196], [-104.705749999999895, 30.12173], [-105.03737, 30.64402], [-105.63159, 31.083830000000113], [-106.1429, 31.39995], [-106.507589999999794, 31.75452], [-108.24, 31.754853718166398], [-108.24194, 31.34222], [-109.035, 31.341940000000161], [-111.02361, 31.33472], [-113.30498, 32.03914], [-114.815, 32.52528], [-114.721389999999829, 32.72083], [-115.991349999999869, 32.61239000000014], [-117.127759999999753, 32.53534], [-117.295937691273863, 33.04622461520389], [-117.944, 33.621236431201389], [-118.410602275897475, 33.740909223124497], [-118.519894822799685, 34.027781577575745], [-119.081, 34.078], [-119.438840642016658, 34.348477178284291], [-120.36778, 34.44711], [-120.62286, 34.60855], [-120.74433, 35.156860000000101], [-121.714569999999853, 36.16153], [-122.54747, 37.551760000000101], [-122.51201, 37.783390000000132], [-122.95319, 38.113710000000104], [-123.7272, 38.951660000000111], [-123.865169999999878, 39.766990000000128], [-124.39807, 40.3132], [-124.17886, 41.142020000000109], [-124.2137, 41.999640000000134], [-124.532839999999894, 42.76599], [-124.14214, 43.70838], [-124.020535, 44.615895], [-123.898929999999893, 45.52341], [-124.079635, 46.86475], [-124.395669999999896, 47.72017], [-124.687210083007812, 48.184432983398537], [-124.566101074218736, 48.379714965820384], [-123.12, 48.04], [-122.587359999999876, 47.096], [-122.34, 47.36], [-122.5, 48.18], [-122.84, 49.0], [-120.0, 49.0], [-117.03121, 49.0], [-116.04818, 49.0], [-112.999999999999872, 49.0], [-110.049999999999812, 49.0], [-107.049999999999898, 49.0], [-104.04826, 48.99986], [-100.65, 49.0], [-97.228720000004699, 49.0007], [-95.159069509171943, 49.0], [-95.15609, 49.38425], [-94.81758, 49.38905]]], [[[-153.006314053336837, 57.115842190165878], [-154.0050902984581, 56.734676825581047], [-154.516402757770067, 56.992748928446687], [-154.670992804971092, 57.461195787172493], [-153.762779507441451, 57.816574612043773], [-153.228729417921073, 57.968968410872421], [-152.564790615835108, 57.901427313866961], [-152.141147223906273, 57.591058661521977], [-153.006314053336837, 57.115842190165878]]], [[[-165.579164191733554, 59.909986884187539], [-166.192770148767238, 59.754440822988961], [-166.848337368821944, 59.941406155020942], [-167.455277066090048, 60.213069159579376], [-166.467792121424566, 60.384169826897775], [-165.674429694663644, 60.293606879306232], [-165.579164191733554, 59.909986884187539]]], [[[-171.731656867539357, 63.782515367275906], [-171.114433560245175, 63.592191067144981], [-170.491112433940657, 63.694975490973505], [-169.682505459653555, 63.431115627691142], [-168.689439460300662, 63.297506212000584], [-168.77194088445458, 63.188598130945437], [-169.529439867204985, 62.976931464277882], [-170.290556200215917, 63.194437567794452], [-170.671385667990847, 63.375821845138965], [-171.553063117538642, 63.317789211675077], [-171.791110602891166, 63.40584585230048], [-171.731656867539357, 63.782515367275906]]], [[[-155.067790290324211, 71.147776394323685], [-154.344165208941206, 70.696408596470192], [-153.900006273392563, 70.889988511835682], [-152.210006069935275, 70.829992173944831], [-152.270002407826127, 70.60000621202984], [-150.739992438744508, 70.430016588005699], [-149.720003018167489, 70.530010484490433], [-147.613361579357047, 70.214034939241785], [-145.689989800225248, 70.120009670686741], [-144.920010959076393, 69.989991767040479], [-143.58944618042517, 70.152514146598307], [-142.072510348713365, 69.851938178172631], [-140.985987521560702, 69.711998399526365], [-140.985988329004869, 69.711998399526365], [-140.992498752029377, 66.000028591568665], [-140.997769748123119, 60.306396796298593], [-140.012997816153074, 60.276837877027575], [-139.03900042031583, 60.000007229240012], [-138.340889999999888, 59.562110000000146], [-137.4525, 58.905000000000101], [-136.47972, 59.46389], [-135.47583, 59.78778], [-134.945, 59.270560000000117], [-134.27111, 58.86111], [-133.355548882207188, 58.410285142645151], [-132.73042, 57.692890000000105], [-131.707809999999853, 56.55212], [-130.00778, 55.91583], [-129.979994263358265, 55.284997870497207], [-130.536110189467223, 54.802753404349389], [-131.08581823797212, 55.178906155002025], [-131.967211467142278, 55.497775580459049], [-132.250010742859445, 56.369996242897443], [-133.539181084356386, 57.178887437562125], [-134.07806292029602, 58.123067531966889], [-135.038211032279037, 58.187714748763931], [-136.628062309954629, 58.212209377670447], [-137.800006279686016, 58.499995429103777], [-139.867787041412981, 59.537761542389134], [-140.825273817133024, 59.72751740176507], [-142.574443535564427, 60.084446519604981], [-143.958880994879848, 59.99918040632339], [-145.925556816827822, 60.458609727614274], [-147.114373949146625, 60.884656073644628], [-148.224306200127643, 60.672989406977152], [-148.018065558850736, 59.978328965893631], [-148.570822516860858, 59.914172675203297], [-149.727857835875824, 59.705658270905545], [-150.608243374616421, 59.368211168039487], [-151.716392788683294, 59.155821031319974], [-151.859433153267105, 59.74498403587959], [-151.40971900124714, 60.725802720779392], [-150.346941494732505, 61.033587551509854], [-150.621110806256951, 61.284424953854447], [-151.895839199816834, 60.727197984451273], [-152.578329841095581, 60.061657212964285], [-154.019172126257558, 59.350279446034264], [-153.287511359653166, 58.864727688219787], [-154.232492438758442, 58.146373602930531], [-155.307491421510207, 57.727794501366319], [-156.308334723923082, 57.422774359763636], [-156.556097378546298, 56.979984849670636], [-158.117216559867728, 56.463608099994175], [-158.433321296197136, 55.994153550838533], [-159.603327399717415, 55.566686102920116], [-160.289719611634183, 55.643580634170561], [-161.223047655257773, 55.364734605523481], [-162.23776607974105, 55.024186916720097], [-163.069446581046378, 54.689737046927171], [-164.785569221027174, 54.40417308208216], [-164.942226325520011, 54.572224839895327], [-163.84833960676562, 55.039431464246107], [-162.870001390615897, 55.348043117893198], [-161.804174974596009, 55.894986477270429], [-160.563604702781134, 56.008054511125025], [-160.070559862284483, 56.418055324928744], [-158.684442918919416, 57.016675116597852], [-158.461097378553944, 57.216921291728866], [-157.722770352183858, 57.570000515363056], [-157.550274421193564, 58.328326321030218], [-157.041674974576949, 58.918884589261708], [-158.194731208305427, 58.615802313869828], [-158.517217984023034, 58.787781480537305], [-159.058606126928709, 58.424186102931671], [-159.711667040017318, 58.931390285876333], [-159.981288825500144, 58.572549140041623], [-160.355271165996498, 59.071123358793628], [-161.355003425115001, 58.670837714260742], [-161.968893602526293, 58.671664537177371], [-162.054986538724648, 59.266925360747436], [-161.874170702135331, 59.633621324290587], [-162.518059048492034, 59.989723619213905], [-163.818341437820123, 59.798055731843377], [-164.662217577146407, 60.267484442782639], [-165.346387702474772, 60.507495632562396], [-165.350831875651835, 61.073895168697497], [-166.121379157555907, 61.500019029376212], [-165.734451870770471, 62.074996853271792], [-164.919178636717788, 62.633076483807919], [-164.562507901039339, 63.146378485763044], [-163.753332485996964, 63.219448961023758], [-163.067224494457832, 63.05945872664801], [-162.260555386381697, 63.541935736741159], [-161.534449836248569, 63.455816962326757], [-160.772506680321101, 63.76610810002326], [-160.958335130842528, 64.222798570402759], [-161.518068407212184, 64.402787584075313], [-160.777777676414729, 64.788603827566405], [-161.391926235987597, 64.777235012462327], [-162.453050096668818, 64.559444688568206], [-162.757786017894034, 64.338605455168803], [-163.54639421288428, 64.559160468190484], [-164.960829841145141, 64.446945095468848], [-166.425288255864473, 64.686672064870706], [-166.845004238939026, 65.088895575614529], [-168.110560065767146, 65.669997056736733], [-166.70527116602193, 66.088317776139391], [-164.474709642575448, 66.576660061297488], [-163.652511766595637, 66.576660061297488], [-163.788601651036117, 66.077207343196662], [-161.677774421210131, 66.116119696712403], [-162.489714525379981, 66.735565090595102], [-163.719716966791083, 67.116394558370089], [-164.430991380856511, 67.616338202577779], [-165.390286831706703, 68.042772121850234], [-166.764440680995989, 68.35887685817967], [-166.204707404626561, 68.883030910916162], [-164.430810513343431, 68.915535386827727], [-163.168613654614489, 69.371114813912882], [-162.930566169261965, 69.858061835399255], [-161.908897264635499, 70.333329983187625], [-160.93479651593367, 70.447689927849567], [-159.039175788387126, 70.891642157668926], [-158.119722866833939, 70.824721177851032], [-156.580824551398024, 71.357763576941736], [-155.067790290324211, 71.147776394323685]]]] } }, + { "type": "Feature", "properties": { "admin": "Uzbekistan", "name": "Uzbekistan", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[66.518606805288655, 37.362784328758785], [66.546150343700205, 37.974684963526855], [65.215998976507379, 38.402695013984292], [64.170223016216752, 38.892406724598231], [63.518014764261018, 39.363256537425627], [62.374260288344992, 40.053886216790382], [61.882714064384679, 41.084856879229392], [61.547178989513547, 41.2663703476546], [60.46595299667068, 41.22032664648254], [60.083340691981654, 41.425146185871391], [59.976422153569771, 42.223081976890199], [58.629010857991453, 42.751551011723045], [57.786529982337065, 42.170552883465511], [56.93221520368779, 41.82602610937559], [57.096391229079089, 41.32231008561056], [55.968191359282898, 41.308641669269356], [55.928917270741081, 44.995858466159099], [58.503127068928457, 45.586804307632818], [58.689989048095882, 45.500013739598621], [60.239971958258316, 44.784036770194717], [61.05831994003244, 44.405816962250505], [62.013300408786236, 43.504476630215642], [63.185786981056559, 43.650074978197999], [64.900824415959264, 43.728080552742576], [66.098012322865074, 42.997660020513088], [66.023391554635609, 41.994646307943974], [66.510648634715707, 41.987644151368436], [66.714047072216502, 41.168443508461493], [67.985855747351806, 41.135990708982213], [68.259895867795606, 40.662324530594894], [68.632482944620008, 40.668680731766798], [69.070027296835306, 41.384244289712363], [70.388964878220776, 42.081307684897439], [70.96231489449913, 42.266154283205481], [71.259247674448218, 42.167710679689456], [70.420022414028196, 41.519998277343134], [71.157858514291576, 41.143587144529107], [71.870114780570447, 41.392900092121259], [73.055417108049156, 40.86603302668945], [71.774875115856545, 40.145844428053763], [71.014198032520156, 40.244365546218226], [70.601406691372674, 40.218527330072284], [70.458159621059608, 40.49649485937028], [70.666622348925031, 40.960213324541407], [69.329494663372813, 40.727824408524839], [69.011632928345477, 40.086158148756653], [68.536416456989414, 39.533452867178923], [67.701428664017342, 39.580478420564518], [67.442219679641298, 39.140143541005479], [68.176025018185911, 38.901553453113898], [68.392032505165943, 38.157025254868728], [67.829999627559502, 37.144994004864678], [67.075782098259609, 37.35614390720928], [66.518606805288655, 37.362784328758785]]] } }, + { "type": "Feature", "properties": { "admin": "Venezuela", "name": "Venezuela", "continent": "South America" }, "geometry": { "type": "Polygon", "coordinates": [[[-71.331583624950284, 11.776284084515805], [-71.36000566271079, 11.53999359786121], [-71.947049933546495, 11.423282375530018], [-71.620868292920164, 10.969459947142791], [-71.633063930941063, 10.446494452349027], [-72.074173956984495, 9.865651353388369], [-71.695644090446521, 9.072263088411246], [-71.26455929226772, 9.137194525585981], [-71.039999355743376, 9.859992784052407], [-71.350083787710773, 10.211935126176213], [-71.400623338492224, 10.968969021036013], [-70.155298834906503, 11.375481675660039], [-70.293843349881016, 11.846822414594211], [-69.943244594996813, 12.162307033736095], [-69.584300096297454, 11.459610907431211], [-68.882999233664435, 11.44338450769156], [-68.233271450458716, 10.885744126829945], [-68.194126552997616, 10.554653225135921], [-67.296248541926317, 10.545868231646306], [-66.227864142507983, 10.648626817258684], [-65.655237596281737, 10.20079885501732], [-64.890452236578156, 10.077214667191296], [-64.329478725833724, 10.389598700395679], [-64.318006557864933, 10.641417954953978], [-63.079322475828725, 10.701724351438598], [-61.880946010980182, 10.7156253117251], [-62.730118984616396, 10.420268662960904], [-62.388511928950969, 9.948204453974636], [-61.588767462801918, 9.873066921422263], [-60.830596686431711, 9.38133982994894], [-60.671252407459718, 8.580174261911877], [-60.150095587796166, 8.602756862823425], [-59.758284878159181, 8.367034816924045], [-60.550587938058186, 7.779602972846178], [-60.637972785063752, 7.414999904810853], [-60.295668097562377, 7.043911444522918], [-60.543999192940966, 6.856584377464881], [-61.159336310456467, 6.696077378766317], [-61.139415045807937, 6.234296779806142], [-61.410302903881941, 5.959068101419616], [-60.733574184803707, 5.2002772078619], [-60.601179165271922, 4.918098049332129], [-60.966893276601517, 4.536467596856638], [-62.085429653559125, 4.162123521334308], [-62.804533047116692, 4.006965033377951], [-63.093197597899092, 3.770571193858784], [-63.888342861574145, 4.020530096854571], [-64.628659430587533, 4.14848094320925], [-64.816064012294007, 4.056445217297422], [-64.368494432214092, 3.797210394705246], [-64.408827887617903, 3.126786200366623], [-64.269999152265783, 2.497005520025566], [-63.422867397705105, 2.411067613124174], [-63.368788011311644, 2.200899562993129], [-64.083085496666072, 1.91636912679408], [-64.199305792890499, 1.49285492594602], [-64.611011928959854, 1.328730576987041], [-65.354713304288353, 1.0952822941085], [-65.548267381437554, 0.78925446207603], [-66.325765143484944, 0.724452215982012], [-66.876325853122566, 1.253360500489336], [-67.181294318293041, 2.250638129074062], [-67.447092047786299, 2.600280869960869], [-67.809938117123693, 2.820655015469569], [-67.303173183853417, 3.31845408773718], [-67.33756384954367, 3.542342230641721], [-67.621835903581271, 3.839481716319994], [-67.823012254493534, 4.503937282728898], [-67.744696621355203, 5.221128648291667], [-67.521531948502741, 5.556870428891968], [-67.34143958196556, 6.095468044454021], [-67.695087246355001, 6.267318020040645], [-68.265052456318216, 6.153268133972473], [-68.985318569602327, 6.206804917826856], [-69.389479946557103, 6.099860541198835], [-70.093312954372408, 6.960376491723109], [-70.674233567981503, 7.087784735538717], [-71.960175747348629, 6.991614895043538], [-72.19835242378187, 7.340430813013682], [-72.444487270788059, 7.42378489830048], [-72.479678921178831, 7.632506008327352], [-72.360900641555958, 8.002638454617893], [-72.439862230097944, 8.405275376820027], [-72.660494757768092, 8.62528778730268], [-72.788729824500379, 9.085027167187331], [-73.304951544880026, 9.151999823437604], [-73.027604132769554, 9.736770331252441], [-72.905286017534692, 10.45034434655477], [-72.614657762325194, 10.821975409381777], [-72.227575446242923, 11.108702093953237], [-71.973921678338272, 11.608671576377116], [-71.331583624950284, 11.776284084515805]]] } }, + { "type": "Feature", "properties": { "admin": "Vietnam", "name": "Vietnam", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[108.050180291782908, 21.552379869060111], [106.715067987090066, 20.696850694252014], [105.881682163519002, 19.752050482659694], [105.662005649846279, 19.058165188060567], [106.426816847765991, 18.004120998603224], [107.36195356651973, 16.697456569887049], [108.269495070429599, 16.079742336486145], [108.877106561317447, 15.276690578670436], [109.335269810017209, 13.42602834721772], [109.200135939573954, 11.666859239137761], [108.366129998815424, 11.00832062422627], [107.22092858279521, 10.36448395430183], [106.4051127462034, 9.530839748569317], [105.158263787865081, 8.599759629750492], [104.795185174582372, 9.2410383162765], [105.076201613385592, 9.918490505406806], [104.334334751403446, 10.486543687375228], [105.199914992292321, 10.889309800658094], [106.249670037869436, 10.961811835163585], [105.810523716253101, 11.567614650921225], [107.491403029410861, 12.337205918827944], [107.614547967562402, 13.535530707244202], [107.382727492301058, 14.202440904186968], [107.564525181103875, 15.202173163305554], [107.312705926545576, 15.908538316303177], [106.55600792849566, 16.604283962464802], [105.925762160264, 17.485315456608955], [105.094598423281496, 18.666974595611073], [103.896532017026701, 19.265180975821799], [104.183387892678908, 19.624668077060214], [104.822573683697073, 19.886641750563879], [104.435000441508024, 20.758733221921528], [103.203861118586431, 20.766562201413745], [102.754896274834636, 21.675137233969462], [102.170435825613552, 22.464753119389297], [102.706992222100084, 22.708795070887668], [103.504514601660546, 22.703756618739202], [104.476858351664447, 22.819150092046961], [105.329209425886603, 23.352063300056908], [105.811247186305209, 22.976892401617899], [106.725403273548451, 22.794267889898414], [106.567273390735295, 22.218204860924768], [107.043420037872608, 21.811898912029907], [108.050180291782908, 21.552379869060111]]] } }, + { "type": "Feature", "properties": { "admin": "Vanuatu", "name": "Vanuatu", "continent": "Oceania" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[167.844876743845077, -16.466333103097153], [167.515181105822847, -16.597849623279966], [167.180007765977791, -16.159995212470957], [167.2168013857696, -15.891846205308449], [167.844876743845077, -16.466333103097153]]], [[[167.107712437201485, -14.933920179913951], [167.2700281110302, -15.74002084723487], [167.001207310247935, -15.614602146062492], [166.79315799384085, -15.668810723536719], [166.649859247095549, -15.392703545801192], [166.629136997746429, -14.6264970842096], [167.107712437201485, -14.933920179913951]]]] } }, + { "type": "Feature", "properties": { "admin": "Yemen", "name": "Yemen", "continent": "Asia" }, "geometry": { "type": "Polygon", "coordinates": [[[53.108572625547502, 16.651051133688949], [52.385205926325874, 16.38241120041965], [52.191729363825075, 15.938433132384018], [52.168164910699986, 15.597420355689945], [51.172515089732471, 15.175249742081489], [49.574576450403136, 14.708766587782746], [48.679230584514151, 14.003202419485657], [48.238947381387412, 13.948089504446369], [47.938914015500771, 14.007233181204423], [47.354453566279702, 13.592219753468379], [46.71707645039173, 13.399699204965016], [45.877592807810252, 13.347764390511681], [45.625050083199874, 13.290946153206759], [45.406458774605241, 13.02690542241143], [45.144355910020849, 12.953938300015306], [44.9895333188744, 12.699586900274708], [44.494576450382844, 12.721652736863344], [44.175112745954486, 12.585950425664873], [43.48295861183712, 12.63680003504008], [43.222871128112118, 13.220950425667422], [43.251448195169516, 13.767583726450848], [43.087943963398047, 14.062630316621306], [42.892245314308717, 14.802249253798745], [42.604872674333606, 15.213335272680592], [42.805015496600042, 15.261962795467252], [42.702437778500652, 15.718885809791995], [42.823670688657408, 15.911742255105263], [42.779332309750963, 16.34789134364868], [43.218375278502734, 16.666889960186406], [43.115797560403351, 17.088440456607369], [43.380794305196098, 17.579986680567668], [43.791518589051904, 17.319976711491105], [44.062613152855072, 17.410358791569589], [45.216651238797184, 17.43332896572333], [45.399999220568752, 17.333335069238554], [46.366658563020529, 17.233315334537632], [46.749994337761642, 17.283338120996174], [47.000004917189749, 16.949999294497438], [47.466694777217626, 17.116681626854877], [48.183343540241324, 18.166669216377311], [49.116671583864857, 18.616667588774941], [52.000009800022227, 19.000003363516054], [52.782184279192037, 17.349742336491229], [53.108572625547502, 16.651051133688949]]] } }, + { "type": "Feature", "properties": { "admin": "South Africa", "name": "South Africa", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[31.521001417778869, -29.257386976846245], [31.325561150850994, -29.401977634398907], [30.901762729625336, -29.909956963828034], [30.622813348113816, -30.423775730106122], [30.055716180142774, -31.140269463832951], [28.925552605919535, -32.172041110972494], [28.219755893677092, -32.771952813448848], [27.464608188595967, -33.226963799778794], [26.419452345492818, -33.614950453426175], [25.909664340933482, -33.667040297176392], [25.78062828950069, -33.944646091448334], [25.172861769315965, -33.796851495093577], [24.67785322439212, -33.987175795224537], [23.594043409934635, -33.794474379208147], [22.988188917744729, -33.916430759416976], [22.574157342222232, -33.864082533505304], [21.542799106541022, -34.258838799782922], [20.689052768646999, -34.417175388325226], [20.071261020597628, -34.795136814107984], [19.616405063564567, -34.819166355123706], [19.193278435958714, -34.462598972309777], [18.855314568769867, -34.444305515278458], [18.424643182049376, -33.997872816708963], [18.377410922934612, -34.13652068454806], [18.244499139079917, -33.867751560198023], [18.250080193767442, -33.281430759414434], [17.925190463948436, -32.61129078545342], [18.247909783611185, -32.429131361624563], [18.221761508871477, -31.661632989225662], [17.566917758868861, -30.72572112398754], [17.0644161312627, -29.878641045859158], [17.06291751472622, -29.875953871379977], [16.344976840895239, -28.576705010697697], [16.824017368240899, -28.082161553664466], [17.218928663815401, -28.355943291946804], [17.387497185951499, -28.783514092729774], [17.836151971109526, -28.856377862261311], [18.464899122804745, -29.045461928017271], [19.002127312911082, -28.972443129188857], [19.89473432788861, -28.461104831660769], [19.895767856534427, -24.767790215760588], [20.165725538827186, -24.917961928000768], [20.758609246511831, -25.868136488551446], [20.666470167735437, -26.477453301704916], [20.889609002371731, -26.828542982695907], [21.60589603036939, -26.726533705351748], [22.105968865657864, -26.28025603607913], [22.579531691180584, -25.979447523708142], [22.824271274514896, -25.500458672794768], [23.312096795350179, -25.268689873965712], [23.733569777122703, -25.39012948985161], [24.211266717228792, -25.670215752873567], [25.025170525825782, -25.719670098576891], [25.664666375437712, -25.486816094669706], [25.765848829865206, -25.174845472923671], [25.941652052522151, -24.696373386333214], [26.485753208123292, -24.616326592713097], [26.78640669119741, -24.240690606383478], [27.119409620886238, -23.574323011979772], [28.017235955525244, -22.827753594659072], [29.432188348109033, -22.091312758067584], [29.839036899542965, -22.102216485281172], [30.322883335091767, -22.271611830333931], [30.659865350067083, -22.151567478119912], [31.191409132621278, -22.251509698172395], [31.670397983534645, -23.658969008073861], [31.930588820124242, -24.369416599222532], [31.752408481581874, -25.484283949487406], [31.837777947728057, -25.843331801051342], [31.333157586397899, -25.660190525008943], [31.044079624157146, -25.731452325139436], [30.949666782359905, -26.022649021104144], [30.676608514129633, -26.398078301704604], [30.685961948374477, -26.743845310169526], [31.282773064913325, -27.285879408478991], [31.868060337051073, -27.17792734142127], [32.071665480281062, -26.733820082304902], [32.830120477028878, -26.74219166433619], [32.580264926897677, -27.470157566031808], [32.462132602678444, -28.30101124442055], [32.203388706193032, -28.752404880490065], [31.521001417778869, -29.257386976846245]], [[28.978262566857236, -28.955596612261708], [28.541700066855491, -28.647501722937562], [28.07433841320778, -28.851468601193581], [27.532511020627471, -29.242710870075353], [26.999261915807629, -29.875953871379977], [27.749397006956478, -30.645105889612214], [28.107204624145421, -30.545732110314944], [28.291069370239903, -30.226216729454293], [28.848399692507734, -30.070050551068245], [29.018415154748016, -29.743765557577362], [29.325166456832587, -29.257386976846245], [28.978262566857236, -28.955596612261708]]] } }, + { "type": "Feature", "properties": { "admin": "Zambia", "name": "Zambia", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[32.759375441221316, -9.230599053589058], [33.231387973775291, -9.676721693564799], [33.485687697083584, -10.525558770391111], [33.315310499817279, -10.796549981329695], [33.114289178201908, -11.607198174692311], [33.306422153463068, -12.435778090060214], [32.991764357237876, -12.783870537978272], [32.688165317523122, -13.712857761289273], [33.214024692525207, -13.97186003993615], [30.179481235481827, -14.796099134991525], [30.274255812305103, -15.507786960515208], [29.51683434420314, -15.644677829656386], [28.947463413211256, -16.043051446194436], [28.825868768028492, -16.389748630440611], [28.467906121542676, -16.468400160388843], [27.598243442502753, -17.290830580314005], [27.044427117630729, -17.938026218337427], [26.706773309035633, -17.961228936436477], [26.381935255648919, -17.846042168857892], [25.264225701608005, -17.736539808831413], [25.084443393664564, -17.661815687737366], [25.076950310982255, -17.578823337476617], [24.6823490740015, -17.35341073981947], [24.033861525170771, -17.29584319424632], [23.215048455506057, -17.52311614346598], [22.562478468524255, -16.89845142992181], [21.887842644953867, -16.080310153876876], [21.933886346125913, -12.898437188369357], [24.016136508894672, -12.91104623784857], [23.930922072045373, -12.565847670138854], [24.079905226342838, -12.191296888887361], [23.904153680118181, -11.722281589406318], [24.017893507592586, -11.237298272347088], [23.912215203555714, -10.926826267137512], [24.257155389103982, -10.951992689663655], [24.314516228947948, -11.262826429899269], [24.783169793402948, -11.238693536018962], [25.418118116973197, -11.330935967659958], [25.752309604604726, -11.784965101776356], [26.55308759939961, -11.924439792532125], [27.164419793412456, -11.608748467661071], [27.38879886242378, -12.132747491100663], [28.15510867687998, -12.272480564017894], [28.52356163912102, -12.698604424696679], [28.934285922976834, -13.248958428605132], [29.699613885219485, -13.257226657771827], [29.616001417771223, -12.178894545137307], [29.341547885869087, -12.36074391037241], [28.642417433392346, -11.971568698782312], [28.372253045370421, -11.793646742401389], [28.496069777141763, -10.789883721564044], [28.673681674928922, -9.605924981324931], [28.449871046672818, -9.164918308146083], [28.734866570762495, -8.526559340044576], [29.002912225060467, -8.40703175215347], [30.34608605319081, -8.238256524288216], [30.740015496551781, -8.340007419470913], [31.157751336950042, -8.594578747317362], [31.55634809746649, -8.76204884199864], [32.191864861791963, -8.930358981973276], [32.759375441221316, -9.230599053589058]]] } }, + { "type": "Feature", "properties": { "admin": "Zimbabwe", "name": "Zimbabwe", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[31.191409132621278, -22.251509698172395], [30.659865350067083, -22.151567478119912], [30.322883335091767, -22.271611830333931], [29.839036899542965, -22.102216485281172], [29.432188348109033, -22.091312758067584], [28.794656202924209, -21.639454034107445], [28.02137007010861, -21.485975030200578], [27.727227817503252, -20.851801853114711], [27.724747348753247, -20.499058526290387], [27.296504754350501, -20.391519870690995], [26.164790887158478, -19.293085625894935], [25.850391473094724, -18.714412937090533], [25.649163445750155, -18.536025892818987], [25.264225701608005, -17.736539808831413], [26.381935255648919, -17.846042168857892], [26.706773309035633, -17.961228936436477], [27.044427117630729, -17.938026218337427], [27.598243442502753, -17.290830580314005], [28.467906121542676, -16.468400160388843], [28.825868768028492, -16.389748630440611], [28.947463413211256, -16.043051446194436], [29.51683434420314, -15.644677829656386], [30.274255812305103, -15.507786960515208], [30.338954705534537, -15.880839125230242], [31.173063999157673, -15.860943698797868], [31.636498243951188, -16.071990248277881], [31.852040643040592, -16.319417006091374], [32.328238966610222, -16.392074069893749], [32.847638787575839, -16.713398125884613], [32.849860874164385, -17.979057305577175], [32.654885695127142, -18.672089939043492], [32.611994256324884, -19.419382826416268], [32.772707960752619, -19.715592136313294], [32.659743279762573, -20.30429005298231], [32.508693068173436, -20.395292250248303], [32.244988234188007, -21.116488539313689], [31.191409132621278, -22.251509698172395]]] } } + ] + }; + +var randomcountriesData1 = [ + { country: "Iran", "continent": "Asia", "CategoryName": "Books", "Sales": 550 }, + { country: "Benin", "continent": "Africa", "CategoryName": "Books", "Sales": 1000 }, + { country: "China", "continent": "Asia", "CategoryName": "Books", "Sales": 420 }, + { country: "Chile", "continent": "South America", "CategoryName": "Books", "Sales": 1100 }, + { country: "Cuba", "continent": "North America", "CategoryName": "Books", "Sales": 450 }, + { country: "Spain", "continent": "Europe", "CategoryName": "Books", "Sales": 1200 }, + { country: "Fiji", "continent": "Oceania", "CategoryName": "Books", "Sales": 618.0 }, +]; + +module mapcomponenet { + $(function () { + var mapsample = new ej.datavisualization.Map($("#map"), { + enableAnimation: true, + navigationControl: { + enableNavigation: true, + orientation: 'vertical', + absolutePosition: { x: 5, y: 15 }, + dockPosition: 'none' + }, + layers: [ + { + layerType: 'geometry', + enableMouseHover: false, + enableSelection: false, + shapeSettings: { + fill: "#626171", + autoFill: false, + highlightStroke: "white", + stroke: "white", + strokeThickness: 0.5, + highlightColor: "#BFBFBF" + }, + shapeData: world_map, + legendSettings: { dockOnMap: false } + } + ] + }); + }); +} + + + + + + + +module MenuComponent { + $(function () { + var sample = new ej.Menu($("#syncfusionProducts"),{ + width: "100%", + animationType: ej.AnimationType.Default, + cssClass: 'gradient-lime ', + enableAnimation: true, + enableSeparator: true, + height: 40, + htmlAttributes: { "aria-label": "menu" }, + menuType: "normalmenu", + orientation: ej.Orientation.Horizontal, + showRootLevelArrows: true, + showSubLevelArrows: true, + subMenuDirection: ej.Direction.Right, + titleText: "Menu", + + }); + }); + +} + + + + + + + + +module NavigationDrawerComponent { + $(function () { + var navigationdrawerInstance = new ej.NavigationDrawer($("#navpane"), { + targetId: "butdrawer", + contentId: "content_container", + type: "overlay", + direction: "left", + enableListView: true, + listViewSettings: { + width: 300, + selectedItemIndex: 0 + }, + position: "normal" + }); + $("#navpane_listview").click(function(e: any) { + var text=e.target["text"]||$(e.target).closest("li.e-list").text(); + $("#butdrawer").parent().children("h2").text(text); + }); + }); +} + + + +module PDFViewerComponent { + $(function () { + var pdfviewerControl = new ej.PdfViewer($("#pdfviewer"), { + serviceUrl:(window).baseurl+ "api/PdfViewer", + isResponsive: true + }); + }); +} + + + +module PivotChartOlap { + $(function () { + var sample = new ej.PivotChart($("#PivotChart"),{ + dataSource: { + data: "http://bi.syncfusion.com/olap/msmdpump.dll", + catalog: "Adventure Works DW 2008 SE", + cube: "Adventure Works", + rows: [ + { + fieldName: "[Date].[Fiscal]" + } + ], + columns: [ + { + fieldName: "[Customer].[Customer Geography]" + } + ], + values: [ + { + measures: [ + { + fieldName: "[Measures].[Internet Sales Amount]" + } + ], + axis: "columns" + } + ], + filters:[] + }, + isResponsive: true,zooming:{enableScrollbar: true}, + commonSeriesOptions: { + type: "column" + }, + size: { height: "460px", width: "100%" }, + primaryXAxis: { title: { text: "Date - Fiscal" }, labelRotation: 0 }, + primaryYAxis: { title: { text: "Internet Sales Amount" } }, + legend: { visible: true, rowCount: 2 } + }); + }); +} + + + +var pivot_dataset = [ + { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" }, + { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" }, + { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" }, + { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" }, + { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }, + { Amount: 100, Country: "Canada", Date: "FY 2007", Product: "Van", Quantity: 1, State: "Quebec" }, + { Amount: 200, Country: "France", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Charente-Maritime" }, + { Amount: 250, Country: "France", Date: "FY 2006", Product: "Van", Quantity: 4, State: "Essonne" }, + { Amount: 300, Country: "France", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Garonne (Haute)" }, + { Amount: 150, Country: "France", Date: "FY 2008", Product: "Van", Quantity: 2, State: "Gers" }, + { Amount: 200, Country: "Germany", Date: "FY 2006", Product: "Van", Quantity: 3, State: "Bayern" }, + { Amount: 250, Country: "Germany", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Brandenburg" }, + { Amount: 150, Country: "Germany", Date: "FY 2008", Product: "Car", Quantity: 4, State: "Hamburg" }, + { Amount: 200, Country: "Germany", Date: "FY 2008", Product: "Bike", Quantity: 4, State: "Hessen" }, + { Amount: 150, Country: "Germany", Date: "FY 2007", Product: "Van", Quantity: 3, State: "Nordrhein-Westfalen" }, + { Amount: 100, Country: "Germany", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Saarland" }, + { Amount: 150, Country: "United Kingdom", Date: "FY 2008", Product: "Bike", Quantity: 5, State: "England" }, + { Amount: 250, Country: "United States", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Alabama" }, + { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Van", Quantity: 4, State: "California" }, + { Amount: 100, Country: "United States", Date: "FY 2006", Product: "Bike", Quantity: 2, State: "Colorado" }, + { Amount: 150, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "New Mexico" }, + { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Bike", Quantity: 4, State: "New York" }, + { Amount: 250, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "North Carolina" }, + { Amount: 300, Country: "United States", Date: "FY 2007", Product: "Van", Quantity: 4, State: "South Carolina" } +] + +module PivotChartRelational { + + $(function () { + var sample = new ej.PivotChart($("#PivotChart"),{ + dataSource: { + data: pivot_dataset, + rows: [ + { + fieldName: "Country", + fieldCaption: "Country" + }, + { + fieldName: "State", + fieldCaption: "State" + }, + { + fieldName: "Date", + fieldCaption: "Date" + } + ], + columns: [ + { + fieldName: "Product", + fieldCaption: "Product" + } + ], + values: [ + { + fieldName: "Amount", + fieldCaption: "Amount" + } + ], + filters:[] + }, + isResponsive: true,zooming:{enableScrollbar: true}, + commonSeriesOptions: { + type: "column" + }, + size: { height: "460px", width: "100%" }, + primaryYAxis: { title: { text: "Amount" } }, + legend: { visible: true } + }); + }); +} + + + +module PivotGaugeOlap { + + $(function () { + var sample = new ej.PivotGauge($("#PivotGauge"),{ + dataSource: { + data: "http://bi.syncfusion.com/olap/msmdpump.dll", + catalog: "Adventure Works DW 2008 SE", + cube: "Adventure Works", + rows: [ + { + fieldName: "[Date].[Fiscal]", + filterItems: { filterType: "include", values: ["[Date].[Fiscal].[Fiscal Year].&[2004]"] } + }, + ], + columns: [ + { + fieldName: "[Customer].[Customer Geography]" + } + ], + values: [ + { + measures: [ + { + fieldName: "[Measures].[Internet Sales Amount]" + }, + { + fieldName: "[Measures].[Internet Revenue Status]" + }, + { + fieldName: "[Measures].[Internet Revenue Trend]" + }, + { + fieldName: "[Measures].[Internet Revenue Goal]" + }, + ], + axis: "columns" + } + ], + filters:[] + }, + enableTooltip: true, isResponsive: true, + labelFormatSettings: { decimalPlaces: 2 }, + scales: [{ + showRanges: true, + radius: 150, showScaleBar: true, size: 1, + border: { + width: 0.5 + }, + showIndicators: true, showLabels: true, + pointers: [{ + showBackNeedle: true, + backNeedleLength: 20, + length: 120, + width: 7 + }, + { + type: "marker", + markerType: "diamond", + distanceFromScale: 5, + placement: "center", + backgroundColor: "#29A4D9", + length: 25, + width: 15 + }], + ticks: [{ + type: "major", + distanceFromScale: 2, + height: 16, + width: 1, color: "#8c8c8c" + }, + { + type: "minor", + height: 6, + width: 1, + distanceFromScale: 2, + color: "#8c8c8c" + }], + labels: [{ + color: "#8c8c8c" + }], + ranges: [{ + distanceFromScale: -5, + backgroundColor: "#fc0606", + border: { color: "#fc0606" } + }, + { + distanceFromScale: -5 + }], + customLabels: [{ + position: { x: 180, y: 290 }, + font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" + }, + { + position: { x: 180, y: 320 }, + font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" + }, + { + position: { x: 180, y: 150 }, + font: { size: "12px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" + }] + }] + }); + }); +} + + + +var pivot_dataset = [ + { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" }, + { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" }, + { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" }, + { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" }, + { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }, + { Amount: 100, Country: "Canada", Date: "FY 2007", Product: "Van", Quantity: 1, State: "Quebec" }, + { Amount: 200, Country: "France", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Charente-Maritime" }, + { Amount: 250, Country: "France", Date: "FY 2006", Product: "Van", Quantity: 4, State: "Essonne" }, + { Amount: 300, Country: "France", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Garonne (Haute)" }, + { Amount: 150, Country: "France", Date: "FY 2008", Product: "Van", Quantity: 2, State: "Gers" }, + { Amount: 200, Country: "Germany", Date: "FY 2006", Product: "Van", Quantity: 3, State: "Bayern" }, + { Amount: 250, Country: "Germany", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Brandenburg" }, + { Amount: 150, Country: "Germany", Date: "FY 2008", Product: "Car", Quantity: 4, State: "Hamburg" }, + { Amount: 200, Country: "Germany", Date: "FY 2008", Product: "Bike", Quantity: 4, State: "Hessen" }, + { Amount: 150, Country: "Germany", Date: "FY 2007", Product: "Van", Quantity: 3, State: "Nordrhein-Westfalen" }, + { Amount: 100, Country: "Germany", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Saarland" }, + { Amount: 150, Country: "United Kingdom", Date: "FY 2008", Product: "Bike", Quantity: 5, State: "England" }, + { Amount: 250, Country: "United States", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Alabama" }, + { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Van", Quantity: 4, State: "California" }, + { Amount: 100, Country: "United States", Date: "FY 2006", Product: "Bike", Quantity: 2, State: "Colorado" }, + { Amount: 150, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "New Mexico" }, + { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Bike", Quantity: 4, State: "New York" }, + { Amount: 250, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "North Carolina" }, + { Amount: 300, Country: "United States", Date: "FY 2007", Product: "Van", Quantity: 4, State: "South Carolina" } +] + +module PivotGaugeRelational { + $(function () { + var sample = new ej.PivotGauge($("#PivotGauge"),{ + dataSource: { + data: pivot_dataset, + rows: [ + { + fieldName: "Country", + }, + { + fieldName: "State", + } + ], + columns: [ + { + fieldName: "Product", + } + ], + values: [ + { + fieldName: "Amount", + }, + { + fieldName: "Quantity", + } + ] + }, + enableTooltip: true, isResponsive: true, + labelFormatSettings: { decimalPlaces: 2 }, + scales: [{ + showRanges: true, + radius: 150, showScaleBar: true, size: 1, + border: { + width: 0.5 + }, + showIndicators: true, showLabels: true, + pointers: [{ + showBackNeedle: true, + backNeedleLength: 20, + length: 120, + width: 7 + }, + { + type: "marker", + markerType: "diamond", + distanceFromScale: 5, + placement: "center", + backgroundColor: "#29A4D9", + length: 25, + width: 15 + }], + ticks: [{ + type: "major", + distanceFromScale: 2, + height: 16, + width: 1, color: "#8c8c8c" + }, + { + type: "minor", + height: 6, + width: 1, + distanceFromScale: 2, + color: "#8c8c8c" + }], + labels: [{ + color: "#8c8c8c" + }], + ranges: [{ + distanceFromScale: -5, + backgroundColor: "#fc0606", + border: { color: "#fc0606" } + }, + { + distanceFromScale: -5 + }], + customLabels: [{ + position: { x: 180, y: 290 }, + font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" + }, + { + position: { x: 180, y: 320 }, + font: { size: "10px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" + }, + { + position: { x: 180, y: 150 }, + font: { size: "12px", fontFamily: "Segoe UI", fontStyle: "Normal" }, color: "#666666" + }] + }] + }); + }); +} + + + +module PivotGridOlap { + + $(function () { + var sample = new ej.PivotGrid($("#PivotGrid"),{ + dataSource: { + data: "http://bi.syncfusion.com/olap/msmdpump.dll", + catalog: "Adventure Works DW 2008 SE", + cube: "Adventure Works", + rows: [ + { + fieldName: "[Date].[Fiscal]" + } + ], + columns: [ + { + fieldName: "[Customer].[Customer Geography]" + } + ], + values: [ + { + measures: [ + { + fieldName: "[Measures].[Internet Sales Amount]", + } + ], + axis: "columns" + } + ], + filters:[] + }, + enableGroupingBar: true, + pivotTableFieldListID:"PivotSchemaDesigner" + }); + $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); + }); +} + + + +var pivot_dataset = [ + { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" }, + { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" }, + { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" }, + { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" }, + { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }, + { Amount: 100, Country: "Canada", Date: "FY 2007", Product: "Van", Quantity: 1, State: "Quebec" }, + { Amount: 200, Country: "France", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Charente-Maritime" }, + { Amount: 250, Country: "France", Date: "FY 2006", Product: "Van", Quantity: 4, State: "Essonne" }, + { Amount: 300, Country: "France", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Garonne (Haute)" }, + { Amount: 150, Country: "France", Date: "FY 2008", Product: "Van", Quantity: 2, State: "Gers" }, + { Amount: 200, Country: "Germany", Date: "FY 2006", Product: "Van", Quantity: 3, State: "Bayern" }, + { Amount: 250, Country: "Germany", Date: "FY 2007", Product: "Car", Quantity: 3, State: "Brandenburg" }, + { Amount: 150, Country: "Germany", Date: "FY 2008", Product: "Car", Quantity: 4, State: "Hamburg" }, + { Amount: 200, Country: "Germany", Date: "FY 2008", Product: "Bike", Quantity: 4, State: "Hessen" }, + { Amount: 150, Country: "Germany", Date: "FY 2007", Product: "Van", Quantity: 3, State: "Nordrhein-Westfalen" }, + { Amount: 100, Country: "Germany", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Saarland" }, + { Amount: 150, Country: "United Kingdom", Date: "FY 2008", Product: "Bike", Quantity: 5, State: "England" }, + { Amount: 250, Country: "United States", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Alabama" }, + { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Van", Quantity: 4, State: "California" }, + { Amount: 100, Country: "United States", Date: "FY 2006", Product: "Bike", Quantity: 2, State: "Colorado" }, + { Amount: 150, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "New Mexico" }, + { Amount: 200, Country: "United States", Date: "FY 2005", Product: "Bike", Quantity: 4, State: "New York" }, + { Amount: 250, Country: "United States", Date: "FY 2008", Product: "Car", Quantity: 3, State: "North Carolina" }, + { Amount: 300, Country: "United States", Date: "FY 2007", Product: "Van", Quantity: 4, State: "South Carolina" } +] + +module PivotGridRelational { + $(function () { + var sample = new ej.PivotGrid($("#PivotGrid"),{ + dataSource: { + data: pivot_dataset, + rows: [ + { + fieldName: "Country", + fieldCaption: "Country" + }, + { + fieldName: "State", + fieldCaption: "State" + } + ], + columns: + [{ + fieldName: "Product", + fieldCaption: "Product" + } + ], + values: [ + { + fieldName: "Amount", + fieldCaption: "Amount" + }, + { + fieldName: "Quantity", + fieldCaption: "Quantity" + } + ], + filters:[] + }, + enableGroupingBar: true, + pivotTableFieldListID:"PivotSchemaDesigner" + }); + $("#PivotSchemaDesigner").ejPivotSchemaDesigner(); + + }); +} + + + +module PivotTreeMap { + $(function () { + var sample = new ej.PivotTreeMap($("#PivotTreeMap"),{ + dataSource: { + data: "http://bi.syncfusion.com/olap/msmdpump.dll;Locale Identifier=1033;", + catalog: "Adventure Works DW 2008 SE", + cube: "Adventure Works", + rows: [ + { + fieldName: "[Customer].[Customer Geography]" + } + ], + columns: [ + { + fieldName: "[Date].[Fiscal]" + } + ], + values: [ + { + measures: [ + { + fieldName: "[Measures].[Customer Count]", + } + ], + axis: "columns" + } + ], + filters:[] + } + }); + }); +} + + + +module ProgressBarComponent { + $(function () { + var sample = new ej.ProgressBar($("#progressBar"),{ + width: 200, + value: 45, + height: 20, + enablePersistence: true, + maxValue: 200, + minValue: 0, + showRoundedCorner: true, + text: 'loading...' + }); + }); + +} + + + + +declare var rteObj: any; +declare var data: any; +var radialEle = $('#defaultradialmenu'), action = 0, forRedo = 0; +var rteEle = $("#rteSample1"); +module RadialMenuComponent { + $(function () { + + if (!(ej.browserInfo().name == "msie" && parseInt(ej.browserInfo().version) < 9)) { + var radialmenuInstance = new ej.RadialMenu($("#defaultradialmenu"), { + imageClass: "imageclass", + backImageClass: "backimageclass", + targetElementId: "radialtarget1" + }); + $("#radialtarget1").parent().css("position", "relative"); + } + else { + $("#contentDiv").html("Radial Menu is only supported from Internet Explorer Versioned 9 and above.").css({ "font-size": "20px", "color": "red" }); + } + var rteInstance = new ej.RTE($("#rteSample1"), { + width: "100%", + minWidth: "10px", + change: (e) => { radialEle.ejRadialMenu("enableItem", "Undo"); }, + select: (e) => { + var target = $("#radialtarget1"), radialRadius = 150, radialDiameter = 2 * radialRadius, + // To get Iframe positions + iframeY = e.event.clientY, iframeX = e.event.clientX, + // To set Radial Menu position within target + x = iframeX > target.width() - radialRadius ? target.width() - radialDiameter : (iframeX > radialRadius ? iframeX - radialRadius : 0), + y = iframeY > target.height() - radialRadius ? target.height() - radialDiameter : (iframeY > radialRadius ? iframeY - radialRadius : 0); + radialEle.ejRadialMenu("setPosition", x, y); + radialEle.focus(); + $('iframe').contents().find('body').blur(); + }, + showToolbar: false, + showContextMenu: false + }); + $(window).resize(function () { + if (ej.isMobile() && ej.isPortrait()) + $('#defaultradialmenu').css({ "left": 25 }); + }); + }); +} + + +function bold(e: any) { + + rteObj = rteEle.data("ejRTE"); + rteObj.executeCommand("bold"); + data = rteObj._getSelectedHtmlString() ? true : false; + if (data) action += 1; + forRedo = action; + radialEle.focus(); +} +function italic(e: any) { + rteObj = rteEle.data("ejRTE"); + rteObj.executeCommand("italic"); + data = rteObj._getSelectedHtmlString() ? true : false; + if (data) action += 1; + forRedo = action; + radialEle.focus(); +} +function undo(e: any) { + rteObj = rteEle.data("ejRTE"); + rteObj.executeCommand("undo"); + action -= 1; + if (action == 0) + radialEle.ejRadialMenu("disableItem", "Undo"); + radialEle.ejRadialMenu("enableItem", "Redo"); + radialEle.focus(); +} +function redo(e: any) { + rteObj = rteEle.data("ejRTE"); + rteObj.executeCommand("redo"); + action += 1; + if (forRedo == action) radialEle.ejRadialMenu("disableItem", "Redo"); + radialEle.ejRadialMenu("enableItem", "Undo"); + radialEle.focus(); +} + + + + +module RadialSliderComponent { + $(function () { + var radialsliderInstance = new ej.RadialSlider($("#radialSlider"), { + innerCircleImageUrl: "images/radialslider/chevron-right.png" + }); + }); +} + + +module rangecomponent { + $(function () { + var linearsample = new ej.datavisualization.RangeNavigator($("#RangeNavigator"), { + enableDeferredUpdate: true, + padding: "15", + allowSnapping: true, + selectedRangeSettings: { + start: "2010/5/1", end: "2011/10/1" + }, + isResponsive: true, + tooltipSettings: { + visible: true, labelFormat: "MM/dd/yyyy", backgroundColor: "gray", tooltipDisplayMode: "ondemand" + }, + load: () => { + var rn = $("#RangeNavigator").data("ejRangeNavigator"); + rn.model.series = [ + { + type: 'line', + dataSource: data.Open, xName: "XValue", yName: "YValue", + fill: '#69D2E7' + } + ]; + } + + }); + }); +} +var data; +data = GetData(); + +function GetData() { + var series1:any[]=[]; + var series2:any[]= []; + var value = 100; + var value1 = 120; + for (var i = 1; i < 730; i++) { + + if (Math.random() > .5) { + value += Math.random(); + value1 += Math.random(); + } else { + value -= Math.random(); + value1 -= Math.random(); + } + var point1 = { XValue: new Date(2010, 0, i), YValue: value }; + var point2 = { XValue: new Date(2010, 0, i), YValue: value1 }; + series1.push(point1); + series2.push(point2); + } + + data = { Open: series1, Close: series2 }; + return data; +}; + + + +module RatingComponent { + $(function () { + + var sample1 = new ej.Rating($("#fullRating"),{ + value: 4, + precision: ej.Rating.Precision.Full, + allowReset: true, + cssClass: "gradient-lime", + enabled: true, + enablePersistence: true, + incrementStep: 2, + maxValue: 10, + minValue: 0, + orientation: ej.Orientation.Horizontal, + shapeHeight: 25, + shapeWidth: 25, + showTooltip: true + }); + + var sample2 = new ej.Rating($("#halfRating"),{ + precision: ej.Rating.Precision.Half, + value: 3.5, + allowReset: true, + cssClass: "gradient-lime", + enabled: true, + enablePersistence: true, + incrementStep: 2, + maxValue: 10, + minValue: 0, + orientation: "horizontal", + shapeHeight: 25, + shapeWidth: 25, + showTooltip: true + }); + + var sample3 = new ej.Rating($("#exactRating"),{ + precision: ej.Rating.Precision.Exact, + value: 3.7, + allowReset: true, + cssClass: "gradient-lime", + enabled: true, + enablePersistence: true, + incrementStep: 2, + maxValue: 10, + minValue: 0, + orientation: "horizontal", + shapeHeight: 25, + shapeWidth: 25, + showTooltip: true + }); + }); + +} + + + +module ReportViewerComponent { + $(function () { + var report = new ej.ReportViewer($("#territoryReportViewer"), { + reportServiceUrl: (window).baseurl + 'api/ReportViewer', + reportServerUrl: 'http://mvc.syncfusion.com/reportserver', + processingMode: ej.ReportViewer.ProcessingMode.Remote, + reportPath: "/SSRSSamples2/Territory Sales new", + isResponsive: true + }); + }); +} + + + +var fontfamily = ["Segoe UI", "Arial", "Times New Roman", "Tahoma", "Helvetica"], fontsize = ["1pt", "2pt", "3pt", "4pt", "5pt"], action1 = ["New", "Clear"], action2 = ["Bold", "Italic", "Underline", "strikethrough", "superscript", "subscript", "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyFull", "Undo", "Redo"]; +module RibbonComponent { + $(function () { + var sample = new ej.Ribbon($("#defaultRibbon"), { + width: "100%", + expandPinSettings: { + toolTip: "Collapse the Ribbon" + }, + collapsePinSettings: { + toolTip: "Pin the Ribbon" + }, + applicationTab: { + type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false } + }, + tabs: [{ + id: "home", text: "HOME", groups: [{ + text: "New", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "new", + text: "New", + toolTip: "New", + buttonSettings: { + contentType: ej.ContentType.ImageOnly, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-new", + click: "onClick" + } + } + ], + defaults: { + type: "button", + width: 60, + height: 70 + } + }] + }, + { + text: "Clipboard", alignType: ej.Ribbon.AlignType.Columns, content: [{ + groups: [{ + id: "paste", + text: "paste", + toolTip: "Paste", + splitButtonSettings: { + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-ribbonpaste", + targetID: "pasteSplit", + buttonMode: "dropdown", + click: "onClick", + arrowPosition: ej.ArrowPosition.Bottom + } + } + ], + defaults: { + type: "splitbutton", + width: 50, + height: 70 + } + }, + { + groups: [{ + id: "cut", + text: "Cut", + toolTip: "Cut", + buttonSettings: { + contentType: ej.ContentType.TextAndImage, + click: "onClick", + prefixIcon: "e-icon e-ribbon e-ribboncut" + } + }, + { + id: "copy", + text: "Copy", + toolTip: "Copy", + buttonSettings: { + contentType: ej.ContentType.TextAndImage, + click: "onClick", + prefixIcon: "e-icon e-ribbon e-ribboncopy" + } + }, + { + id: "clear", + text: "Clear", + toolTip: "Clear All", + buttonSettings: { + contentType: ej.ContentType.TextAndImage, + click: "onClick", + prefixIcon: "e-icon e-ribbon clearAll" + } + }], + defaults: { + type: "button", + width: 60, + isBig: false + } + }] + }, + { + text: "Font", alignType: "rows", content: [{ + groups: [{ + id: "fontfamily", + toolTip: "Font", + dropdownSettings: { + dataSource: fontfamily, + text: "Segoe UI", + select: "onClick", + width: 150 + } + }, + { + id: "fontsize", + toolTip: "FontSize", + dropdownSettings: { + dataSource: fontsize, + text: "1pt", + select: "onClick", + width: 65 + } + }], + defaults: { + type: "dropdownlist", + height: 28 + } + }, + { + groups: [{ + id: "bold", + toolTip: "Bold", + type: ej.Ribbon.Type.ToggleButton, + toggleButtonSettings: { + contentType: ej.ContentType.ImageOnly, + defaultText: "Bold", + activeText: "Bold", + click: "onClick", + defaultPrefixIcon: "e-icon e-ribbon bold", + activePrefixIcon: "e-icon e-ribbon bold" + } + }, + { + id: "italic", + toolTip: "Italic", + type: ej.Ribbon.Type.ToggleButton, + toggleButtonSettings: { + contentType: ej.ContentType.ImageOnly, + defaultText: "Italic", + activeText: "Italic", + click: "onClick", + defaultPrefixIcon: "e-icon e-ribbon e-ribbonitalic", + activePrefixIcon: "e-icon e-ribbon e-ribbonitalic" + } + }, + { + id: "underline", + text: "Underline", + toolTip: "Underline", + type: ej.Ribbon.Type.ToggleButton, + toggleButtonSettings: { + contentType: ej.ContentType.ImageOnly, + defaultText: "Underline", + activeText: "Underline", + click: "onClick", + defaultPrefixIcon: "e-icon e-ribbon e-ribbonunderline", + activePrefixIcon: "e-icon e-ribbon e-ribbonunderline" + } + }, + { + id: "strikethrough", + text: "strikethrough", + toolTip: "Strikethrough", + type: ej.Ribbon.Type.ToggleButton, + toggleButtonSettings: { + contentType: ej.ContentType.ImageOnly, + defaultText: "Strikethrough", + activeText: "Strikethrough", + click: "onClick", + defaultPrefixIcon: "e-icon e-ribbon strikethrough", + activePrefixIcon: "e-icon e-ribbon strikethrough" + } + }, + { + id: "superscript", + text: "superscript", + toolTip: "Superscript", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-superscripticon" + } + }, + { + id: "subscript", + text: "subscript", + toolTip: "Subscript", + enableSeparator: true, + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-subscripticon" + } + }, + { + id: "fontcolor", + text: "Font Color", + toolTip: "Font Color", + type: ej.Ribbon.Type.Custom, + contentID: "fontcolor" + }, + { + id: "fillcolor", + text: "Fill Color", + toolTip: "Fill Color", + type: ej.Ribbon.Type.Custom, + contentID: "fillcolor" + } + ], + defaults: { + isBig: false + } + }] + }, + { + text: "Alignment", alignType: ej.Ribbon.AlignType.Rows, content: [ + { + groups: [{ + id: "bullet", + text: "Bullet Format", + toolTip: "Bullets", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-bullet" + } + }, + { + id: "number", + text: "Number Format", + toolTip: "Numbering", + enableSeparator: true, + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-numbericon" + } + }, + { + id: "textindent", + text: "Indent", + toolTip: "Text Indent", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-indent" + } + }, + { + id: "textoudent", + text: "Outdent", + toolTip: "Text Outdent", + enableSeparator: true, + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-outdent" + } + }, + { + id: "sortascending", + text: "Sort", + toolTip: "Sort", + enableSeparator: true, + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-sort" + } + }, + { + id: "border", + text: "Border", + toolTip: "Border", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-border" + } + }], + defaults: { + type: "button", + isBig: false + } + }, + { + groups: [{ + id: "alignleft", + text: "JustifyLeft", + toolTip: "Align Left", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon alignleft" + } + }, + { + id: "aligncenter", + text: "JustifyCenter", + toolTip: "Align Center", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon aligncenter" + } + }, + { + id: "alignright", + text: "JustifyRight", + toolTip: "Align Right", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon alignright" + } + }, + { + id: "justify", + text: "JustifyFull", + toolTip: "Justify", + enableSeparator: true, + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon justify" + } + }, + { + id: "uppercase", + text: "Upper Case", + toolTip: "Upper Case", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-uppercase" + } + }, + { + id: "lowercase", + text: "Lower Case", + toolTip: "Lower Case", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.ImageOnly, + prefixIcon: "e-icon e-ribbon e-lowercase" + } + }], + defaults: { + type: "button", + isBig: false + } + }] + }, + { + text: "Actions", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "undo", + text: "Undo", + toolTip: "Undo", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-undo" + } + }, + { + id: "redo", + text: "Redo", + toolTip: "Redo", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-redo" + } + } + ], + defaults: { + type: "button", + width: 40, + height: 70 + } + }] + }, + { + text: "View", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "zoomin", + text: "Zoom In", + toolTip: "Zoom In", + buttonSettings: { + width: 58, + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-zoomin" + } + }, + { + id: "zoomout", + text: "Zoom Out", + toolTip: "Zoom Out", + buttonSettings: { + width: 70, + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-zoomout" + } + }, + { + id: "fullscreen", + text: "Full Screen", + toolTip: "Full Screen", + buttonSettings: { + width: 73, + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-fullscreen" + } + } + ], + defaults: { + type: "button", + height: 70 + } + }] + }] + },{ + id: "insert", text: "INSERT", groups: [{ + text: "Tables", alignType: ej.Ribbon.AlignType.Columns, content: [{ + groups: [{ + id: "tables", + text: "Tables", + toolTip: "Tables", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-table" + } + } + ], + defaults: { + type: "button", + width: 50, + height: 70 + } + }] + }, + { + text: "Illustrations", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "pictures", + text: "Pictures", + toolTip: "Pictures", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-picture" + } + }, + { + id: "videos", + text: "Videos", + toolTip: "Videos", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-video" + } + }, + { + id: "shapes", + text: "Shapes", + toolTip: "Shapes", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-shape" + } + }, + { + id: "charts", + text: "Charts", + toolTip: "Charts", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-chart" + } + } + ], + defaults: { + type: "button", + width: 56, + height: 70 + } + }] + }, + { + text: "Comments", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "comments", + text: "Comments", + toolTip: "Comments", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-comment" + } + } + ], + defaults: { + type: "button", + width: 70, + height: 70 + } + }] + }, + { + text: "Text", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "text", + text: "Text", + toolTip: "Text", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-text", + width: 50 + } + }, + { + id: "datetime", + text: "Date Time", + toolTip: "DateTime", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-datetimenew" + } + } + ], + defaults: { + type: "button", + width: 70, + height: 70 + } + }] + }, + { + text: "Hyperlink", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "hyperlink", + text: "Hyperlink", + toolTip: "Hyperlink", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-hyperlink" + } + } + ], + defaults: { + type: "button", + width: 70, + height: 70 + } + }] + }, + { + text: "Equation", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "equation", + text: "Equation", + toolTip: "Equation", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-equation" + } + } + ], + defaults: { + type: "button", + width: 60, + height: 70 + } + }] + }, + { + text: "Print Layout", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "printlayout", + text: "Print Layout", + toolTip: "Print Layout", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-printlayout" + } + } + ], + defaults: { + type: "button", + width: 80, + height: 70 + } + }] + }, + { + text: "Save", alignType: ej.Ribbon.AlignType.Rows, content: [{ + groups: [{ + id: "print", + text: "Print", + toolTip: "Print", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-print" + } + }, + { + id: "save", + text: "Save", + toolTip: "Save", + buttonSettings: { + click: "onClick", + contentType: ej.ContentType.TextAndImage, + imagePosition: ej.ImagePosition.ImageTop, + prefixIcon: "e-icon e-ribbon e-save" + } + } + ], + defaults: { + type: "button", + width: 50, + height: 70 + } + }] + } + ] + } + ], + create: function createControl(args) { + var ribbon = $("#defaultRibbon").data("ejRibbon"); + $("#fontcolor").ejColorPicker({ value: "#FFFF00", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fontcoloricon", select: colorHandler }); + $("#fillcolor").ejColorPicker({ value: "#FF0000", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fillcoloricon", select: colorHandler }); + } + }); + }); +} +function colorHandler(args:any) { + (this._id.indexOf("fillcolor") != -1) ? $("#contenteditor").css('background-color', args.value) : document.execCommand('forecolor', false, args.value); +} +function onClick(args) { + var val, prop = args.text; + val = (ej.isNullOrUndefined(args.model.text)) ? args.model.activeText : args.model.text; + if (action1.indexOf(val) != -1) + $("#contenteditor").empty(); + else if (action2.indexOf(val) != -1) + document.execCommand(val, false, null); + else if (fontfamily.indexOf(prop) != -1) + document.execCommand("FontName", false, prop); + else if (fontsize.indexOf(prop) != -1) + document.execCommand("FontSize", false, prop.replace("pt", "")); + else + $("#contenteditor").append("

Action: " + val + " Triggered

"); +} + + + + + + +module RotatorComponent { + $(function () { + var rotatorInstance = new ej.Rotator($("#sliderContent"), { + slideWidth: "100%", + frameSpace: "0px", + slideHeight: "auto", + displayItemsCount: "1", + navigateSteps: "1", + pagerPosition:"outside", + orientation: "horizontal", + showPager: true, + enabled: true, + showCaption: true, + allowKeyboardNavigation: true, + showPlayButton: true, + isResponsive:true, + animationType: "slide", + }); + }); +} + + + +module RTEComponent { + $(function () { + var sample = new ej.RTE($("#rteSample"),{ + width: "100%", + minWidth: "150px", + showFooter: true, + showHtmlSource: true, + allowEditing: true, + allowKeyboardNavigation: true, + autoFocus: true, + autoHeight: true, + colorPaletteColumns: 10, + colorPaletteRows: 5, + cssClass: 'gradient-lime', + enableResize: true, + enableTabKeyNavigation: true, + fileBrowser: { + filePath: (window).baseurl + "Content/FileBrowser/", + extensionAllow: "*.png, *.doc, *.pdf, *.txt, *.docx", + ajaxAction: (window).baseurl + "api/FileExplorer/FileOperations" + }, + imageBrowser: { + filePath: (window).baseurl + "Content/FileBrowser/", + extensionAllow: "*.png, *.gif, *.jpg, *.jpeg, *.docx", + ajaxAction: (window).baseurl + "api/FileExplorer/FileOperations" + }, + isResponsive: true, + showClearAll: true, + showClearFormat: true, + showDimensions: true, + showCharCount: true, + tools: { + formatStyle: ["format"], + edit: ["findAndReplace"], + font: ["fontName", "fontSize", "fontColor", "backgroundColor"], + style: ["bold", "italic", "underline", "strikethrough"], + alignment: ["justifyLeft", "justifyCenter", "justifyRight", "justifyFull"], + lists: ["unorderedList", "orderedList"], + clipboard: ["cut", "copy", "paste"], + doAction: ["undo", "redo"], + indenting: ["outdent", "indent"], + clear: ["clearFormat", "clearAll"], + links: ["createLink", "removeLink"], + images: ["image"], + media: ["video"], + tables: ["createTable", "addRowAbove", "addRowBelow", "addColumnLeft", "addColumnRight", "deleteRow", "deleteColumn", "deleteTable"], + effects: ["superscript", "subscript"], + casing: ["upperCase", "lowerCase"], + view: ["fullScreen", "zoomIn", "zoomOut"], + print: ["print"], + customUnorderedList: [{ + name: "unOrderInsert", + tooltip: "Custom UnOrderList", + css: "e-rte-toolbar-icon e-rte-unlistitems customUnOrder", + text: "Smiley", + listImage: "url('../content/images/rte/Smiley-GIF.gif')" + }], + customOrderedList: [{ + name: "orderInsert", + tooltip: "Custom OrderList", + css: "e-rte-toolbar-icon e-rte-listitems customOrder", + text: "Lower-Greek", + listStyle: "lower-greek" + }] + } + }); + }); + +} + + + +module ScheduleComponent { + $(function () { + var sample = new ej.Schedule($("#Schedule1"), { + width: "100%", + height: "525px", + currentDate: new Date(2017, 5, 5), + timeScale: { + minorSlotCount: 4, + majorSlot: 60 + }, + contextMenuSettings: { + enable: true, + menuItems: { + appointment: [ + { id: "open", text: "Open Appointment" }, + { id: "delete", text: "Delete Appointment" }, + { id: "customMenu3", text: "Menu Item 3" }, + { id: "customMenu4", text: "Menu Item 4" } + ], + cells: [ + { id: "new", text: "New Appointment" }, + { id: "recurrence", text: "New Recurring Appointment" }, + { id: "today", text: "Today" }, + { id: "gotodate", text: "Go to date" }, + { id: "settings", text: "Settings" }, + { id: "view", text: "View", parentId: "settings" }, + { id: "timemode", text: "TimeMode", parentId: "settings" }, + { id: "view_Day", text: "Day", parentId: "view" }, + { id: "view_Week", text: "Week", parentId: "view" }, + { id: "view_Workweek", text: "Workweek", parentId: "view" }, + { id: "view_Month", text: "Month", parentId: "view" }, + { id: "timemode_Hour12", text: "12 Hours", parentId: "timemode" }, + { id: "timemode_Hour24", text: "24 Hours", parentId: "timemode" }, + { id: "workhours", text: "Work Hours", parentId: "settings" }, + { id: "customMenu1", text: "Menu Item 1" }, + { id: "customMenu2", text: "Menu Item 2" } + ] + } + }, + resources: [{ + field: "ownerId", + title: "Owner", + name: "Owners", allowMultiple: true, + resourceSettings: { + dataSource: [ + { text: "Nancy", id: 1, groupId: 1, color: "#f8a398" }, + { text: "Steven", id: 3, groupId: 2, color: "#56ca85" }, + { text: "Michael", id: 5, groupId: 1, color: "#51a0ed" } + ], + text: "text", id: "id", groupId: "groupId", color: "color" + } + }], + appointmentSettings: { + dataSource: new ej.DataManager((window).ResourcesData).executeLocal(new ej.Query().take(10)), + id: "Id", + subject: "Subject", + startTime: "StartTime", + endTime: "EndTime", + description: "Description", + allDay: "AllDay", + recurrence: "Recurrence", + recurrenceRule: "RecurrenceRule", + resourceFields: "ownerId" + } + }); + }); +} + + + +module ScrollerComponent { + $(function () { + var scrollerSample = new ej.Scroller($("#scrollcontent"), { + height: "300px", + width: "100%" + }); + $(window).bind('resize', function () { + scrollerSample.refresh(); + }); + }); +} + + + +module SignatureComponent { + $(function () { + var basicSignature = new ej.Signature($("#signature"), { + height: "400px", + isResponsive: true, + strokeWidth: 3 + }); + }); +} + + + + +module SliderComponent { + $(function () { + var slider = new ej.Slider($("#minSlider"), { + sliderType: "MinRange", + value: 60, + minValue: 0, + maxValue: 100 + }); + var rangeslider = new ej.Slider($("#rangeSlider"), { + sliderType: "Range", + values: [30, 60], + minValue: 0 + }); + + }); +} + + + + + + +module linesparkline { + $(function () { + + var sparklinesample = new ej.Sparkline($("#line"), { + dataSource: [12, 14, 11, 12, 11, 15, 12, 10, 11, 12, 15, 13, 12, 11, 10, 13, 15, 12, 14, 16, 14, 12, 11], + tooltip: { + visible: true, + font: { size:"12px" } + }, + type: "line", + size: { height: "40", width:"170" }, + }); + }); +} + +module columnsparkline { + $(function () { + var sparkcolumnsample = new ej.Sparkline($("#column"), { + dataSource: [2, 6, -1, 1, 12, 5, -2, 7, -3, 5, 8, 10,], + negativePointColor: "red", + highPointColor: "blue", + tooltip: { + visible: true, + font: { + size: "12px", + } + }, + type: "column", + size: { height: "100", width: "150" }, + }); + }); +} + +module areasparkline { + $(function () { + var sparkareasample = new ej.Sparkline($("#area"), { + dataSource: [12, -10, 11, 8, 17, 6, 2, -17, 13, -6, 8, 10,], + markerSettings: { visible: true }, + highPointColor: "blue", + lowPointColor: "orange", + type: "area", + opacity: 0.5, + tooltip: { + visible: true, + font: { + size: "12px", + } + }, + size: { height: "100", width: "150" }, + }); + }); +} + +module windlosssparkline { + $(function () { + var sparkwinlosssample = new ej.Sparkline($("#winloss"), { + dataSource: [12, 15, -11, 13, 17, 0, -12, 17, 13, -15, 8, 10,], + type: "winloss", + size: { height: "100", width: "150" }, + }); + }); +} + +module piesparkline1 { + $(function () { + var sparkpiesample1 = new ej.Sparkline($("#pie1"), { + dataSource: [4, 6, 7], + type: "pie", + tooltip: { + visible: true, + font: { + size: "12px", + } + }, + size: { height: "40", width: "40" }, + }); + }); +} + +module piesparkline2 { + $(function () { + var sparkpiesample2 = new ej.Sparkline($("#pie2"), { + dataSource: [8, 9, 1,], + type: "pie", + tooltip: { + visible: true, + font: { + size: "12px", + } + }, + size: { height: "40", width: "40" }, + }); + }); +} + +module piesparkline3 { + $(function () { + var sparkpiesample3 = new ej.Sparkline($("#pie3"), { + dataSource: [2, 3, 5], + type: "pie", + tooltip: { + visible: true, + font: { + size: "12px", + } + }, + size: { height: "40", width: "40" }, + }); + }); +} + +module piesparkline4 { + $(function () { + var sparkpiesample4 = new ej.Sparkline($("#pie4"), { + dataSource: [10, 12, 11], + type: "pie", + tooltip: { + visible: true, + font: { + size: "12px", + } + }, + size: { height: "40", width: "40" }, + }); + }); +} + + + + + + +module SplitterComponent { + $(function () { + var splitterInstance = new ej.Splitter($("#outterSpliter"), { + height: "250px", + width: "50%", + orientation: ej.Orientation.Vertical, + properties: [{}, { paneSize: 80 }], + isResponsive:true + }); + var splitterInstance1 = new ej.Splitter($("#innerSpliter"), { + isResponsive:true, + }); + }); +} + + + +module SpreadsheetComponent { +$(function () { + var sample = new ej.Spreadsheet($("#basicSpreadsheet"), { + scrollSettings: { + height: 550, + }, + importSettings: { + importMapper: (window).baseurl + "api/Spreadsheet/Import" + }, + exportSettings: { + excelUrl: (window).baseurl + "api/Spreadsheet/ExcelExport", + csvUrl: (window).baseurl + "api/Spreadsheet/CsvExport", + pdfUrl: (window).baseurl + "api/Spreadsheet/PdfExport" + }, + sheets: [{ rangeSettings: [{ dataSource: (window).defaultData, startCell: "A1" }] }], + loadComplete: () => { + var spreadsheet = $("#basicSpreadsheet").data("ejSpreadsheet"), xlFormat = spreadsheet.XLFormat; + if (!(spreadsheet).isImport) { + spreadsheet.setWidthToColumns([140, 128, 105, 100, 100, 110, 120, 120, 100]); + xlFormat.format({ "style": { "font-weight": "bold" } }, "A1:H1"); + xlFormat.format({ "type": "currency" }, "E2:H11"); + spreadsheet.XLRibbon.updateRibbonIcons(); + }} + }); + }); +} + + + + +var default_data: Array = [ + { Category : "Employees", Country : "USA", JobDescription : "Sales", JobGroup:"Executive", EmployeesCount : 50 }, + { Category : "Employees", Country : "USA", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 }, + { Category : "Employees", Country : "USA", JobDescription : "Marketing", EmployeesCount : 40 }, + { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 55 }, + { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 175}, + { Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 70 }, + { Category : "Employees", Country : "USA", JobDescription : "Management", EmployeesCount : 40 }, + { Category : "Employees", Country : "USA", JobDescription : "Accounts", EmployeesCount : 60 }, + + { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 43 }, + { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 125}, + { Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 60 }, + { Category : "Employees", Country : "India", JobDescription : "HR Executives", EmployeesCount : 70 }, + { Category : "Employees", Country : "India", JobDescription : "Accounts", EmployeesCount : 45 }, + + { Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Executive", EmployeesCount : 30 }, + { Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 }, + { Category : "Employees", Country : "Germany", JobDescription : "Marketing", EmployeesCount : 50 }, + { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 }, + { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 }, + { Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 }, + { Category : "Employees", Country : "Germany", JobDescription : "Management", EmployeesCount : 33 }, + { Category : "Employees", Country : "Germany", JobDescription : "Accounts", EmployeesCount : 55 }, + + { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 45 }, + { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 96 }, + { Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 55 }, + { Category : "Employees", Country : "UK", JobDescription : "HR Executives", EmployeesCount : 60 }, + { Category : "Employees", Country : "UK", JobDescription: "Accounts", EmployeesCount: 30 }, + + { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 }, + { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 }, + { Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 }, + { Category : "Employees", Country : "France", JobDescription: "Marketing", EmployeesCount: 50 } +]; + +module sunburstcomponent { + $(function () { + var sunburstsample = new ej.SunburstChart($("#Sunburst"), { + valueMemberPath: "EmployeesCount", + levels: [ + {groupMemberPath: "Country"}, + {groupMemberPath: "JobDescription"}, + {groupMemberPath: "JobGroup"}, + {groupMemberPath: "JobRole"} + ], + dataSource: default_data, + dataLabelSettings:{visible:true}, + tooltip:{visible:false}, + enableAnimation:false, + size:{height:"600"}, + innerRadius:0.2, + title:{text:"Employees Count"}, + zoomSettings:{enable:false}, + legend:{visible:true,position:'top'} + }); + }); +} + + + + +module TabComponent { + $(function () { + var sample = new ej.Tab($("#defaultTab"),{ + width: "500px", + collapsible: true, + events: "click", + heightAdjustMode: ej.Tab.HeightAdjustMode.Content, + showCloseButton: true, + showRoundedCorner: false + }); + }); +} + + + +module TagCloudComponent { + + + var websiteCollection = [ + { text: "Google", url: "http://www.google.com", frequency: 12 }, + { text: "All Things Digital", url: "http://allthingsd.com/", frequency: 3 }, + { text: "Arts Technica", url: "http://arstechnica.com/", frequency: 8 }, + { text: "Business Week", url: "http://www.businessweek.com/", frequency: 2 }, + { text: "Yahoo", url: "http://in.yahoo.com/", frequency: 12 }, + { text: "Center Networks", url: "http://www.centernetworks.com/", frequency: 5 }, + { text: "Crave", url: "http://news.cnet.com/crave/", frequency: 8 }, + { text: "Crunch Gear", url: "http://techcrunch.com/gadgets/", frequency: 20 }, + { text: "Daily Tech", url: "http://www.dailytech.com/", frequency: 1 }, + { text: "Electronista", url: "http://www.electronista.com/", frequency: 3 }, + { text: "Engadget", url: "http://www.engadget.com/", frequency: 5 }, + { text: "Gearlog", url: "http://www.gearlog.com/", frequency: 9 }, + { text: "Information Week", url: "http://www.informationweek.com/", frequency: 0 }, + { text: "PCWorld", url: "http://www.pcworld.com/", frequency: 11 }, + { text: "Tech Republic", url: "http://techrepublic.com/", frequency: 3 }, + { text: "Valleywag", url: "http://valleywag.gawker.com/", frequency: 6 }, + { text: "Rediff", url: "http://in.rediff.com/", frequency: 9 }, + { text: "WebProNews", url: "http://www.webpronews.com/", frequency: 2 } + ]; + + $(function () { + var sample = new ej.TagCloud($("#techWebList"), { + titleText: "Tech Sites", + dataSource: websiteCollection, + cssClass: "gradient-lime", + fields: { + text: "text", url: "url", frequency: "frequency" + } + }); + + }); +} + + + +module EditorComponent { + $(function () { + var num = new ej.NumericTextbox($("#numeric"), { + value: 30, + minValue: 1, + maxValue: 100, + name: "numeric", + width: "100%" + }); + var per = new ej.PercentageTextbox($("#percent"), { + value: 60, + minValue: 10, + maxValue: 1000, + name: "percent", + width: "100%" + }); + var cur = new ej.CurrencyTextbox($("#currency"), { + value: 100, + minValue: 10, + maxValue: 1000, + name: "currency", + width: "100%" + }); + var mask = new ej.MaskEdit($("#maskedit"), { + name: "mask", + value: "4242422424", + maskFormat: "99 999-99999", + width: "100%" + }) + }); +} + + + + + +module TileViewComponent { + $(function () { + var tile1 = new ej.Tile($("#tile1"), { + imagePosition:"fill", + caption:{text:"People"}, + tileSize:"medium", + imageUrl:'content/images/tile/windows/people_1.png' + }); + var tile2 = new ej.Tile($("#tile2"), { + imagePosition:"center", + tileSize:"small", + imageUrl:'content/images/tile/windows/alerts.png', + + }); + var tile3 = new ej.Tile($("#tile3"), { + imagePosition:"center", + tileSize:"small", + imageUrl:'content/images/tile/windows/bing.png', + }); + var tile4 = new ej.Tile($("#tile4"), { + tileSize:"small", + imageUrl:'content/images/tile/windows/camera.png', + }); + var tile5 = new ej.Tile($("#tile5"), { + imagePosition:"center", + tileSize:"small", + imageUrl:'content/images/tile/windows/messages.png', + }); + var tile6 = new ej.Tile($("#tile6"), { + imagePosition:"center", + tileSize:"medium", + imageUrl:'content/images/tile/windows/games.png', + caption:{text:"Play"} + }); + var tile7 = new ej.Tile($("#tile7"), { + tileSize:"medium", + imageUrl:'content/images/tile/windows/map.png', + caption:{text:"Maps"} + }); + var tile8 = new ej.Tile($("#tile8"), { + imagePosition:"fill", + tileSize:"wide", + imageUrl:'content/images/tile/windows/sports.png', + caption:{text:"Sports"} + }); + var tile9 = new ej.Tile($("#tile9"), { + imagePosition:"fill", + tileSize:"medium", + imageUrl:'content/images/tile/windows/people_2.png', + caption:{text:"People"} + }); + var tile10 = new ej.Tile($("#tile10"), { + imagePosition:"center", + tileSize:"medium", + imageUrl:'content/images/tile/windows/pictures.png', + caption:{text:"Photo"} + }); + var tile11 = new ej.Tile($("#tile11"), { + imagePosition:"center", + tileSize:"wide", + imageUrl:'content/images/tile/windows/weather.png', + caption:{text:"Weather"} + }); + var tile12 = new ej.Tile($("#tile12"), { + imagePosition:"center", + tileSize:"medium", + imageUrl:'content/images/tile/windows/music.png', + caption:{text:"Music"} + }); + var tile13 = new ej.Tile($("#tile13"), { + imagePosition:"center", + tileSize:"medium", + imageUrl:'content/images/tile/windows/favs.png', + caption:{text:"Favorites"} + }); + }); +} + + + +module TimePickerComponent { + $(function () { + var timeSample = new ej.TimePicker($("#timepick"), { + width: "100%" + }); + }); +} + + + + +module ToolbarComponent { + + $(function () { + var sample = new ej.Toolbar($("#editingToolbar"),{ + width: "100%", + cssClass: "gradient-lime", + enableSeparator: true, + + isResponsive: true, + orientation: ej.Orientation.Horizontal, + showRoundedCorner: true + }); + }); + +} + + + + +module TooltipComponent { + + $(function () { + + var sample1 = new ej.Tooltip($("#link1"),{ + content: "ECMAScript (or ES) is a trademarked scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262.", + associate: "mousefollow", + autoCloseTimeout: 5000, + collision: "fit", + containment: ".frame", + showRoundedCorner: true, + showShadow: true + }); + + var sample2 = new ej.Tooltip($("#link2"),{ + content: "The World Wide Web (WWW) is an information space where documents and other web resources are identified by URLs, interlinked by hypertext links, and can be accessed via the Internet.", + position: { + stem: { + horizontal: "right", + vertical: "center" + }, + target: { + horizontal: "left", + vertical: "center" + } + }, + autoCloseTimeout: 5000, + collision: "fit", + containment: ".frame", + showRoundedCorner: true, + showShadow: true + }); + + var sample3 = new ej.Tooltip($("#link3"),{ + content: 'Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic.', + position: { + stem: { + horizontal: "right", + vertical: "center" + }, + target: { + horizontal: "left", + vertical: "center", + }, + }, + associate: "mousefollow", + autoCloseTimeout: 5000, + collision: "fit", + containment: ".frame", + showRoundedCorner: true, + showShadow: true + }); + }); +} + + + +module TreeGridComponent { + $(function () { + var treegridInstance = new ej.TreeGrid($("#TreeGridContainer"), { + dataSource: (window).treeGridData, + childMapping: "subtasks", + allowSorting: true, + allowMultiSorting: true, + enableAltRow: true, + allowFiltering: true, + treeColumnIndex: 1, + allowKeyboardNavigation: true, + showColumnChooser: true, + showColumnOptions: true, + contextMenuSettings: { + showContextMenu: true, + contextMenuItems: ["add", "edit", "delete"] + }, + columnDialogFields: ["field", "headerText", "editType", "width", "visible", "allowSorting", "textAlign", "headerTextAlign"], + editSettings: { + allowAdding: true, + allowEditing: true, + allowDeleting: true, + editMode: "cellEditing", + rowPosition: "belowSelectedRow" + }, + toolbarSettings: { + showToolbar: true, + toolbarItems: ["add","edit","delete","update","cancel","expandAll","collapseAll"] + }, + columns: [ + { field: "taskID", headerText: "Task Id", allowFiltering: false, editType: "numericedit", filterEditType: "numericedit" }, + { field: "taskName", headerText: "Task Name", editType: "stringedit", filterEditType: "stringedit" }, + { field: "startDate", headerText: "Start Date", editType: "datepicker", filterEditType: "datepicker", format:"{0:MM/dd/yyyy}" }, + { field: "endDate", headerText: "End Date", editType: "datepicker", filterEditType: "datepicker", format:"{0:MM/dd/yyyy}" }, + { field: "progress", headerText: "Progress", editType: "numericedit", filterEditType: "numericedit" } + ], + isResponsive: true, + }); +}); +} + + + + +var population_data: Array = [ + { Continent: "Asia", Country: "Indonesia", Growth: 3, Population: 237641326 }, + { Continent: "Asia", Country: "Russia", Growth: 2, Population: 152518015 }, + { Continent: "Asia", Country: "Malaysia", Growth: 1, Population: 29672000 }, + { Continent: "North America", Country: "United States", Growth: 4, Population: 315645000 }, + { Continent: "North America", Country: "Mexico", Growth: 2, Population: 112336538 }, + { Continent: "North America", Country: "Canada", Growth: 1, Population: 39056064 }, + { Continent: "South America", Country: "Colombia", Growth: 1, Population: 47000000 }, + { Continent: "South America", Country: "Brazil", Growth: 3, Population: 193946886 }, + { Continent: "Africa", Country: "Nigeria", Growth: 2, Population: 170901000 }, + { Continent: "Africa", Country: "Egypt", Growth: 1, Population: 83661000 }, + { Continent: "Europe", Country: "Germany", Growth: 1, Population: 81993000 }, + { Continent: "Europe", Country: "France", Growth: 1, Population: 65605000 }, + { Continent: "Europe", Country: "UK", Growth: 1, Population: 63181775 } +]; + +module treemapcomponent { + $(function () { + var treemapsample = new ej.datavisualization.TreeMap($("#treemap"), { + leafItemSettings: { showLabels: true, labelPath: "Country" }, + rangeColorMapping: [ + { color: "#77D8D8", legendLabel: "1% Growth", from: 0, to: 1 }, + { color: "#AED960", from: 0, legendLabel: "2% Growth", to: 2 }, + { color: "#FFAF51", from: 0, legendLabel: "3% Growth", to: 3 }, + { color: "#F3D240", from: 0, legendLabel: "4% Growth", to: 4 } + ], + levels: [ + { groupPath: "Continent", groupGap: 5, headerHeight: 25, showHeader: true, headerTemplate: 'headertemplate' } + ], + dataSource: population_data, + colorValuePath: "Growth", + weightValuePath: "Population", + borderThickness: 0, + showLegend: true + }); + }); +} + + + + + +module TreeViewComponent { + $(function () { + var tree = new ej.TreeView($("#treeView"), { + allowEditing: true, + allowDragAndDrop: true, + allowDropChild: true, + allowDropSibling: true, + }); + }); +} + + + + +module UploadboxComponent { + + $(function () { + var sample = new ej.Uploadbox($("#UploadDefault"),{ + saveUrl: (window).baseurl + "api/uploadbox/Save", + removeUrl: (window).baseurl + "api/uploadbox/Remove", + buttonText: { + browse: "Choose File", upload: "Upload", cancel: "Cancel" + }, + cssClass: "gradient- purple", + dialogAction: { + modal: false, closeOnComplete: false, drag: true + }, + extensionsAllow: ".zip", + multipleFilesSelection: true, + showFileDetails: true + }); + }); + +} + + + + +module WaitingPopupComponent { + $(function () { + var sample = new ej.WaitingPopup($("#target"),{ + showOnInit: true, + showImage: true, + text: 'waiting…', + target: "#target", + appendTo: "#waiting" + }); + }); + +} diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts index 4dfe069d73..07b0bc1258 100644 --- a/types/ej.web.all/index.d.ts +++ b/types/ej.web.all/index.d.ts @@ -1,14 +1,13 @@ -// Type definitions for ej.web.all 15.3 +// Type definitions for ej.web.all 15.3.29 // Project: http://help.syncfusion.com/js/typescript // Definitions by: Syncfusion // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 /// /*! * filename: ej.web.all.d.ts -* version : 15.3.0.26 +* version : 15.3.0.29 * Copyright Syncfusion Inc. 2001 - 2017. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing @@ -7732,7 +7731,7 @@ declare namespace ej { */ enableRTL?: boolean; - /** The CSS class name to display the favicon in the dialog header. In order to display favicon, you need to set "showHeader" as true since the favicon will be displayed in the dialog + /** The CSS class name to display the favicon in the dialog header. In order to display favicon, you need to set showHeader as true since the favicon will be displayed in the dialog * header. */ faviconCSS?: string; @@ -16048,7 +16047,7 @@ declare namespace ej { */ autoHeight?: boolean; - /** This API holds configuration setting for paste clenaup behavior. + /** This API holds configuration setting for paste cleanup behavior. * @Default {{ listConversion: false, cleanCSS: false, removeStyles: false, cleanElements: false }} */ pasteCleanupSettings?: PasteCleanupSettings; @@ -27283,7 +27282,7 @@ declare namespace ej { */ format?: string; - /** Sets the opacity of the dispalyed tooltip + /** Sets the opacity of the displayed tooltip * @Default {0.95} */ opacity?: number; @@ -27949,6 +27948,11 @@ declare namespace ej { */ refreshControl(): void; + /** This function Destroy the PivotGrid widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** This function returns the height of all rows and width each and every column. * @returns {any} */ @@ -27957,7 +27961,7 @@ declare namespace ej { /** This function creates the conditional formatting dialog to apply conditional formatting for PivotGrid control. * @returns {void} */ - createConditionalDialog(): void; + openConditionalFormattingDialog(): void; /** This function saves the current report to the database/local storage. * @returns {void} @@ -28163,11 +28167,16 @@ declare namespace ej { */ enableColumnResizing?: boolean; - /** Allows the user to fit the width of the columns based on its content. This is only applicable for enableColumnResizing option. + /** Allows the user to fit the width of the column based on its maximum text width. * @Default {false} */ resizeColumnsToFit?: boolean; + /** Allows the user to enable/disable the context menu of Pivot buttons in the PivotGrid. + * @Default {false} + */ + enableContextMenu?: boolean; + /** Allows the user to view large amount of data through virtual scrolling. * @Default {false} */ @@ -28616,14 +28625,6 @@ declare namespace ej { values?: any[]; } - export interface DataSourceColumnsGroupByDate { - - /** Contains the collection of formatString to group item from the field. - * @Default {[]} - */ - interval?: any[]; - } - export interface DataSourceColumn { /** Allows the user to bind the item by using its unique name as field name. @@ -28679,11 +28680,6 @@ declare namespace ej { * @Default {null} */ filterItems?: DataSourceColumnsFilterItems; - - /** Allows the user to group the field by date. This is applicable only when the format is set as "date". - * @Default {{}} - */ - groupByDate?: DataSourceColumnsGroupByDate; } export interface DataSourceRowsAdvancedFilter { @@ -28728,14 +28724,6 @@ declare namespace ej { values?: any[]; } - export interface DataSourceRowsGroupByDate { - - /** Contains the collection of formatString to group item from the field. - * @Default {[]} - */ - interval?: any[]; - } - export interface DataSourceRow { /** Allows the user to bind the item by using its unique name as field name. @@ -28791,11 +28779,6 @@ declare namespace ej { * @Default {null} */ filterItems?: DataSourceRowsFilterItems; - - /** Allows the user to group the field by date. This is applicable only when the format is set as "date". - * @Default {{}} - */ - groupByDate?: DataSourceRowsGroupByDate; } export interface DataSourceValuesMeasure { @@ -29128,6 +29111,16 @@ declare namespace ej { */ drillThroughDataTable?: string; + /** Allows the user to set the custom name for the service method responsible for performing value sorting operation in PivotGrid. + * @Default {ValueSorting} + */ + valueSorting?: string; + + /** Allows the user to set the custom name for the service method responsible for removing pivot button from GroupingBar/Field List. + * @Default {RemoveButton} + */ + removeButton?: string; + /** Allows the user to set the custom name for the service method responsible for write-back operation in OLAP Cube. This is only applicable in server-side component. * @Default {WriteBack} */ @@ -29215,6 +29208,11 @@ declare namespace ej { * @returns {void} */ refreshControl(): void; + + /** This function Destroy the PivotSchemaDesigner widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; } export namespace PivotSchemaDesigner { @@ -29269,7 +29267,7 @@ declare namespace ej { /** Allows the user to set custom name for the methods at service-end, communicated during AJAX post. * @Default {{}} */ - serviceMethod?: ServiceMethod; + serviceMethods?: any; /** Connects the service using the specified URL for any server updates. * @Default {“”} @@ -29372,39 +29370,6 @@ declare namespace ej { showNamedSets?: boolean; } - export interface ServiceMethod { - - /** Allows the user to set the custom name for the service method responsible for getting the values for the tree-view inside filter dialog. - * @Default {FetchMembers} - */ - fetchMembers?: string; - - /** Allows the user to set the custom name for the service method responsible for filtering operation in Field List. - * @Default {Filtering} - */ - filtering?: string; - - /** Allows the user to set the custom name for the service method responsible for the server-side action, on expanding members in Field List. - * @Default {MemberExpanded} - */ - memberExpand?: string; - - /** Allows the user to set the custom name for the service method responsible for the server-side action, on dropping a node into Field List. - * @Default {NodeDropped} - */ - nodeDropped?: string; - - /** Allows the user to set the custom name for the service method responsible for the server-side action on changing the checked state of a node in Field List. - * @Default {NodeStateModified} - */ - nodeStateModified?: string; - - /** Allows the user to set the custom name for the service method responsible for button removing operation in Field List. - * @Default {RemoveButton} - */ - removeButton?: string; - } - enum Layouts { ///To set the layout as same in the Excel. @@ -29552,6 +29517,11 @@ declare namespace ej { */ refreshControl(): void; + /** This function Destroy the PivotChart widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** Renders the control with the pivot engine obtained from olap cube. * @returns {void} */ @@ -29648,6 +29618,11 @@ declare namespace ej { */ rotation?: number; + /** Allows the user to enable/disable the context menu options in the PivotChart. + * @Default {false} + */ + enableContextMenu?: boolean; + /** Allows the user to set custom name for the methods at service-end, communicated on AJAX post. * @Default {{}} */ @@ -29675,6 +29650,10 @@ declare namespace ej { */ beforeServiceInvoke?(e: BeforeServiceInvokeEventArgs): void; + /** Triggers before Pivot Engine starts to populate. + */ + beforePivotEnginePopulate?(e: BeforePivotEnginePopulateEventArgs): void; + /** Triggers on performing drill up/down in PivotChart control. */ drillSuccess?(e: DrillSuccessEventArgs): void; @@ -29741,6 +29720,13 @@ declare namespace ej { element?: any; } + export interface BeforePivotEnginePopulateEventArgs { + + /** returns the current instance of PivotChart. + */ + chartObj?: any; + } + export interface DrillSuccessEventArgs { /** returns the current instance of PivotChart. @@ -30132,6 +30118,16 @@ declare namespace ej { */ refreshControl(): void; + /** Returns the control tab string that displays currently in PivotClient. + * @returns {void} + */ + getActiveTab(): void; + + /** This function Destroy the PivotClient widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** Returns the OlapReport string maintained along with the axis elements information. * @returns {string} */ @@ -30186,6 +30182,11 @@ declare namespace ej { */ dataSource?: DataSource; + /** Enables the Drill-Through feature which retrieves the raw items that are used to create the specific cell in PivotGrid. + * @Default {false} + */ + enableDrillThrough?: boolean; + /** Allows the user to customize the widget's layout and appearance. * @Default {{}} */ @@ -30196,7 +30197,7 @@ declare namespace ej { */ toolbarIconSettings?: ToolbarIconSettings; - /** Allows user to show unique name on pivotbutton. + /** Allows user to show unique name on pivot button. * @Default {false} */ showUniqueNameOnPivotButton?: boolean; @@ -30276,6 +30277,11 @@ declare namespace ej { */ isResponsive?: boolean; + /** Options to customize the size of the PivotClient control. + * @Default {Example:} + */ + size?: any; + /** Allows the user to set the localized language for the widget. * @Default {en-US} */ @@ -30335,6 +30341,10 @@ declare namespace ej { */ treeMapLoad?(e: TreeMapLoadEventArgs): void; + /** Triggers while clicking value cells in PivotGrid. + */ + drillThrough?(e: DrillThroughEventArgs): void; + /** Triggers while we initiate loading of the widget. */ load?(e: LoadEventArgs): void; @@ -30463,6 +30473,17 @@ declare namespace ej { element?: any; } + export interface DrillThroughEventArgs { + + /** return the JSON records of the generated cells on drill-through operation. + */ + data?: any; + + /** returns the HTML element of PivotClient. + */ + element?: any; + } + export interface LoadEventArgs { /** returns the HTML element of PivotClient component. @@ -31013,6 +31034,16 @@ declare namespace ej { */ loadReport?: string; + /** Allows the user to set the custom name for the service method responsible for remove a report collection from the database. + * @Default {RemoveReportFromDB} + */ + removeDBReport?: string; + + /** Allows the user to set the custom name for the service method responsible for rename the report collection in the database. + * @Default {RenameReportInDB} + */ + renameDBReport?: string; + /** Allows the user to set the custom name for the service method responsible for retrieving the MDX query for the current report. * @Default {GetMDXQuery} */ @@ -31067,6 +31098,16 @@ declare namespace ej { * @Default {CalculatedMember} */ calculatedMember?: string; + + /** Allows the user to set the custom name for the service method responsible for performing drill through operation. + * @Default {DrillThroughHierarchies} + */ + drillThroughHierarchies?: string; + + /** Allows the user to set the custom name for the service method responsible for performing drill through operation in data table. + * @Default {DrillThroughDataTable} + */ + drillThroughDataTable?: string; } enum ClientExportMode { @@ -31143,6 +31184,11 @@ declare namespace ej { */ renderControlFromJSON(): void; + /** This function Destroy the PivotGauge widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** Returns the OlapReport string maintained along with the axis elements information. * @returns {string} */ @@ -31598,6 +31644,11 @@ declare namespace ej { */ doAjaxPost(): void; + /** Performs an asynchronous HTTP (FullPost) submit. + * @returns {void} + */ + doPostBack(): void; + /** Returns the OlapReport string maintained along with the axis elements information. * @returns {string} */ @@ -31632,6 +31683,11 @@ declare namespace ej { * @returns {void} */ renderControlSuccess(): void; + + /** This function Destroy the PivotTreemap widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; } export namespace PivotTreeMap { @@ -40686,6 +40742,8 @@ declare namespace ej { XLRibbon: Spreadsheet.XLRibbon; + XLScroll: Spreadsheet.XLScroll; + XLSearch: Spreadsheet.XLSearch; XLSelection: Spreadsheet.XLSelection; @@ -41339,6 +41397,15 @@ declare namespace ej { updateRibbonIcons(): void; } + export interface XLScroll { + + /** This method is used to scroll the sheet content to the specified cell address in the Spreadsheet. + * @param {string} Pass the cell address that you want to scroll to it. + * @returns {void} + */ + scrollToCell(range: string): void; + } + export interface XLSearch { /** This method is used to find and replace all data by workbook in the Spreadsheet. @@ -44481,7 +44548,7 @@ declare namespace ej { /** Returns the previous color of the signature. */ - perviousColor?: string; + previousColor?: string; /** Returns the current color of the signature. */ @@ -44841,6 +44908,12 @@ declare namespace ej { * @returns {any} */ addToDictionary(customWord: string): any; + + /** Retrieves the possible suggestion words for the error word passed as an argument. + * @param {string} Error word to get the suggestions + * @returns {any} + */ + getSuggestionWords(errorWord: string): any; } export namespace SpellCheck { @@ -44893,6 +44966,11 @@ declare namespace ej { */ controlsToValidate?: string; + /** When set to true, allows sending Asynchronous ajax request for checking the spelling errors. + * @Default {true} + */ + enableAsync?: boolean; + /** Triggers on the success of AJAX call request. */ actionSuccess?(e: ActionSuccessEventArgs): void; @@ -51357,7 +51435,7 @@ declare namespace ej.datavisualization { */ type?: string; - /** location - X and Y co-ordinate of the points with respect to chart area. axis - axis of the multilevellabels. multilevellabel - Multi level label details + /** location - X and Y co-ordinate of the points with respect to chart area. axis - axis of the multi level labels. multiLevelLabel - Multi level label details */ data?: any; } @@ -52537,7 +52615,7 @@ declare namespace ej.datavisualization { /** Specifies the type of the trendline for the series. * @Default {linear. See TrendlinesType} */ - type?: string; + type?: ej.datavisualization.Chart.TrendlinesType|string; /** Name for the trendlines that is to be displayed in the legend text. * @Default {trendline} @@ -52741,7 +52819,7 @@ declare namespace ej.datavisualization { */ dataSource?: any; - /** Specifies spline tension value for cardianal spline type. Value ranges from 0 to 1. + /** Specifies spline tension value for cardinal spline type. Value ranges from 0 to 1. * @Default {0.5} */ cardinalSplineTension?: number; @@ -57013,7 +57091,7 @@ declare namespace ej.datavisualization { */ dataSource?: any; - /** Specifies spline tension values for cardianal spline type.Value ranges from 0 to 1. + /** Specifies spline tension values for cardinal spline type.Value ranges from 0 to 1. * @Default {0.5} */ cardinalSplineTension?: number; @@ -57123,7 +57201,7 @@ declare namespace ej.datavisualization { splitMode?: ej.datavisualization.Chart.SplitMode|string; /** Quartile calculation has been performed in three different formulas to render the boxplot series . - * @Default {exclusive} + * @Default {exclusive.See BoxPlotMode} */ boxPlotMode?: ej.datavisualization.Chart.LabelPosition|string; @@ -57944,6 +58022,20 @@ declare namespace ej.datavisualization { Minus, } } + namespace Chart { + enum TrendlinesType { + //string + Linear, + //string + Exponential, + //string + Logarithmic, + //string + Power, + //string + Polynomial, + } + } namespace Chart { enum Mode { //string @@ -64669,22 +64761,22 @@ declare namespace ej.datavisualization { */ id?: string; - /** Sets the sourcenode of the connection data source item + /** Sets the source node of the connection data source item * @Default {null} */ sourceNode?: string; - /** Sets the targetnode of the connection data source item + /** Sets the target node of the connection data source item * @Default {null} */ targetNode?: string; - /** Sets the sourcepoint-x value of the connection data source item + /** Sets the sourcePointX value of the connection data source item * @Default {null} */ sourcePointX?: string; - /** Sets the sourcePoint-y value of the connection data source item + /** Sets the sourcePointY value of the connection data source item * @Default {null} */ sourcePointY?: string; @@ -64704,7 +64796,7 @@ declare namespace ej.datavisualization { */ crudAction?: DataSourceSettingsConnectionDataSourceCrudAction; - /** Specifies the customfields to get the updated data from client side to the server side + /** Specifies the custom fields to get the updated data from client side to the server side * @Default {[]} */ customFields?: any[]; @@ -64745,7 +64837,7 @@ declare namespace ej.datavisualization { */ crudAction?: DataSourceSettingsCrudAction; - /** Specifies the customfields to get the updated data from client side to the server side + /** Specifies the custom fields to get the updated data from client side to the server side * @Default {[]} */ customFields?: any[]; @@ -69214,7 +69306,7 @@ declare namespace ej.datavisualization { */ format?: string; - /** Sets the opacity of the dispalyed tooltip + /** Sets the opacity of the displayed tooltip * @Default {0.95} */ opacity?: number; From 2a5c1e01447c284ea115981d8f8e69e3f14f208e Mon Sep 17 00:00:00 2001 From: loopArray <525029662@qq.com> Date: Thu, 31 Aug 2017 22:30:16 +0800 Subject: [PATCH 130/316] Update react-native-vector-icons-tests.tsx --- .../react-native-vector-icons-tests.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx index 9615de18f4..e6dc2bb600 100644 --- a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx +++ b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx @@ -6,8 +6,8 @@ import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'; import Ionicon from 'react-native-vector-icons/Ionicons'; const glyphMap = { - "custom": 58918 -} + 'custom': 58918 +}; const CustomIcon = createIconSet(glyphMap, 'FontCustom', 'FontCustom.ttf'); From 3d7c85d2d034d485d4ff0c0a97ad07a9c1652545 Mon Sep 17 00:00:00 2001 From: loopArray <525029662@qq.com> Date: Thu, 31 Aug 2017 22:34:21 +0800 Subject: [PATCH 131/316] Update react-native-vector-icons-tests.tsx --- .../react-native-vector-icons-tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx index e6dc2bb600..b6adf8d8c6 100644 --- a/types/react-native-vector-icons/react-native-vector-icons-tests.tsx +++ b/types/react-native-vector-icons/react-native-vector-icons-tests.tsx @@ -6,7 +6,7 @@ import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'; import Ionicon from 'react-native-vector-icons/Ionicons'; const glyphMap = { - 'custom': 58918 + custom: 58918 }; const CustomIcon = createIconSet(glyphMap, 'FontCustom', 'FontCustom.ttf'); From 76e8326e9f5d8584894de47046c7f1cdc570fb18 Mon Sep 17 00:00:00 2001 From: Graham Mendick Date: Thu, 31 Aug 2017 15:54:51 +0100 Subject: [PATCH 132/316] Updated typings and tests for Navigation 4.0.1 --- types/navigation/index.d.ts | 8 ++++++++ types/navigation/navigation-tests.ts | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/types/navigation/index.d.ts b/types/navigation/index.d.ts index 6f05956a8a..fdc729f11c 100644 --- a/types/navigation/index.d.ts +++ b/types/navigation/index.d.ts @@ -347,6 +347,10 @@ export class StateContext { * Gets the NavigationData for the last displayed State */ oldData: any; + /** + * Gets the Url for the last displayed State + */ + oldUrl: string; /** * Gets the State of the last Crumb in the crumb trail */ @@ -355,6 +359,10 @@ export class StateContext { * Gets the NavigationData of the last Crumb in the crumb trail */ previousData: any; + /** + * Gets the Url of the last Crumb in the crumb trail + */ + previousUrl: string; /** * Gets the current State */ diff --git a/types/navigation/navigation-tests.ts b/types/navigation/navigation-tests.ts index f710670953..37e597f841 100644 --- a/types/navigation/navigation-tests.ts +++ b/types/navigation/navigation-tests.ts @@ -83,12 +83,14 @@ link = stateNavigator.fluent() // State Context let state: State = stateNavigator.stateContext.state; -const url: string = stateNavigator.stateContext.url; +let url: string = stateNavigator.stateContext.url; const title: string = stateNavigator.stateContext.title; let page: number = stateNavigator.stateContext.data.page; state = stateNavigator.stateContext.oldState; +url = stateNavigator.stateContext.oldUrl; page = stateNavigator.stateContext.oldData.page; state = stateNavigator.stateContext.previousState; +url = stateNavigator.stateContext.previousUrl; page = stateNavigator.stateContext.previousData.page; // Navigation Data From 341edc76faabd58a2f184d4c9de66b5787cef26c Mon Sep 17 00:00:00 2001 From: bizen241 Date: Fri, 1 Sep 2017 01:48:38 +0900 Subject: [PATCH 133/316] [vfile]: add types --- types/vfile/index.d.ts | 152 +++++++++++++++++++++++++++++++++++++ types/vfile/tsconfig.json | 22 ++++++ types/vfile/tslint.json | 1 + types/vfile/vfile-tests.ts | 47 ++++++++++++ 4 files changed, 222 insertions(+) create mode 100644 types/vfile/index.d.ts create mode 100644 types/vfile/tsconfig.json create mode 100644 types/vfile/tslint.json create mode 100644 types/vfile/vfile-tests.ts diff --git a/types/vfile/index.d.ts b/types/vfile/index.d.ts new file mode 100644 index 0000000000..590fed550b --- /dev/null +++ b/types/vfile/index.d.ts @@ -0,0 +1,152 @@ +// Type definitions for VFile 2.2 +// Project: https://github.com/vfile/vfile +// Definitions by: bizen241 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/// + +import * as Unist from 'unist'; + +export = VFile; + +/** + * Create a new virtual file. + * Path related properties are set in the following order (least specific to most specific): `history`, `path`, `basename`, `stem`, `extname`, `dirname`. + * It’s not possible to set either `dirname` or `extname` without setting either `history`, `path`, `basename`, or `stem` as well. + * @param options If `options` is `string` or `Buffer`, treats it as `{contents: options}`. If `options` is a `VFile`, returns it. All other options are set on the newly created `vfile`. + */ +declare function VFile(options?: string | Buffer | Partial): VFile.VFile; + +declare namespace VFile { + interface VFile { + [key: string]: any; + /** + * Raw value. + */ + contents: string | Buffer | null; + /** + * Base of `path`. + * Defaults to `process.cwd()`. + */ + cwd: string; + /** + * Path of `vfile`. + * Cannot be nullified. + */ + path?: string; + /** + * Current name (including extension) of `vfile`. + * Cannot contain path separators. + * Cannot be nullified either (use `file.path = file.dirname` instead). + */ + basename?: string; + /** + * Name (without extension) of `vfile`. + * Cannot be nullified, and cannot contain path separators. + */ + stem?: string; + /** + * Extension (with dot) of `vfile`. + * Cannot be set if there's no `path` yet and cannot contain path separators. + */ + extname?: string; + /** + * Path to parent directory of `vfile`. + * Cannot be set if there's no `path` yet. + */ + dirname?: string; + /** + * List of file-paths the file moved between. + */ + history: string[]; + /** + * List of messages associated with the file. + */ + messages: VFileMessage[]; + /** + * Place to store custom information. + * It's OK to store custom data directly on the `vfile`, moving it to `data` gives a little more privacy. + */ + data: object; + /** + * Convert contents of `vfile` to string. + * @param encoding If `contents` is a buffer, `encoding` is used to stringify buffers (default: `'utf8'`). + */ + toString(encoding?: string): string; + /** + * Associates a message with the file for `reason` at `position`. + * When an error is passed in as `reason`, copies the stack. + * Each message has a `fatal` property which by default is set to `false` (ie. `warning`). + * @param reason Reason for message. Uses the stack and message of the error if given. + * @param position Place at which the message occurred in `vfile`. + * @param ruleId Category of message. + */ + message(reason: string | Error, position?: Unist.Node | Unist.Point | Unist.Position, ruleId?: string): VFileMessage; + /** + * Associates an informational message with the file, where `fatal` is set to `null`. + * Calls `message()` internally. + * @param reason Reason for message. Uses the stack and message of the error if given. + * @param position Place at which the message occurred in `vfile`. + * @param ruleId Category of message. + */ + info(reason: string | Error, position?: Unist.Node | Unist.Point | Unist.Position, ruleId?: string): VFileMessage; + /** + * Associates a fatal message with the file, then immediately throws it. + * Note: fatal errors mean a file is no longer processable. + * Calls `message()` internally. + * @param reason Reason for message. Uses the stack and message of the error if given. + * @param position Place at which the message occurred in `vfile`. + * @param ruleId Category of message. + */ + fail(reason: string | Error, position?: Unist.Node | Unist.Point | Unist.Position, ruleId?: string): VFileMessage; + } + + /** + * File-related message describing something at certain position. + */ + interface VFileMessage extends Error { + /** + * File-path, when the message was triggered. + */ + file: string; + /** + * Reason for message. + */ + reason: string; + /** + * Category of message. + */ + ruleId: string | null; + /** + * Namespace of warning. + */ + source: string | null; + /** + * If true, marks associated file as no longer processable. + */ + fatal: boolean | null; + /** + * Starting line of error. + */ + line: number | null; + /** + * Starting column of error. + */ + column: number | null; + /** + * Full range information, when available. + * Has start and end properties, both set to an object with line and column, set to number?. + */ + location: { + start: { + line: number | null; + column: number | null; + }; + end: { + line: number | null; + column: number | null; + }; + }; + } +} diff --git a/types/vfile/tsconfig.json b/types/vfile/tsconfig.json new file mode 100644 index 0000000000..7615c6e59a --- /dev/null +++ b/types/vfile/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "vfile-tests.ts" + ] +} diff --git a/types/vfile/tslint.json b/types/vfile/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/vfile/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/vfile/vfile-tests.ts b/types/vfile/vfile-tests.ts new file mode 100644 index 0000000000..aae566154b --- /dev/null +++ b/types/vfile/vfile-tests.ts @@ -0,0 +1,47 @@ +import * as vfile from 'vfile'; +import * as Unist from 'unist'; + +vfile(); +vfile('string'); +vfile(Buffer.from('string')); +vfile(vfile()); +vfile({ stem: 'readme', extname: '.md' }); +vfile({ custom: 'data' }); +try { + vfile({ extname: '.md' }); +} catch (e) { + console.log('Error: set extname without path'); +} + +const file: vfile.VFile = vfile({ contents: 'contents' }); + +file.path = '~/readme.txt'; +file.basename = 'example.txt'; +file.stem = 'readme'; +file.extname = '.md'; +file.data = { + key: 'value', +}; + +const history: string[] = file.history; +const contents: string = file.toString(); + +console.log('file.history =>', history); +console.log('file.contents =>', contents); + +const position: Unist.Point = { + line: 1, + column: 1, +}; + +file.message('reason', position); +file.info('reason', position); +try { + file.fail('reason', position); +} catch (e) { + console.log('Error: associated a fatal message'); +} + +const messages: vfile.VFileMessage[] = file.messages; + +console.log('file.messages =>', messages); From e618ab91df58fdeda5295ccf987d4cab6c5d8f8f Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Thu, 31 Aug 2017 21:45:18 +0300 Subject: [PATCH 134/316] Updating needle version and authors --- types/needle/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index 8cc61f2a2f..caea4b1a36 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for needle 1.4 +// Type definitions for needle 2.0 // Project: https://github.com/tomas/needle -// Definitions by: San Chen , Niklas Mollenhauer +// Definitions by: San Chen , Niklas Mollenhauer , Matanel Sindilevich // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// From dc50040b3fce12be1b2f4068b0d3ed50504fd0fa Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Thu, 31 Aug 2017 22:34:54 +0300 Subject: [PATCH 135/316] Adding documentation --- types/needle/index.d.ts | 164 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 162 insertions(+), 2 deletions(-) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index caea4b1a36..95fe47a5cf 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -27,58 +27,165 @@ declare module "needle" { type NeedleOptions = RequestOptions & ResponseOptions & RedirectOptions & https.RequestOptions; interface RequestOptions { + /** + * Returns error if connection takes longer than X milisecs to establish. + * Defaults to 10000 (10 secs). 0 means no timeout. + */ open_timeout?: number; - read_timeout?: number; /** * Alias for open_timeout */ timeout?: number; + /** + * Returns error if data transfer takes longer than X milisecs, + * after connection is established. Defaults to 0 (no timeout). + */ + read_timeout?: number; + /** + * Number of redirects to follow. Defaults to 0. + */ follow_max?: number; /** * Alias for follow_max */ follow?: number; + /** + * Enables multipart/form-data encoding. Defaults to false. + * Use it when uploading files. + */ multipart?: boolean; + /** + * Uses an http.Agent of your choice, instead of the global, default one. + * Useful for tweaking the behaviour at the connection level, such as when doing tunneling. + */ agent?: http.Agent | boolean; + /** + * Forwards request through HTTP(s) proxy. + * Eg. proxy: 'http://user:pass@proxy.server.com:3128'. + * For more advanced proxying/tunneling use a custom agent. + */ proxy?: string; + /** + * Object containing custom HTTP headers for request. + */ headers?: {}; + /** + * Determines what to do with provided username/password. + * Options are auto, digest or basic (default). + * auto will detect the type of authentication depending on the response headers. + */ auth?: "auto" | "digest" | "basic"; + /** + * When true, sets content type to application/json and sends request body as JSON string, + * instead of a query string. + */ json?: boolean; // These properties are overwritten by those in the 'headers' field + /** + * Builds and sets a Cookie header from a { key: 'value' } object. + */ cookies?: Cookies; + /** + * If true, sets 'Accept-Encoding' header to 'gzip,deflate', + * and inflates content if zipped. + * Defaults to false. + */ compressed?: boolean; // Overwritten if present in the URI + /** + * For HTTP basic auth. + */ username?: string; + /** + * For HTTP basic auth. Requires username to be passed, but is optional. + */ password?: string; + /** + * Sets 'Accept' HTTP header. Defaults to */*. + */ accept?: string; + /** + * Sets 'Connection' HTTP header. + * Not set by default, unless running Node < 0.11.4 + * in which case it defaults to close. + */ connection?: string; + /** + * Sets the 'User-Agent' HTTP header. + * Defaults to Needle/{version} (Node.js {node_version}). + */ user_agent?: string; } interface ResponseOptions { + /** + * Whether to decode the text responses to UTF-8, + * if Content-Type header shows a different charset. Defaults to true. + */ decode_response?: boolean; /** * Alias for decode_response */ decode?: boolean; + + /** + * Whether to parse XML or JSON response bodies automagically. + * Defaults to true. + * You can also set this to 'xml' or 'json' in which case Needle + * will only parse the response if the content type matches. + */ parse_response?: boolean; /** * Alias for parse_response */ parse?: boolean; + /** + * Whether to parse response’s Set-Cookie header. + * Defaults to true. + * If parsed, response cookies will be available at resp.cookies. + */ parse_cookies?: boolean; + /** + * Dump response output to file. + * This occurs after parsing and charset decoding is done. + */ output?: string; } interface RedirectOptions { + /** + * Sends the cookies received in the set-cookie header + * as part of the following request. + * false by default. + */ follow_set_cookie?: boolean; + /** + * Sets the 'Referer' header to the requested URI + * when following a redirect. + * false by default. + */ follow_set_referer?: boolean; + /** + * If enabled, resends the request using the original verb + * instead of being rewritten to get with no data. + * false by default. + */ follow_keep_method?: boolean; + /** + * When true, Needle will only follow redirects that point to the same host + * as the original request. + * false by default. + */ follow_if_same_host?: boolean; + /** + * When true, Needle will only follow redirects that point to the same protocol + * as the original request. + * false by default. + */ follow_if_same_protocol?: boolean; } @@ -89,30 +196,83 @@ declare module "needle" { type BodyData = Buffer | KeyValue | NodeJS.ReadableStream | string | null; interface NeedleStatic { + /** + * Lets override the defaults for all future requests. + */ defaults(options: NeedleOptions): void; + /** + * Issues an HTTP HEAD request. + */ head(url: string, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP HEAD request. + */ head(url: string, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP GET request. + */ get(url: string, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP GET request. + */ get(url: string, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP POST request. + */ post(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP POST request. + */ post(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP PUT request. + */ put(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP PUT request. + */ put(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Same behaviour as PUT. + */ patch(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Same behaviour as PUT. + */ patch(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP DELETE request. + */ delete(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP DELETE request. + */ delete(url: string, data: BodyData, options?: NeedleOptions, callback ?: NeedleCallback): ReadableStream; + /** + * Generic request. + * This not only allows for flexibility, but also lets you perform a GET request with data, + * in which case will be appended to the request as a query string, + * unless you pass a json: true option. + * @param method Designates an HTTP verb for the request. + */ request(method: string, url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Generic request. + * This not only allows for flexibility, but also lets you perform a GET request with data, + * in which case will be appended to the request as a query string, + * unless you pass a json: true option. + * @param method Designates an HTTP verb for the request. + */ request(method: string, url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; } } const needle: Needle.NeedleStatic; export = needle; -} +} \ No newline at end of file From 3c859b02bf5f064cd0f03e59ae3f7c6e5ca238b9 Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Thu, 31 Aug 2017 22:49:29 +0300 Subject: [PATCH 136/316] Adding new RequestOptions --- types/needle/index.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index 95fe47a5cf..0d686ea7d7 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -82,6 +82,16 @@ declare module "needle" { * instead of a query string. */ json?: boolean; + /** + * When sending streams, this lets manually set the Content-Length header + * --if the stream's bytecount is known beforehand--, + * preventing ECONNRESET (socket hang up) errors on some servers that misbehave + * when receiving payloads of unknown size. + * Set it to 0 and Needle will get and set the stream's length, + * or leave unset for the default behavior, + * which is no Content-Length header for stream payloads. + */ + stream_length?: number; // These properties are overwritten by those in the 'headers' field /** @@ -118,6 +128,15 @@ declare module "needle" { * Defaults to Needle/{version} (Node.js {node_version}). */ user_agent?: string; + /** + * Sets the 'Content-Type' header. + * Unset by default, unless you're sending data + * in which case it's set accordingly to whatever is being sent + * (application/x-www-form-urlencoded, application/json or multipart/form-data). + * That is, of course, unless the option is passed, + * either here or through options.headers. + */ + content_type?: string; } interface ResponseOptions { From fc184d4a018a9512e7fae4848711e9b9a66353b8 Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Thu, 31 Aug 2017 23:07:57 +0300 Subject: [PATCH 137/316] Adding return type to needle.defaults() --- types/needle/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index 0d686ea7d7..782b479581 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -218,7 +218,7 @@ declare module "needle" { /** * Lets override the defaults for all future requests. */ - defaults(options: NeedleOptions): void; + defaults(options: NeedleOptions): NeedleOptions; /** * Issues an HTTP HEAD request. From 5ace485257b6dbde844233b3673bfb7eced00e77 Mon Sep 17 00:00:00 2001 From: falsandtru Date: Sun, 20 Aug 2017 19:39:25 +0900 Subject: [PATCH 138/316] improve module declarations --- types/dompurify/index.d.ts | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/types/dompurify/index.d.ts b/types/dompurify/index.d.ts index 5406156bca..267f762f2b 100644 --- a/types/dompurify/index.d.ts +++ b/types/dompurify/index.d.ts @@ -3,23 +3,18 @@ // Definitions by: Dave Taylor , Samira Bazuzi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = DOMPurify; export as namespace DOMPurify; -declare var DOMPurify: DOMPurify; +export declare function sanitize(source: string | Node): string; +export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM_FRAGMENT?: false; RETURN_DOM?: false; }): string; +export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM_FRAGMENT: true; }): DocumentFragment; +export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM: true; }): HTMLElement; +export declare function sanitize(source: string | Node, config: Config): string | HTMLElement | DocumentFragment; +export declare function addHook(hook: 'uponSanitizeElement', cb: (currentNode: Element, data: SanitizeElementHookEvent, config: Config) => void): void; +export declare function addHook(hook: 'uponSanitizeAttribute', cb: (currentNode: Element, data: SanitizeAttributeHookEvent, config: Config) => void): void; +export declare function addHook(hook: HookName, cb: (currentNode: Element, data: HookEvent, config: Config) => void): void; -interface DOMPurify { - sanitize(source: string | Node): string; - sanitize(source: string | Node, config: DOMPurifyConfig & { RETURN_DOM_FRAGMENT?: false; RETURN_DOM?: false; }): string; - sanitize(source: string | Node, config: DOMPurifyConfig & { RETURN_DOM_FRAGMENT: true; }): DocumentFragment; - sanitize(source: string | Node, config: DOMPurifyConfig & { RETURN_DOM: true; }): HTMLElement; - sanitize(source: string | Node, config: DOMPurifyConfig): string | HTMLElement | DocumentFragment; - addHook(hook: 'uponSanitizeElement', cb: (currentNode: Element, data: DOMPurifySanitizeElementHookEvent, config: DOMPurifyConfig) => void): void; - addHook(hook: 'uponSanitizeAttribute', cb: (currentNode: Element, data: DOMPurifySanitizeAttributeHookEvent, config: DOMPurifyConfig) => void): void; - addHook(hook: DOMPurifyHookName, cb: (currentNode: Element, data: DOMPurifyHookEvent, config: DOMPurifyConfig) => void): void; -} - -interface DOMPurifyConfig { +interface Config { ADD_ATTR?: string[]; ADD_TAGS?: string[]; ALLOW_DATA_ATTR?: boolean; @@ -36,7 +31,7 @@ interface DOMPurifyConfig { WHOLE_DOCUMENT?: boolean; } -type DOMPurifyHookName +type HookName = 'beforeSanitizeElements' | 'uponSanitizeElement' | 'afterSanitizeElements' @@ -47,17 +42,17 @@ type DOMPurifyHookName | 'uponSanitizeShadowNode' | 'afterSanitizeShadowDOM'; -type DOMPurifyHookEvent - = DOMPurifySanitizeElementHookEvent - | DOMPurifySanitizeAttributeHookEvent +type HookEvent + = SanitizeElementHookEvent + | SanitizeAttributeHookEvent | null; -interface DOMPurifySanitizeElementHookEvent { +interface SanitizeElementHookEvent { tagName: string; allowedTags: string[]; } -interface DOMPurifySanitizeAttributeHookEvent { +interface SanitizeAttributeHookEvent { attrName: string; attrValue: string; keepAttr: boolean; From a2971aa6aa02fee1c5192fae9dee06d2f501bb22 Mon Sep 17 00:00:00 2001 From: falsandtru Date: Fri, 1 Sep 2017 08:46:12 +0900 Subject: [PATCH 139/316] update typings --- types/dompurify/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/dompurify/index.d.ts b/types/dompurify/index.d.ts index 267f762f2b..b72cc9e5e9 100644 --- a/types/dompurify/index.d.ts +++ b/types/dompurify/index.d.ts @@ -22,6 +22,7 @@ interface Config { ALLOWED_TAGS?: string[]; FORBID_ATTR?: string[]; FORBID_TAGS?: string[]; + FORCE_BODY?: boolean; KEEP_CONTENT?: boolean; RETURN_DOM?: boolean; RETURN_DOM_FRAGMENT?: boolean; From 9a49b95c1a483e2aeddcc6b2e82367e4fbfdfffa Mon Sep 17 00:00:00 2001 From: ikatyang Date: Fri, 1 Sep 2017 09:35:17 +0800 Subject: [PATCH 140/316] feat(prettier): add `sync` option --- types/prettier/index.d.ts | 8 +++++++- types/prettier/prettier-tests.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/types/prettier/index.d.ts b/types/prettier/index.d.ts index 48c89a5c57..07cf09fbba 100644 --- a/types/prettier/index.d.ts +++ b/types/prettier/index.d.ts @@ -102,6 +102,10 @@ export interface ResolveConfigOptions { * If set to `false`, all caching will be bypassed. */ useCache?: boolean; + /** + * If set to `true`, result will be returned directly. + */ + sync?: boolean; } /** @@ -114,7 +118,9 @@ export interface ResolveConfigOptions { * * The promise will be rejected if there was an error parsing the configuration file. */ -export function resolveConfig(filePath?: string, options?: ResolveConfigOptions): Promise; +export function resolveConfig(filePath: string | undefined, options: ResolveConfigOptions & { sync: true }): null | Options; +export function resolveConfig(filePath?: string, options?: ResolveConfigOptions & { sync?: false }): Promise; +export function resolveConfig(filePath?: string, options?: ResolveConfigOptions): null | Options | Promise; /** * As you repeatedly call `resolveConfig`, the file system structure will be cached for performance. This function will clear the cache. diff --git a/types/prettier/prettier-tests.ts b/types/prettier/prettier-tests.ts index a51e8902c4..e88ebe4770 100644 --- a/types/prettier/prettier-tests.ts +++ b/types/prettier/prettier-tests.ts @@ -24,4 +24,30 @@ prettier.resolveConfig('path/to/somewhere').then(options => { } }); +prettier.resolveConfig('path/to/somewhere', undefined).then(options => { + if (options !== null) { + const formatted = prettier.format('hello world', options); + } +}); + +prettier.resolveConfig('path/to/somewhere', {}).then(options => { + if (options !== null) { + const formatted = prettier.format('hello world', options); + } +}); + +prettier.resolveConfig('path/to/somewhere', { sync: false }).then(options => { + if (options !== null) { + const formatted = prettier.format('hello world', options); + } +}); + +// $ExpectType Options | Promise | null +prettier.resolveConfig('path/to/somewhere', { sync: true as boolean }); + +const options = prettier.resolveConfig('path/to/somewhere', { sync: true }); +if (options !== null) { + const formatted = prettier.format('hello world', options); +} + prettier.clearConfigCache(); From ace093aef3ae61d1e4325009f627ba1e163ac4ab Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Fri, 1 Sep 2017 08:31:30 +0300 Subject: [PATCH 141/316] Modernizing .d.ts syntax --- types/needle/index.d.ts | 535 ++++++++++++++++++++-------------------- 1 file changed, 267 insertions(+), 268 deletions(-) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index 782b479581..a509a07ca0 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -5,293 +5,292 @@ /// -declare module "needle" { - import * as http from 'http'; - import * as Buffer from 'buffer'; - import * as https from 'https'; - namespace Needle { - interface NeedleResponse extends http.IncomingMessage { - body: any; - raw: Buffer; - bytes: number; - } +import * as http from 'http'; +import * as Buffer from 'buffer'; +import * as https from 'https'; - type ReadableStream = NodeJS.ReadableStream; +interface NeedleResponse extends http.IncomingMessage { + body: any; + raw: Buffer; + bytes: number; +} - type NeedleCallback = (error: Error, response: NeedleResponse, body: any) => void; +type ReadableStream = NodeJS.ReadableStream; - interface Cookies { - [name: string]: any; - } +type NeedleCallback = (error: Error, response: NeedleResponse, body: any) => void; - type NeedleOptions = RequestOptions & ResponseOptions & RedirectOptions & https.RequestOptions; +interface Cookies { + [name: string]: any; +} - interface RequestOptions { - /** - * Returns error if connection takes longer than X milisecs to establish. - * Defaults to 10000 (10 secs). 0 means no timeout. - */ - open_timeout?: number; - /** - * Alias for open_timeout - */ - timeout?: number; +type NeedleOptions = RequestOptions & ResponseOptions & RedirectOptions & https.RequestOptions; - /** - * Returns error if data transfer takes longer than X milisecs, - * after connection is established. Defaults to 0 (no timeout). - */ - read_timeout?: number; - /** - * Number of redirects to follow. Defaults to 0. - */ - follow_max?: number; - /** - * Alias for follow_max - */ - follow?: number; +interface RequestOptions { + /** + * Returns error if connection takes longer than X milisecs to establish. + * Defaults to 10000 (10 secs). 0 means no timeout. + */ + open_timeout?: number; + /** + * Alias for open_timeout + */ + timeout?: number; - /** - * Enables multipart/form-data encoding. Defaults to false. - * Use it when uploading files. - */ - multipart?: boolean; - /** - * Uses an http.Agent of your choice, instead of the global, default one. - * Useful for tweaking the behaviour at the connection level, such as when doing tunneling. - */ - agent?: http.Agent | boolean; - /** - * Forwards request through HTTP(s) proxy. - * Eg. proxy: 'http://user:pass@proxy.server.com:3128'. - * For more advanced proxying/tunneling use a custom agent. - */ - proxy?: string; - /** - * Object containing custom HTTP headers for request. - */ - headers?: {}; - /** - * Determines what to do with provided username/password. - * Options are auto, digest or basic (default). - * auto will detect the type of authentication depending on the response headers. - */ - auth?: "auto" | "digest" | "basic"; - /** - * When true, sets content type to application/json and sends request body as JSON string, - * instead of a query string. - */ - json?: boolean; - /** - * When sending streams, this lets manually set the Content-Length header - * --if the stream's bytecount is known beforehand--, - * preventing ECONNRESET (socket hang up) errors on some servers that misbehave - * when receiving payloads of unknown size. - * Set it to 0 and Needle will get and set the stream's length, - * or leave unset for the default behavior, - * which is no Content-Length header for stream payloads. - */ - stream_length?: number; + /** + * Returns error if data transfer takes longer than X milisecs, + * after connection is established. Defaults to 0 (no timeout). + */ + read_timeout?: number; + /** + * Number of redirects to follow. Defaults to 0. + */ + follow_max?: number; + /** + * Alias for follow_max + */ + follow?: number; - // These properties are overwritten by those in the 'headers' field - /** - * Builds and sets a Cookie header from a { key: 'value' } object. - */ - cookies?: Cookies; - /** - * If true, sets 'Accept-Encoding' header to 'gzip,deflate', - * and inflates content if zipped. - * Defaults to false. - */ - compressed?: boolean; - // Overwritten if present in the URI - /** - * For HTTP basic auth. - */ - username?: string; - /** - * For HTTP basic auth. Requires username to be passed, but is optional. - */ - password?: string; - /** - * Sets 'Accept' HTTP header. Defaults to */*. - */ - accept?: string; - /** - * Sets 'Connection' HTTP header. - * Not set by default, unless running Node < 0.11.4 - * in which case it defaults to close. - */ - connection?: string; - /** - * Sets the 'User-Agent' HTTP header. - * Defaults to Needle/{version} (Node.js {node_version}). - */ - user_agent?: string; - /** - * Sets the 'Content-Type' header. - * Unset by default, unless you're sending data - * in which case it's set accordingly to whatever is being sent - * (application/x-www-form-urlencoded, application/json or multipart/form-data). - * That is, of course, unless the option is passed, - * either here or through options.headers. - */ - content_type?: string; - } + /** + * Enables multipart/form-data encoding. Defaults to false. + * Use it when uploading files. + */ + multipart?: boolean; + /** + * Uses an http.Agent of your choice, instead of the global, default one. + * Useful for tweaking the behaviour at the connection level, such as when doing tunneling. + */ + agent?: http.Agent | boolean; + /** + * Forwards request through HTTP(s) proxy. + * Eg. proxy: 'http://user:pass@proxy.server.com:3128'. + * For more advanced proxying/tunneling use a custom agent. + */ + proxy?: string; + /** + * Object containing custom HTTP headers for request. + */ + headers?: {}; + /** + * Determines what to do with provided username/password. + * Options are auto, digest or basic (default). + * auto will detect the type of authentication depending on the response headers. + */ + auth?: "auto" | "digest" | "basic"; + /** + * When true, sets content type to application/json and sends request body as JSON string, + * instead of a query string. + */ + json?: boolean; + /** + * When sending streams, this lets manually set the Content-Length header + * --if the stream's bytecount is known beforehand--, + * preventing ECONNRESET (socket hang up) errors on some servers that misbehave + * when receiving payloads of unknown size. + * Set it to 0 and Needle will get and set the stream's length, + * or leave unset for the default behavior, + * which is no Content-Length header for stream payloads. + */ + stream_length?: number; - interface ResponseOptions { - /** - * Whether to decode the text responses to UTF-8, - * if Content-Type header shows a different charset. Defaults to true. - */ - decode_response?: boolean; - /** - * Alias for decode_response - */ - decode?: boolean; + // These properties are overwritten by those in the 'headers' field + /** + * Builds and sets a Cookie header from a { key: 'value' } object. + */ + cookies?: Cookies; + /** + * If true, sets 'Accept-Encoding' header to 'gzip,deflate', + * and inflates content if zipped. + * Defaults to false. + */ + compressed?: boolean; + // Overwritten if present in the URI + /** + * For HTTP basic auth. + */ + username?: string; + /** + * For HTTP basic auth. Requires username to be passed, but is optional. + */ + password?: string; + /** + * Sets 'Accept' HTTP header. Defaults to */*. + */ + accept?: string; + /** + * Sets 'Connection' HTTP header. + * Not set by default, unless running Node < 0.11.4 + * in which case it defaults to close. + */ + connection?: string; + /** + * Sets the 'User-Agent' HTTP header. + * Defaults to Needle/{version} (Node.js {node_version}). + */ + user_agent?: string; + /** + * Sets the 'Content-Type' header. + * Unset by default, unless you're sending data + * in which case it's set accordingly to whatever is being sent + * (application/x-www-form-urlencoded, application/json or multipart/form-data). + * That is, of course, unless the option is passed, + * either here or through options.headers. + */ + content_type?: string; +} - /** - * Whether to parse XML or JSON response bodies automagically. - * Defaults to true. - * You can also set this to 'xml' or 'json' in which case Needle - * will only parse the response if the content type matches. - */ - parse_response?: boolean; - /** - * Alias for parse_response - */ - parse?: boolean; +interface ResponseOptions { + /** + * Whether to decode the text responses to UTF-8, + * if Content-Type header shows a different charset. Defaults to true. + */ + decode_response?: boolean; + /** + * Alias for decode_response + */ + decode?: boolean; - /** - * Whether to parse response’s Set-Cookie header. - * Defaults to true. - * If parsed, response cookies will be available at resp.cookies. - */ - parse_cookies?: boolean; - /** - * Dump response output to file. - * This occurs after parsing and charset decoding is done. - */ - output?: string; - } + /** + * Whether to parse XML or JSON response bodies automagically. + * Defaults to true. + * You can also set this to 'xml' or 'json' in which case Needle + * will only parse the response if the content type matches. + */ + parse_response?: boolean; + /** + * Alias for parse_response + */ + parse?: boolean; - interface RedirectOptions { - /** - * Sends the cookies received in the set-cookie header - * as part of the following request. - * false by default. - */ - follow_set_cookie?: boolean; - /** - * Sets the 'Referer' header to the requested URI - * when following a redirect. - * false by default. - */ - follow_set_referer?: boolean; - /** - * If enabled, resends the request using the original verb - * instead of being rewritten to get with no data. - * false by default. - */ - follow_keep_method?: boolean; - /** - * When true, Needle will only follow redirects that point to the same host - * as the original request. - * false by default. - */ - follow_if_same_host?: boolean; - /** - * When true, Needle will only follow redirects that point to the same protocol - * as the original request. - * false by default. - */ - follow_if_same_protocol?: boolean; - } + /** + * Whether to parse response’s Set-Cookie header. + * Defaults to true. + * If parsed, response cookies will be available at resp.cookies. + */ + parse_cookies?: boolean; + /** + * Dump response output to file. + * This occurs after parsing and charset decoding is done. + */ + output?: string; +} - interface KeyValue { - [key: string]: any; - } +interface RedirectOptions { + /** + * Sends the cookies received in the set-cookie header + * as part of the following request. + * false by default. + */ + follow_set_cookie?: boolean; + /** + * Sets the 'Referer' header to the requested URI + * when following a redirect. + * false by default. + */ + follow_set_referer?: boolean; + /** + * If enabled, resends the request using the original verb + * instead of being rewritten to get with no data. + * false by default. + */ + follow_keep_method?: boolean; + /** + * When true, Needle will only follow redirects that point to the same host + * as the original request. + * false by default. + */ + follow_if_same_host?: boolean; + /** + * When true, Needle will only follow redirects that point to the same protocol + * as the original request. + * false by default. + */ + follow_if_same_protocol?: boolean; +} - type BodyData = Buffer | KeyValue | NodeJS.ReadableStream | string | null; +interface KeyValue { + [key: string]: any; +} - interface NeedleStatic { - /** - * Lets override the defaults for all future requests. - */ - defaults(options: NeedleOptions): NeedleOptions; +type BodyData = Buffer | KeyValue | NodeJS.ReadableStream | string | null; - /** - * Issues an HTTP HEAD request. - */ - head(url: string, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP HEAD request. - */ - head(url: string, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; +declare namespace needle { + /** + * Lets override the defaults for all future requests. + */ + export function defaults(options: NeedleOptions): NeedleOptions; - /** - * Issues an HTTP GET request. - */ - get(url: string, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP GET request. - */ - get(url: string, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP HEAD request. + */ + export function head(url: string, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP HEAD request. + */ + export function head(url: string, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP POST request. - */ - post(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP POST request. - */ - post(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP GET request. + */ + export function get(url: string, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP GET request. + */ + export function get(url: string, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP PUT request. - */ - put(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP PUT request. - */ - put(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP POST request. + */ + export function post(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP POST request. + */ + export function post(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; - /** - * Same behaviour as PUT. - */ - patch(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; - /** - * Same behaviour as PUT. - */ - patch(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP PUT request. + */ + export function put(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP PUT request. + */ + export function put(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP DELETE request. - */ - delete(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; - /** - * Issues an HTTP DELETE request. - */ - delete(url: string, data: BodyData, options?: NeedleOptions, callback ?: NeedleCallback): ReadableStream; + /** + * Same behaviour as PUT. + */ + export function patch(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Same behaviour as PUT. + */ + export function patch(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; - /** - * Generic request. - * This not only allows for flexibility, but also lets you perform a GET request with data, - * in which case will be appended to the request as a query string, - * unless you pass a json: true option. - * @param method Designates an HTTP verb for the request. - */ - request(method: string, url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; - /** - * Generic request. - * This not only allows for flexibility, but also lets you perform a GET request with data, - * in which case will be appended to the request as a query string, - * unless you pass a json: true option. - * @param method Designates an HTTP verb for the request. - */ - request(method: string, url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; - } - } - const needle: Needle.NeedleStatic; - export = needle; -} \ No newline at end of file + /** + * Issues an HTTP DELETE request. + */ + function deleteFunc(url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Issues an HTTP DELETE request. + */ + function deleteFunc(url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + // See https://github.com/Microsoft/TypeScript/issues/1784#issuecomment-258720219 + export { deleteFunc as delete }; + + /** + * Generic request. + * This not only allows for flexibility, but also lets you perform a GET request with data, + * in which case will be appended to the request as a query string, + * unless you pass a json: true option. + * @param method Designates an HTTP verb for the request. + */ + export function request(method: string, url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + /** + * Generic request. + * This not only allows for flexibility, but also lets you perform a GET request with data, + * in which case will be appended to the request as a query string, + * unless you pass a json: true option. + * @param method Designates an HTTP verb for the request. + */ + export function request(method: string, url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; +} + +export = needle; \ No newline at end of file From 1c7070ef2ea0552a868fab0ac4aa73236bd87c11 Mon Sep 17 00:00:00 2001 From: ikatyang Date: Fri, 1 Sep 2017 13:47:54 +0800 Subject: [PATCH 142/316] feat(prettier): replace `sync` option with `.sync()` method --- types/prettier/index.d.ts | 11 ++++------- types/prettier/prettier-tests.ts | 23 +---------------------- 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/types/prettier/index.d.ts b/types/prettier/index.d.ts index 07cf09fbba..317a514912 100644 --- a/types/prettier/index.d.ts +++ b/types/prettier/index.d.ts @@ -102,10 +102,6 @@ export interface ResolveConfigOptions { * If set to `false`, all caching will be bypassed. */ useCache?: boolean; - /** - * If set to `true`, result will be returned directly. - */ - sync?: boolean; } /** @@ -118,9 +114,10 @@ export interface ResolveConfigOptions { * * The promise will be rejected if there was an error parsing the configuration file. */ -export function resolveConfig(filePath: string | undefined, options: ResolveConfigOptions & { sync: true }): null | Options; -export function resolveConfig(filePath?: string, options?: ResolveConfigOptions & { sync?: false }): Promise; -export function resolveConfig(filePath?: string, options?: ResolveConfigOptions): null | Options | Promise; +export function resolveConfig(filePath?: string, options?: ResolveConfigOptions): Promise; +export namespace resolveConfig { + function sync(filePath?: string, options?: ResolveConfigOptions): null | Options; +} /** * As you repeatedly call `resolveConfig`, the file system structure will be cached for performance. This function will clear the cache. diff --git a/types/prettier/prettier-tests.ts b/types/prettier/prettier-tests.ts index e88ebe4770..8d95196101 100644 --- a/types/prettier/prettier-tests.ts +++ b/types/prettier/prettier-tests.ts @@ -24,28 +24,7 @@ prettier.resolveConfig('path/to/somewhere').then(options => { } }); -prettier.resolveConfig('path/to/somewhere', undefined).then(options => { - if (options !== null) { - const formatted = prettier.format('hello world', options); - } -}); - -prettier.resolveConfig('path/to/somewhere', {}).then(options => { - if (options !== null) { - const formatted = prettier.format('hello world', options); - } -}); - -prettier.resolveConfig('path/to/somewhere', { sync: false }).then(options => { - if (options !== null) { - const formatted = prettier.format('hello world', options); - } -}); - -// $ExpectType Options | Promise | null -prettier.resolveConfig('path/to/somewhere', { sync: true as boolean }); - -const options = prettier.resolveConfig('path/to/somewhere', { sync: true }); +const options = prettier.resolveConfig.sync('path/to/somewhere'); if (options !== null) { const formatted = prettier.format('hello world', options); } From 04338685ff819b05a8353a6397f447fee90a21a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 10:06:57 +0200 Subject: [PATCH 143/316] Make Callback type generic --- types/nano/index.d.ts | 90 +++++++++++++++++++++---------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index ab80e563d4..2378d3eb8b 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -19,7 +19,7 @@ declare namespace nano { request?(params: any): void; } - type Callback = (error: any, result: any, headers?: any) => void; + type Callback = (error: any, response: R, headers?: any) => void; interface ServerScope { readonly config: ServerConfig; @@ -29,77 +29,77 @@ declare namespace nano { request: RequestFunction; relax: RequestFunction; dinosaur: RequestFunction; - auth(username: string, userpass: string, callback?: Callback): Request; - session(callback?: Callback): Request; - updates(params?: UpdatesParams, callback?: Callback): Request; - followUpdates(params?: any, callback?: Callback): EventEmitter; - uuids(num: number, callback: Callback): Request; + auth(username: string, userpass: string, callback?: Callback): Request; + session(callback?: Callback): Request; + updates(params?: UpdatesParams, callback?: Callback): Request; + followUpdates(params?: any, callback?: Callback): EventEmitter; + uuids(num: number, callback: Callback): Request; } interface DatabaseScope { - create(name: string, callback?: Callback): Request; - get(name: string, callback?: Callback): Request; - destroy(name: string, callback?: Callback): Request; - list(callback?: Callback): Request; + create(name: string, callback?: Callback): Request; + get(name: string, callback?: Callback): Request; + destroy(name: string, callback?: Callback): Request; + list(callback?: Callback): Request; use(db: string): DocumentScope; - compact(name: string, designname?: string, callback?: Callback): Request; + compact(name: string, designname?: string, callback?: Callback): Request; replicate( source: string | DocumentScope, target: string | DocumentScope, options?: any, - callback?: Callback + callback?: Callback ): Request; - changes(name: string, params?: any, callback?: Callback): Request; + changes(name: string, params?: any, callback?: Callback): Request; follow( source: string, params?: DatabaseScopeFollowUpdatesParams, - callback?: Callback + callback?: Callback ): EventEmitter; - followUpdates(params?: any, callback?: Callback): EventEmitter; - updates(params?: UpdatesParams, callback?: Callback): Request; + followUpdates(params?: any, callback?: Callback): EventEmitter; + updates(params?: UpdatesParams, callback?: Callback): Request; } interface DocumentScope { readonly config: ServerConfig; - info(callback?: Callback): Request; + info(callback?: Callback): Request; replicate( target: string | DocumentScope, options?: any, - callback?: Callback + callback?: Callback ): Request; - compact(callback?: Callback): Request; - changes(params?: any, callback?: Callback): Request; + compact(callback?: Callback): Request; + changes(params?: any, callback?: Callback): Request; follow( params?: DocumentScopeFollowUpdatesParams, - callback?: Callback + callback?: Callback ): EventEmitter; - auth(username: string, userpass: string, callback?: Callback): Request; - session(callback?: Callback): Request; - insert(document: any, params?: any, callback?: Callback): Request; - get(docname: string, params?: any, callback?: Callback): Request; - head(docname: string, callback: Callback): Request; + auth(username: string, userpass: string, callback?: Callback): Request; + session(callback?: Callback): Request; + insert(document: any, params?: any, callback?: Callback): Request; + get(docname: string, params?: any, callback?: Callback): Request; + head(docname: string, callback: Callback): Request; copy( src_document: string, dst_document: string, options: any, - callback?: Callback + callback?: Callback ): Request; - destroy(docname: string, rev: string, callback?: Callback): Request; + destroy(docname: string, rev: string, callback?: Callback): Request; bulk( docs: BulkModifyDocsWrapper, params?: any, - callback?: Callback + callback?: Callback ): Request; - list(params?: any, callback?: Callback): Request; + list(params?: any, callback?: Callback): Request; fetch( docnames: BulkFetchDocsWrapper, params?: any, - callback?: Callback + callback?: Callback ): Request; fetchRevs( docnames: BulkFetchDocsWrapper, params?: any, - callback?: Callback + callback?: Callback ): Request; multipart: Multipart; attachment: Attachment; @@ -108,46 +108,46 @@ declare namespace nano { showname: string, doc_id: string, params?: any, - callback?: Callback + callback?: Callback ): Request; atomic( designname: string, updatename: string, docname: string, body?: any, - callback?: Callback + callback?: Callback ): Request; updateWithHandler( designname: string, updatename: string, docname: string, body?: any, - callback?: Callback + callback?: Callback ): Request; search( designname: string, searchname: string, params?: any, - callback?: Callback + callback?: Callback ): Request; spatial( ddoc: string, viewname: string, params?: any, - callback?: Callback + callback?: Callback ): Request; view( designname: string, viewname: string, params?: any, - callback?: Callback + callback?: Callback ): Request; viewWithList( designname: string, viewname: string, listname: string, params?: any, - callback?: Callback + callback?: Callback ): Request; server: ServerScope; } @@ -157,9 +157,9 @@ declare namespace nano { doc: any, attachments: any[], params: string | any, - callback?: Callback + callback?: Callback ): Request; - get(docname: string, params?: string | any, callback?: Callback): Request; + get(docname: string, params?: string | any, callback?: Callback): Request; } interface Attachment { @@ -169,19 +169,19 @@ declare namespace nano { att: any, contenttype: string, params?: any, - callback?: Callback + callback?: Callback ): Request; get( docname: string, attname: string, params?: any, - callback?: Callback + callback?: Callback ): Request; destroy( docname: string, attname: string, params?: any, - callback?: Callback + callback?: Callback ): Request; } @@ -192,7 +192,7 @@ declare namespace nano { type RequestFunction = ( options?: RequestOptions | string, - callback?: Callback + callback?: Callback ) => void; interface RequestOptions { From cdeb13e7744226addde443bfabd6df7db1989410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 10:26:08 +0200 Subject: [PATCH 144/316] Make DocumentScope generic (accepts document model) --- types/nano/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 2378d3eb8b..59ff766010 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -8,7 +8,7 @@ import { Request, CoreOptions } from "request"; declare function nano( config: nano.Configuration | string -): nano.ServerScope | nano.DocumentScope; +): nano.ServerScope | nano.DocumentScope; declare namespace nano { interface Configuration { @@ -24,8 +24,8 @@ declare namespace nano { interface ServerScope { readonly config: ServerConfig; db: DatabaseScope; - use(db: string): DocumentScope; - scope(db: string): DocumentScope; + use(db: string): DocumentScope; + scope(db: string): DocumentScope; request: RequestFunction; relax: RequestFunction; dinosaur: RequestFunction; @@ -41,11 +41,11 @@ declare namespace nano { get(name: string, callback?: Callback): Request; destroy(name: string, callback?: Callback): Request; list(callback?: Callback): Request; - use(db: string): DocumentScope; + use(db: string): DocumentScope; compact(name: string, designname?: string, callback?: Callback): Request; - replicate( - source: string | DocumentScope, - target: string | DocumentScope, + replicate( + source: string | DocumentScope, + target: string | DocumentScope, options?: any, callback?: Callback ): Request; @@ -59,11 +59,11 @@ declare namespace nano { updates(params?: UpdatesParams, callback?: Callback): Request; } - interface DocumentScope { + interface DocumentScope { readonly config: ServerConfig; info(callback?: Callback): Request; replicate( - target: string | DocumentScope, + target: string | DocumentScope, options?: any, callback?: Callback ): Request; From 92db09a1c0d126d978de539526d743e69217154e Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Fri, 1 Sep 2017 13:40:58 +0300 Subject: [PATCH 145/316] Adding definitions for calling needle(): Promise directly --- types/needle/index.d.ts | 436 +++++++++++++++++++---------------- types/needle/needle-tests.ts | 175 +++++++++++--- 2 files changed, 379 insertions(+), 232 deletions(-) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index a509a07ca0..097cc8ba08 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -9,211 +9,241 @@ import * as http from 'http'; import * as Buffer from 'buffer'; import * as https from 'https'; -interface NeedleResponse extends http.IncomingMessage { - body: any; - raw: Buffer; - bytes: number; +declare namespace core { + interface NeedleResponse extends http.IncomingMessage { + body: any; + raw: Buffer; + bytes: number; + } + + type ReadableStream = NodeJS.ReadableStream; + + type NeedleCallback = (error: Error, response: NeedleResponse, body: any) => void; + + interface Cookies { + [name: string]: any; + } + + type NeedleOptions = RequestOptions & ResponseOptions & RedirectOptions & https.RequestOptions; + + type NeedleReadonlyHttpVerbs = 'get' | 'head'; + + type NeedleReadWriteHttpVerbs = 'delete' | 'patch' | 'post' | 'put'; + + type NeedleHttpVerbs = NeedleReadonlyHttpVerbs | NeedleReadWriteHttpVerbs; + + interface RequestOptions { + /** + * Returns error if connection takes longer than X milisecs to establish. + * Defaults to 10000 (10 secs). 0 means no timeout. + */ + open_timeout?: number; + /** + * Alias for open_timeout + */ + timeout?: number; + + /** + * Returns error if data transfer takes longer than X milisecs, + * after connection is established. Defaults to 0 (no timeout). + */ + read_timeout?: number; + /** + * Number of redirects to follow. Defaults to 0. + */ + follow_max?: number; + /** + * Alias for follow_max + */ + follow?: number; + + /** + * Enables multipart/form-data encoding. Defaults to false. + * Use it when uploading files. + */ + multipart?: boolean; + /** + * Uses an http.Agent of your choice, instead of the global, default one. + * Useful for tweaking the behaviour at the connection level, such as when doing tunneling. + */ + agent?: http.Agent | boolean; + /** + * Forwards request through HTTP(s) proxy. + * Eg. proxy: 'http://user:pass@proxy.server.com:3128'. + * For more advanced proxying/tunneling use a custom agent. + */ + proxy?: string; + /** + * Object containing custom HTTP headers for request. + */ + headers?: {}; + /** + * Determines what to do with provided username/password. + * Options are auto, digest or basic (default). + * auto will detect the type of authentication depending on the response headers. + */ + auth?: "auto" | "digest" | "basic"; + /** + * When true, sets content type to application/json and sends request body as JSON string, + * instead of a query string. + */ + json?: boolean; + /** + * When sending streams, this lets manually set the Content-Length header + * --if the stream's bytecount is known beforehand--, + * preventing ECONNRESET (socket hang up) errors on some servers that misbehave + * when receiving payloads of unknown size. + * Set it to 0 and Needle will get and set the stream's length, + * or leave unset for the default behavior, + * which is no Content-Length header for stream payloads. + */ + stream_length?: number; + + // These properties are overwritten by those in the 'headers' field + /** + * Builds and sets a Cookie header from a { key: 'value' } object. + */ + cookies?: Cookies; + /** + * If true, sets 'Accept-Encoding' header to 'gzip,deflate', + * and inflates content if zipped. + * Defaults to false. + */ + compressed?: boolean; + // Overwritten if present in the URI + /** + * For HTTP basic auth. + */ + username?: string; + /** + * For HTTP basic auth. Requires username to be passed, but is optional. + */ + password?: string; + /** + * Sets 'Accept' HTTP header. Defaults to */*. + */ + accept?: string; + /** + * Sets 'Connection' HTTP header. + * Not set by default, unless running Node < 0.11.4 + * in which case it defaults to close. + */ + connection?: string; + /** + * Sets the 'User-Agent' HTTP header. + * Defaults to Needle/{version} (Node.js {node_version}). + */ + user_agent?: string; + /** + * Sets the 'Content-Type' header. + * Unset by default, unless you're sending data + * in which case it's set accordingly to whatever is being sent + * (application/x-www-form-urlencoded, application/json or multipart/form-data). + * That is, of course, unless the option is passed, + * either here or through options.headers. + */ + content_type?: string; + } + + interface ResponseOptions { + /** + * Whether to decode the text responses to UTF-8, + * if Content-Type header shows a different charset. Defaults to true. + */ + decode_response?: boolean; + /** + * Alias for decode_response + */ + decode?: boolean; + + /** + * Whether to parse XML or JSON response bodies automagically. + * Defaults to true. + * You can also set this to 'xml' or 'json' in which case Needle + * will only parse the response if the content type matches. + */ + parse_response?: boolean; + /** + * Alias for parse_response + */ + parse?: boolean; + + /** + * Whether to parse response’s Set-Cookie header. + * Defaults to true. + * If parsed, response cookies will be available at resp.cookies. + */ + parse_cookies?: boolean; + /** + * Dump response output to file. + * This occurs after parsing and charset decoding is done. + */ + output?: string; + } + + interface RedirectOptions { + /** + * Sends the cookies received in the set-cookie header + * as part of the following request. + * false by default. + */ + follow_set_cookie?: boolean; + /** + * Sets the 'Referer' header to the requested URI + * when following a redirect. + * false by default. + */ + follow_set_referer?: boolean; + /** + * If enabled, resends the request using the original verb + * instead of being rewritten to get with no data. + * false by default. + */ + follow_keep_method?: boolean; + /** + * When true, Needle will only follow redirects that point to the same host + * as the original request. + * false by default. + */ + follow_if_same_host?: boolean; + /** + * When true, Needle will only follow redirects that point to the same protocol + * as the original request. + * false by default. + */ + follow_if_same_protocol?: boolean; + } + + interface KeyValue { + [key: string]: any; + } + + type BodyData = Buffer | KeyValue | NodeJS.ReadableStream | string | null; } -type ReadableStream = NodeJS.ReadableStream; - -type NeedleCallback = (error: Error, response: NeedleResponse, body: any) => void; - -interface Cookies { - [name: string]: any; -} - -type NeedleOptions = RequestOptions & ResponseOptions & RedirectOptions & https.RequestOptions; - -interface RequestOptions { - /** - * Returns error if connection takes longer than X milisecs to establish. - * Defaults to 10000 (10 secs). 0 means no timeout. - */ - open_timeout?: number; - /** - * Alias for open_timeout - */ - timeout?: number; - - /** - * Returns error if data transfer takes longer than X milisecs, - * after connection is established. Defaults to 0 (no timeout). - */ - read_timeout?: number; - /** - * Number of redirects to follow. Defaults to 0. - */ - follow_max?: number; - /** - * Alias for follow_max - */ - follow?: number; - - /** - * Enables multipart/form-data encoding. Defaults to false. - * Use it when uploading files. - */ - multipart?: boolean; - /** - * Uses an http.Agent of your choice, instead of the global, default one. - * Useful for tweaking the behaviour at the connection level, such as when doing tunneling. - */ - agent?: http.Agent | boolean; - /** - * Forwards request through HTTP(s) proxy. - * Eg. proxy: 'http://user:pass@proxy.server.com:3128'. - * For more advanced proxying/tunneling use a custom agent. - */ - proxy?: string; - /** - * Object containing custom HTTP headers for request. - */ - headers?: {}; - /** - * Determines what to do with provided username/password. - * Options are auto, digest or basic (default). - * auto will detect the type of authentication depending on the response headers. - */ - auth?: "auto" | "digest" | "basic"; - /** - * When true, sets content type to application/json and sends request body as JSON string, - * instead of a query string. - */ - json?: boolean; - /** - * When sending streams, this lets manually set the Content-Length header - * --if the stream's bytecount is known beforehand--, - * preventing ECONNRESET (socket hang up) errors on some servers that misbehave - * when receiving payloads of unknown size. - * Set it to 0 and Needle will get and set the stream's length, - * or leave unset for the default behavior, - * which is no Content-Length header for stream payloads. - */ - stream_length?: number; - - // These properties are overwritten by those in the 'headers' field - /** - * Builds and sets a Cookie header from a { key: 'value' } object. - */ - cookies?: Cookies; - /** - * If true, sets 'Accept-Encoding' header to 'gzip,deflate', - * and inflates content if zipped. - * Defaults to false. - */ - compressed?: boolean; - // Overwritten if present in the URI - /** - * For HTTP basic auth. - */ - username?: string; - /** - * For HTTP basic auth. Requires username to be passed, but is optional. - */ - password?: string; - /** - * Sets 'Accept' HTTP header. Defaults to */*. - */ - accept?: string; - /** - * Sets 'Connection' HTTP header. - * Not set by default, unless running Node < 0.11.4 - * in which case it defaults to close. - */ - connection?: string; - /** - * Sets the 'User-Agent' HTTP header. - * Defaults to Needle/{version} (Node.js {node_version}). - */ - user_agent?: string; - /** - * Sets the 'Content-Type' header. - * Unset by default, unless you're sending data - * in which case it's set accordingly to whatever is being sent - * (application/x-www-form-urlencoded, application/json or multipart/form-data). - * That is, of course, unless the option is passed, - * either here or through options.headers. - */ - content_type?: string; -} - -interface ResponseOptions { - /** - * Whether to decode the text responses to UTF-8, - * if Content-Type header shows a different charset. Defaults to true. - */ - decode_response?: boolean; - /** - * Alias for decode_response - */ - decode?: boolean; - - /** - * Whether to parse XML or JSON response bodies automagically. - * Defaults to true. - * You can also set this to 'xml' or 'json' in which case Needle - * will only parse the response if the content type matches. - */ - parse_response?: boolean; - /** - * Alias for parse_response - */ - parse?: boolean; - - /** - * Whether to parse response’s Set-Cookie header. - * Defaults to true. - * If parsed, response cookies will be available at resp.cookies. - */ - parse_cookies?: boolean; - /** - * Dump response output to file. - * This occurs after parsing and charset decoding is done. - */ - output?: string; -} - -interface RedirectOptions { - /** - * Sends the cookies received in the set-cookie header - * as part of the following request. - * false by default. - */ - follow_set_cookie?: boolean; - /** - * Sets the 'Referer' header to the requested URI - * when following a redirect. - * false by default. - */ - follow_set_referer?: boolean; - /** - * If enabled, resends the request using the original verb - * instead of being rewritten to get with no data. - * false by default. - */ - follow_keep_method?: boolean; - /** - * When true, Needle will only follow redirects that point to the same host - * as the original request. - * false by default. - */ - follow_if_same_host?: boolean; - /** - * When true, Needle will only follow redirects that point to the same protocol - * as the original request. - * false by default. - */ - follow_if_same_protocol?: boolean; -} - -interface KeyValue { - [key: string]: any; -} - -type BodyData = Buffer | KeyValue | NodeJS.ReadableStream | string | null; +/** + * Calling needle() directly returns a Promise. + * + * Since needle 2.0 + * @param method Designates an HTTP verb for the request. + */ +declare function needle(method: core.NeedleReadonlyHttpVerbs, url: string, options?: core.NeedleOptions): Promise +/** + * Calling needle() directly returns a Promise. + * + * Since needle 2.0 + * @param method Designates an HTTP verb for the request. + * @param data May be null when issuing an HTTP DELETE request, but you need to explicity pass it. + */ +declare function needle(method: core.NeedleHttpVerbs, url: string, data: core.BodyData, options?: core.NeedleOptions): Promise declare namespace needle { + type BodyData = core.BodyData; + interface NeedleCallback extends core.NeedleCallback { } + type NeedleHttpVerbs = core.NeedleHttpVerbs; + export interface NeedleOptions extends core.NeedleOptions { } + interface ReadableStream extends core.ReadableStream { } + /** * Lets override the defaults for all future requests. */ @@ -282,7 +312,7 @@ declare namespace needle { * unless you pass a json: true option. * @param method Designates an HTTP verb for the request. */ - export function request(method: string, url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; + export function request(method: NeedleHttpVerbs, url: string, data: BodyData, callback?: NeedleCallback): ReadableStream; /** * Generic request. * This not only allows for flexibility, but also lets you perform a GET request with data, @@ -290,7 +320,7 @@ declare namespace needle { * unless you pass a json: true option. * @param method Designates an HTTP verb for the request. */ - export function request(method: string, url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; + export function request(method: NeedleHttpVerbs, url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; } export = needle; \ No newline at end of file diff --git a/types/needle/needle-tests.ts b/types/needle/needle-tests.ts index 1c5090027a..268e64b23e 100644 --- a/types/needle/needle-tests.ts +++ b/types/needle/needle-tests.ts @@ -2,6 +2,10 @@ import * as needle from "needle"; import * as fs from "fs"; function Usage() { + // using promises + needle('get', 'http://ifconfig.me/all.json') + .then((resp) => console.log(resp.body.ip_addr)); + // using callback needle.get('http://ifconfig.me/all.json', function (error, response) { if (!error) @@ -9,16 +13,25 @@ function Usage() { }); // using streams - var out: any; // = fs.createWriteStream('logo.png'); + var out: any; needle.get('https://google.com/images/logo.png').pipe(out); } function ResponsePipeline() { + // using promises + needle('get', 'http://stackoverflow.com/feeds', { compressed: true }) + .then((resp) => { + console.log(resp.body); // this little guy won't be a Gzipped binary blob + // but a nice object containing all the latest entries + }); + + // using callback needle.get('http://stackoverflow.com/feeds', { compressed: true }, function (err, resp) { console.log(resp.body); // this little guy won't be a Gzipped binary blob // but a nice object containing all the latest entries }); + // using streams var options = { compressed: true, follow: 5, @@ -36,17 +49,19 @@ function ResponsePipeline() { } }); - stream.on('end', function(err: any) { + stream.on('end', function (err: any) { // if our request had an error, our 'end' event will tell us. if (!err) console.log('Great success!'); }) } function API_head() { - var options = { - open_timeout: 5000 // if we don't get a response in 5 seconds, boom. - }; + // using promises + needle('head', 'https://my.backend.server.com') + .then((resp) => console.log('Yup, still alive.')) + .catch((err: Error) => console.log('Shoot! Something is wrong: ' + err.message)); + // using callback needle.head('https://my.backend.server.com', function (err, resp) { if (err) { console.log('Shoot! Something is wrong: ' + err.message); @@ -58,6 +73,13 @@ function API_head() { } function API_get() { + // using promises + needle('get', 'google.com/search?q=syd+barrett') + .then((resp) => { + // if no http:// is found, Needle will automagically prepend it. + }); + + // using callback needle.get('google.com/search?q=syd+barrett', function (err, resp) { // if no http:// is found, Needle will automagically prepend it. }); @@ -68,6 +90,13 @@ function API_post() { headers: { 'X-Custom-Header': 'Bumbaway atuna' } }; + // using promises + needle('post', 'https://my.app.com/endpoint', 'foo=bar', options) + .then((resp) => { + // you can pass params as a string or as an object. + }); + + // using callback needle.post('https://my.app.com/endpoint', 'foo=bar', options, function (err, resp) { // you can pass params as a string or as an object. }); @@ -82,6 +111,13 @@ function API_put() { } }; + // using promises + needle('put', 'https://api.app.com/v2', nested) + .then((resp) => { + console.log('Got ' + resp.bytes + ' bytes.') // another nice treat from this handsome fella. + }); + + // using callback needle.put('https://api.app.com/v2', nested, function (err, resp) { console.log('Got ' + resp.bytes + ' bytes.') // another nice treat from this handsome fella. }); @@ -93,6 +129,13 @@ function API_delete() { password: 'x' }; + // using promises + needle('delete', 'https://api.app.com/messages/123', null, options) + .then((resp) => { + // in this case, data may be null, but you need to explicity pass it. + }); + + // using callback needle.delete('https://api.app.com/messages/123', null, options, function (err, resp) { // in this case, data may be null, but you need to explicity pass it. }); @@ -104,39 +147,78 @@ function API_request() { page: 2, }; + // using promises + needle('get', 'forum.com/search', params) + .then((resp) => { + if (resp.statusCode == 200) + console.log(resp.body); // here you go, mister. + }); + + needle('get', 'forum.com/search', params, { json: true }) + .then((resp) => { + if (resp.statusCode == 200) console.log('It worked!'); + }); + + // using callback needle.request('get', 'forum.com/search', params, function (err, resp) { if (!err && resp.statusCode == 200) console.log(resp.body); // here you go, mister. }); - needle.request('get', 'forum.com/search', params, { json: true }, function(err, resp) { + needle.request('get', 'forum.com/search', params, { json: true }, function (err, resp) { if (resp.statusCode == 200) console.log('It worked!'); }); } function HttpGetWithBasicAuth() { - needle.get('https://api.server.com', { username: 'you', password: 'secret' }, function(err, resp) { + // using promises + needle('get', 'https://api.server.com', { username: 'you', password: 'secret' }) + .then((resp) => { + // used HTTP auth + }); + needle('get', 'https://username:password@api.server.com') + .then((resp) => { + // used HTTP auth from URL + }); + + // using callback + needle.get('https://api.server.com', { username: 'you', password: 'secret' }, function (err, resp) { // used HTTP auth }); - needle.get('https://username:password@api.server.com', function(err, resp) { + needle.get('https://username:password@api.server.com', function (err, resp) { // used HTTP auth from URL }); } function DigestAuth() { - needle.get('other.server.com', { username: 'you', password: 'secret', auth: 'digest' }, function(err, resp, body) { + // using promises + needle('get', 'other.server.com', { username: 'you', password: 'secret', auth: 'digest' }) + .then((resp) => { + // needle prepends 'http://' to your URL, if missing + }); + + // using callback + needle.get('other.server.com', { username: 'you', password: 'secret', auth: 'digest' }, function (err, resp, body) { // needle prepends 'http://' to your URL, if missing }); } function CustomAcceptHeaderDeflate() { - var options = { + var options: needle.NeedleOptions = { compressed: true, follow: 10, accept: 'application/vnd.github.full+json' } - needle.get('api.github.com/users/tomas', options, function(err, resp, body) { + // using promises + needle('get', 'api.github.com/users/tomas', options) + .then((resp) => { + // body will contain a JSON.parse(d) object + // if parsing fails, you'll simply get the original body + }); + + // using callback + needle.get('api.github.com/users/tomas', options, function (err, resp, body) { // body will contain a JSON.parse(d) object // if parsing fails, you'll simply get the original body }); @@ -144,25 +226,41 @@ function CustomAcceptHeaderDeflate() { } function Various() { + // using promises + needle('get', 'https://news.ycombinator.com/rss') + .then((resp) => { + // if xml2js is installed, you'll get a nice object containing the nodes in the RSS + }); + needle('get', 'http://upload.server.com/tux.png', { output: '/tmp/tux.png' }) + .then((resp) => { + // you can dump any response to a file, not only binaries. + }); + needle('get', 'http://search.npmjs.org', { proxy: 'http://localhost:1234' }) + .then((resp) => { + // request passed through proxy + }); - needle.get('https://news.ycombinator.com/rss', function(err, resp, body) { + // using callback + needle.get('https://news.ycombinator.com/rss', function (err, resp, body) { // if xml2js is installed, you'll get a nice object containing the nodes in the RSS }); - needle.get('http://upload.server.com/tux.png', { output: '/tmp/tux.png' }, function(err, resp, body) { + needle.get('http://upload.server.com/tux.png', { output: '/tmp/tux.png' }, function (err, resp, body) { // you can dump any response to a file, not only binaries. }); - needle.get('http://search.npmjs.org', { proxy: 'http://localhost:1234' }, function(err, resp, body) { + needle.get('http://search.npmjs.org', { proxy: 'http://localhost:1234' }, function (err, resp, body) { // request passed through proxy }); + + // using streams const stream1 = needle.get('http://www.as35662.net/100.log'); - stream1.on('readable', function() { + stream1.on('readable', function () { let chunk: any; while (chunk = stream1.read()) { console.log('got data: ', chunk); } }); const stream2 = needle.get('http://jsonplaceholder.typicode.com/db', { parse: true }); - stream2.on('readable', function() { + stream2.on('readable', function () { let node: any; // our stream2 will only emit a single JSON root node. @@ -170,15 +268,6 @@ function Various() { console.log('got data: ', node); } }); - - /* - // Sample omitted, no JSONStream - needle.get('http://jsonplaceholder.typicode.com/db', { parse: true }) - .pipe(new JSONStream.parse('posts.*.title')) - .on('data', function (obj) { - console.log('got post title: %s', obj); - }); - */ } function FileUpload() { @@ -187,10 +276,21 @@ function FileUpload() { image: { file: '/home/tomas/linux.png', content_type: 'image/png' } }; - needle.post('http://my.other.app.com', data, { multipart: true }, function(err, resp, body) { + // using promises + needle('post', 'http://my.other.app.com', data, { multipart: true }) + .then((resp) => { + // needle will read the file and include it in the form-data as binary + }); + needle('put', 'https://api.app.com/v2', fs.createReadStream('myfile.txt')) + .then((resp) => { + // stream content is uploaded verbatim + }); + + // using callback + needle.post('http://my.other.app.com', data, { multipart: true }, function (err, resp, body) { // needle will read the file and include it in the form-data as binary }); - needle.put('https://api.app.com/v2', fs.createReadStream('myfile.txt'), function(err, resp, body) { + needle.put('https://api.app.com/v2', fs.createReadStream('myfile.txt'), function (err, resp, body) { // stream content is uploaded verbatim }); } @@ -206,7 +306,16 @@ function Multipart() { } } - needle.post('http://somewhere.com/over/the/rainbow', data, { multipart: true }, function(err, resp, body) { + // using promises + needle('post', 'http://somewhere.com/over/the/rainbow', data, { multipart: true }) + .then((resp) => { + // if you see, when using buffers we need to pass the filename for the multipart body. + // you can also pass a filename when using the file path method, in case you want to override + // the default filename to be received on the other end. + }); + + // using callback + needle.post('http://somewhere.com/over/the/rainbow', data, { multipart: true }, function (err, resp, body) { // if you see, when using buffers we need to pass the filename for the multipart body. // you can also pass a filename when using the file path method, in case you want to override // the default filename to be received on the other end. @@ -222,7 +331,15 @@ function MultipartContentType() { } } - needle.post('http://test.com/', data, { timeout: 5000, multipart: true }, function(err, resp, body) { + // using promises + needle('post', 'http://test.com/', data, { timeout: 5000, multipart: true }) + .then((resp) => { + // in this case, if the request takes more than 5 seconds + // the callback will return a [Socket closed] error + }); + + // using callback + needle.post('http://test.com/', data, { timeout: 5000, multipart: true }, function (err, resp, body) { // in this case, if the request takes more than 5 seconds // the callback will return a [Socket closed] error }); From 4a43d710f9ccba8ec05b39e0e8a7a040db2d29d0 Mon Sep 17 00:00:00 2001 From: Freek Wielstra Date: Fri, 1 Sep 2017 13:00:18 +0200 Subject: [PATCH 146/316] Add textOverflow and whiteSpace properties to CSSObject [xAxis.labels.style](http://api.highcharts.com/highcharts/xAxis.labels.style) describes these properties: > Use `whiteSpace: 'nowrap'` to prevent wrapping of category labels > Use `textOverflow: 'none'` to prevent ellipsis (dots). --- types/highcharts/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index b192a5bd63..863595bd0e 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -1994,6 +1994,8 @@ declare namespace Highcharts { position?: string; top?: string; textOutline?: string; + textOverflow?: string; + whiteSpace?: string; } interface CreditsOptions { From dde5981408bbdda9792ed9fb86f76f7ef05d1d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 13:22:24 +0200 Subject: [PATCH 147/316] Add overload to many methods to allow skip params attribute --- types/nano/index.d.ts | 162 ++++++++++++++++++++++++++---------------- 1 file changed, 101 insertions(+), 61 deletions(-) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 59ff766010..37e7491436 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -31,8 +31,10 @@ declare namespace nano { dinosaur: RequestFunction; auth(username: string, userpass: string, callback?: Callback): Request; session(callback?: Callback): Request; - updates(params?: UpdatesParams, callback?: Callback): Request; - followUpdates(params?: any, callback?: Callback): EventEmitter; + updates(callback?: Callback): Request; + updates(params: UpdatesParams, callback?: Callback): Request; + followUpdates(callback?: Callback): EventEmitter; + followUpdates(params: any, callback?: Callback): EventEmitter; uuids(num: number, callback: Callback): Request; } @@ -42,145 +44,183 @@ declare namespace nano { destroy(name: string, callback?: Callback): Request; list(callback?: Callback): Request; use(db: string): DocumentScope; - compact(name: string, designname?: string, callback?: Callback): Request; + compact(name: string, callback?: Callback): Request; + compact(name: string, designname: string, callback?: Callback): Request; + replicate( + source: string | DocumentScope, + target: string | DocumentScope, + callback?: Callback + ): Request replicate( source: string | DocumentScope, target: string | DocumentScope, options?: any, callback?: Callback ): Request; - changes(name: string, params?: any, callback?: Callback): Request; - follow( - source: string, - params?: DatabaseScopeFollowUpdatesParams, - callback?: Callback - ): EventEmitter; - followUpdates(params?: any, callback?: Callback): EventEmitter; - updates(params?: UpdatesParams, callback?: Callback): Request; + changes(name: string, callback?: Callback): Request; + changes(name: string, params: any, callback?: Callback): Request; + follow(source: string, callback?: Callback): EventEmitter; + follow(source: string, params: DatabaseScopeFollowUpdatesParams, callback?: Callback): EventEmitter; + followUpdates(callback?: Callback): EventEmitter; + followUpdates(params: any, callback?: Callback): EventEmitter; + updates(callback?: Callback): Request; + updates(params: UpdatesParams, callback?: Callback): Request; } interface DocumentScope { readonly config: ServerConfig; info(callback?: Callback): Request; + replicate( + target: string | DocumentScope, + callback?: Callback + ): Request replicate( target: string | DocumentScope, - options?: any, - callback?: Callback - ): Request; - compact(callback?: Callback): Request; - changes(params?: any, callback?: Callback): Request; - follow( - params?: DocumentScopeFollowUpdatesParams, - callback?: Callback - ): EventEmitter; - auth(username: string, userpass: string, callback?: Callback): Request; - session(callback?: Callback): Request; - insert(document: any, params?: any, callback?: Callback): Request; - get(docname: string, params?: any, callback?: Callback): Request; - head(docname: string, callback: Callback): Request; - copy( - src_document: string, - dst_document: string, options: any, callback?: Callback ): Request; + compact(callback?: Callback): Request; + changes(callback?: Callback): Request; + changes(params: any, callback?: Callback): Request; + follow(callback?: Callback): EventEmitter; + follow(params: DocumentScopeFollowUpdatesParams, callback?: Callback): EventEmitter; + auth(username: string, userpass: string, callback?: Callback): Request; + session(callback?: Callback): Request; + insert(document: any, callback?: Callback): Request; + insert(document: any, params: any, callback?: Callback): Request; + get(docname: string, callback?: Callback): Request; + get(docname: string, params: any, callback?: Callback): Request; + head(docname: string, callback: Callback): Request; + copy(src_document: string, dst_document: string, callback?: Callback): Request; + copy(src_document: string, dst_document: string, options: any, callback?: Callback): Request; destroy(docname: string, rev: string, callback?: Callback): Request; - bulk( - docs: BulkModifyDocsWrapper, - params?: any, - callback?: Callback - ): Request; - list(params?: any, callback?: Callback): Request; - fetch( - docnames: BulkFetchDocsWrapper, - params?: any, - callback?: Callback - ): Request; - fetchRevs( - docnames: BulkFetchDocsWrapper, - params?: any, - callback?: Callback - ): Request; + bulk(docs: BulkModifyDocsWrapper, callback?: Callback): Request; + bulk(docs: BulkModifyDocsWrapper, params?: any, callback?: Callback): Request; + list(callback?: Callback): Request; + list(params: any, callback?: Callback): Request; + fetch(docnames: BulkFetchDocsWrapper, callback?: Callback): Request; + fetch(docnames: BulkFetchDocsWrapper, params: any, callback?: Callback): Request; + fetchRevs(docnames: BulkFetchDocsWrapper, callback?: Callback): Request; + fetchRevs(docnames: BulkFetchDocsWrapper, params?: any, callback?: Callback): Request; multipart: Multipart; attachment: Attachment; show( designname: string, showname: string, doc_id: string, - params?: any, + callback?: Callback + ): Request; + show( + designname: string, + showname: string, + doc_id: string, + params: any, callback?: Callback ): Request; atomic( designname: string, updatename: string, docname: string, - body?: any, + callback?: Callback + ): Request; + atomic( + designname: string, + updatename: string, + docname: string, + body: any, callback?: Callback ): Request; updateWithHandler( designname: string, updatename: string, docname: string, - body?: any, + callback?: Callback + ): Request; + updateWithHandler( + designname: string, + updatename: string, + docname: string, + body: any, callback?: Callback ): Request; search( designname: string, searchname: string, - params?: any, + callback?: Callback + ): Request; + search( + designname: string, + searchname: string, + params: any, callback?: Callback ): Request; spatial( ddoc: string, viewname: string, - params?: any, + callback?: Callback + ): Request; + spatial( + ddoc: string, + viewname: string, + params: any, callback?: Callback ): Request; view( designname: string, viewname: string, - params?: any, + callback?: Callback + ): Request; + view( + designname: string, + viewname: string, + params: any, callback?: Callback ): Request; viewWithList( designname: string, viewname: string, listname: string, - params?: any, + callback?: Callback + ): Request; + viewWithList( + designname: string, + viewname: string, + listname: string, + params: any, callback?: Callback ): Request; server: ServerScope; } interface Multipart { - insert( - doc: any, - attachments: any[], - params: string | any, - callback?: Callback - ): Request; - get(docname: string, params?: string | any, callback?: Callback): Request; + insert(doc: any, attachments: any[], callback?: Callback): Request; + insert(doc: any, attachments: any[], params: string | any, callback?: Callback): Request; + get(docname: string, callback?: Callback): Request; + get(docname: string, params: string | any, callback?: Callback): Request; } interface Attachment { + insert(docname: string, attname: string, att: any, contenttype: string, callback?: Callback): Request; insert( docname: string, attname: string, att: any, contenttype: string, - params?: any, + params: any, callback?: Callback ): Request; + get(docname: string, attname: string, callback?: Callback): Request; get( docname: string, attname: string, - params?: any, + params: any, callback?: Callback ): Request; + destroy(docname: string, attname: string, callback?: Callback): Request; destroy( docname: string, attname: string, - params?: any, + params: any, callback?: Callback ): Request; } From 8a21c431de62d15672802ff248ce1f699a0c787a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 13:23:06 +0200 Subject: [PATCH 148/316] Imports in alphabetic order --- types/nano/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 37e7491436..7a03be1684 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { EventEmitter } from "events"; -import { Request, CoreOptions } from "request"; +import { CoreOptions, Request } from "request"; declare function nano( config: nano.Configuration | string From 0b8c9754b2d83107d28a6bcd256b77de4a10ed73 Mon Sep 17 00:00:00 2001 From: Anton Vasin Date: Fri, 1 Sep 2017 14:50:14 +0300 Subject: [PATCH 149/316] Allow to use function for linkTo --- types/storybook__addon-links/index.d.ts | 4 +++- types/storybook__addon-links/storybook__addon-links-tests.tsx | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/types/storybook__addon-links/index.d.ts b/types/storybook__addon-links/index.d.ts index 802e193afb..08f3648855 100644 --- a/types/storybook__addon-links/index.d.ts +++ b/types/storybook__addon-links/index.d.ts @@ -6,4 +6,6 @@ import * as React from 'react'; -export function linkTo(book: string, kind?: string): React.MouseEventHandler; +export type LinkToFunction = (...args: any[]) => string; + +export function linkTo(book: string | LinkToFunction, kind?: string | LinkToFunction): React.MouseEventHandler; diff --git a/types/storybook__addon-links/storybook__addon-links-tests.tsx b/types/storybook__addon-links/storybook__addon-links-tests.tsx index 9b3abb6f6e..2f138daf20 100644 --- a/types/storybook__addon-links/storybook__addon-links-tests.tsx +++ b/types/storybook__addon-links/storybook__addon-links-tests.tsx @@ -8,4 +8,7 @@ storiesOf('Button', module) )) .add('Second', () => ( + )) + .add('With function', () => ( + )); From e84cf3ef7bdc333cb439e615a034ca2bc6176c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Wachter?= Date: Fri, 1 Sep 2017 14:31:45 +0200 Subject: [PATCH 150/316] [pg]: Add a "Notification" type and pass it to the notification event listener See: https://node-postgres.com/api/client#client-on-39-notification-39-notification-notification-gt-void-gt-void --- types/pg/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index da6f4db575..258188c937 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -60,6 +60,12 @@ export interface QueryResult { rows: any[]; } +export interface Notification { + processId: number, + channel: string, + payload?: string +} + export interface ResultBuilder extends QueryResult { addRow(row: any): void; } @@ -109,7 +115,7 @@ export declare class Client extends events.EventEmitter { on(event: "drain", listener: () => void): this; on(event: "error", listener: (err: Error) => void): this; - on(event: "notification" | "notice", listener: (message: any) => void): this; + on(event: "notification" | "notice", listener: (message: Notification) => void): this; on(event: "end", listener: () => void): this; } From 93f5c90355739d6736bbcd34c7712be2b67a7cce Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Fri, 1 Sep 2017 15:45:11 +0300 Subject: [PATCH 151/316] Adding tslint configuration --- types/needle/tslint.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 types/needle/tslint.json diff --git a/types/needle/tslint.json b/types/needle/tslint.json new file mode 100644 index 0000000000..7313bfcd80 --- /dev/null +++ b/types/needle/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-conditional-assignment": false, + "no-empty-interface": false, + "strict-export-declare-modifiers": false + } +} \ No newline at end of file From bc432e91e723840fbc29d7b96cdc9669b1ebe43c Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Fri, 1 Sep 2017 15:48:53 +0300 Subject: [PATCH 152/316] Make tslint rules for needle follow the repository defaults as much as possible --- types/needle/tslint.json | 1 - 1 file changed, 1 deletion(-) diff --git a/types/needle/tslint.json b/types/needle/tslint.json index 7313bfcd80..70429c253f 100644 --- a/types/needle/tslint.json +++ b/types/needle/tslint.json @@ -2,7 +2,6 @@ "extends": "dtslint/dt.json", "rules": { "no-conditional-assignment": false, - "no-empty-interface": false, "strict-export-declare-modifiers": false } } \ No newline at end of file From 805c421c26c007ff51869089101fa89c0aad5430 Mon Sep 17 00:00:00 2001 From: Matanel Sindilevich Date: Fri, 1 Sep 2017 15:50:38 +0300 Subject: [PATCH 153/316] Fixing code to conform to tslint rules --- types/needle/index.d.ts | 17 +++--- types/needle/needle-tests.ts | 100 +++++++++++++++++------------------ 2 files changed, 58 insertions(+), 59 deletions(-) diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index 097cc8ba08..cc3fa4ff32 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/tomas/needle // Definitions by: San Chen , Niklas Mollenhauer , Matanel Sindilevich // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// @@ -223,26 +224,26 @@ declare namespace core { /** * Calling needle() directly returns a Promise. - * + * * Since needle 2.0 * @param method Designates an HTTP verb for the request. */ -declare function needle(method: core.NeedleReadonlyHttpVerbs, url: string, options?: core.NeedleOptions): Promise +declare function needle(method: core.NeedleReadonlyHttpVerbs, url: string, options?: core.NeedleOptions): Promise; /** * Calling needle() directly returns a Promise. - * + * * Since needle 2.0 * @param method Designates an HTTP verb for the request. * @param data May be null when issuing an HTTP DELETE request, but you need to explicity pass it. */ -declare function needle(method: core.NeedleHttpVerbs, url: string, data: core.BodyData, options?: core.NeedleOptions): Promise +declare function needle(method: core.NeedleHttpVerbs, url: string, data: core.BodyData, options?: core.NeedleOptions): Promise; declare namespace needle { type BodyData = core.BodyData; - interface NeedleCallback extends core.NeedleCallback { } + type NeedleCallback = core.NeedleCallback; type NeedleHttpVerbs = core.NeedleHttpVerbs; - export interface NeedleOptions extends core.NeedleOptions { } - interface ReadableStream extends core.ReadableStream { } + export type NeedleOptions = core.NeedleOptions; + type ReadableStream = core.ReadableStream; /** * Lets override the defaults for all future requests. @@ -323,4 +324,4 @@ declare namespace needle { export function request(method: NeedleHttpVerbs, url: string, data: BodyData, options?: NeedleOptions, callback?: NeedleCallback): ReadableStream; } -export = needle; \ No newline at end of file +export = needle; diff --git a/types/needle/needle-tests.ts b/types/needle/needle-tests.ts index 268e64b23e..e8f2efee20 100644 --- a/types/needle/needle-tests.ts +++ b/types/needle/needle-tests.ts @@ -7,13 +7,13 @@ function Usage() { .then((resp) => console.log(resp.body.ip_addr)); // using callback - needle.get('http://ifconfig.me/all.json', function (error, response) { + needle.get('http://ifconfig.me/all.json', (error, response) => { if (!error) console.log(response.body.ip_addr); // JSON decoding magic. :) }); // using streams - var out: any; + const out = fs.createWriteStream('file.txt'); needle.get('https://google.com/images/logo.png').pipe(out); } @@ -26,13 +26,13 @@ function ResponsePipeline() { }); // using callback - needle.get('http://stackoverflow.com/feeds', { compressed: true }, function (err, resp) { + needle.get('http://stackoverflow.com/feeds', { compressed: true }, (err, resp) => { console.log(resp.body); // this little guy won't be a Gzipped binary blob // but a nice object containing all the latest entries }); // using streams - var options = { + const options = { compressed: true, follow: 5, rejectUnauthorized: true @@ -40,19 +40,19 @@ function ResponsePipeline() { // in this case, we'll ask Needle to follow redirects (disabled by default), // but also to verify their SSL certificates when connecting. - var stream = needle.get('https://backend.server.com/everything.html', options); + const stream = needle.get('https://backend.server.com/everything.html', options); - stream.on('readable', function () { - var data: any; + stream.on('readable', () => { + let data: any; while (data = stream.read()) { console.log(data.toString()); } }); - stream.on('end', function (err: any) { + stream.on('end', (err: any) => { // if our request had an error, our 'end' event will tell us. if (!err) console.log('Great success!'); - }) + }); } function API_head() { @@ -62,11 +62,10 @@ function API_head() { .catch((err: Error) => console.log('Shoot! Something is wrong: ' + err.message)); // using callback - needle.head('https://my.backend.server.com', function (err, resp) { + needle.head('https://my.backend.server.com', (err, resp) => { if (err) { console.log('Shoot! Something is wrong: ' + err.message); - } - else { + } else { console.log('Yup, still alive.'); } }); @@ -80,13 +79,13 @@ function API_get() { }); // using callback - needle.get('google.com/search?q=syd+barrett', function (err, resp) { + needle.get('google.com/search?q=syd+barrett', (err, resp) => { // if no http:// is found, Needle will automagically prepend it. }); } function API_post() { - var options = { + const options = { headers: { 'X-Custom-Header': 'Bumbaway atuna' } }; @@ -97,13 +96,13 @@ function API_post() { }); // using callback - needle.post('https://my.app.com/endpoint', 'foo=bar', options, function (err, resp) { + needle.post('https://my.app.com/endpoint', 'foo=bar', options, (err, resp) => { // you can pass params as a string or as an object. }); } function API_put() { - var nested = { + const nested = { params: { are: { also: 'supported' @@ -114,17 +113,17 @@ function API_put() { // using promises needle('put', 'https://api.app.com/v2', nested) .then((resp) => { - console.log('Got ' + resp.bytes + ' bytes.') // another nice treat from this handsome fella. + console.log(`Got ${resp.bytes} bytes.`); // another nice treat from this handsome fella. }); // using callback - needle.put('https://api.app.com/v2', nested, function (err, resp) { - console.log('Got ' + resp.bytes + ' bytes.') // another nice treat from this handsome fella. + needle.put('https://api.app.com/v2', nested, (err, resp) => { + console.log(`Got ${resp.bytes} bytes.`); // another nice treat from this handsome fella. }); } function API_delete() { - var options = { + const options = { username: 'fidelio', password: 'x' }; @@ -136,13 +135,13 @@ function API_delete() { }); // using callback - needle.delete('https://api.app.com/messages/123', null, options, function (err, resp) { + needle.delete('https://api.app.com/messages/123', null, options, (err, resp) => { // in this case, data may be null, but you need to explicity pass it. }); } function API_request() { - var params = { + const params = { q: 'a very smart query', page: 2, }; @@ -150,23 +149,23 @@ function API_request() { // using promises needle('get', 'forum.com/search', params) .then((resp) => { - if (resp.statusCode == 200) + if (resp.statusCode === 200) console.log(resp.body); // here you go, mister. }); needle('get', 'forum.com/search', params, { json: true }) .then((resp) => { - if (resp.statusCode == 200) console.log('It worked!'); + if (resp.statusCode === 200) console.log('It worked!'); }); // using callback - needle.request('get', 'forum.com/search', params, function (err, resp) { - if (!err && resp.statusCode == 200) + needle.request('get', 'forum.com/search', params, (err, resp) => { + if (!err && resp.statusCode === 200) console.log(resp.body); // here you go, mister. }); - needle.request('get', 'forum.com/search', params, { json: true }, function (err, resp) { - if (resp.statusCode == 200) console.log('It worked!'); + needle.request('get', 'forum.com/search', params, { json: true }, (err, resp) => { + if (resp.statusCode === 200) console.log('It worked!'); }); } @@ -182,10 +181,10 @@ function HttpGetWithBasicAuth() { }); // using callback - needle.get('https://api.server.com', { username: 'you', password: 'secret' }, function (err, resp) { + needle.get('https://api.server.com', { username: 'you', password: 'secret' }, (err, resp) => { // used HTTP auth }); - needle.get('https://username:password@api.server.com', function (err, resp) { + needle.get('https://username:password@api.server.com', (err, resp) => { // used HTTP auth from URL }); } @@ -198,17 +197,17 @@ function DigestAuth() { }); // using callback - needle.get('other.server.com', { username: 'you', password: 'secret', auth: 'digest' }, function (err, resp, body) { + needle.get('other.server.com', { username: 'you', password: 'secret', auth: 'digest' }, (err, resp, body) => { // needle prepends 'http://' to your URL, if missing }); } function CustomAcceptHeaderDeflate() { - var options: needle.NeedleOptions = { + const options: needle.NeedleOptions = { compressed: true, follow: 10, accept: 'application/vnd.github.full+json' - } + }; // using promises needle('get', 'api.github.com/users/tomas', options) @@ -218,11 +217,10 @@ function CustomAcceptHeaderDeflate() { }); // using callback - needle.get('api.github.com/users/tomas', options, function (err, resp, body) { + needle.get('api.github.com/users/tomas', options, (err, resp, body) => { // body will contain a JSON.parse(d) object // if parsing fails, you'll simply get the original body }); - } function Various() { @@ -241,26 +239,26 @@ function Various() { }); // using callback - needle.get('https://news.ycombinator.com/rss', function (err, resp, body) { + needle.get('https://news.ycombinator.com/rss', (err, resp, body) => { // if xml2js is installed, you'll get a nice object containing the nodes in the RSS }); - needle.get('http://upload.server.com/tux.png', { output: '/tmp/tux.png' }, function (err, resp, body) { + needle.get('http://upload.server.com/tux.png', { output: '/tmp/tux.png' }, (err, resp, body) => { // you can dump any response to a file, not only binaries. }); - needle.get('http://search.npmjs.org', { proxy: 'http://localhost:1234' }, function (err, resp, body) { + needle.get('http://search.npmjs.org', { proxy: 'http://localhost:1234' }, (err, resp, body) => { // request passed through proxy }); // using streams const stream1 = needle.get('http://www.as35662.net/100.log'); - stream1.on('readable', function () { + stream1.on('readable', () => { let chunk: any; while (chunk = stream1.read()) { console.log('got data: ', chunk); } }); const stream2 = needle.get('http://jsonplaceholder.typicode.com/db', { parse: true }); - stream2.on('readable', function () { + stream2.on('readable', () => { let node: any; // our stream2 will only emit a single JSON root node. @@ -271,7 +269,7 @@ function Various() { } function FileUpload() { - var data = { + const data = { foo: 'bar', image: { file: '/home/tomas/linux.png', content_type: 'image/png' } }; @@ -287,24 +285,24 @@ function FileUpload() { }); // using callback - needle.post('http://my.other.app.com', data, { multipart: true }, function (err, resp, body) { + needle.post('http://my.other.app.com', data, { multipart: true }, (err, resp, body) => { // needle will read the file and include it in the form-data as binary }); - needle.put('https://api.app.com/v2', fs.createReadStream('myfile.txt'), function (err, resp, body) { + needle.put('https://api.app.com/v2', fs.createReadStream('myfile.txt'), (err, resp, body) => { // stream content is uploaded verbatim }); } function Multipart() { - var buffer = fs.readFileSync('/path/to/package.zip'); + const buffer = fs.readFileSync('/path/to/package.zip'); - var data = { + const data = { zip_file: { - buffer: buffer, + buffer, filename: 'mypackage.zip', content_type: 'application/octet-stream' } - } + }; // using promises needle('post', 'http://somewhere.com/over/the/rainbow', data, { multipart: true }) @@ -315,7 +313,7 @@ function Multipart() { }); // using callback - needle.post('http://somewhere.com/over/the/rainbow', data, { multipart: true }, function (err, resp, body) { + needle.post('http://somewhere.com/over/the/rainbow', data, { multipart: true }, (err, resp, body) => { // if you see, when using buffers we need to pass the filename for the multipart body. // you can also pass a filename when using the file path method, in case you want to override // the default filename to be received on the other end. @@ -323,13 +321,13 @@ function Multipart() { } function MultipartContentType() { - var data = { + const data = { token: 'verysecret', payload: { value: JSON.stringify({ title: 'test', version: 1 }), content_type: 'application/json' } - } + }; // using promises needle('post', 'http://test.com/', data, { timeout: 5000, multipart: true }) @@ -339,7 +337,7 @@ function MultipartContentType() { }); // using callback - needle.post('http://test.com/', data, { timeout: 5000, multipart: true }, function (err, resp, body) { + needle.post('http://test.com/', data, { timeout: 5000, multipart: true }, (err, resp, body) => { // in this case, if the request takes more than 5 seconds // the callback will return a [Socket closed] error }); From 599f7a5876a375449087da4c9481d4d0bd7f7054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 15:04:09 +0200 Subject: [PATCH 154/316] Update list of authors --- types/nano/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 7a03be1684..4c8a3068a5 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for nano 6.2 // Project: https://github.com/apache/couchdb-nano // Definitions by: Tim Jacobi +// Kovács Vince // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { EventEmitter } from "events"; From d9b76059b989ac5e2515c872823bd247e232c3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 15:04:44 +0200 Subject: [PATCH 155/316] Add interface for responses --- types/nano/index.d.ts | 850 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 798 insertions(+), 52 deletions(-) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 4c8a3068a5..6457c7b582 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -4,6 +4,8 @@ // Kovács Vince // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + import { EventEmitter } from "events"; import { CoreOptions, Request } from "request"; @@ -30,87 +32,144 @@ declare namespace nano { request: RequestFunction; relax: RequestFunction; dinosaur: RequestFunction; - auth(username: string, userpass: string, callback?: Callback): Request; - session(callback?: Callback): Request; - updates(callback?: Callback): Request; - updates(params: UpdatesParams, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/authn.html#cookie-authentication + auth(username: string, userpass: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/authn.html#get--_session + session(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates + updates(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates + updates(params: UpdatesParams, callback?: Callback): Request; followUpdates(callback?: Callback): EventEmitter; followUpdates(params: any, callback?: Callback): EventEmitter; uuids(num: number, callback: Callback): Request; } interface DatabaseScope { - create(name: string, callback?: Callback): Request; - get(name: string, callback?: Callback): Request; - destroy(name: string, callback?: Callback): Request; - list(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/common.html#put--db + create(name: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/common.html#get--db + get(name: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/common.html#delete--db + destroy(name: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_all_dbs + list(callback?: Callback): Request; use(db: string): DocumentScope; compact(name: string, callback?: Callback): Request; - compact(name: string, designname: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/compact.html#post--db-_compact + compact(name: string, designname: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate replicate( source: string | DocumentScope, target: string | DocumentScope, - callback?: Callback + callback?: Callback ): Request + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate replicate( source: string | DocumentScope, target: string | DocumentScope, - options?: any, - callback?: Callback + options: DatabaseReplicateOptions, + callback?: Callback ): Request; - changes(name: string, callback?: Callback): Request; - changes(name: string, params: any, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes + changes(name: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/compact.html#post--db-_compact + changes(name: string, params: DatabaseChangesParams, callback?: Callback): Request; follow(source: string, callback?: Callback): EventEmitter; follow(source: string, params: DatabaseScopeFollowUpdatesParams, callback?: Callback): EventEmitter; - followUpdates(callback?: Callback): EventEmitter; - followUpdates(params: any, callback?: Callback): EventEmitter; - updates(callback?: Callback): Request; - updates(params: UpdatesParams, callback?: Callback): Request; + followUpdates(params?: any, callback?: Callback): EventEmitter; + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates + updates(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates + updates(params: UpdatesParams, callback?: Callback): Request; } interface DocumentScope { readonly config: ServerConfig; - info(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/common.html#get--db + info(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate replicate( target: string | DocumentScope, - callback?: Callback + callback?: Callback ): Request + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate replicate( target: string | DocumentScope, options: any, - callback?: Callback + callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/database/compact.html#post--db-_compact compact(callback?: Callback): Request; - changes(callback?: Callback): Request; - changes(params: any, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes + changes(callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes + changes(params: DatabaseChangesParams, callback?: Callback): Request; follow(callback?: Callback): EventEmitter; follow(params: DocumentScopeFollowUpdatesParams, callback?: Callback): EventEmitter; - auth(username: string, userpass: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/authn.html#cookie-authentication + auth(username: string, userpass: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/server/authn.html#get--_session session(callback?: Callback): Request; - insert(document: any, callback?: Callback): Request; - insert(document: any, params: any, callback?: Callback): Request; - get(docname: string, callback?: Callback): Request; - get(docname: string, params: any, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/common.html#post--db + // http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid + insert(document: ViewDocument | D & MaybeDocument, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/common.html#post--db + // http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid + insert( + document: ViewDocument | D & MaybeDocument, + params: DocumentInsertParams | string | null, + callback?: Callback + ): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid + get(docname: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid + get(docname: string, params?: DocumentGetParams, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#head--db-docid head(docname: string, callback: Callback): Request; - copy(src_document: string, dst_document: string, callback?: Callback): Request; - copy(src_document: string, dst_document: string, options: any, callback?: Callback): Request; - destroy(docname: string, rev: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#copy--db-docid + copy(src_document: string, dst_document: string, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#copy--db-docid + copy( + src_document: string, + dst_document: string, + options: DocumentCopyOptions, + callback?: Callback + ): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#delete--db-docid + destroy(docname: string, rev: string, callback?: Callback): Request; bulk(docs: BulkModifyDocsWrapper, callback?: Callback): Request; - bulk(docs: BulkModifyDocsWrapper, params?: any, callback?: Callback): Request; - list(callback?: Callback): Request; - list(params: any, callback?: Callback): Request; - fetch(docnames: BulkFetchDocsWrapper, callback?: Callback): Request; - fetch(docnames: BulkFetchDocsWrapper, params: any, callback?: Callback): Request; - fetchRevs(docnames: BulkFetchDocsWrapper, callback?: Callback): Request; - fetchRevs(docnames: BulkFetchDocsWrapper, params?: any, callback?: Callback): Request; - multipart: Multipart; + bulk(docs: BulkModifyDocsWrapper, params: any, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#get--db-_all_docs + list(callback?: Callback>): Request; + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#get--db-_all_docs + list(params: DocumentListParams, callback?: Callback>): Request; + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#post--db-_all_docs + fetch(docnames: BulkFetchDocsWrapper, callback?: Callback>): Request; + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#post--db-_all_docs + fetch( + docnames: BulkFetchDocsWrapper, + params: DocumentFetchParams, + callback?: Callback> + ): Request; + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#post--db-_all_docs + fetchRevs(docnames: BulkFetchDocsWrapper, callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#post--db-_all_docs + fetchRevs( + docnames: BulkFetchDocsWrapper, + params: DocumentFetchParams, + callback?: Callback + ): Request; + multipart: Multipart; attachment: Attachment; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#get--db-_design-ddoc-_show-func show( designname: string, showname: string, doc_id: string, callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#get--db-_design-ddoc-_show-func show( designname: string, showname: string, @@ -118,31 +177,35 @@ declare namespace nano { params: any, callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#put--db-_design-ddoc-_update-func-docid atomic( designname: string, updatename: string, docname: string, - callback?: Callback + callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#put--db-_design-ddoc-_update-func-docid atomic( designname: string, updatename: string, docname: string, body: any, - callback?: Callback + callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#put--db-_design-ddoc-_update-func-docid updateWithHandler( designname: string, updatename: string, docname: string, - callback?: Callback + callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#put--db-_design-ddoc-_update-func-docid updateWithHandler( designname: string, updatename: string, docname: string, body: any, - callback?: Callback + callback?: Callback ): Request; search( designname: string, @@ -166,42 +229,52 @@ declare namespace nano { params: any, callback?: Callback ): Request; - view( + // http://docs.couchdb.org/en/latest/api/ddoc/views.html#get--db-_design-ddoc-_view-view + // http://docs.couchdb.org/en/latest/api/ddoc/views.html#post--db-_design-ddoc-_view-view + view( designname: string, viewname: string, - callback?: Callback + callback?: Callback> ): Request; - view( + // http://docs.couchdb.org/en/latest/api/ddoc/views.html#get--db-_design-ddoc-_view-view + // http://docs.couchdb.org/en/latest/api/ddoc/views.html#post--db-_design-ddoc-_view-view + view( designname: string, viewname: string, - params: any, - callback?: Callback + params: DocumentViewParams, + callback?: Callback> ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#db-design-design-doc-list-list-name-view-name viewWithList( designname: string, viewname: string, listname: string, callback?: Callback ): Request; + // http://docs.couchdb.org/en/latest/api/ddoc/render.html#db-design-design-doc-list-list-name-view-name viewWithList( designname: string, viewname: string, listname: string, - params: any, + params: DocumentViewParams, callback?: Callback ): Request; server: ServerScope; } - interface Multipart { - insert(doc: any, attachments: any[], callback?: Callback): Request; - insert(doc: any, attachments: any[], params: string | any, callback?: Callback): Request; + interface Multipart { + // http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments + insert(doc: D, attachments: any[], callback?: Callback): Request; + // http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments + insert(doc: D, attachments: any[], params: string | any, callback?: Callback): Request; get(docname: string, callback?: Callback): Request; get(docname: string, params: string | any, callback?: Callback): Request; } interface Attachment { + insert(docname: string, attname: string, att: null, contenttype: string): NodeJS.WritableStream; insert(docname: string, attname: string, att: any, contenttype: string, callback?: Callback): Request; + insert(docname: string, attname: string, att: null, contenttype: string, params: any): NodeJS.WritableStream; insert( docname: string, attname: string, @@ -250,10 +323,12 @@ declare namespace nano { multipart?: any[]; } + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates interface UpdatesParams { feed: "longpoll" | "continuous" | "eventsource"; timeout: number; heartbeat: boolean; + since: string; } interface DocumentScopeFollowUpdatesParams { @@ -284,6 +359,677 @@ declare namespace nano { interface BulkFetchDocsWrapper { keys: string[]; } + + // ------------------------------------- + // Document + // ------------------------------------- + + interface MaybeIdentifiedDocument { + _id?: string; + } + + interface IdentifiedDocument { + _id: string; + } + + interface MaybeRevisionedDocument { + _rev?: string; + } + + interface RevisionedDocument { + _rev: string; + } + + interface MaybeDocument extends MaybeIdentifiedDocument, MaybeRevisionedDocument { + } + + interface Document extends IdentifiedDocument, RevisionedDocument { + } + + // ------------------------------------- + // View + // ------------------------------------- + + interface View { + map?(doc: D & Document): void; + reduce?(doc: D & Document): void; + } + + interface ViewDocument extends IdentifiedDocument { + views: { + [name: string]: View + }; + } + + // ------------------------------------- + // Database scope request and response + // ------------------------------------- + + // http://docs.couchdb.org/en/latest/api/database/common.html#put--db + interface DatabaseCreateResponse { + // Operation status. Available in case of success + ok?: boolean; + + // Error type. Available if response code is 4xx + error?: string; + + // Error description. Available if response code is 4xx + reason?: string; + } + + // http://docs.couchdb.org/en/latest/api/database/common.html#get--db + interface DatabaseGetResponse { + // Set to true if the database compaction routine is operating on this database. + compact_running: boolean; + + // The name of the database. + db_name: string; + + // The version of the physical format used for the data when it is stored on disk. + disk_format_version: number; + + // The number of bytes of live data inside the database file. + data_size: number; + + // The length of the database file on disk. Views indexes are not included in the calculation. + disk_size: number; + + // A count of the documents in the specified database. + doc_count: number; + + // Number of deleted documents + doc_del_count: number; + + // Timestamp of when the database was opened, expressed in microseconds since the epoch. + instance_start_time: string; + + // The number of purge operations on the database. + purge_seq: number; + + sizes: { + // The size of live data inside the database, in bytes. + active: number; + + // The uncompressed size of database contents in bytes. + external: number; + + // The size of the database file on disk in bytes. Views indexes + file: number; + }; + + // The current number of updates to the database. + update_seq: number; + } + + // http://docs.couchdb.org/en/latest/api/database/common.html#delete--db + // http://docs.couchdb.org/en/latest/api/database/compact.html#post--db-_compact + interface OkResponse { + // Operation status + ok: boolean; + } + + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate + interface DatabaseReplicateOptions { + // Cancels the replication + cancel?: boolean; + + // Configure the replication to be continuous + continuous?: boolean; + + // Creates the target database. Required administrator’s privileges on target server. + create_target?: boolean; + + // Array of document IDs to be synchronized + doc_ids?: string[]; + + // The name of a filter function. + filter ?: string; + + // Address of a proxy server through which replication should occur (protocol can be “http” or “socks5”) + proxy ?: string; + + // Source database name or URL + source?: string; + + // Target database name or URL + target?: string; + } + + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate + interface DatabaseReplicationHistoryItem { + // Number of document write failures + doc_write_failures: number; + + // Number of documents read + docs_read: number; + + // Number of documents written to target + docs_written: number; + + // Last sequence number in changes stream + end_last_seq: number; + + // Date/Time replication operation completed in RFC 2822 format + end_time: string; + + // Number of missing documents checked + missing_checked: number; + + // Number of missing documents found + missing_found: number; + + // Last recorded sequence number + recorded_seq: number; + + // Session ID for this replication operation + session_id: string; + + // First sequence number in changes stream + start_last_seq: number; + + // Date/Time replication operation started in RFC 2822 format + start_time: string; + } + + // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate + interface DatabaseReplicateResponse { + // Replication history + history: DatabaseReplicationHistoryItem[]; + + // Replication status + ok: boolean; + + // Replication protocol version + replication_id_version: number; + + // Unique session ID + session_id: string; + + // Last sequence number read from source database + source_last_seq: number; + } + + // http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes + interface DatabaseChangesParams { + // List of document IDs to filter the changes feed as valid JSON array. Used with _doc_ids filter. Since length of + // URL is limited, it is better to use POST /{db}/_changes instead. + doc_ids?: string[]; + + // Includes conflicts information in response. Ignored if include_docs isn’t true. Default is false. + conflicts?: boolean; + + // Return the change results in descending sequence order (most recent change first). Default is false. + descending?: boolean; + + // - normal Specifies Normal Polling Mode. All past changes are returned immediately. Default. + // - longpoll Specifies Long Polling Mode. Waits until at least one change has occurred, sends the change, then + // closes the connection. Most commonly used in conjunction with since=now, to wait for the next change. + // - continuous Sets Continuous Mode. Sends a line of JSON per event. Keeps the socket open until timeout. + // - eventsource Sets Event Source Mode. Works the same as Continuous Mode, but sends the events in EventSource + // format. + feed?: "normal" | "longpoll" | "continuous" | "eventsource"; + + // Reference to a filter function from a design document that will filter whole stream emitting only filtered + // events. See the section Change Notifications in the book CouchDB The Definitive Guide for more information. + filter?: string; + + // Period in milliseconds after which an empty line is sent in the results. Only applicable for longpoll, + // continuous, and eventsource feeds. Overrides any timeout to keep the feed alive indefinitely. Default is 60000. + // May be true to use default value. + heartbeat?: number; + + // Include the associated document with each result. If there are conflicts, only the winning revision is returned. + // Default is false. + include_docs?: boolean; + + // Include the Base64-encoded content of attachments in the documents that are included if include_docs is true. + // Ignored if include_docs isn’t true. Default is false. + attachments?: boolean; + + // Include encoding information in attachment stubs if include_docs is true and the particular attachment is + // compressed. Ignored if include_docs isn’t true. Default is false. + att_encoding_info?: boolean; + + // Limit number of result rows to the specified value (note that using 0 here has the same effect as 1). + limit?: number; + + // Start the results from the change immediately after the given update sequence. Can be valid update sequence or + // now value. Default is 0. + since?: number; + + // Specifies how many revisions are returned in the changes array. The default, main_only, will only return the + // current “winning” revision; all_docs will return all leaf revisions (including conflicts and deleted former + // conflicts). + style?: string; + + // Maximum period in milliseconds to wait for a change before the response is sent, even if there are no results. + // Only applicable for longpoll or continuous feeds. Default value is specified by httpd/changes_timeout + // configuration option. Note that 60000 value is also the default maximum timeout to prevent undetected dead + // connections. + timeout?: number; + + // Allows to use view functions as filters. Documents counted as “passed” for view filter in case if map function + // emits at least one record for them. See _view for more info. + view?: string; + } + + // http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes + interface DatabaseChangesResultItem { + // List of document’s leaves with single field rev. + changes: Array<{ rev: string }>; + + // Document ID. + id: string; + + // Update sequence. + seq: any; + + // true if the document is deleted. + deleted: boolean; + } + + // http://docs.couchdb.org/en/latest/api/database/changes.html#get--db-_changes + interface DatabaseChangesResponse { + // Last change update sequence + last_seq: any; + + // Count of remaining items in the feed + pending: number; + + // Changes made to a database + results: DatabaseChangesResultItem[]; + } + + // http://docs.couchdb.org/en/latest/api/server/authn.html#cookie-authentication + interface DatabaseAuthResponse { + // Operation status + ok: boolean; + + // Username + name: string; + + // List of user roles + roles: string[]; + } + + // http://docs.couchdb.org/en/latest/api/server/authn.html#get--_session + interface DatabaseSessionResponse { + // Operation status + ok: boolean; + + // User context for the current user + userCtx: any; + + // Server authentication configuration + info: any; + } + + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates + interface DatabaseUpdatesResultItem { + // Database name. + db_name: string; + + // A database event is one of created, updated, deleted. + type: string; + + // Update sequence of the event. + seq: any; + } + + // http://docs.couchdb.org/en/latest/api/server/common.html#get--_db_updates + interface DatabaseUpdatesResponse { + // An array of database events. For longpoll and continuous modes, the entire response is the contents of the + // results array. + results: DatabaseUpdatesResultItem[]; + + // The last sequence ID reported. + last_seq: string; + } + + // ------------------------------------- + // Document scope request and response + // ------------------------------------- + + interface DocumentResponseRowMeta { + id: string; + key: string; + value: { + rev: string; + }; + } + + interface DocumentResponseRow extends DocumentResponseRowMeta { + doc?: D & Document; + } + + // http://docs.couchdb.org/en/latest/api/database/common.html#post--db + // http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid + interface DocumentInsertParams { + // Document’s revision if updating an existing document. Alternative to If-Match header or document key. + rev?: string; + + // Stores document in batch mode. + batch?: "ok"; + + // Prevents insertion of a conflicting document. Possible values: true (default) and false. If false, a + // well-formed _rev must be included in the document. new_edits=false is used by the replicator to insert + // documents into the target database even if that leads to the creation of conflicts. + new_edits?: boolean; + } + + // http://docs.couchdb.org/en/latest/api/database/common.html#post--db + // http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid + interface DocumentInsertResponse { + // Document ID + id: string; + + // Operation status + ok: boolean; + + // Revision MVCC token + rev: string; + } + + // http://docs.couchdb.org/en/latest/api/document/common.html#delete--db-docid + interface DocumentDestroyResponse { + // Document ID + id: string; + + // Operation status + ok: boolean; + + // Revision MVCC token + rev: string; + } + + // http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid + interface DocumentGetParams { + // Includes attachments bodies in response. Default is false. + attachments?: boolean; + + // Includes encoding information in attachment stubs if the particular attachment is compressed. Default is + // false. + att_encoding_info?: boolean; + + // Includes attachments only since specified revisions. Doesn’t includes attachments for specified revisions. + atts_since?: any[]; + + // Includes information about conflicts in document. Default is false. + conflicts?: boolean; + + // Includes information about deleted conflicted revisions. Default is false. + deleted_conflicts?: boolean; + + // Forces retrieving latest “leaf” revision, no matter what rev was requested. Default is false. + latest?: boolean; + + // Includes last update sequence for the document. Default is false. + local_seq?: boolean; + + // Acts same as specifying all conflicts, deleted_conflicts and revs_info query parameters. Default is false. + meta?: boolean; + + // Retrieves documents of specified leaf revisions. Additionally, it accepts value as all to return all leaf + // revisions. + open_revs?: any[]; + + // Retrieves document of specified revision. + rev?: string; + + // Includes list of all known document revisions. + revs?: boolean; + + // Includes detailed information for all known document revisions. Default is false. + revs_info?: boolean; + } + + // http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid + interface DocumentGetResponse { + // Document ID. + _id: string; + + // Revision MVCC token. + _rev: string; + + // Deletion flag. Available if document was removed. + _deleted?: boolean; + + // Attachment’s stubs. Available if document has any attachments. + _attachments?: any; + + // List of conflicted revisions. Available if requested with conflicts=true query parameter. + _conflicts?: any[]; + + // List of deleted conflicted revisions. Available if requested with deleted_conflicts=true query parameter. + _deleted_conflicts?: any[]; + + // Document’s update sequence in current database. Available if requested with local_seq=true query parameter. + _local_seq?: string; + + // List of objects with information about local revisions and their status. Available if requested with + // open_revs query parameter. + _revs_info?: any[]; + + // List of local revision tokens without. Available if requested with revs=true query parameter. + _revisions?: any; + } + + interface DocumentCopyOptions { + overwrite?: boolean; + } + + // http://docs.couchdb.org/en/latest/api/document/common.html#copy--db-docid + interface DocumentCopyResponse { + // Document ID + id: string; + + // Operation status + ok: boolean; + + // Revision MVCC token + rev: string; + } + + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#get--db-_all_docs + interface DocumentListParams { + // Includes conflicts information in response. Ignored if include_docs isn’t true. Default is false. + conflicts?: boolean; + + // Return the documents in descending by key order. Default is false. + descending?: boolean; + + // Stop returning records when the specified key is reached. + end_key?: string; + + // Stop returning records when the specified document ID is reached. + end_key_doc_id?: string; + + // Include the full content of the documents in the return. Default is false. + include_docs?: boolean; + + // Specifies whether the specified end key should be included in the result. Default is true. + inclusive_end?: boolean; + + // Return only documents that match the specified key. + key?: string; + + // Return only documents that match the specified keys. + keys?: string; // This can be string[] too ??? + + // Limit the number of the returned documents to the specified number. + limit?: number; + + // Skip this number of records before starting to return the results. Default is 0. + skip?: number; + + // Allow the results from a stale view to be used, without triggering a rebuild of all views within the + // encompassing design doc. Supported values: ok and update_after. + stale?: string; + + // Return records starting with the specified key. + start_key?: string; + + // Return records starting with the specified document ID. + start_key_doc_id?: string; + + // Response includes an update_seq value indicating which sequence id of the underlying database the view + // reflects. Default is false. + update_seq?: boolean; + } + + // http://docs.couchdb.org/en/latest/api/database/bulk-api.html#get--db-_all_docs + interface DocumentListResponse { + // Offset where the document list started. + offset: number; + + // Array of view row objects. By default the information returned contains only the document ID and revision. + rows: Array>; + + // Number of documents in the database/view. Note that this is not the number of rows returned in the actual + // query. + total_rows: number; + + // Current update sequence for the database. + update_seq?: number; + } + + interface DocumentFetchParams { + conflicts?: boolean; + descending?: boolean; + end_key?: string; + end_key_doc_id?: string; + inclusive_end?: boolean; + key?: string; + keys?: string; // This can be string[] too ??? + limit?: number; + skip?: number; + stale?: string; + start_key?: string; + start_key_doc_id?: string; + update_seq?: boolean; + } + + interface DocumentFetchResponse { + offset: number; + rows: Array>; + total_rows: number; + update_seq?: number; + } + + interface DocumentFetchRevsResponse { + offset: number; + rows: DocumentResponseRowMeta[]; + total_rows: number; + update_seq?: number; + } + + // http://docs.couchdb.org/en/latest/api/ddoc/views.html#get--db-_design-ddoc-_view-view + interface DocumentViewParams { + // Includes conflicts information in response. Ignored if include_docs isn’t true. Default is false. + conflicts?: boolean; + + // Return the documents in descending by key order. Default is false. + descending?: boolean; + + // Stop returning records when the specified key is reached. + endkey?: any; + + // Alias for endkey param. + end_key?: any; + + // Stop returning records when the specified document ID is reached. Requires endkey to be specified for this + // to have any effect. + endkey_docid?: string; + + // Alias for endkey_docid param. + end_key_doc_id?: string; + + // Group the results using the reduce function to a group or single row. Default is false. + group?: boolean; + + // Specify the group level to be used. + group_level?: number; + + // Include the associated document with each row. Default is false. + include_docs?: boolean; + + // Include the Base64-encoded content of attachments in the documents that are included if include_docs is + // true. Ignored if include_docs isn’t true. Default is false. + attachments?: boolean; + + // Include encoding information in attachment stubs if include_docs is true and the particular attachment is + // compressed. Ignored if include_docs isn’t true. Default is false. + att_encoding_info?: boolean; + + // Specifies whether the specified end key should be included in the result. Default is true. + inclusive_end?: boolean; + + // Return only documents that match the specified key. + key?: any; + + // Return only documents where the key matches one of the keys specified in the array. + keys?: any[]; + + // Limit the number of the returned documents to the specified number. + limit?: number; + + // Use the reduction function. Default is true. + reduce?: boolean; + + // Skip this number of records before starting to return the results. Default is 0. + skip?: number; + + // Sort returned rows. Setting this to false offers a performance boost. The total_rows and offset fields are + // not available when this is set to false. Default is true. + sorted?: boolean; + + // Whether or not the view results should be returned from a stable set of shards. Default is false. + stable?: boolean; + // Allow the results from a stale view to be used. Supported values: ok, update_after and false. ok is + // equivalent to stable=true&update=false. update_after is equivalent to stable=true&update=lazy. false is + // equivalent to stable=false&update=true. + stale?: string; + + // Return records starting with the specified key. + startkey?: any; + + // Alias for startkey param + start_key?: any; + + // Return records starting with the specified document ID. Requires startkey to be specified for this to have + // any effect. + startkey_docid?: string; + + // Alias for startkey_docid param + start_key_doc_id?: string; + + // Whether or not the view in question should be updated prior to responding to the user. Supported values: + // true, false, lazy. Default is true. + update?: string; + + // Response includes an update_seq value indicating which sequence id of the database the view reflects. + // Default is false. + update_seq?: boolean; + } + + // http://docs.couchdb.org/en/latest/api/ddoc/views.html#get--db-_design-ddoc-_view-view + interface DocumentViewResponse { + // Offset where the document list started. + offset: number; + + // Array of view row objects. By default the information returned contains only the document ID and revision. + rows: Array<{ + id: string; + key: string; + value: V; + }>; + + // Number of documents in the database/view. + total_rows: number; + + // Current update sequence for the database + update_seq: any; + } } export = nano; From 96410e7010d4f35cbe530fcde2de36bcd4309999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Vince?= Date: Fri, 1 Sep 2017 15:04:55 +0200 Subject: [PATCH 156/316] Fix test cases --- types/nano/nano-tests.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/types/nano/nano-tests.ts b/types/nano/nano-tests.ts index 33cfe4534d..522064f993 100644 --- a/types/nano/nano-tests.ts +++ b/types/nano/nano-tests.ts @@ -1,6 +1,5 @@ -import * as nano from "nano"; import * as fs from "fs"; -import * as path from "path"; +import * as nano from "nano"; /* * Instantiate with configuration object @@ -67,10 +66,15 @@ db.replicate("a", "b", (error: any) => {}); /* * Document Scope */ -const mydb: nano.DocumentScope = instance.use("mydb"); +interface SomeDocument{ + name: string +} -mydb.insert({ foo: "baz" }, null, (err, response) => {}); -mydb.insert({ foo: "baz" }, "foobar", (error, foo) => {}); +const mydb: nano.DocumentScope = instance.use("mydb"); + +mydb.insert({ name: "baz" }, null, (err, response) => {}); +mydb.insert({ name: "baz" }, "foobar", (error, foo) => {}); +mydb.insert({ name: "baz" }, { new_edits: true }, (error, foo) => {}); mydb.get("foobaz", { revs_info: true }, (error, foobaz) => {}); mydb.head("foobaz", (error, body, headers) => {}); mydb.copy( @@ -129,7 +133,7 @@ mydb.attachment.get("new_string", "att", (error: any, helloWorld: any) => {}); /* * Multipart */ -mydb.multipart.insert({ foo: "baz" }, [{}], "foobaz", (error, foo) => {}); +mydb.multipart.insert({ name: "baz" }, [{}], "foobaz", (error, foo) => {}); mydb.multipart.get("foobaz", (error: any, foobaz: any, headers: any) => {}); /* From 448d609ece595cbc0d4eebb384d2dc94735e6c74 Mon Sep 17 00:00:00 2001 From: Robert Buehler Date: Fri, 1 Sep 2017 10:06:51 -0500 Subject: [PATCH 157/316] Added text to Include to allow contain.text --- types/chai-enzyme/chai-enzyme-tests.tsx | 1 + types/chai-enzyme/index.d.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/types/chai-enzyme/chai-enzyme-tests.tsx b/types/chai-enzyme/chai-enzyme-tests.tsx index 77ad5a0169..4b88d077aa 100644 --- a/types/chai-enzyme/chai-enzyme-tests.tsx +++ b/types/chai-enzyme/chai-enzyme-tests.tsx @@ -30,6 +30,7 @@ expect(wrapper).to.have.ref("test"); expect(wrapper).to.be.selected(); expect(wrapper).to.have.tagName("div"); expect(wrapper).to.have.text(""); +expect(wrapper).to.contain.text(""); expect(wrapper).to.have.type(Test); expect(wrapper).to.have.value("test"); expect(wrapper).to.have.attr("test", "test"); diff --git a/types/chai-enzyme/index.d.ts b/types/chai-enzyme/index.d.ts index 86b6f6f7b3..f1283994f6 100644 --- a/types/chai-enzyme/index.d.ts +++ b/types/chai-enzyme/index.d.ts @@ -26,6 +26,12 @@ declare namespace Chai { * @param code */ (selector: EnzymeSelector): Assertion; + + /** + * Assert that the given wrapper has the supplied text: + * @param str + */ + text(str?: string): Assertion; } interface Assertion { /** From 88ed238c945ec7aba5ec6a96f81f7d5b7970a73f Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Fri, 1 Sep 2017 08:43:47 -0700 Subject: [PATCH 158/316] Adding in Filters namespace under react-data-grid-addons --- types/react-data-grid/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/react-data-grid/index.d.ts b/types/react-data-grid/index.d.ts index 65d0ddddc2..01437fdba4 100644 --- a/types/react-data-grid/index.d.ts +++ b/types/react-data-grid/index.d.ts @@ -459,6 +459,12 @@ declare namespace AdazzleReactDataGridPlugins { export class SimpleTextEditor extends React.Component { } export class CheckboxEditor extends React.Component { } } + export namespace Filters { + export class NumericFilter extends React.Component { } + export class AutoCompleteFilter extends React.Component { } + export class MultiSelectFilter extends React.Component { } + export class SingleSelectFilter extends React.Component { } + } export namespace Formatters { export class ImageFormatter extends React.Component { } export class DropDownFormatter extends React.Component { } @@ -503,6 +509,7 @@ declare module "react-data-grid" { declare module "react-data-grid-addons" { import Plugins = AdazzleReactDataGridPlugins; import Editors = Plugins.Editors; + import Filters = Plugins.Filters; import Formatters = Plugins.Formatters; import Toolbar = Plugins.Toolbar; import Menu = Plugins.Menu; @@ -512,6 +519,7 @@ declare module "react-data-grid-addons" { // ES6 named exports export { Editors, + Filters, Formatters, Toolbar, Menu, From f5a011681152a60ee63d3662fcaf47a0bb4242de Mon Sep 17 00:00:00 2001 From: msrocka Date: Fri, 1 Sep 2017 17:55:22 +0200 Subject: [PATCH 159/316] [highcharts] categories in axis definitions can be of ny type --- types/highcharts/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index b192a5bd63..6c1b12419a 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -575,7 +575,7 @@ declare namespace Highcharts { * categories: ['Apples', 'Bananas', 'Oranges'] * @default null */ - categories?: string[]; + categories?: any[]; /** * The highest allowed value for automatically computed axis extremes. * @since 4.0 From 66dbf17c9136b4b573286ff0d1360222bd55c603 Mon Sep 17 00:00:00 2001 From: Alec Hill Date: Fri, 1 Sep 2017 15:49:40 +0000 Subject: [PATCH 160/316] [redux-actions] Type defs for action meta creators, and reducer map for action meta. Were previously unsafe as could only use the ActionFunctionAny creator for anything that needed a meta. Added missing tests for action function creators, reducer maps, and the new action meta creators --- types/redux-actions/index.d.ts | 43 ++++++++-- types/redux-actions/redux-actions-tests.ts | 94 +++++++++++++++++++--- 2 files changed, 121 insertions(+), 16 deletions(-) diff --git a/types/redux-actions/index.d.ts b/types/redux-actions/index.d.ts index f9b2c3c7ba..d088592217 100644 --- a/types/redux-actions/index.d.ts +++ b/types/redux-actions/index.d.ts @@ -1,6 +1,8 @@ -// Type definitions for redux-actions 1.2 +// Type definitions for redux-actions 2.2 // Project: https://github.com/acdlite/redux-actions -// Definitions by: Jack Hsu , Alex Gorbatchev +// Definitions by: Jack Hsu , +// Alex Gorbatchev , +// Alec Hill // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace ReduxActions; @@ -25,7 +27,7 @@ export interface ReducerMap { } export interface ReducerMapMeta { - [actionType: string]: Reducer | ReducerNextThrow; + [actionType: string]: ReducerMeta | ReducerNextThrowMeta; } export interface ReducerNextThrow { @@ -93,9 +95,33 @@ export function createAction( export function createAction( actionType: string, - payloadCreator: (...args: any[]) => Payload, - metaCreator: (...args: any[]) => Meta -): (...args: any[]) => ActionMeta; + payloadCreator: ActionFunctionAny, + metaCreator: ActionFunctionAny +): ActionFunctionAny>; + +export function createAction( + actionType: string, + payloadCreator: ActionFunction1, + metaCreator: ActionFunction1 +): ActionFunction1>; + +export function createAction( + actionType: string, + payloadCreator: ActionFunction2, + metaCreator: ActionFunction2 +): ActionFunction2>; + +export function createAction( + actionType: string, + payloadCreator: ActionFunction3, + metaCreator: ActionFunction3 +): ActionFunction3>; + +export function createAction( + actionType: string, + payloadCreator: ActionFunction4, + metaCreator: ActionFunction4 +): ActionFunction4>; export function handleAction( actionType: string | ActionFunctions, @@ -119,6 +145,11 @@ export function handleActions( initialState: State ): Reducer; +export function handleActions( + reducerMap: ReducerMapMeta, + initialState: State +): ReducerMeta; + export function combineActions(...actionTypes: Array | string>): string; export interface ActionMap { diff --git a/types/redux-actions/redux-actions-tests.ts b/types/redux-actions/redux-actions-tests.ts index 46760e6159..003599c8bc 100644 --- a/types/redux-actions/redux-actions-tests.ts +++ b/types/redux-actions/redux-actions-tests.ts @@ -89,26 +89,100 @@ const typedActionHandler = ReduxActions.handleAction( {value: 1} ); -typedState = typedActionHandler({ value: 0 }, typedIncrementAction()); +const actionNoArgs = typedIncrementAction(); +actionNoArgs.payload.increase = 1; -const typedIncrementByActionWithMeta: (value: number) => ReduxActions.ActionMeta = - ReduxActions.createAction( - 'INCREMENT_BY', - amount => ({ increase: amount }), - amount => ({ remote: true }) +typedState = typedActionHandler({ value: 0 }, actionNoArgs); + +const typedIncrementAction1TypedArg: (value: number) => + ReduxActions.Action = ReduxActions.createAction( + 'INCREMENT', + amount => ({ increase: amount }) ); -const typedActionHandlerWithReduceMap = ReduxActions.handleAction( +const actionFrom1Arg = typedIncrementAction1TypedArg(10); +actionFrom1Arg.payload.increase === 10; + +const typedIncrementAction2TypedArgs: (numericAmount: number, stringAmount: string) => +ReduxActions.Action = ReduxActions.createAction( + 'INCREMENT', + (numericAmount, stringAmount) => ({ increase: numericAmount + parseInt(stringAmount, 10) }) +); + +const actionFrom2Args = typedIncrementAction2TypedArgs(10, '100'); +actionFrom1Arg.payload.increase === 110; + +const typedActionHandlerReducerMap = ReduxActions.handleActions( + { + INCREMENT: (state: TypedState, action: ReduxActions.Action) => ({ value: state.value + 1 }) + }, + {value: 1} +); + +typedState = typedActionHandlerReducerMap({ value: 0 }, actionFrom1Arg); + +const typedIncrementByActionWithMetaAnyArgs: (...args: any[]) => ReduxActions.ActionMeta = + ReduxActions.createAction( + 'INCREMENT_BY', + amount => ({ increase: amount }), + (_, remote) => ({ remote }) + ); + +const actionMetaFromAnyArgs = typedIncrementByActionWithMetaAnyArgs(10, true, 'nic', 'cage'); +actionMetaFromAnyArgs.payload.increase === 10; +actionMetaFromAnyArgs.meta.remote; + +const typedActionHandlerWithMeta = ReduxActions.handleAction( 'INCREMENT_BY', { - next(state: TypedState, action: ReduxActions.Action) { - return { value: state.value + action.payload.increase }; + next(state: TypedState, action: ReduxActions.ActionMeta) { + return action.meta.remote ? state : { value: state.value + action.payload.increase }; }, throw(state: TypedState) { return state; } }, {value: 1} ); -typedState = typedActionHandlerWithReduceMap({ value: 0 }, typedIncrementByActionWithMeta(10)); +typedState = typedActionHandlerWithMeta({ value: 0 }, typedIncrementByActionWithMetaAnyArgs(10)); + +const typedActionHandlerReducerMetaMap = ReduxActions.handleActions( + { + INCREMENT_BY: { + next(state: TypedState, action: ReduxActions.ActionMeta) { + return action.meta.remote ? state : { value: state.value + action.payload.increase }; + }, + throw(state: TypedState) { return state; } + } + }, + {value: 1} +); + +typedState = typedActionHandlerReducerMetaMap({ value: 0 }, actionMetaFromAnyArgs); + +const typedActionWithMeta1TypedArg: (value: number) => ReduxActions.ActionMeta = + ReduxActions.createAction( + 'INCREMENT_BY', + amount => ({ increase: amount }), + amount => ({ remote: true }) + ); + +const actionMetaFrom1Arg = typedActionWithMeta1TypedArg(10); +actionMetaFrom1Arg.payload.increase === 10; +actionMetaFrom1Arg.meta.remote; + +typedState = typedActionHandlerReducerMetaMap({ value: 0 }, actionMetaFrom1Arg); + +const typedActionWithMeta2TypedArgs: (value: number, remote: boolean) => ReduxActions.ActionMeta = + ReduxActions.createAction( + 'INCREMENT_BY', + (amount, remote) => ({ increase: amount }), + (amount, remote) => ({ remote }) + ); + +const actionMetaFrom2Args = typedActionWithMeta2TypedArgs(10, true); +actionMetaFrom2Args.payload.increase === 10; +actionMetaFrom2Args.meta.remote; + +typedState = typedActionHandlerReducerMetaMap({ value: 0 }, actionMetaFrom2Args); const act0 = ReduxActions.createAction('ACTION0'); act0().payload === null; From a9babc189ea272261a96f9b4d1aacc64c972f241 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Fri, 1 Sep 2017 13:48:21 -0400 Subject: [PATCH 161/316] Add DiskQuota option to HostConfig Added in latest version of API: https://docs.docker.com/engine/api/v1.30/#operation/ContainerCreate --- types/dockerode/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts index aa6c03bf29..199fe1de75 100644 --- a/types/dockerode/index.d.ts +++ b/types/dockerode/index.d.ts @@ -488,6 +488,7 @@ declare namespace Dockerode { CpusetCpus: string; CpusetMems: string; Devices?: any; + DiskQuota: number; KernelMemory: number; Memory: number; MemoryReservation: number; From 4f7a218f250c94028d532b3bcda3ddafc8b3f5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Tabille=20Manjabosco?= Date: Thu, 24 Aug 2017 22:21:18 -0300 Subject: [PATCH 162/316] react-virtualized: Update types for WindowScroller --- .../dist/es/WindowScroller.d.ts | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/types/react-virtualized/dist/es/WindowScroller.d.ts b/types/react-virtualized/dist/es/WindowScroller.d.ts index 5ee54eb178..d19e83c06d 100644 --- a/types/react-virtualized/dist/es/WindowScroller.d.ts +++ b/types/react-virtualized/dist/es/WindowScroller.d.ts @@ -2,23 +2,27 @@ import { Validator, Requireable, PureComponent } from 'react' export type WindowScrollerChildProps = { height: number, + width: number, isScrolling: boolean, - scrollTop: number + scrollTop: number, + onChildScroll: () => void }; export type WindowScrollerProps = { /** * Function responsible for rendering children. * This function should implement the following signature: - * ({ height, isScrolling, scrollTop }) => PropTypes.element + * ({ height: number, width: number, isScrolling: boolean, scrollTop: number, onChildScroll: function }) => PropTypes.element */ children?: (props: WindowScrollerChildProps) => React.ReactNode; /** Callback to be invoked on-resize: ({ height }) */ - onResize?: (prams: { height: number }) => void; + onResize?: (params: { height: number, width: number }) => void; /** Callback to be invoked on-scroll: ({ scrollTop }) */ onScroll?: (params: { scrollTop: number }) => void; /** Element to attach scroll event listeners. Defaults to window. */ scrollElement?: HTMLElement; + /** Wait this amount of time after the last scroll event before resetting WindowScroller pointer-events; defaults to 150ms */ + scrollingResetTimeInterval?: number; /** * PLEASE NOTE * The [key: string]: any; line is here on purpose @@ -28,23 +32,28 @@ export type WindowScrollerProps = { */ [key: string]: any; } + export type WindowScrollerState = { height: number, + width: number, isScrolling: boolean, + scrollLeft: number scrollTop: number } export class WindowScroller extends PureComponent { static propTypes: { - children: Validator<(props: WindowScrollerChildProps) => React.ReactNode>, - onResize: Validator<(params: { height: number }) => void>, + children: Requireable<(props: WindowScrollerChildProps) => React.ReactNode>, + onResize: Validator<(params: { height: number, width: number }) => void>, onScroll: Validator<(params: { scrollTop: number }) => void>, - scrollElement: HTMLElement + scrollElement: Validator, + scrollingResetTimeInterval: Validator }; static defaultProps: { onResize: () => {}, - onScroll: () => {} + onScroll: () => {}, + scrollingResetTimeInterval: 150 }; constructor(props: WindowScrollerProps); From 5895bc8046b1f26d92f9f7929790e63deefc2a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Fri, 1 Sep 2017 23:58:57 +0200 Subject: [PATCH 163/316] [argparse] Namespace add typeings for Namespace --- types/argparse/index.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/types/argparse/index.d.ts b/types/argparse/index.d.ts index 2661b01c12..2701f96ac3 100644 --- a/types/argparse/index.d.ts +++ b/types/argparse/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for argparse v1.0.3 +// Type definitions for argparse v1.0 // Project: https://github.com/nodeca/argparse // Definitions by: Andrew Schurman +// Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -19,7 +20,15 @@ export declare class ArgumentParser extends ArgumentGroup { error(err: string | Error): void; } -interface Namespace { } +declare class Namespace { + constructor(options: object); + get(key: K, defaultValue?: D): this[K] | D; + isset(key: K): boolean; + set(key: K, value: V): this; + set(key: K, value: V): this & Record; + set(obj: K): this & K; + unset(key: K, defaultValue?: D): this[K] | D; +} declare class SubParser { addParser(name: string, options?: SubArgumentParserOptions): ArgumentParser; From 6dfaa31b61496a51e62d9f78d8c1a4197cbc15bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Sat, 2 Sep 2017 00:06:40 +0200 Subject: [PATCH 164/316] lint --- types/argparse/tslint.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 types/argparse/tslint.json diff --git a/types/argparse/tslint.json b/types/argparse/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/argparse/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From c7607729061e8056b4dac5902b8f9986ae705bda Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 2 Sep 2017 01:02:32 -0400 Subject: [PATCH 165/316] [rnmk] Add Indeterminate component to MKProgress --- types/react-native-material-kit/index.d.ts | 9 +++++++++ .../react-native-material-kit-tests.tsx | 1 + 2 files changed, 10 insertions(+) diff --git a/types/react-native-material-kit/index.d.ts b/types/react-native-material-kit/index.d.ts index 5556bd4282..d9564be179 100644 --- a/types/react-native-material-kit/index.d.ts +++ b/types/react-native-material-kit/index.d.ts @@ -305,6 +305,11 @@ export interface MKProgressProperties extends ViewProperties { bufferAniDuration?: number; } +export interface IndeterminateProgressProperties extends ViewProperties { + progressColor?: string; + progressAniDuration?: number; +} + export interface BaseSlider extends ViewProperties { min?: number; max?: number; @@ -382,6 +387,10 @@ export class MKRipple extends React.Component {} export class MKProgress extends React.Component {} +export namespace MKProgress { + class Indeterminate extends React.Component {} +} + export class MKSlider extends React.Component {} export class MKRangeSlider extends diff --git a/types/react-native-material-kit/react-native-material-kit-tests.tsx b/types/react-native-material-kit/react-native-material-kit-tests.tsx index 3a3efa11c0..4cb415d791 100644 --- a/types/react-native-material-kit/react-native-material-kit-tests.tsx +++ b/types/react-native-material-kit/react-native-material-kit-tests.tsx @@ -78,6 +78,7 @@ const MKIconToggleTest = () => //// PROGRESS const MKProgressTest = () => ; +const MKIndeterminateProgressTest = () => ; //// SLIDER interface MKSliderTestState { From 280f1873f1d71927abc7448f88e2f9d85590b101 Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Sat, 2 Sep 2017 10:11:14 +0300 Subject: [PATCH 166/316] update subscribe signature --- types/graphql/subscription/subscribe.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/graphql/subscription/subscribe.d.ts b/types/graphql/subscription/subscribe.d.ts index b7b40076bf..30efc010ec 100644 --- a/types/graphql/subscription/subscribe.d.ts +++ b/types/graphql/subscription/subscribe.d.ts @@ -14,7 +14,7 @@ export function subscribe( operationName?: string, fieldResolver?: GraphQLFieldResolver, subscribeFieldResolver?: GraphQLFieldResolver -): AsyncIterator; +): Promise | ExecutionResult>; export function createSourceEventStream( schema: GraphQLSchema, @@ -26,4 +26,4 @@ export function createSourceEventStream( }, operationName?: string, fieldResolver?: GraphQLFieldResolver -): AsyncIterable; +): Promise>; From 20634d7ac57c2bc3adfdf8336f4229c92aed9daf Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Sat, 2 Sep 2017 10:15:53 +0300 Subject: [PATCH 167/316] update contributers --- types/graphql/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/graphql/index.d.ts b/types/graphql/index.d.ts index e85060bab5..905dcbdd7b 100644 --- a/types/graphql/index.d.ts +++ b/types/graphql/index.d.ts @@ -7,6 +7,7 @@ // Kepennar // Mikhail Novikov // Ivan Goncharov +// Hagai Cohen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 From 49fe06fc5e2b2dc4c3b7317c62097b5c09bedd57 Mon Sep 17 00:00:00 2001 From: James Kelly Date: Sat, 2 Sep 2017 20:02:33 +1000 Subject: [PATCH 168/316] Add Uint8Array to MIDIOutput send The spec for Web MIDI API MIDIOutput.send at: https://webaudio.github.io/web-midi-api/#dom-midioutput-send suggests that both number[] and Uint8Array are acceptable types for sending data on a MIDI output port. The relevant text that allows for Uint8Array states: "... while still enabling use of Uint8Arrays for efficiency in large ..." An obvious use case is to forward MIDI events received on MIDIInputs as these are already in the form of a Uint8Array types. Tested with Chrome 60.0.3112.113 on Mac OS 10.12.6. --- types/webmidi/index.d.ts | 2 +- types/webmidi/webmidi-tests.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/webmidi/index.d.ts b/types/webmidi/index.d.ts index b1f3cb0f61..0d64baaaa7 100644 --- a/types/webmidi/index.d.ts +++ b/types/webmidi/index.d.ts @@ -145,7 +145,7 @@ declare namespace WebMidi { * to zero (or another time in the past), the data is to be sent as soon as * possible. */ - send(data: number[], timestamp?: number): void; + send(data: number[] | Uint8Array, timestamp?: number): void; /** * Clears any pending send data that has not yet been sent from the MIDIOutput 's diff --git a/types/webmidi/webmidi-tests.ts b/types/webmidi/webmidi-tests.ts index da4dca38c2..99335204fa 100644 --- a/types/webmidi/webmidi-tests.ts +++ b/types/webmidi/webmidi-tests.ts @@ -20,6 +20,7 @@ const onFulfilled = (item: WebMidi.MIDIAccess) => { for (const op of outputs) { this._outputs.push(op); op.send([ 0x90, 0x45, 0x7f ]); + op.send(new Uint8Array([ 0x90, 0x45, 0x7f ])); } for (const input of this._inputs) { From d7406dc4d9edc4714ea9866ffa2629fb4028622f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Sat, 2 Sep 2017 14:16:52 +0200 Subject: [PATCH 169/316] lint --- types/argparse/argparse-tests.ts | 288 ++++++++++++++----------------- types/argparse/index.d.ts | 34 ++-- 2 files changed, 146 insertions(+), 176 deletions(-) diff --git a/types/argparse/argparse-tests.ts b/types/argparse/argparse-tests.ts index f5b9e76f81..fe5d4fd765 100644 --- a/types/argparse/argparse-tests.ts +++ b/types/argparse/argparse-tests.ts @@ -1,25 +1,24 @@ - // near copy of each of the tests from https://github.com/nodeca/argparse/tree/master/examples import { ArgumentParser, RawDescriptionHelpFormatter } from 'argparse'; -var args: any; +let args: any; -var simpleExample = new ArgumentParser({ - version: '0.0.1', - addHelp: true, - description: 'Argparse example', +const simpleExample = new ArgumentParser({ + version: '0.0.1', + addHelp: true, + description: 'Argparse example', }); simpleExample.addArgument( - ['-f', '--foo'], - { - help: 'foo bar', - } + ['-f', '--foo'], + { + help: 'foo bar', + } ); simpleExample.addArgument( - ['-b', '--bar'], - { - help: 'bar foo', - } + ['-b', '--bar'], + { + help: 'bar foo', + } ); simpleExample.printHelp(); @@ -35,13 +34,10 @@ args = simpleExample.parseArgs('--foo 5 --bar 6'.split(' ')); console.dir(args); console.log('-----------'); - - - -var choicesExample = new ArgumentParser({ - version: '0.0.1', - addHelp: true, - description: 'Argparse examples: choice' +const choicesExample = new ArgumentParser({ + version: '0.0.1', + addHelp: true, + description: 'Argparse examples: choice' }); choicesExample.addArgument(['foo'], { choices: 'abc' }); @@ -55,56 +51,53 @@ console.log('-----------'); // choicesExample.parseArgs(['X']); // console.dir(args); - - - -var constantExample = new ArgumentParser({ - version: '0.0.1', - addHelp: true, - description: 'Argparse examples: constant' +const constantExample = new ArgumentParser({ + version: '0.0.1', + addHelp: true, + description: 'Argparse examples: constant' }); constantExample.addArgument( - ['-a'], - { - action: 'storeConst', - dest: 'answer', - help: 'store constant', - constant: 42 - } + ['-a'], + { + action: 'storeConst', + dest: 'answer', + help: 'store constant', + constant: 42 + } ); constantExample.addArgument( - ['--str'], - { - action: 'appendConst', - dest: 'types', - help: 'append constant "str" to types', - constant: 'str' - } + ['--str'], + { + action: 'appendConst', + dest: 'types', + help: 'append constant "str" to types', + constant: 'str' + } ); constantExample.addArgument( - ['--int'], - { - action: 'appendConst', - dest: 'types', - help: 'append constant "int" to types', - constant: 'int' - } + ['--int'], + { + action: 'appendConst', + dest: 'types', + help: 'append constant "int" to types', + constant: 'int' + } ); constantExample.addArgument( - ['--true'], - { - action: 'storeTrue', - help: 'store true constant' - } + ['--true'], + { + action: 'storeTrue', + help: 'store true constant' + } ); constantExample.addArgument( - ['--false'], - { - action: 'storeFalse', - help: 'store false constant' - } + ['--false'], + { + action: 'storeFalse', + help: 'store false constant' + } ); constantExample.printHelp(); @@ -113,27 +106,24 @@ console.log('-----------'); args = constantExample.parseArgs('-a --str --int --true'.split(' ')); console.dir(args); - - - -var nargsExample = new ArgumentParser({ - version: '0.0.1', - addHelp: true, - description: 'Argparse examples: nargs' +const nargsExample = new ArgumentParser({ + version: '0.0.1', + addHelp: true, + description: 'Argparse examples: nargs' }); nargsExample.addArgument( - ['-f', '--foo'], - { - help: 'foo bar', - nargs: 1 - } + ['-f', '--foo'], + { + help: 'foo bar', + nargs: 1 + } ); nargsExample.addArgument( - ['-b', '--bar'], - { - help: 'bar foo', - nargs: '*' - } + ['-b', '--bar'], + { + help: 'bar foo', + nargs: '*' + } ); nargsExample.printHelp(); @@ -145,40 +135,34 @@ console.log('-----------'); args = nargsExample.parseArgs('--bar b c f --foo a'.split(' ')); console.dir(args); - - - -var parent_parser = new ArgumentParser({ addHelp: false }); +const parent_parser = new ArgumentParser({ addHelp: false }); // note addHelp:false to prevent duplication of the -h option parent_parser.addArgument( - ['--parent'], - { type: 'int', help: 'parent' } + ['--parent'], + { type: 'int', help: 'parent' } ); -var foo_parser = new ArgumentParser({ - parents: [parent_parser], - description: 'child1' +const foo_parser = new ArgumentParser({ + parents: [parent_parser], + description: 'child1' }); foo_parser.addArgument(['foo']); args = foo_parser.parseArgs(['--parent', '2', 'XXX']); console.log(args); -var bar_parser = new ArgumentParser({ - parents: [parent_parser], - description: 'child2' +const bar_parser = new ArgumentParser({ + parents: [parent_parser], + description: 'child2' }); bar_parser.addArgument(['--bar']); args = bar_parser.parseArgs(['--bar', 'YYY']); console.log(args); - - - -var prefixCharsExample = new ArgumentParser({ - version: '0.0.1', - addHelp: true, - description: 'Argparse examples: prefix_chars', - prefixChars: '-+' +const prefixCharsExample = new ArgumentParser({ + version: '0.0.1', + addHelp: true, + description: 'Argparse examples: prefix_chars', + prefixChars: '-+' }); prefixCharsExample.addArgument(['+f', '++foo']); prefixCharsExample.addArgument(['++bar'], { action: 'storeTrue' }); @@ -193,39 +177,36 @@ console.dir(args); args = prefixCharsExample.parseArgs(['++foo', '2', '++bar']); console.dir(args); - - - -var subparserExample = new ArgumentParser({ - version: '0.0.1', - addHelp: true, - description: 'Argparse examples: sub-commands' +const subparserExample = new ArgumentParser({ + version: '0.0.1', + addHelp: true, + description: 'Argparse examples: sub-commands' }); -var subparsers = subparserExample.addSubparsers({ - title: 'subcommands', - dest: "subcommand_name" +const subparsers = subparserExample.addSubparsers({ + title: 'subcommands', + dest: "subcommand_name" }); -var bar = subparsers.addParser('c1', { addHelp: true, help: 'c1 help' }); +let bar = subparsers.addParser('c1', { addHelp: true, help: 'c1 help' }); bar.addArgument( - ['-f', '--foo'], - { - action: 'store', - help: 'foo3 bar3' - } + ['-f', '--foo'], + { + action: 'store', + help: 'foo3 bar3' + } ); -var bar = subparsers.addParser( - 'c2', - { aliases: ['co'], addHelp: true, help: 'c2 help' } +bar = subparsers.addParser( + 'c2', + { aliases: ['co'], addHelp: true, help: 'c2 help' } ); bar.addArgument( - ['-b', '--bar'], - { - action: 'store', - type: 'int', - help: 'foo3 bar3' - } + ['-b', '--bar'], + { + action: 'store', + type: 'int', + help: 'foo3 bar3' + } ); subparserExample.printHelp(); console.log('-----------'); @@ -241,66 +222,57 @@ console.dir(args); console.log('-----------'); subparserExample.parseArgs(['c1', '-h']); - - - -var functionExample = new ArgumentParser({ description: 'Process some integers.' }); +const functionExample = new ArgumentParser({ description: 'Process some integers.' }); function sum(arr: number[]) { - return arr.reduce(function(a, b) { - return a + b; - }, 0); + return arr.reduce((a, b) => a + b, 0); } function max(arr: number[]) { - return Math.max.apply(Math, arr); + return Math.max.apply(Math, arr); } - functionExample.addArgument(['integers'], { - metavar: 'N', - type: 'int', - nargs: '+', - help: 'an integer for the accumulator' + metavar: 'N', + type: 'int', + nargs: '+', + help: 'an integer for the accumulator' }); functionExample.addArgument(['--sum'], { - dest: 'accumulate', - action: 'storeConst', - constant: sum, - defaultValue: max, - help: 'sum the integers (default: find the max)' + dest: 'accumulate', + action: 'storeConst', + constant: sum, + defaultValue: max, + help: 'sum the integers (default: find the max)' }); args = functionExample.parseArgs('--sum 1 2 -1'.split(' ')); console.log(args.accumulate(args.integers)); - - - -var formatterExample = new ArgumentParser({ - prog: 'PROG', - formatterClass: RawDescriptionHelpFormatter, - description: 'Keep the formatting\n' + - ' exactly as it is written\n' + - '\n' + - 'here\n' +const formatterExample = new ArgumentParser({ + prog: 'PROG', + formatterClass: RawDescriptionHelpFormatter, + description: 'Keep the formatting\n' + + ' exactly as it is written\n' + + '\n' + + 'here\n' }); formatterExample.addArgument(['--foo'], { - help: ' foo help should not\n' + - ' retain this odd formatting' + help: ' foo help should not\n' + + ' retain this odd formatting' }); formatterExample.addArgument(['spam'], { - 'help': 'spam help' + help: 'spam help', }); -var group = formatterExample.addArgumentGroup({ - title: 'title', - description: ' This text\n' + - ' should be indented\n' + - ' exactly like it is here\n' +const group = formatterExample.addArgumentGroup({ + title: 'title', + description: ' This text\n' + + ' should be indented\n' + + ' exactly like it is here\n' }); group.addArgument(['--bar'], { - help: 'bar help' + help: 'bar help' }); formatterExample.printHelp(); diff --git a/types/argparse/index.d.ts b/types/argparse/index.d.ts index 2701f96ac3..1fca8a676f 100644 --- a/types/argparse/index.d.ts +++ b/types/argparse/index.d.ts @@ -1,26 +1,24 @@ -// Type definitions for argparse v1.0 +// Type definitions for argparse 1.0 // Project: https://github.com/nodeca/argparse // Definitions by: Andrew Schurman // Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export declare class ArgumentParser extends ArgumentGroup { +export class ArgumentParser extends ArgumentGroup { constructor(options?: ArgumentParserOptions); - addSubparsers(options?: SubparserOptions): SubParser; - parseArgs(args?: string[], ns?: Namespace | Object): any; + parseArgs(args?: string[], ns?: Namespace | object): any; printUsage(): void; printHelp(): void; formatUsage(): string; formatHelp(): string; - parseKnownArgs(args?: string[], ns?: Namespace | Object): any[]; + parseKnownArgs(args?: string[], ns?: Namespace | object): any[]; convertArgLineToArg(argLine: string): string[]; exit(status: number, message: string): void; error(err: string | Error): void; } -declare class Namespace { +export class Namespace { constructor(options: object); get(key: K, defaultValue?: D): this[K] | D; isset(key: K): boolean; @@ -30,11 +28,11 @@ declare class Namespace { unset(key: K, defaultValue?: D): this[K] | D; } -declare class SubParser { +export class SubParser { addParser(name: string, options?: SubArgumentParserOptions): ArgumentParser; } -declare class ArgumentGroup { +export class ArgumentGroup { addArgument(args: string[], options?: ArgumentOptions): void; addArgumentGroup(options?: ArgumentGroupOptions): ArgumentGroup; addMutuallyExclusiveGroup(options?: { required: boolean }): ArgumentGroup; @@ -42,7 +40,7 @@ declare class ArgumentGroup { getDefault(dest: string): any; } -interface SubparserOptions { +export interface SubparserOptions { title?: string; description?: string; prog?: string; @@ -53,12 +51,12 @@ interface SubparserOptions { metavar?: string; } -interface SubArgumentParserOptions extends ArgumentParserOptions { +export interface SubArgumentParserOptions extends ArgumentParserOptions { aliases?: string[]; help?: string; } -interface ArgumentParserOptions { +export interface ArgumentParserOptions { description?: string; epilog?: string; addHelp?: boolean; @@ -71,19 +69,19 @@ interface ArgumentParserOptions { version?: string; } -interface ArgumentGroupOptions { +export interface ArgumentGroupOptions { prefixChars?: string; argumentDefault?: any; title?: string; description?: string; } -export declare class HelpFormatter { } -export declare class ArgumentDefaultsHelpFormatter { } -export declare class RawDescriptionHelpFormatter { } -export declare class RawTextHelpFormatter { } +export class HelpFormatter { } +export class ArgumentDefaultsHelpFormatter { } +export class RawDescriptionHelpFormatter { } +export class RawTextHelpFormatter { } -interface ArgumentOptions { +export interface ArgumentOptions { action?: string; optionStrings?: string[]; dest?: string; From 37c7dd3c6d3d93e7963b2a68a91d2c8588cadc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Sat, 2 Sep 2017 14:23:22 +0200 Subject: [PATCH 170/316] typescript requirements --- types/argparse/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/argparse/index.d.ts b/types/argparse/index.d.ts index 1fca8a676f..509c569999 100644 --- a/types/argparse/index.d.ts +++ b/types/argparse/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Andrew Schurman // Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 export class ArgumentParser extends ArgumentGroup { constructor(options?: ArgumentParserOptions); From 9f2cfd9d09386fe63a788cdc27e23188ccfab532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Sat, 2 Sep 2017 14:25:58 +0200 Subject: [PATCH 171/316] ban-types --- types/argparse/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/argparse/index.d.ts b/types/argparse/index.d.ts index 509c569999..f19aadbe96 100644 --- a/types/argparse/index.d.ts +++ b/types/argparse/index.d.ts @@ -89,7 +89,8 @@ export interface ArgumentOptions { nargs?: string | number; constant?: any; defaultValue?: any; - type?: string | Function; + // type may be a string (primitive) or a Function (constructor) + type?: string | Function; // tslint:disable-line:ban-types choices?: string | string[]; required?: boolean; help?: string; From ac013ff25480151fb80b9d345829211ec736dc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Sat, 2 Sep 2017 14:37:39 +0200 Subject: [PATCH 172/316] formatting --- types/argparse/argparse-tests.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/types/argparse/argparse-tests.ts b/types/argparse/argparse-tests.ts index fe5d4fd765..aef18b665b 100644 --- a/types/argparse/argparse-tests.ts +++ b/types/argparse/argparse-tests.ts @@ -250,15 +250,11 @@ console.log(args.accumulate(args.integers)); const formatterExample = new ArgumentParser({ prog: 'PROG', formatterClass: RawDescriptionHelpFormatter, - description: 'Keep the formatting\n' + - ' exactly as it is written\n' + - '\n' + - 'here\n' + description: `Keep the formatting\nexactly as it is written\n\nhere\n`, }); formatterExample.addArgument(['--foo'], { - help: ' foo help should not\n' + - ' retain this odd formatting' + help: `foo help should not\nretain this odd formatting`, }); formatterExample.addArgument(['spam'], { @@ -267,9 +263,7 @@ formatterExample.addArgument(['spam'], { const group = formatterExample.addArgumentGroup({ title: 'title', - description: ' This text\n' + - ' should be indented\n' + - ' exactly like it is here\n' + description: `This text\nshould be indented\nexactly like it is here\n`, }); group.addArgument(['--bar'], { From 37a0a0407795497c8d347d6ab699fa030fa5f269 Mon Sep 17 00:00:00 2001 From: AndreyTsvetkov Date: Sat, 2 Sep 2017 16:43:18 +0300 Subject: [PATCH 173/316] added disableCompensation property --- types/react-sticky/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-sticky/index.d.ts b/types/react-sticky/index.d.ts index 23fd51d196..85743b9945 100644 --- a/types/react-sticky/index.d.ts +++ b/types/react-sticky/index.d.ts @@ -17,6 +17,7 @@ export interface StickyProps { topOffset?: number; bottomOffset?: number; onStickyStateChange?(isSticky: boolean): void; + disableCompensation?: boolean; } export const Sticky: React.ComponentClass; From 8563b0ce6a8b9d842c71feecb1eca05cb350719e Mon Sep 17 00:00:00 2001 From: abrahambotros Date: Sat, 2 Sep 2017 09:42:57 -0700 Subject: [PATCH 174/316] [react-native-video] Add onProgress data --- types/react-native-video/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/react-native-video/index.d.ts b/types/react-native-video/index.d.ts index 8b31bfed0d..b264df6d64 100644 --- a/types/react-native-video/index.d.ts +++ b/types/react-native-video/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for react-native-video 1.0 +// Type definitions for react-native-video 2.0 // Project: https://github.com/react-native-community/react-native-video // Definitions by: HuHuanming +// abrahambotros // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -48,7 +49,10 @@ export interface VideoProperties extends ViewProperties { onLoad?(): void; onBuffer?(): void; onError?(): void; - onProgress?(): void; + onProgress?(data: { + currentTime: number, + playableDuration: number, + }): void; onSeek?(): void; onEnd?(): void; onFullscreenPlayerWillPresent?(): void; From 0fa3e15d6092dd6794085170bb41c0ff64e4decc Mon Sep 17 00:00:00 2001 From: abrahambotros Date: Sat, 2 Sep 2017 09:49:12 -0700 Subject: [PATCH 175/316] [react-native-video] Add onProgress data test --- .../react-native-video-tests.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/types/react-native-video/react-native-video-tests.tsx b/types/react-native-video/react-native-video-tests.tsx index e0ec0bad73..b2ea41ce92 100644 --- a/types/react-native-video/react-native-video-tests.tsx +++ b/types/react-native-video/react-native-video-tests.tsx @@ -7,16 +7,27 @@ import { } from 'react-native'; import Video from 'react-native-video'; -class SwiperTest extends React.Component { +class VideoTest extends React.Component { constructor(props: {}) { super(props); } render(): React.ReactElement { return ( -