From db6d4299c7980849ca2517084210bee8ce5b9330 Mon Sep 17 00:00:00 2001
From: cronon
Date: Mon, 4 Apr 2016 13:46:47 +0300
Subject: [PATCH 001/586] Add documentation for cookie-js
---
cookiejs/cookiejs.d.ts | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/cookiejs/cookiejs.d.ts b/cookiejs/cookiejs.d.ts
index 1bc4d2b5ee..77b8973aed 100644
--- a/cookiejs/cookiejs.d.ts
+++ b/cookiejs/cookiejs.d.ts
@@ -2,20 +2,46 @@
// Project: https://github.com/js-coder/cookie.js
// Definitions by: Boltmade
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
+/**
+ * Shortcut for cookie.get()
+ */
declare function cookie(key : string, fallback?: string) : string;
declare function cookie(keys : string[], fallback?: string) : string;
declare namespace cookie {
+ /**
+ * Create a cookie. The value will automatically be escaped.
+ */
export function set(key : string, value : string, options? : any) : void;
+ /**
+ * Set several cookies at once
+ */
export function set(obj : any, options? : any) : void;
+ /**
+ * Remove cookies
+ */
export function remove(key : string) : void;
export function remove(keys : string[]) : void;
export function remove(...args : string[]) : void;
+ /**
+ * Remove all cookies
+ */
export function empty() : void;
+ /**
+ * Retrieve the value of the cookie
+ */
export function get(key : string, fallback?: string) : string;
- export function get(keys : string[], fallback?: string) : string;
+ /**
+ * Retrieve values of several cookies
+ */
+ export function get(keys : string[], fallback?: string) : any;
+ /**
+ * Get all currently saved cookies
+ */
export function all() : any;
+ /**
+ * Test if cookies are enabled
+ */
export function enabled() : boolean;
}
From 11aece9e50aa73feb5497bab8073599b699c040e Mon Sep 17 00:00:00 2001
From: Jason Burns
Date: Thu, 23 Mar 2017 20:15:25 -0700
Subject: [PATCH 002/586] Add node-jose types.
The tests are taken from the documentation currently provided on
the NPM page for node-jose. They need to be cleaned up and added
to.
---
node-jose/index.d.ts | 1379 ++++++++++++++++++++++++++++++++++
node-jose/node-jose-tests.ts | 388 ++++++++++
node-jose/tsconfig.json | 22 +
3 files changed, 1789 insertions(+)
create mode 100644 node-jose/index.d.ts
create mode 100644 node-jose/node-jose-tests.ts
create mode 100644 node-jose/tsconfig.json
diff --git a/node-jose/index.d.ts b/node-jose/index.d.ts
new file mode 100644
index 0000000000..d3a7fd891c
--- /dev/null
+++ b/node-jose/index.d.ts
@@ -0,0 +1,1379 @@
+// Type definitions for node-jose v0.9.3
+// Project: https://github.com/cisco/node-jose
+// Definitions by: Jason Burns
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+// Most of this documentation comes directly from the excellently documented
+// node-jose package, with only a bit added in to explain intermediate types.
+// It should currently be considered a wip, as I created it for a personal
+// project, but have not spent the necessary time to make it feature complete.
+// Uses 'object' so requires tsc >2.2
+
+///
+
+/**
+ * Exposes all implemented algorithms through a common interface comprised of
+ * six primary 'action' functions.
+ */
+export module JWA {
+
+ /**
+ * Options that can be given to the decrypt function. Additional data can be
+ * passed in with `aad` or `adata` (`aad` will take precedence if both are given),
+ * an initialization vector with `iv`, and an authentication tag or code with
+ * `tag` or `mac` (`tag` will take precedence).
+ */
+ type decryptEncryptOptions = {
+ aad?: Buffer,
+ adata?: Buffer,
+ iv?: Buffer,
+ tag?: Buffer, // Not used in encrypt
+ mac?: Buffer, // Not used in encrypt
+ epu?: Buffer, // encryption party info
+ epv?: Buffer, // encryption party info
+ kdata?: Buffer,
+ epk?: Buffer, // ephemeral pub key used in ec
+ enc?: string, // algorithm to use in ec
+ alg?: string, // variation of enc, probably oversight in lib code
+ apu?: Buffer, // agreement party info used in ec
+ apv?: Buffer, // agreement party info used in ec
+ p2s?: Buffer, // used in pbes
+ p2c?: number // used in pbes
+ };
+
+ /**
+ * Options that can be given to the derive functions. Some options are only viable
+ * for certain algorithms. Future doc will expand these use cases.
+ */
+ type deriveOptions = {
+ length?: number, // key length
+ otherInfo?: Buffer, // info used in concatkdf
+ public?: Buffer, // public key used in ecdh
+ hash?: Buffer, // hash used in ecdh
+ salt?: Buffer, // salt value used in hkdf
+ info?: Buffer, // app identifier info used in hkdf
+ };
+
+ /**
+ * Options used for all sign algorithms.
+ */
+ type signVerifyOptions = { loose?: boolean }; // used in hmac algo
+
+ /**
+ * The object that is returned from encrypt options. Some algorithms return a
+ * tag value, so a simple buffer cannot be used here.
+ */
+ type encryptReturn = {
+ data: Buffer, // The cipher text
+ tag?: Buffer // The tag used in some algorithms
+ }
+
+ /**
+ * Return object for sign functions. The data is replicated into the return for
+ * ease of use.
+ */
+ type signReturn = {
+ data: Buffer, // the data passed into the sign function
+ mac: Buffer // the signature for `data`
+ }
+
+ /**
+ * Return object for verify functions. The data and mac are replicated into the
+ * return for ease of use.
+ */
+ type verifyReturn = {
+ data: Buffer, // the data passed into the verify function
+ mac: Buffer, // the signature for `data`
+ valid: boolean // whether the signature matches the data
+ }
+
+ /**
+ * Run the decryption algorithm given by `alg`, if it is supported in the current
+ * implementation.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The decryption key
+ * @param {(string | Buffer)} cdata The ciphertext
+ * @param {decryptOptions} [props] Any of the allowed decryption options given in `JWA.decryptEncryptOptions`
+ * @returns {Promise} A buffer with the plain text.
+ */
+ function decrypt(alg: string, key: string | Buffer, cdata: string | Buffer, props?: decryptEncryptOptions): Promise;
+
+ /**
+ * Derive a new cryptographically strong key from weaker key material, using `alg` if it is
+ * implemented
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The weak key material
+ * @param {deriveOptions} props Options to be used by algorithm, defined in `JWA.deriveOptions`.
+ * @returns {Promise} The stronger key material
+ */
+ function derive(alg: string, key: string | Buffer, props?: deriveOptions): Promise;
+
+ /**
+ * Create a hash of `data` using the algorithm `alg` if implemented.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} data The data to hash
+ * @param {*} props Unused at this time, left for future implementations
+ * @returns {Promise} The hash
+ */
+ function digest(alg: string, data: string | Buffer, props?: any): Promise;
+
+ /**
+ * Run the encryption algorithm given by `alg`, if it is supported by the implementation.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The encryption key
+ * @param {(string | Buffer)} pdata The plaintext
+ * @param {encryptOptions} props Options used by the specified algorithm in `JWA.decryptEncryptOptions`.
+ * @returns {Promise} The ciphertext in `data` field, `tag` field included if in algorithm.
+ */
+ function encrypt(alg: string, key: string | Buffer, pdata: string | Buffer, props?: decryptEncryptOptions): Promise;
+
+ /**
+ * Sign `pdata` with the request algorithm if supported.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The signing key
+ * @param {(string | Buffer)} pdata The data to add integrity to
+ * @param {signOptions} props Options used by the algorithm as defined in `JWA.signVerifyOptions`
+ * @returns {Promise} The signature is in the `mac` field.
+ */
+ function sign(alg: string, key: string | Buffer, pdata: string | Buffer, props: signVerifyOptions): Promise;
+
+ /**
+ * Verify the data in `pdata` is valid by using `key` and `mac`.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The verifying key
+ * @param {(string | Buffer)} pdata The signed data to verify
+ * @param {(string | Buffer)} mac The signature as previously returned via the `sign` function
+ * @param {signVerifyOptions} props Options used by the algorithm as defined in `JWA.signVerifyOptions`
+ * @returns {Promise;
+}
+
+/**
+ * Contains all the encrypton tools for JWTs.
+ */
+export module JWE {
+
+ /**
+ * Used to customize decryption processes. The following options are currently
+ * supported:
+ *
+ * @property {} handlers An object where each name is a JOSE header member name and
+ * the value can be a boolean, function, or an object.
+ *
+ * Handlers are intended to support 'crit' extensions. When a boolean value,
+ * the member is expected to be processed once decryption is fully complete.
+ * When a function, it is called just before the ciphertext is decrypted
+ * (processed as if it were a `prepare` handler, as decribed in `decryptCritProcessors`).
+ * Note that normal processing of `decrypt()` does not continue until all
+ * relevant handlers have completed. Any changes handlers make to the
+ * provided objects affects `decrypt()`'s processing.
+ */
+ type decryptCritHeaderOptions = {
+ handlers: { [crit_header: string]: boolean | Function | decryptCritProcessors }
+ };
+
+ /**
+ * For the critical header processing, the options may include an object like this,
+ * which defines these fields to run at various times of decryption processing.
+ * @property {Function} recipient A function called after a valid key is
+ * determined; it takes an object describing the recipient, and
+ * returns a Promise that is fulfilled once the handler's processing
+ * is complete.
+ * @property {Function} prepare A function called just prior to decrypting
+ * the ciphertext; it takes an object describing the decryption
+ * result (but containing `ciphertext` and `tag' instead of `payload`
+ * and `plaintext`), and returns a Promise that is fulfilled once
+ * the handler's processing is complete.
+ * @property {Function} complete A function called once decryption is complete,
+ * just prior to fulfilling the Promise returned by `decrypt()`; it
+ * takes the object that will be returned by `decrypt()`'s fulfilled
+ * Promise, and returns a Promise that is fulfilled once the handler's
+ * processing is complete.
+ */
+ type decryptCritProcessors = {
+ recipient?: Function,
+ prepare?: Function,
+ complete?: Function
+ };
+
+ /**
+ * Object that defines the output that is given from the `decrypt()` function
+ * of a `Decryptor`.
+ *
+ * @property {any} header The JOSE Header, combined from the relevant "header" and
+ * "protected" fields from the original JWE object.
+ * @property {string[]} protected An array containing the names of the protected fields
+ * @property {JWK.Key} key The used to decrypt the content
+ * @property {Buffer} payload The decrypted content (as a Buffer)
+ * @property {Buffer} plaintext An alias for `payload`
+ */
+ type decryptReturn = {
+ header: any,
+ protected: string[],
+ key: JWK.Key,
+ payload: Buffer,
+ plaintext: Buffer
+ };
+
+ /**
+ * The options for {@link createEncrypt}.
+ *
+ * @property {boolean|string} zip Determines the compression algorithm to
+ * apply to the plaintext (if any) before it is encrypted. This can
+ * also be `true` (which is equivalent to `"DEF"`) or **`false`**
+ * (the default, which is equivalent to no compression).
+ * @property {string} format Determines the serialization format of the
+ * output. Expected to be `"general"` for general JSON
+ * Serialization, `"flattened"` for flattened JSON Serialization,
+ * or `"compact"` for Compact Serialization (default is
+ * **`"general"`**).
+ * @property {boolean} compact Determines if the output is the Compact
+ * serialization (`true`) or the JSON serialization (**`false`**,
+ * the default).
+ * @property {string} contentAlg The algorithm used to encrypt the plaintext
+ * (default is **`"A128CBC-HS256"`**).
+ * @property {string|string[]} protect The names of the headers to integrity
+ * protect. The value `""` means that none of the header parameters
+ * are integrity protected, while `"*"` (the default) means that all
+ * header parameters are integrity protected.
+ * @property {object} fields Any extra fields to include in the JWT.
+ * @property {string} aad Additional authenticated data to include
+ * @property {string} cek A content encryption key for the underlying algorithm
+ * @property {string} iv An init vector for the underlying algorithm.
+ */
+ type encOpts = {
+ zip?: boolean | string,
+ format?: string,
+ compact?: boolean,
+ contentAlg?: string,
+ protect?: string | string[],
+ fields?: any,
+ aad?: string,
+ cek?: string,
+ iv?: string
+ };
+
+ /**
+ * Factory function that reates a new Decrypter for the given Key or KeyStore.
+ *
+ * @param {(JWK.KeyStore|JWK.Key)} ks The Key or KeyStore to use for decryption.
+ * @param {decryptCritHeaderOptions} [opts] The options for this decryptor.
+ * @returns {Decrypter} The new Decryptor.
+ */
+ function createDecrypt(ks: JWK.KeyStore | JWK.Key, opts?: decryptCritHeaderOptions): Decrypter;
+
+ /**
+ * Factory function to create `Encrypter`s. See doc for opts and return for more info.
+ *
+ * @param {enc_opts} opts The options used to create the Encrypter.
+ * @param {(JWK.Key|JWK.Key[]|{key: JWK.Key}|{key: JWK.Key}[])} rcpts The recipient list for the JWT
+ * @returns {Encrypter} An object that can perform actions turning JWTs into JWEs.
+ */
+ function createEncrypt(opts: encOpts, rcpts: JWK.Key | JWK.Key[] | { key: JWK.Key } | { key: JWK.Key }[]): Encrypter;
+ function createEncrypt(rcpts: JWK.Key | JWK.Key[] | { key: JWK.Key } | { key: JWK.Key }[]): Encrypter;
+
+ /**
+ * @class Decrypter
+ * @classdesc
+ * Processor of encrypted data.
+ *
+ * @description
+ * **NOTE:** This class cannot be instantiated directly. Instead
+ * call {@link createDecrypt}.
+ */
+ interface Decrypter {
+
+ /**
+ * Decrypts the given input.
+ *
+ * {opts}, if provided, is used to customize this specific decrypt operation.
+ * This argument has the same semantics as {JWE.createDecrypt}, and takes
+ * precedence over those options.
+ *
+ * @param {object|string} input The encrypted content
+ * @param {decryptCritHeaderOptions} [opts] The options for this decryption operation.
+ * @returns {Promise} A promise for the decyprted plaintext
+ * @memberOf Decrypter
+ */
+ decrypt(input: object | string, opts?: decryptCritHeaderOptions): Promise;
+ }
+
+ /**
+ * @class Encrypter
+ * @classdesc
+ * Generator of encrypted data.
+ *
+ * @description
+ * **NOTE:** This class cannot be instantiated directly. Instead call
+ * {@link createEncrypt}.
+ */
+ interface Encrypter {
+ /**
+ * Indicates the compression algorithm applied to the plaintext
+ * before it is encrypted. The possible values are:
+ *
+ * + **`"DEF"`**: Compress the plaintext using the DEFLATE algorithm.
+ * + **`""`**: Do not compress the plaintext.
+ *
+ * @type {string}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ zip: string;
+
+ /**
+ * Indicates whether the output of this encryption generator is
+ * using the Compact serialization (`true`) or the JSON
+ * serialization (`false`).
+ *
+ * @type {boolean}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ compact: boolean;
+
+ /**
+ * Indicates the format the output of this encryption generator takes.
+ *
+ * @type {string}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ format: string;
+
+ /**
+ * The header parameter names that are protected. Protected header fields
+ * are first serialized to UTF-8 then encoded as util.base64url, then used as
+ * the additional authenticated data in the encryption operation.
+ *
+ * @type {string[]}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ protected: string[];
+
+ /**
+ * The global header parameters, both protected and unprotected. Call
+ * {@link Encrypter#protected} to determine which parameters will
+ * be protected.
+ *
+ * @type {object}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ header: object;
+
+ /**
+ * Updates the plaintext data for the encryption generator. The plaintext
+ * is appended to the end of any other plaintext already applied.
+ *
+ * If {data} is a Buffer, {encoding} is ignored. Otherwise, {data} is
+ * converted to a Buffer internally to {encoding}.
+ *
+ * @param {(Buffer|string)} [data] The plaintext to apply.
+ * @param {string} [encoding] The encoding of the plaintext.
+ * @returns {Encrypter} This encryption generator.
+ * @throws {Error} If ciphertext has already been generated.
+ * @memberOf Encrypter
+ */
+ update(data?: Buffer | string, encoding?: string): Encrypter;
+
+ /**
+ * Finishes the encryption operation.
+ *
+ * The returned Promise, when fulfilled, is the JSON Web Encryption (JWE)
+ * object, either in the Compact (if {@link Encrypter#compact} is
+ * `true`) or the JSON serialization.
+ *
+ * @param {(Buffer|string)} [data] The final plaintext data to apply.
+ * @param {string} [encoding] The encoding of the final plaintext data (if any).
+ * @returns {(Promise)} A promise for the encryption operation.
+ * @throws {Error} If ciphertext has already been generated.
+ * @memberOf Encrypter
+ */
+ final(data?: Buffer | string, encoding?: string): Promise;
+ }
+}
+
+/**
+ * Tools for creating and manipulating keys and keystores.
+ */
+export module JWK {
+
+ /**
+ * The following constants are used to select the different modes for
+ * operation, their names are self-explanatory.
+ */
+ const MODE_DECRYPT: string;
+ const MODE_ENCRYPT: string;
+ const MODE_SIGN: string;
+ const MODE_UNWRAP: string;
+ const MODE_VERIFY: string;
+ const MODE_WRAP: string;
+
+ // These are copied in code directly from KeyStore statics, don't know
+ // how to mimic that in d.ts, so for now they're copy pasta. Also, the javadoc will be
+ // on these defitions as the actual library will not usually have you executing the static
+ // methods themselves (e.g. you'll do JWK.asKey instead of JWK.KeyStore.asKey()).
+ /**
+ * Coerces the given object into a Key. If {key} is an instance of JWK.Key,
+ * it is returned directly. Otherwise, this method first creates a new
+ * JWK.KeyStore and calls {@link KeyStore#add} on this new KeyStore.
+ *
+ * @param {(object|string)} key The value to coerce into a Key
+ * @param {string} [form] The format of a String Key to expect
+ * @param {object} [extras] extra jwk fields inserted when importing from a non json string (eg "pem")
+ * @returns {Promise} A promise for the coerced Key.
+ */
+ function asKey(key: object | string, form?: string, extras?: object): Promise;
+
+ /**
+ * Coerces the given object into a KeyStore. This method uses the following
+ * algorithm to coerce {ks}:
+ *
+ * 1. if {ks} is an instance of JWK.KeyStore, it is returned directly
+ * 2. if {ks} is a string, it is parsed into a JSON value
+ * 3. if {ks} is an array, it creates a new JWK.KeyStore and calls {@link
+ * JWK.KeyStore#add} for each element in the {ks} array.
+ * 4. if {ks} is a JSON object, it creates a new JWK.KeyStore and calls {@link
+ * JWK.KeyStore#add} for each element in the "keys" property.
+ *
+ * @param {object|string} ks The value to coerce into a KeyStore
+ * @returns {Promise} A promise for the coerced KeyStore.
+ */
+ function asKeyStore(ks: object | string): Promise;
+
+ /**
+ * Creates a new empty KeyStore.
+ *
+ * @returns {JWK.KeyStore} The empty KeyStore.
+ */
+ function createKeyStore(): JWK.KeyStore;
+
+ /**
+ * Determines if the given object is a JWK.Key instance.
+ *
+ * @param {object} obj The object to test
+ * @returns {boolean} `true` if {obj} is a JWK.Key
+ */
+ function isKey(obj: any): boolean;
+
+ /**
+ * Determines if the given object is an instance of JWK.KeyStore.
+ *
+ * @param {*} obj The object to test
+ * @returns {boolean} `true` if {obj} is an instance of JWK.KeyStore,
+ * and `false` otherwise.
+ */
+ function isKeyStore(obj: any): boolean;
+
+ /**
+ * Options that can be used for searching a keystore for specific keys.
+ */
+ type KS_search_props = { alg?: string, use?: string, kid?: string, kty?: string };
+
+ /**
+ * @class JWK.KeyStore
+ * @classdesc
+ * Represents a collection of Keys.
+ *
+ * @description
+ * **NOTE:** This constructor cannot be called directly. Instead call {@link
+ * JWK.createKeyStore}.
+ */
+ interface KeyStore {
+ /**
+ * @method JWK.KeyStore#add
+ * @description
+ * Adds a Key to this KeyStore. If {jwk} is a string, it is first
+ * parsed into a plain JSON object. If {jwk} is already an instance
+ * of JWK.Key, its (public) JSON representation is first obtained
+ * then applied to a new JWK.Key object within this KeyStore.
+ *
+ * @param {(string|JWK.Key|object)} key The JSON Web Key (JWK)
+ * @param {string} [form] The formate of a string key to expect
+ * @param {*} [extras] extra jwk fields inserted when importing from a non json string (eg "pem")
+ * @returns {Promise} The promise for the added key
+ *
+ * @memberOf KeyStore
+ */
+ add(key: string | JWK.Key | object, form?: string, extras?: any): Promise;
+
+ /**
+ * Retrieves all of the contained Keys that optinally match all of the
+ * given properties.
+ *
+ * If {props} are specified, this method only returns Keys which exactly
+ * match the given properties. The properties can be any of the
+ * following:
+ *
+ * + **alg**: The algorithm for the Key.
+ * + **use**: The usage for the Key.
+ * + **kid**: The identifier for the Key.
+ *
+ * If no properties are given, this method returns all of the Keys for this
+ * KeyStore.
+ *
+ * @param {JWK.KS_search_props} [props] The properties to match against
+ * @param {boolean} [local = false] `true` if only the Keys
+ * directly contained by this KeyStore should be returned, or
+ * `false` if it should return all Keys of this KeyStore and
+ * its ancestors.
+ * @returns {JWK.Key[]} The list of matching Keys, or an empty array if no
+ * matches are found.
+ *
+ * @memberOf KeyStore
+ */
+ all(props?: JWK.KS_search_props, local?: boolean): JWK.Key[];
+
+ /**
+ * @method JWK.KeyStore#generate
+ * @description
+ * Generates a new random Key into this KeyStore.
+ *
+ * The type of {size} depends on the value of {kty}:
+ *
+ * + **`EC`**: String naming the curve to use, which can be one of:
+ * `"P-256"`, `"P-384"`, or `"P-521"` (default is **`"P-256"`**).
+ * + **`RSA`**: Number describing the size of the key, in bits (default is
+ * **`2048`**).
+ * + **`oct`**: Number describing the size of the key, in bits (default is
+ * **`256`**).
+ *
+ * Any properties in {props} are applied before the key is generated,
+ * and are expected to be data types acceptable in JSON. This allows the
+ * generated key to have a specific key identifier, or to specify its
+ * acceptable usage.
+ *
+ * The returned Promise, when fulfilled, returns the generated Key.
+ *
+ * @param {string} kty The type of generated key
+ * @param {(string|number)} [size] The size of the generated key
+ * @param {*} [props] Additional properties to apply to the generated
+ * key.
+ * @returns {Promise} The promise for the generated Key
+ * @throws {Error} If {kty} is not supported
+ *
+ * @memberOf KeyStore
+ */
+ generate(kty: string, size?: string | number, props?: any): Promise;
+
+ /**
+ * Retrieves the contained Key matching the given {kid}, and optionally
+ * all of the given properties. This method equivalent to calling
+ * {@link JWK.Store#all}, then returning the first Key whose
+ * "kid" is {kid}. If {kid} is undefined, then the first Key that
+ * is returned from `all()` is returned.
+ *
+ * @param {String} [kid]
+ * @param {object} [props]
+ * @param {Boolean} [local = false]
+ * @returns {JWK.Key}
+ *
+ * @param {string} [kid] The key identifier to match against.
+ * @param {JWK.KS_search_props} [props] The properties to match against.
+ * @param {boolean} [local = false] `true` if only the Keys
+ * directly contained by this KeyStore should be returned, or
+ * `false` if it should return all Keys of this KeyStore and
+ * its ancestors.
+ * @returns {JWK.Key} The Key matching {kid} and {props}, or `null`
+ * if no match is found.
+ *
+ * @memberOf KeyStore
+ */
+ get(kid?: string, props?: JWK.KS_search_props, local?: boolean): JWK.Key;
+ get(props?: JWK.KS_search_props, local?: boolean): JWK.Key;
+
+ /**
+ * @method JWK.KeyStore#remove
+ * @description
+ * Removes a Key from this KeyStore.
+ *
+ * **NOTE:** The removed Key's {keystore} property is not changed.
+ *
+ * @param {JWK.Key} key The key to remove.
+ *
+ * @memberOf KeyStore
+ */
+ remove(key: JWK.Key): void;
+
+ /**
+ * @method JWK.KeyStore#temp
+ * @description
+ * Creates a temporary KeyStore based on this KeyStore.
+ *
+ * @returns {JWK.KeyStore} The temporary KeyStore.
+ *
+ * @memberOf KeyStore
+ */
+ temp(): JWK.KeyStore;
+
+ /**
+ * @method JWK.KeyStore#toJSON
+ * @description
+ * Generates a JSON representation of this KeyStore, which conforms
+ * to a JWK Set from {I-D.ietf-jose-json-web-key}.
+ *
+ * @param {boolean} [isPrivate = false] `true` if the private fields
+ * of stored keys are to be included.
+ * @returns {*} The JSON representation of this KeyStore.
+ *
+ * @memberOf KeyStore
+ */
+ toJSON(isPrivate?: boolean): any;
+ }
+
+ // The below functions are technically defined as static functions on the KeyStore class,
+ // and then copied to the exports for the JWK module. See the documentation above for their
+ // use, but they are here just for completion sake, but commented out as you should use them
+ // from the module as intended.
+ /*
+ var KeyStore: {
+ asKey(key: object|string, form: string, extras: object): Promise;
+ asKeyStore(ks: any): Promise;
+ createKeyStore(): JWK.KeyStore;
+ isKey(obj: any): boolean;
+ isKeyStore(obj: any): boolean;
+ }
+ */
+
+ /**
+ * @class JWK.Key
+ * @classdesc
+ * Represents a JSON Web Key instance.
+ *
+ * @description
+ * **NOTE:** This class cannot be instantiated directly. Instead call
+ * {@link JWK.asKey}, {@link JWK.KeyStore#add}, or
+ * {@link JWK.KeyStore#generate}.
+ */
+ interface Key {
+
+ /**
+ * @member {String} JWK.Key#alg
+ * @description
+ * The sole algorithm this key can be used for.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ alg: string;
+
+ /**
+ * @member {JWK.KeyStore} JWK.Key#keystore
+ * @description
+ * The owning keystore.
+ *
+ * @type {JWK.KeyStore}
+ * @memberOf Key
+ */
+ keystore: JWK.KeyStore;
+
+ /**
+ * @member {string} JWK.Key#kid
+ * @description
+ * The identifier for this Key.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ kid: string;
+
+ /**
+ * @member {string} JWK.Key#kty
+ * @description
+ * The type of Key.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ kty: string;
+
+ /**
+ * @member {number} JWK.Key#length
+ * @description
+ * The size of this Key, in bits.
+ *
+ * @type {number}
+ * @memberOf Key
+ */
+ length: number;
+
+ /**
+ * @member {String} JWK.Key#use
+ * @description
+ * The usage for this Key.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ use: string;
+
+ /**
+ * @method JWK.Key#algorithms
+ * @description
+ * The possible algorithms this Key can be used for. The returned
+ * list is not any particular order, but is filtered based on the
+ * Key's intended usage.
+ *
+ * @param {string} mode The operation mode, see the MODE_* JWK constants.
+ * @returns {string[]} The list of supported algorithms
+ * @see JWK.Key#supports
+ * @memberOf Key
+ */
+ algorithms: (mode: string) => string[];
+
+ /**
+ * @method JWK.Key#decrypt
+ * @description
+ * Decrypts the given data using the specified algorithm.
+ *
+ * **NOTE:** This is the primitive decryption operation; the input is
+ * _**NOT**_ a JSON Web Encryption (JWE) object.
+ *
+ * **NOTE:** This operation is treated as distinct from {@link
+ * JWK.Key#unwrap}, as different algorithms and properties are often used
+ * for unwrapping a key versues decrypting arbitrary data.
+ *
+ * The Promise, when fulfilled, returns the plaintext data.
+ *
+ * @param {String} alg The decryption algorithm.
+ * @param {Buffer|String} data The data to decypt.
+ * @param {object} [props] Additional data for the decryption operation.
+ * @returns {Promise} The promise for the decryption operation.
+ * @throws {Error} If {alg} is not appropriate for this Key; or if
+ * the Key does not contain the appropriate properties.
+ *
+ *
+ * @memberOf Key
+ */
+ decrypt: (alg: string, data: string | Buffer, props?: any) => Promise
+ *
+ * The Promise, when fulfilled, returns an object with the following
+ * properties:
+ *
+ * + **data**: The data that was verified (and should be equal to
+ * {data}).
+ * + **mac**: The signature or MAC that was verified (and should be equal
+ * to {mac}).
+ * + **valid**: `true` if {mac} is valid for {data}.
+ *
+ * @param {String} alg The verification algorithm
+ * @param {String|Buffer} data The data to verify
+ * @param {String|Buffer} mac The signature or MAC to verify
+ * @param {object} [props] Additional properties for the verification
+ * algorithm.
+ * @returns {Promise} The promise for the verification operation.
+ * @throws {Error} If {alg} is not appropriate for this Key; or if
+ * the Key does not contain the appropriate properties.
+ *
+ *
+ * @memberOf Key
+ */
+ verify: (alg: string, data: string | Buffer, mac: string | Buffer, props?: any) => Promise;
+
+ /**
+ * @method JWK.Key#wrap
+ * @description
+ * Wraps the given key using the specified algorithm.
+ *
+ * **NOTE:** This is the primitive encryption operation; the output is
+ * _**NOT**_ a JSON Web Encryption (JWE) object.
+ *
+ * **NOTE:** This operation is treated as distinct from {@link
+ * JWK.Key#encrypt}, as different algorithms and properties are
+ * often used for wrapping a key versues encrypting arbitrary data.
+ *
+ * The Promise, when fulfilled, returns an object with the following
+ * properties:
+ *
+ * + **data**: The ciphertext data
+ * + **headers**: The additional header parameters to apply to a JWE.
+ *
+ * @param {String} alg The encryption algorithm
+ * @param {Buffer|String} data The data to encrypt
+ * @param {object} [props] Additional properties for the encryption
+ * algorithm.
+ * @returns {Promise} The promise for the encryption operation.
+ * @throws {Error} If {alg} is not appropriate for this Key; or if
+ * this Key does not contain the appropriate parameters.
+ * @memberOf Key
+ */
+ wrap: (alg: string, data: string | Buffer, props?: any) => Promise;
+ }
+}
+
+/**
+ * Contains all the signing tools for JWTs.
+ */
+export module JWS {
+
+ /**
+ * @property {Boolean} [compact] Use compact serialization?
+ * @property {String} [format] The serialization format to use ("compact",
+ * "flattened", "general")
+ * @property {object} [fields] Additional header fields
+ * @property {"*" | string[]} [protect] which headers to protect, "*" for all headers.
+ */
+ type signOpts = {
+ alg?: string,
+ compact?: boolean,
+ format?: string,
+ fields?: object,
+ protect?: "*" | string[]
+ };
+
+ /**
+ * @property {JWK.Key} key Key used to sign content
+ * @property {object} [header] Per-signatory header fields
+ * @property {String} [reference] Reference field to identify the key
+ * @property {"*" | string[]} [protect] List of fields to integrity
+ * protect ("*" to protect all fields)
+ */
+ type signSignatory = {
+ key: JWK.Key,
+ header?: object,
+ reference?: string,
+ protect?: "*" | string[]
+ };
+
+ /**
+ * Used to customize verification processes. The following options are currently
+ * supported:
+ *
+ * @property {} handlers An object where each name is a JOSE header member name and
+ * the value can be a boolean, function, or an object.
+ *
+ * Handlers are intended to support 'crit' extensions. When a boolean value,
+ * the member is expected to be processed once verification is fully complete.
+ * When a function, it is called just before the input is verified.
+ * (processed as if it were a `prepare` handler, as decribed in `verifyCritProcessors`).
+ * Note that normal processing of `verify()` does not continue until all
+ * relevant handlers have completed. Any changes handlers make to the
+ * provided objects affects `verify()`'s processing.
+ */
+ type verifyOptions = {
+ handlers: { [crit_header: string]: boolean | Function | verifyCritProcessors }
+ };
+
+ /**
+ * For the critical header processing, the options may include an object like this,
+ * which defines these fields to run at various times of verification processing.
+ * @property {Function} recipient A function called after a valid key is
+ * determined; it takes an object describing the recipient, and
+ * returns a Promise that is fulfilled once the handler's processing
+ * is complete.
+ * @property {Function} prepare A function called just prior to verifying
+ * the input; it takes an object describing the verification
+ * result, and returns a Promise that is fulfilled once
+ * the handler's processing is complete.
+ * @property {Function} complete A function called once verification is complete,
+ * just prior to fulfilling the Promise returned by `verify()`; it
+ * takes the object that will be returned by `verify()`'s fulfilled
+ * Promise, and returns a Promise that is fulfilled once the handler's
+ * processing is complete.
+ */
+ type verifyCritProcessors = {
+ recipient?: Function,
+ prepare?: Function,
+ complete?: Function
+ };
+
+ /**
+ * Object that defines the output that is given from the `verify()` function
+ * of a `Verifier`.
+ *
+ * @property {any} header The JOSE Header, combined from the relevant "header" and
+ * "protected" fields from the original JWE object.
+ * @property {JWK.Key} key The Key used for verifying.
+ * @property {Buffer} payload The verified content (as a Buffer)
+ * @property {string[]} protected An array containing the names of the protected fields
+ * @property {Buffer} signature The data that was used to verify payload with key.
+ */
+ type verifyReturn = {
+ header: object,
+ key: JWK.Key,
+ payload: Buffer,
+ protected: string[],
+ signature: Buffer
+ }
+
+ /**
+ * Creates a new JWS.Signer with the given options and signatories.
+ *
+ * @param {signOpts} opts The signing options.
+ * @param {(JWK.Key|JWK.Key[]|signSignatory[])} signs Signatories, either as an array of
+ * JWK.Key instances; or an array of signing signatory objects.
+ * @returns {Signer} The signature generator.
+ * @throws {Error} If Compact serialization is requested but there are
+ * multiple signatories
+ */
+ function createSign(opts: signOpts, signs: JWK.Key | JWK.Key[] | signSignatory[]): Signer;
+ function createSign(signs: JWK.Key | JWK.Key[] | signSignatory[]): Signer;
+
+ /**
+ * @description
+ * Creates a new JWS.Verifier with the given Key or KeyStore.
+ *
+ * @param {JWK.Key|JWK.KeyStore} ks The Key or KeyStore to use for verification.
+ * @returns {Verifier} The new verifier.
+ */
+ function createVerify(ks?: JWK.Key | JWK.KeyStore, opts?: verifyOptions): Verifier;
+
+ /**
+ * @class JWS.Signer
+ * @classdesc Generator of signed content.
+ *
+ * @description
+ * **NOTE:** this class cannot be instantiated directly. Instead call {@link
+ * JWS.createSign}.
+ */
+ interface Signer {
+
+ /**
+ * @member {Boolean} JWS.Signer#compact
+ * @description
+ * Indicates whether the outuput of this signature generator is using
+ * the Compact serialization (`true`) or the JSON serialization
+ * (`false`).
+ *
+ * @type {boolean}
+ * @memberOf Signer
+ */
+ compact: boolean;
+
+ /**
+ * @member {string} JWS.Signer#format
+ * @description
+ * The serialization format to use ("compact",
+ * "flattened", "general")
+ * @memberOf Signer
+ */
+ format: string;
+
+ /**
+ * @method JWS.Signer#update
+ * @description
+ * Updates the signing content for this signature content. The content
+ * is appended to the end of any other content already applied.
+ *
+ * If {data} is a Buffer, {encoding} is ignored. Otherwise, {data} is
+ * converted to a Buffer internally to {encoding}.
+ *
+ * @param {Buffer|String} data The data to sign.
+ * @param {String} [encoding="binary"] The encoding of {data}.
+ * @returns {Signer} This signature generator.
+ * @throws {Error} If a signature has already been generated.
+ * @memberOf Signer
+ */
+ update(data?: Buffer | string, encoding?: string): Signer;
+
+ /**
+ * @method JWS.Signer#final
+ * @description
+ * Finishes the signature operation.
+ *
+ * The returned Promise, when fulfilled, is the JSON Web Signature (JWS)
+ * object, either in the Compact (if {@link JWS.Signer#format} is
+ * `"compact"`), the flattened JSON (if {@link JWS.Signer#format} is
+ * "flattened"), or the general JSON serialization.
+ *
+ * @param {Buffer|String} [data] The final content to apply.
+ * @param {String} [encoding="binary"] The encoding of the final content
+ * (if any).
+ * @returns {Promise} The promise for the signatures
+ * @throws {Error} If a signature has already been generated.
+ * @memberOf Signer
+ */
+ final(data?: Buffer | string, encoding?: string): Promise;
+ }
+
+ /**
+ * @class JWS.Verifier
+ * @classdesc Parser of signed content.
+ *
+ * @description
+ * **NOTE:** this class cannot be instantiated directly. Instead call {@link
+ * JWS.createVerify}.
+ *
+ * @interface Verifier
+ */
+ interface Verifier {
+
+ /**
+ * If the verifier was created with a key, this key will be assumed to be
+ * assumed to be be the one to verify a signature, regardless of the kid of
+ * the JWT.
+ *
+ * @type {JWK.Key}
+ * @memberOf Verifier
+ */
+ defaultKey: JWK.Key;
+
+ /**
+ * The keystore that will be used to look up the `kid` from the JWT in.
+ *
+ * @type {JWK.KeyStore}
+ * @memberOf Verifier
+ */
+ keystore: JWK.KeyStore;
+
+ /**
+ * @method JWS.Verifier#verify
+ * @description
+ * Verifies the input JWS with one of the keys in the keystore associated with
+ * this verifier.
+ *
+ * @param {string} input The JWS in compact format.
+ * @param {verifyOptions} [opts] See verifyOptions documentation.
+ * @returns {Promise} See verifyReturn documentation.
+ * @memberOf Verifier
+ */
+ verify(input: string, opts?: verifyOptions): Promise
+ }
+}
+
+/**
+ * A collection of Buffer and conversion utilities.
+ */
+export module util {
+
+ /**
+ * Converts the given input into a Buffer with the given encoding.
+ *
+ * @param {(Buffer|string|Array|ArrayBuffer|ArrayBufferView)} input
+ * @param {string} encoding Defaults to 'binary'
+ * @returns {Buffer}
+ */
+ function asBuffer(input: Buffer | string | Array | ArrayBuffer | ArrayBufferView, encoding?: string): Buffer;
+
+ /**
+ * Returns a Buffer filled with random bytes of length `len`.
+ *
+ * @param {number} len
+ * @returns {Buffer}
+ */
+ function randomBytes(len: number): Buffer;
+
+ /**
+ * @namespace base64url
+ * @description
+ * Provides methods to encode and decode data according to the
+ * base64url alphabet.
+ */
+ module base64url {
+
+ /**
+ * Decodes the input from base64url.
+ *
+ * @param {String} input The data to decode.
+ * @returns {Buffer} the base64url decoding of {input}.
+ */
+ function decode(input: string): Buffer;
+
+ /**
+ * Encodes the input to base64url.
+ *
+ * If {input} is a Buffer, then {encoding} is ignored. Otherwise,
+ * {encoding} can be one of "binary", "base64", "hex", "utf8".
+ *
+ * @param {(Buffer|string)} input The data to encode.
+ * @param {string} [encoding = binary] The input encoding format.
+ * @returns {string} the base64url encoding of {input}.
+ */
+ function encode(input: Buffer | string, encoding?: string): string;
+ }
+
+ /**
+ * @namespace utf8
+ * @description
+ * Provides methods to encode and decode data as utf8.
+ */
+ module utf8 {
+
+ /**
+ * Decodes the input from utf8.
+ *
+ * @param {string} input The data to decode.
+ * @returns {string} the utf8 decoding of {input}.
+ */
+ function decode(input: string): string;
+
+ /**
+ * Encodes the input as utf8
+ *
+ * @param {string} input the data to encode.
+ * @returns {string} the ut8 encoding of {input}.
+ */
+ function encode(input: string): string;
+ }
+}
+
+/**
+ * Possible return value from the parse function. The values inside the return
+ * depend heavily on the type of JWT that is passed into it.
+ * @property {string} type Defines whether the JWT was a "JWS" or a "JWE"
+ * @property {string} format Whether the JWT was in compact or JSON format
+ * @property {Buffer|string|object} input The JWT
+ * @property {object} header All of the headers from the recipients or signatories.
+ * @property {function} perform The operation to perform. After calling parse, call the
+ * `perform` function from the return with a valid keystore to verify or decrypt the JWT.
+ */
+type parseCompactReturn = {
+ type: "JWS" | "JWE",
+ format: "compact" | "json",
+ input: Buffer | string | object,
+ header: object,
+ perform: (ks: JWK.KeyStore) => Promise | Promise
+};
+
+/**
+ * Possible return value from the parse function. The values inside the return
+ * depend heavily on the type of JWT that is passed into it.
+ * @property {string} type Defines whether the JWT was a "JWS" or a "JWE"
+ * @property {string} format Whether the JWT was in compact or JSON format
+ * @property {Buffer|string|object} input The JWT
+ * @property {object} all All of the headers from the recipients or signatories.
+ * @property {function} perform The operation to perform. After calling parse, call the
+ * `perform` function from the return with a valid keystore to verify or decrypt the JWT.
+ */
+type parseJSONReturn = {
+ type: "JWS" | "JWE",
+ format: "compact" | "json",
+ input: Buffer | string | object,
+ all: object,
+ perform: (ks: JWK.KeyStore) => Promise | Promise
+};
+
+/**
+ * Given a JWT passed in as input, the function will return all the known data about
+ * the JWT as described in the return documentation, as well as a function to process
+ * the token (either verify it or decrypt it). This is a helper function that performs
+ * guessing logic so the user does not need to manage whether a token is compact, json,
+ * JWS, or JWE.
+ *
+ * @param {Buffer|string|object} input The token
+ * @returns {parseCompactReturn|parseJSONReturn} the return object, as defined by its documentation.
+ */
+export function parse(input: Buffer | string | object): parseCompactReturn | parseJSONReturn;
+export namespace parse {
+
+ /**
+ * A helper function for `parse`, but is available for usage. This function is called
+ * for JWTs in the compact format.
+ *
+ * @param {Buffer|string|object} input The token
+ * @returns {parseCompactReturn|parseJSONReturn} the return object, as defined by its documentation.
+ */
+ function compact(input: Buffer | string | object): parseCompactReturn | parseJSONReturn;
+
+ /**
+ * A helper function for `parse`, but is available for usage. This function is called
+ * for JWTs in the JSON format.
+ *
+ * @param {Buffer|string|object} input The token
+ * @returns {parseCompactReturn|parseJSONReturn} the return object, as defined by its documentation.
+ */
+ function json(input: Buffer | string | object): parseCompactReturn | parseJSONReturn;
+}
diff --git a/node-jose/node-jose-tests.ts b/node-jose/node-jose-tests.ts
new file mode 100644
index 0000000000..fa43a262a9
--- /dev/null
+++ b/node-jose/node-jose-tests.ts
@@ -0,0 +1,388 @@
+/*
+ * Test file for node-jose. At this time these tests were taken verbatim
+ * from the documentation on the NPM page at
+ * https://www.npmjs.com/package/node-jose
+ * This file definitely needs to be cleaned up and more tests added to
+ * test the entirety of the definition file.
+ */
+
+import * as jose from 'node-jose';
+
+let keystore = jose.JWK.createKeyStore();
+let buf = new Buffer('a');
+
+jose.JWK.asKeyStore("{key: somekey}").
+ then(function (result) {
+ // {result} is a jose.JWK.KeyStore
+ keystore = result;
+ });
+
+let output = keystore.toJSON();
+output = keystore.toJSON(true);
+
+// by 'kid'
+let kid: string = "someID";
+let key = keystore.get(kid);
+
+// ... and by 'kty'
+key = keystore.get(kid, { kty: 'RSA' });
+
+// ... and by 'use'
+key = keystore.get(kid, { use: 'enc' });
+
+// ... and by 'alg'
+key = keystore.get(kid, { use: 'RSA-OAEP' });
+
+// ... and by 'kty' and 'use'
+key = keystore.get(kid, { kty: 'RSA', use: 'enc' });
+
+// same as above, but with a single {props} argument
+key = keystore.get({ kid: kid, kty: 'RSA', use: 'enc' });
+
+
+// searching for keys
+let everything = keystore.all();
+
+// filter by 'kid'
+everything = keystore.all({ kid: kid });
+
+// filter by 'kty'
+everything = keystore.all({ kty: 'RSA' });
+
+// filter by 'use'
+everything = keystore.all({ use: 'enc' });
+
+// filter by 'alg'
+everything = keystore.all({ alg: 'RSA-OAEP' });
+
+// filter by 'kid' + 'kty' + 'alg'
+everything = keystore.all({ kid: kid, kty: 'RSA', alg: 'RSA-OAEP' });
+
+// input is either a:
+// * jose.JWK.Key to copy from; or
+// * JSON object representing a JWK; or
+keystore.add({}).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+// input is either a:
+// * String serialization of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// * Buffer of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// form is either a:
+// * "json" for a JSON stringified JWK
+// * "private" for a DER encoded 'raw' private key
+// * "pkcs8" for a DER encoded (unencrypted!) PKCS8 private key
+// * "public" for a DER encoded SPKI public key (alternate to 'spki')
+// * "spki" for a DER encoded SPKI public key
+// * "pkix" for a DER encoded PKIX X.509 certificate
+// * "x509" for a DER encoded PKIX X.509 certificate
+// * "pem" for a PEM encoded of PKCS8 / SPKI / PKIX
+keystore.add(buf, "json").
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+// first argument is the key type (kty)
+// second is the key size (in bits) or named curve ('crv') for "EC"
+keystore.generate("oct", 256).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+// ... with properties
+var props = {
+ kid: 'gBdaS-G8RLax2qgObTD94w',
+ alg: 'A256GCM',
+ use: 'enc'
+};
+keystore.generate("oct", 256, props).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+keystore.remove(key);
+// NOTE: key.keystore does not change!!
+
+// where input is either a:
+// * jose.JWK.Key instance
+// * JSON Object representation of a JWK
+jose.JWK.asKey({}).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ // {result.keystore} is a unique jose.JWK.KeyStore
+ key = result;
+ });
+
+// where input is either a:
+// * String serialization of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// * Buffer of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// form is either a:
+// * "json" for a JSON stringified JWK
+// * "pkcs8" for a DER encoded (unencrypted!) PKCS8 private key
+// * "spki" for a DER encoded SPKI public key
+// * "pkix" for a DER encoded PKIX X.509 certificate
+// * "x509" for a DER encoded PKIX X.509 certificate
+// * "pem" for a PEM encoded of PKCS8 / SPKI / PKIX
+jose.JWK.asKey({}, 'json').
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ // {result.keystore} is a unique jose.JWK.KeyStore
+ key = result;
+ });
+
+output = key.toJSON();
+output = key.toJSON(true);
+
+// where hash is a supported algorithm, currently one of:
+// * SHA-1
+// * SHA-256
+// * SHA-384
+// * SHA-512
+key.thumbprint('SHA-1').
+ then(function (print) {
+ // {print} is a Buffer containing the thumbprint binary value
+ });
+
+// {input} is a Buffer
+jose.JWS.createSign(key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON object -- JWS using the JSON General Serialization
+ });
+
+jose.JWS.createSign({ format: 'flattened' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON object -- JWS using the JSON Flattened Serialization
+ });
+
+jose.JWS.createSign({ format: 'compact' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a String -- JWS using the Compact Serialization
+ });
+
+jose.JWS.createSign({ alg: 'PS256' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWS.createSign({ fields: { cty: 'jwk+json' } }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWS.createSign(key).
+ update(buf, "utf8").
+ final().
+ then(function (result) {
+ // ....
+ });
+
+// {keys} is an Array of jose.JWK.Key instances
+jose.JWS.createSign([key, key]).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWS.createVerify(keystore).
+ verify("some.jws.object").
+ then(function (result) {
+ // {result} is a Object with:
+ // * header: the combined 'protected' and 'unprotected' header members
+ // * payload: Buffer of the signed content
+ // * signature: Buffer of the verified signature
+ // * key: The key used to verify the signature
+ });
+
+// {key} can be:
+// * jose.JWK.Key
+// * JSON object representing a JWK
+jose.JWS.createVerify(key).
+ verify('some.jws.object').
+ then(function (result) {
+ // ...
+ });
+
+jose.JWS.createVerify().
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+var opts = {
+ handlers: {
+ "exp": true
+ }
+};
+
+jose.JWS.createVerify(key, opts).
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+var opts2 = {
+ handlers: {
+ "exp": function (jws: any) {
+ // {jws} is the JWS verify output, pre-verification
+ jws.header.exp = new Date(jws.header.exp);
+ }
+ }
+};
+jose.JWS.createVerify(key, opts2).
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+var opts3 = {
+ handlers: {
+ "exp": {
+ complete: function (jws: any) {
+ // {jws} is the JWS verify output, post-verification
+ jws.header.exp = new Date(jws.header.exp);
+ }
+ }
+ }
+};
+jose.JWS.createVerify(key, opts3).
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+//Encryption
+
+// {input} is a Buffer
+jose.JWE.createEncrypt(key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON Object -- JWE using the JSON General Serialization
+ });
+
+jose.JWE.createEncrypt({ format: 'compact' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a String -- JWE using the Compact Serialization
+ });
+
+jose.JWE.createEncrypt({ format: 'flattened' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON Object -- JWE using the JSON Flattened Serialization
+ });
+
+jose.JWE.createEncrypt({ zip: true }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWE.createEncrypt({ fields: { cty: 'jwk+json' } }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+// {keys} is an Array of jose.JWK.Key instances
+jose.JWE.createEncrypt([key, key]).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWE.createDecrypt(keystore).
+ decrypt('some.jwe').
+ then(function (result) {
+ // {result} is a Object with:
+ // * header: the combined 'protected' and 'unprotected' header members
+ // * protected: an array of the member names from the "protected" member
+ // * key: Key used to decrypt
+ // * payload: Buffer of the decrypted content
+ // * plaintext: Buffer of the decrypted content (alternate)
+ });
+
+jose.JWE.createDecrypt(key).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ....
+ });
+
+var opts4 = {
+ handlers: {
+ "exp": true
+ }
+};
+jose.JWE.createDecrypt(key, opts4).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ...
+ });
+//To perform additional (pre-decrypt) processing on a crit header member:
+
+var opts5 = {
+ handlers: {
+ "exp": function (jwe: any) {
+ // {jwe} is the JWE decrypt output, pre-decryption
+ jwe.header.exp = new Date(jwe.header.exp);
+ }
+ }
+};
+jose.JWE.createDecrypt(key, opts5).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ...
+ });
+//To perform additional (post-decrypt) processing on a crit header member:
+
+var opts6 = {
+ handlers: {
+ "exp": {
+ complete: function (jwe: any) {
+ // {jwe} is the JWE decrypt output, post-decryption
+ jwe.header.exp = new Date(jwe.header.exp);
+ }
+ }
+ }
+};
+jose.JWE.createDecrypt(key, opts6).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ...
+ });
+
+var buff = jose.util.asBuffer('input');
+
+var output2 = jose.util.base64url.encode(buf);
+
+// explicit encoding
+output2 = jose.util.base64url.encode(buf, "utf8");
+
+// implied "utf8" encoding
+output2 = jose.util.base64url.encode(buf);
+
+var output3 = jose.util.base64url.decode('input');
+
+// argument is size (in bytes)
+var rnd = jose.util.randomBytes(32);
diff --git a/node-jose/tsconfig.json b/node-jose/tsconfig.json
new file mode 100644
index 0000000000..0de8c3967e
--- /dev/null
+++ b/node-jose/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",
+ "node-jose-tests.ts"
+ ]
+}
From 539308239d0da175db7577359772772d5dd48814 Mon Sep 17 00:00:00 2001
From: Jason Burns
Date: Thu, 23 Mar 2017 20:22:53 -0700
Subject: [PATCH 003/586] Add TS 2.2 header as advised by Travis.
---
node-jose/index.d.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/node-jose/index.d.ts b/node-jose/index.d.ts
index d3a7fd891c..93ae198493 100644
--- a/node-jose/index.d.ts
+++ b/node-jose/index.d.ts
@@ -2,6 +2,7 @@
// Project: https://github.com/cisco/node-jose
// Definitions by: Jason Burns
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
// Most of this documentation comes directly from the excellently documented
// node-jose package, with only a bit added in to explain intermediate types.
From 867cb974ead3360eda11a7341269d272bee2fa35 Mon Sep 17 00:00:00 2001
From: JuanFran
Date: Sat, 25 Mar 2017 01:02:15 +0100
Subject: [PATCH 004/586] Support for new 3.0.3 version of moment-range
---
types/moment-range/index.d.ts | 107 +++++++++++++++++------
types/moment-range/moment-range-tests.ts | 77 ++++++++++------
types/moment-range/package.json | 3 +-
3 files changed, 129 insertions(+), 58 deletions(-)
diff --git a/types/moment-range/index.d.ts b/types/moment-range/index.d.ts
index 7ff7feb9b8..25cc786acf 100644
--- a/types/moment-range/index.d.ts
+++ b/types/moment-range/index.d.ts
@@ -1,6 +1,6 @@
-// Type definitions for Moment.js 2.0.4
+// Type definitions for Moment-range.js 3.0.3
// Project: https://github.com/gf3/moment-range
-// Definitions by: Bart van den Burg , Wilgert Velinga
+// Definitions by: Bart van den Burg , Wilgert Velinga , Juan Francisco Adame
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as moment from 'moment';
@@ -8,48 +8,99 @@ import * as moment from 'moment';
export = moment;
declare module 'moment' {
- interface Range {
- start: Moment;
- end: Moment;
+ class DateRange implements Range {
+ start: moment.Moment;
+ end: moment.Moment;
- contains (other: Date, exclusive?: boolean): boolean;
- contains (other: Moment, exclusive?: boolean): boolean;
+ constructor(range: string | Date[] | moment.Moment[]);
+ constructor(start: Date | moment.Moment, end: Date | moment.Moment);
- overlaps (range: Range): boolean;
- intersect (other: Range): Range;
+ contains(other: DateRange | moment.Moment | Date, options?: { exclusive?: boolean }): boolean;
- add (other: Range): Range;
+ overlaps(range: DateRange, options?: { adjacent?: boolean }): boolean;
- subtract (other: Range): Range[];
+ intersect(other: DateRange): DateRange;
- by (range: string, hollaback: (current: Moment) => void, exclusive?: boolean): void;
- by (range: Range, hollaback: (current: Moment) => void, exclusive?: boolean): void;
+ add(other: DateRange): DateRange;
- isSame (other: Range): boolean;
+ subtract(other: DateRange): DateRange[];
- diff (unit?: string): number;
+ by(interval: moment.unitOfTime.Diff, options?: { exclusive?: boolean, step?: number }): Iterable;
- toDate (): Date;
+ byRange(interval: DateRange, options?: { exclusive?: boolean, step?: number }): Iterable;
- toString (): string;
+ isSame(other: DateRange): boolean;
- toArray (by: Range|String, exclusive?: boolean): Moment[];
+ diff(unit?: moment.unitOfTime.Diff, rounded?: boolean): number;
- valueOf (): number;
+ toDate(): Date[];
- center (): number;
+ toString(): string;
- clone (): Range;
+ valueOf(): number;
+
+ center(): moment.Moment;
+
+ clone(): DateRange;
+
+ isEqual(other: DateRange): boolean;
+
+ adjacent(other: DateRange): boolean;
+
+ duration(unit?: moment.unitOfTime.Diff, precise?: boolean): number;
+
+ reverseBy(interval: moment.unitOfTime.Diff, options?: { exclusive?: boolean, step?: number }): Iterable;
+
+ reverseByRange(interval: DateRange, options?: { exclusive?: boolean, step?: number }): Iterable;
}
- interface Moment {
- within (x: moment.Range): boolean;
+ interface Range {
+ start: moment.Moment;
+ end: moment.Moment;
+
+ contains(other: DateRange | moment.Moment | Date, options?: { exclusive?: boolean }): boolean;
+
+ overlaps(range: DateRange, options?: { adjacent?: boolean }): boolean;
+
+ intersect(other: DateRange): DateRange;
+
+ add(other: DateRange): DateRange;
+
+ subtract(other: DateRange): DateRange[];
+
+ by(interval: moment.unitOfTime.Diff, options?: { exclusive?: boolean, step?: number }): Iterable;
+
+ byRange(interval: DateRange, options?: { exclusive?: boolean, step?: number }): Iterable;
+
+ isSame(other: DateRange): boolean;
+
+ diff(unit?: moment.unitOfTime.Diff, rounded?: boolean): number;
+
+ toDate(): Date[];
+
+ toString(): string;
+
+ valueOf(): number;
+
+ center(): moment.Moment;
+
+ clone(): DateRange;
+
+ isEqual(other: DateRange): boolean;
+
+ adjacent(other: DateRange): boolean;
+
+ duration(unit?: moment.unitOfTime.Diff, precise?: boolean): number;
+
+ reverseBy(interval: moment.unitOfTime.Diff, options?: { exclusive?: boolean, step?: number }): Iterable;
+
+ reverseByRange(interval: DateRange, options?: { exclusive?: boolean, step?: number }): Iterable;
+
}
- function range(range: string): moment.Range;
- function range(range: Date[]): moment.Range;
- function range(range: Moment[]): moment.Range;
- function range(start: Date, end: Date): moment.Range;
- function range(start: Moment, end: Moment): moment.Range;
+ function extendMoment(moment: any): any;
+
+ function range(range: string | Date[] | moment.Moment[]): moment.Range;
+ function range(start: Date | moment.Moment, end: Date | moment.Moment): moment.Range;
}
diff --git a/types/moment-range/moment-range-tests.ts b/types/moment-range/moment-range-tests.ts
index 16bcf7c808..9667e62d75 100644
--- a/types/moment-range/moment-range-tests.ts
+++ b/types/moment-range/moment-range-tests.ts
@@ -1,47 +1,66 @@
import * as moment from 'moment';
+import * as momentRange from "moment-range";
-var range: moment.Range = moment.range(new Date(2012, 0, 15), new Date(2012, 4, 23));
-var range2: moment.Range = moment.range(moment("2011-04-15", "YYYY-MM-DD"), moment("2011-11-27", "YYYY-MM-DD"));
-var range3: moment.Range = moment.range([moment("2011-04-15", "YYYY-MM-DD"), moment("2011-11-27", "YYYY-MM-DD")]);
-var range4: moment.Range = moment.range("2015-01-17T09:50:04+00:00/2015-04-17T08:29:55+00:00");
+var range: momentRange.DateRange = new momentRange.DateRange(new Date(2012, 0, 15), new Date(2012, 4, 23));
+var range2: momentRange.DateRange = new momentRange.DateRange(moment("2011-04-15", "YYYY-MM-DD"), moment("2011-11-27", "YYYY-MM-DD"));
+var range3: momentRange.DateRange = new momentRange.DateRange([moment("2011-04-15", "YYYY-MM-DD"), moment("2011-11-27", "YYYY-MM-DD")]);
+var range4: momentRange.DateRange = new momentRange.DateRange("2015-01-17T09:50:04+00:00/2015-04-17T08:29:55+00:00");
-var date: moment.Moment = moment('2012-05- 15');
+var date: moment.Moment = moment('2012-05-15');
-var res1: boolean = range.contains(date);
-var res2: boolean = range.contains(date, false);
-var res3: boolean = range.contains(date, true);
+var res1: boolean = range.adjacent(range2);
-var res4: boolean = date.within(range);
+var it0: Iterable = range.by('days');
+var it1: Iterable = range.by('months', {exclusive: true});
+var it2: Iterable = range.by('years', {exclusive: false, step: 2});
-var res5: boolean = range.overlaps(range2);
+var it3: Iterable = range.byRange(range);
+var it4: Iterable = range.byRange(range, {exclusive: true});
+var it5: Iterable = range.byRange(range, {exclusive: false, step: 2});
-var res6: moment.Range = range.intersect(range2);
+var res2: moment.Moment = range.center();
-var res7: moment.Range = range.add(range2);
+var res3: momentRange.DateRange = range.clone();
-var res8: Array = range.subtract(range2);
+var res4: boolean = range.contains(range);
+var res5: boolean = range.contains(range, {exclusive: true});
+var res6: boolean = range.contains(range, {exclusive: false});
-range.by('days', (moment: moment.Moment) => { });
-range.by(range2, (moment: moment.Moment) => { });
-range.by('d', (moment: moment.Moment) => { }, true);
-
-var res9: boolean = range.isSame(range2);
-
-var res10: number = range.diff('months');
+var res10: number = range.diff('months', true);
var res11: number = range.diff('days');
var res12: number = range.diff();
-var res13: Date = range.toDate();
-var res14: string = range.toString();
+var res13: number = range.duration('months', true);
+var res14: number = range.duration('days');
+var res15: number = range.duration();
-var res15: number = range.valueOf();
+var res16: momentRange.DateRange = range.intersect(range2);
-var res16: number = range.center();
+var res17: boolean = range.isSame(range2);
-var res17: moment.Range = range.clone();
+var res18: boolean = range.isEqual(range2);
-var res18: moment.Moment = range.start;
-var res19: moment.Moment = range.end;
+var res20: boolean = range.overlaps(range2);
+var res21: boolean = range.overlaps(range2, {adjacent: true});
+var res22: boolean = range.overlaps(range2, {adjacent: false});
-var res20: moment.Moment[] = range.toArray('days');
-var res22: moment.Moment[] = range.toArray('days', true);
+var it6: Iterable = range.reverseBy('days');
+var it7: Iterable = range.reverseBy('months', {exclusive: true});
+var it8: Iterable = range.reverseBy('years', {exclusive: false, step: 2});
+
+var it9: Iterable = range.reverseByRange(range);
+var it10: Iterable = range.reverseByRange(range, {exclusive: true});
+var it11: Iterable = range.reverseByRange(range, {exclusive: false, step: 2});
+
+var res23: momentRange.DateRange = range.add(range2);
+
+var res24: Array = range.subtract(range2);
+
+var res25: Date[] = range.toDate();
+
+var res26: string = range.toString();
+
+var res27: number = range.valueOf();
+
+var res28: moment.Moment = range.start;
+var res29: moment.Moment = range.end;
diff --git a/types/moment-range/package.json b/types/moment-range/package.json
index 4c6d24a445..ce42336f8c 100644
--- a/types/moment-range/package.json
+++ b/types/moment-range/package.json
@@ -1,5 +1,6 @@
{
"dependencies": {
- "moment": ">=2.14.0"
+ "moment": "2.17.1",
+ "moment-range": "3.0.3"
}
}
\ No newline at end of file
From 3ab99add41868f9c1b6823b3d2658960916ef385 Mon Sep 17 00:00:00 2001
From: epicgirl1998
Date: Sat, 25 Mar 2017 04:52:25 +0200
Subject: [PATCH 005/586] Fix chrome.webNavigation filtering again
---
types/chrome/index.d.ts | 9 +++++----
types/chrome/test/index.ts | 18 +++++-------------
2 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts
index 1b07c1c2e8..be0f59ebca 100644
--- a/types/chrome/index.d.ts
+++ b/types/chrome/index.d.ts
@@ -7074,12 +7074,13 @@ declare namespace chrome.webNavigation {
transitionQualifiers: string[];
}
- interface WebNavigationRequestFilter extends chrome.webRequest.RequestFilter {
- /** fulfills the webRequest.RequestFilter interface even though it is under web navigation **/
+ interface WebNavigationEventFilter {
+ /** Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event. */
+ url: chrome.events.UrlFilter[];
}
interface WebNavigationEvent extends chrome.events.Event<(details: T) => void> {
- addListener(callback: (details: T) => void, filters?: WebNavigationRequestFilter): void;
+ addListener(callback: (details: T) => void, filters?: WebNavigationEventFilter): void;
}
interface WebNavigationFramedEvent extends WebNavigationEvent {}
@@ -7189,7 +7190,7 @@ declare namespace chrome.webRequest {
*/
types?: string[];
/** A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out. */
- urls: string[] | RegExp[] | "";
+ urls: string[];
/** Optional. */
windowId?: number;
diff --git a/types/chrome/test/index.ts b/types/chrome/test/index.ts
index 3da3f534be..ffe1ece74d 100644
--- a/types/chrome/test/index.ts
+++ b/types/chrome/test/index.ts
@@ -171,7 +171,7 @@ function catBlock () {
["blocking"]);
}
-// webNavigation.onBeforeNavigate.addListener example similar api to onBeforeRequest but without extra spec
+// webNavigation.onBeforeNavigate.addListener example
function beforeRedditNavigation() {
chrome.webNavigation.onBeforeNavigate.addListener(function (requestDetails) {
console.log("URL we want to redirect to: " + requestDetails.url);
@@ -180,18 +180,10 @@ function beforeRedditNavigation() {
return;
}
- let url = new URL(requestDetails.url);
- let splitUrl = url.hostname.split('.');
- //` Note: Does not cover the XX.co.uk type edge case
- let host = (splitUrl[(splitUrl.length -1) - 1]);
-
- if (host === null) {
- return;
- } else if (host === "reddit") {
- alert("Were you trying to go on reddit, during working hours? :(")
- return;
- }
- },{urls: ["http://*/*"], types: ["image"]});
+ alert("Were you trying to go on reddit, during working hours? :(")
+ },{url: [
+ {hostSuffix: ".reddit.com"}
+ ]});
}
// for chrome.tabs.InjectDetails.frameId
From 5a634f7fdb5b593c50b229c5a14507789c888be7 Mon Sep 17 00:00:00 2001
From: KeitaNishimoto
Date: Sun, 26 Mar 2017 01:45:51 +0900
Subject: [PATCH 006/586] add API Gateway CustomAuthorizerEvent
---
types/aws-lambda/aws-lambda-tests.ts | 7 +++++++
types/aws-lambda/index.d.ts | 8 ++++++++
2 files changed, 15 insertions(+)
diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts
index 3aede36d4c..07908b2677 100644
--- a/types/aws-lambda/aws-lambda-tests.ts
+++ b/types/aws-lambda/aws-lambda-tests.ts
@@ -5,6 +5,7 @@ var num: number = 5;
var error: Error = new Error();
var b: boolean = true;
var apiGwEvt: AWSLambda.APIGatewayEvent;
+var customAuthorizerEvt: AWSLambda.CustomAuthorizerEvent;
var clientCtx: AWSLambda.ClientContext;
var clientContextEnv: AWSLambda.ClientContextEnv;
var clientContextClient: AWSLambda.ClientContextClient;
@@ -87,6 +88,11 @@ str = apiGwEvt.requestContext.resourceId;
str = apiGwEvt.requestContext.resourcePath;
str = apiGwEvt.resource;
+/* API Gateway CustomAuthorizer Event */
+str = customAuthorizerEvt.type;
+str = customAuthorizerEvt.authorizationToken;
+str = customAuthorizerEvt.methodArn;
+
/* SNS Event */
snsEvtRecs = snsEvt.Records;
@@ -183,3 +189,4 @@ context.fail(str);
/* Handler */
let handler: AWSLambda.Handler = (event: any, context: AWSLambda.Context, cb: AWSLambda.Callback) => { };
let proxyHandler: AWSLambda.ProxyHandler = (event: AWSLambda.APIGatewayEvent, context: AWSLambda.Context, cb: AWSLambda.ProxyCallback) => { };
+let CustomAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.Callback) => { };
diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts
index c5e49d54c6..f388302d24 100644
--- a/types/aws-lambda/index.d.ts
+++ b/types/aws-lambda/index.d.ts
@@ -39,6 +39,13 @@ interface APIGatewayEvent {
resource: string;
}
+// API Gateway CustomAuthorizer "event"
+interface CustomAuthorizerEvent {
+ type: string;
+ authorizationToken: string;
+ methodArn: string;
+}
+
// SNS "event"
interface SNSMessageAttribute {
Type: string;
@@ -190,6 +197,7 @@ interface ProxyResult {
*/
export type Handler = (event: any, context: Context, callback?: Callback) => void;
export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?: ProxyCallback) => void;
+export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: Callback) => void;
/**
* Optional callback parameter.
From 60bda6cf4f8cd130f8a47a3dc3cdcd71bbffc6ea Mon Sep 17 00:00:00 2001
From: keita-nishimoto
Date: Mon, 27 Mar 2017 14:15:05 +0900
Subject: [PATCH 007/586] add CustomAuthorizerCallback & AuthResponse
---
types/aws-lambda/aws-lambda-tests.ts | 49 +++++++++++++++++++++++++++-
types/aws-lambda/index.d.ts | 42 +++++++++++++++++++++++-
2 files changed, 89 insertions(+), 2 deletions(-)
diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts
index 07908b2677..3c22a88cbc 100644
--- a/types/aws-lambda/aws-lambda-tests.ts
+++ b/types/aws-lambda/aws-lambda-tests.ts
@@ -12,6 +12,10 @@ var clientContextClient: AWSLambda.ClientContextClient;
var context: AWSLambda.Context;
var identity: AWSLambda.CognitoIdentity;
var proxyResult: AWSLambda.ProxyResult;
+var authResponse: AWSLambda.AuthResponse;
+var policyDocument: AWSLambda.PolicyDocument;
+var statement: AWSLambda.Statement;
+var authResponseContext: AWSLambda.AuthResponseContext;
var snsEvt: AWSLambda.SNSEvent;
var snsEvtRecs: AWSLambda.SNSEventRecord[];
var snsEvtRec: AWSLambda.SNSEventRecord;
@@ -125,6 +129,41 @@ proxyResult.headers["example"] = b;
proxyResult.headers["example"] = num;
str = proxyResult.body;
+/* API Gateway CustomAuthorizer AuthResponse */
+authResponseContext = {
+ stringKey: str,
+ numberKey: num,
+ booleanKey: b
+};
+
+statement = {
+ Action: str,
+ Effect: str,
+ Resource: str
+};
+
+statement = {
+ Action: str,
+ Effect: str,
+ Resource: [str, str]
+};
+
+policyDocument = {
+ Version: str,
+ Statement: [statement]
+};
+
+authResponse = {
+ principalId: str,
+ policyDocument: policyDocument,
+ context: authResponseContext
+};
+
+authResponse = {
+ principalId: str,
+ policyDocument: policyDocument
+};
+
/* Context */
b = context.callbackWaitsForEmptyEventLoop;
str = context.functionName;
@@ -176,6 +215,14 @@ function proxyCallback(cb: AWSLambda.ProxyCallback) {
cb(null, proxyResult);
}
+/* CustomAuthorizerCallback */
+function customAuthorizerCallback(cb: AWSLambda.CustomAuthorizerCallback) {
+ cb();
+ cb(null);
+ cb(error);
+ cb(null, authResponse);
+}
+
/* Compatibility functions */
context.done();
context.done(error);
@@ -189,4 +236,4 @@ context.fail(str);
/* Handler */
let handler: AWSLambda.Handler = (event: any, context: AWSLambda.Context, cb: AWSLambda.Callback) => { };
let proxyHandler: AWSLambda.ProxyHandler = (event: AWSLambda.APIGatewayEvent, context: AWSLambda.Context, cb: AWSLambda.ProxyCallback) => { };
-let CustomAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.Callback) => { };
+let CustomAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.CustomAuthorizerCallback) => { };
diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts
index f388302d24..d8507ef7de 100644
--- a/types/aws-lambda/index.d.ts
+++ b/types/aws-lambda/index.d.ts
@@ -187,6 +187,45 @@ interface ProxyResult {
body: string;
}
+/**
+ * API Gateway CustomAuthorizer AuthResponse.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface AuthResponse {
+ principalId: string;
+ policyDocument: PolicyDocument;
+ context?: AuthResponseContext;
+}
+
+/**
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface PolicyDocument {
+ Version: string;
+ Statement: [Statement];
+}
+
+/**
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface Statement {
+ Action: string;
+ Effect: string;
+ Resource: string | [string];
+}
+
+/**
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface AuthResponseContext {
+ stringKey: string;
+ numberKey: number;
+ booleanKey: boolean;
+}
+
/**
* AWS Lambda handler function.
* http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html
@@ -197,7 +236,7 @@ interface ProxyResult {
*/
export type Handler = (event: any, context: Context, callback?: Callback) => void;
export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?: ProxyCallback) => void;
-export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: Callback) => void;
+export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: CustomAuthorizerCallback) => void;
/**
* Optional callback parameter.
@@ -208,5 +247,6 @@ export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Co
*/
export type Callback = (error?: Error, result?: any) => void;
export type ProxyCallback = (error?: Error, result?: ProxyResult) => void;
+export type CustomAuthorizerCallback = (error?: Error, result?: AuthResponse) => void;
export as namespace AWSLambda;
From 09644d8ba8cede4c62b4f3029af1a0bc13863c98 Mon Sep 17 00:00:00 2001
From: Marco Ramos
Date: Mon, 27 Mar 2017 07:26:35 -0400
Subject: [PATCH 008/586] Type Error Classes missing from json-patch Enforce
stricter typings
---
types/json-patch/index.d.ts | 34 ++++++++++++++++------------
types/json-patch/json-patch-tests.ts | 19 ++++++++++++++++
2 files changed, 39 insertions(+), 14 deletions(-)
diff --git a/types/json-patch/index.d.ts b/types/json-patch/index.d.ts
index bb70cff6c6..6f257924b0 100644
--- a/types/json-patch/index.d.ts
+++ b/types/json-patch/index.d.ts
@@ -4,36 +4,42 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace jsonpatch {
- type OpPatch = AddPath | RemovePath | ReplacePath | MovePath | CopyPath | TestPath;
+ type OpPatch = AddPatch | RemovePatch | ReplacePatch | MovePatch | CopyPatch | TestPatch;
interface Patch {
- op: string;
- }
- interface AddPath extends Patch {
path: string;
+ }
+ interface AddPatch extends Patch {
+ op: 'add';
value: any;
}
- interface RemovePath extends Patch {
- path: string;
+ interface RemovePatch extends Patch {
+ op: 'remove';
}
- interface ReplacePath extends Patch {
- path: string;
+ interface ReplacePatch extends Patch {
+ op: 'replace';
value: any;
}
- interface MovePath extends Patch {
+ interface MovePatch extends Patch {
+ op: 'move';
from: string;
- path: string;
}
- interface CopyPath extends Patch {
+ interface CopyPatch extends Patch {
+ op: 'copy';
from: string;
- path: string;
}
- interface TestPath extends Patch {
- path: string;
+ interface TestPatch extends Patch {
+ op: 'test';
value: any;
}
function apply(document: any, patches: OpPatch[]): any;
function compile(patches: OpPatch[]): (document: any) => any;
+
+ class JSONPatchError extends Error { }
+ class InvalidPointerError extends Error { }
+ class InvalidPatchError extends JSONPatchError { }
+ class PatchConflictError extends JSONPatchError { }
+ class PatchTestFailed extends Error { }
}
export = jsonpatch;
diff --git a/types/json-patch/json-patch-tests.ts b/types/json-patch/json-patch-tests.ts
index 3c3ff51f22..470b12fe54 100644
--- a/types/json-patch/json-patch-tests.ts
+++ b/types/json-patch/json-patch-tests.ts
@@ -32,3 +32,22 @@ jsonpatch.apply({ foo: 'bar' }, [{ op: 'test', path: '/foo', value: 'bar' }]);
jsonpatch.compile([{ op: 'test', path: '/foo', value: 'bar' }])({ foo: 'bar' });
jp.apply({}, [{ op: 'add', path: '/foo', value: 'bar' }]);
+
+function patchShouldFail(document: any, patches: jsonpatch.OpPatch[]): string {
+ try {
+ jsonpatch.apply(document, patches);
+ throw new Error('Patch did not fail...');
+ } catch (err) {
+ if (err instanceof jsonpatch.PatchTestFailed) {
+ return 'Test failed';
+ } else if (err instanceof jsonpatch.InvalidPointerError) {
+ return 'Invalid Pointer';
+ } else if (err instanceof jsonpatch.InvalidPatchError) {
+ return 'Invalid Patch';
+ } else if (err instanceof jsonpatch.PatchConflictError) {
+ return 'Patch Conflict';
+ } else {
+ return 'Failed with unknown error';
+ }
+ }
+}
\ No newline at end of file
From ecd2181818b06441edd1d55aebb4c826c06989e2 Mon Sep 17 00:00:00 2001
From: huhuanming
Date: Mon, 27 Mar 2017 23:13:52 +0800
Subject: [PATCH 009/586] Add hegiht && paginationStyle
---
types/react-native-swiper/index.d.ts | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/types/react-native-swiper/index.d.ts b/types/react-native-swiper/index.d.ts
index f41a771caf..3ac3be55c3 100644
--- a/types/react-native-swiper/index.d.ts
+++ b/types/react-native-swiper/index.d.ts
@@ -1,6 +1,6 @@
// Type definitions for react-native-swiper 1.5
// Project: https://github.com/leecade/react-native-swiper#readme
-// Definitions by: CaiHuan
+// Definitions by: CaiHuan , HuHuanming
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@@ -58,6 +58,12 @@ interface SwiperProperties extends React.Props {
dotColor?: string;
activeDotColor?: string;
+
+ height?: number;
+
+ width?: number;
+
+ paginationStyle?: ViewStyle;
}
export default class Swiper extends React.Component {
From 1436b17cd246b68dc7e1434d682ebe8bf2a327a1 Mon Sep 17 00:00:00 2001
From: KeitaNishimoto
Date: Tue, 28 Mar 2017 22:46:35 +0900
Subject: [PATCH 010/586] fix Corrected the structure of "AuthResponseContext"
was wrong
---
types/aws-lambda/index.d.ts | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts
index d8507ef7de..4e94e5782c 100644
--- a/types/aws-lambda/index.d.ts
+++ b/types/aws-lambda/index.d.ts
@@ -221,9 +221,7 @@ interface Statement {
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
*/
interface AuthResponseContext {
- stringKey: string;
- numberKey: number;
- booleanKey: boolean;
+ [name: string]: string | number | boolean;
}
/**
From 96666eee57ff5ebd734a3d7c72cf45ad74327f9c Mon Sep 17 00:00:00 2001
From: KeitaNishimoto
Date: Thu, 30 Mar 2017 00:09:43 +0900
Subject: [PATCH 011/586] fix type Statement.Action(I responded to the review)
---
types/aws-lambda/aws-lambda-tests.ts | 2 +-
types/aws-lambda/index.d.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts
index 3c22a88cbc..e793442177 100644
--- a/types/aws-lambda/aws-lambda-tests.ts
+++ b/types/aws-lambda/aws-lambda-tests.ts
@@ -143,7 +143,7 @@ statement = {
};
statement = {
- Action: str,
+ Action: [str, str],
Effect: str,
Resource: [str, str]
};
diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts
index 4e94e5782c..a5fa271699 100644
--- a/types/aws-lambda/index.d.ts
+++ b/types/aws-lambda/index.d.ts
@@ -211,7 +211,7 @@ interface PolicyDocument {
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
*/
interface Statement {
- Action: string;
+ Action: string | [string];
Effect: string;
Resource: string | [string];
}
From 42a5ec04feb509c08b3e5087292cc92a4125392a Mon Sep 17 00:00:00 2001
From: Chandra Galbiati
Date: Thu, 23 Mar 2017 17:42:50 -0400
Subject: [PATCH 012/586] Update arguments for before and afterChange
These functions both have arguments in the source code
---
types/react-slick/index.d.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/types/react-slick/index.d.ts b/types/react-slick/index.d.ts
index 513fc0d440..1278605b27 100644
--- a/types/react-slick/index.d.ts
+++ b/types/react-slick/index.d.ts
@@ -40,8 +40,8 @@ interface __config {
variableWidth?: boolean
useCSS?: boolean
vertical?: boolean
- afterChange?: (() => void)
- beforeChange?: (() => void)
+ afterChange?: ((currentSlide: number) => void)
+ beforeChange?: ((currentSlide: number, nextSlide: number) => void)
slickGoTo?: number // int
}
From 9fb63b71118c3f442ed96d94a3b827603f497cb3 Mon Sep 17 00:00:00 2001
From: Kevin
Date: Thu, 30 Mar 2017 00:25:44 -0400
Subject: [PATCH 013/586] Removed optional parameter from lstat
The optional flag on the callback version of lstat causes tsc to complain about using as promise. It always assumes to first variant which does not return a Promise.
You can see the `stat` and `fstat` have it removed. I am very confident this is the intended behaviour, and the optional flag is a copy-paste typo.
---
types/mz/fs.d.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/types/mz/fs.d.ts b/types/mz/fs.d.ts
index 975850c3ab..ff7222acee 100644
--- a/types/mz/fs.d.ts
+++ b/types/mz/fs.d.ts
@@ -142,7 +142,7 @@ export function stat(path: string | Buffer): Promise;
* `lstat()` is identical to `stat()`, except that if path is a symbolic link, then the link itself
* is stat-ed, not the file that it refers to.
*/
-export function lstat(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void;
+export function lstat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void;
/**
* Asynchronous `lstat(2)`.
@@ -502,4 +502,4 @@ export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoExcept
* @param path The path to access.
* @param mode An optional integer that specifies the accessibility checks to be performed.
*/
-export function access(path: string, mode?: number): Promise;
\ No newline at end of file
+export function access(path: string, mode?: number): Promise;
From ce331bb0a8d73c703747dd556a9b8c1f9bbe5fc8 Mon Sep 17 00:00:00 2001
From: Minghao Ni
Date: Thu, 30 Mar 2017 15:57:15 +0800
Subject: [PATCH 014/586] add requireInteraction field in NotificationOptions,
used in chrome.notification.* apis
---
types/chrome/index.d.ts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts
index 8c0c3bf5f2..dba15539a4 100644
--- a/types/chrome/index.d.ts
+++ b/types/chrome/index.d.ts
@@ -4269,6 +4269,12 @@ declare namespace chrome.notifications {
appIconMaskUrl?: string;
/** Optional. A URL to the image thumbnail for image-type notifications. URLs have the same restrictions as iconUrl. */
imageUrl?: string;
+ /**
+ * Indicates that the notification should remain visible on screen until the user activates or dismisses the notification.
+ * This defaults to false.
+ * @since Chrome 50
+ */
+ requireInteraction?: boolean;
}
interface NotificationClosedEvent extends chrome.events.Event<(notificationId: string, byUser: boolean) => void> {}
From 56dbbbfb6ea15052c095ce5b8b8446eb5a89a5e3 Mon Sep 17 00:00:00 2001
From: Syncfusion-JavaScript
Date: Thu, 30 Mar 2017 14:14:45 +0530
Subject: [PATCH 015/586] 15.1.0.41 typings added.
---
types/ej.web.all/ej.web.all-tests.ts | 180 +-
types/ej.web.all/index.d.ts | 7383 ++++++++++++++------------
2 files changed, 4031 insertions(+), 3532 deletions(-)
diff --git a/types/ej.web.all/ej.web.all-tests.ts b/types/ej.web.all/ej.web.all-tests.ts
index 50b4c117e4..cae7001218 100644
--- a/types/ej.web.all/ej.web.all-tests.ts
+++ b/types/ej.web.all/ej.web.all-tests.ts
@@ -20,7 +20,7 @@ module AccordionComponent {
});
}
-
+
module AutocompleteComponent{
var carList = [
@@ -44,15 +44,15 @@ module AutocompleteComponent{
"Triumph Spitfire", "Toyota 2000GT",
"Volvo P1800", "Volkswagen Shirako"
];
- $(function () {
- var autocompleteInstance =new ej.Autocomplete($("#selectCar"), {
+ $(function () {
+ var autocompleteInstance =new ej.Autocomplete($("#selectCar"), {
width: "100%",
watermarkText: "Select a car",
dataSource: carList,
enableAutoFill: true,
showPopupButton: true,
multiSelectMode: "delimiter"
- });
+ });
});
}
@@ -150,7 +150,7 @@ module ButtonComponent {
});
});
}
-
+
@@ -166,7 +166,7 @@ module ChartComponent {
range: { min: 25, max: 50, interval: 5 },
labelFormat: "{value}%",
title: { text: "Efficiency" },
-
+
},
commonSeriesOptions:
{
@@ -181,28 +181,28 @@ module ChartComponent {
},
visible: true
},
- border : {width: 2}
- },
- series:
+ 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 }],
+ 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 }],
+ 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 }],
+ 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 }],
+ 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'
}
],
@@ -290,7 +290,7 @@ module circulargaugecomponent {
backgroundColor: "#f5b43f",
border: { color: "#f5b43f" }
}]
- }]
+ }]
});
});
}
@@ -377,7 +377,7 @@ $(function () {
createConnector({ name: "connector6", sourceNode: "Project", targetNode: "Resources", labels: [createLabel({ "text": "No" })] })
]
});
-
+
});
function createNode(option: ej.datavisualization.Diagram.Node) {
@@ -402,7 +402,7 @@ function createLabel(options : any) {
return options;
}
-
+
module DialogComponent {
$(function () {
@@ -452,7 +452,7 @@ module digitalgaugecomponent {
}
-
+
@@ -472,12 +472,12 @@ module DropDownListComponent {
enableFilterSearch: true,
caseSensitiveSearch: true,
enableIncrementalSearch: true,
- enablePopupResize: true,
+ enablePopupResize: true,
delimiterChar: ";",
multiSelectMode: ej.MultiSelectMode.Delimiter,
maxPopupHeight: "300px",
- minPopupHeight: "150px",
- maxPopupWidth: "500px",
+ minPopupHeight: "150px",
+ maxPopupWidth: "500px",
minPopupWidth: "350px",
showCheckbox: true,
showRoundedCorner: true
@@ -513,7 +513,7 @@ module GanttComponent {
dataSource: (window).projectData,
allowColumnResize: true,
allowSorting: true,
- allowSelection: true,
+ allowSelection: true,
enableContextMenu: true,
taskIdMapping: "taskID",
allowDragAndDrop: true,
@@ -554,7 +554,7 @@ module GanttComponent {
treeColumnIndex: 1,
isResponsive: true,
});
-});
+});
}
@@ -596,7 +596,7 @@ module GridComponent {
-var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fløtemysost"]
+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++) {
@@ -670,7 +670,7 @@ module KanbanComponent {
});
}
-
+
module lineargaugecomponent {
@@ -696,14 +696,14 @@ module lineargaugecomponent {
backgroundColor: "#E94649",
border: { color: "#E94649" }, startWidth: 4, endWidth: 4
}]
- }]
+ }]
});
});
}
+
-
-
+
module ListBoxComponent {
$(function () {
@@ -713,12 +713,12 @@ module ListBoxComponent {
});
}
-
+
module ListviewComponent {
$(function () {
var listviewInstance = new ej.ListView($("#defaultlistview"), {
- enableCheckMark: true,
+ enableCheckMark: true,
width: 400
});
});
@@ -760,7 +760,7 @@ var world_map=
{ "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": "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]]] } },
@@ -983,7 +983,7 @@ module MenuComponent {
-
+
module NavigationDrawerComponent {
$(function () {
@@ -1023,7 +1023,7 @@ module PivotChartOlap {
$(function () {
var sample = new ej.PivotChart($("#PivotChart"),{
dataSource: {
- data: "http://bi.syncfusion.com/olap/msmdpump.dll",
+ data: "http://bi.syncfusion.com/olap/msmdpump.dll",
catalog: "Adventure Works DW 2008 SE",
cube: "Adventure Works",
rows: [
@@ -1191,7 +1191,7 @@ module PivotGaugeOlap {
length: 120,
width: 7
},
- {
+ {
type: "marker",
markerType: "diamond",
distanceFromScale: 5,
@@ -1220,7 +1220,7 @@ module PivotGaugeOlap {
distanceFromScale: -5,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
- },
+ },
{
distanceFromScale: -5
}],
@@ -1238,7 +1238,7 @@ module PivotGaugeOlap {
}]
}]
});
- });
+ });
}
@@ -1312,7 +1312,7 @@ module PivotGaugeRelational {
length: 120,
width: 7
},
- {
+ {
type: "marker",
markerType: "diamond",
distanceFromScale: 5,
@@ -1341,7 +1341,7 @@ module PivotGaugeRelational {
distanceFromScale: -5,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
- },
+ },
{
distanceFromScale: -5
}],
@@ -1359,7 +1359,7 @@ module PivotGaugeRelational {
}]
}]
});
- });
+ });
}
@@ -1394,7 +1394,7 @@ module PivotGridOlap {
],
filters:[]
},
- enableGroupingBar: true,
+ enableGroupingBar: true,
pivotTableFieldListID:"PivotSchemaDesigner"
});
$("#PivotSchemaDesigner").ejPivotSchemaDesigner();
@@ -1445,7 +1445,7 @@ module PivotGridRelational {
fieldCaption: "State"
}
],
- columns:
+ columns:
[{
fieldName: "Product",
fieldCaption: "Product"
@@ -1463,10 +1463,10 @@ module PivotGridRelational {
],
filters:[]
},
- enableGroupingBar: true,
+ enableGroupingBar: true,
pivotTableFieldListID:"PivotSchemaDesigner"
});
- $("#PivotSchemaDesigner").ejPivotSchemaDesigner();
+ $("#PivotSchemaDesigner").ejPivotSchemaDesigner();
});
}
@@ -1607,7 +1607,7 @@ function redo(e: any) {
}
-
+
module RadialSliderComponent {
$(function () {
@@ -1640,7 +1640,7 @@ module rangecomponent {
fill: '#69D2E7'
}
];
- }
+ }
});
});
@@ -1692,7 +1692,7 @@ module RatingComponent {
shapeWidth: 25,
showTooltip: true
});
-
+
var sample2 = new ej.Rating($("#halfRating"),{
precision: ej.Rating.Precision.Half,
value: 3.5,
@@ -1723,7 +1723,7 @@ module RatingComponent {
shapeHeight: 25,
shapeWidth: 25,
showTooltip: true
- });
+ });
});
}
@@ -1756,7 +1756,7 @@ module RibbonComponent {
toolTip: "Pin the Ribbon"
},
applicationTab: {
- type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false }
+ type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false }
},
tabs: [{
id: "home", text: "HOME", groups: [{
@@ -1833,7 +1833,7 @@ module RibbonComponent {
width: 60,
isBig: false
}
- }]
+ }]
},
{
text: "Font", alignType: "rows", content: [{
@@ -2112,7 +2112,7 @@ module RibbonComponent {
groups: [{
id: "zoomin",
text: "Zoom In",
- toolTip: "Zoom In",
+ toolTip: "Zoom In",
buttonSettings: {
width: 58,
contentType: ej.ContentType.TextAndImage,
@@ -2123,7 +2123,7 @@ module RibbonComponent {
{
id: "zoomout",
text: "Zoom Out",
- toolTip: "Zoom Out",
+ toolTip: "Zoom Out",
buttonSettings: {
width: 70,
contentType: ej.ContentType.TextAndImage,
@@ -2134,7 +2134,7 @@ module RibbonComponent {
{
id: "fullscreen",
text: "Full Screen",
- toolTip: "Full Screen",
+ toolTip: "Full Screen",
buttonSettings: {
width: 73,
contentType: ej.ContentType.TextAndImage,
@@ -2363,7 +2363,7 @@ module RibbonComponent {
}
]
}
- ],
+ ],
create: function createControl(args) {
var ribbon = $("#defaultRibbon").data("ejRibbon");
$("#fontcolor").ejColorPicker({ value: "#FFFF00", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fontcoloricon", select: colorHandler });
@@ -2379,7 +2379,7 @@ function colorHandler(args:any) {
-
+
module RotatorComponent {
$(function () {
@@ -2542,7 +2542,7 @@ module ScheduleComponent {
}
});
});
-}
+}
@@ -2725,9 +2725,9 @@ module piesparkline4 {
});
}
+
-
-
+
module SplitterComponent {
@@ -2762,7 +2762,7 @@ $(function () {
pdfUrl: (window).baseurl + "api/Spreadsheet/PdfExport"
},
sheets: [{ rangeSettings: [{ dataSource: (window).defaultData, startCell: "A1" }] }],
- loadComplete: () => {
+ loadComplete: () => {
var spreadsheet = $("#basicSpreadsheet").data("ejSpreadsheet"), xlFormat = spreadsheet.XLFormat;
if (!(spreadsheet).isImport) {
spreadsheet.setWidthToColumns([140, 128, 105, 100, 100, 110, 120, 120, 100]);
@@ -2786,13 +2786,13 @@ var default_data: Array = [
{ 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 },
@@ -2801,13 +2801,13 @@ var default_data: Array = [
{ 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 },
@@ -2817,7 +2817,7 @@ var default_data: Array = [
module sunburstcomponent {
$(function () {
var sunburstsample = new ej.SunburstChart($("#Sunburst"), {
- valueMemberPath: "EmployeesCount",
+ valueMemberPath: "EmployeesCount",
levels: [
{groupMemberPath: "Country"},
{groupMemberPath: "JobDescription"},
@@ -2856,8 +2856,8 @@ module TabComponent {
module TagCloudComponent {
-
-
+
+
var websiteCollection = [
{ text: "Google", url: "http://www.google.com", frequency: 12 },
{ text: "All Things Digital", url: "http://allthingsd.com/", frequency: 3 },
@@ -2888,7 +2888,7 @@ module TagCloudComponent {
text: "text", url: "url", frequency: "frequency"
}
});
-
+
});
}
@@ -2928,7 +2928,7 @@ module EditorComponent {
-
+
module TileViewComponent {
$(function () {
@@ -2939,38 +2939,38 @@ module TileViewComponent {
imageUrl:'content/images/tile/windows/people_1.png'
});
var tile2 = new ej.Tile($("#tile2"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"small",
- imageUrl:'content/images/tile/windows/alerts.png',
-
+ imageUrl:'content/images/tile/windows/alerts.png',
+
});
var tile3 = new ej.Tile($("#tile3"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"small",
- imageUrl:'content/images/tile/windows/bing.png',
+ imageUrl:'content/images/tile/windows/bing.png',
});
var tile4 = new ej.Tile($("#tile4"), {
tileSize:"small",
- imageUrl:'content/images/tile/windows/camera.png',
+ imageUrl:'content/images/tile/windows/camera.png',
});
var tile5 = new ej.Tile($("#tile5"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"small",
- imageUrl:'content/images/tile/windows/messages.png',
+ imageUrl:'content/images/tile/windows/messages.png',
});
var tile6 = new ej.Tile($("#tile6"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"medium",
- imageUrl:'content/images/tile/windows/games.png',
+ imageUrl:'content/images/tile/windows/games.png',
caption:{text:"Play"}
});
- var tile7 = new ej.Tile($("#tile7"), {
+ 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",
+ imagePosition:"fill",
tileSize:"wide",
imageUrl:'content/images/tile/windows/sports.png',
caption:{text:"Sports"}
@@ -3022,7 +3022,7 @@ module TimePickerComponent {
module ToolbarComponent {
-
+
$(function () {
var sample = new ej.Toolbar($("#editingToolbar"),{
width: "100%",
@@ -3041,7 +3041,7 @@ module ToolbarComponent {
module TooltipComponent {
-
+
$(function () {
var sample1 = new ej.Tooltip($("#link1"),{
@@ -3136,7 +3136,7 @@ module TreeGridComponent {
isResponsive: true,
});
});
-}
+}
@@ -3181,7 +3181,7 @@ module treemapcomponent {
-
+
module TreeViewComponent {
$(function () {
@@ -3198,7 +3198,7 @@ module TreeViewComponent {
module UploadboxComponent {
-
+
$(function () {
var sample = new ej.Uploadbox($("#UploadDefault"),{
saveUrl: "uploadbox/saveFiles.ashx",
@@ -3232,4 +3232,4 @@ module WaitingPopupComponent {
});
});
-}
\ No newline at end of file
+}
diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts
index ca17c06c5a..8328f30d95 100644
--- a/types/ej.web.all/index.d.ts
+++ b/types/ej.web.all/index.d.ts
@@ -7,15 +7,16 @@
/*!
* filename: ej.web.all.d.ts
-* version : 15.1.0.37
+* version : 15.1.0.41
* 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
* licensing@syncfusion.com. Any infringement will be prosecuted under
-* applicable laws.
+* applicable laws.
*/
-declare namespace ej {
- const dataUtil: dataUtil;
+declare module ej {
+
+ var dataUtil: dataUtil;
function isMobile(): boolean;
function isIOS(): boolean;
function isAndroid(): boolean;
@@ -28,33 +29,33 @@ declare namespace ej {
function isTouchDevice(): boolean;
function addPrefix(style: string): string;
function animationEndEvent(): string;
- function blockDefaultActions(e: any): void;
- function buildTag(tag: string, innerHtml?: string, styles?: any, attrs?: any): JQuery;
+ function blockDefaultActions(e: Object): void;
+ function buildTag(tag: string, innerHtml?: string, styles?: Object, attrs?: Object): JQuery;
function cancelEvent(): string;
function copyObject(): string;
- function createObject(nameSpace: string, value: any, initIn: any): JQuery;
+ function createObject(nameSpace: string, value: Object, initIn: any): JQuery;
function createObject(element: any, eventEmitter: any, model: any): any;
function setCulture(culture: string): void;
- function getObject(element: string, model: any ): T;
- function getObject(nameSpace: string, fromdata?: any): any;
- function defineClass(className: string, constructor: any, proto: any, replace: boolean): any;
- function destroyWidgets(element: any): void;
+ function getObject(element :string, model :any ): T;
+ function defineClass(className: string, constructor:any, proto: Object, replace: boolean): Object;
+ function destroyWidgets(element: Object): void;
function endEvent(): string;
- function event(type: string, data: any, eventProp: any): any;
- function getAndroidVersion(): any;
- function getAttrVal(ele: any, val: string, option: any): any;
- function getBooleanVal(ele: any, val: string, option: any): any;
+ function event(type: string, data: any, eventProp: Object): Object;
+ function getAndroidVersion(): Object;
+ function getAttrVal(ele: Object, val: string, option: Object): Object;
+ function getBooleanVal(ele: Object, val: string, option: Object): Object;
function getClearString(): string;
- function getDimension(element: any, method: string): any;
- function getFontString(fontObj: any): string;
+ function getDimension(element: Object, method: string): Object;
+ function getFontString(fontObj: Object): string;
function getFontStyle(style: string): string;
function getMaxZindex(): number;
function getNameSpace(className: string): string;
- function getOffset(ele: string): any;
+ function getObject(nameSpace: string, fromdata?: any): Object;
+ function getOffset(ele: string): Object;
function getRenderMode(): string;
- function getScrollableParents(element: any): void;
+ function getScrollableParents(element: Object): void;
function getTheme(): string;
- function getZindexPartial(element: any, popupEle: string): number;
+ function getZindexPartial(element: Object, popupEle: string): number;
function hasRenderMode(element: string): void;
function hasStyle(prop: string): boolean;
function hasTheme(element: string): string;
@@ -65,90 +66,91 @@ declare namespace ej {
function isIOS7(): boolean;
function isIOSWebView(): boolean;
function isLowerAndroid(): boolean;
- function isNullOrUndefined(value: any): boolean;
+ function isNullOrUndefined(value: Object): boolean;
function isPlainObject(): JQuery;
function isPortrait(): any;
function isTablet(): boolean;
function isWindowsWebView(): string;
- function listenEvents(selectors: any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
- function listenTouchEvent(selectors: any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
+ function listenEvents(selectors:any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
+ function listenTouchEvent(selectors:any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
function logBase(val: string, base: string): number;
function measureText(text: string, maxwidth: number, font: string): string;
function moveEvent(): string;
function print(element: string, printWindow: any): void;
- function proxy(fn: any, context?: string, arg?: string): any;
+ function proxy(fn: Object, context?: string, arg?: string): any;
function round(value: string, div: string, up: string): any;
- function sendAjaxRequest(ajaxOptions: any): void;
+ function sendAjaxRequest(ajaxOptions: Object): void;
function setCaretToPos(nput: string, pos1: string, pos2: string): void;
function setRenderMode(element: string): void;
- function setTheme(): any;
+ function setTheme(): Object;
function startEvent(): string;
function tapEvent(): string;
function tapHoldEvent(): string;
- function throwError(): any;
- function transitionEndEvent(): any;
+ function throwError(): Object;
+ function transitionEndEvent(): Object;
function userAgent(): boolean;
- function widget(pluginName: string, className: string, proto: any): any;
- function avg(json: any, filedName: string): any;
+ function widget(pluginName: string, className: string, proto: Object): Object;
+ function avg(json: Object, filedName: string): any;
function getGuid(prefix: string): number;
- function group(jsonArray: any, field: string, agg: string, level: number, groupDs: string): any;
+ function group(jsonArray: any, field: string, agg: string, level: number, groupDs: string): Object;
function isJson(jsonData: string): string;
function max(jsonArray: any, fieldName?: string, comparer?: string): any;
function min(jsonArray: any, fieldName: string, comparer: string): any;
function merge(first: string, second: string): any;
function mergeshort(jsonArray: any, fieldName: string, comparer: string): any;
function parseJson(jsonText: string): string;
- function parseTable(table: number, headerOption: string, headerRowIndex: string): any;
+ function parseTable(table: number, headerOption: string, headerRowIndex: string): Object;
function select(jsonArray: any, fields: string): any;
function setTransition(): boolean;
function sum(json: string, fieldName: string): string;
- function swap(array: any, x: string, y: string): any;
- const cssUA: string;
- const serverTimezoneOffset: number;
- const transform: string;
- const transformOrigin: string;
- const transformStyle: string;
- const transition: string;
- const transitionDelay: string;
- const transitionDuration: string;
- const transitionProperty: string;
- const transitionTimingFunction: string;
- const template: any;
- const util: {
+ function swap(array: any, x: string, y: string): any;
+ var cssUA: string;
+ var serverTimezoneOffset: number;
+ var transform: string;
+ var transformOrigin: string;
+ var transformStyle: string;
+ var transition: string;
+ var transitionDelay: string;
+ var transitionDuration: string;
+ var transitionProperty: string;
+ var transitionTimingFunction: string;
+ var template: any;
+ var util: {
valueFunction(val: string): any;
- };
- export namespace device {
+ }
+ export module device {
function isAndroid(): boolean;
function isIOS(): boolean;
function isFlat(): boolean;
function isIOS7(): boolean;
function isWindows(): boolean;
}
- export namespace widget {
- const autoInit: boolean;
- const registeredInstances: any[];
- const registeredWidgets: any[];
+ export module widget {
+ var autoInit: boolean;
+ var registeredInstances: Array;
+ var registeredWidgets: Array;
function register(pluginName: string, className: string, prototype: any): void;
function destroyAll(elements: Element): void;
function init(element: Element): void;
- function registerInstance(element: Element, pluginName: string, className: string, prototype: any): void;
- }
+ function registerInstance(element: Element, pluginName: string, className: string, prototype: any):void;
+ }
+
interface browserInfoOptions {
name: string;
version: string;
- culture: any;
+ culture: Object;
isMSPointerEnabled: boolean;
}
class WidgetBase {
destroy(): void;
element: JQuery;
- setModel(options: any, forceSet?: boolean): any;
- option(prop?: any, value?: any, forceSet?: boolean): any;
- _trigger(eventName?: string, eventProp?: any): any;
+ setModel(options: Object, forceSet?: boolean):any;
+ option(prop?: Object, value?: Object, forceSet?: boolean): any;
+ _trigger(eventName?: string, eventProp?: Object): any;
_on(element: JQuery, eventType?: string, handler?: (eventObject: JQueryEventObject) => any): any;
_on(element: JQuery, eventType ?: string, selector ?: string, handler ?: (eventObject: JQueryEventObject) => any): any;
_off(element: JQuery, eventName: string, handler ?: (eventObject: JQueryEventObject) => any): any;
- _off(element: JQuery, eventType ?: string, selector ?: string, handler ?: (eventObject: JQueryEventObject) => any): any;
+ _off(element: JQuery, eventType ?: string, selector ?: string, handler ?: (eventObject: JQueryEventObject) => any): any;
persistState(): void;
restoreState(silent: boolean): void;
}
@@ -158,30 +160,30 @@ declare namespace ej {
static fn: Widget;
static extend(widget: Widget): any;
register(pluginName: string, className: string, prototype: any): void;
- destroyAll(elements: Element): void;
- model: any;
+ destroyAll(elements: Element): void;
+ model: any;
}
interface BaseEvent {
cancel: boolean;
- type: string;
+ type: string;
}
class DataManager {
- constructor(dataSource?: any, query?: ej.Query, adaptor?: any);
+ constructor(dataSource?: any, query?: ej.Query, adaptor?: any);
setDefaultQuery(query: ej.Query): void;
executeQuery(query?: ej.Query, done?: any, fail?: any, always?: any): JQueryPromise;
executeLocal(query?: ej.Query): ej.DataManager;
saveChanges(changes?: Changes, key?: string, tableName?: string): JQueryDeferred;
- insert(data: any, tableName?: string): JQueryPromise;
- remove(keyField: string, value: any, tableName?: string): any;
- update(keyField: string, value: any, tableName?: string): any;
- }
+ insert(data: Object, tableName?: string): JQueryPromise;
+ remove(keyField: string, value: any, tableName?: string): Object;
+ update(keyField: string, value: any, tableName?: string): Object;
+ }
class Query {
constructor();
static fn: Query;
- static extend(prototype: any): Query;
+ static extend(prototype: Object): Query;
key(field: string): ej.Query;
using(dataManager: ej.DataManager): ej.Query;
execute(dataManager: ej.DataManager, done: any, fail?: string, always?: string): any;
@@ -191,8 +193,8 @@ declare namespace ej {
addParams(key: string, value: string): ej.Query;
expand(tables: any): ej.Query;
where(fieldName: string, operator: ej.FilterOperators, value: any, ignoreCase?: boolean): ej.Query;
- where(predicate: ej.Predicate): ej.Query;
- search(searchKey: any, fieldNames?: any, operator?: string, ignoreCase?: boolean): ej.Query;
+ where(predicate:ej.Predicate):ej.Query;
+ search(searchKey: any, fieldNames?: any, operator?: string, ignoreCase?: boolean): ej.Query;
sortBy(fieldName: string, comparer?: ej.SortOrder, isFromGroup?: boolean): ej.Query;
sortByDesc(fieldName: string): ej.Query;
group(fieldName: string): ej.Query;
@@ -203,17 +205,17 @@ declare namespace ej {
hierarchy(query: ej.Query, selectorFn: any): ej.Query;
foreignKey(key: string): ej.Query;
requiresCount(): ej.Query;
- range(start: number, end: number): ej.Query;
+ range(start:number, end:number): ej.Query;
}
class Adaptor {
constructor(ds: any);
- pvt: any;
+ pvt: Object;
type: ej.Adaptor;
options: AdaptorOptions;
extend(overrides: any): ej.Adaptor;
- processQuery(dm: ej.DataManager, query: ej.Query): any;
- processResponse(data: any, ds: any, query: ej.Query, xhr: JQueryXHR, request?: any, changes?: Changes): any;
+ processQuery(dm: ej.DataManager, query: ej.Query):any;
+ processResponse(data: Object, ds: any, query: ej.Query, xhr: JQueryXHR, request?: Object, changes?: Changes): Object;
convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
}
@@ -233,18 +235,18 @@ declare namespace ej {
class UrlAdaptor extends ej.Adaptor {
constructor();
- processQuery(dm: ej.DataManager, query: ej.Query, hierarchyFilters?: any): {
- type: string; url: string; ejPvtData: any; contentType?: string; data?: any;
+ processQuery(dm: ej.DataManager, query: ej.Query, hierarchyFilters?: Object): {
+ type: string; url: string; ejPvtData: Object; contentType?: string; data?: Object;
}
- convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
- processResponse(data: any, ds: any, query: ej.Query, xhr: JQueryXHR, request?: any, changes?: Changes): any;
+ convertToQueryString(req: Object, query: ej.Query, dm: ej.DataManager): JQueryParam;
+ processResponse(data: Object, ds: any, query: ej.Query, xhr: JQueryXHR, request?: Object, changes?: Changes): Object;
onGroup(e: any): void;
batchRequest(dm: ej.DataManager, changes: Changes, e: any): void;
- beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any };
+ beforeSend(dm: ej.DataManager, request: any, settings?:any): void;
+ insert(dm: ej.DataManager, data: Object, tableName: string): { url: string; data: any };
remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data?: any };
update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any };
- getFiltersFrom(data: any, query: ej.Query): ej.Predicate;
+ getFiltersFrom(data: Object, query: ej.Query): ej.Predicate;
}
class ODataAdaptor extends ej.UrlAdaptor {
@@ -253,26 +255,26 @@ declare namespace ej {
onEachWhere(filter: any, requiresCast: boolean): any;
onPredicate(pred: ej.Predicate, query: ej.Query, requiresCast: boolean): string;
onComplexPredicate(pred: ej.Predicate, requiresCast: boolean): string;
- onWhere(filters: string[]): string;
- onEachSearch(e: any): void;
- onSearch(e: any): string;
- onEachSort(e: any): string;
- onSortBy(e: any): string;
- onGroup(e: any): string;
- onSelect(e: any): string;
- onCount(e: any): string;
+ onWhere(filters: Array): string;
+ onEachSearch(e: Object): void;
+ onSearch(e: Object): string;
+ onEachSort(e: Object): string;
+ onSortBy(e: Object): string;
+ onGroup(e: Object): string;
+ onSelect(e: Object): string;
+ onCount(e: Object): string;
beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
- result: any; count: number
+ processResponse(data: Object, ds: Object, query: ej.Query, xhr:any, request: any, changes: Changes): {
+ result: Object; count: number
};
- convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
- insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any; }
+ convertToQueryString(req: Object, query: ej.Query, dm: ej.DataManager): JQueryParam;
+ insert(dm: ej.DataManager, data: Object, tableName: string): { url: string; data: Object; }
remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; }
- update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; data: any; accept: string; }
- batchRequest(dm: ej.DataManager, changes: Changes, e: any): { url: string; type: string; data: any; contentType: string; }
- generateDeleteRequest(arr: any[], e: any): string;
- generateInsertRequest(arr: any[], e: any): string;
- generateUpdateRequest(arr: any[], e: any): string;
+ update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; data: Object; accept: string; }
+ batchRequest(dm: ej.DataManager, changes: Changes, e: any): { url: string; type: string; data: Object; contentType: string; }
+ generateDeleteRequest(arr: Array, e: any): string;
+ generateInsertRequest(arr: Array, e: any): string;
+ generateUpdateRequest(arr: Array, e: any): string;
}
interface UrlAdaptorOptions {
requestType?: string;
@@ -293,25 +295,28 @@ declare namespace ej {
changeSetContent?: string;
batchChangeSetContentType?: string;
}
+
class WebApiAdaptor extends ej.ODataAdaptor {
constructor();
- insert(dm: ej.DataManager, data: any, tableName?: string): { url: string; type: string; data: any; }
- remove(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: any; }
- update(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: any; accept: string; }
- processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
- result: any; count: number
+ insert(dm: ej.DataManager, data: Object, tableName?: string): { url: string; type: string; data: Object; }
+ remove(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: Object; }
+ update(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: Object; accept: string; }
+ processResponse(data: Object, ds: Object, query: ej.Query, xhr: any, request: any, changes: Changes): {
+ result: Object; count: number
};
}
+
class ODataV4Adaptor extends ej.ODataAdaptor {
constructor();
options: ODataAdaptorOptions;
- onCount(e: any): string;
- onEachSearch(e: any): void;
- onSearch(e: any): string;
+ onCount(e: Object): string;
+ onEachSearch(e: Object): void;
+ onSearch(e: Object): string;
beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
- result: any; count: number
+ processResponse(data: Object, ds: Object, query: ej.Query, xhr:any, request: any, changes: Changes): {
+ result: Object; count: number
};
+
}
interface ODataAdaptorOptions {
requestType?: string;
@@ -336,31 +341,31 @@ declare namespace ej {
class JsonAdaptor extends ej.Adaptor {
constructor();
- processQuery(ds: any, query: ej.Query): string;
- batchRequest(dm: ej.DataManager, changes: Changes, e: any): Changes;
- onWhere(ds: any, e: any): any;
- onSearch(ds: any, e: any): any
- onSortBy(ds: any, e: any, query: ej.Query): any;
- onGroup(ds: any, e: any, query: ej.Query): any;
- onPage(ds: any, e: any, query: ej.Query): any;
- onRange(ds: any, e: any): any;
- onTake(ds: any, e: any): any;
- onSkip(ds: any, e: any): any;
- onSelect(ds: any, e: any): any;
- insert(dm: ej.DataManager, data: any): any;
- remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): any;
- update(dm: ej.DataManager, keyField: string, value: any, tableName: string): any;
+ processQuery(ds: Object, query: ej.Query): string;
+ batchRequest(dm: ej.DataManager, changes: Changes, e:any): Changes;
+ onWhere(ds: Object, e: any): any;
+ onSearch(ds: Object, e: any): any
+ onSortBy(ds: Object, e: any, query: ej.Query): Object;
+ onGroup(ds: Object, e: any, query: ej.Query): Object;
+ onPage(ds: Object, e: any, query: ej.Query): Object;
+ onRange(ds: Object, e: any): Object;
+ onTake(ds: Object, e: any): Object;
+ onSkip(ds: Object, e: any): Object;
+ onSelect(ds: Object, e: any): Object;
+ insert(dm: ej.DataManager, data: any): Object;
+ remove(dm: ej.DataManager, keyField: string, value:any, tableName: string): Object;
+ update(dm: ej.DataManager, keyField: string, value:any, tableName: string): Object;
}
class remoteSaveAdaptor extends ej.UrlAdaptor {
constructor();
batchRequest(dm: ej.DataManager, changes: Changes, e: any): void;
beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any };
+ insert(dm: ej.DataManager, data: Object, tableName: string): { url: string; data: any };
remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data?: any };
update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any };
}
class TableModel {
- constructor(name: string, jsonArray: any[], dataManager: ej.DataManager, modelComputed: any);
+ constructor(name: string, jsonArray: Array, dataManager: ej.DataManager, modelComputed: any);
on(eventName: string, handler: any): void;
off(eventName: string, handler: any): void;
setDataManager(dataManager: DataManager): void;
@@ -371,15 +376,15 @@ declare namespace ej {
remove(key: string): void;
isDirty(): boolean;
getChanges(): Changes;
- toArray(): any[];
- setDirty(dirty: any, model: any): void;
+ toArray(): Array;
+ setDirty(dirty:any, model:any): void;
get(index: number): void;
length(): number;
bindTo(element: any): void;
}
class Model {
constructor(json: any, table: string, name: string);
- formElements: string[];
+ formElements: Array;
computes(value: any): void;
on(eventName: string, handler: any): void;
off(eventName: string, handler: any): void;
@@ -395,17 +400,17 @@ declare namespace ej {
unbind(element: any): void;
}
interface Changes {
- changed?: any[];
- added?: any[];
- deleted?: any[];
+ changed?: Array;
+ added?: Array;
+ deleted?: Array;
}
class Predicate {
constructor();
constructor(field: string, operator: ej.FilterOperators, value: any, ignoreCase: boolean);
- and(field: string, operator: any, value: any, ignoreCase: boolean): ej.Predicate;
+ and(field: string, operator: any, value:any, ignoreCase:boolean): ej.Predicate;
or(field: string, operator: any, value: any, ignoreCase: boolean): ej.Predicate;
- or(predicate: any[]): any;
- validate(record: any): boolean;
+ or(predicate: Array): any;
+ validate(record: Object): boolean;
toJSON(): {
isComplex: boolean;
field: string;
@@ -416,17 +421,17 @@ declare namespace ej {
predicates: any;
};
}
- interface dataUtil {
- swap(array: any[], x: number, y: number): void;
- mergeSort(jsonArray: any[], fieldName?: string, comparer?: any): any[];
- max(jsonArray: any[], fieldName?: string, comparer?: string): any[];
- min(jsonArray: any[], fieldName: string, comparer: string): any[];
- distinct(jsonArray: any[], fieldName?: string, requiresCompleteRecord?: any): any[];
- sum(json: any, fieldName: string): number;
- avg(json: any, fieldName: string): number;
- select(jsonArray: any[], fieldName: string, fields: string): any[];
- group(jsonArray: any[], field: string, /* internal */ level: number): any[];
- parseTable(table: string, headerOption: ej.headerOption, headerRowIndex: number): any;
+ interface dataUtil {
+ swap(array: Array, x: number, y: number): void;
+ mergeSort(jsonArray: Array, fieldName?: string, comparer?:any): Array;
+ max(jsonArray: Array, fieldName?: string, comparer?: string): Array;
+ min(jsonArray: Array, fieldName: string, comparer: string): Array;
+ distinct(jsonArray: Array, fieldName?: string, requiresCompleteRecord?:any): Array;
+ sum(json:any, fieldName: string): number;
+ avg(json:any, fieldName: string): number;
+ select(jsonArray: Array, fieldName: string, fields:string): Array;
+ group(jsonArray: Array, field: string, /* internal */ level: number): Array;
+ parseTable(table: string, headerOption: ej.headerOption, headerRowIndex: number): Object;
}
interface AjaxSettings {
type?: string;
@@ -486,7 +491,8 @@ declare namespace ej {
row,
tHead
}
- enum filterType {
+
+ enum filterType{
StartsWith,
Contains,
EndsWith,
@@ -497,32 +503,33 @@ declare namespace ej {
Equal,
NotEqual
}
- enum Animation {
+ enum Animation{
Fade,
None,
Slide
- }
- enum Type {
+ }
+ enum Type{
Overlay,
Slide
}
- enum SortOrder {
+ enum SortOrder{
Ascending,
Descending
}
class Draggable extends ej.Widget {
static fn: Draggable;
- constructor(element: JQuery | Element, options?: Draggable.Model);
+ constructor(element: JQuery, options?: Draggable.Model);
+ constructor(element: Element, options?: Draggable.Model);
static Locale: any;
- model: Draggable.Model;
- defaults: Draggable.Model;
+ model:Draggable.Model;
+ defaults:Draggable.Model;
/** destroy in the draggable.
* @returns {void}
*/
_destroy(): void;
}
-export namespace Draggable {
+export module Draggable{
export interface Model {
@@ -557,19 +564,19 @@ export interface Model {
scope?: string;
/** This event is triggered when dragging element is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** This event is triggered when the mouse is moved during the dragging. */
- drag?(e: DragEventArgs): void;
+ drag? (e: DragEventArgs): void;
/** Supply a callback function to handle the drag start event as an init option. */
- dragStart?(e: DragStartEventArgs): void;
+ dragStart? (e: DragStartEventArgs): void;
/** This event is triggered when the mouse is moved during the dragging. */
- dragStop?(e: DragStopEventArgs): void;
+ dragStop? (e: DragStopEventArgs): void;
/** This event is triggered when dragged. */
- helper?(e: HelperEventArgs): void;
+ helper? (e: HelperEventArgs): void;
}
export interface DestroyEventArgs {
@@ -670,17 +677,18 @@ export interface HelperEventArgs {
class Droppable extends ej.Widget {
static fn: Droppable;
- constructor(element: JQuery | Element, options?: Droppable.Model);
+ constructor(element: JQuery, options?: Droppable.Model);
+ constructor(element: Element, options?: Droppable.Model);
static Locale: any;
- model: Droppable.Model;
- defaults: Droppable.Model;
+ model:Droppable.Model;
+ defaults:Droppable.Model;
/** destroy in the Droppable.
* @returns {void}
*/
_destroy(): void;
}
-export namespace Droppable {
+export module Droppable{
export interface Model {
@@ -695,13 +703,13 @@ export interface Model {
scope?: string;
/** This event is triggered when the mouse up is moved during the dragging. */
- drop?(e: DropEventArgs): void;
+ drop? (e: DropEventArgs): void;
/** This event is triggered when the mouse is moved out. */
- out?(e: OutEventArgs): void;
+ out? (e: OutEventArgs): void;
/** This event is triggered when the mouse is moved over. */
- over?(e: OverEventArgs): void;
+ over? (e: OverEventArgs): void;
}
export interface DropEventArgs {
@@ -764,17 +772,18 @@ export interface OverEventArgs {
class Resizable extends ej.Widget {
static fn: Resizable;
- constructor(element: JQuery | Element, options?: Resizable.Model);
+ constructor(element: JQuery, options?: Resizable.Model);
+ constructor(element: Element, options?: Resizable.Model);
static Locale: any;
- model: Resizable.Model;
- defaults: Resizable.Model;
+ model:Resizable.Model;
+ defaults:Resizable.Model;
/** destroy in the Resizable.
* @returns {void}
*/
_destroy(): void;
}
-export namespace Resizable {
+export module Resizable{
export interface Model {
@@ -819,10 +828,10 @@ export interface Model {
scope?: string;
/** This event is triggered when the widget destroys. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** This event is triggered when resized. */
- helper?(e: HelperEventArgs): void;
+ helper? (e: HelperEventArgs): void;
}
export interface DestroyEventArgs {
@@ -857,8 +866,8 @@ export interface HelperEventArgs {
}
- const globalize: globalize;
- const cultures: culture;
+ var globalize:globalize;
+ var cultures:culture;
function addCulture(name: string, culture ?: any): void;
function preferredCulture(culture ?: string): culture;
function format(value: any, format: string, culture ?: string): string;
@@ -867,10 +876,10 @@ export interface HelperEventArgs {
function parseDate(value: string, format: string, culture ?: string): Date;
function getLocalizedConstants(controlName: string, culture ?: string): any;
-interface globalize {
+interface globalize {
addCulture(name: string, culture?: any): void;
preferredCulture(culture?: string): culture;
- format(value: any, format: string, culture?: string): string;
+ format(value: any, format: string, culture?: string): string;
parseInt(value: string, radix?: any, culture?: string): number;
parseFloat(value: string, radix?: any, culture?: string): number;
parseDate(value: string, format: string, culture?: string): Date;
@@ -886,22 +895,22 @@ interface globalize {
calendars?: calendarsSettings;
}
interface formatSettings {
- pattern: string[];
+ pattern: Array;
decimals: number;
- groupSizes: number[];
+ groupSizes: Array;
percent: percentSettings;
currency: currencySettings;
}
interface percentSettings {
- pattern: string[];
+ pattern: Array;
decimals: number;
- groupSizes: number[];
+ groupSizes: Array;
symbol: string;
}
interface currencySettings {
- pattern: string[];
+ pattern: Array;
decimals: number;
- groupSizes: number[];
+ groupSizes: Array;
symbol: string;
}
interface calendarsSettings {
@@ -911,19 +920,19 @@ interface globalize {
firstDay: number;
days: daySettings;
months: monthSettings;
- AM: string[];
- PM: string[];
+ AM: Array;
+ PM: Array;
twoDigitYearMax: number;
patterns: patternSettings;
}
interface daySettings {
- names: string[];
- namesAbbr: string[];
- namesShort: string[];
+ names: Array;
+ namesAbbr: Array;
+ namesShort: Array;
}
interface monthSettings {
- names: string[];
- namesAbbr: string[];
+ names: Array;
+ namesAbbr: Array;
}
interface patternSettings {
d: string;
@@ -935,13 +944,14 @@ interface globalize {
M: string;
Y: string;
S: string;
- }
+ }
class Scroller extends ej.Widget {
static fn: Scroller;
- constructor(element: JQuery | Element, options?: Scroller.Model);
+ constructor(element: JQuery, options?: Scroller.Model);
+ constructor(element: Element, options?: Scroller.Model);
static Locale: any;
- model: Scroller.Model;
- defaults: Scroller.Model;
+ model:Scroller.Model;
+ defaults:Scroller.Model;
/** destroy the Scroller control, unbind the all ej control related events automatically and bring the control to pre-init state.
* @returns {void}
@@ -989,7 +999,7 @@ class Scroller extends ej.Widget {
*/
scrollY(pixel: number|string, disableAnimation: boolean, animationSpeed: number): void;
}
-export namespace Scroller {
+export module Scroller{
export interface Model {
@@ -1064,28 +1074,28 @@ export interface Model {
width?: number|string;
/** Fires when Scroller control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when Scroller control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when a thumb point is moved along the touch surface. */
- thumbMove?(e: ThumbMoveEventArgs): void;
+ thumbMove? (e: ThumbMoveEventArgs): void;
/** Fires when a thumb point is placed on the touch surface. */
- thumbStart?(e: ThumbStartEventArgs): void;
+ thumbStart? (e: ThumbStartEventArgs): void;
/** Fires when a thumb point is removed from the touch surface. */
- thumbEnd?(e: ThumbEndEventArgs): void;
+ thumbEnd? (e: ThumbEndEventArgs): void;
/** It fires whenever the mouse wheel is rotated either in upwards or downwards. */
- wheelMove?(e: WheelMoveEventArgs): void;
+ wheelMove? (e: WheelMoveEventArgs): void;
/** It will fire when mouse trackball has been start to wheel. */
- wheelStart?(e: WheelStartEventArgs): void;
+ wheelStart? (e: WheelStartEventArgs): void;
/** It will fire when mouse trackball has been stop to wheel. */
- wheelStop?(e: WheelStopEventArgs): void;
+ wheelStop? (e: WheelStopEventArgs): void;
}
export interface CreateEventArgs {
@@ -1243,10 +1253,11 @@ export interface WheelStopEventArgs {
class Accordion extends ej.Widget {
static fn: Accordion;
- constructor(element: JQuery | Element, options?: Accordion.Model);
+ constructor(element: JQuery, options?: Accordion.Model);
+ constructor(element: Element, options?: Accordion.Model);
static Locale: any;
- model: Accordion.Model;
- defaults: Accordion.Model;
+ model:Accordion.Model;
+ defaults:Accordion.Model;
/** AddItem method is used to add the panel in dynamically. It receives the following parameters
* @param {string} specify the name of the header
@@ -1281,7 +1292,7 @@ class Accordion extends ej.Widget {
* @param {Array} index values to disable the panels
* @returns {void}
*/
- disableItems(index: any[]): void;
+ disableItems(index: Array): void;
/** Enable the accordion widget includes all the headers and content panels.
* @returns {void}
@@ -1292,7 +1303,7 @@ class Accordion extends ej.Widget {
* @param {Array} index values to enable the panels
* @returns {void}
*/
- enableItems(index: any[]): void;
+ enableItems(index: Array): void;
/** To expand all the accordion widget items.
* @returns {void}
@@ -1330,7 +1341,7 @@ class Accordion extends ej.Widget {
*/
show(): void;
}
-export namespace Accordion {
+export module Accordion{
export interface Model {
@@ -1342,7 +1353,7 @@ export interface Model {
/** Accordion headers can be expanded and collapsed on keyboard action.
* @Default {true}
*/
- allowKeyboardNavigation?: boolean;
+ allowKeyboardNavigation?: Boolean;
/** To set the Accordion headers Collapse Speed.
* @Default {300}
@@ -1356,9 +1367,9 @@ export interface Model {
/** Sets the root CSS class for Accordion theme, which is used customize.
*/
- cssClass?: string;
+ cssClass?: String;
- /** Allows you to set the custom header Icon. It accepts two key values “header”, ”selectedHeader”.
+ /** Allows you to set the custom header Icon. It accepts two key values “headerâ€, â€selectedHeaderâ€.
* @Default {{ header: e-collapse, selectedHeader: e-expand }}
*/
customIcon?: CustomIcon;
@@ -1371,12 +1382,12 @@ export interface Model {
/** Specifies the animation behavior in accordion.
* @Default {true}
*/
- enableAnimation?: boolean;
+ enableAnimation?: Boolean;
/** With this enabled property, you can enable or disable the Accordion.
* @Default {true}
*/
- enabled?: boolean;
+ enabled?: Boolean;
/** Used to enable the disabled items in accordion.
* @Default {[]}
@@ -1386,22 +1397,22 @@ export interface Model {
/** Multiple content panels to activate at a time.
* @Default {false}
*/
- enableMultipleOpen?: boolean;
+ enableMultipleOpen?: Boolean;
/** Save current model value to browser cookies for maintaining states. When refreshing the accordion control page, the model value is applied from browser cookies or HTML 5local storage.
* @Default {false}
*/
- enablePersistence?: boolean;
+ enablePersistence?: Boolean;
/** Display headers and panel text from right-to-left.
* @Default {false}
*/
- enableRTL?: boolean;
+ enableRTL?: Boolean;
/** The events API binds the action for activating the accordion header. Users can activate the header by using mouse actions such as mouse-over, mouse-up, mouse-down, and soon.
* @Default {click}
*/
- events?: string;
+ events?: String;
/** To set the Accordion headers Expand Speed.
* @Default {300}
@@ -1440,7 +1451,7 @@ export interface Model {
/** Used to determines the close button visibility an each accordion items. This close button helps to remove the accordion item from the control.
* @Default {false}
*/
- showCloseButton?: boolean;
+ showCloseButton?: Boolean;
/** Displays rounded corner borders on the Accordion control's panels and headers.
* @Default {false}
@@ -1453,34 +1464,34 @@ export interface Model {
width?: number|string;
/** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
- activate?(e: ActivateEventArgs): void;
+ activate? (e: ActivateEventArgs): void;
/** Triggered before the AJAX content is loaded in a content panel. Arguments have location of the content (URL) and current model value. */
- ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
+ ajaxBeforeLoad? (e: AjaxBeforeLoadEventArgs): void;
/** Triggered after AJAX load failed action. Arguments have URL, error message, and current model value. */
- ajaxError?(e: AjaxErrorEventArgs): void;
+ ajaxError? (e: AjaxErrorEventArgs): void;
/** Triggered after the AJAX content loads. Arguments have current model values. */
- ajaxLoad?(e: AjaxLoadEventArgs): void;
+ ajaxLoad? (e: AjaxLoadEventArgs): void;
/** Triggered after AJAX success action. Arguments have URL, content, and current model values. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ ajaxSuccess? (e: AjaxSuccessEventArgs): void;
/** Triggered before a tab item is active. Arguments have active index and model values. */
- beforeActivate?(e: BeforeActivateEventArgs): void;
+ beforeActivate? (e: BeforeActivateEventArgs): void;
/** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
- beforeInactivate?(e: BeforeInactivateEventArgs): void;
+ beforeInactivate? (e: BeforeInactivateEventArgs): void;
/** Triggered after Accordion control creation. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggered after Accordion control destroy. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
- inActivate?(e: InActivateEventArgs): void;
+ inActivate? (e: InActivateEventArgs): void;
}
export interface ActivateEventArgs {
@@ -1705,15 +1716,15 @@ export interface AjaxSettings {
/** It specifies, whether to enable or disable asynchronous request.
*/
- async?: boolean;
+ async?: Boolean;
/** It specifies the page will be cached in the web browser.
*/
- cache?: boolean;
+ cache?: Boolean;
/** It specifies the type of data is send in the query string.
*/
- contentType?: string;
+ contentType?: String;
/** It specifies the data as an object, will be passed in the query string.
*/
@@ -1721,25 +1732,25 @@ export interface AjaxSettings {
/** It specifies the type of data that you're expecting back from the response.
*/
- dataType?: string;
+ dataType?: String;
/** It specifies the HTTP request type.
*/
- type?: string;
+ type?: String;
}
export interface CustomIcon {
/** This class name set to collapsing header.
*/
- header?: string;
+ header?: String;
/** This class name set to expanded (active) header.
*/
- selectedHeader?: string;
+ selectedHeader?: String;
}
-enum HeightAdjustMode {
+enum HeightAdjustMode{
///Height fit to the content in the panel
Content,
@@ -1755,10 +1766,11 @@ enum HeightAdjustMode {
class Autocomplete extends ej.Widget {
static fn: Autocomplete;
- constructor(element: JQuery | Element, options?: Autocomplete.Model);
+ constructor(element: JQuery, options?: Autocomplete.Model);
+ constructor(element: Element, options?: Autocomplete.Model);
static Locale: any;
- model: Autocomplete.Model;
- defaults: Autocomplete.Model;
+ model:Autocomplete.Model;
+ defaults:Autocomplete.Model;
/** Clears the text in the Autocomplete textbox.
* @returns {void}
@@ -1817,17 +1829,16 @@ class Autocomplete extends ej.Widget {
*/
selectValueByText(Text: string): void;
}
-export namespace Autocomplete {
+export module Autocomplete{
export interface Model {
/** Customize "Add New" text (label) to be added in the autocomplete popup list for the entered text when there are no suggestions for it.
* @Default {Add New}
*/
- addNewText?: boolean;
+ addNewText?: string;
- /** Allows new values to be added to the autocomplete input other than the values in the suggestion list.
- * Normally, when there are no suggestions it will display “No suggestions” label in the popup.
+ /** Allows new values to be added to the autocomplete input other than the values in the suggestion list. Normally, when there are no suggestions it will display “No suggestions†label in the popup.
* @Default {false}
*/
allowAddNew?: boolean;
@@ -1853,14 +1864,14 @@ export interface Model {
caseSensitiveSearch?: boolean;
/** The root class for the Autocomplete textbox widget which helps in customizing its theme.
- * @Default {””}
+ * @Default {â€â€}
*/
cssClass?: string;
- /** The data source contains the list of data for the suggestions list. It can be a string array or JSON array.
+ /** The data source contains the list of data for the suggestions list. It can be a string array or JSON array or service URL that returns JSON.
* @Default {null}
*/
- dataSource?: any|any[];
+ dataSource?: any|Array;
/** The time delay (in milliseconds) after which the suggestion popup will be shown.
* @Default {200}
@@ -1868,12 +1879,12 @@ export interface Model {
delaySuggestionTimeout?: number;
/** The special character which acts as a separator for the given words for multi-mode search i.e. the text after the delimiter are considered as a separate word or query for search operation.
- * @Default {’,’}
+ * @Default {’,’}
*/
delimiterChar?: string;
/** The text to be displayed in the popup when there are no suggestions available for the entered text.
- * @Default {“No suggestions”}
+ * @Default {“No suggestionsâ€}
*/
emptyResultText?: string;
@@ -1892,14 +1903,12 @@ export interface Model {
*/
enableDistinct?: boolean;
- /** Allows the current model values to be saved in local storage or browser cookies for state maintenance
- * when it is set to true.
- * While refreshing the page, it retains the model value from browser cookies or local storage.
+ /** Allows the current model values to be saved in local storage or browser cookies for state maintenance when it is set to true. While refreshing the page, it retains the model value from browser cookies or local storage.
* @Default {false}
*/
enablePersistence?: boolean;
- /** Displays the Autocomplete widget’s content from right to left when enabled.
+ /** Displays the Autocomplete widget’s content from right to left when enabled.
* @Default {false}
*/
enableRTL?: boolean;
@@ -1909,10 +1918,7 @@ export interface Model {
*/
fields?: Fields;
- /** Specifies the search filter type.
- * There are several types of search filter available such as ‘startswith’,
- * ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’,
- * ‘greaterthanorequal’, ‘equal’, ‘notequal’.
+ /** Specifies the search filter type. There are several types of search filter available such as ‘startswith’, ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’, ‘greaterthanorequal’, ‘equal’, ‘notequal’.
* @Default {ej.filterType.StartsWith}
*/
filterType?: string;
@@ -1920,7 +1926,7 @@ export interface Model {
/** The height of the Autocomplete textbox.
* @Default {null}
*/
- height?: string;
+ height?: string|number;
/** The search text can be highlighted in the AutoComplete suggestion list when enabled.
* @Default {false}
@@ -1951,12 +1957,12 @@ export interface Model {
multiSelectMode?: ej.Autocomplete.MultiSelectMode|string;
/** The height of the suggestion list.
- * @Default {“152px”}
+ * @Default {“152pxâ€}
*/
popupHeight?: string;
/** The width of the suggestion list.
- * @Default {“auto”}
+ * @Default {“autoâ€}
*/
popupWidth?: string;
@@ -2037,67 +2043,55 @@ export interface Model {
/** The width of the Autocomplete textbox.
* @Default {null}
*/
- width?: string;
+ width?: string|number;
/** Triggers when the AJAX requests Begins. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ actionBegin? (e: ActionBeginEventArgs): void;
/** Triggers when the data requested from AJAX will get successfully loaded in the Autocomplete widget. */
- actionSuccess?(e: ActionSuccessEventArgs): void;
+ actionSuccess? (e: ActionSuccessEventArgs): void;
/** Triggers when the AJAX requests complete. The request may get failed or succeed. */
- actionComplete?(e: ActionCompleteEventArgs): void;
+ actionComplete? (e: ActionCompleteEventArgs): void;
/** Triggers when the data requested from AJAX get failed. */
- actionFailure?(e: ActionFailureEventArgs): void;
+ actionFailure? (e: ActionFailureEventArgs): void;
/** Triggers when the text box value is changed. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Triggers after the suggestion popup is closed. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Triggers when Autocomplete widget is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggers after the Autocomplete widget is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Triggers after the autocomplete textbox is focused. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Triggers after the Autocomplete textbox gets out of the focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Triggers after the suggestion list is opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Triggers when an item has been selected from the suggestion list. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface ActionBeginEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionSuccessEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionCompleteEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionFailureEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ChangeEventArgs {
@@ -2281,14 +2275,12 @@ export interface MultiColumnSettingsColumn {
*/
cssClass?: string;
- /** Specifies the search data type. There are four types of data types available such as string, ‘number’, ‘boolean’ and ‘date’.
+ /** Specifies the search data type. There are four types of data types available such as string, ‘number’, ‘boolean’ and ‘date’.
* @Default {ej.Type.String}
*/
type?: ej.Type|string;
- /** Specifies the search filter type. There are several types of search filter available such as ‘startswith’,
- * ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’,
- * ‘greaterthanorequal’, ‘equal’, ‘notequal’.
+ /** Specifies the search filter type. There are several types of search filter available such as ‘startswith’, ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’, ‘greaterthanorequal’, ‘equal’, ‘notequal’.
* @Default {ej.filterType.StartsWith}
*/
filterType?: ej.filterType|string;
@@ -2301,7 +2293,7 @@ export interface MultiColumnSettingsColumn {
/** Gets or sets a value that indicates to align the text within the column. See textAlign
* @Default {ej.TextAlign.Left}
*/
- textAlign?: ej.TextAlign|string;
+ textAlign?: ej.TextAlign|string;
}
export interface MultiColumnSettings {
@@ -2322,10 +2314,10 @@ export interface MultiColumnSettings {
/** Field and Header Text collections can be defined and customized through columns field.
*/
- columns?: MultiColumnSettingsColumn[];
+ columns?: Array;
}
-enum Animation {
+enum Animation{
///Supports to animation type with none type only.
None,
@@ -2338,7 +2330,7 @@ enum Animation {
}
-enum MultiSelectMode {
+enum MultiSelectMode{
///Multiple values are separated using a given special character.
Delimiter,
@@ -2348,7 +2340,7 @@ enum MultiSelectMode {
}
-enum SortOrder {
+enum SortOrder{
///Items to be displayed in the suggestion list in ascending order.
Ascending,
@@ -2361,10 +2353,11 @@ enum SortOrder {
class Button extends ej.Widget {
static fn: Button;
- constructor(element: JQuery | Element, options?: Button.Model);
+ constructor(element: JQuery, options?: Button.Model);
+ constructor(element: Element, options?: Button.Model);
static Locale: any;
- model: Button.Model;
- defaults: Button.Model;
+ model:Button.Model;
+ defaults:Button.Model;
/** destroy the button widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
* @returns {void}
@@ -2381,7 +2374,7 @@ class Button extends ej.Widget {
*/
enable(): void;
}
-export namespace Button {
+export module Button{
export interface Model {
@@ -2414,9 +2407,7 @@ export interface Model {
*/
htmlAttributes?: any;
- /** Specifies the image position of the Button. This image position is applicable
- * only with the textandimage contentType property. The images can be positioned in both
- * imageLeft and imageRight options. See below to know about available ImagePosition
+ /** Specifies the image position of the Button. This image position is applicable only with the textandimage contentType property. The images can be positioned in both imageLeft and imageRight options. See below to know about available ImagePosition
* @Default {ej.ImagePosition.ImageLeft}
*/
imagePosition?: ej.ImagePosition|string;
@@ -2466,17 +2457,14 @@ export interface Model {
*/
width?: string|number;
- /** Fires when Button control is clicked successfully.Consider the scenario to perform any validation,
- * modification of content or any other operations click on button,we can make use of this click event
- * to achieve the scenario.
- */
- click?(e: ClickEventArgs): void;
+ /** Fires when Button control is clicked successfully.Consider the scenario to perform any validation,modification of content or any other operations click on button,we can make use of this click event to achieve the scenario. */
+ click? (e: ClickEventArgs): void;
/** Fires after Button control is created.If the user want to perform any operation after the button control creation then the user can make use of this create event. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the button is destroyed successfully.If the user want to perform any operation after the destroy button control then the user can make use of this destroy event. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
}
export interface ClickEventArgs {
@@ -2497,7 +2485,7 @@ export interface ClickEventArgs {
*/
status?: boolean;
- /** return the event model for sever side processing.
+ /** return the event model for sever side processing.
*/
e?: any;
}
@@ -2532,7 +2520,8 @@ export interface DestroyEventArgs {
type?: string;
}
}
-enum ContentType {
+enum ContentType
+{
//To display the text content only in button
TextOnly,
//To display the image only in button
@@ -2544,7 +2533,8 @@ TextAndImage,
//Supports to display image with both ends of the text
ImageTextImage,
}
-enum ImagePosition {
+enum ImagePosition
+{
//support for aligning text in left and image in right
ImageRight,
//support for aligning text in right and image in left
@@ -2554,22 +2544,24 @@ ImageTop,
//support for aligning text in top and image in bottom
ImageBottom,
}
-enum ButtonSize {
+enum ButtonSize
+{
//Creates button with Built-in default size height, width specified
Normal,
//Creates button with Built-in mini size height, width specified
Mini,
//Creates button with Built-in small size height, width specified
Small,
-//Creates button with Built-in medium size height, width specified
+//Creates button with Built-in medium size height, width specified
Medium,
-//Creates button with Built-in large size height, width specified
+//Creates button with Built-in large size height, width specified
Large,
}
-enum ButtonType {
+enum ButtonType
+{
//Creates button with Built-in button type specified
Button,
-//Creates button with Built-in reset type specified
+//Creates button with Built-in reset type specified
Reset,
//Creates button with Built-in submit type specified
Submit,
@@ -2577,12 +2569,13 @@ Submit,
class Captcha extends ej.Widget {
static fn: Captcha;
- constructor(element: JQuery | Element, options?: Captcha.Model);
+ constructor(element: JQuery, options?: Captcha.Model);
+ constructor(element: Element, options?: Captcha.Model);
static Locale: any;
- model: Captcha.Model;
- defaults: Captcha.Model;
+ model:Captcha.Model;
+ defaults:Captcha.Model;
}
-export namespace Captcha {
+export module Captcha{
export interface Model {
@@ -2655,16 +2648,16 @@ export interface Model {
width?: number;
/** Fires when captcha refresh begins. */
- refreshBegin?(e: RefreshBeginEventArgs): void;
+ refreshBegin? (e: RefreshBeginEventArgs): void;
/** Fires after captcha refresh completed. */
- refreshComplete?(e: RefreshCompleteEventArgs): void;
+ refreshComplete? (e: RefreshCompleteEventArgs): void;
/** Fires when captcha refresh fails to load. */
- refreshFailure?(e: RefreshFailureEventArgs): void;
+ refreshFailure? (e: RefreshFailureEventArgs): void;
/** Fires after captcha refresh succeeded. */
- refreshSuccess?(e: RefreshSuccessEventArgs): void;
+ refreshSuccess? (e: RefreshSuccessEventArgs): void;
}
export interface RefreshBeginEventArgs {
@@ -2727,7 +2720,8 @@ export interface RefreshSuccessEventArgs {
type?: string;
}
}
-enum HatchStyle {
+enum HatchStyle
+{
//Set background as None to Captcha
None,
//Set background as BackwardDiagonal to Captcha
@@ -2806,14 +2800,14 @@ ZigZag,
class ListBox extends ej.Widget {
static fn: ListBox;
- constructor(element: JQuery | Element, options?: ListBox.Model);
+ constructor(element: JQuery, options?: ListBox.Model);
+ constructor(element: Element, options?: ListBox.Model);
static Locale: any;
- model: ListBox.Model;
- defaults: ListBox.Model;
+ model:ListBox.Model;
+ defaults:ListBox.Model;
/** Adds a given list items in the ListBox widget at a specified index. It accepts two parameters.
- * @param {any|string} This can be a list item object (for JSON binding) or a string (for UL and LI rendering).
- * Also we can the specify this as an array of list item object or an array of strings to add multiple items.
+ * @param {any|string} This can be a list item object (for JSON binding) or a string (for UL and LI rendering). Also we can the specify this as an array of list item object or an array of strings to add multiple items.
* @param {number} The index value to add the given items at the specified index. If index is not specified, the given items will be added at the end of the list.
* @returns {void}
*/
@@ -2892,29 +2886,29 @@ class ListBox extends ej.Widget {
*/
getSelectedItems(): any;
- /** Returns an item’s index based on the given text.
+ /** Returns an item’s index based on the given text.
* @param {string} The list item text (label)
* @returns {number}
*/
getIndexByText(text: string): number;
- /** Returns an item’s index based on the value given.
- * @param {string} The list item’s value
+ /** Returns an item’s index based on the value given.
+ * @param {string} The list item’s value
* @returns {number}
*/
getIndexByValue(indices: string): number;
- /** Returns an item’s text (label) based on the index given.
+ /** Returns an item’s text (label) based on the index given.
* @returns {string}
*/
getTextByIndex(): string;
- /** Returns a list item’s object using its index.
+ /** Returns a list item’s object using its index.
* @returns {any}
*/
getItemByIndex(): any;
- /** Returns a list item’s object based on the text given.
+ /** Returns a list item’s object based on the text given.
* @param {string} The list item text.
* @returns {any}
*/
@@ -2924,7 +2918,7 @@ class ListBox extends ej.Widget {
* @param {Array} Data to merge in listbox.
* @returns {void}
*/
- mergeData(data: any[]): void;
+ mergeData(data: Array): void;
/** Selects the next item based on the current selection.
* @returns {void}
@@ -2953,7 +2947,7 @@ class ListBox extends ej.Widget {
removeSelectedItems(): void;
/** Removes a list item by using its text.
- * @param {string} Text of the listbox item to be removed.
+ * @param {string} Text of the listbox item to be removed.
* @returns {void}
*/
removeItemByText(text: string): void;
@@ -2964,7 +2958,7 @@ class ListBox extends ej.Widget {
*/
removeItemByIndex(index: number): void;
- /**
+ /**
* @returns {void}
*/
selectAll(): void;
@@ -3010,7 +3004,7 @@ class ListBox extends ej.Widget {
*/
uncheckItemsByIndices(indices: number[]|string): void;
- /**
+ /**
* @returns {void}
*/
unselectAll(): void;
@@ -3060,13 +3054,13 @@ class ListBox extends ej.Widget {
* @param {Array} Values of the listbox items to be shown.
* @returns {void}
*/
- showItemsByValues(values: any[]): void;
+ showItemsByValues(values: Array): void;
/** Hides the list item using its values.
* @param {Array} Values of the listbox items to be hidden.
* @returns {void}
*/
- hideItemsByValues(values: any[]): void;
+ hideItemsByValues(values: Array): void;
/** Shows a hidden list item using its value.
* @param {string} Value of the listbox item to be shown.
@@ -3092,7 +3086,7 @@ class ListBox extends ej.Widget {
*/
hideItemByIndex(index: number): void;
- /**
+ /**
* @returns {void}
*/
show(): void;
@@ -3112,7 +3106,7 @@ class ListBox extends ej.Widget {
*/
showAllItems(): void;
}
-export namespace ListBox {
+export module ListBox{
export interface Model {
@@ -3131,7 +3125,7 @@ export interface Model {
*/
allowMultiSelection?: boolean;
- /** Loads the list data on demand via scrolling behavior to improve the application’s performance. There are two ways to load data which can be defined using “virtualScrollMode” property.
+ /** Loads the list data on demand via scrolling behavior to improve the application’s performance. There are two ways to load data which can be defined using “virtualScrollMode†property.
* @Default {false}
*/
allowVirtualScrolling?: boolean;
@@ -3141,9 +3135,7 @@ export interface Model {
*/
caseSensitiveSearch?: boolean;
- /** Dynamically populate data of a list box while selecting an item in another list box i.e.
- * rendering child list box based on the item selection in parent list box.
- * This property accepts the id of the child ListBox widget to populate the data.
+ /** Dynamically populate data of a list box while selecting an item in another list box i.e. rendering child list box based on the item selection in parent list box. This property accepts the id of the child ListBox widget to populate the data.
* @Default {null}
*/
cascadeTo?: string;
@@ -3151,10 +3143,10 @@ export interface Model {
/** Set of list items to be checked by default using its index. It works only when the showCheckbox property is set to true.
* @Default {null}
*/
- checkedIndices?: any[];
+ checkedIndices?: Array;
/** The root class for the ListBox widget to customize the existing theme.
- * @Default {“”}
+ * @Default {“â€}
*/
cssClass?: string;
@@ -3178,7 +3170,7 @@ export interface Model {
*/
enablePersistence?: boolean;
- /** Displays the ListBox widget’s content from right to left when enabled.
+ /** Displays the ListBox widget’s content from right to left when enabled.
* @Default {false}
*/
enableRTL?: boolean;
@@ -3235,7 +3227,7 @@ export interface Model {
/** The list items to be selected by default using its indices. To use this property allowMultiSelection should be enabled.
* @Default {[]}
*/
- selectedIndices?: any[];
+ selectedIndices?: Array;
/** Enables/Disables the multi selection option with the help of checkbox control.
* @Default {false}
@@ -3253,7 +3245,7 @@ export interface Model {
template?: string;
/** Holds the selected items values and used to bind value to the list item using AngularJS and KnockoutJS.
- * @Default {“”}
+ * @Default {“â€}
*/
value?: number;
@@ -3271,79 +3263,67 @@ export interface Model {
targetID?: string;
/** Triggers before the AJAX request begins to load data in the ListBox widget. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ actionBegin? (e: ActionBeginEventArgs): void;
/** Triggers after the data requested via AJAX is successfully loaded in the ListBox widget. */
- actionSuccess?(e: ActionSuccessEventArgs): void;
+ actionSuccess? (e: ActionSuccessEventArgs): void;
/** Triggers when the AJAX requests complete. The request may get failed or succeed. */
- actionComplete?(e: ActionCompleteEventArgs): void;
+ actionComplete? (e: ActionCompleteEventArgs): void;
/** Triggers when the data requested from AJAX get failed. */
- actionFailure?(e: ActionFailureEventArgs): void;
+ actionFailure? (e: ActionFailureEventArgs): void;
/** Event will be triggered before the requested data via AJAX once loaded in successfully. */
- actionBeforeSuccess?(e: ActionBeforeSuccessEventArgs): void;
+ actionBeforeSuccess? (e: ActionBeforeSuccessEventArgs): void;
/** Triggers when the item selection is changed. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Triggers when the list item is checked or unchecked. */
- checkChange?(e: CheckChangeEventArgs): void;
+ checkChange? (e: CheckChangeEventArgs): void;
/** Triggers when the ListBox widget is created successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggers when the ListBox widget is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Triggers when focus the listbox items. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Triggers when focus out from listbox items. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Triggers when the list item is being dragged. */
- itemDrag?(e: ItemDragEventArgs): void;
+ itemDrag? (e: ItemDragEventArgs): void;
/** Triggers when the list item is ready to be dragged. */
- itemDragStart?(e: ItemDragStartEventArgs): void;
+ itemDragStart? (e: ItemDragStartEventArgs): void;
/** Triggers when the list item stops dragging. */
- itemDragStop?(e: ItemDragStopEventArgs): void;
+ itemDragStop? (e: ItemDragStopEventArgs): void;
/** Triggers when the list item is dropped. */
- itemDrop?(e: ItemDropEventArgs): void;
+ itemDrop? (e: ItemDropEventArgs): void;
/** Triggers when a list item gets selected. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
/** Triggers when a list item gets unselected. */
- unselect?(e: UnselectEventArgs): void;
+ unselect? (e: UnselectEventArgs): void;
}
export interface ActionBeginEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionSuccessEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionCompleteEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionFailureEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
export interface ActionBeforeSuccessEventArgs {
@@ -3370,7 +3350,7 @@ export interface ActionBeforeSuccessEventArgs {
/** List of array object
*/
- result?: any[];
+ result?: Array;
/** ExecuteQuery object of DataManager
*/
@@ -3395,7 +3375,7 @@ export interface ChangeEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3415,11 +3395,11 @@ export interface ChangeEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3442,7 +3422,7 @@ export interface CheckChangeEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3462,11 +3442,11 @@ export interface CheckChangeEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3549,7 +3529,7 @@ export interface ItemDragEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3565,11 +3545,11 @@ export interface ItemDragEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3592,7 +3572,7 @@ export interface ItemDragStartEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3608,11 +3588,11 @@ export interface ItemDragStartEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3635,7 +3615,7 @@ export interface ItemDragStopEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3651,11 +3631,11 @@ export interface ItemDragStopEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3678,7 +3658,7 @@ export interface ItemDropEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3694,11 +3674,11 @@ export interface ItemDropEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3721,7 +3701,7 @@ export interface SelectEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3741,11 +3721,11 @@ export interface SelectEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3768,7 +3748,7 @@ export interface UnselectEventArgs {
*/
data?: any;
- /** List item’s index.
+ /** List item’s index.
*/
index?: number;
@@ -3788,11 +3768,11 @@ export interface UnselectEventArgs {
*/
isEnabled?: boolean;
- /** List item’s text (label).
+ /** List item’s text (label).
*/
text?: string;
- /** List item’s value.
+ /** List item’s value.
*/
value?: string;
}
@@ -3847,10 +3827,11 @@ export interface Fields {
class Calculate {
static fn: Calculate;
- constructor(element: JQuery | Element, options?: Calculate.Model);
+ constructor(element: JQuery, options?: Calculate.Model);
+ constructor(element: Element, options?: Calculate.Model);
static Locale: any;
- model: Calculate.Model;
- defaults: Calculate.Model;
+ model:Calculate.Model;
+ defaults:Calculate.Model;
/** Add the custom formulas with function in CalcEngine library
* @param {string} pass the formula name
@@ -3901,21 +3882,19 @@ class Calculate {
*/
computeFormula(Formula: string): string;
}
-export namespace Calculate {
+export module Calculate{
export interface Model {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
}
class CheckBox extends ej.Widget {
static fn: CheckBox;
- constructor(element: JQuery | Element, options?: CheckBox.Model);
+ constructor(element: JQuery, options?: CheckBox.Model);
+ constructor(element: Element, options?: CheckBox.Model);
static Locale: any;
- model: CheckBox.Model;
- defaults: CheckBox.Model;
+ model:CheckBox.Model;
+ defaults:CheckBox.Model;
/** Destroy the CheckBox widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
* @returns {void}
@@ -3937,15 +3916,11 @@ class CheckBox extends ej.Widget {
*/
isChecked(): boolean;
}
-export namespace CheckBox {
+export module CheckBox{
export interface Model {
- /** Specifies whether CheckBox has to be in checked or not.
- * We can also specify array of string as value for this property.
- * If any of the value in the specified array matches the value of the textbox,
- * then it will be considered as checked. It will be useful in MVVM binding,
- * specify array type to identify the values of the checked CheckBoxes.
+ /** Specifies whether CheckBox has to be in checked or not. We can also specify array of string as value for this property. If any of the value in the specified array matches the value of the textbox, then it will be considered as checked. It will be useful in MVVM binding, specify array type to identify the values of the checked CheckBoxes.
* @Default {false}
*/
checked?: boolean|string[];
@@ -3964,9 +3939,7 @@ export interface Model {
*/
enabled?: boolean;
- /** Specifies the persist property for CheckBox while initialization.
- * The persist API save current model value to browser cookies for state maintains.
- * While refreshing the CheckBox control page the model value apply from browser cookies.
+ /** Specifies the persist property for CheckBox while initialization. The persist API save current model value to browser cookies for state maintains. While refreshing the CheckBox control page the model value apply from browser cookies.
* @Default {false}
*/
enablePersistence?: boolean;
@@ -4031,16 +4004,16 @@ export interface Model {
value?: string;
/** Fires before the CheckBox is going to changed its state successfully */
- beforeChange?(e: BeforeChangeEventArgs): void;
+ beforeChange? (e: BeforeChangeEventArgs): void;
/** Fires when the CheckBox state is changed successfully */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when the CheckBox state is created successfully */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the CheckBox state is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
}
export interface BeforeChangeEventArgs {
@@ -4123,7 +4096,8 @@ export interface DestroyEventArgs {
type?: string;
}
}
-enum CheckState {
+enum CheckState
+{
//string
Uncheck,
//string
@@ -4131,7 +4105,8 @@ Check,
//string
Indeterminate,
}
-enum CheckboxSize {
+enum CheckboxSize
+{
//Displays the CheckBox in medium size
Medium,
//Displays the CheckBox in small size
@@ -4140,10 +4115,11 @@ Small,
class ColorPicker extends ej.Widget {
static fn: ColorPicker;
- constructor(element: JQuery | Element, options?: ColorPicker.Model);
+ constructor(element: JQuery, options?: ColorPicker.Model);
+ constructor(element: Element, options?: ColorPicker.Model);
static Locale: any;
- model: ColorPicker.Model;
- defaults: ColorPicker.Model;
+ model:ColorPicker.Model;
+ defaults:ColorPicker.Model;
/** Disables the color picker control
* @returns {void}
@@ -4199,7 +4175,7 @@ class ColorPicker extends ej.Widget {
*/
show(): void;
}
-export namespace ColorPicker {
+export module ColorPicker{
export interface Model {
@@ -4225,7 +4201,7 @@ export interface Model {
/** This property allows to define the custom colors in the palette model.Custom palettes are created by passing a comma delimited string of HEX values or an array of colors.
* @Default {empty}
*/
- custom?: any[];
+ custom?: Array;
/** This property allows to embed the popup in the order of DOM element flow . When we set the value as true, the color picker popup is always in visible state.
* @Default {false}
@@ -4267,8 +4243,7 @@ export interface Model {
*/
palette?: ej.ColorPicker.Palette|string;
- /** This property allows to define the preset model to be rendered initially in palette type.It consists of 12 different types of presets. Each presets have 50 colors.
- * See below available Presets
+ /** This property allows to define the preset model to be rendered initially in palette type.It consists of 12 different types of presets. Each presets have 50 colors. See below available Presets
* @Default {ej.ColorPicker.Presets.Basic}
*/
presetType?: ej.ColorPicker.Presets|string;
@@ -4288,8 +4263,7 @@ export interface Model {
*/
showPreview?: boolean;
- /** This property allows to store the color values in custom list.The ColorPicker will keep up to 11 colors in a custom list.
- * By clicking the add button, the selected color from picker or palette will get added in the recent color list.
+ /** This property allows to store the color values in custom list.The ColorPicker will keep up to 11 colors in a custom list.By clicking the add button, the selected color from picker or palette will get added in the recent color list.
* @Default {false}
*/
showRecentColors?: boolean;
@@ -4310,9 +4284,7 @@ export interface Model {
toolIcon?: string;
/** This property allows to define the customized text or content to displayed when mouse over the following elements. This property also allows to use the culture values.
- * @Default {{ switcher: Switcher, addbutton: Add Color, basic: Basic, monochrome: Mono Chrome, flatcolors: Flat Color, seawolf: Sea Wolf, webcolors: Web Colors,
- * sandy: Sandy, pinkshades: Pink Shades, misty: Misty, citrus: Citrus, vintage: Vintage, moonlight: Moon Light, candycrush: Candy Crush,
- * currentcolor: Current Color, selectedcolor: Selected Color }}
+ * @Default {{ switcher: Switcher, addbutton: Add Color, basic: Basic, monochrome: Mono Chrome, flatcolors: Flat Color, seawolf: Sea Wolf, webcolors: Web Colors, sandy: Sandy, pinkshades: Pink Shades, misty: Misty, citrus: Citrus, vintage: Vintage, moonlight: Moon Light, candycrush: Candy Crush, currentcolor: Current Color, selectedcolor: Selected Color }}
*/
tooltipText?: TooltipText;
@@ -4322,22 +4294,22 @@ export interface Model {
value?: string;
/** Fires after Color value has been changed successfully.If the user want to perform any operation after the color value changed then the user can make use of this change event. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires after closing the color picker popup. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires after Color picker control is created. If the user want to perform any operation after the color picker control creation then the user can make use of this create event. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires after Color picker control is destroyed. If the user want to perform any operation after the color picker control destroyed then the user can make use of this destroy event. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires after opening the color picker popup */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Fires after Color value has been selected successfully. If the user want to perform any operation after the color value selected then the user can make use of this select event. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface ChangeEventArgs {
@@ -4520,7 +4492,7 @@ export interface TooltipText {
selectedcolor?: string;
}
-enum ModelType {
+enum ModelType{
///support palette type mode in color picker.
Palette,
@@ -4530,7 +4502,7 @@ enum ModelType {
}
-enum Palette {
+enum Palette{
///used to show the basic palette
BasicPalette,
@@ -4540,7 +4512,7 @@ enum Palette {
}
-enum Presets {
+enum Presets{
///used to show the basic presets
Basic,
@@ -4577,8 +4549,9 @@ enum Presets {
}
}
-enum ButtonMode {
-//Displays the button in split mode
+enum ButtonMode
+{
+//Displays the button in split mode
Split,
//Displays the button in Dropdown mode
Dropdown,
@@ -4586,10 +4559,11 @@ Dropdown,
class FileExplorer extends ej.Widget {
static fn: FileExplorer;
- constructor(element: JQuery | Element, options?: FileExplorer.Model);
+ constructor(element: JQuery, options?: FileExplorer.Model);
+ constructor(element: Element, options?: FileExplorer.Model);
static Locale: any;
- model: FileExplorer.Model;
- defaults: FileExplorer.Model;
+ model:FileExplorer.Model;
+ defaults:FileExplorer.Model;
/** Refresh the size of FileExplorer control.
* @returns {void}
@@ -4597,25 +4571,25 @@ class FileExplorer extends ej.Widget {
adjustSize(): void;
/** Disable the particular context menu item.
- * @param {string|HTMLElement} Id of the menu item/ Menu element to be disabled
+ * @param {string|HTMLElement} Id of the menu item/ Menu element to be disabled
* @returns {void}
*/
disableMenuItem(item: string|HTMLElement): void;
/** Disable the particular toolbar item.
- * @param {string|HTMLElement} Id of the toolbar item/ Tool item element to be disabled
+ * @param {string|HTMLElement} Id of the toolbar item/ Tool item element to be disabled
* @returns {void}
*/
disableToolbarItem(item: string|HTMLElement): void;
/** Enable the particular context menu item.
- * @param {string|HTMLElement} Id of the menu item/ Menu element to be Enabled
+ * @param {string|HTMLElement} Id of the menu item/ Menu element to be Enabled
* @returns {void}
*/
enableMenuItem(item: string|HTMLElement): void;
/** Enable the particular toolbar item
- * @param {string|HTMLElement} Id of the tool item/ Tool item element to be Enabled
+ * @param {string|HTMLElement} Id of the tool item/ Tool item element to be Enabled
* @returns {void}
*/
enableToolbarItem(item: string|HTMLElement): void;
@@ -4626,12 +4600,12 @@ class FileExplorer extends ej.Widget {
refresh(): void;
/** Remove the particular toolbar item.
- * @param {string|HTMLElement} Id of the tool item/ tool item element to be removed
+ * @param {string|HTMLElement} Id of the tool item/ tool item element to be removed
* @returns {void}
*/
removeToolbarItem(item: string|HTMLElement): void;
}
-export namespace FileExplorer {
+export module FileExplorer{
export interface Model {
@@ -4644,14 +4618,12 @@ export interface Model {
*/
ajaxDataType?: string;
- /** By using ajaxSettings property, you can customize the AJAX configurations. Normally you can customize the following option in AJAX handling data, URL, type, async, contentType, dataType and
- * success. For upload, download and getImage API, you can only customize URL.
+ /** By using ajaxSettings property, you can customize the AJAX configurations. Normally you can customize the following option in AJAX handling data, URL, type, async, contentType, dataType and success. For upload, download and getImage API, you can only customize URL.
* @Default {{ read: {}, createFolder: {}, remove: {}, rename: {}, paste: {}, getDetails: {}, download: {}, upload: {}, getImage: {}, search: {}}}
*/
ajaxSettings?: any;
- /** The FileExplorer allows to move the files from one folder to another folder of FileExplorer by using drag and drop option. Also it supports to upload a file by dragging it
- * from windows explorer to the necessary folder of ejFileExplorer.
+ /** The FileExplorer allows to move the files from one folder to another folder of FileExplorer by using drag and drop option. Also it supports to upload a file by dragging it from windows explorer to the necessary folder of ejFileExplorer.
* @Default {true}
*/
allowDragAndDrop?: boolean;
@@ -4670,8 +4642,7 @@ export interface Model {
*/
contextMenuSettings?: ContextMenuSettings;
- /** Sets the root class for FileExplorer theme. This cssClass API allows to use custom skinning option for File Explorer control.
- * By defining the root class by using this API, you have to include this root class in CSS.
+ /** Sets the root class for FileExplorer theme. This cssClass API allows to use custom skinning option for File Explorer control. By defining the root class by using this API, you have to include this root class in CSS.
*/
cssClass?: string;
@@ -4758,7 +4729,7 @@ export interface Model {
/** The selectedItems is used to select the specified items (file, folder) of FileExplorer control.
*/
- selectedItems?: string|any[];
+ selectedItems?: string|Array;
/** Enables or disables the checkbox option in FileExplorer control.
* @Default {true}
@@ -4770,8 +4741,7 @@ export interface Model {
*/
showContextMenu?: boolean;
- /** Enables or disables the footer in FileExplorer control. The footer element displays the details of the current selected files and folders.
- * And also the footer having the switcher to change the layout view.
+ /** Enables or disables the footer in FileExplorer control. The footer element displays the details of the current selected files and folders. And also the footer having the switcher to change the layout view.
* @Default {true}
*/
showFooter?: boolean;
@@ -4791,22 +4761,20 @@ export interface Model {
*/
showToolbar?: boolean;
- /** Enables or disables the navigation pane in FileExplorer control. The navigation pane contains a tree view element that displays all the folders from the filesystem in a hierarchical manner.
- * This is useful to a quick navigation of any folder in the filesystem.
+ /** Enables or disables the navigation pane in FileExplorer control. The navigation pane contains a tree view element that displays all the folders from the filesystem in a hierarchical manner. This is useful to a quick navigation of any folder in the filesystem.
* @Default {true}
*/
showNavigationPane?: boolean;
/** The tools property is used to configure and group required toolbar items in FileExplorer control.
- * @Default {{ creation: [NewFolder], navigation: [Back, Forward, Upward], addressBar: [Addressbar], editing: [Refresh, Upload, Delete, Rename, Download], copyPaste: [Cut, Copy, Paste],
- * getProperties: [Details], searchBar: [Searchbar], layout: [Layout], sortBy: [SortBy]}}
+ * @Default {{ creation: [NewFolder], navigation: [Back, Forward, Upward], addressBar: [Addressbar], editing: [Refresh, Upload, Delete, Rename, Download], copyPaste: [Cut, Copy, Paste], getProperties: [Details], searchBar: [Searchbar], layout: [Layout], sortBy: [SortBy]}}
*/
tools?: any;
/** The toolsList property is used to arrange the toolbar items in the FileExplorer control.
* @Default {[layout, creation, navigation, addressBar, editing, copyPaste, sortBy, getProperties, searchBar]}
*/
- toolsList?: any[];
+ toolsList?: Array;
/** Gets or sets an object that indicates whether to customize the upload behavior in the FileExplorer.
*/
@@ -4818,93 +4786,91 @@ export interface Model {
width?: string|number;
/** Fires before the AJAX request is performed. */
- beforeAjaxRequest?(e: BeforeAjaxRequestEventArgs): void;
+ beforeAjaxRequest? (e: BeforeAjaxRequestEventArgs): void;
/** Fires before downloading the files. */
- beforeDownload?(e: BeforeDownloadEventArgs): void;
+ beforeDownload? (e: BeforeDownloadEventArgs): void;
- /** Fires before getting a requested image from server. Also this event will be triggered when you have enabled thumbnail image compression option in FileExplorer.
- * Using this event, you can customize the image compression size.
- */
- beforeGetImage?(e: BeforeGetImageEventArgs): void;
+ /** Fires before getting a requested image from server. Also this event will be triggered when you have enabled thumbnail image compression option in FileExplorer.Using this event, you can customize the image compression size. */
+ beforeGetImage? (e: BeforeGetImageEventArgs): void;
/** Fires before files or folders open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires before uploading the files. */
- beforeUpload?(e: BeforeUploadEventArgs): void;
+ beforeUpload? (e: BeforeUploadEventArgs): void;
/** Fires when FileExplorer control was created */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when file or folder is copied successfully. */
- copy?(e: CopyEventArgs): void;
+ copy? (e: CopyEventArgs): void;
/** Fires when new folder is created successfully in file system. */
- createFolder?(e: CreateFolderEventArgs): void;
+ createFolder? (e: CreateFolderEventArgs): void;
/** Fires when file or folder is cut successfully. */
- cut?(e: CutEventArgs): void;
+ cut? (e: CutEventArgs): void;
/** Fires when the FileExplorer is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when the files or directory has been started to drag over on the FileExplorer */
- dragStart?(e: DragStartEventArgs): void;
+ dragStart? (e: DragStartEventArgs): void;
/** Fires when the files or directory is dragging over on the FileExplorer. */
- drag?(e: DragEventArgs): void;
+ drag? (e: DragEventArgs): void;
/** Fires when the files or directory has been stopped to drag over on FileExplorer */
- dragStop?(e: DragStopEventArgs): void;
+ dragStop? (e: DragStopEventArgs): void;
/** Fires when the files or directory is dropped to the target folder of FileExplorer */
- drop?(e: DropEventArgs): void;
+ drop? (e: DropEventArgs): void;
/** Fires after loading the requested image from server. Using this event, you can get the details of loaded image. */
- getImage?(e: GetImageEventArgs): void;
+ getImage? (e: GetImageEventArgs): void;
/** Fires when keydown in FileExplorer control. */
- keydown?(e: KeydownEventArgs): void;
+ keydown? (e: KeydownEventArgs): void;
/** Fires when the file view type is changed. */
- layoutChange?(e: LayoutChangeEventArgs): void;
+ layoutChange? (e: LayoutChangeEventArgs): void;
/** Fires when before the ContextMenu opening. */
- menuBeforeOpen?(e: MenuBeforeOpenEventArgs): void;
+ menuBeforeOpen? (e: MenuBeforeOpenEventArgs): void;
/** Fires when click the ContextMenu item. */
- menuClick?(e: MenuClickEventArgs): void;
+ menuClick? (e: MenuClickEventArgs): void;
/** Fires when ContextMenu is successfully opened. */
- menuOpen?(e: MenuOpenEventArgs): void;
+ menuOpen? (e: MenuOpenEventArgs): void;
/** Fires when files are successfully opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Fires when a file or folder is pasted successfully. */
- paste?(e: PasteEventArgs): void;
+ paste? (e: PasteEventArgs): void;
/** Fires when file or folder is deleted successfully. */
- remove?(e: RemoveEventArgs): void;
+ remove? (e: RemoveEventArgs): void;
/** Fires when resizing is performed for FileExplorer. */
- resize?(e: ResizeEventArgs): void;
+ resize? (e: ResizeEventArgs): void;
/** Fires when resizing is started for FileExplorer. */
- resizeStart?(e: ResizeStartEventArgs): void;
+ resizeStart? (e: ResizeStartEventArgs): void;
/** Fires this event when the resizing is stopped for FileExplorer. */
- resizeStop?(e: ResizeStopEventArgs): void;
+ resizeStop? (e: ResizeStopEventArgs): void;
/** Fires when the items from grid view or tile view of FileExplorer control is selected. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
/** Triggered when refresh the template column elements in the grid view of FileExplorer control. */
- templateRefresh?(e: TemplateRefreshEventArgs): void;
+ templateRefresh? (e: TemplateRefreshEventArgs): void;
/** Fires when the items from grid view or tile view or large icons view of FileExplorer control is unselected. */
- unselect?(e: UnselectEventArgs): void;
+ unselect? (e: UnselectEventArgs): void;
}
export interface BeforeAjaxRequestEventArgs {
@@ -5366,7 +5332,7 @@ export interface MenuBeforeOpenEventArgs {
/** returns the dataSource of ContextMenu.
*/
- dataSource?: any[];
+ dataSource?: Array;
/** returns the element of ContextMenu.
*/
@@ -5695,21 +5661,20 @@ export interface UnselectEventArgs {
/** Returns the unselected items details.
*/
- unselectedItems?: any[];
+ unselectedItems?: Array;
}
export interface ContextMenuSettings {
/** The items property is used to configure and group the required ContextMenu items in FileExplorer control.
- * @Default {{% highlight javascript %}{navbar: [NewFolder, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, Getinfo],cwd: [Refresh, Paste,|, SortBy, |, NewFolder, Upload, |,
- * Getinfo],files: [Open, Download, |, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, OpenFolderLocation, Getinfo]}{% endhighlight %}}
+ * @Default {{% highlight javascript %}{navbar: [NewFolder, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, Getinfo],cwd: [Refresh, Paste,|, SortBy, |, NewFolder, Upload, |, Getinfo],files: [Open, Download, |, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, OpenFolderLocation, Getinfo]}{% endhighlight %}}
*/
items?: any;
/** The customMenuFields property is used to define custom functionality for custom ContextMenu item's which are defined in items property.
* @Default {[]}
*/
- customMenuFields?: any[];
+ customMenuFields?: Array;
}
export interface FilterSettings {
@@ -5743,10 +5708,9 @@ export interface GridSettings {
allowSorting?: boolean;
/** Gets or sets an object that indicates to render the grid with specified columns. You can use this property same as the column property in Grid control.
- * @Default {[{ field: name, headerText: Name, width: 30% }, { field: dateModified, headerText: Date Modified, width: 30% }, { field: type, headerText: Type, width: 15% },
- * { field: size, headerText: Size, width: 12%, textAlign: right, headerTextAlign: left }]}
+ * @Default {[{ field: name, headerText: Name, width: 30% }, { field: dateModified, headerText: Date Modified, width: 30% }, { field: type, headerText: Type, width: 15% }, { field: size, headerText: Size, width: 12%, textAlign: right, headerTextAlign: left }]}
*/
- columns?: any[];
+ columns?: Array;
}
export interface UploadSettings {
@@ -5767,12 +5731,12 @@ export interface UploadSettings {
autoUpload?: boolean;
}
-enum layoutType {
+enum layoutType{
///Supports to display files in tile view
Tile,
- ///Supports to display files in grid view
+ ///Supports to display files in grid view
Grid,
///Supports to display files as large icons
@@ -5783,10 +5747,11 @@ enum layoutType {
class DatePicker extends ej.Widget {
static fn: DatePicker;
- constructor(element: JQuery | Element, options?: DatePicker.Model);
+ constructor(element: JQuery, options?: DatePicker.Model);
+ constructor(element: Element, options?: DatePicker.Model);
static Locale: any;
- model: DatePicker.Model;
- defaults: DatePicker.Model;
+ model:DatePicker.Model;
+ defaults:DatePicker.Model;
/** Disables the DatePicker control.
* @returns {void}
@@ -5813,7 +5778,7 @@ class DatePicker extends ej.Widget {
*/
show(): void;
}
-export namespace DatePicker {
+export module DatePicker{
export interface Model {
@@ -5851,8 +5816,7 @@ export interface Model {
*/
dayHeaderFormat?: string | ej.DatePicker.Header;
- /** Specifies the navigation depth level in DatePicker calendar. This option is not applied when start level view option is lower than depth level view.
- * See below to know available levels in DatePicker Calendar
+ /** Specifies the navigation depth level in DatePicker calendar. This option is not applied when start level view option is lower than depth level view. See below to know available levels in DatePicker Calendar
*/
depthLevel?: string | ej.DatePicker.Level;
@@ -5881,8 +5845,7 @@ export interface Model {
*/
enableRTL?: boolean;
- /** Allows to enter valid or invalid date in input textbox and indicate as error if it is invalid value, when this API value is set to true. For false value, invalid date is not allowed
- * to input field and corrected to valid date automatically, even if invalid date is given.
+ /** Allows to enter valid or invalid date in input textbox and indicate as error if it is invalid value, when this API value is set to true. For false value, invalid date is not allowed to input field and corrected to valid date automatically, even if invalid date is given.
* @Default {false}
*/
enableStrictMode?: boolean;
@@ -6018,40 +5981,40 @@ export interface Model {
width?: string;
/** Fires before closing the DatePicker popup. */
- beforeClose?(e: BeforeCloseEventArgs): void;
+ beforeClose? (e: BeforeCloseEventArgs): void;
/** Fires when each date is created in the DatePicker popup calendar. */
- beforeDateCreate?(e: BeforeDateCreateEventArgs): void;
+ beforeDateCreate? (e: BeforeDateCreateEventArgs): void;
/** Fires before opening the DatePicker popup. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires when the DatePicker input value is changed. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when DatePicker popup is closed. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires when the DatePicker is created successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the DatePicker is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when DatePicker input gets focus. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Fires when DatePicker input loses the focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Fires when calender view navigates to month/year/decade/century. */
- navigate?(e: NavigateEventArgs): void;
+ navigate? (e: NavigateEventArgs): void;
/** Fires when DatePicker popup is opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Fires when a date is selected from the DatePicker popup. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface BeforeCloseEventArgs {
@@ -6357,7 +6320,7 @@ export interface Fields {
cssClass?: string;
}
-enum Header {
+enum Header{
///Removes day header in DatePicker
None,
@@ -6370,7 +6333,7 @@ enum Header {
}
-enum Level {
+enum Level{
///allow navigation upto year level in DatePicker
Year,
@@ -6383,12 +6346,12 @@ enum Level {
}
-enum HighlightSection {
+enum HighlightSection{
- ///Highlight the week of the currently selected date in DatePicker popup calendar
+ ///Highlight the week of the currently selected date in DatePicker popup calendar
Week,
- ///Highlight the workdays in a currently selected date's week in DatePicker popup calendar
+ ///Highlight the workdays in a currently selected date's week in DatePicker popup calendar
WorkDays,
///Nothing will be highlighted, remove highlights from DatePicker popup calendar if already exists
@@ -6399,10 +6362,11 @@ enum HighlightSection {
class DateTimePicker extends ej.Widget {
static fn: DateTimePicker;
- constructor(element: JQuery | Element, options?: DateTimePicker.Model);
+ constructor(element: JQuery, options?: DateTimePicker.Model);
+ constructor(element: Element, options?: DateTimePicker.Model);
static Locale: any;
- model: DateTimePicker.Model;
- defaults: DateTimePicker.Model;
+ model:DateTimePicker.Model;
+ defaults:DateTimePicker.Model;
/** Disables the DateTimePicker control.
* @returns {void}
@@ -6434,7 +6398,7 @@ class DateTimePicker extends ej.Widget {
*/
show(): void;
}
-export namespace DateTimePicker {
+export module DateTimePicker{
export interface Model {
@@ -6462,8 +6426,7 @@ export interface Model {
*/
dayHeaderFormat?: ej.DatePicker.Header|string;
- /** Specifies the navigation depth level in DatePicker calendar inside DateTimePicker popup. This option is not applied
- * when start level view option is lower than depth level view. See ej.DatePicker.Level
+ /** Specifies the navigation depth level in DatePicker calendar inside DateTimePicker popup. This option is not applied when start level view option is lower than depth level view. See ej.DatePicker.Level
*/
depthLevel?: ej.DatePicker.Level|string;
@@ -6532,7 +6495,7 @@ export interface Model {
*/
popupPosition?: string | ej.popupPosition;
- /** Indicates that the DateTimePicker value can only be read and can’t change.
+ /** Indicates that the DateTimePicker value can only be read and can’t change.
* @Default {false}
*/
readOnly?: boolean;
@@ -6607,31 +6570,31 @@ export interface Model {
width?: string|number;
/** Fires before the datetime popup closed in the DateTimePicker. */
- beforeClose?(e: BeforeCloseEventArgs): void;
+ beforeClose? (e: BeforeCloseEventArgs): void;
/** Fires before the datetime popup open in the DateTimePicker. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires when the datetime value changed in the DateTimePicker textbox. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when DateTimePicker popup closes. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires after DateTimePicker control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the DateTimePicker is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when the focus-in happens in the DateTimePicker textbox. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Fires when the focus-out happens in the DateTimePicker textbox. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Fires when DateTimePicker popup opens. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
}
export interface BeforeCloseEventArgs {
@@ -6863,26 +6826,28 @@ export interface TimeDrillDown {
autoClose?: boolean;
}
}
-enum popupPosition {
+enum popupPosition
+{
//Opens the DateTimePicker popup below to the DateTimePicker input box
Bottom,
-//Opens the DateTimePicker popup above to the DateTimePicker input box
+//Opens the DateTimePicker popup above to the DateTimePicker input box
Top,
}
class DateRangePicker extends ej.Widget {
static fn: DateRangePicker;
- constructor(element: JQuery | Element, options?: DateRangePicker.Model);
+ constructor(element: JQuery, options?: DateRangePicker.Model);
+ constructor(element: Element, options?: DateRangePicker.Model);
static Locale: any;
- model: DateRangePicker.Model;
- defaults: DateRangePicker.Model;
+ model:DateRangePicker.Model;
+ defaults:DateRangePicker.Model;
/** Add the preset ranges to DateRangePicker popup.
* @param {string} Display name
* @param {Array} StartDate and endDate of range.
* @returns {void}
*/
- addRanges(label: string, range: any[]): void;
+ addRanges(label: string, range: Array): void;
/** Clears the all ranges selections in DateRangePicker popup
* @returns {void}
@@ -6919,7 +6884,7 @@ class DateRangePicker extends ej.Widget {
*/
setRange(): void;
}
-export namespace DateRangePicker {
+export module DateRangePicker{
export interface Model {
@@ -7013,28 +6978,28 @@ export interface Model {
width?: string|number;
/** Fires before closing the DateRangePicker popup. */
- beforeClose?(e: BeforeCloseEventArgs): void;
+ beforeClose? (e: BeforeCloseEventArgs): void;
/** Fires before opening the DateRangePicker popup. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires when the DateRangePicker values get changed. */
- onChange?(e: OnChangeEventArgs): void;
+ onChange? (e: OnChangeEventArgs): void;
/** Fires when DateRangePicker popup is closed. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires when the DateRangePicker is created successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the DateRangePicker is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when DateRangePicker popup is opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Fires when a date ranges is selected from the DateRangePicker popup. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface BeforeCloseEventArgs {
@@ -7212,10 +7177,11 @@ export interface SelectEventArgs {
class Dialog extends ej.Widget {
static fn: Dialog;
- constructor(element: JQuery | Element, options?: Dialog.Model);
+ constructor(element: JQuery, options?: Dialog.Model);
+ constructor(element: Element, options?: Dialog.Model);
static Locale: any;
- model: Dialog.Model;
- defaults: Dialog.Model;
+ model:Dialog.Model;
+ defaults:Dialog.Model;
/** Closes the dialog widget dynamically.
* @returns {any}
@@ -7294,7 +7260,7 @@ class Dialog extends ej.Widget {
*/
focus(): any;
}
-export namespace Dialog {
+export module Dialog{
export interface Model {
@@ -7315,8 +7281,7 @@ export interface Model {
*/
allowKeyboardNavigation?: boolean;
- /** Customizes the Dialog widget animations. The Dialog widget can be animated while opening and closing the dialog.
- * In order to customize animation effects, you need to set “enableAnimation” as true. It contains the following sub properties.
+ /** Customizes the Dialog widget animations. The Dialog widget can be animated while opening and closing the dialog. In order to customize animation effects, you need to set “enableAnimation†as true. It contains the following sub properties.
*/
animation?: any;
@@ -7328,12 +7293,11 @@ export interface Model {
*/
containment?: string;
- /** The content type to load the dialog content at run time. The possible values are null, AJAX, iframe and image. When it is null (default value),
- * the content inside dialog element will be displayed as content and when it is not null, the content will be loaded from the URL specified in the contentUrl property.
+ /** The content type to load the dialog content at run time. The possible values are null, AJAX, iframe and image. When it is null (default value), the content inside dialog element will be displayed as content and when it is not null, the content will be loaded from the URL specified in the contentUrl property.
*/
contentType?: string;
- /** The URL to load the dialog content (such as AJAX, image, and iframe). In order to load content from URL, you need to set contentType as ‘ajax’ or ‘iframe’ or ‘image’.
+ /** The URL to load the dialog content (such as AJAX, image, and iframe). In order to load content from URL, you need to set contentType as ‘ajax’ or ‘iframe’ or ‘image’.
*/
contentUrl?: string;
@@ -7365,12 +7329,11 @@ export interface Model {
*/
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 header.
+ /** 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;
- /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “auto”, “100%”, “100px” as string type
- * and “100”, “500” as integer type.
+ /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “autoâ€, “100%â€, “100px†as string type and “100â€, “500†as integer type.
*/
height?: string|number;
@@ -7383,7 +7346,7 @@ export interface Model {
*/
isResponsive?: boolean;
- /** Default Value:{:.param}“en-US”
+ /** Default Value:{:.param}“en-USâ€
*/
locale?: number;
@@ -7431,8 +7394,7 @@ export interface Model {
*/
tooltip?: any;
- /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “auto”, “100%”,
- * “100px” as string type and “100”, “500” as integer type.
+ /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “autoâ€, “100%â€, “100px†as string type and “100â€, “500†as integer type.
*/
width?: string|number;
@@ -7449,58 +7411,58 @@ export interface Model {
footerTemplateId?: string;
/** This event is triggered before the dialog widgets gets open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** This event is triggered whenever the AJAX request fails to retrieve the dialog content. */
- ajaxError?(e: AjaxErrorEventArgs): void;
+ ajaxError? (e: AjaxErrorEventArgs): void;
/** This event is triggered whenever the AJAX request to retrieve the dialog content, gets succeed. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ ajaxSuccess? (e: AjaxSuccessEventArgs): void;
/** This event is triggered before the dialog widgets get closed. */
- beforeClose?(e: BeforeCloseEventArgs): void;
+ beforeClose? (e: BeforeCloseEventArgs): void;
/** This event is triggered after the dialog widget is closed. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Triggered after the dialog content is loaded in DOM. */
- contentLoad?(e: ContentLoadEventArgs): void;
+ contentLoad? (e: ContentLoadEventArgs): void;
/** Triggered after the dialog is created successfully */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggered after the dialog widget is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Triggered while the dialog is dragged. */
- drag?(e: DragEventArgs): void;
+ drag? (e: DragEventArgs): void;
/** Triggered when the user starts dragging the dialog. */
- dragStart?(e: DragStartEventArgs): void;
+ dragStart? (e: DragStartEventArgs): void;
/** Triggered when the user stops dragging the dialog. */
- dragStop?(e: DragStopEventArgs): void;
+ dragStop? (e: DragStopEventArgs): void;
/** Triggered after the dialog is opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Triggered while the dialog is resized. */
- resize?(e: ResizeEventArgs): void;
+ resize? (e: ResizeEventArgs): void;
/** Triggered when the user starts resizing the dialog. */
- resizeStart?(e: ResizeStartEventArgs): void;
+ resizeStart? (e: ResizeStartEventArgs): void;
/** Triggered when the user stops resizing the dialog. */
- resizeStop?(e: ResizeStopEventArgs): void;
+ resizeStop? (e: ResizeStopEventArgs): void;
/** Triggered when the dialog content is expanded. */
- expand?(e: ExpandEventArgs): void;
+ expand? (e: ExpandEventArgs): void;
/** Triggered when the dialog content is collapsed. */
- collapse?(e: CollapseEventArgs): void;
+ collapse? (e: CollapseEventArgs): void;
/** Triggered when the custom action button clicked. */
- actionButtonClick?(e: ActionButtonClickEventArgs): void;
+ actionButtonClick? (e: ActionButtonClickEventArgs): void;
}
export interface BeforeOpenEventArgs {
@@ -7875,16 +7837,17 @@ export interface AjaxSettings {
class DropDownList extends ej.Widget {
static fn: DropDownList;
- constructor(element: JQuery | Element, options?: DropDownList.Model);
+ constructor(element: JQuery, options?: DropDownList.Model);
+ constructor(element: Element, options?: DropDownList.Model);
static Locale: any;
- model: DropDownList.Model;
- defaults: DropDownList.Model;
+ model:DropDownList.Model;
+ defaults:DropDownList.Model;
/** Adding a single item or an array of items into the DropDownList allows you to specify all the field attributes such as value, template, image URL, and HTML attributes for those items.
* @param {any|Array} this parameter should have field attributes with respect to mapped field attributes and it's corresponding values to fields
* @returns {void}
*/
- addItem(data: any|any[]): void;
+ addItem(data: any|Array): void;
/** This method is used to select all the items in the DropDownList.
* @returns {void}
@@ -7910,7 +7873,7 @@ class DropDownList extends ej.Widget {
* @param {string|number|Array} disable the given index list items
* @returns {void}
*/
- disableItemsByIndices(index: string|number|any[]): void;
+ disableItemsByIndices(index: string|number|Array): void;
/** This property enables the DropDownList control.
* @returns {void}
@@ -7921,13 +7884,13 @@ class DropDownList extends ej.Widget {
* @param {string|number|Array} enable the given index list items if it's disabled
* @returns {void}
*/
- enableItemsByIndices(index: string|number|any[]): void;
+ enableItemsByIndices(index: string|number|Array): void;
/** This method retrieves the items using given value.
* @param {string|number|any} Return the whole object of data based on given value
* @returns {Array}
*/
- getItemDataByValue(value: string|number|any): any[];
+ getItemDataByValue(value: string|number|any): Array;
/** This method is used to retrieve the items that are bound with the DropDownList.
* @returns {any}
@@ -7937,12 +7900,12 @@ class DropDownList extends ej.Widget {
/** This method is used to get the selected items in the DropDownList.
* @returns {Array}
*/
- getSelectedItem(): any[];
+ getSelectedItem(): Array;
/** This method is used to retrieve the items value that are selected in the DropDownList.
- * @returns {string}
+ * @returns {string|number}
*/
- getSelectedValue(): string;
+ getSelectedValue(): string|number;
/** This method hides the suggestion popup in the DropDownList.
* @returns {void}
@@ -7953,19 +7916,19 @@ class DropDownList extends ej.Widget {
* @param {string|number|Array} select the given index list items
* @returns {void}
*/
- selectItemsByIndices(index: string|number|any[]): void;
+ selectItemsByIndices(index: string|number|Array): void;
/** This method is used to select an item in the DropDownList by using the given text value.
* @param {string|number|Array} select the list items relates to given text
* @returns {void}
*/
- selectItemByText(index: string|number|any[]): void;
+ selectItemByText(index: string|number|Array): void;
/** This method is used to select an item in the DropDownList by using the given value.
* @param {string|number|Array} select the list items relates to given values
* @returns {void}
*/
- selectItemByValue(index: string|number|any[]): void;
+ selectItemByValue(index: string|number|Array): void;
/** This method shows the DropDownList control with the suggestion popup.
* @returns {void}
@@ -7981,31 +7944,30 @@ class DropDownList extends ej.Widget {
* @param {string|number|Array} unselect the given index list items
* @returns {void}
*/
- unselectItemsByIndices(index: string|number|any[]): void;
+ unselectItemsByIndices(index: string|number|Array): void;
/** This method is used to unselect an item in the DropDownList by using the given text value.
* @param {string|number|Array} unselect the list items relates to given text
* @returns {void}
*/
- unselectItemByText(index: string|number|any[]): void;
+ unselectItemByText(index: string|number|Array): void;
/** This method is used to unselect an item in the DropDownList by using the given value.
* @param {string|number|Array} unselect the list items relates to given values
* @returns {void}
*/
- unselectItemByValue(index: string|number|any[]): void;
+ unselectItemByValue(index: string|number|Array): void;
}
-export namespace DropDownList {
+export module DropDownList{
export interface Model {
- /** The Virtual Scrolling(lazy loading) feature is used to display a large amount of data that you require without buffering the entire load of a huge database records in the DropDownList,
- * that is, when scrolling, an AJAX request is sent to fetch some amount of data from the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
+ /** The Virtual Scrolling(lazy loading) feature is used to display a large amount of data that you require without buffering the entire load of a huge database records in the DropDownList, that is, when scrolling, an AJAX request is sent to fetch some amount of data from the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
* @Default {false}
*/
allowVirtualScrolling?: boolean;
- /** The cascading DropDownLists is a series of two or more DropDownLists in which each DropDownList is filtered according to the previous DropDownList’s value.
+ /** The cascading DropDownLists is a series of two or more DropDownLists in which each DropDownList is filtered according to the previous DropDownList’s value.
* @Default {null}
*/
cascadeTo?: string;
@@ -8015,19 +7977,16 @@ export interface Model {
*/
caseSensitiveSearch?: boolean;
- /** Dropdown widget's style and appearance can be controlled based on 13 different default built-in themes.You can customize the appearance of the dropdown by using the cssClass property.
- * You need to specify a class name in the cssClass property and the same class name is used before the class definitions wherever the custom styles are applied.
+ /** Dropdown widget's style and appearance can be controlled based on 13 different default built-in themes.You can customize the appearance of the dropdown by using the cssClass property. You need to specify a class name in the cssClass property and the same class name is used before the class definitions wherever the custom styles are applied.
*/
cssClass?: string;
- /** This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget,
- * the dataSource property is assigned with the instance of the ej.DataManager.
+ /** This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget, the dataSource property is assigned with the instance of the ej.DataManager.
* @Default {null}
*/
dataSource?: any;
- /** Sets the separator when the multiSelectMode with delimiter option or checkbox is enabled with the dropdown. When you enter the delimiter value,the texts after the delimiter are considered
- * as a separate word or query. The delimiter string is a single character and must be a symbol. Mostly, the delimiter symbol is used as comma (,) or semi-colon (;) or any other special character.
+ /** Sets the separator when the multiSelectMode with delimiter option or checkbox is enabled with the dropdown. When you enter the delimiter value, the texts after the delimiter are considered as a separate word or query. The delimiter string is a single character and must be a symbol. Mostly, the delimiter symbol is used as comma (,) or semi-colon (;) or any other special character.
* @Default {','}
*/
delimiterChar?: string;
@@ -8037,8 +7996,7 @@ export interface Model {
*/
enableAnimation?: boolean;
- /** This property is used to indicate whether the DropDownList control responds to the user interaction or not. By default, the control is in the enabled mode
- * and you can disable it by setting it to false.
+ /** This property is used to indicate whether the DropDownList control responds to the user interaction or not. By default, the control is in the enabled mode and you can disable it by setting it to false.
* @Default {true}
*/
enabled?: boolean;
@@ -8053,8 +8011,7 @@ export interface Model {
*/
enableFilterSearch?: boolean;
- /** Saves the current model value to the browser cookies for state maintenance. While refreshing the DropDownList control page, it retains the model value and
- * it is applied from the browser cookies.
+ /** Saves the current model value to the browser cookies for state maintenance. While refreshing the DropDownList control page, it retains the model value and it is applied from the browser cookies.
* @Default {false}
*/
enablePersistence?: boolean;
@@ -8129,9 +8086,7 @@ export interface Model {
*/
minPopupWidth?: string|number;
- /** With the help of this property, you can make a single or multi selection with the DropDownList and display the text in two modes, delimiter and visual mode.
- * In delimiter mode, you can separate the items by using the delimiter character such as comma (,) or semi-colon (;) or any other special character.
- * In the visual mode, the items are showcased like boxes with close icon in the textbox.
+ /** With the help of this property, you can make a single or multi selection with the DropDownList and display the text in two modes, delimiter and visual mode. In delimiter mode, you can separate the items by using the delimiter character such as comma (,) or semi-colon (;) or any other special character. In the visual mode, the items are showcased like boxes with close icon in the textbox.
* @Default {ej.MultiSelectMode.None}
*/
multiSelectMode?: ej.MultiSelectMode|string;
@@ -8164,7 +8119,7 @@ export interface Model {
/** Specifies the selectedItems for the DropDownList.
* @Default {[]}
*/
- selectedIndices?: any[];
+ selectedIndices?: Array;
/** Selects multiple items in the DropDownList with the help of the checkbox control. To achieve this, enable the showCheckbox option to true.
* @Default {false}
@@ -8186,7 +8141,7 @@ export interface Model {
*/
sortOrder?: ej.SortOrder|string;
- /** Specifies the targetID for the DropDownList’s items.
+ /** Specifies the targetID for the DropDownList’s items.
* @Default {null}
*/
targetID?: string;
@@ -8199,7 +8154,7 @@ export interface Model {
/** Defines the text value that is displayed in the DropDownList textbox.
* @Default {null}
*/
- text?: string;
+ text?: string|number;
/** Sets the jQuery validation error message in the DropDownList
* @Default {null}
@@ -8226,75 +8181,73 @@ export interface Model {
*/
width?: string|number;
- /** The Virtual Scrolling feature is used to display a large amount of records in the DropDownList, that is, when scrolling, an AJAX request is sent to fetch some amount of data from
- * the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
- * You can set the itemsCount property that represents the number of items to be fetched from the server on every AJAX request.
+ /** The Virtual Scrolling feature is used to display a large amount of records in the DropDownList, that is, when scrolling, an AJAX request is sent to fetch some amount of data from the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true. You can set the itemsCount property that represents the number of items to be fetched from the server on every AJAX request.
* @Default {normal}
*/
virtualScrollMode?: ej.VirtualScrollMode|string;
/** Fires the action before the XHR request. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ actionBegin? (e: ActionBeginEventArgs): void;
/** Fires the action when the list of items is bound to the DropDownList by xhr post calling */
- actionComplete?(e: ActionCompleteEventArgs): void;
+ actionComplete? (e: ActionCompleteEventArgs): void;
/** Fires the action when the xhr post calling failed on remote data binding with the DropDownList control. */
- actionFailure?(e: ActionFailureEventArgs): void;
+ actionFailure? (e: ActionFailureEventArgs): void;
/** Fires the action when the xhr post calling succeed on remote data binding with the DropDownList control */
- actionSuccess?(e: ActionSuccessEventArgs): void;
+ actionSuccess? (e: ActionSuccessEventArgs): void;
/** Fires the action before the popup is ready to hide. */
- beforePopupHide?(e: BeforePopupHideEventArgs): void;
+ beforePopupHide? (e: BeforePopupHideEventArgs): void;
/** Fires the action before the popup is ready to be displayed. */
- beforePopupShown?(e: BeforePopupShownEventArgs): void;
+ beforePopupShown? (e: BeforePopupShownEventArgs): void;
/** Fires when the cascading happens between two DropDownList exactly after the value changes in the first dropdown and before filtering in the second Dropdown. */
- cascade?(e: CascadeEventArgs): void;
+ cascade? (e: CascadeEventArgs): void;
- /** Fires the action when the DropDownList control’s value is changed. */
- change?(e: ChangeEventArgs): void;
+ /** Fires the action when the DropDownList control’s value is changed. */
+ change? (e: ChangeEventArgs): void;
/** Fires the action when the list item checkbox value is changed. */
- checkChange?(e: CheckChangeEventArgs): void;
+ checkChange? (e: CheckChangeEventArgs): void;
/** Fires the action once the DropDownList is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires the action when the list items is bound to the DropDownList. */
- dataBound?(e: DataBoundEventArgs): void;
+ dataBound? (e: DataBoundEventArgs): void;
/** Fires the action when the DropDownList is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires the action when the DropDownList is focused. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Fires the action when the DropDownList is about to lose focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Fires the action, once the popup is closed */
- popupHide?(e: PopupHideEventArgs): void;
+ popupHide? (e: PopupHideEventArgs): void;
/** Fires the action, when the popup is resized. */
- popupResize?(e: PopupResizeEventArgs): void;
+ popupResize? (e: PopupResizeEventArgs): void;
/** Fires the action, once the popup is opened. */
- popupShown?(e: PopupShownEventArgs): void;
+ popupShown? (e: PopupShownEventArgs): void;
/** Fires the action, when resizing a popup starts. */
- popupResizeStart?(e: PopupResizeStartEventArgs): void;
+ popupResizeStart? (e: PopupResizeStartEventArgs): void;
/** Fires the action, when the popup resizing is stopped. */
- popupResizeStop?(e: PopupResizeStopEventArgs): void;
+ popupResizeStop? (e: PopupResizeStopEventArgs): void;
/** Fires the action before filtering the list items that starts in the DropDownList when the enableFilterSearch is enabled. */
- search?(e: SearchEventArgs): void;
+ search? (e: SearchEventArgs): void;
/** Fires the action, when the list of item is selected. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface ActionBeginEventArgs {
@@ -8326,11 +8279,11 @@ export interface ActionCompleteEventArgs {
*/
model?: any;
- /** Returns the query for data retrieval
+ /** Returns the query for data retrieval
*/
query?: any;
- /** Returns the query for data retrieval from the Database
+ /** Returns the query for data retrieval from the Database
*/
request?: any;
@@ -8340,7 +8293,7 @@ export interface ActionCompleteEventArgs {
/** Returns the number of items fetched from remote data
*/
- result?: any[];
+ result?: Array;
/** Returns the requested data
*/
@@ -8361,7 +8314,7 @@ export interface ActionFailureEventArgs {
*/
model?: any;
- /** Returns the query for data retrieval
+ /** Returns the query for data retrieval
*/
query?: any;
@@ -8384,11 +8337,11 @@ export interface ActionSuccessEventArgs {
*/
model?: any;
- /** Returns the query for data retrieval
+ /** Returns the query for data retrieval
*/
query?: any;
- /** Returns the query for data retrieval from the Database
+ /** Returns the query for data retrieval from the Database
*/
request?: any;
@@ -8398,7 +8351,7 @@ export interface ActionSuccessEventArgs {
/** Returns the number of items fetched from remote data
*/
- result?: any[];
+ result?: Array;
/** Returns the requested data
*/
@@ -8835,21 +8788,24 @@ export interface Fields {
value?: string;
}
}
-enum FilterType {
-//filter the data wherever contains search key
+enum FilterType
+{
+//filter the data wherever contains search key
Contains,
//filter the data based on search key present at start position
StartsWith,
}
-enum MultiSelectMode {
-// can select only single item in DropDownList
+enum MultiSelectMode
+{
+// can select only single item in DropDownList
None,
//can select multiple items and it's separated by delimiterChar
Delimiter,
// can select multiple items and it's show's like visual box in textbox
VisualMode,
}
-enum VirtualScrollMode {
+enum VirtualScrollMode
+{
// The data is loaded only to the corresponding page (display items). When scrolling some other position, it enables the load on demand with the DropDownList.
Normal,
//The data items are loaded from the remote when scroll handle reaches the end of the scrollbar like infinity scrolling.
@@ -8858,10 +8814,11 @@ Continuous,
class Tooltip extends ej.Widget {
static fn: Tooltip;
- constructor(element: JQuery | Element, options?: Tooltip.Model);
+ constructor(element: JQuery, options?: Tooltip.Model);
+ constructor(element: Element, options?: Tooltip.Model);
static Locale: any;
- model: Tooltip.Model;
- defaults: Tooltip.Model;
+ model:Tooltip.Model;
+ defaults:Tooltip.Model;
/** Destroys the Tooltip control.
* @returns {void}
@@ -8883,7 +8840,7 @@ class Tooltip extends ej.Widget {
* @param {Function} optional custom effect takes place when hiding the tooltip.
* @returns {void}
*/
- hide(effect?: string, func?: any): void;
+ hide(effect?: string, func?: Function): void;
/** Shows the Tooltip popup for the given target element with the specified effect.
* @param {string} optional Determines the type of effect that takes place when showing the tooltip.
@@ -8891,9 +8848,9 @@ class Tooltip extends ej.Widget {
* @param {JQuery} optional Tooltip will be shown for the given element
* @returns {void}
*/
- show(effect?: string, func?: any, target?: JQuery): void;
+ show(effect?: string, func?: Function, target?: JQuery): void;
}
-export namespace Tooltip {
+export module Tooltip{
export interface Model {
@@ -8996,31 +8953,31 @@ export interface Model {
width?: string|number;
/** This event is triggered before the Tooltip widget get closed. */
- beforeClose?(e: BeforeCloseEventArgs): void;
+ beforeClose? (e: BeforeCloseEventArgs): void;
/** This event is triggered before the Tooltip widget gets open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires on clicking to the target element. */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** This event is triggered after the Tooltip widget is closed. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** This event is triggered after the Tooltip is created successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** This event is triggered after the Tooltip widget is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** This event is triggered while hovering the target element, when tooltip positioning relates to target element. */
- hover?(e: HoverEventArgs): void;
+ hover? (e: HoverEventArgs): void;
/** This event is triggered after the Tooltip is opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** This event is triggered while hover the target element, when the tooltip positioning is relates to the mouse. */
- tracking?(e: TrackingEventArgs): void;
+ tracking? (e: TrackingEventArgs): void;
}
export interface BeforeCloseEventArgs {
@@ -9236,7 +9193,7 @@ export interface Position {
stem?: PositionStem;
}
-enum effect {
+enum effect{
///No animation takes place when showing/hiding the Tooltip
None,
@@ -9249,7 +9206,7 @@ enum effect {
}
-enum Associate {
+enum Associate{
///Sets the position related to target element.
Target,
@@ -9268,7 +9225,7 @@ enum Associate {
}
-enum CloseMode {
+enum CloseMode{
///Enables close button in Tooltip.
Sticky,
@@ -9281,7 +9238,7 @@ enum CloseMode {
}
-enum Collision {
+enum Collision{
///Flips the Tooltip to the opposite side of the target, if collision is occurs.
Flip,
@@ -9297,7 +9254,7 @@ enum Collision {
}
-enum Trigger {
+enum Trigger{
///The Tooltip to be shown when the target element is clicked.
Click,
@@ -9313,10 +9270,11 @@ enum Trigger {
class Editor extends ej.Widget {
static fn: Editor;
- constructor(element: JQuery | Element, options?: Editor.Model);
+ constructor(element: JQuery, options?: Editor.Model);
+ constructor(element: Element, options?: Editor.Model);
static Locale: any;
- model: Editor.Model;
- defaults: Editor.Model;
+ model:Editor.Model;
+ defaults:Editor.Model;
/** destroy the editor widgets all events are unbind automatically and bring the control to pre-init state.
* @returns {void}
@@ -9339,15 +9297,15 @@ class Editor extends ej.Widget {
getValue(): number;
}
- class NumericTextbox extends Editor {
+ class NumericTextbox extends Editor{
}
- class CurrencyTextbox extends Editor {
+ class CurrencyTextbox extends Editor{
}
- class PercentageTextbox extends Editor {
+ class PercentageTextbox extends Editor{
}
-export namespace Editor {
+export module Editor{
export interface Model {
@@ -9430,14 +9388,12 @@ export interface Model {
*/
name?: string;
- /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the negative pattern.
- * you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
+ /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the negative pattern. you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
* @Default {Based on the culture}
*/
negativePattern?: string;
- /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the positive pattern.
- * you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
+ /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the positive pattern. you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
* @Default {Based on the culture}
*/
positivePattern?: string;
@@ -9488,19 +9444,19 @@ export interface Model {
width?: string;
/** Fires after Editor control value is changed. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires after Editor control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the Editor is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires after Editor control is focused. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Fires after Editor control is loss the focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
}
export interface ChangeEventArgs {
@@ -9597,10 +9553,11 @@ export interface FocusOutEventArgs {
class ListView extends ej.Widget {
static fn: ListView;
- constructor(element: JQuery | Element, options?: ListView.Model);
+ constructor(element: JQuery, options?: ListView.Model);
+ constructor(element: Element, options?: ListView.Model);
static Locale: any;
- model: ListView.Model;
- defaults: ListView.Model;
+ model:ListView.Model;
+ defaults:ListView.Model;
/** To add item in the given index. If you have enabled grouping in ListView then you need to pass the corresponding group list title to add item in it.
* @param {any} Specifies the item to be added in ListView
@@ -9657,12 +9614,12 @@ class ListView extends ej.Widget {
/** To get all the checked items.
* @returns {Array}
*/
- getCheckedItems(): any[];
+ getCheckedItems(): Array;
/** To get the text of all the checked items.
* @returns {Array}
*/
- getCheckedItemsText(): any[];
+ getCheckedItemsText(): Array;
/** To get the total item count.
* @returns {number}
@@ -9749,7 +9706,7 @@ class ListView extends ej.Widget {
*/
unCheckItem(index: number): void;
}
-export namespace ListView {
+export module ListView{
export interface Model {
@@ -9761,17 +9718,16 @@ export interface Model {
/** Set the index values to be selected on initial loading. This works only when enableCheckMark is set true.
* @Default {[]}
*/
- checkedIndices?: any[];
+ checkedIndices?: Array;
- /** Sets the root class for ListView theme. This cssClass API helps to use custom skinning option for ListView control. By defining the root class using this API,
- * we need to include this root class in CSS.
+ /** Sets the root class for ListView theme. This cssClass API helps to use custom skinning option for ListView control. By defining the root class using this API, we need to include this root class in CSS.
*/
cssClass?: string;
/** Contains the list of data for generating the ListView items.
* @Default {[]}
*/
- dataSource?: any[];
+ dataSource?: Array;
/** Specifies whether to load AJAX content while selecting item.
* @Default {false}
@@ -9810,7 +9766,7 @@ export interface Model {
/** Contains the array of items to be added in ListView.
* @Default {[]}
*/
- items?: any[];
+ items?: Array;
/** Specifies the text of the back button in the header.
* @Default {null}
@@ -9877,28 +9833,28 @@ export interface Model {
width?: string|number;
/** Event triggers before the AJAX request happens. */
- ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
+ ajaxBeforeLoad? (e: AjaxBeforeLoadEventArgs): void;
/** Event triggers after the AJAX content loaded completely. */
- ajaxComplete?(e: AjaxCompleteEventArgs): void;
+ ajaxComplete? (e: AjaxCompleteEventArgs): void;
/** Event triggers when the AJAX request failed. */
- ajaxError?(e: AjaxErrorEventArgs): void;
+ ajaxError? (e: AjaxErrorEventArgs): void;
/** Event triggers after the AJAX content loaded successfully. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ ajaxSuccess? (e: AjaxSuccessEventArgs): void;
/** Event triggers before the items loaded. */
- load?(e: LoadEventArgs): void;
+ load? (e: LoadEventArgs): void;
/** Event triggers after the items loaded. */
- loadComplete?(e: LoadCompleteEventArgs): void;
+ loadComplete? (e: LoadCompleteEventArgs): void;
/** Event triggers when mouse down happens on the item. */
- mouseDown?(e: MouseDownEventArgs): void;
+ mouseDown? (e: MouseDownEventArgs): void;
/** Event triggers when mouse up happens on the item. */
- mouseUp?(e: MouseUpEventArgs): void;
+ mouseUp? (e: MouseUpEventArgs): void;
}
export interface AjaxBeforeLoadEventArgs {
@@ -10151,10 +10107,11 @@ export interface AjaxSettings {
class MaskEdit extends ej.Widget {
static fn: MaskEdit;
- constructor(element: JQuery | Element, options?: MaskEdit.Model);
+ constructor(element: JQuery, options?: MaskEdit.Model);
+ constructor(element: Element, options?: MaskEdit.Model);
static Locale: any;
- model: MaskEdit.Model;
- defaults: MaskEdit.Model;
+ model:MaskEdit.Model;
+ defaults:MaskEdit.Model;
/** To clear the text in mask edit textbox control.
* @returns {void}
@@ -10181,7 +10138,7 @@ class MaskEdit extends ej.Widget {
*/
get_UnstrippedValue(): string;
}
-export namespace MaskEdit {
+export module MaskEdit{
export interface Model {
@@ -10285,34 +10242,34 @@ export interface Model {
width?: string;
/** Fires when value changed in mask edit textbox control. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires after MaskEdit control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the MaskEdit is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when focused in mask edit textbox control. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Fires when focused out in mask edit textbox control. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Fires when keydown in mask edit textbox control. */
- keydown?(e: KeydownEventArgs): void;
+ keydown? (e: KeydownEventArgs): void;
/** Fires when key press in mask edit textbox control. */
- keyPress?(e: KeyPressEventArgs): void;
+ keyPress? (e: KeyPressEventArgs): void;
/** Fires when keyup in mask edit textbox control. */
- keyup?(e: KeyupEventArgs): void;
+ keyup? (e: KeyupEventArgs): void;
/** Fires when mouse out in mask edit textbox control. */
- mouseOut?(e: MouseOutEventArgs): void;
+ mouseOut? (e: MouseOutEventArgs): void;
/** Fires when mouse over in mask edit textbox control. */
- mouseOver?(e: MouseOverEventArgs): void;
+ mouseOver? (e: MouseOverEventArgs): void;
}
export interface ChangeEventArgs {
@@ -10529,13 +10486,15 @@ export interface MouseOverEventArgs {
unmaskedValue?: string;
}
}
-enum InputMode {
+enum InputMode
+{
//string
Password,
//string
Text,
}
-enum TextAlign {
+enum TextAlign
+{
//string
Center,
//string
@@ -10548,10 +10507,11 @@ Right,
class Menu extends ej.Widget {
static fn: Menu;
- constructor(element: JQuery | Element, options?: Menu.Model);
+ constructor(element: JQuery, options?: Menu.Model);
+ constructor(element: Element, options?: Menu.Model);
static Locale: any;
- model: Menu.Model;
- defaults: Menu.Model;
+ model:Menu.Model;
+ defaults:Menu.Model;
/** Disables the Menu control.
* @returns {void}
@@ -10622,7 +10582,7 @@ class Menu extends ej.Widget {
* @param {any|Array} Selector of target node or Object of target node.
* @returns {void}
*/
- remove(target: any|any[]): void;
+ remove(target: any|Array): void;
/** To show the Menu control.
* @param {number} x co-ordinate position of context menu.
@@ -10638,7 +10598,7 @@ class Menu extends ej.Widget {
*/
showItems(): void;
}
-export namespace Menu {
+export module Menu{
export interface Model {
@@ -10757,37 +10717,37 @@ export interface Model {
overflowWidth?: string|number;
/** Fires before context menu gets open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires when mouse click on menu items. */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** Fire when context menu on close. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires when context menu on open. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Fires to create menu items. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires to destroy menu items. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when key down on menu items. */
- keydown?(e: KeydownEventArgs): void;
+ keydown? (e: KeydownEventArgs): void;
/** Fires when mouse out from menu items. */
- mouseout?(e: MouseoutEventArgs): void;
+ mouseout? (e: MouseoutEventArgs): void;
/** Fires when mouse over the Menu items. */
- mouseover?(e: MouseoverEventArgs): void;
+ mouseover? (e: MouseoverEventArgs): void;
/** Fires when overflow popup menu opens. */
- overflowOpen?(e: OverflowOpenEventArgs): void;
+ overflowOpen? (e: OverflowOpenEventArgs): void;
/** Fires when overflow popup menu closes. */
- overflowClose?(e: OverflowCloseEventArgs): void;
+ overflowClose? (e: OverflowCloseEventArgs): void;
}
export interface BeforeOpenEventArgs {
@@ -11005,7 +10965,7 @@ export interface Fields {
*/
dataSource?: any;
- /** Specifies the HTML attributes to “LI” item list.
+ /** Specifies the HTML attributes to “LI†item list.
*/
htmlAttribute?: string;
@@ -11013,11 +10973,11 @@ export interface Fields {
*/
id?: string;
- /** Specifies the image attribute to “img” tag inside items list.
+ /** Specifies the image attribute to “img†tag inside items list.
*/
imageAttribute?: string;
- /** Specifies the image URL to “img” tag inside item list.
+ /** Specifies the image URL to “img†tag inside item list.
*/
imageUrl?: string;
@@ -11033,7 +10993,7 @@ export interface Fields {
*/
query?: any;
- /** Specifies the sprite CSS class to “LI” item list.
+ /** Specifies the sprite CSS class to “LI†item list.
*/
spriteCssClass?: string;
@@ -11050,19 +11010,22 @@ export interface Fields {
url?: string;
}
}
-enum AnimationType {
+enum AnimationType
+{
//string
Default,
//string
None,
}
-enum MenuType {
+enum MenuType
+{
//string
ContextMenu,
//string
NormalMenu,
}
-enum Direction {
+enum Direction
+{
//string
Left,
//string
@@ -11073,10 +11036,11 @@ Right,
class Pager extends ej.Widget {
static fn: Pager;
- constructor(element: JQuery | Element, options?: Pager.Model);
+ constructor(element: JQuery, options?: Pager.Model);
+ constructor(element: Element, options?: Pager.Model);
static Locale: any;
- model: Pager.Model;
- defaults: Pager.Model;
+ model:Pager.Model;
+ defaults:Pager.Model;
/** Send a paging request to specified page through the pager control.
* @param {number} Specifies the index to be navigated
@@ -11089,7 +11053,7 @@ class Pager extends ej.Widget {
*/
refreshPager(): void;
}
-export namespace Pager {
+export module Pager{
export interface Model {
@@ -11121,8 +11085,7 @@ export interface Model {
*/
externalMessage?: string;
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e.
- * in a language and culture specific to a particular country or region.
+ /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific to a particular country or region.
* @Default {en-US}
*/
locale?: string;
@@ -11153,7 +11116,7 @@ export interface Model {
showPageInfo?: boolean;
/** Triggered when pager numeric item is clicked in pager control. */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
}
export interface ClickEventArgs {
@@ -11182,10 +11145,11 @@ export interface ClickEventArgs {
class ProgressBar extends ej.Widget {
static fn: ProgressBar;
- constructor(element: JQuery | Element, options?: ProgressBar.Model);
+ constructor(element: JQuery, options?: ProgressBar.Model);
+ constructor(element: Element, options?: ProgressBar.Model);
static Locale: any;
- model: ProgressBar.Model;
- defaults: ProgressBar.Model;
+ model:ProgressBar.Model;
+ defaults:ProgressBar.Model;
/** Destroy the progressbar widget
* @returns {void}
@@ -11212,7 +11176,7 @@ class ProgressBar extends ej.Widget {
*/
getValue(): number;
}
-export namespace ProgressBar {
+export module ProgressBar{
export interface Model {
@@ -11282,19 +11246,19 @@ export interface Model {
width?: number|string;
/** Event triggers when the progress value changed */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Event triggers when the process completes (at 100%) */
- complete?(e: CompleteEventArgs): void;
+ complete? (e: CompleteEventArgs): void;
/** Event triggers when the progressbar are created */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Event triggers when the progressbar are destroyed */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Event triggers when the process starts (from 0%) */
- start?(e: StartEventArgs): void;
+ start? (e: StartEventArgs): void;
}
export interface ChangeEventArgs {
@@ -11399,10 +11363,11 @@ export interface StartEventArgs {
class RadioButton extends ej.Widget {
static fn: RadioButton;
- constructor(element: JQuery | Element, options?: RadioButton.Model);
+ constructor(element: JQuery, options?: RadioButton.Model);
+ constructor(element: Element, options?: RadioButton.Model);
static Locale: any;
- model: RadioButton.Model;
- defaults: RadioButton.Model;
+ model:RadioButton.Model;
+ defaults:RadioButton.Model;
/** To disable the RadioButton
* @returns {void}
@@ -11414,7 +11379,7 @@ class RadioButton extends ej.Widget {
*/
enable(): void;
}
-export namespace RadioButton {
+export module RadioButton{
export interface Model {
@@ -11432,8 +11397,7 @@ export interface Model {
*/
enabled?: boolean;
- /** Specifies the enablePersistence property for RadioButton while initialization. The enablePersistence API save current model value to browser cookies for state maintains.
- * While refreshing the radio button control page the model value apply from browser cookies.
+ /** Specifies the enablePersistence property for RadioButton while initialization. The enablePersistence API save current model value to browser cookies for state maintains. While refreshing the radio button control page the model value apply from browser cookies.
* @Default {false}
*/
enablePersistence?: boolean;
@@ -11488,16 +11452,16 @@ export interface Model {
value?: string;
/** Fires before the RadioButton is going to changed its state successfully */
- beforeChange?(e: BeforeChangeEventArgs): void;
+ beforeChange? (e: BeforeChangeEventArgs): void;
/** Fires when the RadioButton state is changed successfully */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when the RadioButton created successfully */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the RadioButton destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
}
export interface BeforeChangeEventArgs {
@@ -11576,7 +11540,8 @@ export interface DestroyEventArgs {
type?: string;
}
}
-enum RadioButtonSize {
+enum RadioButtonSize
+{
//Shows small size radio button
Small,
//Shows medium size radio button
@@ -11585,10 +11550,11 @@ Medium,
class Rating extends ej.Widget {
static fn: Rating;
- constructor(element: JQuery | Element, options?: Rating.Model);
+ constructor(element: JQuery, options?: Rating.Model);
+ constructor(element: Element, options?: Rating.Model);
static Locale: any;
- model: Rating.Model;
- defaults: Rating.Model;
+ model:Rating.Model;
+ defaults:Rating.Model;
/** Destroy the Rating widget all events bound will be unbind automatically and bring the control to pre-init state.
* @returns {void}
@@ -11626,7 +11592,7 @@ class Rating extends ej.Widget {
*/
show(): void;
}
-export namespace Rating {
+export module Rating{
export interface Model {
@@ -11715,22 +11681,22 @@ export interface Model {
width?: string;
/** Fires when Rating value changes. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when Rating control is clicked successfully. */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** Fires when Rating control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when Rating control is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when mouse hover is removed from Rating control. */
- mouseout?(e: MouseoutEventArgs): void;
+ mouseout? (e: MouseoutEventArgs): void;
/** Fires when mouse hovered over the Rating control. */
- mouseover?(e: MouseoverEventArgs): void;
+ mouseover? (e: MouseoverEventArgs): void;
}
export interface ChangeEventArgs {
@@ -11859,7 +11825,7 @@ export interface MouseoverEventArgs {
index?: any;
}
-enum Precision {
+enum Precision{
///string
Exact,
@@ -11875,13 +11841,13 @@ enum Precision {
class Ribbon extends ej.Widget {
static fn: Ribbon;
- constructor(element: JQuery | Element, options?: Ribbon.Model);
+ constructor(element: JQuery, options?: Ribbon.Model);
+ constructor(element: Element, options?: Ribbon.Model);
static Locale: any;
- model: Ribbon.Model;
- defaults: Ribbon.Model;
+ model:Ribbon.Model;
+ defaults:Ribbon.Model;
- /** Adds contextual tab or contextual tab set dynamically in the ribbon control with contextual tabs object and index position.
- * When index is null, ribbon contextual tab or contextual tab set is added at the last index.
+ /** Adds contextual tab or contextual tab set dynamically in the ribbon control with contextual tabs object and index position. When index is null, ribbon contextual tab or contextual tab set is added at the last index.
* @param {any} contextual tab or contextual tab set object.
* @param {number} index of the contextual tab or contextual tab set, this is optional.
* @returns {void}
@@ -11901,7 +11867,7 @@ class Ribbon extends ej.Widget {
* @param {number} index of the ribbon tab,this is optional.
* @returns {void}
*/
- addTab(tabText: string, ribbonGroups: any[], index?: number): void;
+ addTab(tabText: string, ribbonGroups: Array, index?: number): void;
/** Adds tab group dynamically in the ribbon control with given tab index, tab group object and group index position. When group index is null, ribbon group is added at the last index.
* @param {number} ribbon tab index.
@@ -11911,16 +11877,15 @@ class Ribbon extends ej.Widget {
*/
addTabGroup(tabIndex: number, tabGroup: any, groupIndex?: number): void;
- /** Adds group content dynamically in the ribbon control with given tab index, group index, sub group index, content and content index position.
- * When content index is null, content is added at the last index.
+ /** Adds group content dynamically in the ribbon control with given tab index, group index, content, content index and sub group index position. When content index is null, content is added at the last index.
* @param {number} ribbon tab index.
* @param {number} ribbon group index.
- * @param {number} sub group index in the ribbon group,
* @param {any} content to be displayed in the ribbon group.
- * @param {number} ribbon content index .this is optional.
+ * @param {number} ribbon content index. This is optional. If the value is not given, then by default contentIndex will be considered as 0.
+ * @param {number} sub group index in the ribbon group. This is optional. If the value is not given, then by default contentIndex will be considered as 0.
* @returns {void}
*/
- addTabGroupContent(tabIndex: number, groupIndex: number, subGroupIndex: number, content: any, contentIndex?: number): void;
+ addTabGroupContent(tabIndex: number, groupIndex: number, content: any, contentIndex?: number, subGroupIndex?: number): void;
/** Hides the ribbon backstage page.
* @returns {void}
@@ -11946,7 +11911,7 @@ class Ribbon extends ej.Widget {
* @param {number} index of the tab item.
* @returns {String}
*/
- getTabText(index: number): string;
+ getTabText(index: number): String;
/** Hides the given text tab in the ribbon control.
* @param {string} text of the tab item.
@@ -11958,13 +11923,13 @@ class Ribbon extends ej.Widget {
* @param {string} text of the tab item.
* @returns {Boolean}
*/
- isEnable(text: string): boolean;
+ isEnable(text: string): Boolean;
/** Checks whether the given text tab in the ribbon control is visible or not.
* @param {string} text of the tab item.
* @returns {Boolean}
*/
- isVisible(text: string): boolean;
+ isVisible(text: string): Boolean;
/** Removes the given index tab item from the ribbon control.
* @param {number} index of tab item.
@@ -12008,10 +11973,11 @@ class Ribbon extends ej.Widget {
/** To customize whole content from Tab Group.
* @param {number} ribbon tab index.
* @param {string} ribbon group text.
- * @param {number} sub group index in the ribbon group,
+ * @param {number} ribbon content index. This is optional. If the value is not given, all content groups will be removed.
+ * @param {number} sub group index in the ribbon group. This is optional. If the value is not given, all content groups will be removed.
* @returns {void}
*/
- removeTabGroupContent(tabIndex: number, groupText: string, subGroupIndex?: number): void;
+ removeTabGroupContent(tabIndex: number, groupText: string, contentIndex?: number, subGroupIndex?: number): void;
/** Remove option from Backstage.
* @param {number} index to the backstage item
@@ -12019,7 +11985,7 @@ class Ribbon extends ej.Widget {
*/
removeBackStageItem(index: number): void;
}
-export namespace Ribbon {
+export module Ribbon{
export interface Model {
@@ -12033,8 +11999,7 @@ export interface Model {
*/
isResponsive?: boolean;
- /** Specifies the height, width, enableRTL, showRoundedCorner,enabled,cssClass property to the controls in the ribbon commonly andit will work only when those properties
- * are not defined in buttonSettings and content defaults.
+ /** Specifies the height, width, enableRTL, showRoundedCorner,enabled,cssClass property to the controls in the ribbon commonly andit will work only when those properties are not defined in buttonSettings and content defaults.
* @Default {Object}
*/
buttonDefaults?: any;
@@ -12074,21 +12039,20 @@ export interface Model {
*/
applicationTab?: ApplicationTab;
- /** Specifies the contextual tabs and tab set to the ribbon control with the background color and border color. Refer to the tabs section for adding tabs
- * into the contextual tab and contextual tab set.
+ /** Specifies the contextual tabs and tab set to the ribbon control with the background color and border color. Refer to the tabs section for adding tabs into the contextual tab and contextual tab set.
* @Default {Array}
*/
- contextualTabs?: ContextualTab[];
+ contextualTabs?: Array;
/** Specifies the index or indexes to disable the given index tab or indexes tabs in the ribbon control.
* @Default {0}
*/
- disabledItemIndex?: any[];
+ disabledItemIndex?: Array;
/** Specifies the index or indexes to enable the given index tab or indexes tabs in the ribbon control.
* @Default {null}
*/
- enabledItemIndex?: any[];
+ enabledItemIndex?: Array;
/** Specifies the index of the ribbon tab to select the given index tab item in the ribbon control.
* @Default {1}
@@ -12098,10 +12062,9 @@ export interface Model {
/** Specifies the tabs and its groups. Also specifies the control details that has to be placed in the tab area in the ribbon control.
* @Default {Array}
*/
- tabs?: Tab[];
+ tabs?: Array;
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific
- * to a particular country or region and it will need to use the user's preference.
+ /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific to a particular country or region and it will need to use the user's preference.
* @Default {en-US}
*/
locale?: string;
@@ -12112,55 +12075,55 @@ export interface Model {
width?: string|number;
/** Triggered before the ribbon tab item is removed. */
- beforeTabRemove?(e: BeforeTabRemoveEventArgs): void;
+ beforeTabRemove? (e: BeforeTabRemoveEventArgs): void;
/** Triggered before the ribbon control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggered before the ribbon control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Triggered when the control in the group is clicked successfully. */
- groupClick?(e: GroupClickEventArgs): void;
+ groupClick? (e: GroupClickEventArgs): void;
/** Triggered when the group expander in the group is clicked successfully. */
- groupExpand?(e: GroupExpandEventArgs): void;
+ groupExpand? (e: GroupExpandEventArgs): void;
/** Triggered when an item in the Gallery control is clicked successfully. */
- galleryItemClick?(e: GalleryItemClickEventArgs): void;
+ galleryItemClick? (e: GalleryItemClickEventArgs): void;
/** Triggered when a tab or button in the backstage page is clicked successfully. */
- backstageItemClick?(e: BackstageItemClickEventArgs): void;
+ backstageItemClick? (e: BackstageItemClickEventArgs): void;
/** Triggered when the ribbon control is collapsed. */
- collapse?(e: CollapseEventArgs): void;
+ collapse? (e: CollapseEventArgs): void;
/** Triggered when the ribbon control is expanded. */
- expand?(e: ExpandEventArgs): void;
+ expand? (e: ExpandEventArgs): void;
/** Triggered before the ribbon control is load. */
- load?(e: LoadEventArgs): void;
+ load? (e: LoadEventArgs): void;
/** Triggered after adding the new ribbon tab item. */
- tabAdd?(e: TabAddEventArgs): void;
+ tabAdd? (e: TabAddEventArgs): void;
/** Triggered when tab is clicked successfully in the ribbon control. */
- tabClick?(e: TabClickEventArgs): void;
+ tabClick? (e: TabClickEventArgs): void;
/** Triggered before the ribbon tab is created. */
- tabCreate?(e: TabCreateEventArgs): void;
+ tabCreate? (e: TabCreateEventArgs): void;
/** Triggered after the tab item is removed from the ribbon control. */
- tabRemove?(e: TabRemoveEventArgs): void;
+ tabRemove? (e: TabRemoveEventArgs): void;
/** Triggered after the ribbon tab item is selected in the ribbon control. */
- tabSelect?(e: TabSelectEventArgs): void;
+ tabSelect? (e: TabSelectEventArgs): void;
/** Triggered when the expand/collapse button is clicked successfully . */
- toggleButtonClick?(e: ToggleButtonClickEventArgs): void;
+ toggleButtonClick? (e: ToggleButtonClickEventArgs): void;
/** Triggered when the QAT menu item is clicked successfully . */
- qatMenuItemClick?(e: QatMenuItemClickEventArgs): void;
+ qatMenuItemClick? (e: QatMenuItemClickEventArgs): void;
}
export interface BeforeTabRemoveEventArgs {
@@ -12548,8 +12511,7 @@ export interface ApplicationTabBackstageSettingsPage {
*/
text?: string;
- /** Specifies the type for ribbon backstage page's contents. Set "ej.Ribbon.BackStageItemType.Tab" to render the tab or "
- * ej.Ribbon.BackStageItemType.Button" to render the button.
+ /** Specifies the type for ribbon backstage page's contents. Set "ej.Ribbon.BackStageItemType.Tab" to render the tab or "ej.Ribbon.BackStageItemType.Button" to render the button.
* @Default {ej.Ribbon.ItemType.Tab}
*/
itemType?: ej.Ribbon.ItemType|string;
@@ -12585,7 +12547,7 @@ export interface ApplicationTabBackstageSettings {
/** Specifies the ribbon backstage page with its tab and button elements.
* @Default {Array}
*/
- pages?: ApplicationTabBackstageSettingsPage[];
+ pages?: Array;
/** Specifies the width of backstage page header that contains tabs and buttons.
* @Default {null}
@@ -12610,8 +12572,7 @@ export interface ApplicationTab {
*/
menuSettings?: any;
- /** Specifies the application menu or backstage page. Specify the type of application tab as "ej.Ribbon.ApplicationTabType.Menu" to render the application menu or
- * "ej.Ribbon.ApplicationTabType.Backstage" to render backstage page in the ribbon control.
+ /** Specifies the application menu or backstage page. Specify the type of application tab as "ej.Ribbon.ApplicationTabType.Menu" to render the application menu or "ej.Ribbon.ApplicationTabType.Backstage" to render backstage page in the ribbon control.
* @Default {ej.Ribbon.ApplicationTabType.Menu}
*/
type?: ej.Ribbon.ApplicationTabType|string;
@@ -12632,7 +12593,7 @@ export interface ContextualTab {
/** Specifies the tabs to present in the contextual tabs and tab set. Refer to the tabs section for adding tabs into the contextual tabs and tab set.
* @Default {Array}
*/
- tabs?: any[];
+ tabs?: Array;
}
export interface TabsGroupsContentDefaults {
@@ -12767,7 +12728,7 @@ export interface TabsGroupsContentGroup {
/** Specifies the Syncfusion button and menu as gallery extra items.
* @Default {Array}
*/
- customGalleryItems?: TabsGroupsContentGroupsCustomGalleryItem[];
+ customGalleryItems?: Array;
/** Provides custom tooltip for button, split button, dropdown list, toggle button, custom controls in the sub groups. Text and HTML support are also provided for title and content.
* @Default {Object}
@@ -12792,7 +12753,7 @@ export interface TabsGroupsContentGroup {
/** Defines each gallery content.
* @Default {Array}
*/
- galleryItems?: TabsGroupsContentGroupsGalleryItem[];
+ galleryItems?: Array;
/** Specifies the Id for button, split button, dropdown list, toggle button, gallery, custom controls in the sub groups.
* @Default {null}
@@ -12839,8 +12800,7 @@ export interface TabsGroupsContentGroup {
*/
quickAccessMode?: ej.Ribbon.QuickAccessMode|string;
- /** Specifies the type as "ej.Ribbon.Type.Button" or "ej.Ribbon.Type.SplitButton" or "ej.Ribbon.Type.DropDownList" or "ej.Ribbon.Type.ToggleButton"
- * or "ej.Ribbon.Type.Custom" or "ej.Ribbon.Type.Gallery" to render button, split, dropdown, toggle button, gallery, custom controls.
+ /** Specifies the type as "ej.Ribbon.Type.Button" or "ej.Ribbon.Type.SplitButton" or "ej.Ribbon.Type.DropDownList" or "ej.Ribbon.Type.ToggleButton" or "ej.Ribbon.Type.Custom" or "ej.Ribbon.Type.Gallery" to render button, split, dropdown, toggle button, gallery, custom controls.
* @Default {ej.Ribbon.Type.Button}
*/
type?: ej.Ribbon.Type|string;
@@ -12856,7 +12816,7 @@ export interface TabsGroupsContent {
/** Specifies the controls such as Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls in the subgroup of the ribbon tab .
* @Default {Array}
*/
- groups?: TabsGroupsContentGroup[];
+ groups?: Array;
}
export interface TabsGroupsGroupExpanderSettings {
@@ -12874,8 +12834,7 @@ export interface TabsGroupsGroupExpanderSettings {
export interface TabsGroup {
- /** Specifies the alignment of controls in the groups in 'row' type or 'column' type. Value for row type is "ej.Ribbon.AlignType.Rows"
- * and for column type is "ej.Ribbon.alignType.columns".
+ /** Specifies the alignment of controls in the groups in 'row' type or 'column' type. Value for row type is "ej.Ribbon.AlignType.Rows" and for column type is "ej.Ribbon.alignType.columns".
* @Default {ej.Ribbon.AlignType.Rows}
*/
alignType?: ej.Ribbon.AlignType|string;
@@ -12883,7 +12842,7 @@ export interface TabsGroup {
/** Specifies the Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls to the groups in the ribbon control.
* @Default {Array}
*/
- content?: TabsGroupsContent[];
+ content?: Array;
/** Specifies the ID of custom items to be placed in the groups.
* @Default {null}
@@ -12921,7 +12880,7 @@ export interface Tab {
/** Specifies single group or multiple groups and its contents to each tab in the ribbon control.
* @Default {Array}
*/
- groups?: TabsGroup[];
+ groups?: Array;
/** Specifies the ID for each tab's content panel.
* @Default {null}
@@ -12934,17 +12893,17 @@ export interface Tab {
text?: string;
}
-enum ItemType {
+enum ItemType{
- ///To render the button for ribbon backstage page’s contents
+ ///To render the button for ribbon backstage page’s contents
Button,
- ///To render the tab for ribbon backstage page’s contents
+ ///To render the tab for ribbon backstage page’s contents
Tab
}
-enum ApplicationTabType {
+enum ApplicationTabType{
///applicationTab display as menu
Menu,
@@ -12954,7 +12913,7 @@ enum ApplicationTabType {
}
-enum AlignType {
+enum AlignType{
///To align the group content's in row
Rows,
@@ -12964,7 +12923,7 @@ enum AlignType {
}
-enum CustomItemType {
+enum CustomItemType{
///Specifies the button type in customGalleryItems
Button,
@@ -12974,9 +12933,9 @@ enum CustomItemType {
}
-enum QuickAccessMode {
+enum QuickAccessMode{
- ///Controls are hidden in Quick Access toolbar
+ ///Controls are hidden in Quick Access toolbar
None,
///Add controls in toolBar
@@ -12987,7 +12946,7 @@ enum QuickAccessMode {
}
-enum Type {
+enum Type{
///Specifies the button control
Button,
@@ -13012,10 +12971,11 @@ enum Type {
class Kanban extends ej.Widget {
static fn: Kanban;
- constructor(element: JQuery | Element, options?: Kanban.Model);
+ constructor(element: JQuery, options?: Kanban.Model);
+ constructor(element: Element, options?: Kanban.Model);
static Locale: any;
- model: Kanban.Model;
- defaults: Kanban.Model;
+ model:Kanban.Model;
+ defaults:Kanban.Model;
/** Add or remove columns in Kanban columns collections.Default action is add.
* @param {Array|string} Pass array of columns or string of headerText to add/remove the column in Kanban
@@ -13023,7 +12983,7 @@ class Kanban extends ej.Widget {
* @param {string} optional Pass add/remove action to be performed. By default "add" action will perform
* @returns {void}
*/
- columns(columndetails: any[]|string, keyvalue: any[]|string, action?: string): void;
+ columns(columndetails: Array|string, keyvalue: Array|string, action?: string): void;
/** Destroy the Kanban widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
* @returns {void}
@@ -13034,7 +12994,7 @@ class Kanban extends ej.Widget {
* @param {Array} Pass new data source to the Kanban
* @returns {void}
*/
- dataSource(datasource: any[]): void;
+ dataSource(datasource: Array): void;
/** toggleColumn based on the headerText in Kanban.
* @param {any} Pass the header text of the column to get the corresponding column object
@@ -13043,7 +13003,7 @@ class Kanban extends ej.Widget {
toggleColumn(headerText: any): void;
/** Expand or collapse the card based on the state of target "div"
- * @param {string|number} Pass the id of card to be toggle
+ * @param {string|number} Pass the id of card to be toggle
* @returns {void}
*/
toggleCard(key: string|number): void;
@@ -13051,7 +13011,7 @@ class Kanban extends ej.Widget {
/** Used for get the names of all the visible column name collections in Kanban.
* @returns {Array}
*/
- getVisibleColumnNames(): any[];
+ getVisibleColumnNames(): Array;
/** Get the scroller object of Kanban.
* @returns {ej.Scroller}
@@ -13062,18 +13022,18 @@ class Kanban extends ej.Widget {
* @param {string} Pass the header text of the column to get the corresponding column object
* @returns {String}
*/
- getColumnByHeaderText(headerText: string): string;
+ getColumnByHeaderText(headerText: string): String;
/** Get the table details based on the given header table in Kanban.
* @returns {String}
*/
- getHeaderTable(): string;
+ getHeaderTable(): String;
/** Hide columns from the Kanban based on the header text
* @param {Array|string} you can pass either array of header text of various columns or a header text of a column to hide
* @returns {void}
*/
- hideColumns(headerText: any[]|string): void;
+ hideColumns(headerText: Array|string): void;
/** Print the Kanban Board
* @returns {void}
@@ -13095,14 +13055,14 @@ class Kanban extends ej.Widget {
* @param {Array|string} You can pass either array of header text of various columns or a header text of a column to show
* @returns {void}
*/
- showColumns(headerText: any[]|string): void;
+ showColumns(headerText: Array|string): void;
/** Update a card in Kanban control based on key and JSON data given.
* @param {string} Pass the key field Name of the column
* @param {Array} Pass the edited JSON data of card need to be update.
* @returns {void}
*/
- updateCard(key: string, data: any[]): void;
+ updateCard(key: string, data: Array): void;
KanbanSelection: Kanban.KanbanSelection;
@@ -13112,7 +13072,7 @@ class Kanban extends ej.Widget {
KanbanEdit: Kanban.KanbanEdit;
}
-export namespace Kanban {
+export module Kanban{
export interface KanbanSelection {
@@ -13172,7 +13132,7 @@ export interface KanbanEdit {
* @param {Array} Pass the edited JSON data of card need to be add.
* @returns {void}
*/
- addCard(primaryKey: string, card: any[]): void;
+ addCard(primaryKey: string,card: Array): void;
/** Send a cancel request of add/edit card in Kanban when allowEditing/allowAdding is set as true.
* @returns {void}
@@ -13201,7 +13161,7 @@ export interface KanbanEdit {
* @param {any} Specify the validation rules for the field
* @returns {void}
*/
- setValidationToField(name: string, rules: any): void;
+ setValidationToField(name: string,rules: any): void;
}
export interface Model {
@@ -13269,7 +13229,7 @@ export interface Model {
/** Gets or sets an object that indicates to render the Kanban with specified columns.
* @Default {Array}
*/
- columns?: Column[];
+ columns?: Array;
/** Gets or sets an object that indicates whether to Customize the card settings.
* @Default {Object}
@@ -13279,7 +13239,7 @@ export interface Model {
/** Gets or sets a value that indicates whether to add customToolbarItems within the toolbar to perform any action in the Kanban.
* @Default {[]}
*/
- customToolbarItems?: CustomToolbarItem[];
+ customToolbarItems?: Array;
/** Gets or sets a value that indicates to render the Kanban with custom theme.
*/
@@ -13333,7 +13293,7 @@ export interface Model {
/** To customize the filtering behavior based on queries given.
* @Default {Array}
*/
- filterSettings?: FilterSetting[];
+ filterSettings?: Array;
/** ej Query to query database of Kanban.
* @Default {null}
@@ -13363,7 +13323,7 @@ export interface Model {
/** Gets or sets an object that indicates to managing the collection of stacked header rows for the Kanban.
* @Default {Array}
*/
- stackedHeaderRows?: StackedHeaderRow[];
+ stackedHeaderRows?: Array;
/** The tooltip allows to display card details in a tooltip while hovering on it.
*/
@@ -13372,88 +13332,90 @@ export interface Model {
/** Gets or sets an object that indicates to render the Kanban with specified workflows.
* @Default {Array}
*/
- workflows?: Workflow[];
+ workflows?: Array;
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific
- * to a particular country or region.
+ /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific to a particular country or region.
* @Default {en-US}
*/
locale?: string;
/** Triggered for every Kanban action before its starts. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ actionBegin? (e: ActionBeginEventArgs): void;
/** Triggered for every Kanban action success event. */
- actionComplete?(e: ActionCompleteEventArgs): void;
+ actionComplete? (e: ActionCompleteEventArgs): void;
/** Triggered for every Kanban action server failure event. */
- actionFailure?(e: ActionFailureEventArgs): void;
+ actionFailure? (e: ActionFailureEventArgs): void;
/** Triggered before the task is going to be edited. */
- beginEdit?(e: BeginEditEventArgs): void;
+ beginEdit? (e: BeginEditEventArgs): void;
/** Triggered before the card is going to be added */
- beginAdd?(e: BeginAddEventArgs): void;
+ beginAdd? (e: BeginAddEventArgs): void;
/** Triggered before the card is selected. */
- beforeCardSelect?(e: BeforeCardSelectEventArgs): void;
+ beforeCardSelect? (e: BeforeCardSelectEventArgs): void;
/** Trigger after the card is clicked. */
- cardClick?(e: CardClickEventArgs): void;
+ cardClick? (e: CardClickEventArgs): void;
/** Triggered when the card is being dragged. */
- cardDrag?(e: CardDragEventArgs): void;
+ cardDrag? (e: CardDragEventArgs): void;
/** Triggered when card dragging start. */
- cardDragStart?(e: CardDragStartEventArgs): void;
+ cardDragStart? (e: CardDragStartEventArgs): void;
/** Triggered when card dragging stops. */
- cardDragStop?(e: CardDragStopEventArgs): void;
+ cardDragStop? (e: CardDragStopEventArgs): void;
/** Triggered when the card is Dropped. */
- cardDrop?(e: CardDropEventArgs): void;
+ cardDrop? (e: CardDropEventArgs): void;
/** Triggered after the card is selected. */
- cardSelect?(e: CardSelectEventArgs): void;
+ cardSelect? (e: CardSelectEventArgs): void;
/** Triggered when card is double clicked. */
- cardDoubleClick?(e: CardDoubleClickEventArgs): void;
+ cardDoubleClick? (e: CardDoubleClickEventArgs): void;
/** Triggered before the card is selected. */
- cardSelecting?(e: CardSelectingEventArgs): void;
+ cardSelecting? (e: CardSelectingEventArgs): void;
/** Triggered when the Kanban is rendered completely */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggers after the cell is clicked. */
- cellClick?(e: CellClickEventArgs): void;
-
- /** Triggered the Kanban is bound with data during initial rendering. */
- dataBound?(e: DataBoundEventArgs): void;
-
- /** Triggered when Kanban going to destroy. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Triggered after the card is deleted. */
- endDelete?(e: EndDeleteEventArgs): void;
-
- /** Triggered after the card is edited. */
- endEdit?(e: EndEditEventArgs): void;
-
- /** Triggers after the header is clicked. */
- headerClick?(e: HeaderClickEventArgs): void;
-
- /** Triggered initial load. */
- load?(e: LoadEventArgs): void;
-
- /** Triggered when toolbar item is clicked in Kanban. */
- toolbarClick?(e: ToolbarClickEventArgs): void;
-
- /** Triggered every time a single card rendered request is made to access particular card information. */
- queryCellInfo?(e: QueryCellInfoEventArgs): void;
+ cellClick? (e: CellClickEventArgs): void;
/** Triggered before the context menu is opened. */
- contextOpen?(e: ContextOpenEventArgs): void;
+ contextOpen? (e: ContextOpenEventArgs): void;
+
+ /** Triggered when context menu item is clicked in Kanban */
+ contextClick? (e: ContextClickEventArgs): void;
+
+ /** Triggered the Kanban is bound with data during initial rendering. */
+ dataBound? (e: DataBoundEventArgs): void;
+
+ /** Triggered when Kanban going to destroy. */
+ destroy? (e: DestroyEventArgs): void;
+
+ /** Triggered after the card is deleted. */
+ endDelete? (e: EndDeleteEventArgs): void;
+
+ /** Triggered after the card is edited. */
+ endEdit? (e: EndEditEventArgs): void;
+
+ /** Triggers after the header is clicked. */
+ headerClick? (e: HeaderClickEventArgs): void;
+
+ /** Triggered initial load. */
+ load? (e: LoadEventArgs): void;
+
+ /** Triggered every time a single card rendered request is made to access particular card information. */
+ queryCellInfo? (e: QueryCellInfoEventArgs): void;
+
+ /** Triggered when toolbar item is clicked in Kanban. */
+ toolbarClick? (e: ToolbarClickEventArgs): void;
}
export interface ActionBeginEventArgs {
@@ -13663,7 +13625,7 @@ export interface BeforeCardSelectEventArgs {
/** Returns the previously select card indexes
*/
- previousRowcellindex?: any[];
+ previousRowcellindex?: Array;
/** Returns the Target item.
*/
@@ -13849,7 +13811,7 @@ export interface CardSelectEventArgs {
/** Returns the previously select card indexes
*/
- previousRowcellindex?: any[];
+ previousRowcellindex?: Array;
/** Returns the current item.
*/
@@ -13911,7 +13873,7 @@ export interface CardSelectingEventArgs {
/** Returns the previously rowcell is selecting card indexes
*/
- previousRowcellindex?: any[];
+ previousRowcellindex?: Array;
/** Returns the current item.
*/
@@ -13968,6 +13930,60 @@ export interface CellClickEventArgs {
rowIndex?: number;
}
+export interface ContextOpenEventArgs {
+
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+
+ /** Returns the Kanban model.
+ */
+ model?: any;
+
+ /** Returns the name of the event.
+ */
+ type?: string;
+
+ /** Returns the current item.
+ */
+ currentTarget?: any;
+
+ /** Returns the status of contextmenu item which denotes its enabled state.
+ */
+ status?: boolean;
+
+ /** Returns the target item.
+ */
+ target?: any;
+}
+
+export interface ContextClickEventArgs {
+
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+
+ /** Returns the Kanban model.
+ */
+ model?: any;
+
+ /** Returns the name of the event.
+ */
+ type?: string;
+
+ /** Returns the current item.
+ */
+ currentTarget?: any;
+
+ /** Returns the status of contextmenu item which denotes its enabled state.
+ */
+ status?: boolean;
+
+ /** Returns the target item.
+ */
+ target?: any;
+}
+
export interface DataBoundEventArgs {
/** Returns the cancel option value.
@@ -14090,6 +14106,37 @@ export interface LoadEventArgs {
type?: string;
}
+export interface QueryCellInfoEventArgs {
+
+ /** Returns Kanban card.
+ */
+ card?: any;
+
+ /** Returns Kanban card.
+ */
+ cell?: any;
+
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+
+ /** Returns current row record object (JSON).
+ */
+ data?: any;
+
+ /** Returns the column object.
+ */
+ column?: any;
+
+ /** Returns the Kanban model.
+ */
+ model?: any;
+
+ /** Returns the name of the event.
+ */
+ type?: string;
+}
+
export interface ToolbarClickEventArgs {
/** Returns the cancel option value.
@@ -14129,64 +14176,6 @@ export interface ToolbarClickEventArgs {
toolbarData?: any;
}
-export interface QueryCellInfoEventArgs {
-
- /** Returns Kanban card.
- */
- card?: any;
-
- /** Returns Kanban card.
- */
- cell?: any;
-
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-
- /** Returns current row record object (JSON).
- */
- data?: any;
-
- /** Returns the column object.
- */
- column?: any;
-
- /** Returns the Kanban model.
- */
- model?: any;
-
- /** Returns the name of the event.
- */
- type?: string;
-}
-
-export interface ContextOpenEventArgs {
-
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-
- /** Returns the Kanban model.
- */
- model?: any;
-
- /** Returns the name of the event.
- */
- type?: string;
-
- /** Returns the current item.
- */
- currentTarget?: any;
-
- /** Returns the status of contextmenu item which denotes its enabled state.
- */
- status?: boolean;
-
- /** Returns the target item.
- */
- target?: any;
-}
-
export interface SwimlaneSettingsUnassignedGroup {
/** To enable or disable unassigned category change with swim lane key values.
@@ -14197,7 +14186,7 @@ export interface SwimlaneSettingsUnassignedGroup {
/** To set the user defined values which are need to categorized as unassigned category swim lane groups.
* @Default {[null,undefined,]}
*/
- keys?: any[];
+ keys?: Array;
}
export interface SwimlaneSettings {
@@ -14246,17 +14235,17 @@ export interface ContextMenuSettings {
/** Gets or sets a value that indicates the list of items needs to be disable from default context menu items.
* @Default {Array}
*/
- disableDefaultItems?: any[];
+ disableDefaultItems?: Array;
/** Its used to add specific default context menu items.
* @Default {Array}
*/
- menuItems?: any[];
+ menuItems?: Array;
/** Gets or sets a value that indicates whether to add custom contextMenu items.
* @Default {Array}
*/
- customMenuItems?: ContextMenuSettingsCustomMenuItem[];
+ customMenuItems?: Array;
}
export interface ColumnsTotalCount {
@@ -14417,7 +14406,7 @@ export interface EditSettings {
/** Get or sets an object that indicates whether to customize the editing fields of Kanban card.
* @Default {Array}
*/
- editItems?: EditSettingsEditItem[];
+ editItems?: Array;
/** This specifies the id of the template which is require to be edited using the External edit form.
* @Default {null}
@@ -14514,7 +14503,7 @@ export interface SearchSettings {
/** To customize the fields the searching operation can be perform.
* @Default {Array}
*/
- fields?: any[];
+ fields?: Array;
/** To customize the searching string.
*/
@@ -14549,7 +14538,7 @@ export interface StackedHeaderRow {
/** Gets or sets a value that indicates whether to add stacked header columns into the stacked header rows.
* @Default {Array}
*/
- stackedHeaderColumns?: StackedHeaderRowsStackedHeaderColumn[];
+ stackedHeaderColumns?: Array;
}
export interface TooltipSettings {
@@ -14578,7 +14567,7 @@ export interface Workflow {
allowedTransitions?: string;
}
-enum Target {
+enum Target{
///Sets context menu to Kanban header
Header,
@@ -14594,7 +14583,7 @@ enum Target {
}
-enum EditMode {
+enum EditMode{
///Creates Kanban with editMode as Dialog
Dialog,
@@ -14610,12 +14599,12 @@ enum EditMode {
}
-enum EditingType {
+enum EditingType{
///Allows to set edit type as string edit type
String,
- ///Allows to set edit type as numeric edit type
+ ///Allows to set edit type as numeric edit type
Numeric,
///Allows to set edit type as drop down edit type
@@ -14635,7 +14624,7 @@ enum EditingType {
}
-enum FormPosition {
+enum FormPosition{
///Form position is bottom.
Bottom,
@@ -14645,7 +14634,7 @@ enum FormPosition {
}
-enum SelectionType {
+enum SelectionType{
///Support for Single selection in Kanban
Single,
@@ -14658,10 +14647,11 @@ enum SelectionType {
class Rotator extends ej.Widget {
static fn: Rotator;
- constructor(element: JQuery | Element, options?: Rotator.Model);
+ constructor(element: JQuery, options?: Rotator.Model);
+ constructor(element: Element, options?: Rotator.Model);
static Locale: any;
- model: Rotator.Model;
- defaults: Rotator.Model;
+ model:Rotator.Model;
+ defaults:Rotator.Model;
/** Disables the Rotator control.
* @returns {void}
@@ -14711,7 +14701,7 @@ class Rotator extends ej.Widget {
*/
updateTemplateById(index: number, id: string): void;
}
-export namespace Rotator {
+export module Rotator{
export interface Model {
@@ -14783,8 +14773,7 @@ export interface Model {
*/
isResponsive?: boolean;
- /** Specifies the number of Rotator Items to navigate on a single click (next/previous/play buttons).
- * The navigateSteps property value must be less than or equal to the displayItemsCount property value.
+ /** Specifies the number of Rotator Items to navigate on a single click (next/previous/play buttons). The navigateSteps property value must be less than or equal to the displayItemsCount property value.
* @Default {1}
*/
navigateSteps?: string|number;
@@ -14804,8 +14793,7 @@ export interface Model {
*/
query?: string;
- /** If the Rotator Item is an image, you can specify a caption for the Rotator Item. The caption text for each Rotator Item must be set by using the title attribute of the respective tag.
- * The caption cannot be displayed if multiple Rotator Items are present.
+ /** If the Rotator Item is an image, you can specify a caption for the Rotator Item. The caption text for each Rotator Item must be set by using the title attribute of the respective tag. The caption cannot be displayed if multiple Rotator Items are present.
* @Default {false}
*/
showCaption?: boolean;
@@ -14825,8 +14813,7 @@ export interface Model {
*/
showPlayButton?: boolean;
- /** Turns on or off thumbnail support in the Rotator control. Thumbnail is used to navigate between slides. Thumbnail supports only single slide transition
- * You must specify the source for thumbnail elements through the thumbnailSourceID property.
+ /** Turns on or off thumbnail support in the Rotator control. Thumbnail is used to navigate between slides. Thumbnail supports only single slide transition You must specify the source for thumbnail elements through the thumbnailSourceID property.
* @Default {false}
*/
showThumbnail?: boolean;
@@ -14857,7 +14844,7 @@ export interface Model {
/** The templateId enables to bind multiple customized template items in Rotator.
* @Default {null}
*/
- templateId?: any[];
+ templateId?: Array;
/** Specifies the source for thumbnail elements.
* @Default {null}
@@ -14865,25 +14852,25 @@ export interface Model {
thumbnailSourceID?: any;
/** This event is fired when the Rotator slides are changed. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** This event is fired when the Rotator control is initialized. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** This event is fired when the Rotator control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** This event is fired when a pager is clicked. */
- pagerClick?(e: PagerClickEventArgs): void;
+ pagerClick? (e: PagerClickEventArgs): void;
/** This event is fired when enableAutoPlay is started. */
- start?(e: StartEventArgs): void;
+ start? (e: StartEventArgs): void;
/** This event is fired when autoplay is stopped or paused. */
- stop?(e: StopEventArgs): void;
+ stop? (e: StopEventArgs): void;
/** This event is fired when a thumbnail pager is clicked. */
- thumbItemClick?(e: ThumbItemClickEventArgs): void;
+ thumbItemClick? (e: ThumbItemClickEventArgs): void;
}
export interface ChangeEventArgs {
@@ -15058,7 +15045,7 @@ export interface Fields {
url?: string;
}
-enum PagerPosition {
+enum PagerPosition{
///string
BottomLeft,
@@ -15083,10 +15070,11 @@ enum PagerPosition {
class RTE extends ej.Widget {
static fn: RTE;
- constructor(element: JQuery | Element, options?: RTE.Model);
+ constructor(element: JQuery, options?: RTE.Model);
+ constructor(element: Element, options?: RTE.Model);
static Locale: any;
- model: RTE.Model;
- defaults: RTE.Model;
+ model:RTE.Model;
+ defaults:RTE.Model;
/** Returns the range object.
* @returns {any}
@@ -15159,21 +15147,20 @@ class RTE extends ej.Widget {
insertMenuOption(): void;
/** Add a table column at the right or left of the specified cell
- * @param {boolean} If it’s true, add a column at the left of the cell, otherwise add a column at the right of the cell
+ * @param {boolean} If it’s true, add a column at the left of the cell, otherwise add a column at the right of the cell
* @param {JQuery} Column will be added based on the given cell element
* @returns {HTMLElement}
*/
insertColumn(before?: boolean, cell?: JQuery): HTMLElement;
/** To add a table row below or above the specified cell.
- * @param {boolean} If it’s true, add a row before the cell, otherwise add a row after the cell
+ * @param {boolean} If it’s true, add a row before the cell, otherwise add a row after the cell
* @param {JQuery} Row will be added based on the given cell element
* @returns {HTMLElement}
*/
insertRow(before?: boolean, cell?: JQuery): HTMLElement;
- /** This method helps to insert/paste the content at the current cursor (caret) position or the selected content to be replaced with our text by passing the value as parameter to the
- * pasteContent method in the Editor.
+ /** This method helps to insert/paste the content at the current cursor (caret) position or the selected content to be replaced with our text by passing the value as parameter to the pasteContent method in the Editor.
* @returns {void}
*/
pasteContent(): void;
@@ -15236,7 +15223,7 @@ class RTE extends ej.Widget {
*/
show(): void;
}
-export namespace RTE {
+export module RTE{
export interface Model {
@@ -15261,8 +15248,7 @@ export interface Model {
autoHeight?: boolean;
/** Sets the colorCode to display the color of the fontColor and backgroundColor in the font tools of the RTE.
- * @Default {[000000, FFFFFF, C4C4C4, ADADAD, 595959, 262626, 4f81bd, dbe5f1, b8cce4, 95b3d7, 366092, 244061, c0504d, f2dcdb, e5b9b7, d99694, 953734,632423, 9bbb59,
- ebf1dd, d7e3bc, c3d69b, 76923c, 4f6128, 8064a2, e5e0ec, ccc1d9, b2a2c7, 5f497a, 3f3151, f79646, fdeada, fbd5b5, fac08f,e36c09, 974806]}
+ * @Default {[000000, FFFFFF, C4C4C4, ADADAD, 595959, 262626, 4f81bd, dbe5f1, b8cce4, 95b3d7, 366092, 244061, c0504d, f2dcdb, e5b9b7, d99694, 953734,632423, 9bbb59, ebf1dd, d7e3bc, c3d69b, 76923c, 4f6128, 8064a2, e5e0ec, ccc1d9, b2a2c7, 5f497a, 3f3151, f79646, fdeada, fbd5b5, fac08f,e36c09, 974806]}
*/
colorCode?: any;
@@ -15280,7 +15266,7 @@ export interface Model {
*/
cssClass?: string;
- /** Enables/disables the RTE control’s accessibility or interaction.
+ /** Enables/disables the RTE control’s accessibility or interaction.
* @Default {True}
*/
enabled?: boolean;
@@ -15336,23 +15322,17 @@ export interface Model {
fileBrowser?: FileBrowser;
/** Sets the fontName in the RTE.
- * @Default {{text: Segoe UI, value: Segoe UI },{text: Arial, value: Arial,Helvetica,sans-serif },{text: Courier New, value: Courier New,Courier,Monospace },
- * {text: Georgia, value: Georgia,serif },{text: Impact, value: Impact,Charcoal,sans-serif },{text: Lucida Console, value: Lucida Console,Monaco,Monospace },
- * {text: Tahoma, value: Tahoma,Geneva,sans-serif },{text: Times New Roman, value: Times New Roman },{text: Trebuchet MS, value: Trebuchet MS,Helvetica,sans-serif },
- * {text: Verdana, value: Verdana,Geneva,sans-serif}}
+ * @Default {{text: Segoe UI, value: Segoe UI },{text: Arial, value: Arial,Helvetica,sans-serif },{text: Courier New, value: Courier New,Courier,Monospace },{text: Georgia, value: Georgia,serif },{text: Impact, value: Impact,Charcoal,sans-serif },{text: Lucida Console, value: Lucida Console,Monaco,Monospace },{text: Tahoma, value: Tahoma,Geneva,sans-serif },{text: Times New Roman, value: Times New Roman },{text: Trebuchet MS, value: Trebuchet MS,Helvetica,sans-serif },{text: Verdana, value: Verdana,Geneva,sans-serif}}
*/
fontName?: any;
/** Sets the fontSize in the RTE.
- * @Default {{ text: 1, value: 1 },{ text: 2 (10pt), value: 2 },{ text: 3 (12pt), value: 3 },{ text: 4 (14pt), value: 4 },{ text: 5 (18pt), value: 5 },
- * { text: 6 (24pt), value: 6 },{ text: 7 (36pt), value: 7 }}
+ * @Default {{ text: 1, value: 1 },{ text: 2 (10pt), value: 2 },{ text: 3 (12pt), value: 3 },{ text: 4 (14pt), value: 4 },{ text: 5 (18pt), value: 5 },{ text: 6 (24pt), value: 6 },{ text: 7 (36pt), value: 7 }}
*/
fontSize?: any;
/** Sets the format in the RTE.
- * @Default {{ text: Paragraph, value: <p>, spriteCssClass: e-paragraph },{ text: Quotation, value: <blockquote>, spriteCssClass: e-quotation },
- * { text: Heading 1, value: <h1>, spriteCssClass: e-h1 },{ text: Heading 2, value: <h2>, spriteCssClass: e-h2 },{ text: Heading 3, value: <h3>, spriteCssClass: e-h3 },
- * { text: Heading 4, value: <h4>, spriteCssClass: e-h4 },{ text: Heading 5, value: <h5>, spriteCssClass: e-h5 },{ text: Heading 6, value: <h6>, spriteCssClass: e-h6}}
+ * @Default {{ text: Paragraph, value: <p>, spriteCssClass: e-paragraph },{ text: Quotation, value: <blockquote>, spriteCssClass: e-quotation },{ text: Heading 1, value: <h1>, spriteCssClass: e-h1 },{ text: Heading 2, value: <h2>, spriteCssClass: e-h2 },{ text: Heading 3, value: <h3>, spriteCssClass: e-h3 },{ text: Heading 4, value: <h4>, spriteCssClass: e-h4 },{ text: Heading 5, value: <h5>, spriteCssClass: e-h5 },{ text: Heading 6, value: <h6>, spriteCssClass: e-h6}}
*/
format?: string;
@@ -15496,17 +15476,14 @@ export interface Model {
tableRows?: number;
/** Sets the tools in the RTE and gets the inner display order of the corresponding group element. Tools are dependent on the toolsList property.
- * @Default {formatStyle: [format],style: [bold, italic, underline, strikethrough],alignment: [justifyLeft, justifyCenter, justifyRight, justifyFull],lists: [unorderedList, orderedList],
- * indenting: [outdent, indent],doAction: [undo, redo],links: [createLink,removeLink],images: [image],media: [video],tables: [createTable, addRowAbove, addRowBelow,
- * addColumnLeft, addColumnRight, deleteRow, deleteColumn, deleteTable]],view:[“fullScreen”,zoomIn,zoomOut],print:[print]}
+ * @Default {formatStyle: [format],style: [bold, italic, underline, strikethrough],alignment: [justifyLeft, justifyCenter, justifyRight, justifyFull],lists: [unorderedList, orderedList],indenting: [outdent, indent],doAction: [undo, redo],links: [createLink,removeLink],images: [image],media: [video],tables: [createTable, addRowAbove, addRowBelow, addColumnLeft, addColumnRight, deleteRow, deleteColumn, deleteTable]],view:[“fullScreenâ€,zoomIn,zoomOut],print:[print]}
*/
tools?: Tools;
- /** Specifies the list of groups and order of those groups displayed in the RTE toolbar. The toolsList property is used to get the root group order and tools property is used to get the
- * inner order of the corresponding groups displayed. When the value is not specified, it gets its default display order and tools.
+ /** Specifies the list of groups and order of those groups displayed in the RTE toolbar. The toolsList property is used to get the root group order and tools property is used to get the inner order of the corresponding groups displayed. When the value is not specified, it gets its default display order and tools.
* @Default {[formatStyle, font, style, effects, alignment, lists, indenting, clipboard, doAction, clear, links, images, media, tables, casing,view, customTools,print,edit]}
*/
- toolsList?: any[];
+ toolsList?: Array;
/** Display the hints for the tools in the Toolbar.
* @Default {{ associate: mouseenter, showShadow: true, position: { stem: { horizontal: left, vertical: top } }, tip: { size: { width: 5, height: 5 }, isBalloon: false }}
@@ -15544,31 +15521,31 @@ export interface Model {
zoomStep?: string|number;
/** Fires when changed successfully. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when the RTE is created successfully */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when mouse click on menu items. */
- contextMenuClick?(e: ContextMenuClickEventArgs): void;
+ contextMenuClick? (e: ContextMenuClickEventArgs): void;
/** Fires before the RTE is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when the commands are executed successfully. */
- execute?(e: ExecuteEventArgs): void;
+ execute? (e: ExecuteEventArgs): void;
/** Fires when the keydown action is successful. */
- keydown?(e: KeydownEventArgs): void;
+ keydown? (e: KeydownEventArgs): void;
/** Fires when the keyup action is successful. */
- keyup?(e: KeyupEventArgs): void;
+ keyup? (e: KeyupEventArgs): void;
/** Fires before the RTE Edit area is rendered and after the toolbar is rendered. */
- preRender?(e: PreRenderEventArgs): void;
+ preRender? (e: PreRenderEventArgs): void;
/** Fires when the text is selected in the text area */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface ChangeEventArgs {
@@ -15831,92 +15808,93 @@ export interface Tools {
/** Specifies the casing tools and the display order of this tool in the RTE toolbar.
*/
- casing?: any[];
+ casing?: Array;
/** Specifies the clear tools and the display order of this tool in the RTE toolbar.
*/
- clear?: any[];
+ clear?: Array;
/** Specifies the clipboard tools and the display order of this tool in the RTE toolbar.
*/
- clipboard?: any[];
+ clipboard?: Array;
/** Specifies the edit tools and the displays tool in the RTE toolbar.
*/
- edit?: any[];
+ edit?: Array;
/** Specifies the doAction tools and the display order of this tool in the RTE toolbar.
*/
- doAction?: any[];
+ doAction?: Array;
/** Specifies the effect of tools and the display order of this tool in RTE toolbar.
*/
- effects?: any[];
+ effects?: Array;
/** Specifies the font tools and the display order of this tool in the RTE toolbar.
*/
- font?: any[];
+ font?: Array;
/** Specifies the formatStyle tools and the display order of this tool in the RTE toolbar.
*/
- formatStyle?: any[];
+ formatStyle?: Array;
/** Specifies the image tools and the display order of this tool in the RTE toolbar.
*/
- images?: any[];
+ images?: Array;
/** Specifies the indent tools and the display order of this tool in the RTE toolbar.
*/
- indenting?: any[];
+ indenting?: Array;
/** Specifies the link tools and the display order of this tool in the RTE toolbar.
*/
- links?: any[];
+ links?: Array;
/** Specifies the list tools and the display order of this tool in the RTE toolbar.
*/
- lists?: any[];
+ lists?: Array;
/** Specifies the media tools and the display order of this tool in the RTE toolbar.
*/
- media?: any[];
+ media?: Array;
/** Specifies the style tools and the display order of this tool in the RTE toolbar.
*/
- style?: any[];
+ style?: Array;
/** Specifies the table tools and the display order of this tool in the RTE toolbar.
*/
- tables?: any[];
+ tables?: Array;
/** Specifies the view tools and the display order of this tool in the RTE toolbar.
*/
- view?: any[];
+ view?: Array;
/** Specifies the print tools and the display order of this tool in the RTE toolbar.
*/
- print?: any[];
+ print?: Array;
/** Specifies the importExport tools and the display order of this tool in the RTE toolbar.
*/
- importExport?: any[];
+ importExport?: Array;
/** Specifies the customOrderedList tools and the display order of this tool in the RTE toolbar.
*/
- customOrderedList?: ToolsCustomOrderedList[];
+ customOrderedList?: Array;
/** Specifies the customUnOrderedList tools and the display order of this tool in the RTE toolbar.
*/
- customUnorderedList?: ToolsCustomUnorderedList[];
+ customUnorderedList?: Array;
}
}
class Slider extends ej.Widget {
static fn: Slider;
- constructor(element: JQuery | Element, options?: Slider.Model);
+ constructor(element: JQuery, options?: Slider.Model);
+ constructor(element: Element, options?: Slider.Model);
static Locale: any;
- model: Slider.Model;
- defaults: Slider.Model;
+ model:Slider.Model;
+ defaults:Slider.Model;
/** To disable the slider
* @returns {void}
@@ -15938,7 +15916,7 @@ class Slider extends ej.Widget {
*/
setValue(): void;
}
-export namespace Slider {
+export module Slider{
export interface Model {
@@ -16054,7 +16032,7 @@ export interface Model {
/** Specifies the values of the range slider. But it's not applicable for default and minRange sliders. we can use value property for default and minRange sliders.
* @Default {[minValue,maxValue]}
*/
- values?: any[];
+ values?: Array;
/** Specifies the width of the slider.
* @Default {100%}
@@ -16062,25 +16040,25 @@ export interface Model {
width?: string;
/** Fires once Slider control value is changed successfully. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires once Slider control has been created successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when Slider control has been destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires once Slider control is sliding successfully. */
- slide?(e: SlideEventArgs): void;
+ slide? (e: SlideEventArgs): void;
/** Fires once Slider control is started successfully. */
- start?(e: StartEventArgs): void;
+ start? (e: StartEventArgs): void;
/** Fires when Slider control is stopped successfully. */
- stop?(e: StopEventArgs): void;
+ stop? (e: StopEventArgs): void;
/** Fires when display the custom tooltip */
- tooltipChange?(e: TooltipChangeEventArgs): void;
+ tooltipChange? (e: TooltipChangeEventArgs): void;
}
export interface ChangeEventArgs {
@@ -16109,7 +16087,7 @@ export interface ChangeEventArgs {
*/
value?: number;
- /** returns true if event triggered by interaction else returns false.
+ /** returns true if event triggered by interaction else returns false.
*/
isInteraction?: boolean;
}
@@ -16226,13 +16204,12 @@ export interface StopEventArgs {
}
export interface TooltipChangeEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
}
}
-namespace slider {
-enum sliderType {
+module slider
+{
+enum sliderType
+{
//Shows default slider
Default,
//Shows minRange slider
@@ -16244,10 +16221,11 @@ Range,
class SplitButton extends ej.Widget {
static fn: SplitButton;
- constructor(element: JQuery | Element, options?: SplitButton.Model);
+ constructor(element: JQuery, options?: SplitButton.Model);
+ constructor(element: Element, options?: SplitButton.Model);
static Locale: any;
- model: SplitButton.Model;
- defaults: SplitButton.Model;
+ model:SplitButton.Model;
+ defaults:SplitButton.Model;
/** Destroy the split button widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
* @returns {void}
@@ -16274,7 +16252,7 @@ class SplitButton extends ej.Widget {
*/
show(): void;
}
-export namespace SplitButton {
+export module SplitButton{
export interface Model {
@@ -16308,7 +16286,7 @@ export interface Model {
enableRTL?: boolean;
/** Specifies the height of the Split Button.
- * @Default {“”}
+ * @Default {“â€}
*/
height?: string|number;
@@ -16349,36 +16327,36 @@ export interface Model {
text?: string;
/** Specifies the width of the Split Button.
- * @Default {“”}
+ * @Default {“â€}
*/
width?: string|number;
/** Fires before menu of the split button control is opened. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires when Button control is clicked successfully */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** Fires before the list content of Button control is closed */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires after Split Button control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the Split Button is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when a menu item is Hovered out successfully */
- itemMouseOut?(e: ItemMouseOutEventArgs): void;
+ itemMouseOut? (e: ItemMouseOutEventArgs): void;
/** Fires when a menu item is Hovered in successfully */
- itemMouseOver?(e: ItemMouseOverEventArgs): void;
+ itemMouseOver? (e: ItemMouseOverEventArgs): void;
/** Fires when a menu item is clicked successfully */
- itemSelected?(e: ItemSelectedEventArgs): void;
+ itemSelected? (e: ItemSelectedEventArgs): void;
/** Fires before the list content of Button control is opened */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
}
export interface BeforeOpenEventArgs {
@@ -16564,7 +16542,8 @@ export interface OpenEventArgs {
type?: string;
}
}
-enum ArrowPosition {
+enum ArrowPosition
+{
//To set Left arrowPosition of the split button
Left,
//To set Right arrowPosition of the split button
@@ -16577,10 +16556,11 @@ Bottom,
class Splitter extends ej.Widget {
static fn: Splitter;
- constructor(element: JQuery | Element, options?: Splitter.Model);
+ constructor(element: JQuery, options?: Splitter.Model);
+ constructor(element: Element, options?: Splitter.Model);
static Locale: any;
- model: Splitter.Model;
- defaults: Splitter.Model;
+ model:Splitter.Model;
+ defaults:Splitter.Model;
/** To add a new pane to splitter control.
* @param {string} content of pane.
@@ -16613,7 +16593,7 @@ class Splitter extends ej.Widget {
*/
removeItem(index: number): void;
}
-export namespace Splitter {
+export module Splitter{
export interface Model {
@@ -16628,7 +16608,7 @@ export interface Model {
animationSpeed?: number;
/** Specify the CSS class to splitter control to achieve custom theme.
- * @Default {“”}
+ * @Default {“â€}
*/
cssClass?: string;
@@ -16658,14 +16638,14 @@ export interface Model {
isResponsive?: boolean;
/** Specify the orientation for splitter control. See orientation
- * @Default {ej.orientation.Horizontal or “horizontal”}
+ * @Default {ej.orientation.Horizontal or “horizontalâ€}
*/
orientation?: ej.Orientation|string;
/** Specify properties for each pane like paneSize, minSize, maxSize, collapsible, expandable, resizable.
* @Default {[]}
*/
- properties?: any[];
+ properties?: Array;
/** Specify width for splitter control.
* @Default {null}
@@ -16673,19 +16653,19 @@ export interface Model {
width?: string;
/** Fires before expanding / collapsing the split pane of splitter control. */
- beforeExpandCollapse?(e: BeforeExpandCollapseEventArgs): void;
+ beforeExpandCollapse? (e: BeforeExpandCollapseEventArgs): void;
/** Fires when splitter control pane has been created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when splitter control pane has been destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when expand / collapse operation in splitter control pane has been performed successfully. */
- expandCollapse?(e: ExpandCollapseEventArgs): void;
+ expandCollapse? (e: ExpandCollapseEventArgs): void;
/** Fires when resize in splitter control pane. */
- resize?(e: ResizeEventArgs): void;
+ resize? (e: ResizeEventArgs): void;
}
export interface BeforeExpandCollapseEventArgs {
@@ -16802,12 +16782,13 @@ export interface ResizeEventArgs {
class Tab extends ej.Widget {
static fn: Tab;
- constructor(element: JQuery | Element, options?: Tab.Model);
+ constructor(element: JQuery, options?: Tab.Model);
+ constructor(element: Element, options?: Tab.Model);
static Locale: any;
- model: Tab.Model;
- defaults: Tab.Model;
+ model:Tab.Model;
+ defaults:Tab.Model;
- /** Add new tab items with given name, URL and given index position, if index null it’s add last item.
+ /** Add new tab items with given name, URL and given index position, if index null it’s add last item.
* @param {string} URL name / tab id.
* @param {string} Tab Display name.
* @param {number} Index position to placed , this is optional.
@@ -16860,7 +16841,7 @@ class Tab extends ej.Widget {
*/
showItem(index: number): void;
}
-export namespace Tab {
+export module Tab{
export interface Model {
@@ -16945,14 +16926,14 @@ export interface Model {
/** Specifies to hide a pane of Tab control.
* @Default {[]}
*/
- hiddenItemIndex?: any[];
+ hiddenItemIndex?: Array;
/** Specifies the HTML Attributes of the Tab.
* @Default {{}}
*/
htmlAttributes?: any;
- /** The idPrefix property appends the given string on the added tab item id’s in runtime.
+ /** The idPrefix property appends the given string on the added tab item id’s in runtime.
* @Default {ej-tab-}
*/
idPrefix?: string;
@@ -16977,43 +16958,43 @@ export interface Model {
*/
showRoundedCorner?: boolean;
- /** Set the width for outer panel element, if not it’s take parent width.
+ /** Set the width for outer panel element, if not it’s take parent width.
* @Default {null}
*/
width?: string|number;
/** Triggered after a tab item activated. */
- itemActive?(e: ItemActiveEventArgs): void;
+ itemActive? (e: ItemActiveEventArgs): void;
/** Triggered before AJAX content has been loaded. */
- ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
+ ajaxBeforeLoad? (e: AjaxBeforeLoadEventArgs): void;
/** Triggered if error occurs in AJAX request. */
- ajaxError?(e: AjaxErrorEventArgs): void;
+ ajaxError? (e: AjaxErrorEventArgs): void;
/** Triggered after AJAX content load action. */
- ajaxLoad?(e: AjaxLoadEventArgs): void;
+ ajaxLoad? (e: AjaxLoadEventArgs): void;
/** Triggered after a tab item activated. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ ajaxSuccess? (e: AjaxSuccessEventArgs): void;
/** Triggered before a tab item activated. */
- beforeActive?(e: BeforeActiveEventArgs): void;
+ beforeActive? (e: BeforeActiveEventArgs): void;
/** Triggered before a tab item remove. */
- beforeItemRemove?(e: BeforeItemRemoveEventArgs): void;
+ beforeItemRemove? (e: BeforeItemRemoveEventArgs): void;
/** Triggered before a tab item Create. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Triggered before a tab item destroy. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Triggered after new tab item add */
- itemAdd?(e: ItemAddEventArgs): void;
+ itemAdd? (e: ItemAddEventArgs): void;
/** Triggered after tab item removed. */
- itemRemove?(e: ItemRemoveEventArgs): void;
+ itemRemove? (e: ItemRemoveEventArgs): void;
}
export interface ItemActiveEventArgs {
@@ -17338,12 +17319,12 @@ export interface AjaxSettings {
type?: string;
}
-enum Position {
+enum Position{
///Tab headers display to top position
Top,
- ///Tab headers display to bottom position
+ ///Tab headers display to bottom position
Bottom,
///Tab headers display to left position.
@@ -17354,7 +17335,7 @@ enum Position {
}
-enum HeightAdjustMode {
+enum HeightAdjustMode{
///string
None,
@@ -17373,10 +17354,11 @@ enum HeightAdjustMode {
class TagCloud extends ej.Widget {
static fn: TagCloud;
- constructor(element: JQuery | Element, options?: TagCloud.Model);
+ constructor(element: JQuery, options?: TagCloud.Model);
+ constructor(element: Element, options?: TagCloud.Model);
static Locale: any;
- model: TagCloud.Model;
- defaults: TagCloud.Model;
+ model:TagCloud.Model;
+ defaults:TagCloud.Model;
/** Inserts a new item into the TagCloud
* @param {string} Insert new item into the TagCloud
@@ -17403,7 +17385,7 @@ class TagCloud extends ej.Widget {
*/
removeAt(position: number): void;
}
-export namespace TagCloud {
+export module TagCloud{
export interface Model {
@@ -17467,19 +17449,19 @@ export interface Model {
titleText?: string;
/** Event triggers when the TagCloud items are clicked */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** Event triggers when the TagCloud are created */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Event triggers when the TagCloud are destroyed */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Event triggers when the cursor leaves out from a tag item */
- mouseout?(e: MouseoutEventArgs): void;
+ mouseout? (e: MouseoutEventArgs): void;
/** Event triggers when the cursor hovers on a tag item */
- mouseover?(e: MouseoverEventArgs): void;
+ mouseover? (e: MouseoverEventArgs): void;
}
export interface ClickEventArgs {
@@ -17600,7 +17582,8 @@ export interface Fields {
url?: string;
}
}
-enum Format {
+enum Format
+{
//To render the TagCloud items in cloud format
Cloud,
//To render the TagCloud items in list format
@@ -17609,10 +17592,11 @@ List,
class TimePicker extends ej.Widget {
static fn: TimePicker;
- constructor(element: JQuery | Element, options?: TimePicker.Model);
+ constructor(element: JQuery, options?: TimePicker.Model);
+ constructor(element: Element, options?: TimePicker.Model);
static Locale: any;
- model: TimePicker.Model;
- defaults: TimePicker.Model;
+ model:TimePicker.Model;
+ defaults:TimePicker.Model;
/** Allows you to disable the TimePicker.
* @returns {void}
@@ -17644,7 +17628,7 @@ class TimePicker extends ej.Widget {
*/
show(): void;
}
-export namespace TimePicker {
+export module TimePicker{
export interface Model {
@@ -17677,8 +17661,7 @@ export interface Model {
*/
enableRTL?: boolean;
- /** When the enableStrictMode is set as true it allows the value outside of the range and also indicate with red color border,
- * otherwise it internally changed to the min or max range value based an input value.
+ /** When the enableStrictMode is set as true it allows the value outside of the range and also indicate with red color border, otherwise it internally changed to the min or max range value based an input value.
* @Default {false}
*/
enableStrictMode?: boolean;
@@ -17732,7 +17715,7 @@ export interface Model {
*/
popupWidth?: string|number;
- /** Toggles the readonly state of the TimePicker
+ /** Toggles the readonly state of the TimePicker. When the widget is readOnly, it doesn’t allow your input.
* @Default {false}
*/
readOnly?: boolean;
@@ -17767,34 +17750,34 @@ export interface Model {
width?: string|number;
/** Fires when the time value changed in the TimePicker. */
- beforeChange?(e: BeforeChangeEventArgs): void;
+ beforeChange? (e: BeforeChangeEventArgs): void;
/** Fires when the TimePicker popup before opened. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ beforeOpen? (e: BeforeOpenEventArgs): void;
/** Fires when the time value changed in the TimePicker. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when the TimePicker popup closed. */
- close?(e: CloseEventArgs): void;
+ close? (e: CloseEventArgs): void;
/** Fires when create TimePicker successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when the TimePicker is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires when the TimePicker control gets focus. */
- focusIn?(e: FocusInEventArgs): void;
+ focusIn? (e: FocusInEventArgs): void;
/** Fires when the TimePicker control get lost focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Fires when the TimePicker popup opened. */
- open?(e: OpenEventArgs): void;
+ open? (e: OpenEventArgs): void;
/** Fires when the value is selected from the TimePicker dropdown list. */
- select?(e: SelectEventArgs): void;
+ select? (e: SelectEventArgs): void;
}
export interface BeforeChangeEventArgs {
@@ -18014,10 +17997,11 @@ export interface SelectEventArgs {
class ToggleButton extends ej.Widget {
static fn: ToggleButton;
- constructor(element: JQuery | Element, options?: ToggleButton.Model);
+ constructor(element: JQuery, options?: ToggleButton.Model);
+ constructor(element: Element, options?: ToggleButton.Model);
static Locale: any;
- model: ToggleButton.Model;
- defaults: ToggleButton.Model;
+ model:ToggleButton.Model;
+ defaults:ToggleButton.Model;
/** Allows you to destroy the ToggleButton widget.
* @returns {void}
@@ -18034,7 +18018,7 @@ class ToggleButton extends ej.Widget {
*/
enable(): void;
}
-export namespace ToggleButton {
+export module ToggleButton{
export interface Model {
@@ -18134,16 +18118,16 @@ export interface Model {
width?: number|string;
/** Fires when ToggleButton control state is changed successfully. */
- change?(e: ChangeEventArgs): void;
+ change? (e: ChangeEventArgs): void;
/** Fires when ToggleButton control is clicked successfully. */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** Fires when ToggleButton control is created successfully. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires when ToggleButton control is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
}
export interface ChangeEventArgs {
@@ -18221,10 +18205,11 @@ export interface DestroyEventArgs {
class Toolbar extends ej.Widget {
static fn: Toolbar;
- constructor(element: JQuery | Element, options?: Toolbar.Model);
+ constructor(element: JQuery, options?: Toolbar.Model);
+ constructor(element: Element, options?: Toolbar.Model);
static Locale: any;
- model: Toolbar.Model;
- defaults: Toolbar.Model;
+ model:Toolbar.Model;
+ defaults:Toolbar.Model;
/** Deselect the specified Toolbar item.
* @param {any} The element need to be deselected
@@ -18311,7 +18296,7 @@ class Toolbar extends ej.Widget {
*/
show(): void;
}
-export namespace Toolbar {
+export module Toolbar{
export interface Model {
@@ -18327,7 +18312,7 @@ export interface Model {
/** Disables an Item or set of Items that are enabled in the Toolbar
* @Default {[]}
*/
- disabledItemIndices?: any[];
+ disabledItemIndices?: Array;
/** Specifies the Toolbar control state.
* @Default {true}
@@ -18337,7 +18322,7 @@ export interface Model {
/** Enables an Item or set of Items that are disabled in the Toolbar
* @Default {[]}
*/
- enabledItemIndices?: any[];
+ enabledItemIndices?: Array;
/** Specifies enableRTL property to align the Toolbar control from right to left direction.
* @Default {false}
@@ -18404,28 +18389,28 @@ export interface Model {
width?: number|string;
/** Fires after Toolbar control is clicked. */
- click?(e: ClickEventArgs): void;
+ click? (e: ClickEventArgs): void;
/** Fires after Toolbar control is created. */
- create?(e: CreateEventArgs): void;
+ create? (e: CreateEventArgs): void;
/** Fires after Toolbar control is focused. */
- focusOut?(e: FocusOutEventArgs): void;
+ focusOut? (e: FocusOutEventArgs): void;
/** Fires when the Toolbar is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ destroy? (e: DestroyEventArgs): void;
/** Fires after Toolbar control item is hovered. */
- itemHover?(e: ItemHoverEventArgs): void;
+ itemHover? (e: ItemHoverEventArgs): void;
/** Fires after mouse leave from Toolbar control item. */
- itemLeave?(e: ItemLeaveEventArgs): void;
+ itemLeave? (e: ItemLeaveEventArgs): void;
/** Fires when the overflow popup of toolbar is opened. */
- overflowOpen?(e: OverflowOpenEventArgs): void;
+ overflowOpen? (e: OverflowOpenEventArgs): void;
/** Fires when the overflow popup of toolbar is closed. */
- overflowClose?(e: OverflowCloseEventArgs): void;
+ overflowClose? (e: OverflowCloseEventArgs): void;
}
export interface ClickEventArgs {
@@ -18686,7 +18671,7 @@ export interface Items {
template?: string;
}
-enum ResponsiveType {
+enum ResponsiveType{
///To display the toolbar overflow items as popup
Popup,
@@ -18699,10 +18684,11 @@ enum ResponsiveType {
class TreeView extends ej.Widget {
static fn: TreeView;
- constructor(element: JQuery | Element, options?: TreeView.Model);
+ constructor(element: JQuery, options?: TreeView.Model);
+ constructor(element: Element, options?: TreeView.Model);
static Locale: any;
- model: TreeView.Model;
- defaults: TreeView.Model;
+ model:TreeView.Model;
+ defaults:TreeView.Model;
/** To add a Node or collection of nodes in TreeView. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
* @param {string|any} New node text or JSON object
@@ -18716,7 +18702,7 @@ class TreeView extends ej.Widget {
* @param {string|any} ID of TreeView node/object of TreeView node
* @returns {void}
*/
- addNodes(collection: any|any[], target: string|any): void;
+ addNodes(collection: any|Array, target: string|any): void;
/** To check all the nodes in TreeView.
* @returns {void}
@@ -18727,10 +18713,9 @@ class TreeView extends ej.Widget {
* @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
* @returns {void}
*/
- checkNode(element: string|any|any[]): void;
+ checkNode(element: string|any|Array): void;
- /** This method is used to collapse all nodes in TreeView control. If you want to collapse all nodes up to the specific level in
- * TreeView control then we need to pass levelUntil as argument to this method.
+ /** This method is used to collapse all nodes in TreeView control. If you want to collapse all nodes up to the specific level in TreeView control then we need to pass levelUntil as argument to this method.
* @param {number} TreeView nodes will collapse until the given level
* @param {boolean} Weather exclude the hidden nodes of TreeView while collapse all nodes
* @returns {void}
@@ -18741,19 +18726,19 @@ class TreeView extends ej.Widget {
* @param {string|any|Array} ID of TreeView node|object of TreeView node/collection of ID/object of TreeView nodes
* @returns {void}
*/
- collapseNode(element: string|any|any[]): void;
+ collapseNode(element: string|any|Array): void;
/** To disable the node in the TreeView.
* @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
* @returns {void}
*/
- disableNode(element: string|any|any[]): void;
+ disableNode(element: string|any|Array): void;
/** To enable the node in the TreeView.
* @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
* @returns {void}
*/
- enableNode(element: string|any|any[]): void;
+ enableNode(element: string|any|Array): void;
/** To ensure that the TreeView node is visible in the TreeView. This method is useful if we need select a TreeView node dynamically.
* @param {string|any} ID of TreeView node/object of TreeView node
@@ -18761,8 +18746,7 @@ class TreeView extends ej.Widget {
*/
ensureVisible(element: string|any): boolean;
- /** This method is used to expand all nodes in TreeView control. If you want to expand all nodes up to the specific level in TreeView control
- * then we need to pass levelUntil as argument to this method.
+ /** This method is used to expand all nodes in TreeView control. If you want to expand all nodes up to the specific level in TreeView control then we need to pass levelUntil as argument to this method.
* @param {number} TreeView nodes will expand until the given level
* @param {boolean} Weather exclude the hidden nodes of TreeView while expand all nodes
* @returns {void}
@@ -18773,7 +18757,7 @@ class TreeView extends ej.Widget {
* @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
* @returns {void}
*/
- expandNode(element: string|any|any[]): void;
+ expandNode(element: string|any|Array): void;
/** To get currently checked nodes in TreeView.
* @returns {any}
@@ -18783,15 +18767,14 @@ class TreeView extends ej.Widget {
/** To get currently checked nodes indexes in TreeView.
* @returns {Array}
*/
- getCheckedNodesIndex(): any[];
+ getCheckedNodesIndex(): Array