From 4dc8904eeba35745bf2b566253a4d1606dbeb055 Mon Sep 17 00:00:00 2001 From: Mike Van Sickle Date: Fri, 22 Aug 2014 08:30:20 -0400 Subject: [PATCH 01/10] Update toString() method in dijit._WidgetBase to return type string instead of String to be compatible with Object's toString() method. --- dojo/dijit.d.ts | 194 +++++++++++++++++++------------------- dojo/dojo.d.ts | 91 ++---------------- dojo/dojox.app.d.ts | 2 +- dojo/dojox.atom.d.ts | 12 +-- dojo/dojox.av.d.ts | 12 +-- dojo/dojox.calc.d.ts | 28 +++--- dojo/dojox.calendar.d.ts | 32 +++---- dojo/dojox.charting.d.ts | 8 +- dojo/dojox.date.d.ts | 10 +- dojo/dojox.dgauges.d.ts | 46 ++++----- dojo/dojox.drawing.d.ts | 2 +- dojo/dojox.dtl.d.ts | 4 +- dojo/dojox.editor.d.ts | 26 ++--- dojo/dojox.embed.d.ts | 2 +- dojo/dojox.form.d.ts | 48 +++++----- dojo/dojox.fx.d.ts | 2 +- dojo/dojox.gauges.d.ts | 42 ++++----- dojo/dojox.geo.d.ts | 6 +- dojo/dojox.grid.d.ts | 24 ++--- dojo/dojox.highlight.d.ts | 2 +- dojo/dojox.image.d.ts | 6 +- dojo/dojox.layout.d.ts | 20 ++-- dojo/dojox.mobile.d.ts | 136 +++++++++++++------------- dojo/dojox.mvc.d.ts | 48 +++++----- dojo/dojox.sketch.d.ts | 2 +- dojo/dojox.treemap.d.ts | 2 +- dojo/dojox.widget.d.ts | 68 ++++++------- 27 files changed, 400 insertions(+), 475 deletions(-) diff --git a/dojo/dijit.d.ts b/dojo/dijit.d.ts index f95d636c0..c93db6de6 100644 --- a/dojo/dijit.d.ts +++ b/dojo/dijit.d.ts @@ -1767,7 +1767,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2617,7 +2617,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3331,7 +3331,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4194,7 +4194,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5076,7 +5076,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5721,7 +5721,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6396,7 +6396,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7362,7 +7362,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8187,7 +8187,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9281,7 +9281,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10233,7 +10233,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11066,7 +11066,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12254,7 +12254,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13516,7 +13516,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14734,7 +14734,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15793,7 +15793,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16943,7 +16943,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17813,7 +17813,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18639,7 +18639,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19443,7 +19443,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20350,7 +20350,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21453,7 +21453,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Detach menu from given node * @@ -22410,7 +22410,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -23327,7 +23327,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -24249,7 +24249,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -25156,7 +25156,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -26023,7 +26023,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -26976,7 +26976,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -27896,7 +27896,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -28778,7 +28778,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -29621,7 +29621,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -30422,7 +30422,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -31527,7 +31527,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -32681,7 +32681,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -34051,7 +34051,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -35049,7 +35049,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -36491,7 +36491,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -37654,7 +37654,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -38525,7 +38525,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -39398,7 +39398,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -40267,7 +40267,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -43574,7 +43574,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -44919,7 +44919,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -46129,7 +46129,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -47157,7 +47157,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -48115,7 +48115,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -49652,7 +49652,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -51016,7 +51016,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -52058,7 +52058,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -53150,7 +53150,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -54606,7 +54606,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -55877,7 +55877,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -56843,7 +56843,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -57974,7 +57974,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -59283,7 +59283,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -60137,7 +60137,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -61599,7 +61599,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * */ @@ -62509,7 +62509,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -63702,7 +63702,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -64716,7 +64716,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -65746,7 +65746,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -67036,7 +67036,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -68463,7 +68463,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -69493,7 +69493,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -70567,7 +70567,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -71788,7 +71788,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -72914,7 +72914,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -74218,7 +74218,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -75282,7 +75282,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -76385,7 +76385,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -77713,7 +77713,7 @@ declare module dijit { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -78734,7 +78734,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -79566,7 +79566,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -80440,7 +80440,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -81622,7 +81622,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -82673,7 +82673,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -83608,7 +83608,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -84460,7 +84460,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -85262,7 +85262,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -86101,7 +86101,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -87028,7 +87028,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -87898,7 +87898,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -88693,7 +88693,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -89513,7 +89513,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -90555,7 +90555,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -91494,7 +91494,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -92531,7 +92531,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -93610,7 +93610,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -94602,7 +94602,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -95520,7 +95520,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -96432,7 +96432,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -97326,7 +97326,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -98325,7 +98325,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -99286,7 +99286,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -100157,7 +100157,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -101132,7 +101132,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -104130,7 +104130,7 @@ declare module dijit { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojo.d.ts b/dojo/dojo.d.ts index a176d355c..9d6332ead 100644 --- a/dojo/dojo.d.ts +++ b/dojo/dojo.d.ts @@ -934,7 +934,7 @@ declare module dojo { /** * */ - toString(): String; + toString(): string; /** * Trace the promise. * Tracing allows you to transparently log progress, @@ -1862,7 +1862,7 @@ declare module dojo { /** * */ - toString(): String; + toString(): string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/Evented.html @@ -3152,82 +3152,7 @@ declare module dojo { * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ - interface declare{(className?: String, superclass?: Function, props?: Object): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.html - * - * Create a feature-rich constructor from compact notation. - * Create a constructor using a compact notation for inheritance and - * prototype extension. - * - * Mixin ancestors provide a type of multiple inheritance. - * Prototypes of mixin ancestors are copied to the new class: - * changes to mixin prototypes will not affect classes to which - * they have been mixed in. - * - * Ancestors can be compound classes created by this version of - * declare(). In complex cases all base classes are going to be - * linearized according to C3 MRO algorithm - * (see http://www.python.org/download/releases/2.3/mro/ for more - * details). - * - * "className" is cached in "declaredClass" property of the new class, - * if it was supplied. The immediate super class will be cached in - * "superclass" property of the new class. - * - * Methods in "props" will be copied and modified: "nom" property - * (the declared name of the method) will be added to all copied - * functions to help identify them for the internal machinery. Be - * very careful, while reusing methods: if you use the same - * function under different names, it can produce errors in some - * cases. - * - * It is possible to use constructors created "manually" (without - * declare()) as bases. They will be called as usual during the - * creation of an instance, their methods will be chained, and even - * called by "this.inherited()". - * - * Special property "-chains-" governs how to chain methods. It is - * a dictionary, which uses method names as keys, and hint strings - * as values. If a hint string is "after", this method will be - * called after methods of its base classes. If a hint string is - * "before", this method will be called before methods of its base - * classes. - * - * If "constructor" is not mentioned in "-chains-" property, it will - * be chained using the legacy mode: using "after" chaining, - * calling preamble() method before each constructor, if available, - * and calling postscript() after all constructors were executed. - * If the hint is "after", it is chained as a regular method, but - * postscript() will be called after the chain of constructors. - * "constructor" cannot be chained "before", but it allows - * a special hint string: "manual", which means that constructors - * are not going to be chained in any way, and programmer will call - * them manually using this.inherited(). In the latter case - * postscript() will be called after the construction. - * - * All chaining hints are "inherited" from base classes and - * potentially can be overridden. Be very careful when overriding - * hints! Make sure that all chained methods can work in a proposed - * manner of chaining. - * - * Once a method was chained, it is impossible to unchain it. The - * only exception is "constructor". You don't need to define a - * method in order to supply a chaining hint. - * - * If a method is chained, it cannot use this.inherited() because - * all other methods in the hierarchy will be called automatically. - * - * Usually constructors and initializers of any kind are chained - * using "after" and destructors of any kind are chained as - * "before". Note that chaining assumes that chained methods do not - * return any value: any returned value will be discarded. - * - * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. - * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). - * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". - */ - interface declare{(className?: String, superclass?: Function[], props?: Object): void} + interface declare{(className?: String, superclass?: any[], props?: Object): typeof dojo._base.declare.__DeclareCreatedObject} module declare { /** * Mix in properties skipping a constructor and decorating functions @@ -11519,7 +11444,7 @@ declare module dojo { /** * */ - toString(): String; + toString(): string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.window.html @@ -16135,7 +16060,7 @@ declare module dojo { /** * */ - toString(): String; + toString(): string; /** * Trace the promise. * Tracing allows you to transparently log progress, @@ -18108,7 +18033,7 @@ declare module dojo { * @param route A string or regular expression which will be used whenmonitoring hash changes. * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. */ - register(route: String, callback: Function): any; + register(route: String, callback: { (params?: Object, oldPath?: string, newPath?: string, preventDefault?: Function, stopImmediatePropagation?: Function):void }): any; /** * Registers a route to a handling callback * Given either a string or a regular expression, the router @@ -18136,7 +18061,7 @@ declare module dojo { * @param route A string or regular expression which will be used whenmonitoring hash changes. * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. */ - register(route: RegExp, callback: Function): any; + register(route: RegExp, callback: { (params?: Object, oldPath?: string, newPath?: string, preventDefault?: Function, stopImmediatePropagation?: Function): void }): any; /** * Registers a route to a handling callback, except before * any previously registered callbacks @@ -26353,7 +26278,7 @@ declare module dojo { /** * */ - toString(): String; + toString(): string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.regexp.html diff --git a/dojo/dojox.app.d.ts b/dojo/dojox.app.d.ts index 13231ac74..0a8a9fccc 100644 --- a/dojo/dojox.app.d.ts +++ b/dojo/dojox.app.d.ts @@ -2298,7 +2298,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.atom.d.ts b/dojo/dojox.atom.d.ts index 74f005af5..28ccfd31b 100644 --- a/dojo/dojox.atom.d.ts +++ b/dojo/dojox.atom.d.ts @@ -2444,7 +2444,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3400,7 +3400,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4333,7 +4333,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5173,7 +5173,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6226,7 +6226,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7074,7 +7074,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.av.d.ts b/dojo/dojox.av.d.ts index a98a846aa..47bf7b9bf 100644 --- a/dojo/dojox.av.d.ts +++ b/dojo/dojox.av.d.ts @@ -1135,7 +1135,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2069,7 +2069,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2926,7 +2926,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3761,7 +3761,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4591,7 +4591,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5469,7 +5469,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.calc.d.ts b/dojo/dojox.calc.d.ts index bffe546b1..4c4e4b293 100644 --- a/dojo/dojox.calc.d.ts +++ b/dojo/dojox.calc.d.ts @@ -810,7 +810,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1627,7 +1627,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2386,7 +2386,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3143,7 +3143,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4006,7 +4006,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4780,7 +4780,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5537,7 +5537,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6400,7 +6400,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7174,7 +7174,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7931,7 +7931,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8794,7 +8794,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9568,7 +9568,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10325,7 +10325,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11188,7 +11188,7 @@ * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.calendar.d.ts b/dojo/dojox.calendar.d.ts index c7784b151..42bf61575 100644 --- a/dojo/dojox.calendar.d.ts +++ b/dojo/dojox.calendar.d.ts @@ -785,7 +785,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2141,7 +2141,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3663,7 +3663,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4581,7 +4581,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5347,7 +5347,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6195,7 +6195,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7552,7 +7552,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8504,7 +8504,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9276,7 +9276,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10293,7 +10293,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11701,7 +11701,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13488,7 +13488,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15348,7 +15348,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17155,7 +17155,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18870,7 +18870,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20691,7 +20691,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.charting.d.ts b/dojo/dojox.charting.d.ts index 9dab77d6c..dd234d0d2 100644 --- a/dojo/dojox.charting.d.ts +++ b/dojo/dojox.charting.d.ts @@ -11037,7 +11037,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11717,7 +11717,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12394,7 +12394,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13080,7 +13080,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.date.d.ts b/dojo/dojox.date.d.ts index 571e5ef35..80087f30c 100644 --- a/dojo/dojox.date.d.ts +++ b/dojo/dojox.date.d.ts @@ -161,7 +161,7 @@ declare module dojox { * This returns a string representation of the date in "dd, MM, YYYY HH:MM:SS" format * */ - toString(): String; + toString(): string; /** * */ @@ -430,7 +430,7 @@ declare module dojox { * dependencies on dojox.date.locale and dojo.cldr. * */ - toString(): String; + toString(): string; /** * */ @@ -697,7 +697,7 @@ declare module dojox { * This returns a string representation of the date in "DDDD MMMM DD YYYY HH:MM:SS" format * */ - toString(): String; + toString(): string; /** * This function returns The stored time value in milliseconds * since midnight, January 1, 1970 UTC @@ -972,7 +972,7 @@ declare module dojox { * This returns a string representation of the date in "DDDD MMMM DD YYYY HH:MM:SS" format * */ - toString(): String; + toString(): string; /** * This function returns The stored time value in milliseconds * since midnight, January 1, 1970 UTC @@ -1195,7 +1195,7 @@ declare module dojox { * This returns a string representation of the date in "DDDD MMMM DD YYYY HH:MM:SS" format * */ - toString(): String; + toString(): string; /** * This function returns the stored time value in milliseconds * since midnight, January 1, 1970 UTC diff --git a/dojo/dojox.dgauges.d.ts b/dojo/dojox.dgauges.d.ts index e707a282b..1b4fced88 100644 --- a/dojo/dojox.dgauges.d.ts +++ b/dojo/dojox.dgauges.d.ts @@ -1118,7 +1118,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2462,7 +2462,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4309,7 +4309,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5382,7 +5382,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6252,7 +6252,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7117,7 +7117,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7987,7 +7987,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8860,7 +8860,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9725,7 +9725,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10590,7 +10590,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11460,7 +11460,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12328,7 +12328,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13198,7 +13198,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14063,7 +14063,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14933,7 +14933,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15801,7 +15801,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16671,7 +16671,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17536,7 +17536,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18406,7 +18406,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19276,7 +19276,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20143,7 +20143,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21013,7 +21013,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21883,7 +21883,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.drawing.d.ts b/dojo/dojox.drawing.d.ts index fc221c4fc..00223202d 100644 --- a/dojo/dojox.drawing.d.ts +++ b/dojo/dojox.drawing.d.ts @@ -4620,7 +4620,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.dtl.d.ts b/dojo/dojox.dtl.d.ts index 620ed41ff..eed075b22 100644 --- a/dojo/dojox.dtl.d.ts +++ b/dojo/dojox.dtl.d.ts @@ -1219,7 +1219,7 @@ declare module dojox { * serialization. * */ - toString(): String + toString(): string /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1823,7 +1823,7 @@ declare module dojox { * serialization. * */ - toString(): String + toString(): string /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.editor.d.ts b/dojo/dojox.editor.d.ts index 1c1be7fe6..8711378be 100644 --- a/dojo/dojox.editor.d.ts +++ b/dojo/dojox.editor.d.ts @@ -1235,7 +1235,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2225,7 +2225,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3196,7 +3196,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4090,7 +4090,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5121,7 +5121,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5942,7 +5942,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6790,7 +6790,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7716,7 +7716,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9832,7 +9832,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12047,7 +12047,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13008,7 +13008,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13967,7 +13967,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15154,7 +15154,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.embed.d.ts b/dojo/dojox.embed.d.ts index 9d1f27293..5990b0073 100644 --- a/dojo/dojox.embed.d.ts +++ b/dojo/dojox.embed.d.ts @@ -840,7 +840,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.form.d.ts b/dojo/dojox.form.d.ts index 1d9834d48..c1776c4f7 100644 --- a/dojo/dojox.form.d.ts +++ b/dojo/dojox.form.d.ts @@ -976,7 +976,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -2148,7 +2148,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3325,7 +3325,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -4686,7 +4686,7 @@ declare module dojox { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -6019,7 +6019,7 @@ declare module dojox { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -7332,7 +7332,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -8396,7 +8396,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9387,7 +9387,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10409,7 +10409,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11446,7 +11446,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12695,7 +12695,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13888,7 +13888,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -15200,7 +15200,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -16348,7 +16348,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17389,7 +17389,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18415,7 +18415,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19733,7 +19733,7 @@ declare module dojox { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -20767,7 +20767,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -22014,7 +22014,7 @@ declare module dojox { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -23490,7 +23490,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -24780,7 +24780,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -26168,7 +26168,7 @@ declare module dojox { * Returns widget as a printable string using the widget's value * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -27716,7 +27716,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -28665,7 +28665,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.fx.d.ts b/dojo/dojox.fx.d.ts index ddf61096f..fdd4bec63 100644 --- a/dojo/dojox.fx.d.ts +++ b/dojo/dojox.fx.d.ts @@ -709,7 +709,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.gauges.d.ts b/dojo/dojox.gauges.d.ts index a559dd233..771de41f8 100644 --- a/dojo/dojox.gauges.d.ts +++ b/dojo/dojox.gauges.d.ts @@ -937,7 +937,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1870,7 +1870,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2816,7 +2816,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3761,7 +3761,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4705,7 +4705,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5651,7 +5651,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6597,7 +6597,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7743,7 +7743,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8677,7 +8677,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9621,7 +9621,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10564,7 +10564,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11507,7 +11507,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12637,7 +12637,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13566,7 +13566,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14864,7 +14864,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15801,7 +15801,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17101,7 +17101,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18314,7 +18314,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19135,7 +19135,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20101,7 +20101,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21399,7 +21399,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.geo.d.ts b/dojo/dojox.geo.d.ts index 8cb299d59..9f3b570f3 100644 --- a/dojo/dojox.geo.d.ts +++ b/dojo/dojox.geo.d.ts @@ -1045,7 +1045,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1990,7 +1990,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3538,7 +3538,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.grid.d.ts b/dojo/dojox.grid.d.ts index 78aa291c3..cdfbeaf38 100644 --- a/dojo/dojox.grid.d.ts +++ b/dojo/dojox.grid.d.ts @@ -2322,7 +2322,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3747,7 +3747,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4820,7 +4820,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5900,7 +5900,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7114,7 +7114,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9247,7 +9247,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11093,7 +11093,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12997,7 +12997,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14957,7 +14957,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20171,7 +20171,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -23032,7 +23032,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * */ @@ -23885,7 +23885,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * */ diff --git a/dojo/dojox.highlight.d.ts b/dojo/dojox.highlight.d.ts index 5b6f769a5..ce8f44de6 100644 --- a/dojo/dojox.highlight.d.ts +++ b/dojo/dojox.highlight.d.ts @@ -2222,7 +2222,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.image.d.ts b/dojo/dojox.image.d.ts index 87ede234a..69cb5e9fb 100644 --- a/dojo/dojox.image.d.ts +++ b/dojo/dojox.image.d.ts @@ -789,7 +789,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1828,7 +1828,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2615,7 +2615,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.layout.d.ts b/dojo/dojox.layout.d.ts index a8ef4204a..ff6ae2d86 100644 --- a/dojo/dojox.layout.d.ts +++ b/dojo/dojox.layout.d.ts @@ -915,7 +915,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1758,7 +1758,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2448,7 +2448,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3522,7 +3522,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4713,7 +4713,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6755,7 +6755,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7788,7 +7788,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8739,7 +8739,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9817,7 +9817,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10766,7 +10766,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.mobile.d.ts b/dojo/dojox.mobile.d.ts index 253cea156..889beb5ed 100644 --- a/dojo/dojox.mobile.d.ts +++ b/dojo/dojox.mobile.d.ts @@ -680,7 +680,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2024,7 +2024,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3004,7 +3004,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Performs a view transition. * Given a transition destination, this method performs a view @@ -3792,7 +3792,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5215,7 +5215,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6005,7 +6005,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6754,7 +6754,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7469,7 +7469,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8296,7 +8296,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9143,7 +9143,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10200,7 +10200,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -10932,7 +10932,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11715,7 +11715,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12585,7 +12585,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13331,7 +13331,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14144,7 +14144,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15057,7 +15057,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16039,7 +16039,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16934,7 +16934,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -17805,7 +17805,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18510,7 +18510,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19252,7 +19252,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20005,7 +20005,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20798,7 +20798,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21657,7 +21657,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -22704,7 +22704,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Performs a view transition. * Given a transition destination, this method performs a view @@ -23517,7 +23517,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -24476,7 +24476,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Performs a view transition. * Given a transition destination, this method performs a view @@ -25698,7 +25698,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Performs a view transition. * Given a transition destination, this method performs a view @@ -26437,7 +26437,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -27103,7 +27103,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -27782,7 +27782,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -28460,7 +28460,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -29134,7 +29134,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -29876,7 +29876,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -30557,7 +30557,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -31323,7 +31323,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -32060,7 +32060,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -32742,7 +32742,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -33559,7 +33559,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -34472,7 +34472,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -35569,7 +35569,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -36688,7 +36688,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -37896,7 +37896,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -38936,7 +38936,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -39718,7 +39718,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -40524,7 +40524,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -41289,7 +41289,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -42093,7 +42093,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -43201,7 +43201,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -44000,7 +44000,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -44863,7 +44863,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -45657,7 +45657,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -46893,7 +46893,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -47775,7 +47775,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -48758,7 +48758,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Performs a view transition. * Given a transition destination, this method performs a view @@ -49658,7 +49658,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -50535,7 +50535,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Restore the value to the last value passed to onChange * @@ -51309,7 +51309,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -52303,7 +52303,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Performs a view transition. * Given a transition destination, this method performs a view @@ -52992,7 +52992,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -54173,7 +54173,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -55030,7 +55030,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -55944,7 +55944,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -56737,7 +56737,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -57602,7 +57602,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -58306,7 +58306,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -59168,7 +59168,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.mvc.d.ts b/dojo/dojox.mvc.d.ts index 0961e5a5f..5478c1aa4 100644 --- a/dojo/dojox.mvc.d.ts +++ b/dojo/dojox.mvc.d.ts @@ -676,7 +676,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2076,7 +2076,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2737,7 +2737,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3389,7 +3389,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4274,7 +4274,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4984,7 +4984,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6196,7 +6196,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6963,7 +6963,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8572,7 +8572,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9344,7 +9344,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9996,7 +9996,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10657,7 +10657,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -11714,7 +11714,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12577,7 +12577,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13339,7 +13339,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14040,7 +14040,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14907,7 +14907,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16209,7 +16209,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17091,7 +17091,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17741,7 +17741,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18847,7 +18847,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19661,7 +19661,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20423,7 +20423,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21124,7 +21124,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.sketch.d.ts b/dojo/dojox.sketch.d.ts index 91968e041..4c1a3a389 100644 --- a/dojo/dojox.sketch.d.ts +++ b/dojo/dojox.sketch.d.ts @@ -1032,7 +1032,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.treemap.d.ts b/dojo/dojox.treemap.d.ts index 1ee77f394..291082979 100644 --- a/dojo/dojox.treemap.d.ts +++ b/dojo/dojox.treemap.d.ts @@ -995,7 +995,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. diff --git a/dojo/dojox.widget.d.ts b/dojo/dojox.widget.d.ts index c846ff45f..87b9b111b 100644 --- a/dojo/dojox.widget.d.ts +++ b/dojo/dojox.widget.d.ts @@ -774,7 +774,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -1544,7 +1544,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -2314,7 +2314,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3077,7 +3077,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -3821,7 +3821,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -4578,7 +4578,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -5619,7 +5619,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -6441,7 +6441,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -7262,7 +7262,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8084,7 +8084,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -8905,7 +8905,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -9726,7 +9726,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -10687,7 +10687,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12011,7 +12011,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -12913,7 +12913,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -13758,7 +13758,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -14489,7 +14489,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -15294,7 +15294,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16108,7 +16108,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -16917,7 +16917,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -17790,7 +17790,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -18672,7 +18672,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -19477,7 +19477,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -20305,7 +20305,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -21443,7 +21443,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -22535,7 +22535,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -23929,7 +23929,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -24916,7 +24916,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -25840,7 +25840,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Over-ride to hide the widget, which clears intervals, before cleanup. * @@ -26715,7 +26715,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -27467,7 +27467,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -28333,7 +28333,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -29236,7 +29236,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. @@ -30187,7 +30187,7 @@ declare module dojox { * serialization. * */ - toString(): String; + toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. From 0e84156577c5dbe3fe1741300513ea844e6b09e4 Mon Sep 17 00:00:00 2001 From: Michael Van Sickle Date: Mon, 8 Dec 2014 23:23:00 -0500 Subject: [PATCH 02/10] Added module declarations to allow "require" statements to work properly --- dojo/dijit.d.ts | 832 +++ dojo/doh.d.ts | 76 + dojo/dojo.d.ts | 10464 +++++++++++++++++++--------------- dojo/dojox.NodeList.d.ts | 11 +- dojo/dojox.analytics.d.ts | 14 +- dojo/dojox.app.d.ts | 95 +- dojo/dojox.atom.d.ts | 103 +- dojo/dojox.av.d.ts | 35 +- dojo/dojox.calc.d.ts | 75 +- dojo/dojox.calendar.d.ts | 91 +- dojo/dojox.charting.d.ts | 327 +- dojo/dojox.collections.d.ts | 39 +- dojo/dojox.color.d.ts | 31 +- dojo/dojox.css3.d.ts | 27 +- dojo/dojox.data.d.ts | 183 +- dojo/dojox.date.d.ts | 79 +- dojo/dojox.dgauges.d.ts | 163 +- dojo/dojox.dnd.d.ts | 10 +- dojo/dojox.drawing.d.ts | 399 +- dojo/dojox.dtl.d.ts | 211 +- dojo/dojox.editor.d.ts | 171 +- dojo/dojox.embed.d.ts | 18 +- dojo/dojox.encoding.d.ts | 91 +- dojo/dojox.flash.d.ts | 7 +- dojo/dojox.form.d.ts | 175 +- dojo/dojox.fx.d.ts | 67 +- dojo/dojox.gantt.d.ts | 35 +- dojo/dojox.gauges.d.ts | 87 +- dojo/dojox.geo.d.ts | 175 +- dojo/dojox.gesture.d.ts | 8 +- dojo/dojox.gfx.d.ts | 390 +- dojo/dojox.gfx3d.d.ts | 155 +- dojo/dojox.grid.d.ts | 478 +- dojo/dojox.help.d.ts | 11 +- dojo/dojox.highlight.d.ts | 183 +- dojo/dojox.html.d.ts | 43 +- dojo/dojox.image.d.ts | 35 +- dojo/dojox.io.d.ts | 43 +- dojo/dojox.jq.d.ts | 7 +- dojo/dojox.json.d.ts | 11 +- dojo/dojox.jsonPath.d.ts | 11 +- dojo/dojox.lang.d.ts | 115 +- dojo/dojox.layout.d.ts | 75 +- dojo/dojox.main.d.ts | 55 +- dojo/dojox.math.d.ts | 31 +- dojo/dojox.mdnd.d.ts | 47 +- dojo/dojox.mobile.d.ts | 595 +- dojo/dojox.mvc.d.ts | 299 +- dojo/dojox.rails.d.ts | 7 +- dojo/dojox.robot.d.ts | 7 +- dojo/dojox.rpc.d.ts | 30 +- dojo/dojox.secure.d.ts | 15 +- dojo/dojox.sketch.d.ts | 79 +- dojo/dojox.socket.d.ts | 11 +- dojo/dojox.sql.d.ts | 11 +- dojo/dojox.storage.d.ts | 7 +- dojo/dojox.string.d.ts | 23 +- dojo/dojox.testing.d.ts | 6 +- dojo/dojox.timing.d.ts | 19 +- dojo/dojox.treemap.d.ts | 27 +- dojo/dojox.uuid.d.ts | 27 +- dojo/dojox.validate.d.ts | 83 +- dojo/dojox.widget.d.ts | 227 +- 63 files changed, 12589 insertions(+), 4673 deletions(-) diff --git a/dojo/dijit.d.ts b/dojo/dijit.d.ts index c93db6de6..10a0ab717 100644 --- a/dojo/dijit.d.ts +++ b/dojo/dijit.d.ts @@ -104747,3 +104747,835 @@ declare module dijit { } } +declare module "dijit/_BidiSupport" { + var exp: dijit._BidiSupport + export=exp; +} +declare module "dijit/BackgroundIframe" { + var exp: dijit.BackgroundIframe + export=exp; +} +declare module "dijit/hccss" { + var exp: dijit.hccss + export=exp; +} +declare module "dijit/_base" { + var exp: dijit._base + export=exp; +} +declare module "dijit/_base/popup" { + var exp: dijit._base.popup + export=exp; +} +declare module "dijit/_base/manager" { + var exp: dijit._base.manager + export=exp; +} +declare module "dijit/_base/place" { + var exp: dijit._base.place + export=exp; +} +declare module "dijit/_base/focus" { + var exp: dijit._base.focus + export=exp; +} +declare module "dijit/_base/scroll" { + var exp: dijit._base.scroll + export=exp; +} +declare module "dijit/_base/sniff" { + var exp: dijit._base.sniff + export=exp; +} +declare module "dijit/_base/typematic" { + var exp: dijit._base.typematic + export=exp; +} +declare module "dijit/_base/window" { + var exp: dijit._base.window + export=exp; +} +declare module "dijit/_base/wai" { + var exp: dijit._base.wai + export=exp; +} +declare module "dijit/_BidiMixin" { + var exp: dijit._BidiMixin + export=exp; +} +declare module "dijit/_Calendar" { + var exp: dijit._Calendar + export=exp; +} +declare module "dijit/a11y" { + var exp: dijit.a11y + export=exp; +} +declare module "dijit/a11yclick" { + var exp: dijit.a11yclick + export=exp; +} +declare module "dijit/dijit" { + var exp: dijit.dijit + export=exp; +} +declare module "dijit/dijit-all" { + var exp: dijit.dijit_all + export=exp; +} +declare module "dijit/main" { + var exp: dijit.main + export=exp; +} +declare module "dijit/main._Calendar" { + var exp: dijit.main._Calendar + export=exp; +} +declare module "dijit/main.place" { + var exp: dijit.main.place + export=exp; +} +declare module "dijit/main.typematic" { + var exp: dijit.main.typematic + export=exp; +} +declare module "dijit/main.registry" { + var exp: dijit.main.registry + export=exp; +} +declare module "dijit/place" { + var exp: dijit.place + export=exp; +} +declare module "dijit/place.__Rectangle" { + var exp: dijit.place.__Rectangle + export=exp; +} +declare module "dijit/place.__Position" { + var exp: dijit.place.__Position + export=exp; +} +declare module "dijit/registry" { + var exp: dijit.registry + export=exp; +} +declare module "dijit/registry._hash" { + var exp: dijit.registry._hash + export=exp; +} +declare module "dijit/typematic" { + var exp: dijit.typematic + export=exp; +} +declare module "dijit/Viewport" { + var exp: dijit.Viewport + export=exp; +} +declare module "dijit/_AttachMixin" { + var exp: dijit._AttachMixin + export=exp; +} +declare module "dijit/_Contained" { + var exp: dijit._Contained + export=exp; +} +declare module "dijit/_Container" { + var exp: dijit._Container + export=exp; +} +declare module "dijit/_DialogMixin" { + var exp: dijit._DialogMixin + export=exp; +} +declare module "dijit/_CssStateMixin" { + var exp: dijit._CssStateMixin + export=exp; +} +declare module "dijit/_FocusMixin" { + var exp: dijit._FocusMixin + export=exp; +} +declare module "dijit/_HasDropDown" { + var exp: dijit._HasDropDown + export=exp; +} +declare module "dijit/_KeyNavMixin" { + var exp: dijit._KeyNavMixin + export=exp; +} +declare module "dijit/_KeyNavContainer" { + var exp: dijit._KeyNavContainer + export=exp; +} +declare module "dijit/_OnDijitClickMixin" { + var exp: dijit._OnDijitClickMixin + export=exp; +} +declare module "dijit/_OnDijitClickMixin.a11yclick" { + var exp: dijit._OnDijitClickMixin.a11yclick + export=exp; +} +declare module "dijit/_Templated" { + var exp: dijit._Templated + export=exp; +} +declare module "dijit/_TemplatedMixin" { + var exp: dijit._TemplatedMixin + export=exp; +} +declare module "dijit/_TemplatedMixin._templateCache" { + var exp: dijit._TemplatedMixin._templateCache + export=exp; +} +declare module "dijit/_PaletteMixin" { + var exp: dijit._PaletteMixin + export=exp; +} +declare module "dijit/_PaletteMixin.__Dye" { + var exp: dijit._PaletteMixin.__Dye + export=exp; +} +declare module "dijit/_MenuBase" { + var exp: dijit._MenuBase + export=exp; +} +declare module "dijit/_TimePicker" { + var exp: dijit._TimePicker + export=exp; +} +declare module "dijit/_TimePicker.__Constraints" { + var exp: dijit._TimePicker.__Constraints + export=exp; +} +declare module "dijit/_WidgetsInTemplateMixin" { + var exp: dijit._WidgetsInTemplateMixin + export=exp; +} +declare module "dijit/_WidgetBase" { + var exp: dijit._WidgetBase + export=exp; +} +declare module "dijit/_Widget" { + var exp: dijit._Widget + export=exp; +} +declare module "dijit/Destroyable" { + var exp: dijit.Destroyable + export=exp; +} +declare module "dijit/Calendar" { + var exp: dijit.Calendar + export=exp; +} +declare module "dijit/Calendar._MonthDropDown" { + var exp: dijit.Calendar._MonthDropDown + export=exp; +} +declare module "dijit/Calendar._MonthDropDownButton" { + var exp: dijit.Calendar._MonthDropDownButton + export=exp; +} +declare module "dijit/CalendarLite" { + var exp: dijit.CalendarLite + export=exp; +} +declare module "dijit/CalendarLite._MonthWidget" { + var exp: dijit.CalendarLite._MonthWidget + export=exp; +} +declare module "dijit/CheckedMenuItem" { + var exp: dijit.CheckedMenuItem + export=exp; +} +declare module "dijit/ColorPalette" { + var exp: dijit.ColorPalette + export=exp; +} +declare module "dijit/ColorPalette._Color" { + var exp: dijit.ColorPalette._Color + export=exp; +} +declare module "dijit/Declaration" { + var exp: dijit.Declaration + export=exp; +} +declare module "dijit/DialogUnderlay" { + var exp: dijit.DialogUnderlay + export=exp; +} +declare module "dijit/DropDownMenu" { + var exp: dijit.DropDownMenu + export=exp; +} +declare module "dijit/Dialog" { + var exp: dijit.Dialog + export=exp; +} +declare module "dijit/Dialog._DialogBase" { + var exp: dijit.Dialog._DialogBase + export=exp; +} +declare module "dijit/Dialog._DialogLevelManager" { + var exp: dijit.Dialog._DialogLevelManager + export=exp; +} +declare module "dijit/Editor" { + var exp: dijit.Editor + export=exp; +} +declare module "dijit/Fieldset" { + var exp: dijit.Fieldset + export=exp; +} +declare module "dijit/InlineEditBox" { + var exp: dijit.InlineEditBox + export=exp; +} +declare module "dijit/InlineEditBox._InlineEditor" { + var exp: dijit.InlineEditBox._InlineEditor + export=exp; +} +declare module "dijit/Menu" { + var exp: dijit.Menu + export=exp; +} +declare module "dijit/MenuBarItem" { + var exp: dijit.MenuBarItem + export=exp; +} +declare module "dijit/MenuBarItem._MenuBarItemMixin" { + var exp: dijit.MenuBarItem._MenuBarItemMixin + export=exp; +} +declare module "dijit/MenuSeparator" { + var exp: dijit.MenuSeparator + export=exp; +} +declare module "dijit/MenuItem" { + var exp: dijit.MenuItem + export=exp; +} +declare module "dijit/MenuBar" { + var exp: dijit.MenuBar + export=exp; +} +declare module "dijit/PopupMenuBarItem" { + var exp: dijit.PopupMenuBarItem + export=exp; +} +declare module "dijit/ProgressBar" { + var exp: dijit.ProgressBar + export=exp; +} +declare module "dijit/RadioMenuItem" { + var exp: dijit.RadioMenuItem + export=exp; +} +declare module "dijit/PopupMenuItem" { + var exp: dijit.PopupMenuItem + export=exp; +} +declare module "dijit/TitlePane" { + var exp: dijit.TitlePane + export=exp; +} +declare module "dijit/Toolbar" { + var exp: dijit.Toolbar + export=exp; +} +declare module "dijit/Tooltip" { + var exp: dijit.Tooltip + export=exp; +} +declare module "dijit/Tooltip._MasterTooltip" { + var exp: dijit.Tooltip._MasterTooltip + export=exp; +} +declare module "dijit/ToolbarSeparator" { + var exp: dijit.ToolbarSeparator + export=exp; +} +declare module "dijit/WidgetSet" { + var exp: dijit.WidgetSet + export=exp; +} +declare module "dijit/TooltipDialog" { + var exp: dijit.TooltipDialog + export=exp; +} +declare module "dijit/Tree" { + var exp: dijit.Tree + export=exp; +} +declare module "dijit/Tree._TreeNode" { + var exp: dijit.Tree._TreeNode + export=exp; +} +declare module "dijit/_editor/html" { + var exp: dijit._editor.html + export=exp; +} +declare module "dijit/_editor/range" { + var exp: dijit._editor.range + export=exp; +} +declare module "dijit/_editor/range.W3CRange" { + var exp: dijit._editor.range.W3CRange + export=exp; +} +declare module "dijit/_editor/range.ie" { + var exp: dijit._editor.range.ie + export=exp; +} +declare module "dijit/_editor/selection" { + var exp: dijit._editor.selection + export=exp; +} +declare module "dijit/_editor/_Plugin" { + var exp: dijit._editor._Plugin + export=exp; +} +declare module "dijit/_editor/_Plugin.registry" { + var exp: dijit._editor._Plugin.registry + export=exp; +} +declare module "dijit/_editor/RichText" { + var exp: dijit._editor.RichText + export=exp; +} +declare module "dijit/_editor/plugins/AlwaysShowToolbar" { + var exp: dijit._editor.plugins.AlwaysShowToolbar + export=exp; +} +declare module "dijit/_editor/plugins/FontChoice" { + var exp: dijit._editor.plugins.FontChoice + export=exp; +} +declare module "dijit/_editor/plugins/FontChoice._FontDropDown" { + var exp: dijit._editor.plugins.FontChoice._FontDropDown + export=exp; +} +declare module "dijit/_editor/plugins/FontChoice._FontSizeDropDown" { + var exp: dijit._editor.plugins.FontChoice._FontSizeDropDown + export=exp; +} +declare module "dijit/_editor/plugins/FontChoice._FontNameDropDown" { + var exp: dijit._editor.plugins.FontChoice._FontNameDropDown + export=exp; +} +declare module "dijit/_editor/plugins/FontChoice._FormatBlockDropDown" { + var exp: dijit._editor.plugins.FontChoice._FormatBlockDropDown + export=exp; +} +declare module "dijit/_editor/plugins/EnterKeyHandling" { + var exp: dijit._editor.plugins.EnterKeyHandling + export=exp; +} +declare module "dijit/_editor/plugins/LinkDialog" { + var exp: dijit._editor.plugins.LinkDialog + export=exp; +} +declare module "dijit/_editor/plugins/LinkDialog.ImgLinkDialog" { + var exp: dijit._editor.plugins.LinkDialog.ImgLinkDialog + export=exp; +} +declare module "dijit/_editor/plugins/FullScreen" { + var exp: dijit._editor.plugins.FullScreen + export=exp; +} +declare module "dijit/_editor/plugins/NewPage" { + var exp: dijit._editor.plugins.NewPage + export=exp; +} +declare module "dijit/_editor/plugins/Print" { + var exp: dijit._editor.plugins.Print + export=exp; +} +declare module "dijit/_editor/plugins/TabIndent" { + var exp: dijit._editor.plugins.TabIndent + export=exp; +} +declare module "dijit/_editor/plugins/TextColor" { + var exp: dijit._editor.plugins.TextColor + export=exp; +} +declare module "dijit/_editor/plugins/ToggleDir" { + var exp: dijit._editor.plugins.ToggleDir + export=exp; +} +declare module "dijit/_editor/plugins/ViewSource" { + var exp: dijit._editor.plugins.ViewSource + export=exp; +} +declare module "dijit/_tree/dndSource" { + var exp: dijit._tree.dndSource + export=exp; +} +declare module "dijit/form/Slider" { + var exp: dijit.form.Slider + export=exp; +} +declare module "dijit/form/_ButtonMixin" { + var exp: dijit.form._ButtonMixin + export=exp; +} +declare module "dijit/form/_AutoCompleterMixin" { + var exp: dijit.form._AutoCompleterMixin + export=exp; +} +declare module "dijit/form/_CheckBoxMixin" { + var exp: dijit.form._CheckBoxMixin + export=exp; +} +declare module "dijit/form/_ComboBoxMenuMixin" { + var exp: dijit.form._ComboBoxMenuMixin + export=exp; +} +declare module "dijit/form/_ExpandingTextAreaMixin" { + var exp: dijit.form._ExpandingTextAreaMixin + export=exp; +} +declare module "dijit/form/_FormMixin" { + var exp: dijit.form._FormMixin + export=exp; +} +declare module "dijit/form/_FormValueMixin" { + var exp: dijit.form._FormValueMixin + export=exp; +} +declare module "dijit/form/_FormWidgetMixin" { + var exp: dijit.form._FormWidgetMixin + export=exp; +} +declare module "dijit/form/_ListBase" { + var exp: dijit.form._ListBase + export=exp; +} +declare module "dijit/form/_ComboBoxMenu" { + var exp: dijit.form._ComboBoxMenu + export=exp; +} +declare module "dijit/form/_RadioButtonMixin" { + var exp: dijit.form._RadioButtonMixin + export=exp; +} +declare module "dijit/form/_SearchMixin" { + var exp: dijit.form._SearchMixin + export=exp; +} +declare module "dijit/form/_ListMouseMixin" { + var exp: dijit.form._ListMouseMixin + export=exp; +} +declare module "dijit/form/_FormSelectWidget" { + var exp: dijit.form._FormSelectWidget + export=exp; +} +declare module "dijit/form/_FormSelectWidget.__SelectOption" { + var exp: dijit.form._FormSelectWidget.__SelectOption + export=exp; +} +declare module "dijit/form/_TextBoxMixin" { + var exp: dijit.form._TextBoxMixin + export=exp; +} +declare module "dijit/form/_FormWidget" { + var exp: dijit.form._FormWidget + export=exp; +} +declare module "dijit/form/_ToggleButtonMixin" { + var exp: dijit.form._ToggleButtonMixin + export=exp; +} +declare module "dijit/form/_FormValueWidget" { + var exp: dijit.form._FormValueWidget + export=exp; +} +declare module "dijit/form/_DateTimeTextBox" { + var exp: dijit.form._DateTimeTextBox + export=exp; +} +declare module "dijit/form/_DateTimeTextBox.__Constraints" { + var exp: dijit.form._DateTimeTextBox.__Constraints + export=exp; +} +declare module "dijit/form/ComboBoxMixin" { + var exp: dijit.form.ComboBoxMixin + export=exp; +} +declare module "dijit/form/_Spinner" { + var exp: dijit.form._Spinner + export=exp; +} +declare module "dijit/form/DataList" { + var exp: dijit.form.DataList + export=exp; +} +declare module "dijit/form/Button" { + var exp: dijit.form.Button + export=exp; +} +declare module "dijit/form/CheckBox" { + var exp: dijit.form.CheckBox + export=exp; +} +declare module "dijit/form/ComboButton" { + var exp: dijit.form.ComboButton + export=exp; +} +declare module "dijit/form/ComboBox" { + var exp: dijit.form.ComboBox + export=exp; +} +declare module "dijit/form/CurrencyTextBox" { + var exp: dijit.form.CurrencyTextBox + export=exp; +} +declare module "dijit/form/DropDownButton" { + var exp: dijit.form.DropDownButton + export=exp; +} +declare module "dijit/form/Form" { + var exp: dijit.form.Form + export=exp; +} +declare module "dijit/form/DateTextBox" { + var exp: dijit.form.DateTextBox + export=exp; +} +declare module "dijit/form/HorizontalRule" { + var exp: dijit.form.HorizontalRule + export=exp; +} +declare module "dijit/form/FilteringSelect" { + var exp: dijit.form.FilteringSelect + export=exp; +} +declare module "dijit/form/HorizontalRuleLabels" { + var exp: dijit.form.HorizontalRuleLabels + export=exp; +} +declare module "dijit/form/HorizontalSlider" { + var exp: dijit.form.HorizontalSlider + export=exp; +} +declare module "dijit/form/HorizontalSlider._Mover" { + var exp: dijit.form.HorizontalSlider._Mover + export=exp; +} +declare module "dijit/form/MultiSelect" { + var exp: dijit.form.MultiSelect + export=exp; +} +declare module "dijit/form/MappedTextBox" { + var exp: dijit.form.MappedTextBox + export=exp; +} +declare module "dijit/form/NumberSpinner" { + var exp: dijit.form.NumberSpinner + export=exp; +} +declare module "dijit/form/RangeBoundTextBox" { + var exp: dijit.form.RangeBoundTextBox + export=exp; +} +declare module "dijit/form/RangeBoundTextBox.__Constraints" { + var exp: dijit.form.RangeBoundTextBox.__Constraints + export=exp; +} +declare module "dijit/form/RadioButton" { + var exp: dijit.form.RadioButton + export=exp; +} +declare module "dijit/form/NumberTextBox" { + var exp: dijit.form.NumberTextBox + export=exp; +} +declare module "dijit/form/NumberTextBox.__Constraints" { + var exp: dijit.form.NumberTextBox.__Constraints + export=exp; +} +declare module "dijit/form/NumberTextBox.Mixin" { + var exp: dijit.form.NumberTextBox.Mixin + export=exp; +} +declare module "dijit/form/SimpleTextarea" { + var exp: dijit.form.SimpleTextarea + export=exp; +} +declare module "dijit/form/Textarea" { + var exp: dijit.form.Textarea + export=exp; +} +declare module "dijit/form/Select" { + var exp: dijit.form.Select + export=exp; +} +declare module "dijit/form/Select._Menu" { + var exp: dijit.form.Select._Menu + export=exp; +} +declare module "dijit/form/TextBox" { + var exp: dijit.form.TextBox + export=exp; +} +declare module "dijit/form/VerticalRule" { + var exp: dijit.form.VerticalRule + export=exp; +} +declare module "dijit/form/ToggleButton" { + var exp: dijit.form.ToggleButton + export=exp; +} +declare module "dijit/form/TimeTextBox" { + var exp: dijit.form.TimeTextBox + export=exp; +} +declare module "dijit/form/ValidationTextBox" { + var exp: dijit.form.ValidationTextBox + export=exp; +} +declare module "dijit/form/VerticalRuleLabels" { + var exp: dijit.form.VerticalRuleLabels + export=exp; +} +declare module "dijit/form/VerticalSlider" { + var exp: dijit.form.VerticalSlider + export=exp; +} +declare module "dijit/layout/utils" { + var exp: dijit.layout.utils + export=exp; +} +declare module "dijit/layout/_ContentPaneResizeMixin" { + var exp: dijit.layout._ContentPaneResizeMixin + export=exp; +} +declare module "dijit/layout/_LayoutWidget" { + var exp: dijit.layout._LayoutWidget + export=exp; +} +declare module "dijit/layout/AccordionContainer" { + var exp: dijit.layout.AccordionContainer + export=exp; +} +declare module "dijit/layout/AccordionContainer._Button" { + var exp: dijit.layout.AccordionContainer._Button + export=exp; +} +declare module "dijit/layout/AccordionContainer._InnerContainer" { + var exp: dijit.layout.AccordionContainer._InnerContainer + export=exp; +} +declare module "dijit/layout/_TabContainerBase" { + var exp: dijit.layout._TabContainerBase + export=exp; +} +declare module "dijit/layout/AccordionPane" { + var exp: dijit.layout.AccordionPane + export=exp; +} +declare module "dijit/layout/BorderContainer" { + var exp: dijit.layout.BorderContainer + export=exp; +} +declare module "dijit/layout/BorderContainer._Gutter" { + var exp: dijit.layout.BorderContainer._Gutter + export=exp; +} +declare module "dijit/layout/BorderContainer._Splitter" { + var exp: dijit.layout.BorderContainer._Splitter + export=exp; +} +declare module "dijit/layout/BorderContainer.ChildWidgetProperties" { + var exp: dijit.layout.BorderContainer.ChildWidgetProperties + export=exp; +} +declare module "dijit/layout/LayoutContainer" { + var exp: dijit.layout.LayoutContainer + export=exp; +} +declare module "dijit/layout/LayoutContainer.ChildWidgetProperties" { + var exp: dijit.layout.LayoutContainer.ChildWidgetProperties + export=exp; +} +declare module "dijit/layout/ContentPane" { + var exp: dijit.layout.ContentPane + export=exp; +} +declare module "dijit/layout/LinkPane" { + var exp: dijit.layout.LinkPane + export=exp; +} +declare module "dijit/layout/SplitContainer" { + var exp: dijit.layout.SplitContainer + export=exp; +} +declare module "dijit/layout/SplitContainer.ChildWidgetProperties" { + var exp: dijit.layout.SplitContainer.ChildWidgetProperties + export=exp; +} +declare module "dijit/layout/ScrollingTabController" { + var exp: dijit.layout.ScrollingTabController + export=exp; +} +declare module "dijit/layout/StackController" { + var exp: dijit.layout.StackController + export=exp; +} +declare module "dijit/layout/StackController.StackButton" { + var exp: dijit.layout.StackController.StackButton + export=exp; +} +declare module "dijit/layout/StackContainer" { + var exp: dijit.layout.StackContainer + export=exp; +} +declare module "dijit/layout/StackContainer.ChildWidgetProperties" { + var exp: dijit.layout.StackContainer.ChildWidgetProperties + export=exp; +} +declare module "dijit/layout/TabContainer" { + var exp: dijit.layout.TabContainer + export=exp; +} +declare module "dijit/layout/TabController" { + var exp: dijit.layout.TabController + export=exp; +} +declare module "dijit/layout/TabController.TabButton" { + var exp: dijit.layout.TabController.TabButton + export=exp; +} +declare module "dijit/tree/_dndContainer" { + var exp: dijit.tree._dndContainer + export=exp; +} +declare module "dijit/tree/ForestStoreModel" { + var exp: dijit.tree.ForestStoreModel + export=exp; +} +declare module "dijit/tree/dndSource" { + var exp: dijit.tree.dndSource + export=exp; +} +declare module "dijit/tree/dndSource.__Item" { + var exp: dijit.tree.dndSource.__Item + export=exp; +} +declare module "dijit/tree/model" { + var exp: dijit.tree.model + export=exp; +} +declare module "dijit/tree/_dndSelector" { + var exp: dijit.tree._dndSelector + export=exp; +} +declare module "dijit/tree/ObjectStoreModel" { + var exp: dijit.tree.ObjectStoreModel + export=exp; +} +declare module "dijit/tree/TreeStoreModel" { + var exp: dijit.tree.TreeStoreModel + export=exp; +} diff --git a/dojo/doh.d.ts b/dojo/doh.d.ts index 13db9a265..eab1a6b19 100644 --- a/dojo/doh.d.ts +++ b/dojo/doh.d.ts @@ -1902,3 +1902,79 @@ declare module doh { } +declare module "doh/_nodeRunner" { + var exp: doh._nodeRunner + export=exp; +} +declare module "doh/_parseURLargs" { + var exp: doh._parseURLargs + export=exp; +} +declare module "doh/_rhinoRunner" { + var exp: doh._rhinoRunner + export=exp; +} +declare module "doh/_browserRunner" { + var exp: doh._browserRunner + export=exp; +} +declare module "doh/_browserRunner._testTypes" { + var exp: doh._browserRunner._testTypes + export=exp; +} +declare module "doh/_browserRunner._groups" { + var exp: doh._browserRunner._groups + export=exp; +} +declare module "doh/_browserRunner.robot" { + var exp: doh._browserRunner.robot + export=exp; +} +declare module "doh/robot" { + var exp: doh.robot + export=exp; +} +declare module "doh/robot._runsemaphore" { + var exp: doh.robot._runsemaphore + export=exp; +} +declare module "doh/main" { + var exp: doh.main + export=exp; +} +declare module "doh/main._groups" { + var exp: doh.main._groups + export=exp; +} +declare module "doh/main._testTypes" { + var exp: doh.main._testTypes + export=exp; +} +declare module "doh/main.robot" { + var exp: doh.main.robot + export=exp; +} +declare module "doh/runner" { + var exp: doh.runner + export=exp; +} +declare module "doh/runner._groups" { + var exp: doh.runner._groups + export=exp; +} +declare module "doh/runner._testTypes" { + var exp: doh.runner._testTypes + export=exp; +} +declare module "doh/runner.robot" { + var exp: doh.runner.robot + export=exp; +} +declare module "doh/plugins/android-webdriver-robot" { + var exp: doh.plugins.android_webdriver_robot + export=exp; +} +declare module "doh/plugins/remoteRobot" { + var exp: doh.plugins.remoteRobot + export=exp; +} diff --git a/dojo/dojo.d.ts b/dojo/dojo.d.ts index 9d6332ead..b13ba2930 100644 --- a/dojo/dojo.d.ts +++ b/dojo/dojo.d.ts @@ -1,9 +1,7 @@ -// Type definitions for Dojo v1.9 -// Project: http://dojotoolkit.org -// Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -declare var define: any; +declare module dojox.dtl { + interface __StringArgs { } + interface __ObjectArgs { } +} declare module dojo { /** @@ -14,7 +12,7 @@ declare module dojo { * @param url The URL to request. * @param options OptionalOptions for the request. */ - interface request { (url: String, options?: dojo.request.__Options): void } + interface request{(url: String, options?: dojo.request.__Options): void} interface request { /** * Send an HTTP DELETE request using the default transport for the current platform. @@ -22,29 +20,30 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - del: { (url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise } + del(url: String, options: dojo.request.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP GET request using the default transport for the current platform. * * @param url URL to request * @param options OptionalOptions for the request. */ - get: { (url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise } + get(url: String, options: dojo.request.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using the default transport for the current platform. * * @param url URL to request * @param options OptionalOptions for the request. */ - post: { (url: String, options?: dojo.request.__BaseOptions): any } + post(url: String, options: dojo.request.__BaseOptions): any; /** * Send an HTTP POST request using the default transport for the current platform. * * @param url URL to request * @param options OptionalOptions for the request. */ - put: { (url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise } + put(url: String, options: dojo.request.__BaseOptions): dojo.request.__Promise; } + module request { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/handlers.html @@ -52,86 +51,105 @@ declare module dojo { * * @param response */ - interface handlers { (response: any): void } - module handlers { + interface handlers{(response: any): void} + interface handlers { /** * * @param name * @param handler */ - interface register { (name: any, handler: any): void } + register(name: any, handler: any): void; + } + + module handlers { } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.html * - * Sends a request using the included http or https interface from node.js - * with the given URL and options. + * Sends a request using an iframe element with the given URL and options. * * @param url URL to request * @param options OptionalOptions for the request. */ - interface node { (url: String, options?: dojo.request.node.__Options): void } - interface node { + interface iframe{(url: String, options?: dojo.request.iframe.__Options): void} + interface iframe { /** - * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. + * + * @param name + * @param onloadstr + * @param uri + */ + create(name: any, onloadstr: any, uri: any): any; + /** + * + * @param iframeNode + */ + doc(iframeNode: any): any; + /** + * Send an HTTP GET request using an iframe element with the given URL and options. * * @param url URL to request * @param options OptionalOptions for the request. */ - del: { (url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise } + get(url: String, options: dojo.request.iframe.__BaseOptions): dojo.request.__Promise; /** - * Send an HTTP GET request using XMLHttpRequest with the given URL and options. + * Send an HTTP POST request using an iframe element with the given URL and options. * * @param url URL to request * @param options OptionalOptions for the request. */ - get: { (url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise } + post(url: String, options: dojo.request.iframe.__BaseOptions): dojo.request.__Promise; /** - * Send an HTTP POST request using XMLHttpRequest with the given URL and options. * - * @param url URL to request - * @param options OptionalOptions for the request. + * @param _iframe + * @param src + * @param replace */ - post: { (url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise } - /** - * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. - */ - put: { (url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise } + setSrc(_iframe: any, src: any, replace: any): void; } - module node { + + module iframe { /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__BaseOptions.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__MethodOptions.html + * + * + */ + class __MethodOptions { + constructor(); + /** + * The HTTP method to use to make the request. Must be + * uppercase. Only "GET" and "POST" are accepted. + * Default is "POST". + * + */ + "method": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__BaseOptions.html * * */ class __BaseOptions { constructor(); /** - * Data to transfer. This is ignored for GET and DELETE - * requests. + * Data to transfer. When making a GET request, this will + * be converted to key=value parameters and appended to the + * URL. * */ "data": string; + /** + * A form node to use to submit data to the server. + * + */ + "form": HTMLElement; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. * */ "handleAs": string; - /** - * Headers to use for the request. - * - */ - "headers": Object; - /** - * Password to use during the request. - * - */ - "password": string; /** * Whether to append a cache-busting parameter to the URL. * @@ -148,12 +166,152 @@ declare module dojo { * */ "timeout": number; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__Options.html + * + * + */ + class __Options { + constructor(); /** - * Username to use during the request. + * Data to transfer. When making a GET request, this will + * be converted to key=value parameters and appended to the + * URL. * */ - "user": string; + "data": string; + /** + * A form node to use to submit data to the server. + * + */ + "form": HTMLElement; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * The HTTP method to use to make the request. Must be + * uppercase. Only "GET" and "POST" are accepted. + * Default is "POST". + * + */ + "method": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/notify.html + * + * Register a listener to be notified when an event + * in dojo/request happens. + * + * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". + * @param listener OptionalA callback to be run when an event happens. + */ + interface notify{(type?: String, listener?: Function): void} + interface notify { + /** + * + * @param type + * @param event + * @param cancel + */ + emit(type: any, event: any, cancel: any): void; + } + + module notify { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/registry.html + * + * + * @param url + * @param options + */ + interface registry{(url: any, options: any): void} + interface registry { + /** + * + * @param id + * @param parentRequire + * @param loaded + * @param config + */ + load(id: any, parentRequire: any, loaded: any, config: any): void; + /** + * + * @param url + * @param provider + * @param first + */ + register(url: any, provider: any, first: any): void; + } + + module registry { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.html + * + * Sends a request using the included http or https interface from node.js + * with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + interface node{(url: String, options?: dojo.request.node.__Options): void} + interface node { + /** + * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + del(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP GET request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + get(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP POST request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + post(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + put(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + } + + module node { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__MethodOptions.html * @@ -225,142 +383,35 @@ declare module dojo { */ "user": string; } - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.html - * - * Sends a request using an iframe element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. - */ - interface iframe { (url: String, options?: dojo.request.iframe.__Options): void } - interface iframe { /** - * - * @param name - * @param onloadstr - * @param uri - */ - create: { (name: any, onloadstr: any, uri: any): any } - /** - * - * @param iframeNode - */ - doc: { (iframeNode: any): any } - /** - * Send an HTTP GET request using an iframe element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. - */ - get: { (url: String, options: dojo.request.iframe.__BaseOptions): dojo.request.__Promise } - /** - * Send an HTTP POST request using an iframe element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. - */ - post: { (url: String, options: dojo.request.iframe.__BaseOptions): dojo.request.__Promise } - /** - * - * @param _iframe - * @param src - * @param replace - */ - setSrc: { (_iframe: any, src: any, replace: any): void } - } - module iframe { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__MethodOptions.html - * - * - */ - class __MethodOptions { - constructor(); - /** - * The HTTP method to use to make the request. Must be - * uppercase. Only "GET" and "POST" are accepted. - * Default is "POST". - * - */ - "method": string; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__Options.html - * - * - */ - class __Options { - constructor(); - /** - * Data to transfer. When making a GET request, this will - * be converted to key=value parameters and appended to the - * URL. - * - */ - "data": string; - /** - * A form node to use to submit data to the server. - * - */ - "form": HTMLElement; - /** - * How to handle the response from the server. Default is - * 'text'. Other values are 'json', 'javascript', and 'xml'. - * - */ - "handleAs": string; - /** - * The HTTP method to use to make the request. Must be - * uppercase. Only "GET" and "POST" are accepted. - * Default is "POST". - * - */ - "method": string; - /** - * Whether to append a cache-busting parameter to the URL. - * - */ - "preventCache": boolean; - /** - * Query parameters to append to the URL. - * - */ - "query": string; - /** - * Milliseconds to wait for the response. If this time - * passes, the then the promise is rejected. - * - */ - "timeout": number; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__BaseOptions.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__BaseOptions.html * * */ class __BaseOptions { constructor(); /** - * Data to transfer. When making a GET request, this will - * be converted to key=value parameters and appended to the - * URL. + * Data to transfer. This is ignored for GET and DELETE + * requests. * */ "data": string; - /** - * A form node to use to submit data to the server. - * - */ - "form": HTMLElement; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. * */ "handleAs": string; + /** + * Headers to use for the request. + * + */ + "headers": Object; + /** + * Password to use during the request. + * + */ + "password": string; /** * Whether to append a cache-busting parameter to the URL. * @@ -377,29 +428,14 @@ declare module dojo { * */ "timeout": number; + /** + * Username to use during the request. + * + */ + "user": string; } } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/notify.html - * - * Register a listener to be notified when an event - * in dojo/request happens. - * - * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". - * @param listener OptionalA callback to be run when an event happens. - */ - interface notify { (type?: String, listener?: Function): void } - interface notify { - /** - * - * @param type - * @param event - * @param cancel - */ - emit: { (type: any, event: any, cancel: any): void } - } - /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/watch.html * @@ -407,31 +443,34 @@ declare module dojo { * * @param dfd The Deferred object to watch. */ - interface watch { (dfd: dojo.Deferred): void } + interface watch{(dfd: dojo.Deferred): void} interface watch { /** * Function used to check if basic IO call worked. Gets the dfd * object as its only argument. * */ - ioCheck: Function + ioCheck: Function; /** * Function used to process response. Gets the dfd * object as its only argument. * */ - resHandle: Function + resHandle: Function; /** * Function used to check if the IO request is still valid. Gets the dfd * object as its only argument. * */ - validCheck: Function + validCheck: Function; /** * Cancels all pending IO requests, regardless of IO type * */ - cancelAll: { (): void } + cancelAll(): void; + } + + module watch { } /** @@ -442,7 +481,7 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - interface script { (url: String, options?: dojo.request.script.__Options): void } + interface script{(url: String, options?: dojo.request.script.__Options): void} interface script { /** * Send an HTTP GET request using a script element with the given URL and options. @@ -450,14 +489,15 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - get: { (url: String, options: dojo.request.script.__BaseOptions): dojo.request.__Promise } + get(url: String, options: dojo.request.script.__BaseOptions): dojo.request.__Promise; + } + + module script { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__MethodOptions.html * * */ - } - module script { class __MethodOptions { constructor(); /** @@ -593,32 +633,6 @@ declare module dojo { } } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/registry.html - * - * - * @param url - * @param options - */ - interface registry{(url: any, options: any): void} - interface registry { - /** - * - * @param id - * @param parentRequire - * @param loaded - * @param config - */ - load:{(id: any, parentRequire: any, loaded: any, config: any): void} - /** - * - * @param url - * @param provider - * @param first - */ - register:{(url: any, provider: any, first: any): void} - } - /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.html * @@ -635,35 +649,35 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - del:{(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise} + del(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP GET request using XMLHttpRequest with the given URL and options. * * @param url URL to request * @param options OptionalOptions for the request. */ - get:{(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise} + get(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using XMLHttpRequest with the given URL and options. * * @param url URL to request * @param options OptionalOptions for the request. */ - post:{(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise} + post(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. * * @param url URL to request * @param options OptionalOptions for the request. */ - put:{ (url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise } + put(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; } module xhr { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__BaseOptions.html * - * + * */ class __BaseOptions { constructor(); @@ -808,6 +822,42 @@ declare module dojo { } } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__BaseOptions.html + * + * + */ + class __BaseOptions { + constructor(); + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__MethodOptions.html * @@ -930,68 +980,20 @@ declare module dojo { * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. */ - then(callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; + then(callback: Function, errback: Function, progback: Function): dojo.promise.Promise; /** * */ - toString(): string; + toString(): String; /** - * Trace the promise. - * Tracing allows you to transparently log progress, - * resolution and rejection of promises, without affecting the - * promise itself. Any arguments passed to trace() are - * emitted in trace events. See dojo/promise/tracer on how - * to handle traces. * */ trace(): dojo.promise.Promise; /** - * Trace rejection of the promise. - * Tracing allows you to transparently log progress, - * resolution and rejection of promises, without affecting the - * promise itself. Any arguments passed to trace() are - * emitted in trace events. See dojo/promise/tracer on how - * to handle traces. * */ traceRejected(): dojo.promise.Promise; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__BaseOptions.html - * - * - */ - class __BaseOptions { - constructor(); - /** - * Data to transfer. This is ignored for GET and DELETE - * requests. - * - */ - "data": string; - /** - * How to handle the response from the server. Default is - * 'text'. Other values are 'json', 'javascript', and 'xml'. - * - */ - "handleAs": string; - /** - * Whether to append a cache-busting parameter to the URL. - * - */ - "preventCache": boolean; - /** - * Query parameters to append to the URL. - * - */ - "query": string; - /** - * Milliseconds to wait for the response. If this time - * passes, the then the promise is rejected. - * - */ - "timeout": number; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/default.html * @@ -1079,16 +1081,16 @@ declare module dojo { * * @param returnWrappers Optional */ - class AdapterRegistry { - constructor(returnWrappers?: boolean); + interface AdapterRegistry{(returnWrappers?: boolean): void} + interface AdapterRegistry { /** * */ - pairs: any[] + pairs: any[]; /** * */ - returnWrappers: boolean + returnWrappers: boolean; /** * Find an adapter for the given arguments. If no suitable adapter * is found, throws an exception. match() accepts any number of @@ -1096,7 +1098,7 @@ declare module dojo { * from the registered pairs. * */ - match: {(): any} + match(): any; /** * register a check function to determine if the wrap function or * object gets selected @@ -1107,13 +1109,16 @@ declare module dojo { * @param directReturn OptionalIf directReturn is true, the value passed in for wrap will bereturned instead of being called. Alternately, theAdapterRegistry can be set globally to "return not call" usingthe returnWrappers property. Either way, this behavior allowsthe registry to act as a "search" function instead of afunction interception library. * @param override OptionalIf override is given and true, the check function will be givenhighest priority. Otherwise, it will be the lowest priorityadapter. */ - register: {(name: String, check: Function, wrap: Function, directReturn: boolean, override: boolean): void} + register(name: String, check: Function, wrap: Function, directReturn: boolean, override: boolean): void; /** * Remove a named adapter from the registry * * @param name The name of the adapter. */ - unregister: {(name: String): any} + unregister(name: String): any; + } + + module AdapterRegistry { } /** @@ -1216,7 +1221,7 @@ declare module dojo { * @param props OptionalProperties for the cookie */ interface cookie{(name: String, value?: String, props?: Object): void} - module cookie { + interface cookie { /** * Use to determine if the current browser supports cookies or not. * @@ -1224,7 +1229,10 @@ declare module dojo { * Returns false if user doesn't allow cookies. * */ - interface isSupported{(): void} + isSupported(): void; + } + + module cookie { } /** @@ -1235,16 +1243,32 @@ declare module dojo { * @param callback */ interface domReady{(callback: any): void} - module domReady { + interface domReady { /** * * @param id * @param req * @param load */ - interface load{(id: any, req: any, load: any): void} + load(id: any, req: any, load: any): void; } + module domReady { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/hash.html + * + * Gets or sets the hash string in the browser URL. + * Handles getting and setting of location.hash. + * + * If no arguments are passed, acts as a getter. + * If a string is passed, acts as a setter. + * + * @param hash Optionalthe hash is set - #string. + * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. + */ + interface hash{(hash?: String, replace?: boolean): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/has.html * @@ -1265,11 +1289,11 @@ declare module dojo { * @param name The name (if a string) or identifier (if an integer) of the feature to test. */ interface has{(name: number): void} - module has { + interface has { /** * */ - var cache: string + cache: string; /** * Register a new feature test for some named feature. * @@ -1278,7 +1302,7 @@ declare module dojo { * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). */ - interface add{(name: String, test: Function, now: boolean, force: boolean): any} + add(name: String, test: Function, now: boolean, force: boolean): any; /** * Register a new feature test for some named feature. * @@ -1287,13 +1311,13 @@ declare module dojo { * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). */ - interface add{(name: number, test: Function, now: boolean, force: boolean): any} + add(name: number, test: Function, now: boolean, force: boolean): any; /** * Deletes the contents of the element passed to test functions. * * @param element */ - interface clearElement{(element: any): void} + clearElement(element: any): void; /** * Conditional loading of AMD modules based on a has feature test value. * @@ -1301,29 +1325,19 @@ declare module dojo { * @param parentRequire The loader require function with respect to the module that contained the plugin resource in it'sdependency list. * @param loaded Callback to loader that consumes result of plugin demand. */ - interface load{(id: String, parentRequire: Function, loaded: Function): void} + load(id: String, parentRequire: Function, loaded: Function): void; /** * Resolves id into a module id based on possibly-nested tenary expression that branches on has feature test value(s). * * @param id * @param toAbsMid Resolves a relative module id into an absolute module id */ - interface normalize{(id: any, toAbsMid: Function): void} + normalize(id: any, toAbsMid: Function): void; + } + + module has { } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/hash.html - * - * Gets or sets the hash string in the browser URL. - * Handles getting and setting of location.hash. - * - * If no arguments are passed, acts as a getter. - * If a string is passed, acts as a setter. - * - * @param hash Optionalthe hash is set - #string. - * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. - */ - interface hash{(hash?: String, replace?: boolean): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/hccss.html * @@ -1333,6 +1347,20 @@ declare module dojo { * */ interface hccss{(): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-data.html + * + * Adds data() and removeData() methods to NodeList, and returns NodeList constructor. + * + */ + interface NodeList_data{(): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-html.html + * + * Adds a chainable html method to dojo/query() / NodeList instances for setting/replacing node content + * + */ + interface NodeList_html{(): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-fx.html * @@ -1341,38 +1369,41 @@ declare module dojo { * */ interface NodeList_fx{(): void} - module NodeList_fx { + interface NodeList_fx { /** * fade all elements of the node list to a specified opacity * * @param args */ - interface fadeTo{(args: any): any} + fadeTo(args: any): any; /** * highlight all elements of the node list. * Returns an instance of dojo.Animation * * @param args */ - interface highlight{(args: any): any} + highlight(args: any): any; /** * size all elements of this NodeList. Returns an instance of dojo.Animation * * @param args */ - interface sizeTo{(args: any): any} + sizeTo(args: any): any; /** * slide all elements of this NodeList. Returns an instance of dojo.Animation * * @param args */ - interface slideBy{(args: any): any} + slideBy(args: any): any; /** * Wipe all elements of the NodeList to a specified width: or height: * * @param args */ - interface wipeTo{(args: any): any} + wipeTo(args: any): any; + } + + module NodeList_fx { } /** @@ -1382,13 +1413,6 @@ declare module dojo { * */ interface NodeList_dom{(): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-html.html - * - * Adds a chainable html method to dojo/query() / NodeList instances for setting/replacing node content - * - */ - interface NodeList_html{(): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-manipulate.html * @@ -1540,14 +1564,14 @@ declare module dojo { * @param dontFix */ interface on{(target: Object, type: Function, listener: Function, dontFix: any): void} - module on { + interface on { /** * * @param target * @param type * @param event */ - interface emit{(target: any, type: any, event: any): any} + emit(target: any, type: any, event: any): any; /** * This function acts the same as on(), but will only call the listener once. The * listener will be called for the first @@ -1558,7 +1582,7 @@ declare module dojo { * @param listener * @param dontFix */ - interface once{(target: any, type: any, listener: any, dontFix: any): any} + once(target: any, type: any, listener: any, dontFix: any): any; /** * * @param target @@ -1568,7 +1592,7 @@ declare module dojo { * @param dontFix * @param matchesTarget */ - interface parse{(target: any, type: any, listener: any, addListener: any, dontFix: any, matchesTarget: any): any} + parse(target: any, type: any, listener: any, addListener: any, dontFix: any, matchesTarget: any): any; /** * This function acts the same as on(), but with pausable functionality. The * returned signal object has pause() and resume() functions. Calling the @@ -1580,7 +1604,7 @@ declare module dojo { * @param listener * @param dontFix */ - interface pausable{(target: any, type: any, listener: any, dontFix: any): any} + pausable(target: any, type: any, listener: any, dontFix: any): any; /** * Creates a new extension event with event delegation. This is based on * the provided event type (can be extension event) that @@ -1592,16 +1616,12 @@ declare module dojo { * @param eventType The event to listen for * @param children Indicates if children elements of the selector should be allowed. This defaults to true */ - interface selector{(selector: any, eventType: any, children: any): Function} + selector(selector: any, eventType: any, children: any): Function; + } + + module on { } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-data.html - * - * Adds data() and removeData() methods to NodeList, and returns NodeList constructor. - * - */ - interface NodeList_data{(): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/query.html * @@ -1686,7 +1706,7 @@ declare module dojo { * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. */ interface query{(selector: String, context?: HTMLElement): void} - module query { + interface query { /** * can be used as AMD plugin to conditionally load new query engine * @@ -1694,7 +1714,7 @@ declare module dojo { * @param parentRequire * @param loaded */ - interface load{(id: any, parentRequire: any, loaded: any): void} + load(id: any, parentRequire: any, loaded: any): void; /** * Array-like object which adds syntactic * sugar for chaining, common iteration operations, animation, and @@ -1709,7 +1729,10 @@ declare module dojo { * * @param array */ - interface NodeList{(array: any): any[]} + NodeList(array: any): any[]; + } + + module query { } /** @@ -1862,7 +1885,7 @@ declare module dojo { /** * */ - toString(): string; + toString(): String; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/Evented.html @@ -2322,6 +2345,27 @@ declare module dojo { * @param fn Callback function passed the event object, and where this == the node that matches the selector.That means that for example, after setting up a handler viadojo.query("body").delegate("fieldset", "onclick", ...)clicking on a fieldset or any nodes inside of a fieldset will be reportedas a click on the fieldset itself. */ delegate(selector: String, eventName: String, fn: Function): any; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: dojox.dtl.__StringArgs , context: dojox.dtl.__ObjectArgs ): Function; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: String, context: dojox.dtl.__ObjectArgs ): Function; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: dojox.dtl.__StringArgs , context: Object): Function; /** * Renders the specified template in each of the NodeList entries. * @@ -3054,7 +3098,7 @@ declare module dojo { * * @param name The property to get. */ - get(name: string): any; + get(name: String): any; /** * * @param params Optional @@ -3068,7 +3112,7 @@ declare module dojo { * @param name The property to set. * @param value The value to set in the property. */ - set(name: string, value: Object): any; + set(name: String, value: Object): any; /** * Watches a property for changes * @@ -3152,8 +3196,83 @@ declare module dojo { * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ - interface declare{(className?: String, superclass?: any[], props?: Object): typeof dojo._base.declare.__DeclareCreatedObject} - module declare { + interface declare{(className?: String, superclass?: Function, props?: Object): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.html + * + * Create a feature-rich constructor from compact notation. + * Create a constructor using a compact notation for inheritance and + * prototype extension. + * + * Mixin ancestors provide a type of multiple inheritance. + * Prototypes of mixin ancestors are copied to the new class: + * changes to mixin prototypes will not affect classes to which + * they have been mixed in. + * + * Ancestors can be compound classes created by this version of + * declare(). In complex cases all base classes are going to be + * linearized according to C3 MRO algorithm + * (see http://www.python.org/download/releases/2.3/mro/ for more + * details). + * + * "className" is cached in "declaredClass" property of the new class, + * if it was supplied. The immediate super class will be cached in + * "superclass" property of the new class. + * + * Methods in "props" will be copied and modified: "nom" property + * (the declared name of the method) will be added to all copied + * functions to help identify them for the internal machinery. Be + * very careful, while reusing methods: if you use the same + * function under different names, it can produce errors in some + * cases. + * + * It is possible to use constructors created "manually" (without + * declare()) as bases. They will be called as usual during the + * creation of an instance, their methods will be chained, and even + * called by "this.inherited()". + * + * Special property "-chains-" governs how to chain methods. It is + * a dictionary, which uses method names as keys, and hint strings + * as values. If a hint string is "after", this method will be + * called after methods of its base classes. If a hint string is + * "before", this method will be called before methods of its base + * classes. + * + * If "constructor" is not mentioned in "-chains-" property, it will + * be chained using the legacy mode: using "after" chaining, + * calling preamble() method before each constructor, if available, + * and calling postscript() after all constructors were executed. + * If the hint is "after", it is chained as a regular method, but + * postscript() will be called after the chain of constructors. + * "constructor" cannot be chained "before", but it allows + * a special hint string: "manual", which means that constructors + * are not going to be chained in any way, and programmer will call + * them manually using this.inherited(). In the latter case + * postscript() will be called after the construction. + * + * All chaining hints are "inherited" from base classes and + * potentially can be overridden. Be very careful when overriding + * hints! Make sure that all chained methods can work in a proposed + * manner of chaining. + * + * Once a method was chained, it is impossible to unchain it. The + * only exception is "constructor". You don't need to define a + * method in order to supply a chaining hint. + * + * If a method is chained, it cannot use this.inherited() because + * all other methods in the hierarchy will be called automatically. + * + * Usually constructors and initializers of any kind are chained + * using "after" and destructors of any kind are chained as + * "before". Note that chaining assumes that chained methods do not + * return any value: any returned value will be discarded. + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + */ + interface declare{(className?: String, superclass?: Function[], props?: Object): void} + interface declare { /** * Mix in properties skipping a constructor and decorating functions * like it is done by declare(). @@ -3171,7 +3290,10 @@ declare module dojo { * @param target Target object to accept new properties. * @param source Source object for new properties. */ - interface safeMixin{(target: Object, source: Object): Object} + safeMixin(target: Object, source: Object): Object; + } + + module declare { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.__DeclareCreatedObject.html * @@ -3318,95 +3440,95 @@ declare module dojo { * @param canceller Optional */ interface Deferred{(canceller?: Function): void} - module Deferred { + interface Deferred { /** * */ - var fired: number + fired: number; /** * */ - var promise: Object + promise: Object; /** * Add handler as both successful callback and error callback for this deferred instance. * * @param callback */ - interface addBoth{(callback: Function): any} + addBoth(callback: Function): any; /** * Adds successful callback for this deferred instance. * * @param callback */ - interface addCallback{(callback: Function): any} + addCallback(callback: Function): any; /** * Adds callback and error callback for this deferred instance. * * @param callback OptionalThe callback attached to this deferred object. * @param errback OptionalThe error callback attached to this deferred object. */ - interface addCallbacks{(callback: Function, errback: Function): any} + addCallbacks(callback: Function, errback: Function): any; /** * Adds error callback for this deferred instance. * * @param errback */ - interface addErrback{(errback: Function): any} + addErrback(errback: Function): any; /** * Fulfills the Deferred instance successfully with the provide value * * @param value */ - interface callback{(value: any): void} + callback(value: any): void; /** * Cancels the asynchronous operation * */ - interface cancel{(): void} + cancel(): void; /** * Fulfills the Deferred instance as an error with the provided error * * @param error */ - interface errback{(error: any): void} + errback(error: any): void; /** * Checks whether the deferred has been canceled. * */ - interface isCanceled{(): boolean} + isCanceled(): boolean; /** * Checks whether the deferred has been resolved or rejected. * */ - interface isFulfilled{(): boolean} + isFulfilled(): boolean; /** * Checks whether the deferred has been rejected. * */ - interface isRejected{(): boolean} + isRejected(): boolean; /** * Checks whether the deferred has been resolved. * */ - interface isResolved{(): boolean} + isResolved(): boolean; /** * Send progress events to all listeners * * @param update */ - interface progress{(update: any): void} + progress(update: any): void; /** * Fulfills the Deferred instance as an error with the provided error * * @param error */ - interface reject{(error: any): void} + reject(error: any): void; /** * Fulfills the Deferred instance successfully with the provide value * * @param value */ - interface resolve{(value: any): void} + resolve(value: any): void; /** * Adds a fulfilledHandler, errorHandler, and progressHandler to be called for * completion of a promise. The fulfilledHandler is called when the promise @@ -3426,7 +3548,7 @@ declare module dojo { * @param errorCallback Optional * @param progressCallback Optional */ - interface then{(resolvedCallback: Function, errorCallback: Function, progressCallback: Function): any} + then(resolvedCallback: Function, errorCallback: Function, progressCallback: Function): any; /** * Transparently applies callbacks to values and/or promises. * Accepts promises but also transparently handles non-promises. If no @@ -3443,7 +3565,10 @@ declare module dojo { * @param errback OptionalCallback to be invoked when the promise is rejected. * @param progback OptionalCallback to be invoked when the promise emits a progress update. */ - interface when{(valueOrPromise: any, callback: Function, errback: Function, progback: Function): any} + when(valueOrPromise: any, callback: Function, errback: Function, progback: Function): any; + } + + module Deferred { } /** @@ -3452,58 +3577,54 @@ declare module dojo { * */ interface url{(): void} + interface url { + /** + * + */ + authority: Object; + /** + * + */ + fragment: Object; + /** + * + */ + host: Object; + /** + * + */ + password: Object; + /** + * + */ + path: Object; + /** + * + */ + port: Object; + /** + * + */ + query: Object; + /** + * + */ + scheme: Object; + /** + * + */ + uri: Object; + /** + * + */ + user: Object; + /** + * + */ + toString(): void; + } + module url { - /** - * - */ - var authority: Object - /** - * - */ - var fragment: Object - /** - * - */ - var host: Object - /** - * - */ - var password: Object - /** - * - */ - var path: Object - /** - * - */ - var port: Object - /** - * - */ - var query: Object - /** - * - */ - var scheme: Object - /** - * - */ - var uri: Object - /** - * - */ - var user: Object - /** - * - */ - interface toString{(): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.fragment.html - * - * - */ - interface fragment { - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.authority.html * @@ -3518,6 +3639,20 @@ declare module dojo { */ interface password { } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.port.html + * + * + */ + interface port { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.fragment.html + * + * + */ + interface fragment { + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.query.html * @@ -3525,13 +3660,6 @@ declare module dojo { */ interface query { } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.scheme.html - * - * - */ - interface scheme { - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.user.html * @@ -3540,11 +3668,11 @@ declare module dojo { interface user { } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.port.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.scheme.html * * */ - interface port { + interface scheme { } } @@ -3562,19 +3690,19 @@ declare module dojo { * @param hasBody OptionalIf the request has an HTTP body, then pass true for hasBody. */ interface xhr{(method: String, args: Object, hasBody?: boolean): void} - module xhr { + interface xhr { /** * A map of available XHR transport handle types. Name matches the * handleAs attribute passed to XHR calls. * */ - var contentHandlers: Object + contentHandlers: Object; /** * Sends an HTTP DELETE request to the server. * * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ - interface del{(args: Object): any} + del(args: Object): any; /** * Serialize a form field to a JavaScript object. * Returns the value encoded in a form field as @@ -3584,7 +3712,7 @@ declare module dojo { * * @param inputNode */ - interface fieldToObject{(inputNode: HTMLElement): any} + fieldToObject(inputNode: HTMLElement): any; /** * Serialize a form field to a JavaScript object. * Returns the value encoded in a form field as @@ -3594,7 +3722,7 @@ declare module dojo { * * @param inputNode */ - interface fieldToObject{(inputNode: String): any} + fieldToObject(inputNode: String): any; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize @@ -3602,7 +3730,7 @@ declare module dojo { * @param formNode * @param prettyPrint Optional */ - interface formToJson{(formNode: HTMLElement, prettyPrint: boolean): any} + formToJson(formNode: HTMLElement, prettyPrint: boolean): any; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize @@ -3610,7 +3738,7 @@ declare module dojo { * @param formNode * @param prettyPrint Optional */ - interface formToJson{(formNode: String, prettyPrint: boolean): any} + formToJson(formNode: String, prettyPrint: boolean): any; /** * Serialize a form node to a JavaScript object. * Returns the values encoded in an HTML form as @@ -3620,7 +3748,7 @@ declare module dojo { * * @param formNode */ - interface formToObject{(formNode: HTMLElement): Object} + formToObject(formNode: HTMLElement): Object; /** * Serialize a form node to a JavaScript object. * Returns the values encoded in an HTML form as @@ -3630,55 +3758,58 @@ declare module dojo { * * @param formNode */ - interface formToObject{(formNode: String): Object} + formToObject(formNode: String): Object; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize * * @param formNode */ - interface formToQuery{(formNode: HTMLElement): any} + formToQuery(formNode: HTMLElement): any; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize * * @param formNode */ - interface formToQuery{(formNode: String): any} + formToQuery(formNode: String): any; /** * Sends an HTTP GET request to the server. * * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ - interface get{(args: Object): any} + get(args: Object): any; /** * takes a name/value mapping object and returns a string representing * a URL-encoded version of that object. * * @param map */ - interface objectToQuery{(map: Object): any} + objectToQuery(map: Object): any; /** * Sends an HTTP POST request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: * * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ - interface post{(args: Object): any} + post(args: Object): any; /** * Sends an HTTP PUT request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: * * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ - interface put{(args: Object): any} + put(args: Object): any; /** * Create an object representing a de-serialized query section of a * URL. Query keys with multiple values are returned in an array. * * @param str */ - interface queryToObject{(str: String): Object} + queryToObject(str: String): Object; + } + + module xhr { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/xhr.contentHandlers.html * @@ -3889,7 +4020,7 @@ declare module dojo { */ "require": Object; /** - * Array containing the r, g, b components used as transparent color in dojo._base.Color; + * Array containing the r, g, b components used as transparent color in dojo.Color; * if undefined, [255,255,255] (white) will be used. * */ @@ -4006,7 +4137,7 @@ declare module dojo { * Parses str for a color value. Accepts hex, rgb, and rgba * style color values. * Acceptable input values for str may include arrays of any form - * accepted by dojo._base.ColorFromArray, hex strings such as "#aaaaaa", or + * accepted by dojo.colorFromArray, hex strings such as "#aaaaaa", or * rgb or rgba strings such as "rgb(133, 200, 16)" or "rgba(10, 10, * 10, 50)" * @@ -5245,14 +5376,6 @@ declare module dojo { */ unsubscribe(handle: Object): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/html.html - * - * This module is a stub for the core dojo DOM API. - * - */ - interface html { - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/event.html * @@ -5277,6 +5400,39 @@ declare module dojo { */ stop(evt: Event): void; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/html.html + * + * This module is a stub for the core dojo DOM API. + * + */ + interface html { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/json.html + * + * This module defines the dojo JSON API. + * + */ + interface json { + } + + module fx { + /** + * A generic animation class that fires callbacks into its handlers + * object at various states. + * A generic animation class that fires callbacks into its handlers + * object at various states. Nearly all dojo animation functions + * return an instance of this method, usually without calling the + * .play() method beforehand. Therefore, you will likely need to + * call .play() on instances of Animation when one is + * returned. + * + * @param args The 'magic argument', mixing all the properties into thisanimation instance. + */ + interface Animation { } + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/fx.html * @@ -5304,7 +5460,7 @@ declare module dojo { * @param onEnd OptionalA function to be called when the animation finishesrunning. * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. */ - anim(node: HTMLElement, properties: Object, duration: number, easing: Function, onEnd: Function, delay: number): any; + anim (node: HTMLElement, properties: Object, duration: number, easing: Function, onEnd: Function, delay: number): any ; /** * A simpler interface to animateProperty(), also returns * an instance of Animation but begins the animation @@ -5325,7 +5481,7 @@ declare module dojo { * @param onEnd OptionalA function to be called when the animation finishesrunning. * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. */ - anim(node: String, properties: Object, duration: number, easing: Function, onEnd: Function, delay: number): any; + anim (node: String, properties: Object, duration: number, easing: Function, onEnd: Function, delay: number): any ; /** * Returns an animation that will transition the properties of * node defined in args depending how they are defined in @@ -5337,45 +5493,22 @@ declare module dojo { * * @param args An object with the following properties:properties (Object, optional): A hash map of style properties to Objects describing the transition,such as the properties of _Line with an additional 'units' propertynode (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ - animateProperty(args: Object): any; - /** - * A generic animation class that fires callbacks into its handlers - * object at various states. - * A generic animation class that fires callbacks into its handlers - * object at various states. Nearly all dojo animation functions - * return an instance of this method, usually without calling the - * .play() method beforehand. Therefore, you will likely need to - * call .play() on instances of Animation when one is - * returned. - * - * @param args The 'magic argument', mixing all the properties into thisanimation instance. - */ - Animation(args: Object): void; + animateProperty (args: Object): any ; + /** * Returns an animation that will fade node defined in 'args' from * its current opacity to fully opaque. * * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ - fadeIn(args: Object): any; + fadeIn (args: Object): any ; /** * Returns an animation that will fade node defined in 'args' * from its current opacity to fully transparent. * * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ - fadeOut(args: Object): any; - } - module fx { - interface Animation { } - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/json.html - * - * This module defines the dojo JSON API. - * - */ - interface json { + fadeOut (args: Object): any ; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/query.html @@ -5405,6 +5538,209 @@ declare module dojo { */ interface sniff { } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/lang.html + * + * This module defines Javascript language extensions. + * + */ + interface lang { + /** + * Clones objects (including DOM nodes) and all children. + * Warning: do not clone cyclic structures. + * + * @param src The object to clone + */ + clone(src: any): any; + /** + * Returns a new object which "looks" to obj for properties which it + * does not have a value for. Optionally takes a bag of properties to + * seed the returned object with initially. + * This is a small implementation of the Boodman/Crockford delegation + * pattern in JavaScript. An intermediate object constructor mediates + * the prototype chain for the returned object, using it to delegate + * down to obj for property lookup when object-local lookup fails. + * This can be thought of similarly to ES4's "wrap", save that it does + * not act on types but rather on pure objects. + * + * @param obj The object to delegate to for properties not found directly on thereturn object or in props. + * @param props an object containing properties to assign to the returned object + */ + delegate(obj: Object, props: Object[]): any; + /** + * determine if an object supports a given method + * useful for longer api chains where you have to test each object in + * the chain. Useful for object and method detection. + * + * @param name Path to an object, in the form "A.B.C". + * @param obj OptionalObject to use as root of path. Defaults to'dojo.global'. Null may be passed. + */ + exists(name: String, obj: Object): boolean; + /** + * Adds all properties and methods of props to constructor's + * prototype, making them available to all instances created with + * constructor. + * + * @param ctor Target constructor to extend. + * @param props One or more objects to mix into ctor.prototype + */ + extend(ctor: Object, props: Object): Object; + /** + * Get a property from a dot-separated string, such as "A.B.C" + * Useful for longer api chains where you have to test each object in + * the chain, or when you have an object reference in string format. + * + * @param name Path to an property, in the form "A.B.C". + * @param create OptionalOptional. Defaults to false. If true, Objects will becreated at any point along the 'path' that is undefined. + * @param context OptionalOptional. Object to use as root of path. Defaults to'dojo.global'. Null may be passed. + */ + getObject(name: String, create: boolean, context: Object): any; + /** + * Returns a function that will only ever execute in the a given scope. + * This allows for easy use of object member functions + * in callbacks and other places in which the "this" keyword may + * otherwise not reference the expected scope. + * Any number of default positional arguments may be passed as parameters + * beyond "method". + * Each of these values will be used to "placehold" (similar to curry) + * for the hitched function. + * + * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. + * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. + */ + hitch(scope: Object, method: Function): any; + /** + * Returns a function that will only ever execute in the a given scope. + * This allows for easy use of object member functions + * in callbacks and other places in which the "this" keyword may + * otherwise not reference the expected scope. + * Any number of default positional arguments may be passed as parameters + * beyond "method". + * Each of these values will be used to "placehold" (similar to curry) + * for the hitched function. + * + * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. + * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. + */ + hitch(scope: Object, method: String[]): any; + /** + * Returns true if it is a built-in function or some other kind of + * oddball that should report as a function but doesn't + * + * @param it + */ + isAlien(it: any): any; + /** + * Return true if it is an Array. + * Does not work on Arrays created in other windows. + * + * @param it Item to test. + */ + isArray(it: any): any; + /** + * similar to isArray() but more permissive + * Doesn't strongly test for "arrayness". Instead, settles for "isn't + * a string or number and has a length property". Arguments objects + * and DOM collections will return true when passed to + * isArrayLike(), but will return false when passed to + * isArray(). + * + * @param it Item to test. + */ + isArrayLike(it: any): any; + /** + * Return true if it is a Function + * + * @param it Item to test. + */ + isFunction(it: any): boolean; + /** + * Returns true if it is a JavaScript object (or an Array, a Function + * or null) + * + * @param it Item to test. + */ + isObject(it: any): boolean; + /** + * Return true if it is a String + * + * @param it Item to test. + */ + isString(it: any): boolean; + /** + * Copies/adds all properties of one or more sources to dest; returns dest. + * All properties, including functions (sometimes termed "methods"), excluding any non-standard extensions + * found in Object.prototype, are copied/added from sources to dest. sources are processed left to right. + * The Javascript assignment operator is used to copy/add each property; therefore, by default, mixin + * executes a so-called "shallow copy" and aggregate types are copied/added by reference. + * + * @param dest The object to which to copy/add all properties contained in source. If dest is falsy, thena new object is manufactured before copying/adding properties begins. + * @param sources One of more objects from which to draw all properties to copy into dest. sources are processedleft-to-right and if more than one of these objects contain the same property name, the right-mostvalue "wins". + */ + mixin(dest: Object, sources: Object[]): Object; + /** + * similar to hitch() except that the scope object is left to be + * whatever the execution context eventually becomes. + * Calling lang.partial is the functional equivalent of calling: + * + * lang.hitch(null, funcName, ...); + * + * @param method The function to "wrap" + */ + partial(method: Function): any; + /** + * similar to hitch() except that the scope object is left to be + * whatever the execution context eventually becomes. + * Calling lang.partial is the functional equivalent of calling: + * + * lang.hitch(null, funcName, ...); + * + * @param method The function to "wrap" + */ + partial(method: String): any; + /** + * Performs parameterized substitutions on a string. Throws an + * exception if any parameter is unmatched. + * + * @param tmpl String to be used as a template. + * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). + * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". + */ + replace(tmpl: String, map: Object, pattern: RegExp): String; + /** + * Performs parameterized substitutions on a string. Throws an + * exception if any parameter is unmatched. + * + * @param tmpl String to be used as a template. + * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). + * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". + */ + replace(tmpl: String, map: Function, pattern: RegExp): String; + /** + * Set a property from a dot-separated string, such as "A.B.C" + * Useful for longer api chains where you have to test each object in + * the chain, or when you have an object reference in string format. + * Objects are created as needed along path. Returns the passed + * value if setting is successful or undefined if not. + * + * @param name Path to a property, in the form "A.B.C". + * @param value value or object to place at location given by name + * @param context OptionalOptional. Object to use as root of path. Defaults todojo.global. + */ + setObject(name: String, value: any, context: Object): any; + /** + * Trims whitespace from both sides of the string + * This version of trim() was selected for inclusion into the base due + * to its compact size and relatively good performance + * (see Steven Levithan's blog + * Uses String.prototype.trim instead, if available. + * The fastest but longest version of this function is located at + * lang.string.trim() + * + * @param str String to be trimmed + */ + trim(str: String): String; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/unload.html * @@ -5643,6 +5979,25 @@ declare module dojo { withGlobal(globalObject: Object, callback: Function, thisObject: Object, cbArguments: any[]): any; } module window { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/window.doc.html + * + * Alias for the current document. 'doc' can be modified + * for temporary context shifting. See also withDoc(). + * Use this rather than referring to 'window.document' to ensure your code runs + * correctly in managed contexts. + * + */ + interface doc { + /** + * + */ + documentElement: Object; + /** + * + */ + dojoClick: boolean; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/window.global.html * @@ -5678,230 +6033,8 @@ declare module dojo { */ undefined_onload(): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/window.doc.html - * - * Alias for the current document. 'doc' can be modified - * for temporary context shifting. See also withDoc(). - * Use this rather than referring to 'window.document' to ensure your code runs - * correctly in managed contexts. - * - */ - interface doc { - /** - * - */ - documentElement: Object; - /** - * - */ - dojoClick: boolean; - } } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/lang.html - * - * This module defines Javascript language extensions. - * - */ - interface lang { - /** - * Clones objects (including DOM nodes) and all children. - * Warning: do not clone cyclic structures. - * - * @param src The object to clone - */ - clone(src: any): any; - /** - * Returns a new object which "looks" to obj for properties which it - * does not have a value for. Optionally takes a bag of properties to - * seed the returned object with initially. - * This is a small implementation of the Boodman/Crockford delegation - * pattern in JavaScript. An intermediate object constructor mediates - * the prototype chain for the returned object, using it to delegate - * down to obj for property lookup when object-local lookup fails. - * This can be thought of similarly to ES4's "wrap", save that it does - * not act on types but rather on pure objects. - * - * @param obj The object to delegate to for properties not found directly on thereturn object or in props. - * @param props an object containing properties to assign to the returned object - */ - delegate(obj: Object, props: Object[]): any; - /** - * determine if an object supports a given method - * useful for longer api chains where you have to test each object in - * the chain. Useful for object and method detection. - * - * @param name Path to an object, in the form "A.B.C". - * @param obj OptionalObject to use as root of path. Defaults to'dojo.global'. Null may be passed. - */ - exists(name: String, obj: Object): boolean; - /** - * Adds all properties and methods of props to constructor's - * prototype, making them available to all instances created with - * constructor. - * - * @param ctor Target constructor to extend. - * @param props One or more objects to mix into ctor.prototype - */ - extend(ctor: Object, props: Object): Object; - /** - * Get a property from a dot-separated string, such as "A.B.C" - * Useful for longer api chains where you have to test each object in - * the chain, or when you have an object reference in string format. - * - * @param name Path to an property, in the form "A.B.C". - * @param create OptionalOptional. Defaults to false. If true, Objects will becreated at any point along the 'path' that is undefined. - * @param context OptionalOptional. Object to use as root of path. Defaults to'dojo.global'. Null may be passed. - */ - getObject(name: String, create: boolean, context: Object): any; - /** - * Returns a function that will only ever execute in the a given scope. - * This allows for easy use of object member functions - * in callbacks and other places in which the "this" keyword may - * otherwise not reference the expected scope. - * Any number of default positional arguments may be passed as parameters - * beyond "method". - * Each of these values will be used to "placehold" (similar to curry) - * for the hitched function. - * - * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. - * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. - */ - hitch(scope: Object, method: Function): any; - /** - * Returns a function that will only ever execute in the a given scope. - * This allows for easy use of object member functions - * in callbacks and other places in which the "this" keyword may - * otherwise not reference the expected scope. - * Any number of default positional arguments may be passed as parameters - * beyond "method". - * Each of these values will be used to "placehold" (similar to curry) - * for the hitched function. - * - * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. - * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. - */ - hitch(scope: Object, method: String[]): any; - /** - * Returns true if it is a built-in function or some other kind of - * oddball that should report as a function but doesn't - * - * @param it - */ - isAlien(it: any): any; - /** - * Return true if it is an Array. - * Does not work on Arrays created in other windows. - * - * @param it Item to test. - */ - isArray(it: any): any; - /** - * similar to isArray() but more permissive - * Doesn't strongly test for "arrayness". Instead, settles for "isn't - * a string or number and has a length property". Arguments objects - * and DOM collections will return true when passed to - * isArrayLike(), but will return false when passed to - * isArray(). - * - * @param it Item to test. - */ - isArrayLike(it: any): any; - /** - * Return true if it is a Function - * - * @param it Item to test. - */ - isFunction(it: any): boolean; - /** - * Returns true if it is a JavaScript object (or an Array, a Function - * or null) - * - * @param it Item to test. - */ - isObject(it: any): boolean; - /** - * Return true if it is a String - * - * @param it Item to test. - */ - isString(it: any): boolean; - /** - * Copies/adds all properties of one or more sources to dest; returns dest. - * All properties, including functions (sometimes termed "methods"), excluding any non-standard extensions - * found in Object.prototype, are copied/added from sources to dest. sources are processed left to right. - * The Javascript assignment operator is used to copy/add each property; therefore, by default, mixin - * executes a so-called "shallow copy" and aggregate types are copied/added by reference. - * - * @param dest The object to which to copy/add all properties contained in source. If dest is falsy, thena new object is manufactured before copying/adding properties begins. - * @param sources One of more objects from which to draw all properties to copy into dest. sources are processedleft-to-right and if more than one of these objects contain the same property name, the right-mostvalue "wins". - */ - mixin(dest: Object, sources: Object[]): Object; - /** - * similar to hitch() except that the scope object is left to be - * whatever the execution context eventually becomes. - * Calling lang.partial is the functional equivalent of calling: - * - * lang.hitch(null, funcName, ...); - * - * @param method The function to "wrap" - */ - partial(method: Function): any; - /** - * similar to hitch() except that the scope object is left to be - * whatever the execution context eventually becomes. - * Calling lang.partial is the functional equivalent of calling: - * - * lang.hitch(null, funcName, ...); - * - * @param method The function to "wrap" - */ - partial(method: String): any; - /** - * Performs parameterized substitutions on a string. Throws an - * exception if any parameter is unmatched. - * - * @param tmpl String to be used as a template. - * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). - * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". - */ - replace(tmpl: String, map: Object, pattern: RegExp): String; - /** - * Performs parameterized substitutions on a string. Throws an - * exception if any parameter is unmatched. - * - * @param tmpl String to be used as a template. - * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). - * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". - */ - replace(tmpl: String, map: Function, pattern: RegExp): String; - /** - * Set a property from a dot-separated string, such as "A.B.C" - * Useful for longer api chains where you have to test each object in - * the chain, or when you have an object reference in string format. - * Objects are created as needed along path. Returns the passed - * value if setting is successful or undefined if not. - * - * @param name Path to a property, in the form "A.B.C". - * @param value value or object to place at location given by name - * @param context OptionalOptional. Object to use as root of path. Defaults todojo.global. - */ - setObject(name: String, value: any, context: Object): any; - /** - * Trims whitespace from both sides of the string - * This version of trim() was selected for inclusion into the base due - * to its compact size and relatively good performance - * (see Steven Levithan's blog - * Uses String.prototype.trim instead, if available. - * The fastest but longest version of this function is located at - * lang.string.trim() - * - * @param str String to be trimmed - */ - trim(str: String): String; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.html * @@ -6685,7 +6818,7 @@ declare module dojo { * Parses str for a color value. Accepts hex, rgb, and rgba * style color values. * Acceptable input values for str may include arrays of any form - * accepted by dojo._base.ColorFromArray, hex strings such as "#aaaaaa", or + * accepted by dojo.colorFromArray, hex strings such as "#aaaaaa", or * rgb or rgba strings such as "rgb(133, 200, 16)" or "rgba(10, 10, * 10, 50)" * @@ -9112,6 +9245,59 @@ declare module dojo { */ "xhr": Object; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.__IoPublish.html + * + * This is a list of IO topics that can be published + * if djConfig.ioPublish is set to true. IO topics can be + * published for any Input/Output, network operation. So, + * dojo.xhr, dojo.io.script and dojo.io.iframe can all + * trigger these topics to be published. + * + */ + class __IoPublish { + constructor(); + /** + * "/dojo/io/done" is sent whenever an IO request has completed, + * either by loading or by erroring. It passes the error and + * the dojo.Deferred for the request with the topic. + * + */ + "done": string; + /** + * "/dojo/io/error" is sent whenever an IO request has errored. + * It passes the error and the dojo.Deferred + * for the request with the topic. + * + */ + "error": string; + /** + * "/dojo/io/load" is sent whenever an IO request has loaded + * successfully. It passes the response and the dojo.Deferred + * for the request with the topic. + * + */ + "load": string; + /** + * "/dojo/io/send" is sent whenever a new IO request is started. + * It passes the dojo.Deferred for the request with the topic. + * + */ + "send": string; + /** + * "/dojo/io/start" is sent when there are no outstanding IO + * requests, and a new IO request is started. No arguments + * are passed with this topic. + * + */ + "start": string; + /** + * "/dojo/io/stop" is sent when all outstanding IO requests have + * finished. No arguments are passed with this topic. + * + */ + "stop": string; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.__IoArgs.html * @@ -9321,59 +9507,6 @@ declare module dojo { */ load(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.__IoPublish.html - * - * This is a list of IO topics that can be published - * if djConfig.ioPublish is set to true. IO topics can be - * published for any Input/Output, network operation. So, - * dojo.xhr, dojo.io.script and dojo.io.iframe can all - * trigger these topics to be published. - * - */ - class __IoPublish { - constructor(); - /** - * "/dojo/io/done" is sent whenever an IO request has completed, - * either by loading or by erroring. It passes the error and - * the dojo.Deferred for the request with the topic. - * - */ - "done": string; - /** - * "/dojo/io/error" is sent whenever an IO request has errored. - * It passes the error and the dojo.Deferred - * for the request with the topic. - * - */ - "error": string; - /** - * "/dojo/io/load" is sent whenever an IO request has loaded - * successfully. It passes the response and the dojo.Deferred - * for the request with the topic. - * - */ - "load": string; - /** - * "/dojo/io/send" is sent whenever a new IO request is started. - * It passes the dojo.Deferred for the request with the topic. - * - */ - "send": string; - /** - * "/dojo/io/start" is sent when there are no outstanding IO - * requests, and a new IO request is started. No arguments - * are passed with this topic. - * - */ - "start": string; - /** - * "/dojo/io/stop" is sent when all outstanding IO requests have - * finished. No arguments are passed with this topic. - * - */ - "stop": string; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.Stateful.html * @@ -9398,7 +9531,7 @@ declare module dojo { * * @param name The property to get. */ - get(name: string): any; + get(name: String): any; /** * * @param params Optional @@ -9412,7 +9545,7 @@ declare module dojo { * @param name The property to set. * @param value The value to set in the property. */ - set(name: string, value: Object): any; + set(name: String, value: Object): any; /** * Watches a property for changes * @@ -9421,6 +9554,91 @@ declare module dojo { */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._contentHandlers.html + * + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. Each contentHandler is + * called, passing the xhr object for manipulation. The return value + * from the contentHandler will be passed to the load or handle + * functions defined in the original xhr call. + * + */ + interface _contentHandlers { + /** + * + * @param xhr + */ + auto(xhr: any): void; + /** + * A contentHandler which evaluates the response data, expecting it to be valid JavaScript + * + * @param xhr + */ + javascript(xhr: any): any; + /** + * A contentHandler which returns a JavaScript object created from the response data + * + * @param xhr + */ + json(xhr: any): any; + /** + * A contentHandler which expects comment-filtered JSON. + * A contentHandler which expects comment-filtered JSON. + * the json-comment-filtered option was implemented to prevent + * "JavaScript Hijacking", but it is less secure than standard JSON. Use + * standard JSON instead. JSON prefixing can be used to subvert hijacking. + * + * Will throw a notice suggesting to use application/json mimetype, as + * json-commenting can introduce security issues. To decrease the chances of hijacking, + * use the standard json contentHandler, and prefix your "JSON" with: {}&& + * + * use djConfig.useCommentedJson = true to turn off the notice + * + * @param xhr + */ + json_comment_filtered(xhr: any): any; + /** + * A contentHandler which checks the presence of comment-filtered JSON and + * alternates between the json and json-comment-filtered contentHandlers. + * + * @param xhr + */ + json_comment_optional(xhr: any): any; + /** + * + * @param xhr + */ + olson_zoneinfo(xhr: any): void; + /** + * A contentHandler which simply returns the plaintext response data + * + * @param xhr + */ + text(xhr: any): any; + /** + * A contentHandler returning an XML Document parsed from the response data + * + * @param xhr + */ + xml(xhr: any): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._hasResource.html + * + * + */ + interface _hasResource { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._nodeDataCache.html + * + * + */ + interface _nodeDataCache { + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.back.html * @@ -9527,7 +9745,7 @@ declare module dojo { * * * - * + * */ init(): void; } @@ -9549,89 +9767,18 @@ declare module dojo { supplemental: Object; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._nodeDataCache.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.colors.html * * */ - interface _nodeDataCache { - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._hasResource.html - * - * - */ - interface _hasResource { - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._contentHandlers.html - * - * A map of available XHR transport handle types. Name matches the - * handleAs attribute passed to XHR calls. - * A map of available XHR transport handle types. Name matches the - * handleAs attribute passed to XHR calls. Each contentHandler is - * called, passing the xhr object for manipulation. The return value - * from the contentHandler will be passed to the load or handle - * functions defined in the original xhr call. - * - */ - interface _contentHandlers { + interface colors { /** + * creates a greyscale color with an optional alpha * - * @param xhr + * @param g + * @param a Optional */ - auto(xhr: any): void; - /** - * A contentHandler which evaluates the response data, expecting it to be valid JavaScript - * - * @param xhr - */ - javascript(xhr: any): any; - /** - * A contentHandler which returns a JavaScript object created from the response data - * - * @param xhr - */ - json(xhr: any): any; - /** - * A contentHandler which expects comment-filtered JSON. - * A contentHandler which expects comment-filtered JSON. - * the json-comment-filtered option was implemented to prevent - * "JavaScript Hijacking", but it is less secure than standard JSON. Use - * standard JSON instead. JSON prefixing can be used to subvert hijacking. - * - * Will throw a notice suggesting to use application/json mimetype, as - * json-commenting can introduce security issues. To decrease the chances of hijacking, - * use the standard json contentHandler, and prefix your "JSON" with: {}&& - * - * use djConfig.useCommentedJson = true to turn off the notice - * - * @param xhr - */ - json_comment_filtered(xhr: any): any; - /** - * A contentHandler which checks the presence of comment-filtered JSON and - * alternates between the json and json-comment-filtered contentHandlers. - * - * @param xhr - */ - json_comment_optional(xhr: any): any; - /** - * - * @param xhr - */ - olson_zoneinfo(xhr: any): void; - /** - * A contentHandler which simply returns the plaintext response data - * - * @param xhr - */ - text(xhr: any): any; - /** - * A contentHandler returning an XML Document parsed from the response data - * - * @param xhr - */ - xml(xhr: any): any; + makeGrey(g: number, a: number): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.config.html @@ -9769,7 +9916,7 @@ declare module dojo { */ require: Object; /** - * Array containing the r, g, b components used as transparent color in dojo._base.Color; + * Array containing the r, g, b components used as transparent color in dojo.Color; * if undefined, [255,255,255] (white) will be used. * */ @@ -9798,47 +9945,6 @@ declare module dojo { */ useDeferredInstrumentation: boolean; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.colors.html - * - * - */ - interface colors { - /** - * creates a greyscale color with an optional alpha - * - * @param g - * @param a Optional - */ - makeGrey(g: number, a: number): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.data.html - * - * - */ - interface data { - /** - * - */ - api: Object; - /** - * - */ - util: Object; - /** - * - */ - ItemFileReadStore(): void; - /** - * - */ - ItemFileWriteStore(): void; - /** - * - */ - ObjectStore(): void; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.contentHandlers.html * @@ -9911,23 +10017,61 @@ declare module dojo { xml(xhr: any): any; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.doc.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dnd.html * - * Alias for the current document. 'doc' can be modified - * for temporary context shifting. See also withDoc(). - * Use this rather than referring to 'window.document' to ensure your code runs - * correctly in managed contexts. * */ - interface doc { + interface dnd { + /** + * Used by dojo/dnd/Manager to scroll document or internal node when the user + * drags near the edge of the viewport or a scrollable node + * + */ + autoscroll: Object; /** * */ - documentElement: Object; + move: Object; /** * */ - dojoClick: boolean; + AutoSource(): void; + /** + * + */ + Avatar(): void; + /** + * + */ + Container(): void; + /** + * + */ + Manager(): void; + /** + * + */ + Moveable(): void; + /** + * + */ + Mover(): void; + /** + * + */ + Selector(): void; + /** + * + */ + Source(): void; + /** + * + */ + Target(): void; + /** + * + */ + TimedMoveable(): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.date.html @@ -9995,6 +10139,52 @@ declare module dojo { */ isLeapYear(dateObject: Date): boolean; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.doc.html + * + * Alias for the current document. 'doc' can be modified + * for temporary context shifting. See also withDoc(). + * Use this rather than referring to 'window.document' to ensure your code runs + * correctly in managed contexts. + * + */ + interface doc { + /** + * + */ + documentElement: Object; + /** + * + */ + dojoClick: boolean; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.data.html + * + * + */ + interface data { + /** + * + */ + api: Object; + /** + * + */ + util: Object; + /** + * + */ + ItemFileReadStore(): void; + /** + * + */ + ItemFileWriteStore(): void; + /** + * + */ + ObjectStore(): void; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.currency.html * @@ -10033,61 +10223,341 @@ declare module dojo { regexp(options: Object): any; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dnd.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dijit.html * * */ - interface dnd { - /** - * Used by dojo/dnd/Manager to scroll document or internal node when the user - * drags near the edge of the viewport or a scrollable node - * - */ - autoscroll: Object; + interface dijit { /** * */ - move: Object; + form: Object; /** * */ - AutoSource(): void; + layout: Object; + /** + * W3C range API + * + */ + range: Object; /** * */ - Avatar(): void; + registry: Object; /** * */ - Container(): void; + tree: Object; + /** + * + * @param id + */ + byId(id: any): any; /** * */ - Manager(): void; + Calendar(): void; /** * */ - Moveable(): void; + CalendarLite(): void; /** * */ - Mover(): void; + CheckedMenuItem(): void; /** * */ - Selector(): void; + ColorPalette(): void; /** * */ - Source(): void; + Declaration(): void; /** * */ - Target(): void; + Destroyable(): void; /** * */ - TimedMoveable(): void; + Dialog(): void; + /** + * + */ + DialogUnderlay(): void; + /** + * + */ + DropDownMenu(): void; + /** + * + */ + Dye(): void; + /** + * + */ + Editor(): void; + /** + * + */ + Fieldset(): void; + /** + * + */ + InlineEditBox(): void; + /** + * + */ + Menu(): void; + /** + * + */ + MenuBar(): void; + /** + * + */ + MenuBarItem(): void; + /** + * + */ + MenuItem(): void; + /** + * + */ + MenuSeparator(): void; + /** + * + */ + PopupMenuBarItem(): void; + /** + * + */ + PopupMenuItem(): void; + /** + * + */ + ProgressBar(): void; + /** + * + */ + RadioButtonMenuItem(): void; + /** + * + */ + TitlePane(): void; + /** + * + */ + Toolbar(): void; + /** + * + */ + ToolbarSeparator(): void; + /** + * + */ + Tooltip(): void; + /** + * + */ + TooltipDialog(): void; + /** + * + */ + Tree(): void; + /** + * + */ + WidgetSet(): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.global.html + * + * Alias for the current window. 'global' can be modified + * for temporary context shifting. See also withGlobal(). + * Use this rather than referring to 'window' to ensure your code runs + * correctly in managed contexts. + * + */ + interface global { + /** + * + */ + $(): any; + /** + * + * @param start + * @param data + * @param responseCode + * @param errorMsg + */ + GoogleSearchStoreCallback_undefined_NaN(start: any, data: any, responseCode: any, errorMsg: any): void; + /** + * + */ + jQuery(): any; + /** + * + */ + swfIsInHTML(): void; + /** + * + */ + undefined_onload(): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.gears.html + * + * TODOC + * + */ + interface gears { + /** + * True if client is using Google Gears + * + */ + available: Object; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.fx.html + * + * Effects library on top of Base animations + * + */ + interface fx { + /** + * Collection of easing functions to use beyond the default + * dojo._defaultEasing function. + * + */ + easing: Object; + /** + * Chain a list of dojo/_base/fx.Animations to run in sequence + * Return a dojo/_base/fx.Animation which will play all passed + * dojo/_base/fx.Animation instances in sequence, firing its own + * synthesized events simulating a single animation. (eg: + * onEnd of this animation means the end of the chain, + * not the individual animations within) + * + * @param animations + */ + chain(animations: dojo._base.fx.Animation[]): any; + /** + * Combine a list of dojo/_base/fx.Animations to run in parallel + * Combine an array of dojo/_base/fx.Animations to run in parallel, + * providing a new dojo/_base/fx.Animation instance encompasing each + * animation, firing standard animation events. + * + * @param animations + */ + combine(animations: dojo._base.fx.Animation[]): any; + /** + * Slide a node to a new top/left position + * Returns an animation that will slide "node" + * defined in args Object from its current position to + * the position defined by (args.left, args.top). + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. + */ + slideTo(args: Object): any; + /** + * + */ + Toggler(): void; + /** + * Expand a node to it's natural height. + * Returns an animation that will expand the + * node defined in 'args' object from it's current height to + * it's natural height (with no scrollbar). + * Node must have no margin/border/padding. + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) + */ + wipeIn(args: Object): any; + /** + * Shrink a node to nothing and hide it. + * Returns an animation that will shrink node defined in "args" + * from it's current height to 1px, and then hide it. + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) + */ + wipeOut(args: Object): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.html.html + * + * TODOC + * + */ + interface html { + /** + * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") + * may be a better choice for simple HTML insertion. + * Unless you need to use the params capabilities of this method, you should use + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions + * or the other capabilities as defined by the params object for this method. + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + */ + set(node: HTMLElement, cont: String, params: Object): any; + /** + * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") + * may be a better choice for simple HTML insertion. + * Unless you need to use the params capabilities of this method, you should use + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions + * or the other capabilities as defined by the params object for this method. + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + */ + set(node: HTMLElement, cont: HTMLElement, params: Object): any; + /** + * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") + * may be a better choice for simple HTML insertion. + * Unless you need to use the params capabilities of this method, you should use + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions + * or the other capabilities as defined by the params object for this method. + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + */ + set(node: HTMLElement, cont: NodeList, params: Object): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.io.html + * + * + */ + interface io { + /** + * + */ + iframe: Object; + /** + * TODOC + * + */ + script: Object; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dojox.html @@ -10353,159 +10823,6 @@ declare module dojo { */ sprintf(format: String, filler: any): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.fx.html - * - * Effects library on top of Base animations - * - */ - interface fx { - /** - * Collection of easing functions to use beyond the default - * dojo._defaultEasing function. - * - */ - easing: Object; - /** - * Chain a list of dojo/_base/fx.Animations to run in sequence - * Return a dojo/_base/fx.Animation which will play all passed - * dojo/_base/fx.Animation instances in sequence, firing its own - * synthesized events simulating a single animation. (eg: - * onEnd of this animation means the end of the chain, - * not the individual animations within) - * - * @param animations - */ - chain(animations: dojo._base.fx.Animation[]): any; - /** - * Combine a list of dojo/_base/fx.Animations to run in parallel - * Combine an array of dojo/_base/fx.Animations to run in parallel, - * providing a new dojo/_base/fx.Animation instance encompasing each - * animation, firing standard animation events. - * - * @param animations - */ - combine(animations: dojo._base.fx.Animation[]): any; - /** - * Slide a node to a new top/left position - * Returns an animation that will slide "node" - * defined in args Object from its current position to - * the position defined by (args.left, args.top). - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. - */ - slideTo(args: Object): any; - /** - * - */ - Toggler(): void; - /** - * Expand a node to it's natural height. - * Returns an animation that will expand the - * node defined in 'args' object from it's current height to - * it's natural height (with no scrollbar). - * Node must have no margin/border/padding. - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) - */ - wipeIn(args: Object): any; - /** - * Shrink a node to nothing and hide it. - * Returns an animation that will shrink node defined in "args" - * from it's current height to 1px, and then hide it. - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) - */ - wipeOut(args: Object): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.gears.html - * - * TODOC - * - */ - interface gears { - /** - * True if client is using Google Gears - * - */ - available: Object; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.html.html - * - * TODOC - * - */ - interface html { - /** - * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") - * may be a better choice for simple HTML insertion. - * Unless you need to use the params capabilities of this method, you should use - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions - * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter - */ - set(node: HTMLElement, cont: String, params: Object): any; - /** - * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") - * may be a better choice for simple HTML insertion. - * Unless you need to use the params capabilities of this method, you should use - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions - * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter - */ - set(node: HTMLElement, cont: HTMLElement, params: Object): any; - /** - * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") - * may be a better choice for simple HTML insertion. - * Unless you need to use the params capabilities of this method, you should use - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions - * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter - */ - set(node: HTMLElement, cont: NodeList, params: Object): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.io.html - * - * - */ - interface io { - /** - * - */ - iframe: Object; - /** - * TODOC - * - */ - script: Object; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.i18n.html * @@ -10717,6 +11034,73 @@ declare module dojo { */ isRight(e: Event): boolean; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.rpc.html + * + * + */ + interface rpc { + /** + * + */ + JsonpService(): void; + /** + * + */ + JsonService(): void; + /** + * + */ + RpcService(): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.regexp.html + * + * Regular expressions and Builder resources + * + */ + interface regexp { + /** + * Builds a regular expression that groups subexpressions + * A utility function used by some of the RE generators. The + * subexpressions are constructed by the function, re, in the second + * parameter. re builds one subexpression for each elem in the array + * a, in the first parameter. Returns a string for a regular + * expression that groups all the subexpressions. + * + * @param arr A single value or an array of values. + * @param re A function. Takes one parameter and converts it to a regularexpression. + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false + */ + buildGroupRE(arr: Object, re: Function, nonCapture: boolean): any; + /** + * Builds a regular expression that groups subexpressions + * A utility function used by some of the RE generators. The + * subexpressions are constructed by the function, re, in the second + * parameter. re builds one subexpression for each elem in the array + * a, in the first parameter. Returns a string for a regular + * expression that groups all the subexpressions. + * + * @param arr A single value or an array of values. + * @param re A function. Takes one parameter and converts it to a regularexpression. + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false + */ + buildGroupRE(arr: any[], re: Function, nonCapture: boolean): any; + /** + * Adds escape sequences for special characters in regular expressions + * + * @param str + * @param except Optionala String with special characters to be left unescaped + */ + escapeString(str: String, except: String): any; + /** + * adds group match to expression + * + * @param expression + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. + */ + group(expression: String, nonCapture: boolean): String; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.number.html * @@ -10770,6 +11154,33 @@ declare module dojo { */ round(value: number, places: number, increment: number): number; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.scopeMap.html + * + * + */ + interface scopeMap { + /** + * + */ + dijit: any[]; + /** + * + */ + dojo: any[]; + /** + * + */ + dojox: any[]; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.tests.html + * + * D.O.H. Test files for Dojo unit testing. + * + */ + interface tests { + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.keys.html * @@ -11035,108 +11446,6 @@ declare module dojo { */ UP_DPAD: number; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.regexp.html - * - * Regular expressions and Builder resources - * - */ - interface regexp { - /** - * Builds a regular expression that groups subexpressions - * A utility function used by some of the RE generators. The - * subexpressions are constructed by the function, re, in the second - * parameter. re builds one subexpression for each elem in the array - * a, in the first parameter. Returns a string for a regular - * expression that groups all the subexpressions. - * - * @param arr A single value or an array of values. - * @param re A function. Takes one parameter and converts it to a regularexpression. - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false - */ - buildGroupRE(arr: Object, re: Function, nonCapture: boolean): any; - /** - * Builds a regular expression that groups subexpressions - * A utility function used by some of the RE generators. The - * subexpressions are constructed by the function, re, in the second - * parameter. re builds one subexpression for each elem in the array - * a, in the first parameter. Returns a string for a regular - * expression that groups all the subexpressions. - * - * @param arr A single value or an array of values. - * @param re A function. Takes one parameter and converts it to a regularexpression. - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false - */ - buildGroupRE(arr: any[], re: Function, nonCapture: boolean): any; - /** - * Adds escape sequences for special characters in regular expressions - * - * @param str - * @param except Optionala String with special characters to be left unescaped - */ - escapeString(str: String, except: String): any; - /** - * adds group match to expression - * - * @param expression - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. - */ - group(expression: String, nonCapture: boolean): String; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.scopeMap.html - * - * - */ - interface scopeMap { - /** - * - */ - dijit: any[]; - /** - * - */ - dojo: any[]; - /** - * - */ - dojox: any[]; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.global.html - * - * Alias for the current window. 'global' can be modified - * for temporary context shifting. See also withGlobal(). - * Use this rather than referring to 'window' to ensure your code runs - * correctly in managed contexts. - * - */ - interface global { - /** - * - */ - $(): any; - /** - * - * @param start - * @param data - * @param responseCode - * @param errorMsg - */ - GoogleSearchStoreCallback_undefined_NaN(start: any, data: any, responseCode: any, errorMsg: any): void; - /** - * - */ - jQuery(): any; - /** - * - */ - swfIsInHTML(): void; - /** - * - */ - undefined_onload(): void; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.store.html * @@ -11231,182 +11540,6 @@ declare module dojo { */ trim(str: String): String; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.rpc.html - * - * - */ - interface rpc { - /** - * - */ - JsonpService(): void; - /** - * - */ - JsonService(): void; - /** - * - */ - RpcService(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.tests.html - * - * D.O.H. Test files for Dojo unit testing. - * - */ - interface tests { - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dijit.html - * - * - */ - interface dijit { - /** - * - */ - form: Object; - /** - * - */ - layout: Object; - /** - * W3C range API - * - */ - range: Object; - /** - * - */ - registry: Object; - /** - * - */ - tree: Object; - /** - * - * @param id - */ - byId(id: any): any; - /** - * - */ - Calendar(): void; - /** - * - */ - CalendarLite(): void; - /** - * - */ - CheckedMenuItem(): void; - /** - * - */ - ColorPalette(): void; - /** - * - */ - Declaration(): void; - /** - * - */ - Destroyable(): void; - /** - * - */ - Dialog(): void; - /** - * - */ - DialogUnderlay(): void; - /** - * - */ - DropDownMenu(): void; - /** - * - */ - Dye(): void; - /** - * - */ - Editor(): void; - /** - * - */ - Fieldset(): void; - /** - * - */ - InlineEditBox(): void; - /** - * - */ - Menu(): void; - /** - * - */ - MenuBar(): void; - /** - * - */ - MenuBarItem(): void; - /** - * - */ - MenuItem(): void; - /** - * - */ - MenuSeparator(): void; - /** - * - */ - PopupMenuBarItem(): void; - /** - * - */ - PopupMenuItem(): void; - /** - * - */ - ProgressBar(): void; - /** - * - */ - RadioButtonMenuItem(): void; - /** - * - */ - TitlePane(): void; - /** - * - */ - Toolbar(): void; - /** - * - */ - ToolbarSeparator(): void; - /** - * - */ - Tooltip(): void; - /** - * - */ - TooltipDialog(): void; - /** - * - */ - Tree(): void; - /** - * - */ - WidgetSet(): void; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.version.html * @@ -11444,34 +11577,7 @@ declare module dojo { /** * */ - toString(): string; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.window.html - * - * TODOC - * - */ - interface window { - /** - * Get window object associated with document doc. - * - * @param doc The document to get the associated window for. - */ - get(doc: HTMLDocument): any; - /** - * Returns the dimensions and scroll position of the viewable area of a browser window - * - * @param doc Optional - */ - getBox(doc: HTMLDocument): Object; - /** - * Scroll the passed node into view using minimal movement, if it is not already. - * - * @param node - * @param pos Optional - */ - scrollIntoView(node: HTMLElement, pos: Object): void; + toString(): String; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.touch.html @@ -11544,6 +11650,33 @@ declare module dojo { */ release(node: HTMLElement, listener: Function): any; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.window.html + * + * TODOC + * + */ + interface window { + /** + * Get window object associated with document doc. + * + * @param doc The document to get the associated window for. + */ + get(doc: HTMLDocument): any; + /** + * Returns the dimensions and scroll position of the viewable area of a browser window + * + * @param doc Optional + */ + getBox(doc: HTMLDocument): Object; + /** + * Scroll the passed node into view using minimal movement, if it is not already. + * + * @param node + * @param pos Optional + */ + scrollIntoView(node: HTMLElement, pos: Object): void; + } } } @@ -11825,6 +11958,237 @@ declare module dojo { */ on(type: any, listener: any): any; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/ObjectStore.html + * + * A Dojo Data implementation that wraps Dojo object stores for backwards + * compatibility. + * + * @param options The configuration information to pass into the data store.options.objectStore:The object store to use as the source provider for this data store + */ + class ObjectStore extends dojo.Evented { + constructor(options: any); + /** + * + */ + "labelProperty": string; + /** + * + */ + "objectStore": Object; + /** + * adds an object to the list of dirty objects. This object + * contains a reference to the object itself as well as a + * cloned and trimmed version of old object for use with + * revert. + * + * @param object Indicates that the given object is changing and should be marked as dirty for the next save + * @param _deleting + */ + changing(object: Object, _deleting: boolean): void; + /** + * See dojo/data/api/Read.close() + * + * @param request + */ + close(request: any): any; + /** + * Checks to see if 'item' has 'value' at 'attribute' + * + * @param item The item to check + * @param attribute The attribute to check + * @param value The value to look for + */ + containsValue(item: Object, attribute: String, value: any): boolean; + /** + * deletes item and any references to that item from the store. + * + * @param item item to delete + */ + deleteItem(item: any): void; + /** + * + * @param type + * @param event + */ + emit(type: any, event: any): any; + /** + * See dojo/data/api/Read.fetch() + * + * @param args + */ + fetch(args: any): any; + /** + * fetch an item by its identity, by looking in our index of what we have loaded + * + * @param args + */ + fetchItemByIdentity(args: any): any; + /** + * Gets the available attributes of an item's 'property' and returns + * it as an array. + * + * @param item + */ + getAttributes(item: Object): any[]; + /** + * return the store feature set + * + */ + getFeatures(): Object; + /** + * returns the identity of the given item + * See dojo/data/api/Read.getIdentity() + * + * @param item + */ + getIdentity(item: any): any; + /** + * returns the attributes which are used to make up the + * identity of an item. Basically returns this.objectStore.idProperty + * See dojo/data/api/Read.getIdentityAttributes() + * + * @param item + */ + getIdentityAttributes(item: any): any[]; + /** + * See dojo/data/api/Read.getLabel() + * + * @param item + */ + getLabel(item: dojo.data.api.Item): any; + /** + * See dojo/data/api/Read.getLabelAttributes() + * + * @param item + */ + getLabelAttributes(item: dojo.data.api.Item): any[]; + /** + * Gets the value of an item's 'property' + * + * @param item The item to get the value from + * @param property property to look up value for + * @param defaultValue Optionalthe default value + */ + getValue(item: Object, property: String, defaultValue: any): any; + /** + * Gets the value of an item's 'property' and returns + * it. If this value is an array it is just returned, + * if not, the value is added to an array and that is returned. + * + * @param item + * @param property property to look up value for + */ + getValues(item: Object, property: String): any[]; + /** + * Checks to see if item has attribute + * + * @param item The item to check + * @param attribute The attribute to check + */ + hasAttribute(item: Object, attribute: String): boolean; + /** + * returns true if the item is marked as dirty or true if there are any dirty items + * + * @param item The item to check + */ + isDirty(item: Object): any; + /** + * Checks to see if the argument is an item + * + * @param item The item to check + */ + isItem(item: Object): boolean; + /** + * Checks to see if the item is loaded. + * + * @param item The item to check + */ + isItemLoaded(item: Object): any; + /** + * Loads an item and calls the callback handler. Note, that this will call the callback + * handler even if the item is loaded. Consequently, you can use loadItem to ensure + * that an item is loaded is situations when the item may or may not be loaded yet. + * If you access a value directly through property access, you can use this to load + * a lazy value as well (doesn't need to be an item). + * + * @param args See dojo/data/api/Read.fetch() + */ + loadItem(args: Object): any; + /** + * adds a new item to the store at the specified point. + * Takes two parameters, data, and options. + * + * @param data See dojo/data/api/Write.newItem() + * @param parentInfo + */ + newItem(data: Object, parentInfo: any): Object; + /** + * + * @param type + * @param listener + */ + on(type: any, listener: any): any; + /** + * returns any modified data to its original state prior to a save(); + * + */ + revert(): void; + /** + * Saves the dirty data using object store provider. See dojo/data/api/Write for API. + * + * @param kwArgs kwArgs.global:This will cause the save to commit the dirty data for allObjectStores as a single transaction.kwArgs.revertOnError:This will cause the changes to be reverted if there is anerror on the save. By default a revert is executed unlessa value of false is provide for this parameter.kwArgs.onError:Called when an error occurs in the commitkwArgs.onComplete:Called when an the save/commit is completed + */ + save(kwArgs: any): void; + /** + * sets 'attribute' on 'item' to 'value' + * See dojo/data/api/Write.setValue() + * + * @param item + * @param attribute + * @param value + */ + setValue(item: any, attribute: any, value: any): void; + /** + * sets 'attribute' on 'item' to 'value' value + * must be an array. + * See dojo/data/api/Write.setValues() + * + * @param item + * @param attribute + * @param values + */ + setValues(item: any, attribute: any, values: any): void; + /** + * unsets 'attribute' on 'item' + * See dojo/data/api/Write.unsetAttribute() + * + * @param item + * @param attribute + */ + unsetAttribute(item: any, attribute: any): void; + /** + * See dojo/data/api/Notification.onDelete() + * + */ + onDelete(): void; + /** + * Called when a fetch occurs + * + * @param results + */ + onFetch(results: any): void; + /** + * See dojo/data/api/Notification.onNew() + * + */ + onNew(): void; + /** + * See dojo/data/api/Notification.onSet() + * + */ + onSet(): void; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/ItemFileWriteStore.html * @@ -12146,237 +12510,6 @@ declare module dojo { */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: any[], newValue: any[]): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/ObjectStore.html - * - * A Dojo Data implementation that wraps Dojo object stores for backwards - * compatibility. - * - * @param options The configuration information to pass into the data store.options.objectStore:The object store to use as the source provider for this data store - */ - class ObjectStore extends dojo.Evented { - constructor(options: any); - /** - * - */ - "labelProperty": string; - /** - * - */ - "objectStore": Object; - /** - * adds an object to the list of dirty objects. This object - * contains a reference to the object itself as well as a - * cloned and trimmed version of old object for use with - * revert. - * - * @param object Indicates that the given object is changing and should be marked as dirty for the next save - * @param _deleting - */ - changing(object: Object, _deleting: boolean): void; - /** - * See dojo/data/api/Read.close() - * - * @param request - */ - close(request: any): any; - /** - * Checks to see if 'item' has 'value' at 'attribute' - * - * @param item The item to check - * @param attribute The attribute to check - * @param value The value to look for - */ - containsValue(item: Object, attribute: String, value: any): boolean; - /** - * deletes item and any references to that item from the store. - * - * @param item item to delete - */ - deleteItem(item: any): void; - /** - * - * @param type - * @param event - */ - emit(type: any, event: any): any; - /** - * See dojo/data/api/Read.fetch() - * - * @param args - */ - fetch(args: any): any; - /** - * fetch an item by its identity, by looking in our index of what we have loaded - * - * @param args - */ - fetchItemByIdentity(args: any): any; - /** - * Gets the available attributes of an item's 'property' and returns - * it as an array. - * - * @param item - */ - getAttributes(item: Object): any[]; - /** - * return the store feature set - * - */ - getFeatures(): Object; - /** - * returns the identity of the given item - * See dojo/data/api/Read.getIdentity() - * - * @param item - */ - getIdentity(item: any): any; - /** - * returns the attributes which are used to make up the - * identity of an item. Basically returns this.objectStore.idProperty - * See dojo/data/api/Read.getIdentityAttributes() - * - * @param item - */ - getIdentityAttributes(item: any): any[]; - /** - * See dojo/data/api/Read.getLabel() - * - * @param item - */ - getLabel(item: dojo.data.api.Item): any; - /** - * See dojo/data/api/Read.getLabelAttributes() - * - * @param item - */ - getLabelAttributes(item: dojo.data.api.Item): any[]; - /** - * Gets the value of an item's 'property' - * - * @param item The item to get the value from - * @param property property to look up value for - * @param defaultValue Optionalthe default value - */ - getValue(item: Object, property: String, defaultValue: any): any; - /** - * Gets the value of an item's 'property' and returns - * it. If this value is an array it is just returned, - * if not, the value is added to an array and that is returned. - * - * @param item - * @param property property to look up value for - */ - getValues(item: Object, property: String): any[]; - /** - * Checks to see if item has attribute - * - * @param item The item to check - * @param attribute The attribute to check - */ - hasAttribute(item: Object, attribute: String): boolean; - /** - * returns true if the item is marked as dirty or true if there are any dirty items - * - * @param item The item to check - */ - isDirty(item: Object): any; - /** - * Checks to see if the argument is an item - * - * @param item The item to check - */ - isItem(item: Object): boolean; - /** - * Checks to see if the item is loaded. - * - * @param item The item to check - */ - isItemLoaded(item: Object): any; - /** - * Loads an item and calls the callback handler. Note, that this will call the callback - * handler even if the item is loaded. Consequently, you can use loadItem to ensure - * that an item is loaded is situations when the item may or may not be loaded yet. - * If you access a value directly through property access, you can use this to load - * a lazy value as well (doesn't need to be an item). - * - * @param args See dojo/data/api/Read.fetch() - */ - loadItem(args: Object): any; - /** - * adds a new item to the store at the specified point. - * Takes two parameters, data, and options. - * - * @param data See dojo/data/api/Write.newItem() - * @param parentInfo - */ - newItem(data: Object, parentInfo: any): Object; - /** - * - * @param type - * @param listener - */ - on(type: any, listener: any): any; - /** - * returns any modified data to its original state prior to a save(); - * - */ - revert(): void; - /** - * Saves the dirty data using object store provider. See dojo/data/api/Write for API. - * - * @param kwArgs kwArgs.global:This will cause the save to commit the dirty data for allObjectStores as a single transaction.kwArgs.revertOnError:This will cause the changes to be reverted if there is anerror on the save. By default a revert is executed unlessa value of false is provide for this parameter.kwArgs.onError:Called when an error occurs in the commitkwArgs.onComplete:Called when an the save/commit is completed - */ - save(kwArgs: any): void; - /** - * sets 'attribute' on 'item' to 'value' - * See dojo/data/api/Write.setValue() - * - * @param item - * @param attribute - * @param value - */ - setValue(item: any, attribute: any, value: any): void; - /** - * sets 'attribute' on 'item' to 'value' value - * must be an array. - * See dojo/data/api/Write.setValues() - * - * @param item - * @param attribute - * @param values - */ - setValues(item: any, attribute: any, values: any): void; - /** - * unsets 'attribute' on 'item' - * See dojo/data/api/Write.unsetAttribute() - * - * @param item - * @param attribute - */ - unsetAttribute(item: any, attribute: any): void; - /** - * See dojo/data/api/Notification.onDelete() - * - */ - onDelete(): void; - /** - * Called when a fetch occurs - * - * @param results - */ - onFetch(results: any): void; - /** - * See dojo/data/api/Notification.onNew() - * - */ - onNew(): void; - /** - * See dojo/data/api/Notification.onSet() - * - */ - onSet(): void; - } module api { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/api/Item.html @@ -13324,34 +13457,6 @@ declare module dojo { */ patternToRegExp(pattern: String, ignoreCase: boolean): any; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/util/sorter.html - * - * - */ - interface sorter { - /** - * Basic comparison function that compares if an item is greater or less than another item - * returns 1 if a > b, -1 if a < b, 0 if equal. - * 'null' values (null, undefined) are treated as larger values so that they're pushed to the end of the list. - * And compared to each other, null is equivalent to undefined. - * - * @param a - * @param b - */ - basicComparator(a: any, b: any): number; - /** - * Helper function to generate the sorting function based off the list of sort attributes. - * The sort function creation will look for a property on the store called 'comparatorMap'. If it exists - * it will look in the mapping for comparisons function for the attributes. If one is found, it will - * use it instead of the basic comparator, which is typically used for strings, ints, booleans, and dates. - * Returns the sorting function for this particular list of attributes and sorting directions. - * - * @param sortSpec A JS object that array that defines out what attribute names to sort on and whether it should be descenting or asending.The objects should be formatted as follows:{ attribute: "attributeName-string" || attribute, descending: true|false; // Default is false.} - * @param store The datastore object to look up item values from. - */ - createSortFunction(sortSpec: Object, store: dojo.data.api.Read): String[]; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/util/simpleFetch.html * @@ -13405,6 +13510,34 @@ declare module dojo { */ fetchHandler(items: any[], requestObject: Object): void; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/util/sorter.html + * + * + */ + interface sorter { + /** + * Basic comparison function that compares if an item is greater or less than another item + * returns 1 if a > b, -1 if a < b, 0 if equal. + * 'null' values (null, undefined) are treated as larger values so that they're pushed to the end of the list. + * And compared to each other, null is equivalent to undefined. + * + * @param a + * @param b + */ + basicComparator(a: any, b: any): number; + /** + * Helper function to generate the sorting function based off the list of sort attributes. + * The sort function creation will look for a property on the store called 'comparatorMap'. If it exists + * it will look in the mapping for comparisons function for the attributes. If one is found, it will + * use it instead of the basic comparator, which is typically used for strings, ints, booleans, and dates. + * Returns the sorting function for this particular list of attributes and sorting directions. + * + * @param sortSpec A JS object that array that defines out what attribute names to sort on and whether it should be descenting or asending.The objects should be formatted as follows:{ attribute: "attributeName-string" || attribute, descending: true|false; // Default is false.} + * @param store The datastore object to look up item values from. + */ + createSortFunction(sortSpec: Object, store: dojo.data.api.Read): String[]; + } } } @@ -13441,6 +13574,286 @@ declare module dojo { */ update(): void; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Manager.html + * + * the manager of DnD operations (usually a singleton) + * + */ + class Manager extends dojo.Evented { + constructor(); + /** + * + */ + "OFFSET_X": number; + /** + * + */ + "OFFSET_Y": number; + /** + * called to notify if the current target can accept items + * + * @param flag + */ + canDrop(flag: any): void; + /** + * + * @param type + * @param event + */ + emit(type: any, event: any): any; + /** + * makes the avatar; it is separate to be overwritten dynamically, if needed + * + */ + makeAvatar(): any; + /** + * Returns the current DnD manager. Creates one if it is not created yet. + * + */ + manager(): any; + /** + * + * @param type + * @param listener + */ + on(type: any, listener: any): any; + /** + * called when a source detected a mouse-out condition + * + * @param source the reporter + */ + outSource(source: Object): void; + /** + * called when a source detected a mouse-over condition + * + * @param source the reporter + */ + overSource(source: Object): void; + /** + * called to initiate the DnD operation + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + */ + startDrag(source: Object, nodes: any[], copy: boolean): void; + /** + * stop the DnD in progress + * + */ + stopDrag(): void; + /** + * updates the avatar; it is separate to be overwritten dynamically, if needed + * + */ + updateAvatar(): void; + /** + * event processor for onkeydown: + * watching for CTRL for copy/move status, watching for ESCAPE to cancel the drag + * + * @param e keyboard event + */ + onKeyDown(e: Event): void; + /** + * event processor for onkeyup, watching for CTRL for copy/move status + * + * @param e keyboard event + */ + onKeyUp(e: Event): void; + /** + * event processor for onmousemove + * + * @param e mouse event + */ + onMouseMove(e: Event): void; + /** + * event processor for onmouseup + * + * @param e mouse event + */ + onMouseUp(e: Event): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Container.html + * + * a Container object, which knows when mouse hovers over it, + * and over which element it hovers + * + * @param node node or node's id to build the container on + * @param params a dictionary of parameters + */ + class Container extends dojo.Evented { + constructor(node: HTMLElement, params: Object); + /** + * Indicates whether to allow dnd item nodes to be nested within other elements. + * By default this is false, indicating that only direct children of the container can + * be draggable dnd item nodes + * + */ + "allowNested": boolean; + /** + * The DOM node the mouse is currently hovered over + * + */ + "current": HTMLElement; + /** + * Map from an item's id (which is also the DOMNode's id) to + * the dojo/dnd/Container.Item itself. + * + */ + "map": Object; + /** + * + */ + "skipForm": boolean; + /** + * removes all data items from the map + * + */ + clearItems(): void; + /** + * creator function, dummy at the moment + * + */ + creator(): void; + /** + * removes a data item from the map by its key (id) + * + * @param key + */ + delItem(key: String): void; + /** + * prepares this object to be garbage-collected + * + */ + destroy(): void; + /** + * + * @param type + * @param event + */ + emit(type: any, event: any): any; + /** + * iterates over a data map skipping members that + * are present in the empty object (IE and/or 3rd-party libraries). + * + * @param f + * @param o Optional + */ + forInItems(f: Function, o: Object): String; + /** + * returns a list (an array) of all valid child nodes + * + */ + getAllNodes(): any; + /** + * returns a data item by its key (id) + * + * @param key + */ + getItem(key: String): any; + /** + * inserts an array of new nodes before/after an anchor node + * + * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. + * @param before insert before the anchor, if true, and after the anchor otherwise + * @param anchor the anchor node to be used as a point of insertion + */ + insertNodes(addSelected?: boolean, data?: any[], before?: boolean, anchor?: HTMLElement): Function; + /** + * Represents (one of) the source node(s) being dragged. + * Contains (at least) the "type" and "data" attributes. + * + */ + Item(): void; + /** + * + * @param params + * @param node + * @param Ctor + */ + markupFactory(params: any, node: any, Ctor: any): any; + /** + * + * @param type + * @param listener + */ + on(type: any, listener: any): any; + /** + * associates a data item with its key (id) + * + * @param key + * @param data + */ + setItem(key: String, data: any): void; + /** + * collects valid child items and populate the map + * + */ + startup(): void; + /** + * sync up the node list with the data map + * + */ + sync(): Function; + /** + * event processor for onmouseout + * + * @param e mouse event + */ + onMouseOut(e: Event): void; + /** + * event processor for onmouseover or touch, to mark that element as the current element + * + * @param e mouse event + */ + onMouseOver(e: Event): void; + /** + * this function is called once, when mouse is out of our container + * + */ + onOutEvent(): void; + /** + * this function is called once, when mouse is over our container + * + */ + onOverEvent(): void; + /** + * event processor for onselectevent and ondragevent + * + * @param e mouse event + */ + onSelectStart(e: Event): void; + } + module Container { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Container.__ContainerArgs.html + * + * + */ + class __ContainerArgs { + constructor(); + /** + * node or node's id to use as the parent node for dropped items + * (must be underneath the 'node' parameter in the DOM) + * + */ + "dropParent": HTMLElement; + /** + * don't start the drag operation, if clicked on form elements + * + */ + "skipForm": boolean; + /** + * a creator function, which takes a data item, and returns an object like that: + * {node: newNode, data: usedData, type: arrayOfStrings} + * + */ + creator(): void; + } + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/AutoSource.html * @@ -13604,14 +14017,6 @@ declare module dojo { * */ getSelectedNodes(): any; - /** - * inserts an array of new nodes before/after an anchor node - * - * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion - */ - insertNodes(data: Object, before: boolean, anchor: HTMLElement): Function; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) * @@ -13774,56 +14179,19 @@ declare module dojo { onSelectStart(e: Event): void; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Container.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Mover.html * - * a Container object, which knows when mouse hovers over it, - * and over which element it hovers + * an object which makes a node follow the mouse, or touch-drag on touch devices. + * Used as a default mover, and as a base class for custom movers. * - * @param node node or node's id to build the container on - * @param params a dictionary of parameters + * @param node a node (or node's id) to be moved + * @param e a mouse event, which started the move;only pageX and pageY properties are used + * @param host Optionalobject which implements the functionality of the move,and defines proper events (onMoveStart and onMoveStop) */ - class Container extends dojo.Evented { - constructor(node: HTMLElement, params: Object); + class Mover extends dojo.Evented { + constructor(node: HTMLElement, e: Event, host?: Object); /** - * Indicates whether to allow dnd item nodes to be nested within other elements. - * By default this is false, indicating that only direct children of the container can - * be draggable dnd item nodes - * - */ - "allowNested": boolean; - /** - * The DOM node the mouse is currently hovered over - * - */ - "current": HTMLElement; - /** - * Map from an item's id (which is also the DOMNode's id) to - * the dojo/dnd/Container.Item itself. - * - */ - "map": Object; - /** - * - */ - "skipForm": boolean; - /** - * removes all data items from the map - * - */ - clearItems(): void; - /** - * creator function, dummy at the moment - * - */ - creator(): void; - /** - * removes a data item from the map by its key (id) - * - * @param key - */ - delItem(key: String): void; - /** - * prepares this object to be garbage-collected + * stops the move, deletes all references, so the object can be garbage-collected * */ destroy(): void; @@ -13833,46 +14201,6 @@ declare module dojo { * @param event */ emit(type: any, event: any): any; - /** - * iterates over a data map skipping members that - * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional - */ - forInItems(f: Function, o: Object): String; - /** - * returns a list (an array) of all valid child nodes - * - */ - getAllNodes(): any; - /** - * returns a data item by its key (id) - * - * @param key - */ - getItem(key: String): any; - /** - * inserts an array of new nodes before/after an anchor node - * - * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion - */ - insertNodes(data: Object, before: boolean, anchor: HTMLElement): Function; - /** - * Represents (one of) the source node(s) being dragged. - * Contains (at least) the "type" and "data" attributes. - * - */ - Item(): void; - /** - * - * @param params - * @param node - * @param Ctor - */ - markupFactory(params: any, node: any, Ctor: any): any; /** * * @param type @@ -13880,79 +14208,24 @@ declare module dojo { */ on(type: any, listener: any): any; /** - * associates a data item with its key (id) + * makes the node absolute; it is meant to be called only once. + * relative and absolutely positioned nodes are assumed to use pixel units * - * @param key - * @param data + * @param e */ - setItem(key: String, data: any): void; + onFirstMove(e: any): void; /** - * collects valid child items and populate the map + * event processor for onmousemove/ontouchmove * + * @param e mouse/touch event */ - startup(): void; + onMouseMove(e: Event): void; /** - * sync up the node list with the data map * + * @param e */ - sync(): Function; - /** - * event processor for onmouseout - * - * @param e mouse event - */ - onMouseOut(e: Event): void; - /** - * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event - */ - onMouseOver(e: Event): void; - /** - * this function is called once, when mouse is out of our container - * - */ - onOutEvent(): void; - /** - * this function is called once, when mouse is over our container - * - */ - onOverEvent(): void; - /** - * event processor for onselectevent and ondragevent - * - * @param e mouse event - */ - onSelectStart(e: Event): void; + onMouseUp(e: any): void; } - module Container { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Container.__ContainerArgs.html - * - * - */ - class __ContainerArgs { - constructor(); - /** - * node or node's id to use as the parent node for dropped items - * (must be underneath the 'node' parameter in the DOM) - * - */ - "dropParent": HTMLElement; - /** - * don't start the drag operation, if clicked on form elements - * - */ - "skipForm": boolean; - /** - * a creator function, which takes a data item, and returns an object like that: - * {node: newNode, data: usedData, type: arrayOfStrings} - * - */ - creator(): void; - } - } - /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Moveable.html * @@ -14107,167 +14380,15 @@ declare module dojo { } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Mover.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Selector.html * - * an object which makes a node follow the mouse, or touch-drag on touch devices. - * Used as a default mover, and as a base class for custom movers. + * a Selector object, which knows how to select its children * - * @param node a node (or node's id) to be moved - * @param e a mouse event, which started the move;only pageX and pageY properties are used - * @param host Optionalobject which implements the functionality of the move,and defines proper events (onMoveStart and onMoveStop) + * @param node node or node's id to build the selector on + * @param params Optionala dictionary of parameters */ - class Mover extends dojo.Evented { - constructor(node: HTMLElement, e: Event, host?: Object); - /** - * stops the move, deletes all references, so the object can be garbage-collected - * - */ - destroy(): void; - /** - * - * @param type - * @param event - */ - emit(type: any, event: any): any; - /** - * - * @param type - * @param listener - */ - on(type: any, listener: any): any; - /** - * makes the node absolute; it is meant to be called only once. - * relative and absolutely positioned nodes are assumed to use pixel units - * - * @param e - */ - onFirstMove(e: any): void; - /** - * event processor for onmousemove/ontouchmove - * - * @param e mouse/touch event - */ - onMouseMove(e: Event): void; - /** - * - * @param e - */ - onMouseUp(e: any): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Manager.html - * - * the manager of DnD operations (usually a singleton) - * - */ - class Manager extends dojo.Evented { - constructor(); - /** - * - */ - "OFFSET_X": number; - /** - * - */ - "OFFSET_Y": number; - /** - * called to notify if the current target can accept items - * - * @param flag - */ - canDrop(flag: any): void; - /** - * - * @param type - * @param event - */ - emit(type: any, event: any): any; - /** - * makes the avatar; it is separate to be overwritten dynamically, if needed - * - */ - makeAvatar(): any; - /** - * Returns the current DnD manager. Creates one if it is not created yet. - * - */ - manager(): any; - /** - * - * @param type - * @param listener - */ - on(type: any, listener: any): any; - /** - * called when a source detected a mouse-out condition - * - * @param source the reporter - */ - outSource(source: Object): void; - /** - * called when a source detected a mouse-over condition - * - * @param source the reporter - */ - overSource(source: Object): void; - /** - * called to initiate the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - */ - startDrag(source: Object, nodes: any[], copy: boolean): void; - /** - * stop the DnD in progress - * - */ - stopDrag(): void; - /** - * updates the avatar; it is separate to be overwritten dynamically, if needed - * - */ - updateAvatar(): void; - /** - * event processor for onkeydown: - * watching for CTRL for copy/move status, watching for ESCAPE to cancel the drag - * - * @param e keyboard event - */ - onKeyDown(e: Event): void; - /** - * event processor for onkeyup, watching for CTRL for copy/move status - * - * @param e keyboard event - */ - onKeyUp(e: Event): void; - /** - * event processor for onmousemove - * - * @param e mouse event - */ - onMouseMove(e: Event): void; - /** - * event processor for onmouseup - * - * @param e mouse event - */ - onMouseUp(e: Event): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Source.html - * - * a Source object, which can be used as a DnD source, or a DnD target - * - * @param node node or node's id to build the source on - * @param params Optionalany property of this class may be configured via the paramsobject which is mixed-in to the dojo/dnd/Source instance - */ - class Source extends dojo.dnd.Selector { + class Selector extends dojo.dnd.Container { constructor(node: HTMLElement, params?: Object); - /** - * - */ - "accept": any[]; /** * Indicates whether to allow dnd item nodes to be nested within other elements. * By default this is false, indicating that only direct children of the container can @@ -14275,35 +14396,11 @@ declare module dojo { * */ "allowNested": boolean; - /** - * - */ - "autoSync": boolean; - /** - * - */ - "copyOnly": boolean; /** * The DOM node the mouse is currently hovered over * */ "current": HTMLElement; - /** - * - */ - "delay": number; - /** - * - */ - "generateText": boolean; - /** - * - */ - "horizontal": boolean; - /** - * - */ - "isSource": boolean; /** * Map from an item's id (which is also the DOMNode's id) to * the dojo/dnd/Container.Item itself. @@ -14318,14 +14415,6 @@ declare module dojo { * */ "selection": Object; - /** - * - */ - "selfAccept": boolean; - /** - * - */ - "selfCopy": boolean; /** * */ @@ -14334,30 +14423,11 @@ declare module dojo { * */ "skipForm": boolean; - /** - * - */ - "withHandles": boolean; - /** - * checks if the target can accept nodes from this source - * - * @param source the source which provides items - * @param nodes the list of transferred items - */ - checkAcceptance(source: Object, nodes: any[]): boolean; /** * removes all data items from the map * */ clearItems(): void; - /** - * Returns true if we need to copy items, false to move. - * It is separated to be overwritten dynamically, if needed. - * - * @param keyPressed the "copy" key was pressed - * @param self Optionaloptional flag that means that we are about to drop on itself - */ - copyState(keyPressed: boolean, self: boolean): any; /** * creator function, dummy at the moment * @@ -14417,14 +14487,6 @@ declare module dojo { * */ getSelectedNodes(): any; - /** - * inserts an array of new nodes before/after an anchor node - * - * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion - */ - insertNodes(data: Object, before: boolean, anchor: HTMLElement): Function; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) * @@ -14433,7 +14495,7 @@ declare module dojo { * @param before insert before the anchor, if true, and after the anchor otherwise * @param anchor the anchor node to be used as a point of insertion */ - insertNodes(addSelected: boolean, data: any[], before: boolean, anchor: HTMLElement): Function; + insertNodes(addSelected?: boolean, data?: any[], before?: boolean, anchor?: HTMLElement): Function; /** * * @param params @@ -14474,71 +14536,6 @@ declare module dojo { * */ sync(): Function; - /** - * topic event processor for /dnd/cancel, called to cancel the DnD operation - * - */ - onDndCancel(): void; - /** - * topic event processor for /dnd/drop, called to finish the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - * @param target the target which accepts items - */ - onDndDrop(source: Object, nodes: any[], copy: boolean, target: Object): void; - /** - * topic event processor for /dnd/source/over, called when detected a current source - * - * @param source the source which has the mouse over it - */ - onDndSourceOver(source: Object): void; - /** - * topic event processor for /dnd/start, called to initiate the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - */ - onDndStart(source: Object, nodes: any[], copy: boolean): void; - /** - * called during the active DnD operation, when items - * are dragged away from this target, and it is not disabled - * - */ - onDraggingOut(): void; - /** - * called during the active DnD operation, when items - * are dragged over this target, and it is not disabled - * - */ - onDraggingOver(): void; - /** - * called only on the current target, when drop is performed - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - */ - onDrop(source: Object, nodes: any[], copy: boolean): void; - /** - * called only on the current target, when drop is performed - * from an external source - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - */ - onDropExternal(source: Object, nodes: any[], copy: boolean): void; - /** - * called only on the current target, when drop is performed - * from the same target/source - * - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - */ - onDropInternal(nodes: any[], copy: boolean): void; /** * event processor for onmousedown * @@ -14874,13 +14871,329 @@ declare module dojo { */ getSelectedNodes(): any; /** - * inserts an array of new nodes before/after an anchor node + * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) * - * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. + * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise + * @param data a list of data items, which should be processed by the creator function * @param before insert before the anchor, if true, and after the anchor otherwise * @param anchor the anchor node to be used as a point of insertion */ - insertNodes(data: Object, before: boolean, anchor: HTMLElement): Function; + insertNodes(addSelected: boolean, data: any[], before: boolean, anchor: HTMLElement): Function; + /** + * + * @param params + * @param node + * @param Ctor + */ + markupFactory(params: any, node: any, Ctor: any): any; + /** + * + * @param type + * @param listener + */ + on(type: any, listener: any): any; + /** + * selects all items + * + */ + selectAll(): any; + /** + * unselects all items + * + */ + selectNone(): any; + /** + * associates a data item with its key (id) + * + * @param key + * @param data + */ + setItem(key: String, data: any): void; + /** + * collects valid child items and populate the map + * + */ + startup(): void; + /** + * sync up the node list with the data map + * + */ + sync(): Function; + /** + * topic event processor for /dnd/cancel, called to cancel the DnD operation + * + */ + onDndCancel(): void; + /** + * topic event processor for /dnd/drop, called to finish the DnD operation + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + * @param target the target which accepts items + */ + onDndDrop(source: Object, nodes: any[], copy: boolean, target: Object): void; + /** + * topic event processor for /dnd/source/over, called when detected a current source + * + * @param source the source which has the mouse over it + */ + onDndSourceOver(source: Object): void; + /** + * topic event processor for /dnd/start, called to initiate the DnD operation + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + */ + onDndStart(source: Object, nodes: any[], copy: boolean): void; + /** + * called during the active DnD operation, when items + * are dragged away from this target, and it is not disabled + * + */ + onDraggingOut(): void; + /** + * called during the active DnD operation, when items + * are dragged over this target, and it is not disabled + * + */ + onDraggingOver(): void; + /** + * called only on the current target, when drop is performed + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + */ + onDrop(source: Object, nodes: any[], copy: boolean): void; + /** + * called only on the current target, when drop is performed + * from an external source + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + */ + onDropExternal(source: Object, nodes: any[], copy: boolean): void; + /** + * called only on the current target, when drop is performed + * from the same target/source + * + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + */ + onDropInternal(nodes: any[], copy: boolean): void; + /** + * event processor for onmousedown + * + * @param e mouse event + */ + onMouseDown(e: Event): void; + /** + * event processor for onmousemove + * + * @param e mouse event + */ + onMouseMove(e: Event): void; + /** + * event processor for onmouseout + * + * @param e mouse event + */ + onMouseOut(e: Event): void; + /** + * event processor for onmouseover or touch, to mark that element as the current element + * + * @param e mouse event + */ + onMouseOver(e: Event): void; + /** + * event processor for onmouseup + * + * @param e mouse event + */ + onMouseUp(e: Event): void; + /** + * this function is called once, when mouse is out of our container + * + */ + onOutEvent(): void; + /** + * this function is called once, when mouse is over our container + * + */ + onOverEvent(): void; + /** + * event processor for onselectevent and ondragevent + * + * @param e mouse event + */ + onSelectStart(e: Event): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Source.html + * + * a Source object, which can be used as a DnD source, or a DnD target + * + * @param node node or node's id to build the source on + * @param params Optionalany property of this class may be configured via the paramsobject which is mixed-in to the dojo/dnd/Source instance + */ + class Source extends dojo.dnd.Selector { + constructor(node: HTMLElement, params?: Object); + /** + * + */ + "accept": any[]; + /** + * Indicates whether to allow dnd item nodes to be nested within other elements. + * By default this is false, indicating that only direct children of the container can + * be draggable dnd item nodes + * + */ + "allowNested": boolean; + /** + * + */ + "autoSync": boolean; + /** + * + */ + "copyOnly": boolean; + /** + * The DOM node the mouse is currently hovered over + * + */ + "current": HTMLElement; + /** + * + */ + "delay": number; + /** + * + */ + "generateText": boolean; + /** + * + */ + "horizontal": boolean; + /** + * + */ + "isSource": boolean; + /** + * Map from an item's id (which is also the DOMNode's id) to + * the dojo/dnd/Container.Item itself. + * + */ + "map": Object; + /** + * The set of id's that are currently selected, such that this.selection[id] == 1 + * if the node w/that id is selected. Can iterate over selected node's id's like: + * + * for(var id in this.selection) + * + */ + "selection": Object; + /** + * + */ + "selfAccept": boolean; + /** + * + */ + "selfCopy": boolean; + /** + * + */ + "singular": boolean; + /** + * + */ + "skipForm": boolean; + /** + * + */ + "withHandles": boolean; + /** + * checks if the target can accept nodes from this source + * + * @param source the source which provides items + * @param nodes the list of transferred items + */ + checkAcceptance(source: Object, nodes: any[]): boolean; + /** + * removes all data items from the map + * + */ + clearItems(): void; + /** + * Returns true if we need to copy items, false to move. + * It is separated to be overwritten dynamically, if needed. + * + * @param keyPressed the "copy" key was pressed + * @param self Optionaloptional flag that means that we are about to drop on itself + */ + copyState(keyPressed: boolean, self: boolean): any; + /** + * creator function, dummy at the moment + * + */ + creator(): void; + /** + * deletes all selected items + * + */ + deleteSelectedNodes(): Function; + /** + * removes a data item from the map by its key (id) + * + * @param key + */ + delItem(key: String): void; + /** + * prepares the object to be garbage-collected + * + */ + destroy(): void; + /** + * + * @param type + * @param event + */ + emit(type: any, event: any): any; + /** + * iterates over a data map skipping members that + * are present in the empty object (IE and/or 3rd-party libraries). + * + * @param f + * @param o Optional + */ + forInItems(f: Function, o: Object): String; + /** + * iterates over selected items; + * see dojo/dnd/Container.forInItems() for details + * + * @param f + * @param o Optional + */ + forInSelectedItems(f: Function, o: Object): void; + /** + * returns a list (an array) of all valid child nodes + * + */ + getAllNodes(): any; + /** + * returns a data item by its key (id) + * + * @param key + */ + getItem(key: String): any; + /** + * returns a list (an array) of selected nodes + * + */ + getSelectedNodes(): any; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) * @@ -15043,217 +15356,93 @@ declare module dojo { onSelectStart(e: Event): void; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Selector.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll.html * - * a Selector object, which knows how to select its children + * Used by dojo/dnd/Manager to scroll document or internal node when the user + * drags near the edge of the viewport or a scrollable node * - * @param node node or node's id to build the selector on - * @param params Optionala dictionary of parameters */ - class Selector extends dojo.dnd.Container { - constructor(node: HTMLElement, params?: Object); - /** - * Indicates whether to allow dnd item nodes to be nested within other elements. - * By default this is false, indicating that only direct children of the container can - * be draggable dnd item nodes - * - */ - "allowNested": boolean; - /** - * The DOM node the mouse is currently hovered over - * - */ - "current": HTMLElement; - /** - * Map from an item's id (which is also the DOMNode's id) to - * the dojo/dnd/Container.Item itself. - * - */ - "map": Object; - /** - * The set of id's that are currently selected, such that this.selection[id] == 1 - * if the node w/that id is selected. Can iterate over selected node's id's like: - * - * for(var id in this.selection) - * - */ - "selection": Object; + interface autoscroll { /** * */ - "singular": boolean; + H_AUTOSCROLL_VALUE: number; /** * */ - "skipForm": boolean; - /** - * removes all data items from the map - * - */ - clearItems(): void; - /** - * creator function, dummy at the moment - * - */ - creator(): void; - /** - * deletes all selected items - * - */ - deleteSelectedNodes(): Function; - /** - * removes a data item from the map by its key (id) - * - * @param key - */ - delItem(key: String): void; - /** - * prepares the object to be garbage-collected - * - */ - destroy(): void; + H_TRIGGER_AUTOSCROLL: number; /** * - * @param type - * @param event */ - emit(type: any, event: any): any; - /** - * iterates over a data map skipping members that - * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional - */ - forInItems(f: Function, o: Object): String; - /** - * iterates over selected items; - * see dojo/dnd/Container.forInItems() for details - * - * @param f - * @param o Optional - */ - forInSelectedItems(f: Function, o: Object): void; - /** - * returns a list (an array) of all valid child nodes - * - */ - getAllNodes(): any; - /** - * returns a data item by its key (id) - * - * @param key - */ - getItem(key: String): any; - /** - * returns a list (an array) of selected nodes - * - */ - getSelectedNodes(): any; - /** - * inserts an array of new nodes before/after an anchor node - * - * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion - */ - insertNodes(data: Object, before: boolean, anchor: HTMLElement): Function; - /** - * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) - * - * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise - * @param data a list of data items, which should be processed by the creator function - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion - */ - insertNodes(addSelected: boolean, data: any[], before: boolean, anchor: HTMLElement): Function; + V_AUTOSCROLL_VALUE: number; /** * - * @param params - * @param node - * @param Ctor */ - markupFactory(params: any, node: any, Ctor: any): any; + V_TRIGGER_AUTOSCROLL: number; /** + * a handler for mousemove and touchmove events, which scrolls the window, if + * necessary * - * @param type - * @param listener + * @param e mousemove/touchmove event */ - on(type: any, listener: any): any; + autoScroll(e: Event): void; /** - * selects all items + * a handler for mousemove and touchmove events, which scrolls the first available + * Dom element, it falls back to exports.autoScroll() * + * @param e mousemove/touchmove event */ - selectAll(): any; + autoScrollNodes(e: Event): void; /** - * unselects all items + * Called at the start of a drag. * + * @param d The document of the node being dragged. */ - selectNone(): any; + autoScrollStart(d: HTMLDocument): void; /** - * associates a data item with its key (id) + * Returns the dimensions and scroll position of the viewable area of a browser window * - * @param key - * @param data + * @param doc Optional */ - setItem(key: String, data: any): void; - /** - * collects valid child items and populate the map - * - */ - startup(): void; - /** - * sync up the node list with the data map - * - */ - sync(): Function; - /** - * event processor for onmousedown - * - * @param e mouse event - */ - onMouseDown(e: Event): void; - /** - * event processor for onmousemove - * - * @param e mouse event - */ - onMouseMove(e: Event): void; - /** - * event processor for onmouseout - * - * @param e mouse event - */ - onMouseOut(e: Event): void; - /** - * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event - */ - onMouseOver(e: Event): void; - /** - * event processor for onmouseup - * - * @param e mouse event - */ - onMouseUp(e: Event): void; - /** - * this function is called once, when mouse is out of our container - * - */ - onOutEvent(): void; - /** - * this function is called once, when mouse is over our container - * - */ - onOverEvent(): void; - /** - * event processor for onselectevent and ondragevent - * - * @param e mouse event - */ - onSelectStart(e: Event): void; + getViewport(doc: HTMLDocument): Object; } + module autoscroll { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll._validOverflow.html + * + * + */ + interface _validOverflow { + /** + * + */ + auto: number; + /** + * + */ + scroll: number; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll._validNodes.html + * + * + */ + interface _validNodes { + /** + * + */ + div: number; + /** + * + */ + p: number; + /** + * + */ + td: number; + } + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/common.html * @@ -15316,94 +15505,6 @@ declare module dojo { } } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll.html - * - * Used by dojo/dnd/Manager to scroll document or internal node when the user - * drags near the edge of the viewport or a scrollable node - * - */ - interface autoscroll { - /** - * - */ - H_AUTOSCROLL_VALUE: number; - /** - * - */ - H_TRIGGER_AUTOSCROLL: number; - /** - * - */ - V_AUTOSCROLL_VALUE: number; - /** - * - */ - V_TRIGGER_AUTOSCROLL: number; - /** - * a handler for mousemove and touchmove events, which scrolls the window, if - * necessary - * - * @param e mousemove/touchmove event - */ - autoScroll(e: Event): void; - /** - * a handler for mousemove and touchmove events, which scrolls the first available - * Dom element, it falls back to exports.autoScroll() - * - * @param e mousemove/touchmove event - */ - autoScrollNodes(e: Event): void; - /** - * Called at the start of a drag. - * - * @param d The document of the node being dragged. - */ - autoScrollStart(d: HTMLDocument): void; - /** - * Returns the dimensions and scroll position of the viewable area of a browser window - * - * @param doc Optional - */ - getViewport(doc: HTMLDocument): Object; - } - module autoscroll { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll._validNodes.html - * - * - */ - interface _validNodes { - /** - * - */ - div: number; - /** - * - */ - p: number; - /** - * - */ - td: number; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll._validOverflow.html - * - * - */ - interface _validOverflow { - /** - * - */ - auto: number; - /** - * - */ - scroll: number; - } - } - /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.html * @@ -15426,14 +15527,19 @@ declare module dojo { } module move { /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.constrainedMoveable.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.parentConstrainedMoveable.html * * * @param node a node (or node's id) to be moved - * @param params Optionalan optional object with additional parameters;the rest is passed to the base class + * @param params Optionalan optional object with parameters */ - class constrainedMoveable extends dojo.dnd.Moveable { + class parentConstrainedMoveable extends dojo.dnd.Moveable { constructor(node: HTMLElement, params?: Object); + /** + * object attributes (for markup) + * + */ + "area": string; /** * */ @@ -15683,19 +15789,14 @@ declare module dojo { onSelectStart(e: Event): void; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.parentConstrainedMoveable.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.constrainedMoveable.html * * * @param node a node (or node's id) to be moved - * @param params Optionalan optional object with parameters + * @param params Optionalan optional object with additional parameters;the rest is passed to the base class */ - class parentConstrainedMoveable extends dojo.dnd.Moveable { + class constrainedMoveable extends dojo.dnd.Moveable { constructor(node: HTMLElement, params?: Object); - /** - * object attributes (for markup) - * - */ - "area": string; /** * */ @@ -15835,13 +15936,6 @@ declare module dojo { * */ interface CancelError{(): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/RequestTimeoutError.html - * - * TODOC - * - */ - interface RequestTimeoutError{(): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/RequestError.html * @@ -15849,6 +15943,13 @@ declare module dojo { * */ interface RequestError{(): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/RequestTimeoutError.html + * + * TODOC + * + */ + interface RequestTimeoutError{(): void} } module io { @@ -15924,32 +16025,6 @@ declare module dojo { } module promise { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/first.html - * - * Takes multiple promises and returns a new promise that is fulfilled - * when the first of these promises is fulfilled. - * Takes multiple promises and returns a new promise that is fulfilled - * when the first of these promises is fulfilled. Canceling the returned - * promise will not cancel any passed promises. The promise will be - * fulfilled with the value of the first fulfilled promise. - * - * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. - */ - interface first{(objectOrArray?: Object): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/first.html - * - * Takes multiple promises and returns a new promise that is fulfilled - * when the first of these promises is fulfilled. - * Takes multiple promises and returns a new promise that is fulfilled - * when the first of these promises is fulfilled. Canceling the returned - * promise will not cancel any passed promises. The promise will be - * fulfilled with the value of the first fulfilled promise. - * - * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. - */ - interface first{(objectOrArray?: any[]): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/all.html * @@ -15976,6 +16051,32 @@ declare module dojo { * @param objectOrArray OptionalThe promise will be fulfilled with a list of results if invoked with anarray, or an object of results when passed an object (using the samekeys). If passed neither an object or array it is resolved with anundefined value. */ interface all{(objectOrArray?: any[]): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/first.html + * + * Takes multiple promises and returns a new promise that is fulfilled + * when the first of these promises is fulfilled. + * Takes multiple promises and returns a new promise that is fulfilled + * when the first of these promises is fulfilled. Canceling the returned + * promise will not cancel any passed promises. The promise will be + * fulfilled with the value of the first fulfilled promise. + * + * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. + */ + interface first{(objectOrArray?: Object): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/first.html + * + * Takes multiple promises and returns a new promise that is fulfilled + * when the first of these promises is fulfilled. + * Takes multiple promises and returns a new promise that is fulfilled + * when the first of these promises is fulfilled. Canceling the returned + * promise will not cancel any passed promises. The promise will be + * fulfilled with the value of the first fulfilled promise. + * + * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. + */ + interface first{(objectOrArray?: any[]): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/instrumentation.html * @@ -16056,11 +16157,11 @@ declare module dojo { * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. */ - then(callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; + then(callback: Function, errback: Function, progback: Function): dojo.promise.Promise; /** * */ - toString(): string; + toString(): String; /** * Trace the promise. * Tracing allows you to transparently log progress, @@ -16105,14 +16206,17 @@ declare module dojo { module rpc { /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/RpcService.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/JsonpService.html * - * TODOC + * Generic JSONP service. Minimally extends RpcService to allow + * easy definition of nearly any JSONP style service. Example + * SMD files exist in dojox.data * - * @param args Takes a number of properties as kwArgs for defining the service. It alsoaccepts a string. When passed a string, it is treated as a url fromwhich it should synchronously retrieve an smd file. Otherwise it is a kwArgsobject. It accepts serviceUrl, to manually define a url for the rpc serviceallowing the rpc system to be used without an smd definition. strictArgChecksforces the system to verify that the # of arguments provided in a callmatches those defined in the smd. smdString allows a developer to passa jsonString directly, which will be converted into an object or alternativelysmdObject is accepts an smdObject directly. + * @param args + * @param requiredArgs */ - class RpcService { - constructor(args: Object); + class JsonpService extends dojo.rpc.RpcService { + constructor(args: any, requiredArgs: any); /** * */ @@ -16121,6 +16225,23 @@ declare module dojo { * */ "strictArgChecks": boolean; + /** + * JSONP bind method. Takes remote method, parameters, + * deferred, and a url, calls createRequest to make a JSON-RPC + * envelope and passes that off with bind. + * + * @param method The name of the method we are calling + * @param parameters The parameters we are passing off to the method + * @param deferredRequestHandler The Deferred object for this particular request + * @param url + */ + bind(method: String, parameters: dojo._base.array, deferredRequestHandler: dojo.Deferred, url: any): void; + /** + * create a JSONP req + * + * @param parameters + */ + createRequest(parameters: any): Object; /** * create callback that calls the Deferred errback method * @@ -16248,17 +16369,14 @@ declare module dojo { resultCallback(deferredRequestHandler: dojo._base.Deferred): any; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/JsonpService.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/RpcService.html * - * Generic JSONP service. Minimally extends RpcService to allow - * easy definition of nearly any JSONP style service. Example - * SMD files exist in dojox.data + * TODOC * - * @param args - * @param requiredArgs + * @param args Takes a number of properties as kwArgs for defining the service. It alsoaccepts a string. When passed a string, it is treated as a url fromwhich it should synchronously retrieve an smd file. Otherwise it is a kwArgsobject. It accepts serviceUrl, to manually define a url for the rpc serviceallowing the rpc system to be used without an smd definition. strictArgChecksforces the system to verify that the # of arguments provided in a callmatches those defined in the smd. smdString allows a developer to passa jsonString directly, which will be converted into an object or alternativelysmdObject is accepts an smdObject directly. */ - class JsonpService extends dojo.rpc.RpcService { - constructor(args: any, requiredArgs: any); + class RpcService { + constructor(args: Object); /** * */ @@ -16267,23 +16385,6 @@ declare module dojo { * */ "strictArgChecks": boolean; - /** - * JSONP bind method. Takes remote method, parameters, - * deferred, and a url, calls createRequest to make a JSON-RPC - * envelope and passes that off with bind. - * - * @param method The name of the method we are calling - * @param parameters The parameters we are passing off to the method - * @param deferredRequestHandler The Deferred object for this particular request - * @param url - */ - bind(method: String, parameters: dojo._base.array, deferredRequestHandler: dojo.Deferred, url: any): void; - /** - * create a JSONP req - * - * @param parameters - */ - createRequest(parameters: any): Object; /** * create callback that calls the Deferred errback method * @@ -16323,6 +16424,26 @@ declare module dojo { } module selector { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/selector/lite.html + * + * A small lightweight query selector engine that implements CSS2.1 selectors + * minus pseudo-classes and the sibling combinator, plus CSS3 attribute selectors + * + * @param selector + * @param root + */ + interface lite{(selector: any, root: any): void} + interface lite { + /** + * + */ + match: Object; + } + + module lite { + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/selector/acme.html * @@ -16487,7 +16608,7 @@ declare module dojo { * @param root OptionalA DOMNode (or node id) to scope the search from. Optional. */ interface acme{(query: String, root?: HTMLElement): void} - module acme { + interface acme { /** * function for filtering a NodeList based on a selector, optimized for simple selectors * @@ -16495,7 +16616,7 @@ declare module dojo { * @param filter * @param root Optional */ - interface filter{(nodeList: HTMLElement[], filter: String, root: String): void} + filter(nodeList: HTMLElement[], filter: String, root: String): void; /** * function for filtering a NodeList based on a selector, optimized for simple selectors * @@ -16503,24 +16624,10 @@ declare module dojo { * @param filter * @param root Optional */ - interface filter{(nodeList: HTMLElement[], filter: String, root: HTMLElement): void} + filter(nodeList: HTMLElement[], filter: String, root: HTMLElement): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/selector/lite.html - * - * A small lightweight query selector engine that implements CSS2.1 selectors - * minus pseudo-classes and the sibling combinator, plus CSS3 attribute selectors - * - * @param selector - * @param root - */ - interface lite{(selector: any, root: any): void} - module lite { - /** - * - */ - var match: Object + module acme { } /** @@ -16553,102 +16660,6 @@ declare module dojo { * @param store */ interface Observable{(store: dojo.store.api.Store): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/DataStore.html - * - * This is an adapter for using Dojo Data stores with an object store consumer. - * You can provide a Dojo data store and use this adapter to interact with it through - * the Dojo object store API - * - * @param options OptionalThis provides any configuration information that will be mixed into the store,including a reference to the Dojo data store under the property "store". - */ - class DataStore extends dojo.store.api.Store { - constructor(options?: Object); - /** - * The object property to use to store the identity of the store items. - * - */ - "idProperty": string; - /** - * The object store to convert to a data store - * - */ - "store": Object; - /** - * - */ - "target": string; - /** - * Creates an object, throws an error if the object already exists - * - * @param object The object to store. - * @param directives OptionalAdditional directives for creating objects. - */ - add(object: Object, directives: dojo.store.api.Store.PutDirectives): any; - /** - * Retrieves an object by it's identity. This will trigger a fetchItemByIdentity - * - * @param id OptionalThe identity to use to lookup the object - * @param options - */ - get(id: number, options?: any): any; - /** - * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. - */ - getChildren(parent: Object, options: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; - /** - * Fetch the identity for the given object. - * - * @param object The data object to get the identity from. - */ - getIdentity(object: Object): any; - /** - * Returns any metadata about the object. This may include attribution, - * cache directives, history, or version information. - * - * @param object The object to return metadata for. - */ - getMetadata(object: Object): Object; - - /** - * Stores an object by its identity. - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes a reference to an idthat the object may be stored with (i.e. { id: "foo" }). - */ - put(object: Object, options: Object): void; - /** - * Queries the store for objects. - * - * @param query The query to use for retrieving objects from the store - * @param options OptionalOptional options object as used by the underlying dojo.data Store. - */ - query(query: Object, options: Object): any; - /** - * Defines the query engine to use for querying the data store - * - * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). - * @param options OptionalAn object that contains optional information such as sort, start, and count. - */ - queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; - /** - * Deletes an object by its identity. - * - * @param id The identity to use to delete the object - */ - remove(id: Object): void; - /** - * Starts a new transaction. - * Note that a store user might not call transaction() prior to using put, - * delete, etc. in which case these operations effectively could be thought of - * as "auto-commit" style actions. - * - */ - transaction(): dojo.store.api.Store.Transaction; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/Cache.html * @@ -16693,7 +16704,7 @@ declare module dojo { * @param object The object to add to the store. * @param directives OptionalAny additional parameters needed to describe how the add should be performed. */ - add(object: Object, directives: Object): number; + add(object: Object, directives: any): number; /** * Remove the object with the given id from the underlying caching store. * @@ -16763,6 +16774,201 @@ declare module dojo { */ transaction(): dojo.store.api.Store.Transaction; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/DataStore.html + * + * This is an adapter for using Dojo Data stores with an object store consumer. + * You can provide a Dojo data store and use this adapter to interact with it through + * the Dojo object store API + * + * @param options OptionalThis provides any configuration information that will be mixed into the store,including a reference to the Dojo data store under the property "store". + */ + class DataStore extends dojo.store.api.Store { + constructor(options?: Object); + /** + * The object property to use to store the identity of the store items. + * + */ + "idProperty": string; + /** + * The object store to convert to a data store + * + */ + "store": Object; + /** + * + */ + "target": string; + /** + * Creates an object, throws an error if the object already exists + * + * @param object The object to store. + * @param directives OptionalAdditional directives for creating objects. + */ + add(object: Object, directives: dojo.store.api.Store.PutDirectives): any; + /** + * Retrieves an object by it's identity. This will trigger a fetchItemByIdentity + * + * @param id OptionalThe identity to use to lookup the object + * @param options + */ + get(id: Object, options?: any): any; + /** + * Retrieves the children of an object. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. + */ + getChildren(parent: Object, options: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; + /** + * Fetch the identity for the given object. + * + * @param object The data object to get the identity from. + */ + getIdentity(object: Object): any; + /** + * Returns any metadata about the object. This may include attribution, + * cache directives, history, or version information. + * + * @param object The object to return metadata for. + */ + getMetadata(object: Object): Object; + /** + * Stores an object by its identity. + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes a reference to an idthat the object may be stored with (i.e. { id: "foo" }). + */ + put(object: Object, options: Object): void; + /** + * Queries the store for objects. + * + * @param query The query to use for retrieving objects from the store + * @param options OptionalOptional options object as used by the underlying dojo.data Store. + */ + query(query: Object, options: Object): any; + /** + * Defines the query engine to use for querying the data store + * + * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). + * @param options OptionalAn object that contains optional information such as sort, start, and count. + */ + queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; + /** + * Deletes an object by its identity. + * + * @param id The identity to use to delete the object + */ + remove(id: Object): void; + /** + * Starts a new transaction. + * Note that a store user might not call transaction() prior to using put, + * delete, etc. in which case these operations effectively could be thought of + * as "auto-commit" style actions. + * + */ + transaction(): dojo.store.api.Store.Transaction; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/Memory.html + * + * This is a basic in-memory object store. It implements dojo/store/api/Store. + * + * @param options This provides any configuration information that will be mixed into the store.This should generally include the data property to provide the starting set of data. + */ + class Memory extends dojo.store.api.Store { + constructor(options: dojo.store.Memory); + /** + * The array of all the objects in the memory store + * + */ + "data": any[]; + /** + * Indicates the property to use as the identity property. The values of this + * property should be unique. + * + */ + "idProperty": string; + /** + * An index of data indices into the data array by id + * + */ + "index": Object; + /** + * Creates an object, throws an error if the object already exists + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. + */ + add(object: Object, options: dojo.store.api.Store.PutDirectives): any; + /** + * Retrieves an object by its identity + * + * @param id The identity to use to lookup the object + */ + get(id: number): any; + /** + * Retrieves the children of an object. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. + */ + getChildren(parent: Object, options: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; + /** + * Returns an object's identity + * + * @param object The object to get the identity from + */ + getIdentity(object: Object): any; + /** + * Returns any metadata about the object. This may include attribution, + * cache directives, history, or version information. + * + * @param object The object to return metadata for. + */ + getMetadata(object: Object): Object; + /** + * Stores an object + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. + */ + put(object: Object, options: dojo.store.api.Store.PutDirectives): any; + /** + * Queries the store for objects. + * + * @param query The query to use for retrieving objects from the store. + * @param options OptionalThe optional arguments to apply to the resultset. + */ + query(query: Object, options: dojo.store.api.Store.QueryOptions): any; + /** + * Defines the query engine to use for querying the data store + * + * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). + * @param options OptionalAn object that contains optional information such as sort, start, and count. + */ + queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; + /** + * Deletes an object by its identity + * + * @param id The identity to use to delete the object + */ + remove(id: number): any; + /** + * Sets the given data as the source for this store, and indexes it + * + * @param data An array of objects to use as the source of data. + */ + setData(data: Object[]): void; + /** + * Starts a new transaction. + * Note that a store user might not call transaction() prior to using put, + * delete, etc. in which case these operations effectively could be thought of + * as "auto-commit" style actions. + * + */ + transaction(): dojo.store.api.Store.Transaction; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/JsonRest.html * @@ -16893,106 +17099,6 @@ declare module dojo { */ transaction(): dojo.store.api.Store.Transaction; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/Memory.html - * - * This is a basic in-memory object store. It implements dojo/store/api/Store. - * - * @param options This provides any configuration information that will be mixed into the store.This should generally include the data property to provide the starting set of data. - */ - class Memory extends dojo.store.api.Store { - constructor(options: dojo.store.Memory); - /** - * The array of all the objects in the memory store - * - */ - "data": any[]; - /** - * Indicates the property to use as the identity property. The values of this - * property should be unique. - * - */ - "idProperty": string; - /** - * An index of data indices into the data array by id - * - */ - "index": Object; - /** - * Creates an object, throws an error if the object already exists - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. - */ - add(object: Object, options: dojo.store.api.Store.PutDirectives): any; - /** - * Retrieves an object by its identity - * - * @param id The identity to use to lookup the object - */ - get(id: number): any; - /** - * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. - */ - getChildren(parent: Object, options: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; - /** - * Returns an object's identity - * - * @param object The object to get the identity from - */ - getIdentity(object: Object): any; - /** - * Returns any metadata about the object. This may include attribution, - * cache directives, history, or version information. - * - * @param object The object to return metadata for. - */ - getMetadata(object: Object): Object; - /** - * Stores an object - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. - */ - put(object: Object, options: dojo.store.api.Store.PutDirectives): any; - /** - * Queries the store for objects. - * - * @param query The query to use for retrieving objects from the store. - * @param options OptionalThe optional arguments to apply to the resultset. - */ - query(query: Object, options: dojo.store.api.Store.QueryOptions): any; - /** - * Defines the query engine to use for querying the data store - * - * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). - * @param options OptionalAn object that contains optional information such as sort, start, and count. - */ - queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; - /** - * Deletes an object by its identity - * - * @param id The identity to use to delete the object - */ - remove(id: number): any; - /** - * Sets the given data as the source for this store, and indexes it - * - * @param data An array of objects to use as the source of data. - */ - setData(data: Object[]): void; - /** - * Starts a new transaction. - * Note that a store user might not call transaction() prior to using put, - * delete, etc. in which case these operations effectively could be thought of - * as "auto-commit" style actions. - * - */ - transaction(): dojo.store.api.Store.Transaction; - } module api { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.html @@ -17173,6 +17279,36 @@ declare module dojo { */ "parent": Object; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.QueryOptions.html + * + * Optional object with additional parameters for query results. + * + */ + class QueryOptions { + constructor(); + /** + * The number of how many results should be returned. + * + */ + "count": number; + /** + * A list of attributes to sort on, as well as direction + * For example: + * + * [{attribute:"price, descending: true}]. + * If the sort parameter is omitted, then the natural order of the store may be + * + * applied if there is a natural order. + * + */ + "sort": Object; + /** + * The first result to begin iteration on + * + */ + "start": number; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.QueryResults.html * @@ -17237,36 +17373,6 @@ declare module dojo { */ then(callback: any, errorHandler: any): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.QueryOptions.html - * - * Optional object with additional parameters for query results. - * - */ - class QueryOptions { - constructor(); - /** - * The number of how many results should be returned. - * - */ - "count": number; - /** - * A list of attributes to sort on, as well as direction - * For example: - * - * [{attribute:"price, descending: true}]. - * If the sort parameter is omitted, then the natural order of the store may be - * - * applied if there is a natural order. - * - */ - "sort": Object; - /** - * The first result to begin iteration on - * - */ - "start": number; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.SortInformation.html * @@ -17317,27 +17423,6 @@ declare module dojo { } module util { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/util/SimpleQueryEngine.html - * - * Simple query engine that matches using filter functions, named filter - * functions or objects by name-value on a query object hash - * The SimpleQueryEngine provides a way of getting a QueryResults through - * the use of a simple object hash as a filter. The hash will be used to - * match properties on data objects with the corresponding value given. In - * other words, only exact matches will be returned. - * - * This function can be used as a template for more complex query engines; - * for example, an engine can be created that accepts an object hash that - * contains filtering functions, or a string that gets evaluated, etc. - * - * When creating a new dojo.store, simply set the store's queryEngine - * field as a reference to this function. - * - * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). - * @param options OptionalAn object that contains optional information such as sort, start, and count. - */ - interface SimpleQueryEngine{(query: Object, options?: dojo.store.api.Store.QueryOptions): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/util/QueryResults.html * @@ -17370,6 +17455,27 @@ declare module dojo { * @param results The result set as an array, or a promise for an array. */ interface QueryResults{(results: dojo.promise.Promise): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/util/SimpleQueryEngine.html + * + * Simple query engine that matches using filter functions, named filter + * functions or objects by name-value on a query object hash + * The SimpleQueryEngine provides a way of getting a QueryResults through + * the use of a simple object hash as a filter. The hash will be used to + * match properties on data objects with the corresponding value given. In + * other words, only exact matches will be returned. + * + * This function can be used as a template for more complex query engines; + * for example, an engine can be created that accepts an object hash that + * contains filtering functions, or a string that gets evaluated, etc. + * + * When creating a new dojo.store, simply set the store's queryEngine + * field as a reference to this function. + * + * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). + * @param options OptionalAn object that contains optional information such as sort, start, and count. + */ + interface SimpleQueryEngine{(query: Object, options?: dojo.store.api.Store.QueryOptions): void} } } @@ -18033,7 +18139,7 @@ declare module dojo { * @param route A string or regular expression which will be used whenmonitoring hash changes. * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. */ - register(route: String, callback: { (params?: Object, oldPath?: string, newPath?: string, preventDefault?: Function, stopImmediatePropagation?: Function):void }): any; + register(route: String, callback: Function): any; /** * Registers a route to a handling callback * Given either a string or a regular expression, the router @@ -18061,7 +18167,7 @@ declare module dojo { * @param route A string or regular expression which will be used whenmonitoring hash changes. * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. */ - register(route: RegExp, callback: { (params?: Object, oldPath?: string, newPath?: string, preventDefault?: Function, stopImmediatePropagation?: Function): void }): any; + register(route: RegExp, callback: Function): any; /** * Registers a route to a handling callback, except before * any previously registered callbacks @@ -18097,6 +18203,59 @@ declare module dojo { } } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/aspect.html + * + * provides aspect oriented programming functionality, allowing for + * one to add before, around, or after advice on existing methods. + * + */ + interface aspect { + /** + * The "after" export of the aspect module is a function that can be used to attach + * "after" advice to a method. This function will be executed after the original method + * is executed. By default the function will be called with a single argument, the return + * value of the original method, or the the return value of the last executed advice (if a previous one exists). + * The fourth (optional) argument can be set to true to so the function receives the original + * arguments (from when the original method was called) rather than the return value. + * If there are multiple "after" advisors, they are executed in the order they were registered. + * + * @param target This is the target object + * @param methodName This is the name of the method to attach to. + * @param advice This is function to be called after the original method + * @param receiveArguments OptionalIf this is set to true, the advice function receives the original arguments (from when the original mehtodwas called) rather than the return value of the original/previous method. + */ + after(target: Object, methodName: String, advice: Function, receiveArguments: boolean): any; + /** + * The "around" export of the aspect module is a function that can be used to attach + * "around" advice to a method. The advisor function is immediately executed when + * the around() is called, is passed a single argument that is a function that can be + * called to continue execution of the original method (or the next around advisor). + * The advisor function should return a function, and this function will be called whenever + * the method is called. It will be called with the arguments used to call the method. + * Whatever this function returns will be returned as the result of the method call (unless after advise changes it). + * + * @param target This is the target object + * @param methodName This is the name of the method to attach to. + * @param advice This is function to be called around the original method + */ + around(target: Object, methodName: String, advice: Function): void; + /** + * The "before" export of the aspect module is a function that can be used to attach + * "before" advice to a method. This function will be executed before the original method + * is executed. This function will be called with the arguments used to call the method. + * This function may optionally return an array as the new arguments to use to call + * the original method (or the previous, next-to-execute before advice, if one exists). + * If the before method doesn't return anything (returns undefined) the original arguments + * will be preserved. + * If there are multiple "before" advisors, they are executed in the reverse order they were registered. + * + * @param target This is the target object + * @param methodName This is the name of the method to attach to. + * @param advice This is function to be called before the original method + */ + before(target: Object, methodName: String, advice: Function): void; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/back.html * @@ -18203,67 +18362,14 @@ declare module dojo { * * * - * + * */ init(): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/aspect.html - * - * provides aspect oriented programming functionality, allowing for - * one to add before, around, or after advice on existing methods. - * - */ - interface aspect { - /** - * The "after" export of the aspect module is a function that can be used to attach - * "after" advice to a method. This function will be executed after the original method - * is executed. By default the function will be called with a single argument, the return - * value of the original method, or the the return value of the last executed advice (if a previous one exists). - * The fourth (optional) argument can be set to true to so the function receives the original - * arguments (from when the original method was called) rather than the return value. - * If there are multiple "after" advisors, they are executed in the order they were registered. - * - * @param target This is the target object - * @param methodName This is the name of the method to attach to. - * @param advice This is function to be called after the original method - * @param receiveArguments OptionalIf this is set to true, the advice function receives the original arguments (from when the original mehtodwas called) rather than the return value of the original/previous method. - */ - after(target: Object, methodName: String, advice: Function, receiveArguments: boolean): any; - /** - * The "around" export of the aspect module is a function that can be used to attach - * "around" advice to a method. The advisor function is immediately executed when - * the around() is called, is passed a single argument that is a function that can be - * called to continue execution of the original method (or the next around advisor). - * The advisor function should return a function, and this function will be called whenever - * the method is called. It will be called with the arguments used to call the method. - * Whatever this function returns will be returned as the result of the method call (unless after advise changes it). - * - * @param target This is the target object - * @param methodName This is the name of the method to attach to. - * @param advice This is function to be called around the original method - */ - around(target: Object, methodName: String, advice: Function): void; - /** - * The "before" export of the aspect module is a function that can be used to attach - * "before" advice to a method. This function will be executed before the original method - * is executed. This function will be called with the arguments used to call the method. - * This function may optionally return an array as the new arguments to use to call - * the original method (or the previous, next-to-execute before advice, if one exists). - * If the before method doesn't return anything (returns undefined) the original arguments - * will be preserved. - * If there are multiple "before" advisors, they are executed in the reverse order they were registered. - * - * @param target This is the target object - * @param methodName This is the name of the method to attach to. - * @param advice This is function to be called before the original method - */ - before(target: Object, methodName: String, advice: Function): void; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/colors.html * - * Color utilities, extending Base dojo._base.Color + * Color utilities, extending Base dojo.Color * */ interface colors { @@ -18478,276 +18584,6 @@ declare module dojo { */ setSelectable(node: any, selectable: any): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-construct.html - * - * - */ - interface dom_construct { - /** - * Create an element, allowing for optional attribute decoration - * and placement. - * A DOM Element creation function. A shorthand method for creating a node or - * a fragment, and allowing for a convenient optional attribute setting step, - * as well as an optional DOM placement reference. - * - * Attributes are set by passing the optional object through dojo.setAttr. - * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * - * Placement is done via dojo.place, assuming the new node to be the action - * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. - */ - create(tag: HTMLElement, attrs: Object, refNode: HTMLElement, pos: String): any; - /** - * Create an element, allowing for optional attribute decoration - * and placement. - * A DOM Element creation function. A shorthand method for creating a node or - * a fragment, and allowing for a convenient optional attribute setting step, - * as well as an optional DOM placement reference. - * - * Attributes are set by passing the optional object through dojo.setAttr. - * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * - * Placement is done via dojo.place, assuming the new node to be the action - * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. - */ - create(tag: String, attrs: Object, refNode: HTMLElement, pos: String): any; - /** - * Create an element, allowing for optional attribute decoration - * and placement. - * A DOM Element creation function. A shorthand method for creating a node or - * a fragment, and allowing for a convenient optional attribute setting step, - * as well as an optional DOM placement reference. - * - * Attributes are set by passing the optional object through dojo.setAttr. - * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * - * Placement is done via dojo.place, assuming the new node to be the action - * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. - */ - create(tag: HTMLElement, attrs: Object, refNode: String, pos: String): any; - /** - * Create an element, allowing for optional attribute decoration - * and placement. - * A DOM Element creation function. A shorthand method for creating a node or - * a fragment, and allowing for a convenient optional attribute setting step, - * as well as an optional DOM placement reference. - * - * Attributes are set by passing the optional object through dojo.setAttr. - * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * - * Placement is done via dojo.place, assuming the new node to be the action - * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. - */ - create(tag: String, attrs: Object, refNode: String, pos: String): any; - /** - * Removes a node from its parent, clobbering it and all of its - * children. - * Removes a node from its parent, clobbering it and all of its - * children. Function only works with DomNodes, and returns nothing. - * - * @param node A String ID or DomNode reference of the element to be destroyed - */ - destroy(node: HTMLElement): void; - /** - * Removes a node from its parent, clobbering it and all of its - * children. - * Removes a node from its parent, clobbering it and all of its - * children. Function only works with DomNodes, and returns nothing. - * - * @param node A String ID or DomNode reference of the element to be destroyed - */ - destroy(node: String): void; - /** - * safely removes all children of the node. - * - * @param node a reference to a DOM node or an id. - */ - empty(node: HTMLElement): void; - /** - * safely removes all children of the node. - * - * @param node a reference to a DOM node or an id. - */ - empty(node: String): void; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: HTMLElement, refNode: HTMLElement, position: String): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: String, refNode: HTMLElement, position: String): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: HTMLElement, refNode: String, position: String): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: String, refNode: String, position: String): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: HTMLElement, refNode: HTMLElement, position: number): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: String, refNode: HTMLElement, position: number): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: HTMLElement, refNode: String, position: number): HTMLElement; - /** - * Attempt to insert node into the DOM, choosing from various positioning options. - * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified - */ - place(node: String, refNode: String, position: number): HTMLElement; - /** - * instantiates an HTML fragment returning the corresponding DOM. - * - * @param frag the HTML fragment - * @param doc Optionaloptional document to use when creating DOM nodes, defaults todojo/_base/window.doc if not specified. - */ - toDom(frag: String, doc: HTMLDocument): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-form.html - * - * This module defines form-processing functions. - * - */ - interface dom_form { - /** - * Serialize a form field to a JavaScript object. - * Returns the value encoded in a form field as - * as a string or an array of strings. Disabled form elements - * and unchecked radio and checkboxes are skipped. Multi-select - * elements are returned as an array of string values. - * - * @param inputNode - */ - fieldToObject(inputNode: HTMLElement): Object; - /** - * Serialize a form field to a JavaScript object. - * Returns the value encoded in a form field as - * as a string or an array of strings. Disabled form elements - * and unchecked radio and checkboxes are skipped. Multi-select - * elements are returned as an array of string values. - * - * @param inputNode - */ - fieldToObject(inputNode: String): Object; - /** - * Create a serialized JSON string from a form node or string - * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional - */ - toJson(formNode: HTMLElement, prettyPrint: boolean): String; - /** - * Create a serialized JSON string from a form node or string - * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional - */ - toJson(formNode: String, prettyPrint: boolean): String; - /** - * Serialize a form node to a JavaScript object. - * Returns the values encoded in an HTML form as - * string properties in an object which it then returns. Disabled form - * elements, buttons, and other non-value form elements are skipped. - * Multi-select elements are returned as an array of string values. - * - * @param formNode - */ - toObject(formNode: HTMLElement): Object; - /** - * Serialize a form node to a JavaScript object. - * Returns the values encoded in an HTML form as - * string properties in an object which it then returns. Disabled form - * elements, buttons, and other non-value form elements are skipped. - * Multi-select elements are returned as an array of string values. - * - * @param formNode - */ - toObject(formNode: String): Object; - /** - * Returns a URL-encoded string representing the form passed as either a - * node or string ID identifying the form to serialize - * - * @param formNode - */ - toQuery(formNode: HTMLElement): String; - /** - * Returns a URL-encoded string representing the form passed as either a - * node or string ID identifying the form to serialize - * - * @param formNode - */ - toQuery(formNode: String): String; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-attr.html * @@ -18891,151 +18727,6 @@ declare module dojo { */ set(node: String, name: Object, value: String): any; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-prop.html - * - * - */ - interface dom_prop { - /** - * - */ - names: Object; - /** - * Gets a property on an HTML element. - * Handles normalized getting of properties on DOM nodes. - * - * @param node id or reference to the element to get the property on - * @param name the name of the property to get. - */ - get(node: HTMLElement, name: String): any; - /** - * Gets a property on an HTML element. - * Handles normalized getting of properties on DOM nodes. - * - * @param node id or reference to the element to get the property on - * @param name the name of the property to get. - */ - get(node: String, name: String): any; - /** - * Sets a property on an HTML element. - * Handles normalized setting of properties on DOM nodes. - * - * When passing functions as values, note that they will not be - * directly assigned to slots on the node, but rather the default - * behavior will be removed and the new behavior will be added - * using dojo.connect(), meaning that event handler properties - * will be normalized and that some caveats with regards to - * non-standard behaviors for onsubmit apply. Namely that you - * should cancel form submission using dojo.stopEvent() on the - * passed event object instead of returning a boolean value from - * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property - */ - set(node: HTMLElement, name: String, value: String): any; - /** - * Sets a property on an HTML element. - * Handles normalized setting of properties on DOM nodes. - * - * When passing functions as values, note that they will not be - * directly assigned to slots on the node, but rather the default - * behavior will be removed and the new behavior will be added - * using dojo.connect(), meaning that event handler properties - * will be normalized and that some caveats with regards to - * non-standard behaviors for onsubmit apply. Namely that you - * should cancel form submission using dojo.stopEvent() on the - * passed event object instead of returning a boolean value from - * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property - */ - set(node: String, name: String, value: String): any; - /** - * Sets a property on an HTML element. - * Handles normalized setting of properties on DOM nodes. - * - * When passing functions as values, note that they will not be - * directly assigned to slots on the node, but rather the default - * behavior will be removed and the new behavior will be added - * using dojo.connect(), meaning that event handler properties - * will be normalized and that some caveats with regards to - * non-standard behaviors for onsubmit apply. Namely that you - * should cancel form submission using dojo.stopEvent() on the - * passed event object instead of returning a boolean value from - * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property - */ - set(node: HTMLElement, name: Object, value: String): any; - /** - * Sets a property on an HTML element. - * Handles normalized setting of properties on DOM nodes. - * - * When passing functions as values, note that they will not be - * directly assigned to slots on the node, but rather the default - * behavior will be removed and the new behavior will be added - * using dojo.connect(), meaning that event handler properties - * will be normalized and that some caveats with regards to - * non-standard behaviors for onsubmit apply. Namely that you - * should cancel form submission using dojo.stopEvent() on the - * passed event object instead of returning a boolean value from - * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property - */ - set(node: String, name: Object, value: String): any; - } - module dom_prop { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-prop.names.html - * - * - */ - interface names { - /** - * - */ - class: string; - /** - * - */ - colspan: string; - /** - * - */ - for: string; - /** - * - */ - frameborder: string; - /** - * - */ - readonly: string; - /** - * - */ - rowspan: string; - /** - * - */ - tabindex: string; - /** - * - */ - valuetype: string; - } - } - /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-class.html * @@ -19236,6 +18927,421 @@ declare module dojo { */ toggle(node: HTMLElement, classStr: any[], condition: boolean): boolean; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-form.html + * + * This module defines form-processing functions. + * + */ + interface dom_form { + /** + * Serialize a form field to a JavaScript object. + * Returns the value encoded in a form field as + * as a string or an array of strings. Disabled form elements + * and unchecked radio and checkboxes are skipped. Multi-select + * elements are returned as an array of string values. + * + * @param inputNode + */ + fieldToObject(inputNode: HTMLElement): Object; + /** + * Serialize a form field to a JavaScript object. + * Returns the value encoded in a form field as + * as a string or an array of strings. Disabled form elements + * and unchecked radio and checkboxes are skipped. Multi-select + * elements are returned as an array of string values. + * + * @param inputNode + */ + fieldToObject(inputNode: String): Object; + /** + * Create a serialized JSON string from a form node or string + * ID identifying the form to serialize + * + * @param formNode + * @param prettyPrint Optional + */ + toJson(formNode: HTMLElement, prettyPrint: boolean): String; + /** + * Create a serialized JSON string from a form node or string + * ID identifying the form to serialize + * + * @param formNode + * @param prettyPrint Optional + */ + toJson(formNode: String, prettyPrint: boolean): String; + /** + * Serialize a form node to a JavaScript object. + * Returns the values encoded in an HTML form as + * string properties in an object which it then returns. Disabled form + * elements, buttons, and other non-value form elements are skipped. + * Multi-select elements are returned as an array of string values. + * + * @param formNode + */ + toObject(formNode: HTMLElement): Object; + /** + * Serialize a form node to a JavaScript object. + * Returns the values encoded in an HTML form as + * string properties in an object which it then returns. Disabled form + * elements, buttons, and other non-value form elements are skipped. + * Multi-select elements are returned as an array of string values. + * + * @param formNode + */ + toObject(formNode: String): Object; + /** + * Returns a URL-encoded string representing the form passed as either a + * node or string ID identifying the form to serialize + * + * @param formNode + */ + toQuery(formNode: HTMLElement): String; + /** + * Returns a URL-encoded string representing the form passed as either a + * node or string ID identifying the form to serialize + * + * @param formNode + */ + toQuery(formNode: String): String; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-construct.html + * + * + */ + interface dom_construct { + /** + * Create an element, allowing for optional attribute decoration + * and placement. + * A DOM Element creation function. A shorthand method for creating a node or + * a fragment, and allowing for a convenient optional attribute setting step, + * as well as an optional DOM placement reference. + * + * Attributes are set by passing the optional object through dojo.setAttr. + * See dojo.setAttr for noted caveats and nuances, and API if applicable. + * + * Placement is done via dojo.place, assuming the new node to be the action + * node, passing along the optional reference node and position. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + */ + create(tag: HTMLElement, attrs: Object, refNode: HTMLElement, pos: String): any; + /** + * Create an element, allowing for optional attribute decoration + * and placement. + * A DOM Element creation function. A shorthand method for creating a node or + * a fragment, and allowing for a convenient optional attribute setting step, + * as well as an optional DOM placement reference. + * + * Attributes are set by passing the optional object through dojo.setAttr. + * See dojo.setAttr for noted caveats and nuances, and API if applicable. + * + * Placement is done via dojo.place, assuming the new node to be the action + * node, passing along the optional reference node and position. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + */ + create(tag: String, attrs: Object, refNode: HTMLElement, pos: String): any; + /** + * Create an element, allowing for optional attribute decoration + * and placement. + * A DOM Element creation function. A shorthand method for creating a node or + * a fragment, and allowing for a convenient optional attribute setting step, + * as well as an optional DOM placement reference. + * + * Attributes are set by passing the optional object through dojo.setAttr. + * See dojo.setAttr for noted caveats and nuances, and API if applicable. + * + * Placement is done via dojo.place, assuming the new node to be the action + * node, passing along the optional reference node and position. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + */ + create(tag: HTMLElement, attrs: Object, refNode: String, pos: String): any; + /** + * Create an element, allowing for optional attribute decoration + * and placement. + * A DOM Element creation function. A shorthand method for creating a node or + * a fragment, and allowing for a convenient optional attribute setting step, + * as well as an optional DOM placement reference. + * + * Attributes are set by passing the optional object through dojo.setAttr. + * See dojo.setAttr for noted caveats and nuances, and API if applicable. + * + * Placement is done via dojo.place, assuming the new node to be the action + * node, passing along the optional reference node and position. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + */ + create(tag: String, attrs: Object, refNode: String, pos: String): any; + /** + * Removes a node from its parent, clobbering it and all of its + * children. + * Removes a node from its parent, clobbering it and all of its + * children. Function only works with DomNodes, and returns nothing. + * + * @param node A String ID or DomNode reference of the element to be destroyed + */ + destroy(node: HTMLElement): void; + /** + * Removes a node from its parent, clobbering it and all of its + * children. + * Removes a node from its parent, clobbering it and all of its + * children. Function only works with DomNodes, and returns nothing. + * + * @param node A String ID or DomNode reference of the element to be destroyed + */ + destroy(node: String): void; + /** + * safely removes all children of the node. + * + * @param node a reference to a DOM node or an id. + */ + empty(node: HTMLElement): void; + /** + * safely removes all children of the node. + * + * @param node a reference to a DOM node or an id. + */ + empty(node: String): void; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: HTMLElement, refNode: HTMLElement, position: String): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: String, refNode: HTMLElement, position: String): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: HTMLElement, refNode: String, position: String): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: String, refNode: String, position: String): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: HTMLElement, refNode: HTMLElement, position: number): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: String, refNode: HTMLElement, position: number): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: HTMLElement, refNode: String, position: number): HTMLElement; + /** + * Attempt to insert node into the DOM, choosing from various positioning options. + * Returns the first argument resolved to a DOM node. + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + */ + place(node: String, refNode: String, position: number): HTMLElement; + /** + * instantiates an HTML fragment returning the corresponding DOM. + * + * @param frag the HTML fragment + * @param doc Optionaloptional document to use when creating DOM nodes, defaults todojo/_base/window.doc if not specified. + */ + toDom(frag: String, doc: HTMLDocument): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-prop.html + * + * + */ + interface dom_prop { + /** + * + */ + names: Object; + /** + * Gets a property on an HTML element. + * Handles normalized getting of properties on DOM nodes. + * + * @param node id or reference to the element to get the property on + * @param name the name of the property to get. + */ + get(node: HTMLElement, name: String): any; + /** + * Gets a property on an HTML element. + * Handles normalized getting of properties on DOM nodes. + * + * @param node id or reference to the element to get the property on + * @param name the name of the property to get. + */ + get(node: String, name: String): any; + /** + * Sets a property on an HTML element. + * Handles normalized setting of properties on DOM nodes. + * + * When passing functions as values, note that they will not be + * directly assigned to slots on the node, but rather the default + * behavior will be removed and the new behavior will be added + * using dojo.connect(), meaning that event handler properties + * will be normalized and that some caveats with regards to + * non-standard behaviors for onsubmit apply. Namely that you + * should cancel form submission using dojo.stopEvent() on the + * passed event object instead of returning a boolean value from + * the handler itself. + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property + */ + set(node: HTMLElement, name: String, value: String): any; + /** + * Sets a property on an HTML element. + * Handles normalized setting of properties on DOM nodes. + * + * When passing functions as values, note that they will not be + * directly assigned to slots on the node, but rather the default + * behavior will be removed and the new behavior will be added + * using dojo.connect(), meaning that event handler properties + * will be normalized and that some caveats with regards to + * non-standard behaviors for onsubmit apply. Namely that you + * should cancel form submission using dojo.stopEvent() on the + * passed event object instead of returning a boolean value from + * the handler itself. + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property + */ + set(node: String, name: String, value: String): any; + /** + * Sets a property on an HTML element. + * Handles normalized setting of properties on DOM nodes. + * + * When passing functions as values, note that they will not be + * directly assigned to slots on the node, but rather the default + * behavior will be removed and the new behavior will be added + * using dojo.connect(), meaning that event handler properties + * will be normalized and that some caveats with regards to + * non-standard behaviors for onsubmit apply. Namely that you + * should cancel form submission using dojo.stopEvent() on the + * passed event object instead of returning a boolean value from + * the handler itself. + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property + */ + set(node: HTMLElement, name: Object, value: String): any; + /** + * Sets a property on an HTML element. + * Handles normalized setting of properties on DOM nodes. + * + * When passing functions as values, note that they will not be + * directly assigned to slots on the node, but rather the default + * behavior will be removed and the new behavior will be added + * using dojo.connect(), meaning that event handler properties + * will be normalized and that some caveats with regards to + * non-standard behaviors for onsubmit apply. Namely that you + * should cancel form submission using dojo.stopEvent() on the + * passed event object instead of returning a boolean value from + * the handler itself. + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property + */ + set(node: String, name: Object, value: String): any; + } + module dom_prop { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-prop.names.html + * + * + */ + interface names { + /** + * + */ + class: string; + /** + * + */ + colspan: string; + /** + * + */ + for: string; + /** + * + */ + frameborder: string; + /** + * + */ + readonly: string; + /** + * + */ + rowspan: string; + /** + * + */ + tabindex: string; + /** + * + */ + valuetype: string; + } + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-style.html * @@ -19552,28 +19658,6 @@ declare module dojo { } } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/io-query.html - * - * This module defines query string processing functions. - * - */ - interface io_query { - /** - * takes a name/value mapping object and returns a string representing - * a URL-encoded version of that object. - * - * @param map - */ - objectToQuery(map: Object): any; - /** - * Create an object representing a de-serialized query section of a - * URL. Query keys with multiple values are returned in an array. - * - * @param str - */ - queryToObject(str: String): Object; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/html.html * @@ -19756,6 +19840,28 @@ declare module dojo { } } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/io-query.html + * + * This module defines query string processing functions. + * + */ + interface io_query { + /** + * takes a name/value mapping object and returns a string representing + * a URL-encoded version of that object. + * + * @param map + */ + objectToQuery(map: Object): any; + /** + * Create an object representing a de-serialized query section of a + * URL. Query keys with multiple values are returned in an array. + * + * @param str + */ + queryToObject(str: String): Object; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/i18n.html * @@ -19963,6 +20069,26 @@ declare module dojo { */ stringify(value: any, replacer: any, spacer: any): void; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/loadInit.html + * + * + */ + interface loadInit { + /** + * + */ + dynamic: number; + /** + * + */ + load: Object; + /** + * + * @param id + */ + normalize(id: any): any; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/keys.html * @@ -20228,53 +20354,6 @@ declare module dojo { */ UP_DPAD: number; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/loadInit.html - * - * - */ - interface loadInit { - /** - * - */ - dynamic: number; - /** - * - */ - load: Object; - /** - * - * @param id - */ - normalize(id: any): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/node.html - * - * This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo - * loader. Note that this plugin will not work with AMD loaders other than the Dojo loader. - * - */ - interface node { - /** - * Standard AMD plugin interface. See https://github.com/amdjs/amdjs-api/wiki/Loader-Plugins - * for information. - * - * @param id - * @param require - * @param load - */ - load(id: String, require: Function, load: Function): void; - /** - * Produces a normalized id to be used by node. Relative ids are resolved relative to the requesting - * module's location in the file system and will return an id with path separators appropriate for the - * local file system. - * - * @param id - * @param normalize - */ - normalize(id: String, normalize: Function): any; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/mouse.html * @@ -20319,6 +20398,33 @@ declare module dojo { */ wheel(node: any, listener: any): any; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/node.html + * + * This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo + * loader. Note that this plugin will not work with AMD loaders other than the Dojo loader. + * + */ + interface node { + /** + * Standard AMD plugin interface. See https://github.com/amdjs/amdjs-api/wiki/Loader-Plugins + * for information. + * + * @param id + * @param require + * @param load + */ + load(id: String, require: Function, load: Function): void; + /** + * Produces a normalized id to be used by node. Relative ids are resolved relative to the requesting + * module's location in the file system and will return an id with path separators appropriate for the + * local file system. + * + * @param id + * @param normalize + */ + normalize(id: String, normalize: Function): any; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.html * @@ -20402,6 +20508,38 @@ declare module dojo { */ "round": number; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__IntegerRegexpFlags.html + * + * + */ + class __IntegerRegexpFlags { + constructor(); + /** + * group size between separators + * + */ + "groupSize": number; + /** + * second grouping, where separators 2..n have a different interval than the first separator (for India) + * + */ + "groupSize2": number; + /** + * The character used as the thousands separator. Default is no + * separator. For more than one symbol use an array, e.g. [",", ""], + * makes ',' optional. + * + */ + "separator": string; + /** + * The leading plus-or-minus sign. Can be true, false, or [true,false]. + * Default is [true, false], (i.e. will match if it is signed + * or unsigned). + * + */ + "signed": boolean; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__FormatOptions.html * @@ -20445,76 +20583,6 @@ declare module dojo { */ "type": string; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__IntegerRegexpFlags.html - * - * - */ - class __IntegerRegexpFlags { - constructor(); - /** - * group size between separators - * - */ - "groupSize": number; - /** - * second grouping, where separators 2..n have a different interval than the first separator (for India) - * - */ - "groupSize2": number; - /** - * The character used as the thousands separator. Default is no - * separator. For more than one symbol use an array, e.g. [",", ""], - * makes ',' optional. - * - */ - "separator": string; - /** - * The leading plus-or-minus sign. Can be true, false, or [true,false]. - * Default is [true, false], (i.e. will match if it is signed - * or unsigned). - * - */ - "signed": boolean; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__ParseOptions.html - * - * - */ - class __ParseOptions { - constructor(); - /** - * Whether to include the fractional portion, where the number of decimal places are implied by pattern - * or explicit 'places' parameter. The value [true,false] makes the fractional portion optional. - * - */ - "fractional": boolean; - /** - * override the locale used to determine formatting rules - * - */ - "locale": string; - /** - * override formatting pattern - * with this string. Default value is based on locale. Overriding this property will defeat - * localization. Literal characters in patterns are not supported. - * - */ - "pattern": string; - /** - * strict parsing, false by default. Strict parsing requires input as produced by the format() method. - * Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators - * - */ - "strict": boolean; - /** - * choose a format type based on the locale from the following: - * decimal, scientific (not yet supported), percent, currency. decimal by default. - * - */ - "type": string; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__RealNumberRegexpFlags.html * @@ -20557,6 +20625,44 @@ declare module dojo { */ "places": number; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__ParseOptions.html + * + * + */ + class __ParseOptions { + constructor(); + /** + * Whether to include the fractional portion, where the number of decimal places are implied by pattern + * or explicit 'places' parameter. The value [true,false] makes the fractional portion optional. + * + */ + "fractional": boolean; + /** + * override the locale used to determine formatting rules + * + */ + "locale": string; + /** + * override formatting pattern + * with this string. Default value is based on locale. Overriding this property will defeat + * localization. Literal characters in patterns are not supported. + * + */ + "pattern": string; + /** + * strict parsing, false by default. Strict parsing requires input as produced by the format() method. + * Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators + * + */ + "strict": boolean; + /** + * choose a format type based on the locale from the following: + * decimal, scientific (not yet supported), percent, currency. decimal by default. + * + */ + "type": string; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__RegexpOptions.html * @@ -20713,6 +20819,518 @@ declare module dojo { */ group(expression: String, nonCapture: boolean): String; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/require.html + * + * + */ + interface require { + /** + * + */ + dynamic: number; + /** + * + */ + load: Object; + /** + * + * @param id + */ + normalize(id: any): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/robotx.html + * + * + */ + interface robotx { + /** + * + */ + doc: Object; + /** + * + */ + mouseWheelSize: number; + /** + * + */ + window: Object; + /** + * Opens the application at the specified URL for testing, redirecting dojo to point to the application + * environment instead of the test environment. + * + * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. + */ + initRobot(url: String): void; + /** + * Holds down a single key, like SHIFT or 'a'. + * Holds down a single key, like SHIFT or 'a'. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + */ + keyDown(charOrCode: number, delay: number): void; + /** + * Types a key combination, like SHIFT-TAB. + * Types a key combination, like SHIFT-TAB. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta + * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. + */ + keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; + /** + * Releases a single key, like SHIFT or 'a'. + * Releases a single key, like SHIFT or 'a'. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + */ + keyUp(charOrCode: number, delay: number): void; + /** + * + */ + killRobot(): void; + /** + * Convenience function to do a press/release. + * See robot.mousePress for more info. + * Convenience function to do a press/release. + * See robot.mousePress for more info. + * + * @param buttons + * @param delay Optional + */ + mouseClick(buttons: Object, delay: number): void; + /** + * Moves the mouse to the specified x,y offset relative to the viewport. + * + * @param x x offset relative to the viewport, in pixels, to move the mouse. + * @param y y offset relative to the viewport, in pixels, to move the mouse. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. + * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) + */ + mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; + /** + * Moves the mouse over the specified node at the specified relative x,y offset. + * Moves the mouse over the specified node at the specified relative x,y offset. + * If you do not specify an offset, mouseMove will default to move to the middle of the node. + * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + */ + mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; + /** + * Moves the mouse over the specified node at the specified relative x,y offset. + * Moves the mouse over the specified node at the specified relative x,y offset. + * If you do not specify an offset, mouseMove will default to move to the middle of the node. + * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + */ + mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; + /** + * Moves the mouse over the specified node at the specified relative x,y offset. + * Moves the mouse over the specified node at the specified relative x,y offset. + * If you do not specify an offset, mouseMove will default to move to the middle of the node. + * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + */ + mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; + /** + * Move the mouse from the current position to the specified point. + * Delays reading contents point until queued command starts running. + * See mouseMove() for details. + * + * @param point x, y position relative to viewport, or if absolute == true, to document + * @param delay Optional + * @param duration Optional + * @param absolute + */ + mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; + /** + * Presses mouse buttons. + * Presses the mouse buttons you pass as true. + * Example: to press the left mouse button, pass {left: true}. + * Mouse buttons you don't specify keep their previous pressed state. + * + * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + */ + mousePress(buttons: Object, delay: number): void; + /** + * Releases mouse buttons. + * Releases the mouse buttons you pass as true. + * Example: to release the left mouse button, pass {left: true}. + * Mouse buttons you don't specify keep their previous pressed state. + * See robot.mousePress for more info. + * + * @param buttons + * @param delay Optional + */ + mouseRelease(buttons: Object, delay: number): void; + /** + * Spins the mouse wheel. + * Spins the wheel wheelAmt "notches." + * Negative wheelAmt scrolls up/away from the user. + * Positive wheelAmt scrolls down/toward the user. + * Note: this will all happen in one event. + * Warning: the size of one mouse wheel notch is an OS setting. + * You can access this size from robot.mouseWheelSize + * + * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. + */ + mouseWheel(wheelAmt: number, delay: number, duration: number): void; + /** + * Scroll the passed node into view, if it is not. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + */ + scrollIntoView(node: String, delay: number): void; + /** + * Scroll the passed node into view, if it is not. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + */ + scrollIntoView(node: HTMLElement, delay: number): void; + /** + * Scroll the passed node into view, if it is not. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + */ + scrollIntoView(node: Function, delay: number): void; + /** + * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. + * + * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalDelay to wait after firing. + */ + sequence(f: Function, delay: number, duration: number): void; + /** + * Set clipboard content. + * Set data as clipboard content, overriding anything already there. The + * data will be put to the clipboard using the given format. + * + * @param data New clipboard content to set + * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. + */ + setClipboard(data: String, format: String): void; + /** + * + */ + startRobot(): any; + /** + * Types a string of characters in order, or types a dojo.keys.* constant. + * Types a string of characters in order, or types a dojo.keys.* constant. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + */ + typeKeys(chars: String, delay: number, duration: number): void; + /** + * Types a string of characters in order, or types a dojo.keys.* constant. + * Types a string of characters in order, or types a dojo.keys.* constant. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + */ + typeKeys(chars: number, delay: number, duration: number): void; + /** + * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, + * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. + * + * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. + */ + waitForPageToLoad(submitActions: Function): any; + } + module robotx { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/robotx._runsemaphore.html + * + * + */ + interface _runsemaphore { + /** + * + */ + lock: any[]; + /** + * + */ + unlock(): any; + } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/robot.html + * + * + */ + interface robot { + /** + * + */ + doc: Object; + /** + * + */ + mouseWheelSize: number; + /** + * + */ + window: Object; + /** + * Opens the application at the specified URL for testing, redirecting dojo to point to the application + * environment instead of the test environment. + * + * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. + */ + initRobot(url: String): void; + /** + * Holds down a single key, like SHIFT or 'a'. + * Holds down a single key, like SHIFT or 'a'. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + */ + keyDown(charOrCode: number, delay: number): void; + /** + * Types a key combination, like SHIFT-TAB. + * Types a key combination, like SHIFT-TAB. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta + * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. + */ + keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; + /** + * Releases a single key, like SHIFT or 'a'. + * Releases a single key, like SHIFT or 'a'. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + */ + keyUp(charOrCode: number, delay: number): void; + /** + * + */ + killRobot(): void; + /** + * Convenience function to do a press/release. + * See robot.mousePress for more info. + * Convenience function to do a press/release. + * See robot.mousePress for more info. + * + * @param buttons + * @param delay Optional + */ + mouseClick(buttons: Object, delay: number): void; + /** + * Moves the mouse to the specified x,y offset relative to the viewport. + * + * @param x x offset relative to the viewport, in pixels, to move the mouse. + * @param y y offset relative to the viewport, in pixels, to move the mouse. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. + * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) + */ + mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; + /** + * Moves the mouse over the specified node at the specified relative x,y offset. + * Moves the mouse over the specified node at the specified relative x,y offset. + * If you do not specify an offset, mouseMove will default to move to the middle of the node. + * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + */ + mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; + /** + * Moves the mouse over the specified node at the specified relative x,y offset. + * Moves the mouse over the specified node at the specified relative x,y offset. + * If you do not specify an offset, mouseMove will default to move to the middle of the node. + * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + */ + mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; + /** + * Moves the mouse over the specified node at the specified relative x,y offset. + * Moves the mouse over the specified node at the specified relative x,y offset. + * If you do not specify an offset, mouseMove will default to move to the middle of the node. + * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + */ + mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; + /** + * Move the mouse from the current position to the specified point. + * Delays reading contents point until queued command starts running. + * See mouseMove() for details. + * + * @param point x, y position relative to viewport, or if absolute == true, to document + * @param delay Optional + * @param duration Optional + * @param absolute + */ + mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; + /** + * Presses mouse buttons. + * Presses the mouse buttons you pass as true. + * Example: to press the left mouse button, pass {left: true}. + * Mouse buttons you don't specify keep their previous pressed state. + * + * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + */ + mousePress(buttons: Object, delay: number): void; + /** + * Releases mouse buttons. + * Releases the mouse buttons you pass as true. + * Example: to release the left mouse button, pass {left: true}. + * Mouse buttons you don't specify keep their previous pressed state. + * See robot.mousePress for more info. + * + * @param buttons + * @param delay Optional + */ + mouseRelease(buttons: Object, delay: number): void; + /** + * Spins the mouse wheel. + * Spins the wheel wheelAmt "notches." + * Negative wheelAmt scrolls up/away from the user. + * Positive wheelAmt scrolls down/toward the user. + * Note: this will all happen in one event. + * Warning: the size of one mouse wheel notch is an OS setting. + * You can access this size from robot.mouseWheelSize + * + * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. + */ + mouseWheel(wheelAmt: number, delay: number, duration: number): void; + /** + * Scroll the passed node into view, if it is not. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + */ + scrollIntoView(node: String, delay: number): void; + /** + * Scroll the passed node into view, if it is not. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + */ + scrollIntoView(node: HTMLElement, delay: number): void; + /** + * Scroll the passed node into view, if it is not. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + */ + scrollIntoView(node: Function, delay: number): void; + /** + * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. + * + * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalDelay to wait after firing. + */ + sequence(f: Function, delay: number, duration: number): void; + /** + * Set clipboard content. + * Set data as clipboard content, overriding anything already there. The + * data will be put to the clipboard using the given format. + * + * @param data New clipboard content to set + * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. + */ + setClipboard(data: String, format: String): void; + /** + * + */ + startRobot(): any; + /** + * Types a string of characters in order, or types a dojo.keys.* constant. + * Types a string of characters in order, or types a dojo.keys.* constant. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + */ + typeKeys(chars: String, delay: number, duration: number): void; + /** + * Types a string of characters in order, or types a dojo.keys.* constant. + * Types a string of characters in order, or types a dojo.keys.* constant. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + */ + typeKeys(chars: number, delay: number, duration: number): void; + /** + * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, + * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. + * + * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. + */ + waitForPageToLoad(submitActions: Function): any; + } + module robot { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/robot._runsemaphore.html + * + * + */ + interface _runsemaphore { + /** + * + */ + lock: any[]; + /** + * + */ + unlock(): any; + } + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.html * @@ -21496,7 +22114,7 @@ declare module dojo { * Parses str for a color value. Accepts hex, rgb, and rgba * style color values. * Acceptable input values for str may include arrays of any form - * accepted by dojo._base.ColorFromArray, hex strings such as "#aaaaaa", or + * accepted by dojo.colorFromArray, hex strings such as "#aaaaaa", or * rgb or rgba strings such as "rgb(133, 200, 16)" or "rgba(10, 10, * 10, 50)" * @@ -23858,6 +24476,97 @@ declare module dojo { xhrPut(args: Object): any; } module main { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.__IoArgs.html + * + * + */ + class __IoArgs { + constructor(); + /** + * Contains properties with string values. These + * properties will be serialized as name1=value2 and + * passed in the request. + * + */ + "content": Object; + /** + * DOM node for a form. Used to extract the form values + * and send to the server. + * + */ + "form": HTMLElement; + /** + * Acceptable values depend on the type of IO + * transport (see specific IO calls for more information). + * + */ + "handleAs": string; + /** + * Set this explicitly to false to prevent publishing of topics related to + * IO operations. Otherwise, if djConfig.ioPublish is set to true, topics + * will be published via dojo/topic.publish() for different phases of an IO operation. + * See dojo/main.__IoPublish for a list of topics that are published. + * + */ + "ioPublish": boolean; + /** + * Default is false. If true, then a + * "dojo.preventCache" parameter is sent in the request + * with a value that changes with each request + * (timestamp). Useful only with GET-type requests. + * + */ + "preventCache": boolean; + /** + * Sets the raw body for an HTTP request. If this is used, then the content + * property is ignored. This is mostly useful for HTTP methods that have + * a body to their requests, like PUT or POST. This property can be used instead + * of postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively. + * + */ + "rawBody": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then error callbacks are called. + * + */ + "timeout": number; + /** + * URL to server endpoint. + * + */ + "url": string; + /** + * This function will + * be called when the request fails due to a network or server error, the url + * is invalid, etc. It will also be called if the load or handle callback throws an + * exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications + * to continue to run even when a logic error happens in the callback, while making + * it easier to troubleshoot while in debug mode. + * + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. + */ + error(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; + /** + * This function will + * be called at the end of every request, whether or not an error occurs. + * + * @param loadOrError Provides a string that tells you whether this functionwas called because of success (load) or failure (error). + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. + */ + handle(loadOrError: String, response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; + /** + * This function will be + * called on a successful HTTP response code. + * + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. + */ + load(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.__IoCallbackArgs.html * @@ -23976,97 +24685,6 @@ declare module dojo { */ "stop": string; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.__IoArgs.html - * - * - */ - class __IoArgs { - constructor(); - /** - * Contains properties with string values. These - * properties will be serialized as name1=value2 and - * passed in the request. - * - */ - "content": Object; - /** - * DOM node for a form. Used to extract the form values - * and send to the server. - * - */ - "form": HTMLElement; - /** - * Acceptable values depend on the type of IO - * transport (see specific IO calls for more information). - * - */ - "handleAs": string; - /** - * Set this explicitly to false to prevent publishing of topics related to - * IO operations. Otherwise, if djConfig.ioPublish is set to true, topics - * will be published via dojo/topic.publish() for different phases of an IO operation. - * See dojo/main.__IoPublish for a list of topics that are published. - * - */ - "ioPublish": boolean; - /** - * Default is false. If true, then a - * "dojo.preventCache" parameter is sent in the request - * with a value that changes with each request - * (timestamp). Useful only with GET-type requests. - * - */ - "preventCache": boolean; - /** - * Sets the raw body for an HTTP request. If this is used, then the content - * property is ignored. This is mostly useful for HTTP methods that have - * a body to their requests, like PUT or POST. This property can be used instead - * of postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively. - * - */ - "rawBody": string; - /** - * Milliseconds to wait for the response. If this time - * passes, the then error callbacks are called. - * - */ - "timeout": number; - /** - * URL to server endpoint. - * - */ - "url": string; - /** - * This function will - * be called when the request fails due to a network or server error, the url - * is invalid, etc. It will also be called if the load or handle callback throws an - * exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications - * to continue to run even when a logic error happens in the callback, while making - * it easier to troubleshoot while in debug mode. - * - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. - */ - error(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; - /** - * This function will - * be called at the end of every request, whether or not an error occurs. - * - * @param loadOrError Provides a string that tells you whether this functionwas called because of success (load) or failure (error). - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. - */ - handle(loadOrError: String, response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; - /** - * This function will be - * called on a successful HTTP response code. - * - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. - */ - load(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.__XhrArgs.html * @@ -24209,7 +24827,7 @@ declare module dojo { * * @param name The property to get. */ - get(name: string): any; + get(name: String): any; /** * * @param params Optional @@ -24223,7 +24841,7 @@ declare module dojo { * @param name The property to set. * @param value The value to set in the property. */ - set(name: string, value: Object): any; + set(name: String, value: Object): any; /** * Watches a property for changes * @@ -24310,6 +24928,23 @@ declare module dojo { */ xml(xhr: any): any; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.cldr.html + * + * + */ + interface cldr { + /** + * TODOC + * + */ + monetary: Object; + /** + * TODOC + * + */ + supplemental: Object; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main._nodeDataCache.html * @@ -24317,6 +24952,20 @@ declare module dojo { */ interface _nodeDataCache { } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.colors.html + * + * + */ + interface colors { + /** + * creates a greyscale color with an optional alpha + * + * @param g + * @param a Optional + */ + makeGrey(g: number, a: number): void; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.back.html * @@ -24423,97 +25072,36 @@ declare module dojo { * * * - * + * */ init(): void; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.contentHandlers.html - * - * A map of available XHR transport handle types. Name matches the - * handleAs attribute passed to XHR calls. - * A map of available XHR transport handle types. Name matches the - * handleAs attribute passed to XHR calls. Each contentHandler is - * called, passing the xhr object for manipulation. The return value - * from the contentHandler will be passed to the load or handle - * functions defined in the original xhr call. - * - */ - interface contentHandlers { - /** - * - * @param xhr - */ - auto(xhr: any): void; - /** - * A contentHandler which evaluates the response data, expecting it to be valid JavaScript - * - * @param xhr - */ - javascript(xhr: any): any; - /** - * A contentHandler which returns a JavaScript object created from the response data - * - * @param xhr - */ - json(xhr: any): any; - /** - * A contentHandler which expects comment-filtered JSON. - * A contentHandler which expects comment-filtered JSON. - * the json-comment-filtered option was implemented to prevent - * "JavaScript Hijacking", but it is less secure than standard JSON. Use - * standard JSON instead. JSON prefixing can be used to subvert hijacking. - * - * Will throw a notice suggesting to use application/json mimetype, as - * json-commenting can introduce security issues. To decrease the chances of hijacking, - * use the standard json contentHandler, and prefix your "JSON" with: {}&& - * - * use djConfig.useCommentedJson = true to turn off the notice - * - * @param xhr - */ - json_comment_filtered(xhr: any): any; - /** - * A contentHandler which checks the presence of comment-filtered JSON and - * alternates between the json and json-comment-filtered contentHandlers. - * - * @param xhr - */ - json_comment_optional(xhr: any): any; - /** - * - * @param xhr - */ - olson_zoneinfo(xhr: any): void; - /** - * A contentHandler which simply returns the plaintext response data - * - * @param xhr - */ - text(xhr: any): any; - /** - * A contentHandler returning an XML Document parsed from the response data - * - * @param xhr - */ - xml(xhr: any): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.cldr.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.data.html * * */ - interface cldr { + interface data { /** - * TODOC * */ - monetary: Object; + api: Object; /** - * TODOC * */ - supplemental: Object; + util: Object; + /** + * + */ + ItemFileReadStore(): void; + /** + * + */ + ItemFileWriteStore(): void; + /** + * + */ + ObjectStore(): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.config.html @@ -24651,7 +25239,7 @@ declare module dojo { */ require: Object; /** - * Array containing the r, g, b components used as transparent color in dojo._base.Color; + * Array containing the r, g, b components used as transparent color in dojo.Color; * if undefined, [255,255,255] (white) will be used. * */ @@ -24680,6 +25268,143 @@ declare module dojo { */ useDeferredInstrumentation: boolean; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.contentHandlers.html + * + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. Each contentHandler is + * called, passing the xhr object for manipulation. The return value + * from the contentHandler will be passed to the load or handle + * functions defined in the original xhr call. + * + */ + interface contentHandlers { + /** + * + * @param xhr + */ + auto(xhr: any): void; + /** + * A contentHandler which evaluates the response data, expecting it to be valid JavaScript + * + * @param xhr + */ + javascript(xhr: any): any; + /** + * A contentHandler which returns a JavaScript object created from the response data + * + * @param xhr + */ + json(xhr: any): any; + /** + * A contentHandler which expects comment-filtered JSON. + * A contentHandler which expects comment-filtered JSON. + * the json-comment-filtered option was implemented to prevent + * "JavaScript Hijacking", but it is less secure than standard JSON. Use + * standard JSON instead. JSON prefixing can be used to subvert hijacking. + * + * Will throw a notice suggesting to use application/json mimetype, as + * json-commenting can introduce security issues. To decrease the chances of hijacking, + * use the standard json contentHandler, and prefix your "JSON" with: {}&& + * + * use djConfig.useCommentedJson = true to turn off the notice + * + * @param xhr + */ + json_comment_filtered(xhr: any): any; + /** + * A contentHandler which checks the presence of comment-filtered JSON and + * alternates between the json and json-comment-filtered contentHandlers. + * + * @param xhr + */ + json_comment_optional(xhr: any): any; + /** + * + * @param xhr + */ + olson_zoneinfo(xhr: any): void; + /** + * A contentHandler which simply returns the plaintext response data + * + * @param xhr + */ + text(xhr: any): any; + /** + * A contentHandler returning an XML Document parsed from the response data + * + * @param xhr + */ + xml(xhr: any): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.date.html + * + * + */ + interface date { + /** + * TODOC + * + */ + stamp: Object; + /** + * Add to a Date in intervals of different size, from milliseconds to years + * + * @param date Date object to start with + * @param interval A string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday" + * @param amount How much to add to the date. + */ + add(date: Date, interval: String, amount: number): any; + /** + * Compare two date objects by date, time, or both. + * Returns 0 if equal, positive if a > b, else negative. + * + * @param date1 Date object + * @param date2 OptionalDate object. If not specified, the current Date is used. + * @param portion OptionalA string indicating the "date" or "time" portion of a Date object.Compares both "date" and "time" by default. One of the following:"date", "time", "datetime" + */ + compare(date1: Date, date2: Date, portion: String): number; + /** + * Get the difference in a specific unit of time (e.g., number of + * months, weeks, days, etc.) between two dates, rounded to the + * nearest integer. + * + * @param date1 Date object + * @param date2 OptionalDate object. If not specified, the current Date is used. + * @param interval OptionalA string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday"Defaults to "day". + */ + difference(date1: Date, date2: Date, interval: String): any; + /** + * Returns the number of days in the month used by dateObject + * + * @param dateObject + */ + getDaysInMonth(dateObject: Date): number; + /** + * Get the user's time zone as provided by the browser + * Try to get time zone info from toString or toLocaleString method of + * the Date object -- UTC offset is not a time zone. See + * http://www.twinsun.com/tz/tz-link.htm Note: results may be + * inconsistent across browsers. + * + * @param dateObject Needed because the timezone may vary with time (daylight savings) + */ + getTimezoneName(dateObject: Date): any; + /** + * Determines if the year of the dateObject is a leap year + * Leap years are years with an additional day YYYY-02-29, where the + * year number is a multiple of four with the following exception: If + * a year is a multiple of 100, then it is only a leap year if it is + * also a multiple of 400. For example, 1900 was not a leap year, but + * 2000 is one. + * + * @param dateObject + */ + isLeapYear(dateObject: Date): boolean; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.currency.html * @@ -24718,18 +25443,128 @@ declare module dojo { regexp(options: Object): any; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.colors.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.dnd.html * * */ - interface colors { + interface dnd { /** - * creates a greyscale color with an optional alpha + * Used by dojo/dnd/Manager to scroll document or internal node when the user + * drags near the edge of the viewport or a scrollable node * - * @param g - * @param a Optional */ - makeGrey(g: number, a: number): void; + autoscroll: Object; + /** + * + */ + move: Object; + /** + * + */ + AutoSource(): void; + /** + * + */ + Avatar(): void; + /** + * + */ + Container(): void; + /** + * + */ + Manager(): void; + /** + * + */ + Moveable(): void; + /** + * + */ + Mover(): void; + /** + * + */ + Selector(): void; + /** + * + */ + Source(): void; + /** + * + */ + Target(): void; + /** + * + */ + TimedMoveable(): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.doc.html + * + * Alias for the current document. 'doc' can be modified + * for temporary context shifting. See also withDoc(). + * Use this rather than referring to 'window.document' to ensure your code runs + * correctly in managed contexts. + * + */ + interface doc { + /** + * + */ + documentElement: Object; + /** + * + */ + dojoClick: boolean; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.gears.html + * + * TODOC + * + */ + interface gears { + /** + * True if client is using Google Gears + * + */ + available: Object; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.global.html + * + * Alias for the current window. 'global' can be modified + * for temporary context shifting. See also withGlobal(). + * Use this rather than referring to 'window' to ensure your code runs + * correctly in managed contexts. + * + */ + interface global { + /** + * + */ + $(): any; + /** + * + * @param start + * @param data + * @param responseCode + * @param errorMsg + */ + GoogleSearchStoreCallback_undefined_NaN(start: any, data: any, responseCode: any, errorMsg: any): void; + /** + * + */ + jQuery(): any; + /** + * + */ + swfIsInHTML(): void; + /** + * + */ + undefined_onload(): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.dijit.html @@ -24881,173 +25716,144 @@ declare module dojo { WidgetSet(): void; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.doc.html - * - * Alias for the current document. 'doc' can be modified - * for temporary context shifting. See also withDoc(). - * Use this rather than referring to 'window.document' to ensure your code runs - * correctly in managed contexts. - * - */ - interface doc { - /** - * - */ - documentElement: Object; - /** - * - */ - dojoClick: boolean; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.data.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.io.html * * */ - interface data { + interface io { /** * */ - api: Object; - /** - * - */ - util: Object; - /** - * - */ - ItemFileReadStore(): void; - /** - * - */ - ItemFileWriteStore(): void; - /** - * - */ - ObjectStore(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.date.html - * - * - */ - interface date { + iframe: Object; /** * TODOC * */ - stamp: Object; - /** - * Add to a Date in intervals of different size, from milliseconds to years - * - * @param date Date object to start with - * @param interval A string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday" - * @param amount How much to add to the date. - */ - add(date: Date, interval: String, amount: number): any; - /** - * Compare two date objects by date, time, or both. - * Returns 0 if equal, positive if a > b, else negative. - * - * @param date1 Date object - * @param date2 OptionalDate object. If not specified, the current Date is used. - * @param portion OptionalA string indicating the "date" or "time" portion of a Date object.Compares both "date" and "time" by default. One of the following:"date", "time", "datetime" - */ - compare(date1: Date, date2: Date, portion: String): number; - /** - * Get the difference in a specific unit of time (e.g., number of - * months, weeks, days, etc.) between two dates, rounded to the - * nearest integer. - * - * @param date1 Date object - * @param date2 OptionalDate object. If not specified, the current Date is used. - * @param interval OptionalA string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday"Defaults to "day". - */ - difference(date1: Date, date2: Date, interval: String): any; - /** - * Returns the number of days in the month used by dateObject - * - * @param dateObject - */ - getDaysInMonth(dateObject: Date): number; - /** - * Get the user's time zone as provided by the browser - * Try to get time zone info from toString or toLocaleString method of - * the Date object -- UTC offset is not a time zone. See - * http://www.twinsun.com/tz/tz-link.htm Note: results may be - * inconsistent across browsers. - * - * @param dateObject Needed because the timezone may vary with time (daylight savings) - */ - getTimezoneName(dateObject: Date): any; - /** - * Determines if the year of the dateObject is a leap year - * Leap years are years with an additional day YYYY-02-29, where the - * year number is a multiple of four with the following exception: If - * a year is a multiple of 100, then it is only a leap year if it is - * also a multiple of 400. For example, 1900 was not a leap year, but - * 2000 is one. - * - * @param dateObject - */ - isLeapYear(dateObject: Date): boolean; + script: Object; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.dnd.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.fx.html * + * Effects library on top of Base animations * */ - interface dnd { + interface fx { /** - * Used by dojo/dnd/Manager to scroll document or internal node when the user - * drags near the edge of the viewport or a scrollable node + * Collection of easing functions to use beyond the default + * dojo._defaultEasing function. * */ - autoscroll: Object; + easing: Object; + /** + * Chain a list of dojo/_base/fx.Animations to run in sequence + * Return a dojo/_base/fx.Animation which will play all passed + * dojo/_base/fx.Animation instances in sequence, firing its own + * synthesized events simulating a single animation. (eg: + * onEnd of this animation means the end of the chain, + * not the individual animations within) + * + * @param animations + */ + chain(animations: dojo._base.fx.Animation[]): any; + /** + * Combine a list of dojo/_base/fx.Animations to run in parallel + * Combine an array of dojo/_base/fx.Animations to run in parallel, + * providing a new dojo/_base/fx.Animation instance encompasing each + * animation, firing standard animation events. + * + * @param animations + */ + combine(animations: dojo._base.fx.Animation[]): any; + /** + * Slide a node to a new top/left position + * Returns an animation that will slide "node" + * defined in args Object from its current position to + * the position defined by (args.left, args.top). + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. + */ + slideTo(args: Object): any; /** * */ - move: Object; + Toggler(): void; /** + * Expand a node to it's natural height. + * Returns an animation that will expand the + * node defined in 'args' object from it's current height to + * it's natural height (with no scrollbar). + * Node must have no margin/border/padding. * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ - AutoSource(): void; + wipeIn(args: Object): any; /** + * Shrink a node to nothing and hide it. + * Returns an animation that will shrink node defined in "args" + * from it's current height to 1px, and then hide it. * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ - Avatar(): void; + wipeOut(args: Object): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.html.html + * + * TODOC + * + */ + interface html { /** + * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") + * may be a better choice for simple HTML insertion. + * Unless you need to use the params capabilities of this method, you should use + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions + * or the other capabilities as defined by the params object for this method. * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ - Container(): void; + set(node: HTMLElement, cont: String, params: Object): any; /** + * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") + * may be a better choice for simple HTML insertion. + * Unless you need to use the params capabilities of this method, you should use + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions + * or the other capabilities as defined by the params object for this method. * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ - Manager(): void; + set(node: HTMLElement, cont: HTMLElement, params: Object): any; /** + * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") + * may be a better choice for simple HTML insertion. + * Unless you need to use the params capabilities of this method, you should use + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions + * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting + * an HTML string into the DOM, but it only handles inserting an HTML string as DOM + * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions + * or the other capabilities as defined by the params object for this method. * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ - Moveable(): void; - /** - * - */ - Mover(): void; - /** - * - */ - Selector(): void; - /** - * - */ - Source(): void; - /** - * - */ - Target(): void; - /** - * - */ - TimedMoveable(): void; + set(node: HTMLElement, cont: NodeList, params: Object): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.dojox.html @@ -25314,179 +26120,235 @@ declare module dojo { sprintf(format: String, filler: any): void; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.fx.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.i18n.html * - * Effects library on top of Base animations + * This module implements the dojo/i18n! plugin and the v1.6- i18n API + * We choose to include our own plugin to leverage functionality already contained in dojo + * and thereby reduce the size of the plugin compared to various loader implementations. Also, this + * allows foreign AMD loaders to be used without their plugins. * */ - interface fx { - /** - * Collection of easing functions to use beyond the default - * dojo._defaultEasing function. - * - */ - easing: Object; - /** - * Chain a list of dojo/_base/fx.Animations to run in sequence - * Return a dojo/_base/fx.Animation which will play all passed - * dojo/_base/fx.Animation instances in sequence, firing its own - * synthesized events simulating a single animation. (eg: - * onEnd of this animation means the end of the chain, - * not the individual animations within) - * - * @param animations - */ - chain(animations: dojo._base.fx.Animation[]): any; - /** - * Combine a list of dojo/_base/fx.Animations to run in parallel - * Combine an array of dojo/_base/fx.Animations to run in parallel, - * providing a new dojo/_base/fx.Animation instance encompasing each - * animation, firing standard animation events. - * - * @param animations - */ - combine(animations: dojo._base.fx.Animation[]): any; - /** - * Slide a node to a new top/left position - * Returns an animation that will slide "node" - * defined in args Object from its current position to - * the position defined by (args.left, args.top). - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. - */ - slideTo(args: Object): any; + interface i18n { /** * */ - Toggler(): void; + cache: Object; /** - * Expand a node to it's natural height. - * Returns an animation that will expand the - * node defined in 'args' object from it's current height to - * it's natural height (with no scrollbar). - * Node must have no margin/border/padding. * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ - wipeIn(args: Object): any; + dynamic: boolean; /** - * Shrink a node to nothing and hide it. - * Returns an animation that will shrink node defined in "args" - * from it's current height to 1px, and then hide it. * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ - wipeOut(args: Object): any; + unitTests: any[]; + /** + * + * @param moduleName + * @param bundleName + * @param locale + */ + getL10nName(moduleName: any, bundleName: any, locale: any): String; + /** + * + * @param moduleName + * @param bundleName + * @param locale + */ + getLocalization(moduleName: any, bundleName: any, locale: any): any; + /** + * id is in one of the following formats + * + * /nls/ + * => load the bundle, localized to config.locale; load all bundles localized to + * config.extraLocale (if any); return the loaded bundle localized to config.locale. + * /nls// + * => load then return the bundle localized to + * preload/nls// + * => for config.locale and all config.extraLocale, load all bundles found + * in the best-matching bundle rollup. A value of 1 is returned, which + * is meaningless other than to say the plugin is executing the requested + * preloads + * + * In cases 1 and 2, is always normalized to an absolute module id upon entry; see + * normalize. In case 3, it is assumed to be absolute; this is arranged by the builder. + * + * To load a bundle means to insert the bundle into the plugin's cache and publish the bundle + * value to the loader. Given , , and a particular , the cache key + * + * /nls// + * will hold the value. Similarly, then plugin will publish this value to the loader by + * + * define("/nls//", ); + * Given this algorithm, other machinery can provide fast load paths be preplacing + * values in the plugin's cache, which is public. When a load is demanded the + * cache is inspected before starting any loading. Explicitly placing values in the plugin + * cache is an advanced/experimental feature that should not be needed; use at your own risk. + * + * For the normal AMD algorithm, the root bundle is loaded first, which instructs the + * plugin what additional localized bundles are required for a particular locale. These + * additional locales are loaded and a mix of the root and each progressively-specific + * locale is returned. For example: + * + * The client demands "dojo/i18n!some/path/nls/someBundle + * The loader demands load(some/path/nls/someBundle) + * This plugin require's "some/path/nls/someBundle", which is the root bundle. + * Assuming config.locale is "ab-cd-ef" and the root bundle indicates that localizations + * are available for "ab" and "ab-cd-ef" (note the missing "ab-cd", then the plugin + * requires "some/path/nls/ab/someBundle" and "some/path/nls/ab-cd-ef/someBundle" + * Upon receiving all required bundles, the plugin constructs the value of the bundle + * ab-cd-ef as... + * mixin(mixin(mixin({}, require("some/path/nls/someBundle"), + * require("some/path/nls/ab/someBundle")), + * require("some/path/nls/ab-cd-ef/someBundle")); + * + * This value is inserted into the cache and published to the loader at the + * key/module-id some/path/nls/someBundle/ab-cd-ef. + * + * The special preload signature (case 3) instructs the plugin to stop servicing all normal requests + * (further preload requests will be serviced) until all ongoing preloading has completed. + * + * The preload signature instructs the plugin that a special rollup module is available that contains + * one or more flattened, localized bundles. The JSON array of available locales indicates which locales + * are available. Here is an example: + * + * *preload*some/path/nls/someModule*["root", "ab", "ab-cd-ef"] + * This indicates the following rollup modules are available: + * + * some/path/nls/someModule_ROOT + * some/path/nls/someModule_ab + * some/path/nls/someModule_ab-cd-ef + * Each of these modules is a normal AMD module that contains one or more flattened bundles in a hash. + * For example, assume someModule contained the bundles some/bundle/path/someBundle and + * some/bundle/path/someOtherBundle, then some/path/nls/someModule_ab would be expressed as follows: + * + * define({ + * some/bundle/path/someBundle:, + * some/bundle/path/someOtherBundle:, + * }); + * E.g., given this design, preloading for locale=="ab" can execute the following algorithm: + * + * require(["some/path/nls/someModule_ab"], function(rollup){ + * for(var p in rollup){ + * var id = p + "/ab", + * cache[id] = rollup[p]; + * define(id, rollup[p]); + * } + * }); + * Similarly, if "ab-cd" is requested, the algorithm can determine that "ab" is the best available and + * load accordingly. + * + * The builder will write such rollups for every layer if a non-empty localeList profile property is + * provided. Further, the builder will include the following cache entry in the cache associated with + * any layer. + * + * "*now":function(r){r(['dojo/i18n!*preload*/nls/*']);} + * The *now special cache module instructs the loader to apply the provided function to context-require + * with respect to the particular layer being defined. This causes the plugin to hold all normal service + * requests until all preloading is complete. + * + * Notice that this algorithm is rarely better than the standard AMD load algorithm. Consider the normal case + * where the target locale has a single segment and a layer depends on a single bundle: + * + * Without Preloads: + * + * Layer loads root bundle. + * bundle is demanded; plugin loads single localized bundle. + * With Preloads: + * + * Layer causes preloading of target bundle. + * bundle is demanded; service is delayed until preloading complete; bundle is returned. + * In each case a single transaction is required to load the target bundle. In cases where multiple bundles + * are required and/or the locale has multiple segments, preloads still requires a single transaction whereas + * the normal path requires an additional transaction for each additional bundle/locale-segment. However all + * of these additional transactions can be done concurrently. Owing to this analysis, the entire preloading + * algorithm can be discard during a build by setting the has feature dojo-preload-i18n-Api to false. + * + * @param id + * @param require + * @param load + */ + load(id: any, require: any, load: any): void; + /** + * id may be relative. + * preload has form *preload*/nls/* and + * therefore never looks like a relative + * + * @param id + * @param toAbsMid + */ + normalize(id: any, toAbsMid: any): any; + /** + * + * @param locale + */ + normalizeLocale(locale: any): any; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.html.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.scopeMap.html * - * TODOC * */ - interface html { + interface scopeMap { /** - * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") - * may be a better choice for simple HTML insertion. - * Unless you need to use the params capabilities of this method, you should use - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions - * or the other capabilities as defined by the params object for this method. * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ - set(node: HTMLElement, cont: String, params: Object): any; + dijit: any[]; /** - * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") - * may be a better choice for simple HTML insertion. - * Unless you need to use the params capabilities of this method, you should use - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions - * or the other capabilities as defined by the params object for this method. * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ - set(node: HTMLElement, cont: HTMLElement, params: Object): any; + dojo: any[]; /** - * inserts (replaces) the given content into the given node. dojo/dom-construct.place(cont, node, "only") - * may be a better choice for simple HTML insertion. - * Unless you need to use the params capabilities of this method, you should use - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct..place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct..place does not handle NodeList insertions - * dojo/dom-construct.place(cont, node, "only"). dojo/dom-construct.place() has more robust support for injecting - * an HTML string into the DOM, but it only handles inserting an HTML string as DOM - * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions - * or the other capabilities as defined by the params object for this method. * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ - set(node: HTMLElement, cont: NodeList, params: Object): any; + dojox: any[]; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.io.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.regexp.html * + * Regular expressions and Builder resources * */ - interface io { + interface regexp { /** + * Builds a regular expression that groups subexpressions + * A utility function used by some of the RE generators. The + * subexpressions are constructed by the function, re, in the second + * parameter. re builds one subexpression for each elem in the array + * a, in the first parameter. Returns a string for a regular + * expression that groups all the subexpressions. * + * @param arr A single value or an array of values. + * @param re A function. Takes one parameter and converts it to a regularexpression. + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false */ - iframe: Object; + buildGroupRE(arr: Object, re: Function, nonCapture: boolean): any; /** - * TODOC + * Builds a regular expression that groups subexpressions + * A utility function used by some of the RE generators. The + * subexpressions are constructed by the function, re, in the second + * parameter. re builds one subexpression for each elem in the array + * a, in the first parameter. Returns a string for a regular + * expression that groups all the subexpressions. * + * @param arr A single value or an array of values. + * @param re A function. Takes one parameter and converts it to a regularexpression. + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false */ - script: Object; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.global.html - * - * Alias for the current window. 'global' can be modified - * for temporary context shifting. See also withGlobal(). - * Use this rather than referring to 'window' to ensure your code runs - * correctly in managed contexts. - * - */ - interface global { + buildGroupRE(arr: any[], re: Function, nonCapture: boolean): any; /** + * Adds escape sequences for special characters in regular expressions * + * @param str + * @param except Optionala String with special characters to be left unescaped */ - $(): any; + escapeString(str: String, except: String): any; /** + * adds group match to expression * - * @param start - * @param data - * @param responseCode - * @param errorMsg + * @param expression + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. */ - GoogleSearchStoreCallback_undefined_NaN(start: any, data: any, responseCode: any, errorMsg: any): void; - /** - * - */ - jQuery(): any; - /** - * - */ - swfIsInHTML(): void; - /** - * - */ - undefined_onload(): void; + group(expression: String, nonCapture: boolean): String; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.mouseButtons.html @@ -25535,6 +26397,78 @@ declare module dojo { */ isRight(e: Event): boolean; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.rpc.html + * + * + */ + interface rpc { + /** + * + */ + JsonpService(): void; + /** + * + */ + JsonService(): void; + /** + * + */ + RpcService(): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.number.html + * + * localized formatting and parsing routines for Number + * + */ + interface number_ { + /** + * Format a Number as a String, using locale-specific settings + * Create a string from a Number using a known localized pattern. + * Formatting patterns appropriate to the locale are chosen from the + * Common Locale Data Repository as well as the appropriate symbols and + * delimiters. + * If value is Infinity, -Infinity, or is not a valid JavaScript number, return null. + * + * @param value the number to be formatted + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.places (Number, optional): fixed number of decimal places to show. This overrides anyinformation in the provided pattern.round (Number, optional): 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1means do not round.locale (String, optional): override the locale used to determine formatting rulesfractional (Boolean, optional): If false, show no decimal places, overriding places and pattern settings. + */ + format(value: number, options: Object): any; + /** + * Convert a properly formatted string to a primitive Number, using + * locale-specific settings. + * Create a Number from a string using a known localized pattern. + * Formatting patterns are chosen appropriate to the locale + * and follow the syntax described by + * unicode.org TR35 + * Note that literal characters in patterns are not supported. + * + * @param expression A string representation of a Number + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsfractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by patternor explicit 'places' parameter. The value [true,false] makes the fractional portion optional. + */ + parse(expression: String, options: Object): number; + /** + * Builds the regular needed to parse a number + * Returns regular expression with positive and negative match, group + * and decimal separators + * + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. + */ + regexp(options: Object): any; + /** + * Rounds to the nearest value with the given number of decimal places, away from zero + * Rounds to the nearest value with the given number of decimal places, away from zero if equal. + * Similar to Number.toFixed(), but compensates for browser quirks. Rounding can be done by + * fractional increments also, such as the nearest quarter. + * NOTE: Subject to floating point errors. See dojox/math/round for experimental workaround. + * + * @param value The number to round + * @param places OptionalThe number of decimal places where rounding takes place. Defaults to 0 for whole rounding.Must be non-negative. + * @param increment OptionalRounds next place to nearest value of increment/10. 10 by default. + */ + round(value: number, places: number, increment: number): number; + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.keys.html * @@ -25801,259 +26735,51 @@ declare module dojo { UP_DPAD: number; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.i18n.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.tests.html * - * This module implements the dojo/i18n! plugin and the v1.6- i18n API - * We choose to include our own plugin to leverage functionality already contained in dojo - * and thereby reduce the size of the plugin compared to various loader implementations. Also, this - * allows foreign AMD loaders to be used without their plugins. + * D.O.H. Test files for Dojo unit testing. * */ - interface i18n { - /** - * - */ - cache: Object; - /** - * - */ - dynamic: boolean; - /** - * - */ - unitTests: any[]; - /** - * - * @param moduleName - * @param bundleName - * @param locale - */ - getL10nName(moduleName: any, bundleName: any, locale: any): String; - /** - * - * @param moduleName - * @param bundleName - * @param locale - */ - getLocalization(moduleName: any, bundleName: any, locale: any): any; - /** - * id is in one of the following formats - * - * /nls/ - * => load the bundle, localized to config.locale; load all bundles localized to - * config.extraLocale (if any); return the loaded bundle localized to config.locale. - * /nls// - * => load then return the bundle localized to - * preload/nls// - * => for config.locale and all config.extraLocale, load all bundles found - * in the best-matching bundle rollup. A value of 1 is returned, which - * is meaningless other than to say the plugin is executing the requested - * preloads - * - * In cases 1 and 2, is always normalized to an absolute module id upon entry; see - * normalize. In case 3, it is assumed to be absolute; this is arranged by the builder. - * - * To load a bundle means to insert the bundle into the plugin's cache and publish the bundle - * value to the loader. Given , , and a particular , the cache key - * - * /nls// - * will hold the value. Similarly, then plugin will publish this value to the loader by - * - * define("/nls//", ); - * Given this algorithm, other machinery can provide fast load paths be preplacing - * values in the plugin's cache, which is public. When a load is demanded the - * cache is inspected before starting any loading. Explicitly placing values in the plugin - * cache is an advanced/experimental feature that should not be needed; use at your own risk. - * - * For the normal AMD algorithm, the root bundle is loaded first, which instructs the - * plugin what additional localized bundles are required for a particular locale. These - * additional locales are loaded and a mix of the root and each progressively-specific - * locale is returned. For example: - * - * The client demands "dojo/i18n!some/path/nls/someBundle - * The loader demands load(some/path/nls/someBundle) - * This plugin require's "some/path/nls/someBundle", which is the root bundle. - * Assuming config.locale is "ab-cd-ef" and the root bundle indicates that localizations - * are available for "ab" and "ab-cd-ef" (note the missing "ab-cd", then the plugin - * requires "some/path/nls/ab/someBundle" and "some/path/nls/ab-cd-ef/someBundle" - * Upon receiving all required bundles, the plugin constructs the value of the bundle - * ab-cd-ef as... - * mixin(mixin(mixin({}, require("some/path/nls/someBundle"), - * require("some/path/nls/ab/someBundle")), - * require("some/path/nls/ab-cd-ef/someBundle")); - * - * This value is inserted into the cache and published to the loader at the - * key/module-id some/path/nls/someBundle/ab-cd-ef. - * - * The special preload signature (case 3) instructs the plugin to stop servicing all normal requests - * (further preload requests will be serviced) until all ongoing preloading has completed. - * - * The preload signature instructs the plugin that a special rollup module is available that contains - * one or more flattened, localized bundles. The JSON array of available locales indicates which locales - * are available. Here is an example: - * - * *preload*some/path/nls/someModule*["root", "ab", "ab-cd-ef"] - * This indicates the following rollup modules are available: - * - * some/path/nls/someModule_ROOT - * some/path/nls/someModule_ab - * some/path/nls/someModule_ab-cd-ef - * Each of these modules is a normal AMD module that contains one or more flattened bundles in a hash. - * For example, assume someModule contained the bundles some/bundle/path/someBundle and - * some/bundle/path/someOtherBundle, then some/path/nls/someModule_ab would be expressed as follows: - * - * define({ - * some/bundle/path/someBundle:, - * some/bundle/path/someOtherBundle:, - * }); - * E.g., given this design, preloading for locale=="ab" can execute the following algorithm: - * - * require(["some/path/nls/someModule_ab"], function(rollup){ - * for(var p in rollup){ - * var id = p + "/ab", - * cache[id] = rollup[p]; - * define(id, rollup[p]); - * } - * }); - * Similarly, if "ab-cd" is requested, the algorithm can determine that "ab" is the best available and - * load accordingly. - * - * The builder will write such rollups for every layer if a non-empty localeList profile property is - * provided. Further, the builder will include the following cache entry in the cache associated with - * any layer. - * - * "*now":function(r){r(['dojo/i18n!*preload*/nls/*']);} - * The *now special cache module instructs the loader to apply the provided function to context-require - * with respect to the particular layer being defined. This causes the plugin to hold all normal service - * requests until all preloading is complete. - * - * Notice that this algorithm is rarely better than the standard AMD load algorithm. Consider the normal case - * where the target locale has a single segment and a layer depends on a single bundle: - * - * Without Preloads: - * - * Layer loads root bundle. - * bundle is demanded; plugin loads single localized bundle. - * With Preloads: - * - * Layer causes preloading of target bundle. - * bundle is demanded; service is delayed until preloading complete; bundle is returned. - * In each case a single transaction is required to load the target bundle. In cases where multiple bundles - * are required and/or the locale has multiple segments, preloads still requires a single transaction whereas - * the normal path requires an additional transaction for each additional bundle/locale-segment. However all - * of these additional transactions can be done concurrently. Owing to this analysis, the entire preloading - * algorithm can be discard during a build by setting the has feature dojo-preload-i18n-Api to false. - * - * @param id - * @param require - * @param load - */ - load(id: any, require: any, load: any): void; - /** - * id may be relative. - * preload has form *preload*/nls/* and - * therefore never looks like a relative - * - * @param id - * @param toAbsMid - */ - normalize(id: any, toAbsMid: any): any; - /** - * - * @param locale - */ - normalizeLocale(locale: any): any; + interface tests { } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.scopeMap.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.version.html * + * Version number of the Dojo Toolkit + * Hash about the version, including + * + * major: Integer: Major version. If total version is "1.2.0beta1", will be 1 + * minor: Integer: Minor version. If total version is "1.2.0beta1", will be 2 + * patch: Integer: Patch version. If total version is "1.2.0beta1", will be 0 + * flag: String: Descriptor flag. If total version is "1.2.0beta1", will be "beta1" + * revision: Number: The Git rev from which dojo was pulled * */ - interface scopeMap { + interface version { /** * */ - dijit: any[]; + flag: string; /** * */ - dojo: any[]; + major: number; /** * */ - dojox: any[]; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.rpc.html - * - * - */ - interface rpc { + minor: number; /** * */ - JsonpService(): void; + patch: number; /** * */ - JsonService(): void; + revision: number; /** * */ - RpcService(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.number.html - * - * localized formatting and parsing routines for Number - * - */ - interface number_ { - /** - * Format a Number as a String, using locale-specific settings - * Create a string from a Number using a known localized pattern. - * Formatting patterns appropriate to the locale are chosen from the - * Common Locale Data Repository as well as the appropriate symbols and - * delimiters. - * If value is Infinity, -Infinity, or is not a valid JavaScript number, return null. - * - * @param value the number to be formatted - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.places (Number, optional): fixed number of decimal places to show. This overrides anyinformation in the provided pattern.round (Number, optional): 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1means do not round.locale (String, optional): override the locale used to determine formatting rulesfractional (Boolean, optional): If false, show no decimal places, overriding places and pattern settings. - */ - format(value: number, options: Object): any; - /** - * Convert a properly formatted string to a primitive Number, using - * locale-specific settings. - * Create a Number from a string using a known localized pattern. - * Formatting patterns are chosen appropriate to the locale - * and follow the syntax described by - * unicode.org TR35 - * Note that literal characters in patterns are not supported. - * - * @param expression A string representation of a Number - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsfractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by patternor explicit 'places' parameter. The value [true,false] makes the fractional portion optional. - */ - parse(expression: String, options: Object): number; - /** - * Builds the regular needed to parse a number - * Returns regular expression with positive and negative match, group - * and decimal separators - * - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. - */ - regexp(options: Object): any; - /** - * Rounds to the nearest value with the given number of decimal places, away from zero - * Rounds to the nearest value with the given number of decimal places, away from zero if equal. - * Similar to Number.toFixed(), but compensates for browser quirks. Rounding can be done by - * fractional increments also, such as the nearest quarter. - * NOTE: Subject to floating point errors. See dojox/math/round for experimental workaround. - * - * @param value The number to round - * @param places OptionalThe number of decimal places where rounding takes place. Defaults to 0 for whole rounding.Must be non-negative. - * @param increment OptionalRounds next place to nearest value of increment/10. 10 by default. - */ - round(value: number, places: number, increment: number): number; + toString(): String; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.string.html @@ -26110,53 +26836,6 @@ declare module dojo { */ trim(str: String): String; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.store.html - * - * - */ - interface store { - /** - * - */ - util: Object; - /** - * - * @param masterStore - * @param cachingStore - * @param options - */ - Cache(masterStore: any, cachingStore: any, options: any): any; - /** - * - */ - DataStore(): void; - /** - * - */ - JsonRest(): void; - /** - * - */ - Memory(): void; - /** - * The Observable store wrapper takes a store and sets an observe method on query() - * results that can be used to monitor results for changes. - * Observable wraps an existing store so that notifications can be made when a query - * is performed. - * - * @param store - */ - Observable(store: dojo.store.api.Store): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.tests.html - * - * D.O.H. Test files for Dojo unit testing. - * - */ - interface tests { - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.touch.html * @@ -26229,104 +26908,43 @@ declare module dojo { release(node: HTMLElement, listener: Function): any; } /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.gears.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.store.html * - * TODOC * */ - interface gears { - /** - * True if client is using Google Gears - * - */ - available: Object; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.version.html - * - * Version number of the Dojo Toolkit - * Hash about the version, including - * - * major: Integer: Major version. If total version is "1.2.0beta1", will be 1 - * minor: Integer: Minor version. If total version is "1.2.0beta1", will be 2 - * patch: Integer: Patch version. If total version is "1.2.0beta1", will be 0 - * flag: String: Descriptor flag. If total version is "1.2.0beta1", will be "beta1" - * revision: Number: The Git rev from which dojo was pulled - * - */ - interface version { + interface store { /** * */ - flag: string; + util: Object; + /** + * + * @param masterStore + * @param cachingStore + * @param options + */ + Cache(masterStore: any, cachingStore: any, options: any): any; /** * */ - major: number; + DataStore(): void; /** * */ - minor: number; + JsonRest(): void; /** * */ - patch: number; + Memory(): void; /** + * The Observable store wrapper takes a store and sets an observe method on query() + * results that can be used to monitor results for changes. + * Observable wraps an existing store so that notifications can be made when a query + * is performed. * + * @param store */ - revision: number; - /** - * - */ - toString(): string; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.regexp.html - * - * Regular expressions and Builder resources - * - */ - interface regexp { - /** - * Builds a regular expression that groups subexpressions - * A utility function used by some of the RE generators. The - * subexpressions are constructed by the function, re, in the second - * parameter. re builds one subexpression for each elem in the array - * a, in the first parameter. Returns a string for a regular - * expression that groups all the subexpressions. - * - * @param arr A single value or an array of values. - * @param re A function. Takes one parameter and converts it to a regularexpression. - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false - */ - buildGroupRE(arr: Object, re: Function, nonCapture: boolean): any; - /** - * Builds a regular expression that groups subexpressions - * A utility function used by some of the RE generators. The - * subexpressions are constructed by the function, re, in the second - * parameter. re builds one subexpression for each elem in the array - * a, in the first parameter. Returns a string for a regular - * expression that groups all the subexpressions. - * - * @param arr A single value or an array of values. - * @param re A function. Takes one parameter and converts it to a regularexpression. - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false - */ - buildGroupRE(arr: any[], re: Function, nonCapture: boolean): any; - /** - * Adds escape sequences for special characters in regular expressions - * - * @param str - * @param except Optionala String with special characters to be left unescaped - */ - escapeString(str: String, except: String): any; - /** - * adds group match to expression - * - * @param expression - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. - */ - group(expression: String, nonCapture: boolean): String; + Observable(store: dojo.store.api.Store): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/main.window.html @@ -26357,518 +26975,6 @@ declare module dojo { } } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/require.html - * - * - */ - interface require { - /** - * - */ - dynamic: number; - /** - * - */ - load: Object; - /** - * - * @param id - */ - normalize(id: any): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/robotx.html - * - * - */ - interface robotx { - /** - * - */ - doc: Object; - /** - * - */ - mouseWheelSize: number; - /** - * - */ - window: Object; - /** - * Opens the application at the specified URL for testing, redirecting dojo to point to the application - * environment instead of the test environment. - * - * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. - */ - initRobot(url: String): void; - /** - * Holds down a single key, like SHIFT or 'a'. - * Holds down a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - */ - keyDown(charOrCode: number, delay: number): void; - /** - * Types a key combination, like SHIFT-TAB. - * Types a key combination, like SHIFT-TAB. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta - * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. - */ - keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; - /** - * Releases a single key, like SHIFT or 'a'. - * Releases a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - */ - keyUp(charOrCode: number, delay: number): void; - /** - * - */ - killRobot(): void; - /** - * Convenience function to do a press/release. - * See robot.mousePress for more info. - * Convenience function to do a press/release. - * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional - */ - mouseClick(buttons: Object, delay: number): void; - /** - * Moves the mouse to the specified x,y offset relative to the viewport. - * - * @param x x offset relative to the viewport, in pixels, to move the mouse. - * @param y y offset relative to the viewport, in pixels, to move the mouse. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. - * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) - */ - mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; - /** - * Moves the mouse over the specified node at the specified relative x,y offset. - * Moves the mouse over the specified node at the specified relative x,y offset. - * If you do not specify an offset, mouseMove will default to move to the middle of the node. - * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. - */ - mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; - /** - * Moves the mouse over the specified node at the specified relative x,y offset. - * Moves the mouse over the specified node at the specified relative x,y offset. - * If you do not specify an offset, mouseMove will default to move to the middle of the node. - * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. - */ - mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; - /** - * Moves the mouse over the specified node at the specified relative x,y offset. - * Moves the mouse over the specified node at the specified relative x,y offset. - * If you do not specify an offset, mouseMove will default to move to the middle of the node. - * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. - */ - mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; - /** - * Move the mouse from the current position to the specified point. - * Delays reading contents point until queued command starts running. - * See mouseMove() for details. - * - * @param point x, y position relative to viewport, or if absolute == true, to document - * @param delay Optional - * @param duration Optional - * @param absolute - */ - mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; - /** - * Presses mouse buttons. - * Presses the mouse buttons you pass as true. - * Example: to press the left mouse button, pass {left: true}. - * Mouse buttons you don't specify keep their previous pressed state. - * - * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - */ - mousePress(buttons: Object, delay: number): void; - /** - * Releases mouse buttons. - * Releases the mouse buttons you pass as true. - * Example: to release the left mouse button, pass {left: true}. - * Mouse buttons you don't specify keep their previous pressed state. - * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional - */ - mouseRelease(buttons: Object, delay: number): void; - /** - * Spins the mouse wheel. - * Spins the wheel wheelAmt "notches." - * Negative wheelAmt scrolls up/away from the user. - * Positive wheelAmt scrolls down/toward the user. - * Note: this will all happen in one event. - * Warning: the size of one mouse wheel notch is an OS setting. - * You can access this size from robot.mouseWheelSize - * - * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. - */ - mouseWheel(wheelAmt: number, delay: number, duration: number): void; - /** - * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. - */ - scrollIntoView(node: String, delay: number): void; - /** - * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. - */ - scrollIntoView(node: HTMLElement, delay: number): void; - /** - * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. - */ - scrollIntoView(node: Function, delay: number): void; - /** - * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. - * - * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalDelay to wait after firing. - */ - sequence(f: Function, delay: number, duration: number): void; - /** - * Set clipboard content. - * Set data as clipboard content, overriding anything already there. The - * data will be put to the clipboard using the given format. - * - * @param data New clipboard content to set - * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. - */ - setClipboard(data: String, format: String): void; - /** - * - */ - startRobot(): any; - /** - * Types a string of characters in order, or types a dojo.keys.* constant. - * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. - */ - typeKeys(chars: String, delay: number, duration: number): void; - /** - * Types a string of characters in order, or types a dojo.keys.* constant. - * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. - */ - typeKeys(chars: number, delay: number, duration: number): void; - /** - * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, - * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. - * - * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. - */ - waitForPageToLoad(submitActions: Function): any; - } - module robotx { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/robotx._runsemaphore.html - * - * - */ - interface _runsemaphore { - /** - * - */ - lock: any[]; - /** - * - */ - unlock(): any; - } - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/robot.html - * - * - */ - interface robot { - /** - * - */ - doc: Object; - /** - * - */ - mouseWheelSize: number; - /** - * - */ - window: Object; - /** - * Opens the application at the specified URL for testing, redirecting dojo to point to the application - * environment instead of the test environment. - * - * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. - */ - initRobot(url: String): void; - /** - * Holds down a single key, like SHIFT or 'a'. - * Holds down a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - */ - keyDown(charOrCode: number, delay: number): void; - /** - * Types a key combination, like SHIFT-TAB. - * Types a key combination, like SHIFT-TAB. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta - * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. - */ - keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; - /** - * Releases a single key, like SHIFT or 'a'. - * Releases a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - */ - keyUp(charOrCode: number, delay: number): void; - /** - * - */ - killRobot(): void; - /** - * Convenience function to do a press/release. - * See robot.mousePress for more info. - * Convenience function to do a press/release. - * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional - */ - mouseClick(buttons: Object, delay: number): void; - /** - * Moves the mouse to the specified x,y offset relative to the viewport. - * - * @param x x offset relative to the viewport, in pixels, to move the mouse. - * @param y y offset relative to the viewport, in pixels, to move the mouse. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. - * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) - */ - mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; - /** - * Moves the mouse over the specified node at the specified relative x,y offset. - * Moves the mouse over the specified node at the specified relative x,y offset. - * If you do not specify an offset, mouseMove will default to move to the middle of the node. - * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. - */ - mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; - /** - * Moves the mouse over the specified node at the specified relative x,y offset. - * Moves the mouse over the specified node at the specified relative x,y offset. - * If you do not specify an offset, mouseMove will default to move to the middle of the node. - * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. - */ - mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; - /** - * Moves the mouse over the specified node at the specified relative x,y offset. - * Moves the mouse over the specified node at the specified relative x,y offset. - * If you do not specify an offset, mouseMove will default to move to the middle of the node. - * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. - */ - mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; - /** - * Move the mouse from the current position to the specified point. - * Delays reading contents point until queued command starts running. - * See mouseMove() for details. - * - * @param point x, y position relative to viewport, or if absolute == true, to document - * @param delay Optional - * @param duration Optional - * @param absolute - */ - mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; - /** - * Presses mouse buttons. - * Presses the mouse buttons you pass as true. - * Example: to press the left mouse button, pass {left: true}. - * Mouse buttons you don't specify keep their previous pressed state. - * - * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - */ - mousePress(buttons: Object, delay: number): void; - /** - * Releases mouse buttons. - * Releases the mouse buttons you pass as true. - * Example: to release the left mouse button, pass {left: true}. - * Mouse buttons you don't specify keep their previous pressed state. - * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional - */ - mouseRelease(buttons: Object, delay: number): void; - /** - * Spins the mouse wheel. - * Spins the wheel wheelAmt "notches." - * Negative wheelAmt scrolls up/away from the user. - * Positive wheelAmt scrolls down/toward the user. - * Note: this will all happen in one event. - * Warning: the size of one mouse wheel notch is an OS setting. - * You can access this size from robot.mouseWheelSize - * - * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. - */ - mouseWheel(wheelAmt: number, delay: number, duration: number): void; - /** - * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. - */ - scrollIntoView(node: String, delay: number): void; - /** - * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. - */ - scrollIntoView(node: HTMLElement, delay: number): void; - /** - * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. - */ - scrollIntoView(node: Function, delay: number): void; - /** - * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. - * - * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalDelay to wait after firing. - */ - sequence(f: Function, delay: number, duration: number): void; - /** - * Set clipboard content. - * Set data as clipboard content, overriding anything already there. The - * data will be put to the clipboard using the given format. - * - * @param data New clipboard content to set - * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. - */ - setClipboard(data: String, format: String): void; - /** - * - */ - startRobot(): any; - /** - * Types a string of characters in order, or types a dojo.keys.* constant. - * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. - */ - typeKeys(chars: String, delay: number, duration: number): void; - /** - * Types a string of characters in order, or types a dojo.keys.* constant. - * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. - */ - typeKeys(chars: number, delay: number, duration: number): void; - /** - * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, - * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. - * - * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. - */ - waitForPageToLoad(submitActions: Function): any; - } - module robot { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/robot._runsemaphore.html - * - * - */ - interface _runsemaphore { - /** - * - */ - lock: any[]; - /** - * - */ - unlock(): any; - } - } - /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/string.html * @@ -26979,6 +27085,23 @@ declare module dojo { */ subscribe(topic: String, listener: Function): any; } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/uacss.html + * + * Applies pre-set CSS classes to the top-level HTML node, based on: + * + * browser (ex: dj_ie) + * browser version (ex: dj_ie6) + * box model (ex: dj_contentBox) + * text direction (ex: dijitRtl) + * In addition, browser, browser version, and box model are + * combined with an RTL flag when browser text is RTL. ex: dj_ie-rtl. + * + * Returns the has() method. + * + */ + interface uacss { + } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/window.html * @@ -27006,23 +27129,6 @@ declare module dojo { */ scrollIntoView(node: HTMLElement, pos: Object): void; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dojo/uacss.html - * - * Applies pre-set CSS classes to the top-level HTML node, based on: - * - * browser (ex: dj_ie) - * browser version (ex: dj_ie6) - * box model (ex: dj_contentBox) - * text direction (ex: dijitRtl) - * In addition, browser, browser version, and box model are - * combined with an RTL flag when browser text is RTL. ex: dj_ie-rtl. - * - * Returns the has() method. - * - */ - interface uacss { - } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/touch.html * @@ -27096,3 +27202,1135 @@ declare module dojo { } } +declare module "dojo/request" { + var exp: dojo.request + export=exp; +} +declare module "dojo/request.__BaseOptions" { + var exp: dojo.request.__BaseOptions + export=exp; +} +declare module "dojo/request.__MethodOptions" { + var exp: dojo.request.__MethodOptions + export=exp; +} +declare module "dojo/request.__Options" { + var exp: dojo.request.__Options + export=exp; +} +declare module "dojo/request.__Promise" { + var exp: dojo.request.__Promise + export=exp; +} +declare module "dojo/request/handlers" { + var exp: dojo.request.handlers + export=exp; +} +declare module "dojo/request/iframe" { + var exp: dojo.request.iframe + export=exp; +} +declare module "dojo/request/iframe.__MethodOptions" { + var exp: dojo.request.iframe.__MethodOptions + export=exp; +} +declare module "dojo/request/iframe.__BaseOptions" { + var exp: dojo.request.iframe.__BaseOptions + export=exp; +} +declare module "dojo/request/iframe.__Options" { + var exp: dojo.request.iframe.__Options + export=exp; +} +declare module "dojo/request/notify" { + var exp: dojo.request.notify + export=exp; +} +declare module "dojo/request/registry" { + var exp: dojo.request.registry + export=exp; +} +declare module "dojo/request/node" { + var exp: dojo.request.node + export=exp; +} +declare module "dojo/request/node.__MethodOptions" { + var exp: dojo.request.node.__MethodOptions + export=exp; +} +declare module "dojo/request/node.__Options" { + var exp: dojo.request.node.__Options + export=exp; +} +declare module "dojo/request/node.__BaseOptions" { + var exp: dojo.request.node.__BaseOptions + export=exp; +} +declare module "dojo/request/watch" { + var exp: dojo.request.watch + export=exp; +} +declare module "dojo/request/script" { + var exp: dojo.request.script + export=exp; +} +declare module "dojo/request/script.__MethodOptions" { + var exp: dojo.request.script.__MethodOptions + export=exp; +} +declare module "dojo/request/script.__BaseOptions" { + var exp: dojo.request.script.__BaseOptions + export=exp; +} +declare module "dojo/request/script.__Options" { + var exp: dojo.request.script.__Options + export=exp; +} +declare module "dojo/request/xhr" { + var exp: dojo.request.xhr + export=exp; +} +declare module "dojo/request/xhr.__BaseOptions" { + var exp: dojo.request.xhr.__BaseOptions + export=exp; +} +declare module "dojo/request/xhr.__MethodOptions" { + var exp: dojo.request.xhr.__MethodOptions + export=exp; +} +declare module "dojo/request/xhr.__Options" { + var exp: dojo.request.xhr.__Options + export=exp; +} +declare module "dojo/request/default" { + var exp: dojo.request.default_ + export=exp; +} +declare module "dojo/request/util" { + var exp: dojo.request.util + export=exp; +} +declare module "dojo/AdapterRegistry" { + var exp: dojo.AdapterRegistry + export=exp; +} +declare module "dojo/cache" { + var exp: dojo.cache + export=exp; +} +declare module "dojo/cookie" { + var exp: dojo.cookie + export=exp; +} +declare module "dojo/domReady" { + var exp: dojo.domReady + export=exp; +} +declare module "dojo/hash" { + var exp: dojo.hash + export=exp; +} +declare module "dojo/has" { + var exp: dojo.has + export=exp; +} +declare module "dojo/hccss" { + var exp: dojo.hccss + export=exp; +} +declare module "dojo/NodeList-data" { + var exp: dojo.NodeList_data + export=exp; +} +declare module "dojo/NodeList-html" { + var exp: dojo.NodeList_html + export=exp; +} +declare module "dojo/NodeList-fx" { + var exp: dojo.NodeList_fx + export=exp; +} +declare module "dojo/NodeList-dom" { + var exp: dojo.NodeList_dom + export=exp; +} +declare module "dojo/NodeList-manipulate" { + var exp: dojo.NodeList_manipulate + export=exp; +} +declare module "dojo/NodeList-traverse" { + var exp: dojo.NodeList_traverse + export=exp; +} +declare module "dojo/on" { + var exp: dojo.on + export=exp; +} +declare module "dojo/query" { + var exp: dojo.query + export=exp; +} +declare module "dojo/ready" { + var exp: dojo.ready + export=exp; +} +declare module "dojo/sniff" { + var exp: dojo.sniff + export=exp; +} +declare module "dojo/when" { + var exp: dojo.when + export=exp; +} +declare module "dojo/date" { + var exp: dojo.date + export=exp; +} +declare module "dojo/date/stamp" { + var exp: dojo.date.stamp + export=exp; +} +declare module "dojo/date/locale" { + var exp: dojo.date.locale + export=exp; +} +declare module "dojo/date/locale.__FormatOptions" { + var exp: dojo.date.locale.__FormatOptions + export=exp; +} +declare module "dojo/fx" { + var exp: dojo.fx + export=exp; +} +declare module "dojo/fx/Toggler" { + var exp: dojo.fx.Toggler + export=exp; +} +declare module "dojo/fx/easing" { + var exp: dojo.fx.easing + export=exp; +} +declare module "dojo/router" { + var exp: dojo.router + export=exp; +} +declare module "dojo/router/RouterBase" { + var exp: dojo.router.RouterBase + export=exp; +} +declare module "dojo/aspect" { + var exp: dojo.aspect + export=exp; +} +declare module "dojo/back" { + var exp: dojo.back + export=exp; +} +declare module "dojo/colors" { + var exp: dojo.colors + export=exp; +} +declare module "dojo/currency" { + var exp: dojo.currency + export=exp; +} +declare module "dojo/currency.__FormatOptions" { + var exp: dojo.currency.__FormatOptions + export=exp; +} +declare module "dojo/currency.__ParseOptions" { + var exp: dojo.currency.__ParseOptions + export=exp; +} +declare module "dojo/dom" { + var exp: dojo.dom + export=exp; +} +declare module "dojo/dom-attr" { + var exp: dojo.dom_attr + export=exp; +} +declare module "dojo/dom-class" { + var exp: dojo.dom_class + export=exp; +} +declare module "dojo/dom-form" { + var exp: dojo.dom_form + export=exp; +} +declare module "dojo/dom-construct" { + var exp: dojo.dom_construct + export=exp; +} +declare module "dojo/dom-prop" { + var exp: dojo.dom_prop + export=exp; +} +declare module "dojo/dom-prop.names" { + var exp: dojo.dom_prop.names + export=exp; +} +declare module "dojo/dom-style" { + var exp: dojo.dom_style + export=exp; +} +declare module "dojo/dom-geometry" { + var exp: dojo.dom_geometry + export=exp; +} +declare module "dojo/gears" { + var exp: dojo.gears + export=exp; +} +declare module "dojo/gears.available" { + var exp: dojo.gears.available + export=exp; +} +declare module "dojo/html" { + var exp: dojo.html + export=exp; +} +declare module "dojo/html._ContentSetter" { + var exp: dojo.html._ContentSetter + export=exp; +} +declare module "dojo/io-query" { + var exp: dojo.io_query + export=exp; +} +declare module "dojo/i18n" { + var exp: dojo.i18n + export=exp; +} +declare module "dojo/i18n.cache" { + var exp: dojo.i18n.cache + export=exp; +} +declare module "dojo/json" { + var exp: dojo.json + export=exp; +} +declare module "dojo/loadInit" { + var exp: dojo.loadInit + export=exp; +} +declare module "dojo/keys" { + var exp: dojo.keys + export=exp; +} +declare module "dojo/mouse" { + var exp: dojo.mouse + export=exp; +} +declare module "dojo/node" { + var exp: dojo.node + export=exp; +} +declare module "dojo/number" { + var exp: dojo.number_ + export=exp; +} +declare module "dojo/number.__FormatAbsoluteOptions" { + var exp: dojo.number_.__FormatAbsoluteOptions + export=exp; +} +declare module "dojo/number.__IntegerRegexpFlags" { + var exp: dojo.number_.__IntegerRegexpFlags + export=exp; +} +declare module "dojo/number.__FormatOptions" { + var exp: dojo.number_.__FormatOptions + export=exp; +} +declare module "dojo/number.__RealNumberRegexpFlags" { + var exp: dojo.number_.__RealNumberRegexpFlags + export=exp; +} +declare module "dojo/number.__ParseOptions" { + var exp: dojo.number_.__ParseOptions + export=exp; +} +declare module "dojo/number.__RegexpOptions" { + var exp: dojo.number_.__RegexpOptions + export=exp; +} +declare module "dojo/parser" { + var exp: dojo.parser + export=exp; +} +declare module "dojo/regexp" { + var exp: dojo.regexp + export=exp; +} +declare module "dojo/require" { + var exp: dojo.require + export=exp; +} +declare module "dojo/robotx" { + var exp: dojo.robotx + export=exp; +} +declare module "dojo/robotx._runsemaphore" { + var exp: dojo.robotx._runsemaphore + export=exp; +} +declare module "dojo/robot" { + var exp: dojo.robot + export=exp; +} +declare module "dojo/robot._runsemaphore" { + var exp: dojo.robot._runsemaphore + export=exp; +} +declare module "dojo/main" { + var exp: dojo.main + export=exp; +} +declare module "dojo/main.__IoArgs" { + var exp: dojo.main.__IoArgs + export=exp; +} +declare module "dojo/main.__IoCallbackArgs" { + var exp: dojo.main.__IoCallbackArgs + export=exp; +} +declare module "dojo/main.__IoPublish" { + var exp: dojo.main.__IoPublish + export=exp; +} +declare module "dojo/main.__XhrArgs" { + var exp: dojo.main.__XhrArgs + export=exp; +} +declare module "dojo/main.Stateful" { + var exp: dojo.main.Stateful + export=exp; +} +declare module "dojo/main._hasResource" { + var exp: dojo.main._hasResource + export=exp; +} +declare module "dojo/main._contentHandlers" { + var exp: dojo.main._contentHandlers + export=exp; +} +declare module "dojo/main.cldr" { + var exp: dojo.main.cldr + export=exp; +} +declare module "dojo/main._nodeDataCache" { + var exp: dojo.main._nodeDataCache + export=exp; +} +declare module "dojo/main.colors" { + var exp: dojo.main.colors + export=exp; +} +declare module "dojo/main.back" { + var exp: dojo.main.back + export=exp; +} +declare module "dojo/main.data" { + var exp: dojo.main.data + export=exp; +} +declare module "dojo/main.config" { + var exp: dojo.main.config + export=exp; +} +declare module "dojo/main.contentHandlers" { + var exp: dojo.main.contentHandlers + export=exp; +} +declare module "dojo/main.date" { + var exp: dojo.main.date + export=exp; +} +declare module "dojo/main.currency" { + var exp: dojo.main.currency + export=exp; +} +declare module "dojo/main.dnd" { + var exp: dojo.main.dnd + export=exp; +} +declare module "dojo/main.doc" { + var exp: dojo.main.doc + export=exp; +} +declare module "dojo/main.gears" { + var exp: dojo.main.gears + export=exp; +} +declare module "dojo/main.global" { + var exp: dojo.main.global + export=exp; +} +declare module "dojo/main.dijit" { + var exp: dojo.main.dijit + export=exp; +} +declare module "dojo/main.io" { + var exp: dojo.main.io + export=exp; +} +declare module "dojo/main.fx" { + var exp: dojo.main.fx + export=exp; +} +declare module "dojo/main.html" { + var exp: dojo.main.html + export=exp; +} +declare module "dojo/main.dojox" { + var exp: dojo.main.dojox + export=exp; +} +declare module "dojo/main.i18n" { + var exp: dojo.main.i18n + export=exp; +} +declare module "dojo/main.scopeMap" { + var exp: dojo.main.scopeMap + export=exp; +} +declare module "dojo/main.regexp" { + var exp: dojo.main.regexp + export=exp; +} +declare module "dojo/main.mouseButtons" { + var exp: dojo.main.mouseButtons + export=exp; +} +declare module "dojo/main.rpc" { + var exp: dojo.main.rpc + export=exp; +} +declare module "dojo/main.number" { + var exp: dojo.main.number_ + export=exp; +} +declare module "dojo/main.keys" { + var exp: dojo.main.keys + export=exp; +} +declare module "dojo/main.tests" { + var exp: dojo.main.tests + export=exp; +} +declare module "dojo/main.version" { + var exp: dojo.main.version + export=exp; +} +declare module "dojo/main.string" { + var exp: dojo.main.string_ + export=exp; +} +declare module "dojo/main.touch" { + var exp: dojo.main.touch + export=exp; +} +declare module "dojo/main.store" { + var exp: dojo.main.store + export=exp; +} +declare module "dojo/main.window" { + var exp: dojo.main.window + export=exp; +} +declare module "dojo/string" { + var exp: dojo.string_ + export=exp; +} +declare module "dojo/text" { + var exp: dojo.text + export=exp; +} +declare module "dojo/topic" { + var exp: dojo.topic + export=exp; +} +declare module "dojo/uacss" { + var exp: dojo.uacss + export=exp; +} +declare module "dojo/window" { + var exp: dojo.window + export=exp; +} +declare module "dojo/touch" { + var exp: dojo.touch + export=exp; +} +declare module "dojo/DeferredList" { + var exp: dojo.DeferredList + export=exp; +} +declare module "dojo/Deferred" { + var exp: dojo.Deferred + export=exp; +} +declare module "dojo/Evented" { + var exp: dojo.Evented + export=exp; +} +declare module "dojo/NodeList" { + var exp: dojo.NodeList + export=exp; +} +declare module "dojo/NodeList._nodeDataCache" { + var exp: dojo.NodeList._nodeDataCache + export=exp; +} +declare module "dojo/Stateful" { + var exp: dojo.Stateful + export=exp; +} +declare module "dojo/_base/declare" { + var exp: dojo._base.declare + export=exp; +} +declare module "dojo/_base/declare.__DeclareCreatedObject" { + var exp: dojo._base.declare.__DeclareCreatedObject + export=exp; +} +declare module "dojo/_base/Deferred" { + var exp: dojo._base.Deferred + export=exp; +} +declare module "dojo/_base/url" { + var exp: dojo._base.url + export=exp; +} +declare module "dojo/_base/url.authority" { + var exp: dojo._base.url.authority + export=exp; +} +declare module "dojo/_base/url.password" { + var exp: dojo._base.url.password + export=exp; +} +declare module "dojo/_base/url.port" { + var exp: dojo._base.url.port + export=exp; +} +declare module "dojo/_base/url.fragment" { + var exp: dojo._base.url.fragment + export=exp; +} +declare module "dojo/_base/url.query" { + var exp: dojo._base.url.query + export=exp; +} +declare module "dojo/_base/url.user" { + var exp: dojo._base.url.user + export=exp; +} +declare module "dojo/_base/url.scheme" { + var exp: dojo._base.url.scheme + export=exp; +} +declare module "dojo/_base/xhr" { + var exp: dojo._base.xhr + export=exp; +} +declare module "dojo/_base/xhr.contentHandlers" { + var exp: dojo._base.xhr.contentHandlers + export=exp; +} +declare module "dojo/_base/browser" { + var exp: dojo._base.browser + export=exp; +} +declare module "dojo/_base/array" { + var exp: dojo._base.array + export=exp; +} +declare module "dojo/_base/connect" { + var exp: dojo._base.connect + export=exp; +} +declare module "dojo/_base/event" { + var exp: dojo._base.event + export=exp; +} +declare module "dojo/_base/html" { + var exp: dojo._base.html + export=exp; +} +declare module "dojo/_base/json" { + var exp: dojo._base.json + export=exp; +} +declare module "dojo/_base/fx" { + var exp: dojo._base.fx + export=exp; +} +declare module "dojo/_base/query" { + var exp: dojo._base.query + export=exp; +} +declare module "dojo/_base/NodeList" { + var exp: dojo._base.NodeList + export=exp; +} +declare module "dojo/_base/sniff" { + var exp: dojo._base.sniff + export=exp; +} +declare module "dojo/_base/lang" { + var exp: dojo._base.lang + export=exp; +} +declare module "dojo/_base/unload" { + var exp: dojo._base.unload + export=exp; +} +declare module "dojo/_base/window" { + var exp: dojo._base.window + export=exp; +} +declare module "dojo/_base/window.doc" { + var exp: dojo._base.window.doc + export=exp; +} +declare module "dojo/_base/window.global" { + var exp: dojo._base.window.global + export=exp; +} +declare module "dojo/_base/kernel" { + var exp: dojo._base.kernel + export=exp; +} +declare module "dojo/_base/kernel.__IoCallbackArgs" { + var exp: dojo._base.kernel.__IoCallbackArgs + export=exp; +} +declare module "dojo/_base/kernel.__IoPublish" { + var exp: dojo._base.kernel.__IoPublish + export=exp; +} +declare module "dojo/_base/kernel.__IoArgs" { + var exp: dojo._base.kernel.__IoArgs + export=exp; +} +declare module "dojo/_base/kernel.__XhrArgs" { + var exp: dojo._base.kernel.__XhrArgs + export=exp; +} +declare module "dojo/_base/kernel.Stateful" { + var exp: dojo._base.kernel.Stateful + export=exp; +} +declare module "dojo/_base/kernel._contentHandlers" { + var exp: dojo._base.kernel._contentHandlers + export=exp; +} +declare module "dojo/_base/kernel._hasResource" { + var exp: dojo._base.kernel._hasResource + export=exp; +} +declare module "dojo/_base/kernel._nodeDataCache" { + var exp: dojo._base.kernel._nodeDataCache + export=exp; +} +declare module "dojo/_base/kernel.back" { + var exp: dojo._base.kernel.back + export=exp; +} +declare module "dojo/_base/kernel.cldr" { + var exp: dojo._base.kernel.cldr + export=exp; +} +declare module "dojo/_base/kernel.colors" { + var exp: dojo._base.kernel.colors + export=exp; +} +declare module "dojo/_base/kernel.config" { + var exp: dojo._base.kernel.config + export=exp; +} +declare module "dojo/_base/kernel.contentHandlers" { + var exp: dojo._base.kernel.contentHandlers + export=exp; +} +declare module "dojo/_base/kernel.dnd" { + var exp: dojo._base.kernel.dnd + export=exp; +} +declare module "dojo/_base/kernel.date" { + var exp: dojo._base.kernel.date + export=exp; +} +declare module "dojo/_base/kernel.doc" { + var exp: dojo._base.kernel.doc + export=exp; +} +declare module "dojo/_base/kernel.data" { + var exp: dojo._base.kernel.data + export=exp; +} +declare module "dojo/_base/kernel.currency" { + var exp: dojo._base.kernel.currency + export=exp; +} +declare module "dojo/_base/kernel.dijit" { + var exp: dojo._base.kernel.dijit + export=exp; +} +declare module "dojo/_base/kernel.global" { + var exp: dojo._base.kernel.global + export=exp; +} +declare module "dojo/_base/kernel.gears" { + var exp: dojo._base.kernel.gears + export=exp; +} +declare module "dojo/_base/kernel.fx" { + var exp: dojo._base.kernel.fx + export=exp; +} +declare module "dojo/_base/kernel.html" { + var exp: dojo._base.kernel.html + export=exp; +} +declare module "dojo/_base/kernel.io" { + var exp: dojo._base.kernel.io + export=exp; +} +declare module "dojo/_base/kernel.dojox" { + var exp: dojo._base.kernel.dojox + export=exp; +} +declare module "dojo/_base/kernel.i18n" { + var exp: dojo._base.kernel.i18n + export=exp; +} +declare module "dojo/_base/kernel.mouseButtons" { + var exp: dojo._base.kernel.mouseButtons + export=exp; +} +declare module "dojo/_base/kernel.rpc" { + var exp: dojo._base.kernel.rpc + export=exp; +} +declare module "dojo/_base/kernel.regexp" { + var exp: dojo._base.kernel.regexp + export=exp; +} +declare module "dojo/_base/kernel.number" { + var exp: dojo._base.kernel.number_ + export=exp; +} +declare module "dojo/_base/kernel.scopeMap" { + var exp: dojo._base.kernel.scopeMap + export=exp; +} +declare module "dojo/_base/kernel.tests" { + var exp: dojo._base.kernel.tests + export=exp; +} +declare module "dojo/_base/kernel.keys" { + var exp: dojo._base.kernel.keys + export=exp; +} +declare module "dojo/_base/kernel.store" { + var exp: dojo._base.kernel.store + export=exp; +} +declare module "dojo/_base/kernel.string" { + var exp: dojo._base.kernel.string_ + export=exp; +} +declare module "dojo/_base/kernel.version" { + var exp: dojo._base.kernel.version + export=exp; +} +declare module "dojo/_base/kernel.touch" { + var exp: dojo._base.kernel.touch + export=exp; +} +declare module "dojo/_base/kernel.window" { + var exp: dojo._base.kernel.window + export=exp; +} +declare module "dojo/_base/config" { + var exp: dojo._base.config + export=exp; +} +declare module "dojo/_base/config.modulePaths" { + var exp: dojo._base.config.modulePaths + export=exp; +} +declare module "dojo/_base/Color" { + var exp: dojo._base.Color + export=exp; +} +declare module "dojo/_base/Color.named" { + var exp: dojo._base.Color.named + export=exp; +} +declare module "dojo/cldr/monetary" { + var exp: dojo.cldr.monetary + export=exp; +} +declare module "dojo/cldr/supplemental" { + var exp: dojo.cldr.supplemental + export=exp; +} +declare module "dojo/data/ItemFileReadStore" { + var exp: dojo.data.ItemFileReadStore + export=exp; +} +declare module "dojo/data/ObjectStore" { + var exp: dojo.data.ObjectStore + export=exp; +} +declare module "dojo/data/ItemFileWriteStore" { + var exp: dojo.data.ItemFileWriteStore + export=exp; +} +declare module "dojo/data/api/Item" { + var exp: dojo.data.api.Item + export=exp; +} +declare module "dojo/data/api/Identity" { + var exp: dojo.data.api.Identity + export=exp; +} +declare module "dojo/data/api/Request" { + var exp: dojo.data.api.Request + export=exp; +} +declare module "dojo/data/api/Notification" { + var exp: dojo.data.api.Notification + export=exp; +} +declare module "dojo/data/api/Read" { + var exp: dojo.data.api.Read + export=exp; +} +declare module "dojo/data/api/Write" { + var exp: dojo.data.api.Write + export=exp; +} +declare module "dojo/data/util/filter" { + var exp: dojo.data.util.filter + export=exp; +} +declare module "dojo/data/util/simpleFetch" { + var exp: dojo.data.util.simpleFetch + export=exp; +} +declare module "dojo/data/util/sorter" { + var exp: dojo.data.util.sorter + export=exp; +} +declare module "dojo/dnd/autoscroll" { + var exp: dojo.dnd.autoscroll + export=exp; +} +declare module "dojo/dnd/autoscroll._validOverflow" { + var exp: dojo.dnd.autoscroll._validOverflow + export=exp; +} +declare module "dojo/dnd/autoscroll._validNodes" { + var exp: dojo.dnd.autoscroll._validNodes + export=exp; +} +declare module "dojo/dnd/common" { + var exp: dojo.dnd.common + export=exp; +} +declare module "dojo/dnd/common._empty" { + var exp: dojo.dnd.common._empty + export=exp; +} +declare module "dojo/dnd/common._defaultCreatorNodes" { + var exp: dojo.dnd.common._defaultCreatorNodes + export=exp; +} +declare module "dojo/dnd/move" { + var exp: dojo.dnd.move + export=exp; +} +declare module "dojo/dnd/move.parentConstrainedMoveable" { + var exp: dojo.dnd.move.parentConstrainedMoveable + export=exp; +} +declare module "dojo/dnd/move.boxConstrainedMoveable" { + var exp: dojo.dnd.move.boxConstrainedMoveable + export=exp; +} +declare module "dojo/dnd/move.constrainedMoveable" { + var exp: dojo.dnd.move.constrainedMoveable + export=exp; +} +declare module "dojo/dnd/Avatar" { + var exp: dojo.dnd.Avatar + export=exp; +} +declare module "dojo/dnd/Manager" { + var exp: dojo.dnd.Manager + export=exp; +} +declare module "dojo/dnd/Container" { + var exp: dojo.dnd.Container + export=exp; +} +declare module "dojo/dnd/Container.__ContainerArgs" { + var exp: dojo.dnd.Container.__ContainerArgs + export=exp; +} +declare module "dojo/dnd/AutoSource" { + var exp: dojo.dnd.AutoSource + export=exp; +} +declare module "dojo/dnd/Mover" { + var exp: dojo.dnd.Mover + export=exp; +} +declare module "dojo/dnd/Moveable" { + var exp: dojo.dnd.Moveable + export=exp; +} +declare module "dojo/dnd/Moveable.__MoveableArgs" { + var exp: dojo.dnd.Moveable.__MoveableArgs + export=exp; +} +declare module "dojo/dnd/Selector" { + var exp: dojo.dnd.Selector + export=exp; +} +declare module "dojo/dnd/TimedMoveable" { + var exp: dojo.dnd.TimedMoveable + export=exp; +} +declare module "dojo/dnd/Target" { + var exp: dojo.dnd.Target + export=exp; +} +declare module "dojo/dnd/Source" { + var exp: dojo.dnd.Source + export=exp; +} +declare module "dojo/errors/create" { + var exp: dojo.errors.create + export=exp; +} +declare module "dojo/errors/CancelError" { + var exp: dojo.errors.CancelError + export=exp; +} +declare module "dojo/errors/RequestError" { + var exp: dojo.errors.RequestError + export=exp; +} +declare module "dojo/errors/RequestTimeoutError" { + var exp: dojo.errors.RequestTimeoutError + export=exp; +} +declare module "dojo/io/iframe" { + var exp: dojo.io.iframe + export=exp; +} +declare module "dojo/io/script" { + var exp: dojo.io.script + export=exp; +} +declare module "dojo/promise/all" { + var exp: dojo.promise.all + export=exp; +} +declare module "dojo/promise/first" { + var exp: dojo.promise.first + export=exp; +} +declare module "dojo/promise/instrumentation" { + var exp: dojo.promise.instrumentation + export=exp; +} +declare module "dojo/promise/tracer" { + var exp: dojo.promise.tracer + export=exp; +} +declare module "dojo/promise/Promise" { + var exp: dojo.promise.Promise + export=exp; +} +declare module "dojo/rpc/JsonpService" { + var exp: dojo.rpc.JsonpService + export=exp; +} +declare module "dojo/rpc/JsonService" { + var exp: dojo.rpc.JsonService + export=exp; +} +declare module "dojo/rpc/RpcService" { + var exp: dojo.rpc.RpcService + export=exp; +} +declare module "dojo/selector/lite" { + var exp: dojo.selector.lite + export=exp; +} +declare module "dojo/selector/acme" { + var exp: dojo.selector.acme + export=exp; +} +declare module "dojo/selector/_loader" { + var exp: dojo.selector._loader + export=exp; +} +declare module "dojo/store/Observable" { + var exp: dojo.store.Observable + export=exp; +} +declare module "dojo/store/Cache" { + var exp: dojo.store.Cache + export=exp; +} +declare module "dojo/store/DataStore" { + var exp: dojo.store.DataStore + export=exp; +} +declare module "dojo/store/Memory" { + var exp: dojo.store.Memory + export=exp; +} +declare module "dojo/store/JsonRest" { + var exp: dojo.store.JsonRest + export=exp; +} +declare module "dojo/store/api/Store" { + var exp: dojo.store.api.Store + export=exp; +} +declare module "dojo/store/api/Store.PutDirectives" { + var exp: dojo.store.api.Store.PutDirectives + export=exp; +} +declare module "dojo/store/api/Store.QueryOptions" { + var exp: dojo.store.api.Store.QueryOptions + export=exp; +} +declare module "dojo/store/api/Store.QueryResults" { + var exp: dojo.store.api.Store.QueryResults + export=exp; +} +declare module "dojo/store/api/Store.SortInformation" { + var exp: dojo.store.api.Store.SortInformation + export=exp; +} +declare module "dojo/store/api/Store.Transaction" { + var exp: dojo.store.api.Store.Transaction + export=exp; +} +declare module "dojo/store/util/QueryResults" { + var exp: dojo.store.util.QueryResults + export=exp; +} +declare module "dojo/store/util/SimpleQueryEngine" { + var exp: dojo.store.util.SimpleQueryEngine + export=exp; +} diff --git a/dojo/dojox.NodeList.d.ts b/dojo/dojox.NodeList.d.ts index 117d70085..6d9101cf3 100644 --- a/dojo/dojox.NodeList.d.ts +++ b/dojo/dojox.NodeList.d.ts @@ -1150,4 +1150,13 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/NodeList/delegate" { + var exp: dojox.NodeList.delegate + export=exp; +} +declare module "dojox/NodeList/delegate._nodeDataCache" { + var exp: dojox.NodeList.delegate._nodeDataCache + export=exp; +} diff --git a/dojo/dojox.analytics.d.ts b/dojo/dojox.analytics.d.ts index 5ef374bb7..516b24a03 100644 --- a/dojo/dojox.analytics.d.ts +++ b/dojo/dojox.analytics.d.ts @@ -75,4 +75,16 @@ declare module dojox { } -} \ No newline at end of file +} +declare module "dojox/analytics" { + var exp: dojox.analytics + export=exp; +} +declare module "dojox/analytics/Urchin" { + var exp: dojox.analytics.Urchin + export=exp; +} +declare module "dojox/analytics/plugins/consoleMessages" { + var exp: dojox.analytics.plugins.consoleMessages + export=exp; +} diff --git a/dojo/dojox.app.d.ts b/dojo/dojox.app.d.ts index 0a8a9fccc..630195531 100644 --- a/dojo/dojox.app.d.ts +++ b/dojo/dojox.app.d.ts @@ -2381,4 +2381,97 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/app/main" { + var exp: dojox.app.main + export=exp; +} +declare module "dojox/app/Controller" { + var exp: dojox.app.Controller + export=exp; +} +declare module "dojox/app/ViewBase" { + var exp: dojox.app.ViewBase + export=exp; +} +declare module "dojox/app/View" { + var exp: dojox.app.View + export=exp; +} +declare module "dojox/app/controllers/BorderLayout" { + var exp: dojox.app.controllers.BorderLayout + export=exp; +} +declare module "dojox/app/controllers/History" { + var exp: dojox.app.controllers.History + export=exp; +} +declare module "dojox/app/controllers/HistoryHash" { + var exp: dojox.app.controllers.HistoryHash + export=exp; +} +declare module "dojox/app/controllers/Layout" { + var exp: dojox.app.controllers.Layout + export=exp; +} +declare module "dojox/app/controllers/LayoutBase" { + var exp: dojox.app.controllers.LayoutBase + export=exp; +} +declare module "dojox/app/controllers/Load" { + var exp: dojox.app.controllers.Load + export=exp; +} +declare module "dojox/app/controllers/Transition" { + var exp: dojox.app.controllers.Transition + export=exp; +} +declare module "dojox/app/module/env" { + var exp: dojox.app.module.env + export=exp; +} +declare module "dojox/app/module/lifecycle" { + var exp: dojox.app.module.lifecycle + export=exp; +} +declare module "dojox/app/utils/mvcModel" { + var exp: dojox.app.utils.mvcModel + export=exp; +} +declare module "dojox/app/utils/nls" { + var exp: dojox.app.utils.nls + export=exp; +} +declare module "dojox/app/utils/model" { + var exp: dojox.app.utils.model + export=exp; +} +declare module "dojox/app/utils/simpleModel" { + var exp: dojox.app.utils.simpleModel + export=exp; +} +declare module "dojox/app/utils/config" { + var exp: dojox.app.utils.config + export=exp; +} +declare module "dojox/app/utils/constraints" { + var exp: dojox.app.utils.constraints + export=exp; +} +declare module "dojox/app/utils/layout" { + var exp: dojox.app.utils.layout + export=exp; +} +declare module "dojox/app/utils/hash" { + var exp: dojox.app.utils.hash + export=exp; +} +declare module "dojox/app/widgets/_ScrollableMixin" { + var exp: dojox.app.widgets._ScrollableMixin + export=exp; +} +declare module "dojox/app/widgets/Container" { + var exp: dojox.app.widgets.Container + export=exp; +} diff --git a/dojo/dojox.atom.d.ts b/dojo/dojox.atom.d.ts index 28ccfd31b..296197d9a 100644 --- a/dojo/dojox.atom.d.ts +++ b/dojo/dojox.atom.d.ts @@ -7224,4 +7224,105 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/atom/io/model" { + var exp: dojox.atom.io.model + export=exp; +} +declare module "dojox/atom/io/model.Category" { + var exp: dojox.atom.io.model.Category + export=exp; +} +declare module "dojox/atom/io/model.Content" { + var exp: dojox.atom.io.model.Content + export=exp; +} +declare module "dojox/atom/io/model.AtomItem" { + var exp: dojox.atom.io.model.AtomItem + export=exp; +} +declare module "dojox/atom/io/model.Generator" { + var exp: dojox.atom.io.model.Generator + export=exp; +} +declare module "dojox/atom/io/model.Entry" { + var exp: dojox.atom.io.model.Entry + export=exp; +} +declare module "dojox/atom/io/model.Collection" { + var exp: dojox.atom.io.model.Collection + export=exp; +} +declare module "dojox/atom/io/model.Feed" { + var exp: dojox.atom.io.model.Feed + export=exp; +} +declare module "dojox/atom/io/model.Link" { + var exp: dojox.atom.io.model.Link + export=exp; +} +declare module "dojox/atom/io/model.Node" { + var exp: dojox.atom.io.model.Node + export=exp; +} +declare module "dojox/atom/io/model.Person" { + var exp: dojox.atom.io.model.Person + export=exp; +} +declare module "dojox/atom/io/model.Service" { + var exp: dojox.atom.io.model.Service + export=exp; +} +declare module "dojox/atom/io/model.Workspace" { + var exp: dojox.atom.io.model.Workspace + export=exp; +} +declare module "dojox/atom/io/model._Constants" { + var exp: dojox.atom.io.model._Constants + export=exp; +} +declare module "dojox/atom/io/model._actions" { + var exp: dojox.atom.io.model._actions + export=exp; +} +declare module "dojox/atom/io/model.util" { + var exp: dojox.atom.io.model.util + export=exp; +} +declare module "dojox/atom/io/Connection" { + var exp: dojox.atom.io.Connection + export=exp; +} +declare module "dojox/atom/widget/FeedViewer" { + var exp: dojox.atom.widget.FeedViewer + export=exp; +} +declare module "dojox/atom/widget/FeedViewer.CategoryIncludeFilter" { + var exp: dojox.atom.widget.FeedViewer.CategoryIncludeFilter + export=exp; +} +declare module "dojox/atom/widget/FeedViewer.AtomEntryCategoryFilter" { + var exp: dojox.atom.widget.FeedViewer.AtomEntryCategoryFilter + export=exp; +} +declare module "dojox/atom/widget/FeedViewer.FeedViewerEntry" { + var exp: dojox.atom.widget.FeedViewer.FeedViewerEntry + export=exp; +} +declare module "dojox/atom/widget/FeedViewer.FeedViewerGrouping" { + var exp: dojox.atom.widget.FeedViewer.FeedViewerGrouping + export=exp; +} +declare module "dojox/atom/widget/FeedEntryViewer" { + var exp: dojox.atom.widget.FeedEntryViewer + export=exp; +} +declare module "dojox/atom/widget/FeedEntryViewer.EntryHeader" { + var exp: dojox.atom.widget.FeedEntryViewer.EntryHeader + export=exp; +} +declare module "dojox/atom/widget/FeedEntryEditor" { + var exp: dojox.atom.widget.FeedEntryEditor + export=exp; +} diff --git a/dojo/dojox.av.d.ts b/dojo/dojox.av.d.ts index 47bf7b9bf..c1def6576 100644 --- a/dojo/dojox.av.d.ts +++ b/dojo/dojox.av.d.ts @@ -5655,4 +5655,37 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/av/_Media" { + var exp: dojox.av._Media + export=exp; +} +declare module "dojox/av/FLAudio" { + var exp: dojox.av.FLAudio + export=exp; +} +declare module "dojox/av/FLVideo" { + var exp: dojox.av.FLVideo + export=exp; +} +declare module "dojox/av/widget/Player" { + var exp: dojox.av.widget.Player + export=exp; +} +declare module "dojox/av/widget/ProgressSlider" { + var exp: dojox.av.widget.ProgressSlider + export=exp; +} +declare module "dojox/av/widget/PlayButton" { + var exp: dojox.av.widget.PlayButton + export=exp; +} +declare module "dojox/av/widget/Status" { + var exp: dojox.av.widget.Status + export=exp; +} +declare module "dojox/av/widget/VolumeButton" { + var exp: dojox.av.widget.VolumeButton + export=exp; +} diff --git a/dojo/dojox.calc.d.ts b/dojo/dojox.calc.d.ts index 4c4e4b293..eb6d7c104 100644 --- a/dojo/dojox.calc.d.ts +++ b/dojo/dojox.calc.d.ts @@ -11252,4 +11252,77 @@ } -} \ No newline at end of file +} + +declare module "dojox/calc/_Executor" { + var exp: dojox.calc._Executor + export=exp; +} +declare module "dojox/calc/_Executor._Executor" { + var exp: dojox.calc._Executor._Executor + export=exp; +} +declare module "dojox/calc/_Executor.FuncGen" { + var exp: dojox.calc._Executor.FuncGen + export=exp; +} +declare module "dojox/calc/_Executor.Grapher" { + var exp: dojox.calc._Executor.Grapher + export=exp; +} +declare module "dojox/calc/FuncGen" { + var exp: dojox.calc.FuncGen + export=exp; +} +declare module "dojox/calc/FuncGen._Executor" { + var exp: dojox.calc.FuncGen._Executor + export=exp; +} +declare module "dojox/calc/FuncGen.FuncGen" { + var exp: dojox.calc.FuncGen.FuncGen + export=exp; +} +declare module "dojox/calc/FuncGen.Grapher" { + var exp: dojox.calc.FuncGen.Grapher + export=exp; +} +declare module "dojox/calc/Grapher" { + var exp: dojox.calc.Grapher + export=exp; +} +declare module "dojox/calc/Grapher._Executor" { + var exp: dojox.calc.Grapher._Executor + export=exp; +} +declare module "dojox/calc/Grapher.FuncGen" { + var exp: dojox.calc.Grapher.FuncGen + export=exp; +} +declare module "dojox/calc/Grapher.Grapher" { + var exp: dojox.calc.Grapher.Grapher + export=exp; +} +declare module "dojox/calc/toFrac" { + var exp: dojox.calc.toFrac + export=exp; +} +declare module "dojox/calc/toFrac._Executor" { + var exp: dojox.calc.toFrac._Executor + export=exp; +} +declare module "dojox/calc/toFrac.FuncGen" { + var exp: dojox.calc.toFrac.FuncGen + export=exp; +} +declare module "dojox/calc/toFrac.Grapher" { + var exp: dojox.calc.toFrac.Grapher + export=exp; +} +declare module "dojox/calc/GraphPro" { + var exp: dojox.calc.GraphPro + export=exp; +} +declare module "dojox/calc/Standard" { + var exp: dojox.calc.Standard + export=exp; +} diff --git a/dojo/dojox.calendar.d.ts b/dojo/dojox.calendar.d.ts index 42bf61575..bf657760d 100644 --- a/dojo/dojox.calendar.d.ts +++ b/dojo/dojox.calendar.d.ts @@ -20921,4 +20921,93 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/calendar/time" { + var exp: dojox.calendar.time + export=exp; +} +declare module "dojox/calendar/_RendererMixin" { + var exp: dojox.calendar._RendererMixin + export=exp; +} +declare module "dojox/calendar/_ScrollBarBase" { + var exp: dojox.calendar._ScrollBarBase + export=exp; +} +declare module "dojox/calendar/ExpandRenderer" { + var exp: dojox.calendar.ExpandRenderer + export=exp; +} +declare module "dojox/calendar/HorizontalRenderer" { + var exp: dojox.calendar.HorizontalRenderer + export=exp; +} +declare module "dojox/calendar/Calendar" { + var exp: dojox.calendar.Calendar + export=exp; +} +declare module "dojox/calendar/Keyboard" { + var exp: dojox.calendar.Keyboard + export=exp; +} +declare module "dojox/calendar/CalendarBase" { + var exp: dojox.calendar.CalendarBase + export=exp; +} +declare module "dojox/calendar/LabelRenderer" { + var exp: dojox.calendar.LabelRenderer + export=exp; +} +declare module "dojox/calendar/MobileHorizontalRenderer" { + var exp: dojox.calendar.MobileHorizontalRenderer + export=exp; +} +declare module "dojox/calendar/MobileVerticalRenderer" { + var exp: dojox.calendar.MobileVerticalRenderer + export=exp; +} +declare module "dojox/calendar/Mouse" { + var exp: dojox.calendar.Mouse + export=exp; +} +declare module "dojox/calendar/MobileCalendar" { + var exp: dojox.calendar.MobileCalendar + export=exp; +} +declare module "dojox/calendar/StoreMixin" { + var exp: dojox.calendar.StoreMixin + export=exp; +} +declare module "dojox/calendar/Touch" { + var exp: dojox.calendar.Touch + export=exp; +} +declare module "dojox/calendar/MatrixView" { + var exp: dojox.calendar.MatrixView + export=exp; +} +declare module "dojox/calendar/VerticalRenderer" { + var exp: dojox.calendar.VerticalRenderer + export=exp; +} +declare module "dojox/calendar/MonthColumnView" { + var exp: dojox.calendar.MonthColumnView + export=exp; +} +declare module "dojox/calendar/SimpleColumnView" { + var exp: dojox.calendar.SimpleColumnView + export=exp; +} +declare module "dojox/calendar/ViewBase" { + var exp: dojox.calendar.ViewBase + export=exp; +} +declare module "dojox/calendar/ColumnView" { + var exp: dojox.calendar.ColumnView + export=exp; +} +declare module "dojox/calendar/ColumnViewSecondarySheet" { + var exp: dojox.calendar.ColumnViewSecondarySheet + export=exp; +} diff --git a/dojo/dojox.charting.d.ts b/dojo/dojox.charting.d.ts index dd234d0d2..52df1314e 100644 --- a/dojo/dojox.charting.d.ts +++ b/dojo/dojox.charting.d.ts @@ -13129,4 +13129,329 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/charting/Chart3D" { + var exp: dojox.charting.Chart3D + export=exp; +} +declare module "dojox/charting/Chart2D" { + var exp: dojox.charting.Chart2D + export=exp; +} +declare module "dojox/charting/DataSeries" { + var exp: dojox.charting.DataSeries + export=exp; +} +declare module "dojox/charting/Chart" { + var exp: dojox.charting.Chart + export=exp; +} +declare module "dojox/charting/DataChart" { + var exp: dojox.charting.DataChart + export=exp; +} +declare module "dojox/charting/Element" { + var exp: dojox.charting.Element + export=exp; +} +declare module "dojox/charting/Series" { + var exp: dojox.charting.Series + export=exp; +} +declare module "dojox/charting/StoreSeries" { + var exp: dojox.charting.StoreSeries + export=exp; +} +declare module "dojox/charting/SimpleTheme" { + var exp: dojox.charting.SimpleTheme + export=exp; +} +declare module "dojox/charting/SimpleTheme.defaultMarkers" { + var exp: dojox.charting.SimpleTheme.defaultMarkers + export=exp; +} +declare module "dojox/charting/SimpleTheme.defaultTheme" { + var exp: dojox.charting.SimpleTheme.defaultTheme + export=exp; +} +declare module "dojox/charting/Theme" { + var exp: dojox.charting.Theme + export=exp; +} +declare module "dojox/charting/Theme.defaultMarkers" { + var exp: dojox.charting.Theme.defaultMarkers + export=exp; +} +declare module "dojox/charting/Theme.defaultTheme" { + var exp: dojox.charting.Theme.defaultTheme + export=exp; +} +declare module "dojox/charting/action2d/Base" { + var exp: dojox.charting.action2d.Base + export=exp; +} +declare module "dojox/charting/action2d/ChartAction" { + var exp: dojox.charting.action2d.ChartAction + export=exp; +} +declare module "dojox/charting/action2d/_IndicatorElement" { + var exp: dojox.charting.action2d._IndicatorElement + export=exp; +} +declare module "dojox/charting/action2d/Highlight" { + var exp: dojox.charting.action2d.Highlight + export=exp; +} +declare module "dojox/charting/action2d/Magnify" { + var exp: dojox.charting.action2d.Magnify + export=exp; +} +declare module "dojox/charting/action2d/MouseZoomAndPan" { + var exp: dojox.charting.action2d.MouseZoomAndPan + export=exp; +} +declare module "dojox/charting/action2d/MouseIndicator" { + var exp: dojox.charting.action2d.MouseIndicator + export=exp; +} +declare module "dojox/charting/action2d/MoveSlice" { + var exp: dojox.charting.action2d.MoveSlice + export=exp; +} +declare module "dojox/charting/action2d/PlotAction" { + var exp: dojox.charting.action2d.PlotAction + export=exp; +} +declare module "dojox/charting/action2d/Tooltip" { + var exp: dojox.charting.action2d.Tooltip + export=exp; +} +declare module "dojox/charting/action2d/Shake" { + var exp: dojox.charting.action2d.Shake + export=exp; +} +declare module "dojox/charting/action2d/TouchZoomAndPan" { + var exp: dojox.charting.action2d.TouchZoomAndPan + export=exp; +} +declare module "dojox/charting/action2d/TouchIndicator" { + var exp: dojox.charting.action2d.TouchIndicator + export=exp; +} +declare module "dojox/charting/axis2d/common" { + var exp: dojox.charting.axis2d.common + export=exp; +} +declare module "dojox/charting/axis2d/common.createText" { + var exp: dojox.charting.axis2d.common.createText + export=exp; +} +declare module "dojox/charting/axis2d/Base" { + var exp: dojox.charting.axis2d.Base + export=exp; +} +declare module "dojox/charting/axis2d/Invisible" { + var exp: dojox.charting.axis2d.Invisible + export=exp; +} +declare module "dojox/charting/axis2d/Default" { + var exp: dojox.charting.axis2d.Default + export=exp; +} +declare module "dojox/charting/bidi/_bidiutils" { + var exp: dojox.charting.bidi._bidiutils + export=exp; +} +declare module "dojox/charting/bidi/Chart" { + var exp: dojox.charting.bidi.Chart + export=exp; +} +declare module "dojox/charting/bidi/Chart3D" { + var exp: dojox.charting.bidi.Chart3D + export=exp; +} +declare module "dojox/charting/bidi/action2d/Tooltip" { + var exp: dojox.charting.bidi.action2d.Tooltip + export=exp; +} +declare module "dojox/charting/bidi/action2d/ZoomAndPan" { + var exp: dojox.charting.bidi.action2d.ZoomAndPan + export=exp; +} +declare module "dojox/charting/bidi/axis2d/Default" { + var exp: dojox.charting.bidi.axis2d.Default + export=exp; +} +declare module "dojox/charting/bidi/widget/Chart" { + var exp: dojox.charting.bidi.widget.Chart + export=exp; +} +declare module "dojox/charting/bidi/widget/Legend" { + var exp: dojox.charting.bidi.widget.Legend + export=exp; +} +declare module "dojox/charting/plot2d/common" { + var exp: dojox.charting.plot2d.common + export=exp; +} +declare module "dojox/charting/plot2d/common.defaultStats" { + var exp: dojox.charting.plot2d.common.defaultStats + export=exp; +} +declare module "dojox/charting/plot2d/commonStacked" { + var exp: dojox.charting.plot2d.commonStacked + export=exp; +} +declare module "dojox/charting/plot2d/_PlotEvents" { + var exp: dojox.charting.plot2d._PlotEvents + export=exp; +} +declare module "dojox/charting/plot2d/Areas" { + var exp: dojox.charting.plot2d.Areas + export=exp; +} +declare module "dojox/charting/plot2d/Bars" { + var exp: dojox.charting.plot2d.Bars + export=exp; +} +declare module "dojox/charting/plot2d/Base" { + var exp: dojox.charting.plot2d.Base + export=exp; +} +declare module "dojox/charting/plot2d/Bubble" { + var exp: dojox.charting.plot2d.Bubble + export=exp; +} +declare module "dojox/charting/plot2d/CartesianBase" { + var exp: dojox.charting.plot2d.CartesianBase + export=exp; +} +declare module "dojox/charting/plot2d/Candlesticks" { + var exp: dojox.charting.plot2d.Candlesticks + export=exp; +} +declare module "dojox/charting/plot2d/ClusteredBars" { + var exp: dojox.charting.plot2d.ClusteredBars + export=exp; +} +declare module "dojox/charting/plot2d/ClusteredColumns" { + var exp: dojox.charting.plot2d.ClusteredColumns + export=exp; +} +declare module "dojox/charting/plot2d/Columns" { + var exp: dojox.charting.plot2d.Columns + export=exp; +} +declare module "dojox/charting/plot2d/Grid" { + var exp: dojox.charting.plot2d.Grid + export=exp; +} +declare module "dojox/charting/plot2d/Default" { + var exp: dojox.charting.plot2d.Default + export=exp; +} +declare module "dojox/charting/plot2d/Indicator" { + var exp: dojox.charting.plot2d.Indicator + export=exp; +} +declare module "dojox/charting/plot2d/Lines" { + var exp: dojox.charting.plot2d.Lines + export=exp; +} +declare module "dojox/charting/plot2d/Markers" { + var exp: dojox.charting.plot2d.Markers + export=exp; +} +declare module "dojox/charting/plot2d/Pie" { + var exp: dojox.charting.plot2d.Pie + export=exp; +} +declare module "dojox/charting/plot2d/MarkersOnly" { + var exp: dojox.charting.plot2d.MarkersOnly + export=exp; +} +declare module "dojox/charting/plot2d/OHLC" { + var exp: dojox.charting.plot2d.OHLC + export=exp; +} +declare module "dojox/charting/plot2d/Scatter" { + var exp: dojox.charting.plot2d.Scatter + export=exp; +} +declare module "dojox/charting/plot2d/Stacked" { + var exp: dojox.charting.plot2d.Stacked + export=exp; +} +declare module "dojox/charting/plot2d/Spider" { + var exp: dojox.charting.plot2d.Spider + export=exp; +} +declare module "dojox/charting/plot2d/StackedAreas" { + var exp: dojox.charting.plot2d.StackedAreas + export=exp; +} +declare module "dojox/charting/plot2d/StackedBars" { + var exp: dojox.charting.plot2d.StackedBars + export=exp; +} +declare module "dojox/charting/plot2d/StackedColumns" { + var exp: dojox.charting.plot2d.StackedColumns + export=exp; +} +declare module "dojox/charting/plot2d/StackedLines" { + var exp: dojox.charting.plot2d.StackedLines + export=exp; +} +declare module "dojox/charting/plot3d/Bars" { + var exp: dojox.charting.plot3d.Bars + export=exp; +} +declare module "dojox/charting/plot3d/Base" { + var exp: dojox.charting.plot3d.Base + export=exp; +} +declare module "dojox/charting/plot3d/Cylinders" { + var exp: dojox.charting.plot3d.Cylinders + export=exp; +} +declare module "dojox/charting/scaler/common" { + var exp: dojox.charting.scaler.common + export=exp; +} +declare module "dojox/charting/scaler/primitive" { + var exp: dojox.charting.scaler.primitive + export=exp; +} +declare module "dojox/charting/scaler/linear" { + var exp: dojox.charting.scaler.linear + export=exp; +} +declare module "dojox/charting/themes/common" { + var exp: dojox.charting.themes.common + export=exp; +} +declare module "dojox/charting/themes/gradientGenerator" { + var exp: dojox.charting.themes.gradientGenerator + export=exp; +} +declare module "dojox/charting/themes/PlotKit/base" { + var exp: dojox.charting.themes.PlotKit.base + export=exp; +} +declare module "dojox/charting/widget/Chart2D" { + var exp: dojox.charting.widget.Chart2D + export=exp; +} +declare module "dojox/charting/widget/Chart" { + var exp: dojox.charting.widget.Chart + export=exp; +} +declare module "dojox/charting/widget/Legend" { + var exp: dojox.charting.widget.Legend + export=exp; +} +declare module "dojox/charting/widget/SelectableLegend" { + var exp: dojox.charting.widget.SelectableLegend + export=exp; +} diff --git a/dojo/dojox.collections.d.ts b/dojo/dojox.collections.d.ts index e9fe32542..aad8f555b 100644 --- a/dojo/dojox.collections.d.ts +++ b/dojo/dojox.collections.d.ts @@ -158,4 +158,41 @@ declare module dojox { interface Stack{(arr?: any[]): void} } -} \ No newline at end of file +} + +declare module "dojox/collections" { + var exp: dojox.collections + export=exp; +} +declare module "dojox/collections/ArrayList" { + var exp: dojox.collections.ArrayList + export=exp; +} +declare module "dojox/collections/BinaryTree" { + var exp: dojox.collections.BinaryTree + export=exp; +} +declare module "dojox/collections/BinaryTree.TraversalMethods" { + var exp: dojox.collections.BinaryTree.TraversalMethods + export=exp; +} +declare module "dojox/collections/Dictionary" { + var exp: dojox.collections.Dictionary + export=exp; +} +declare module "dojox/collections/Queue" { + var exp: dojox.collections.Queue + export=exp; +} +declare module "dojox/collections/Stack" { + var exp: dojox.collections.Stack + export=exp; +} +declare module "dojox/collections/SortedList" { + var exp: dojox.collections.SortedList + export=exp; +} +declare module "dojox/collections/_base" { + var exp: dojox.collections._base + export=exp; +} diff --git a/dojo/dojox.color.d.ts b/dojo/dojox.color.d.ts index f30e2c00b..aa8d53ef4 100644 --- a/dojo/dojox.color.d.ts +++ b/dojo/dojox.color.d.ts @@ -349,4 +349,33 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/color" { + var exp: dojox.color + export=exp; +} +declare module "dojox/color/MeanColorModel" { + var exp: dojox.color.MeanColorModel + export=exp; +} +declare module "dojox/color/NeutralColorModel" { + var exp: dojox.color.NeutralColorModel + export=exp; +} +declare module "dojox/color/SimpleColorModel" { + var exp: dojox.color.SimpleColorModel + export=exp; +} +declare module "dojox/color/Palette" { + var exp: dojox.color.Palette + export=exp; +} +declare module "dojox/color/Palette.generators" { + var exp: dojox.color.Palette.generators + export=exp; +} +declare module "dojox/color/api/ColorModel" { + var exp: dojox.color.api.ColorModel + export=exp; +} diff --git a/dojo/dojox.css3.d.ts b/dojo/dojox.css3.d.ts index 7ef11a070..cf256fd8e 100644 --- a/dojo/dojox.css3.d.ts +++ b/dojo/dojox.css3.d.ts @@ -218,4 +218,29 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/css3/transit" { + var exp: dojox.css3.transit + export=exp; +} +declare module "dojox/css3/transition" { + var exp: dojox.css3.transition + export=exp; +} +declare module "dojox/css3/transition.endState" { + var exp: dojox.css3.transition.endState + export=exp; +} +declare module "dojox/css3/transition.playing" { + var exp: dojox.css3.transition.playing + export=exp; +} +declare module "dojox/css3/transition.startState" { + var exp: dojox.css3.transition.startState + export=exp; +} +declare module "dojox/css3/fx" { + var exp: dojox.css3.fx + export=exp; +} diff --git a/dojo/dojox.data.d.ts b/dojo/dojox.data.d.ts index ab46c4fd7..ed34585fd 100644 --- a/dojo/dojox.data.d.ts +++ b/dojo/dojox.data.d.ts @@ -6597,4 +6597,185 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/data/restListener" { + var exp: dojox.data.restListener + export=exp; +} +declare module "dojox/data/css" { + var exp: dojox.data.css + export=exp; +} +declare module "dojox/data/css.rules" { + var exp: dojox.data.css.rules + export=exp; +} +declare module "dojox/data/dom" { + var exp: dojox.data.dom + export=exp; +} +declare module "dojox/data/GoogleSearchStore" { + var exp: dojox.data.GoogleSearchStore + export=exp; +} +declare module "dojox/data/GoogleSearchStore.ImageSearch" { + var exp: dojox.data.GoogleSearchStore.ImageSearch + export=exp; +} +declare module "dojox/data/GoogleSearchStore.BookSearch" { + var exp: dojox.data.GoogleSearchStore.BookSearch + export=exp; +} +declare module "dojox/data/GoogleSearchStore.LocalSearch" { + var exp: dojox.data.GoogleSearchStore.LocalSearch + export=exp; +} +declare module "dojox/data/GoogleSearchStore.BlogSearch" { + var exp: dojox.data.GoogleSearchStore.BlogSearch + export=exp; +} +declare module "dojox/data/GoogleSearchStore.VideoSearch" { + var exp: dojox.data.GoogleSearchStore.VideoSearch + export=exp; +} +declare module "dojox/data/GoogleSearchStore.Search" { + var exp: dojox.data.GoogleSearchStore.Search + export=exp; +} +declare module "dojox/data/GoogleSearchStore.WebSearch" { + var exp: dojox.data.GoogleSearchStore.WebSearch + export=exp; +} +declare module "dojox/data/GoogleSearchStore.NewsSearch" { + var exp: dojox.data.GoogleSearchStore.NewsSearch + export=exp; +} +declare module "dojox/data/AndOrReadStore" { + var exp: dojox.data.AndOrReadStore + export=exp; +} +declare module "dojox/data/AppStore" { + var exp: dojox.data.AppStore + export=exp; +} +declare module "dojox/data/AndOrWriteStore" { + var exp: dojox.data.AndOrWriteStore + export=exp; +} +declare module "dojox/data/AtomReadStore" { + var exp: dojox.data.AtomReadStore + export=exp; +} +declare module "dojox/data/ClientFilter" { + var exp: dojox.data.ClientFilter + export=exp; +} +declare module "dojox/data/CouchDBRestStore" { + var exp: dojox.data.CouchDBRestStore + export=exp; +} +declare module "dojox/data/CdfStore" { + var exp: dojox.data.CdfStore + export=exp; +} +declare module "dojox/data/CssRuleStore" { + var exp: dojox.data.CssRuleStore + export=exp; +} +declare module "dojox/data/CssClassStore" { + var exp: dojox.data.CssClassStore + export=exp; +} +declare module "dojox/data/CsvStore" { + var exp: dojox.data.CsvStore + export=exp; +} +declare module "dojox/data/FileStore" { + var exp: dojox.data.FileStore + export=exp; +} +declare module "dojox/data/FlickrRestStore" { + var exp: dojox.data.FlickrRestStore + export=exp; +} +declare module "dojox/data/GoogleFeedStore" { + var exp: dojox.data.GoogleFeedStore + export=exp; +} +declare module "dojox/data/FlickrStore" { + var exp: dojox.data.FlickrStore + export=exp; +} +declare module "dojox/data/HtmlStore" { + var exp: dojox.data.HtmlStore + export=exp; +} +declare module "dojox/data/HtmlTableStore" { + var exp: dojox.data.HtmlTableStore + export=exp; +} +declare module "dojox/data/KeyValueStore" { + var exp: dojox.data.KeyValueStore + export=exp; +} +declare module "dojox/data/JsonRestStore" { + var exp: dojox.data.JsonRestStore + export=exp; +} +declare module "dojox/data/JsonQueryRestStore" { + var exp: dojox.data.JsonQueryRestStore + export=exp; +} +declare module "dojox/data/PersevereStore" { + var exp: dojox.data.PersevereStore + export=exp; +} +declare module "dojox/data/OpenSearchStore" { + var exp: dojox.data.OpenSearchStore + export=exp; +} +declare module "dojox/data/PicasaStore" { + var exp: dojox.data.PicasaStore + export=exp; +} +declare module "dojox/data/OpmlStore" { + var exp: dojox.data.OpmlStore + export=exp; +} +declare module "dojox/data/RailsStore" { + var exp: dojox.data.RailsStore + export=exp; +} +declare module "dojox/data/QueryReadStore" { + var exp: dojox.data.QueryReadStore + export=exp; +} +declare module "dojox/data/S3Store" { + var exp: dojox.data.S3Store + export=exp; +} +declare module "dojox/data/SnapLogicStore" { + var exp: dojox.data.SnapLogicStore + export=exp; +} +declare module "dojox/data/XmlItem" { + var exp: dojox.data.XmlItem + export=exp; +} +declare module "dojox/data/ServiceStore" { + var exp: dojox.data.ServiceStore + export=exp; +} +declare module "dojox/data/WikipediaStore" { + var exp: dojox.data.WikipediaStore + export=exp; +} +declare module "dojox/data/XmlStore" { + var exp: dojox.data.XmlStore + export=exp; +} +declare module "dojox/data/util/JsonQuery" { + var exp: dojox.data.util.JsonQuery + export=exp; +} diff --git a/dojo/dojox.date.d.ts b/dojo/dojox.date.d.ts index 80087f30c..d06c2610e 100644 --- a/dojo/dojox.date.d.ts +++ b/dojo/dojox.date.d.ts @@ -1361,4 +1361,81 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/date/buddhist" { + var exp: dojox.date.buddhist + export=exp; +} +declare module "dojox/date/buddhist/Date" { + var exp: dojox.date.buddhist.Date + export=exp; +} +declare module "dojox/date/buddhist/locale" { + var exp: dojox.date.buddhist.locale + export=exp; +} +declare module "dojox/date/hebrew" { + var exp: dojox.date.hebrew + export=exp; +} +declare module "dojox/date/hebrew/Date" { + var exp: dojox.date.hebrew.Date + export=exp; +} +declare module "dojox/date/hebrew/locale" { + var exp: dojox.date.hebrew.locale + export=exp; +} +declare module "dojox/date/hebrew/numerals" { + var exp: dojox.date.hebrew.numerals + export=exp; +} +declare module "dojox/date/islamic" { + var exp: dojox.date.islamic + export=exp; +} +declare module "dojox/date/islamic/Date" { + var exp: dojox.date.islamic.Date + export=exp; +} +declare module "dojox/date/islamic/locale" { + var exp: dojox.date.islamic.locale + export=exp; +} +declare module "dojox/date/persian" { + var exp: dojox.date.persian + export=exp; +} +declare module "dojox/date/persian/Date" { + var exp: dojox.date.persian.Date + export=exp; +} +declare module "dojox/date/persian/locale" { + var exp: dojox.date.persian.locale + export=exp; +} +declare module "dojox/date/umalqura" { + var exp: dojox.date.umalqura + export=exp; +} +declare module "dojox/date/umalqura/Date" { + var exp: dojox.date.umalqura.Date + export=exp; +} +declare module "dojox/date/umalqura/locale" { + var exp: dojox.date.umalqura.locale + export=exp; +} +declare module "dojox/date/php" { + var exp: dojox.date.php + export=exp; +} +declare module "dojox/date/posix" { + var exp: dojox.date.posix + export=exp; +} +declare module "dojox/date/relative" { + var exp: dojox.date.relative + export=exp; +} diff --git a/dojo/dojox.dgauges.d.ts b/dojo/dojox.dgauges.d.ts index 1b4fced88..4b06c89ef 100644 --- a/dojo/dojox.dgauges.d.ts +++ b/dojo/dojox.dgauges.d.ts @@ -21988,4 +21988,165 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/dgauges/_circularUtils" { + var exp: dojox.dgauges._circularUtils + export=exp; +} +declare module "dojox/dgauges/CircularScale" { + var exp: dojox.dgauges.CircularScale + export=exp; +} +declare module "dojox/dgauges/CircularValueIndicator" { + var exp: dojox.dgauges.CircularValueIndicator + export=exp; +} +declare module "dojox/dgauges/CircularGauge" { + var exp: dojox.dgauges.CircularGauge + export=exp; +} +declare module "dojox/dgauges/CircularRangeIndicator" { + var exp: dojox.dgauges.CircularRangeIndicator + export=exp; +} +declare module "dojox/dgauges/IndicatorBase" { + var exp: dojox.dgauges.IndicatorBase + export=exp; +} +declare module "dojox/dgauges/LinearScaler" { + var exp: dojox.dgauges.LinearScaler + export=exp; +} +declare module "dojox/dgauges/LogScaler" { + var exp: dojox.dgauges.LogScaler + export=exp; +} +declare module "dojox/dgauges/MultiLinearScaler" { + var exp: dojox.dgauges.MultiLinearScaler + export=exp; +} +declare module "dojox/dgauges/GaugeBase" { + var exp: dojox.dgauges.GaugeBase + export=exp; +} +declare module "dojox/dgauges/RectangularScale" { + var exp: dojox.dgauges.RectangularScale + export=exp; +} +declare module "dojox/dgauges/RectangularSegmentedRangeIndicator" { + var exp: dojox.dgauges.RectangularSegmentedRangeIndicator + export=exp; +} +declare module "dojox/dgauges/RectangularRangeIndicator" { + var exp: dojox.dgauges.RectangularRangeIndicator + export=exp; +} +declare module "dojox/dgauges/RectangularValueIndicator" { + var exp: dojox.dgauges.RectangularValueIndicator + export=exp; +} +declare module "dojox/dgauges/ScaleBase" { + var exp: dojox.dgauges.ScaleBase + export=exp; +} +declare module "dojox/dgauges/TextIndicator" { + var exp: dojox.dgauges.TextIndicator + export=exp; +} +declare module "dojox/dgauges/ScaleIndicatorBase" { + var exp: dojox.dgauges.ScaleIndicatorBase + export=exp; +} +declare module "dojox/dgauges/RectangularGauge" { + var exp: dojox.dgauges.RectangularGauge + export=exp; +} +declare module "dojox/dgauges/components/utils" { + var exp: dojox.dgauges.components.utils + export=exp; +} +declare module "dojox/dgauges/components/DefaultPropertiesMixin" { + var exp: dojox.dgauges.components.DefaultPropertiesMixin + export=exp; +} +declare module "dojox/dgauges/components/black/CircularLinearGauge" { + var exp: dojox.dgauges.components.black.CircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/black/SemiCircularLinearGauge" { + var exp: dojox.dgauges.components.black.SemiCircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/black/HorizontalLinearGauge" { + var exp: dojox.dgauges.components.black.HorizontalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/black/VerticalLinearGauge" { + var exp: dojox.dgauges.components.black.VerticalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/classic/CircularLinearGauge" { + var exp: dojox.dgauges.components.classic.CircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/classic/HorizontalLinearGauge" { + var exp: dojox.dgauges.components.classic.HorizontalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/classic/VerticalLinearGauge" { + var exp: dojox.dgauges.components.classic.VerticalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/classic/SemiCircularLinearGauge" { + var exp: dojox.dgauges.components.classic.SemiCircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/default/CircularLinearGauge" { + var exp: dojox.dgauges.components.default.CircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/default/HorizontalLinearGauge" { + var exp: dojox.dgauges.components.default.HorizontalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/default/SemiCircularLinearGauge" { + var exp: dojox.dgauges.components.default.SemiCircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/default/VerticalLinearGauge" { + var exp: dojox.dgauges.components.default.VerticalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/green/HorizontalLinearGauge" { + var exp: dojox.dgauges.components.green.HorizontalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/green/CircularLinearGauge" { + var exp: dojox.dgauges.components.green.CircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/green/SemiCircularLinearGauge" { + var exp: dojox.dgauges.components.green.SemiCircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/green/VerticalLinearGauge" { + var exp: dojox.dgauges.components.green.VerticalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/grey/CircularLinearGauge" { + var exp: dojox.dgauges.components.grey.CircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/grey/SemiCircularLinearGauge" { + var exp: dojox.dgauges.components.grey.SemiCircularLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/grey/HorizontalLinearGauge" { + var exp: dojox.dgauges.components.grey.HorizontalLinearGauge + export=exp; +} +declare module "dojox/dgauges/components/grey/VerticalLinearGauge" { + var exp: dojox.dgauges.components.grey.VerticalLinearGauge + export=exp; +} diff --git a/dojo/dojox.dnd.d.ts b/dojo/dojox.dnd.d.ts index b1529428e..d7cfa4c0c 100644 --- a/dojo/dojox.dnd.d.ts +++ b/dojo/dojox.dnd.d.ts @@ -318,4 +318,12 @@ declare module dojox { } } -} \ No newline at end of file +} +declare module "dojox/dnd/BoundingBoxController" { + var exp: dojox.dnd.BoundingBoxController + export=exp; +} +declare module "dojox/dnd/Selector" { + var exp: dojox.dnd.Selector + export=exp; +} diff --git a/dojo/dojox.drawing.d.ts b/dojo/dojox.drawing.d.ts index 00223202d..8e1f1daf0 100644 --- a/dojo/dojox.drawing.d.ts +++ b/dojo/dojox.drawing.d.ts @@ -14195,4 +14195,401 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/drawing" { + var exp: dojox.drawing + export=exp; +} +declare module "dojox/drawing/_base" { + var exp: dojox.drawing._base + export=exp; +} +declare module "dojox/drawing/Drawing" { + var exp: dojox.drawing.Drawing + export=exp; +} +declare module "dojox/drawing/defaults" { + var exp: dojox.drawing.defaults + export=exp; +} +declare module "dojox/drawing/defaults.arrows" { + var exp: dojox.drawing.defaults.arrows + export=exp; +} +declare module "dojox/drawing/defaults.disabled" { + var exp: dojox.drawing.defaults.disabled + export=exp; +} +declare module "dojox/drawing/defaults.anchors" { + var exp: dojox.drawing.defaults.anchors + export=exp; +} +declare module "dojox/drawing/defaults.highlighted" { + var exp: dojox.drawing.defaults.highlighted + export=exp; +} +declare module "dojox/drawing/defaults.button" { + var exp: dojox.drawing.defaults.button + export=exp; +} +declare module "dojox/drawing/defaults.hitSelected" { + var exp: dojox.drawing.defaults.hitSelected + export=exp; +} +declare module "dojox/drawing/defaults.hitNorm" { + var exp: dojox.drawing.defaults.hitNorm + export=exp; +} +declare module "dojox/drawing/defaults.hitHighlighted" { + var exp: dojox.drawing.defaults.hitHighlighted + export=exp; +} +declare module "dojox/drawing/defaults.selected" { + var exp: dojox.drawing.defaults.selected + export=exp; +} +declare module "dojox/drawing/defaults.norm" { + var exp: dojox.drawing.defaults.norm + export=exp; +} +declare module "dojox/drawing/defaults.textMode" { + var exp: dojox.drawing.defaults.textMode + export=exp; +} +declare module "dojox/drawing/defaults.textDisabled" { + var exp: dojox.drawing.defaults.textDisabled + export=exp; +} +declare module "dojox/drawing/defaults.text" { + var exp: dojox.drawing.defaults.text + export=exp; +} +declare module "dojox/drawing/annotations/Label" { + var exp: dojox.drawing.annotations.Label + export=exp; +} +declare module "dojox/drawing/annotations/Label.Label" { + var exp: dojox.drawing.annotations.Label.Label + export=exp; +} +declare module "dojox/drawing/annotations/Angle" { + var exp: dojox.drawing.annotations.Angle + export=exp; +} +declare module "dojox/drawing/annotations/BoxShadow" { + var exp: dojox.drawing.annotations.BoxShadow + export=exp; +} +declare module "dojox/drawing/annotations/Arrow" { + var exp: dojox.drawing.annotations.Arrow + export=exp; +} +declare module "dojox/drawing/library/icons" { + var exp: dojox.drawing.library.icons + export=exp; +} +declare module "dojox/drawing/library/icons.ellipse" { + var exp: dojox.drawing.library.icons.ellipse + export=exp; +} +declare module "dojox/drawing/library/icons.arrow" { + var exp: dojox.drawing.library.icons.arrow + export=exp; +} +declare module "dojox/drawing/library/icons.axes" { + var exp: dojox.drawing.library.icons.axes + export=exp; +} +declare module "dojox/drawing/library/icons.pan" { + var exp: dojox.drawing.library.icons.pan + export=exp; +} +declare module "dojox/drawing/library/icons.line" { + var exp: dojox.drawing.library.icons.line + export=exp; +} +declare module "dojox/drawing/library/icons.path" { + var exp: dojox.drawing.library.icons.path + export=exp; +} +declare module "dojox/drawing/library/icons.equation" { + var exp: dojox.drawing.library.icons.equation + export=exp; +} +declare module "dojox/drawing/library/icons.iconize" { + var exp: dojox.drawing.library.icons.iconize + export=exp; +} +declare module "dojox/drawing/library/icons.pencil" { + var exp: dojox.drawing.library.icons.pencil + export=exp; +} +declare module "dojox/drawing/library/icons.plus" { + var exp: dojox.drawing.library.icons.plus + export=exp; +} +declare module "dojox/drawing/library/icons.triangle" { + var exp: dojox.drawing.library.icons.triangle + export=exp; +} +declare module "dojox/drawing/library/icons.vector" { + var exp: dojox.drawing.library.icons.vector + export=exp; +} +declare module "dojox/drawing/library/icons.rect" { + var exp: dojox.drawing.library.icons.rect + export=exp; +} +declare module "dojox/drawing/library/icons.zoom100" { + var exp: dojox.drawing.library.icons.zoom100 + export=exp; +} +declare module "dojox/drawing/library/icons.textBlock" { + var exp: dojox.drawing.library.icons.textBlock + export=exp; +} +declare module "dojox/drawing/library/icons.zoomIn" { + var exp: dojox.drawing.library.icons.zoomIn + export=exp; +} +declare module "dojox/drawing/library/icons.zoomOut" { + var exp: dojox.drawing.library.icons.zoomOut + export=exp; +} +declare module "dojox/drawing/library/greek" { + var exp: dojox.drawing.library.greek + export=exp; +} +declare module "dojox/drawing/manager/_registry" { + var exp: dojox.drawing.manager._registry + export=exp; +} +declare module "dojox/drawing/manager/keys" { + var exp: dojox.drawing.manager.keys + export=exp; +} +declare module "dojox/drawing/manager/Anchors" { + var exp: dojox.drawing.manager.Anchors + export=exp; +} +declare module "dojox/drawing/manager/Canvas" { + var exp: dojox.drawing.manager.Canvas + export=exp; +} +declare module "dojox/drawing/manager/StencilUI" { + var exp: dojox.drawing.manager.StencilUI + export=exp; +} +declare module "dojox/drawing/manager/Undo" { + var exp: dojox.drawing.manager.Undo + export=exp; +} +declare module "dojox/drawing/manager/Mouse" { + var exp: dojox.drawing.manager.Mouse + export=exp; +} +declare module "dojox/drawing/manager/Stencil" { + var exp: dojox.drawing.manager.Stencil + export=exp; +} +declare module "dojox/drawing/plugins/_Plugin" { + var exp: dojox.drawing.plugins._Plugin + export=exp; +} +declare module "dojox/drawing/plugins/drawing/Grid" { + var exp: dojox.drawing.plugins.drawing.Grid + export=exp; +} +declare module "dojox/drawing/plugins/drawing/GreekPalette" { + var exp: dojox.drawing.plugins.drawing.GreekPalette + export=exp; +} +declare module "dojox/drawing/plugins/tools/Zoom" { + var exp: dojox.drawing.plugins.tools.Zoom + export=exp; +} +declare module "dojox/drawing/plugins/tools/Zoom.Zoom100" { + var exp: dojox.drawing.plugins.tools.Zoom.Zoom100 + export=exp; +} +declare module "dojox/drawing/plugins/tools/Zoom.ZoomOut" { + var exp: dojox.drawing.plugins.tools.Zoom.ZoomOut + export=exp; +} +declare module "dojox/drawing/plugins/tools/Zoom.ZoomIn" { + var exp: dojox.drawing.plugins.tools.Zoom.ZoomIn + export=exp; +} +declare module "dojox/drawing/plugins/tools/Iconize" { + var exp: dojox.drawing.plugins.tools.Iconize + export=exp; +} +declare module "dojox/drawing/plugins/tools/Iconize.setup" { + var exp: dojox.drawing.plugins.tools.Iconize.setup + export=exp; +} +declare module "dojox/drawing/plugins/tools/Pan" { + var exp: dojox.drawing.plugins.tools.Pan + export=exp; +} +declare module "dojox/drawing/plugins/tools/Pan.setup" { + var exp: dojox.drawing.plugins.tools.Pan.setup + export=exp; +} +declare module "dojox/drawing/stencil/_Base" { + var exp: dojox.drawing.stencil._Base + export=exp; +} +declare module "dojox/drawing/stencil/Line" { + var exp: dojox.drawing.stencil.Line + export=exp; +} +declare module "dojox/drawing/stencil/Ellipse" { + var exp: dojox.drawing.stencil.Ellipse + export=exp; +} +declare module "dojox/drawing/stencil/Path" { + var exp: dojox.drawing.stencil.Path + export=exp; +} +declare module "dojox/drawing/stencil/Rect" { + var exp: dojox.drawing.stencil.Rect + export=exp; +} +declare module "dojox/drawing/stencil/Image" { + var exp: dojox.drawing.stencil.Image + export=exp; +} +declare module "dojox/drawing/stencil/Text" { + var exp: dojox.drawing.stencil.Text + export=exp; +} +declare module "dojox/drawing/tools/Arrow" { + var exp: dojox.drawing.tools.Arrow + export=exp; +} +declare module "dojox/drawing/tools/Arrow.setup" { + var exp: dojox.drawing.tools.Arrow.setup + export=exp; +} +declare module "dojox/drawing/tools/Ellipse" { + var exp: dojox.drawing.tools.Ellipse + export=exp; +} +declare module "dojox/drawing/tools/Ellipse.setup" { + var exp: dojox.drawing.tools.Ellipse.setup + export=exp; +} +declare module "dojox/drawing/tools/Pencil" { + var exp: dojox.drawing.tools.Pencil + export=exp; +} +declare module "dojox/drawing/tools/Pencil.setup" { + var exp: dojox.drawing.tools.Pencil.setup + export=exp; +} +declare module "dojox/drawing/tools/Rect" { + var exp: dojox.drawing.tools.Rect + export=exp; +} +declare module "dojox/drawing/tools/Rect.setup" { + var exp: dojox.drawing.tools.Rect.setup + export=exp; +} +declare module "dojox/drawing/tools/Path" { + var exp: dojox.drawing.tools.Path + export=exp; +} +declare module "dojox/drawing/tools/Path.setup" { + var exp: dojox.drawing.tools.Path.setup + export=exp; +} +declare module "dojox/drawing/tools/Line" { + var exp: dojox.drawing.tools.Line + export=exp; +} +declare module "dojox/drawing/tools/Line.setup" { + var exp: dojox.drawing.tools.Line.setup + export=exp; +} +declare module "dojox/drawing/tools/TextBlock" { + var exp: dojox.drawing.tools.TextBlock + export=exp; +} +declare module "dojox/drawing/tools/TextBlock.setup" { + var exp: dojox.drawing.tools.TextBlock.setup + export=exp; +} +declare module "dojox/drawing/tools/custom/Axes" { + var exp: dojox.drawing.tools.custom.Axes + export=exp; +} +declare module "dojox/drawing/tools/custom/Axes.setup" { + var exp: dojox.drawing.tools.custom.Axes.setup + export=exp; +} +declare module "dojox/drawing/tools/custom/Vector" { + var exp: dojox.drawing.tools.custom.Vector + export=exp; +} +declare module "dojox/drawing/tools/custom/Vector.setup" { + var exp: dojox.drawing.tools.custom.Vector.setup + export=exp; +} +declare module "dojox/drawing/tools/custom/Equation" { + var exp: dojox.drawing.tools.custom.Equation + export=exp; +} +declare module "dojox/drawing/tools/custom/Equation.setup" { + var exp: dojox.drawing.tools.custom.Equation.setup + export=exp; +} +declare module "dojox/drawing/ui/Button" { + var exp: dojox.drawing.ui.Button + export=exp; +} +declare module "dojox/drawing/ui/Toolbar" { + var exp: dojox.drawing.ui.Toolbar + export=exp; +} +declare module "dojox/drawing/ui/Tooltip" { + var exp: dojox.drawing.ui.Tooltip + export=exp; +} +declare module "dojox/drawing/ui/dom/Toolbar" { + var exp: dojox.drawing.ui.dom.Toolbar + export=exp; +} +declare module "dojox/drawing/ui/dom/Pan" { + var exp: dojox.drawing.ui.dom.Pan + export=exp; +} +declare module "dojox/drawing/ui/dom/Pan.setup" { + var exp: dojox.drawing.ui.dom.Pan.setup + export=exp; +} +declare module "dojox/drawing/ui/dom/Zoom" { + var exp: dojox.drawing.ui.dom.Zoom + export=exp; +} +declare module "dojox/drawing/util/positioning" { + var exp: dojox.drawing.util.positioning + export=exp; +} +declare module "dojox/drawing/util/oo" { + var exp: dojox.drawing.util.oo + export=exp; +} +declare module "dojox/drawing/util/typeset" { + var exp: dojox.drawing.util.typeset + export=exp; +} +declare module "dojox/drawing/util/common" { + var exp: dojox.drawing.util.common + export=exp; +} +declare module "dojox/drawing/util/common.objects" { + var exp: dojox.drawing.util.common.objects + export=exp; +} diff --git a/dojo/dojox.dtl.d.ts b/dojo/dojox.dtl.d.ts index eed075b22..0d12a452f 100644 --- a/dojo/dojox.dtl.d.ts +++ b/dojo/dojox.dtl.d.ts @@ -4047,4 +4047,213 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/dtl" { + var exp: dojox.dtl + export=exp; +} +declare module "dojox/dtl/_Templated" { + var exp: dojox.dtl._Templated + export=exp; +} +declare module "dojox/dtl/Context" { + var exp: dojox.dtl.Context + export=exp; +} +declare module "dojox/dtl/_DomTemplated" { + var exp: dojox.dtl._DomTemplated + export=exp; +} +declare module "dojox/dtl/DomInline" { + var exp: dojox.dtl.DomInline + export=exp; +} +declare module "dojox/dtl/Inline" { + var exp: dojox.dtl.Inline + export=exp; +} +declare module "dojox/dtl/_base" { + var exp: dojox.dtl._base + export=exp; +} +declare module "dojox/dtl/_base._base" { + var exp: dojox.dtl._base._base + export=exp; +} +declare module "dojox/dtl/_base.BOOLS" { + var exp: dojox.dtl._base.BOOLS + export=exp; +} +declare module "dojox/dtl/_base.data" { + var exp: dojox.dtl._base.data + export=exp; +} +declare module "dojox/dtl/_base.date" { + var exp: dojox.dtl._base.date + export=exp; +} +declare module "dojox/dtl/_base.dates" { + var exp: dojox.dtl._base.dates + export=exp; +} +declare module "dojox/dtl/_base.dijit" { + var exp: dojox.dtl._base.dijit + export=exp; +} +declare module "dojox/dtl/_base.html" { + var exp: dojox.dtl._base.html + export=exp; +} +declare module "dojox/dtl/_base.htmlstrings" { + var exp: dojox.dtl._base.htmlstrings + export=exp; +} +declare module "dojox/dtl/_base.dom" { + var exp: dojox.dtl._base.dom + export=exp; +} +declare module "dojox/dtl/_base.integers" { + var exp: dojox.dtl._base.integers + export=exp; +} +declare module "dojox/dtl/_base.logic" { + var exp: dojox.dtl._base.logic + export=exp; +} +declare module "dojox/dtl/_base.loader" { + var exp: dojox.dtl._base.loader + export=exp; +} +declare module "dojox/dtl/_base.loop" { + var exp: dojox.dtl._base.loop + export=exp; +} +declare module "dojox/dtl/_base.misc" { + var exp: dojox.dtl._base.misc + export=exp; +} +declare module "dojox/dtl/_base.objects" { + var exp: dojox.dtl._base.objects + export=exp; +} +declare module "dojox/dtl/_base.strings" { + var exp: dojox.dtl._base.strings + export=exp; +} +declare module "dojox/dtl/_base.register" { + var exp: dojox.dtl._base.register + export=exp; +} +declare module "dojox/dtl/_base.text" { + var exp: dojox.dtl._base.text + export=exp; +} +declare module "dojox/dtl/dom" { + var exp: dojox.dtl.dom + export=exp; +} +declare module "dojox/dtl/dom._uppers" { + var exp: dojox.dtl.dom._uppers + export=exp; +} +declare module "dojox/dtl/dom._attributes" { + var exp: dojox.dtl.dom._attributes + export=exp; +} +declare module "dojox/dtl/contrib/data" { + var exp: dojox.dtl.contrib.data + export=exp; +} +declare module "dojox/dtl/contrib/objects" { + var exp: dojox.dtl.contrib.objects + export=exp; +} +declare module "dojox/dtl/contrib/dom" { + var exp: dojox.dtl.contrib.dom + export=exp; +} +declare module "dojox/dtl/contrib/dijit" { + var exp: dojox.dtl.contrib.dijit + export=exp; +} +declare module "dojox/dtl/ext-dojo/NodeList" { + var exp: dojox.dtl.ext_dojo.NodeList + export=exp; +} +declare module "dojox/dtl/ext-dojo/NodeList._nodeDataCache" { + var exp: dojox.dtl.ext_dojo.NodeList._nodeDataCache + export=exp; +} +declare module "dojox/dtl/filter/dates" { + var exp: dojox.dtl.filter.dates + export=exp; +} +declare module "dojox/dtl/filter/htmlstrings" { + var exp: dojox.dtl.filter.htmlstrings + export=exp; +} +declare module "dojox/dtl/filter/integers" { + var exp: dojox.dtl.filter.integers + export=exp; +} +declare module "dojox/dtl/filter/logic" { + var exp: dojox.dtl.filter.logic + export=exp; +} +declare module "dojox/dtl/filter/misc" { + var exp: dojox.dtl.filter.misc + export=exp; +} +declare module "dojox/dtl/filter/misc._phone2numeric" { + var exp: dojox.dtl.filter.misc._phone2numeric + export=exp; +} +declare module "dojox/dtl/filter/lists" { + var exp: dojox.dtl.filter.lists + export=exp; +} +declare module "dojox/dtl/filter/strings" { + var exp: dojox.dtl.filter.strings + export=exp; +} +declare module "dojox/dtl/filter/strings._strings" { + var exp: dojox.dtl.filter.strings._strings + export=exp; +} +declare module "dojox/dtl/filter/strings._truncate_singlets" { + var exp: dojox.dtl.filter.strings._truncate_singlets + export=exp; +} +declare module "dojox/dtl/render/html" { + var exp: dojox.dtl.render.html + export=exp; +} +declare module "dojox/dtl/render/dom" { + var exp: dojox.dtl.render.dom + export=exp; +} +declare module "dojox/dtl/tag/date" { + var exp: dojox.dtl.tag.date + export=exp; +} +declare module "dojox/dtl/tag/loader" { + var exp: dojox.dtl.tag.loader + export=exp; +} +declare module "dojox/dtl/tag/logic" { + var exp: dojox.dtl.tag.logic + export=exp; +} +declare module "dojox/dtl/tag/loop" { + var exp: dojox.dtl.tag.loop + export=exp; +} +declare module "dojox/dtl/tag/misc" { + var exp: dojox.dtl.tag.misc + export=exp; +} +declare module "dojox/dtl/utils/date" { + var exp: dojox.dtl.utils.date + export=exp; +} diff --git a/dojo/dojox.editor.d.ts b/dojo/dojox.editor.d.ts index 8711378be..6cabae980 100644 --- a/dojo/dojox.editor.d.ts +++ b/dojo/dojox.editor.d.ts @@ -15302,4 +15302,173 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/editor/plugins/_SpellCheckParser" { + var exp: dojox.editor.plugins._SpellCheckParser + export=exp; +} +declare module "dojox/editor/plugins/AutoSave" { + var exp: dojox.editor.plugins.AutoSave + export=exp; +} +declare module "dojox/editor/plugins/AutoSave._AutoSaveSettingDialog" { + var exp: dojox.editor.plugins.AutoSave._AutoSaveSettingDialog + export=exp; +} +declare module "dojox/editor/plugins/Blockquote" { + var exp: dojox.editor.plugins.Blockquote + export=exp; +} +declare module "dojox/editor/plugins/AutoUrlLink" { + var exp: dojox.editor.plugins.AutoUrlLink + export=exp; +} +declare module "dojox/editor/plugins/Breadcrumb" { + var exp: dojox.editor.plugins.Breadcrumb + export=exp; +} +declare module "dojox/editor/plugins/Breadcrumb._BreadcrumbMenuTitle" { + var exp: dojox.editor.plugins.Breadcrumb._BreadcrumbMenuTitle + export=exp; +} +declare module "dojox/editor/plugins/CollapsibleToolbar" { + var exp: dojox.editor.plugins.CollapsibleToolbar + export=exp; +} +declare module "dojox/editor/plugins/CollapsibleToolbar._CollapsibleToolbarButton" { + var exp: dojox.editor.plugins.CollapsibleToolbar._CollapsibleToolbarButton + export=exp; +} +declare module "dojox/editor/plugins/_SmileyPalette" { + var exp: dojox.editor.plugins._SmileyPalette + export=exp; +} +declare module "dojox/editor/plugins/_SmileyPalette.Emoticon" { + var exp: dojox.editor.plugins._SmileyPalette.Emoticon + export=exp; +} +declare module "dojox/editor/plugins/InsertAnchor" { + var exp: dojox.editor.plugins.InsertAnchor + export=exp; +} +declare module "dojox/editor/plugins/NormalizeIndentOutdent" { + var exp: dojox.editor.plugins.NormalizeIndentOutdent + export=exp; +} +declare module "dojox/editor/plugins/FindReplace" { + var exp: dojox.editor.plugins.FindReplace + export=exp; +} +declare module "dojox/editor/plugins/FindReplace._FindReplaceCloseBox" { + var exp: dojox.editor.plugins.FindReplace._FindReplaceCloseBox + export=exp; +} +declare module "dojox/editor/plugins/FindReplace._FindReplaceCheckBox" { + var exp: dojox.editor.plugins.FindReplace._FindReplaceCheckBox + export=exp; +} +declare module "dojox/editor/plugins/FindReplace._FindReplaceTextBox" { + var exp: dojox.editor.plugins.FindReplace._FindReplaceTextBox + export=exp; +} +declare module "dojox/editor/plugins/FindReplace._FindReplaceToolbar" { + var exp: dojox.editor.plugins.FindReplace._FindReplaceToolbar + export=exp; +} +declare module "dojox/editor/plugins/InsertEntity" { + var exp: dojox.editor.plugins.InsertEntity + export=exp; +} +declare module "dojox/editor/plugins/PasteFromWord" { + var exp: dojox.editor.plugins.PasteFromWord + export=exp; +} +declare module "dojox/editor/plugins/PageBreak" { + var exp: dojox.editor.plugins.PageBreak + export=exp; +} +declare module "dojox/editor/plugins/Preview" { + var exp: dojox.editor.plugins.Preview + export=exp; +} +declare module "dojox/editor/plugins/PrettyPrint" { + var exp: dojox.editor.plugins.PrettyPrint + export=exp; +} +declare module "dojox/editor/plugins/ResizeTableColumn" { + var exp: dojox.editor.plugins.ResizeTableColumn + export=exp; +} +declare module "dojox/editor/plugins/NormalizeStyle" { + var exp: dojox.editor.plugins.NormalizeStyle + export=exp; +} +declare module "dojox/editor/plugins/EntityPalette" { + var exp: dojox.editor.plugins.EntityPalette + export=exp; +} +declare module "dojox/editor/plugins/EntityPalette.LatinEntity" { + var exp: dojox.editor.plugins.EntityPalette.LatinEntity + export=exp; +} +declare module "dojox/editor/plugins/Save" { + var exp: dojox.editor.plugins.Save + export=exp; +} +declare module "dojox/editor/plugins/SafePaste" { + var exp: dojox.editor.plugins.SafePaste + export=exp; +} +declare module "dojox/editor/plugins/ShowBlockNodes" { + var exp: dojox.editor.plugins.ShowBlockNodes + export=exp; +} +declare module "dojox/editor/plugins/LocalImage" { + var exp: dojox.editor.plugins.LocalImage + export=exp; +} +declare module "dojox/editor/plugins/Smiley" { + var exp: dojox.editor.plugins.Smiley + export=exp; +} +declare module "dojox/editor/plugins/TextColor" { + var exp: dojox.editor.plugins.TextColor + export=exp; +} +declare module "dojox/editor/plugins/TextColor._TextColorDropDown" { + var exp: dojox.editor.plugins.TextColor._TextColorDropDown + export=exp; +} +declare module "dojox/editor/plugins/StatusBar" { + var exp: dojox.editor.plugins.StatusBar + export=exp; +} +declare module "dojox/editor/plugins/StatusBar._StatusBar" { + var exp: dojox.editor.plugins.StatusBar._StatusBar + export=exp; +} +declare module "dojox/editor/plugins/SpellCheck" { + var exp: dojox.editor.plugins.SpellCheck + export=exp; +} +declare module "dojox/editor/plugins/SpellCheck._SpellCheckScriptMultiPart" { + var exp: dojox.editor.plugins.SpellCheck._SpellCheckScriptMultiPart + export=exp; +} +declare module "dojox/editor/plugins/SpellCheck._SpellCheckControl" { + var exp: dojox.editor.plugins.SpellCheck._SpellCheckControl + export=exp; +} +declare module "dojox/editor/plugins/TablePlugins" { + var exp: dojox.editor.plugins.TablePlugins + export=exp; +} +declare module "dojox/editor/plugins/UploadImage" { + var exp: dojox.editor.plugins.UploadImage + export=exp; +} +declare module "dojox/editor/plugins/ToolbarLineBreak" { + var exp: dojox.editor.plugins.ToolbarLineBreak + export=exp; +} diff --git a/dojo/dojox.embed.d.ts b/dojo/dojox.embed.d.ts index 5990b0073..91e37c882 100644 --- a/dojo/dojox.embed.d.ts +++ b/dojo/dojox.embed.d.ts @@ -1009,4 +1009,20 @@ declare module dojox { serialize(n: String, o: Object): any; } } -} \ No newline at end of file +} +declare module "dojox/embed/Flash" { + var exp: dojox.embed.Flash + export=exp; +} +declare module "dojox/embed/Quicktime" { + var exp: dojox.embed.Quicktime + export=exp; +} +declare module "dojox/embed/flashVars" { + var exp: dojox.embed.flashVars + export=exp; +} +declare module "dojox/embed/Object" { + var exp: dojox.embed.Object + export=exp; +} diff --git a/dojo/dojox.encoding.d.ts b/dojo/dojox.encoding.d.ts index 0202fb237..c0bce15a8 100644 --- a/dojo/dojox.encoding.d.ts +++ b/dojo/dojox.encoding.d.ts @@ -584,4 +584,93 @@ declare module dojox { -} \ No newline at end of file +} + +declare module "dojox/encoding/_base" { + var exp: dojox.encoding._base + export=exp; +} +declare module "dojox/encoding/ascii85" { + var exp: dojox.encoding.ascii85 + export=exp; +} +declare module "dojox/encoding/base64" { + var exp: dojox.encoding.base64 + export=exp; +} +declare module "dojox/encoding/bits" { + var exp: dojox.encoding.bits + export=exp; +} +declare module "dojox/encoding/easy64" { + var exp: dojox.encoding.easy64 + export=exp; +} +declare module "dojox/encoding/compression/splay" { + var exp: dojox.encoding.compression.splay + export=exp; +} +declare module "dojox/encoding/compression/lzw" { + var exp: dojox.encoding.compression.lzw + export=exp; +} +declare module "dojox/encoding/crypto/_base" { + var exp: dojox.encoding.crypto._base + export=exp; +} +declare module "dojox/encoding/crypto/_base.RSAKey" { + var exp: dojox.encoding.crypto._base.RSAKey + export=exp; +} +declare module "dojox/encoding/crypto/_base.cipherModes" { + var exp: dojox.encoding.crypto._base.cipherModes + export=exp; +} +declare module "dojox/encoding/crypto/_base.outputTypes" { + var exp: dojox.encoding.crypto._base.outputTypes + export=exp; +} +declare module "dojox/encoding/crypto/RSAKey" { + var exp: dojox.encoding.crypto.RSAKey + export=exp; +} +declare module "dojox/encoding/crypto/RSAKey-ext" { + var exp: dojox.encoding.crypto.RSAKey_ext + export=exp; +} +declare module "dojox/encoding/digests/MD5" { + var exp: dojox.encoding.digests.MD5 + export=exp; +} +declare module "dojox/encoding/digests/SHA1" { + var exp: dojox.encoding.digests.SHA1 + export=exp; +} +declare module "dojox/encoding/digests/SHA224" { + var exp: dojox.encoding.digests.SHA224 + export=exp; +} +declare module "dojox/encoding/digests/SHA512" { + var exp: dojox.encoding.digests.SHA512 + export=exp; +} +declare module "dojox/encoding/digests/SHA256" { + var exp: dojox.encoding.digests.SHA256 + export=exp; +} +declare module "dojox/encoding/digests/SHA384" { + var exp: dojox.encoding.digests.SHA384 + export=exp; +} +declare module "dojox/encoding/digests/_base" { + var exp: dojox.encoding.digests._base + export=exp; +} +declare module "dojox/encoding/digests/_base.outputTypes" { + var exp: dojox.encoding.digests._base.outputTypes + export=exp; +} +declare module "dojox/encoding/digests/_sha-64" { + var exp: dojox.encoding.digests._sha_64 + export=exp; +} diff --git a/dojo/dojox.flash.d.ts b/dojo/dojox.flash.d.ts index 99eeb6bd6..68b375188 100644 --- a/dojo/dojox.flash.d.ts +++ b/dojo/dojox.flash.d.ts @@ -21,4 +21,9 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/flash" { + var exp: dojox.flash + export=exp; +} diff --git a/dojo/dojox.form.d.ts b/dojo/dojox.form.d.ts index c1776c4f7..dfb2299df 100644 --- a/dojo/dojox.form.d.ts +++ b/dojo/dojox.form.d.ts @@ -29056,4 +29056,177 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/form/_HasDropDown" { + var exp: dojox.form._HasDropDown + export=exp; +} +declare module "dojox/form/DropDownStack" { + var exp: dojox.form.DropDownStack + export=exp; +} +declare module "dojox/form/RadioStack" { + var exp: dojox.form.RadioStack + export=exp; +} +declare module "dojox/form/_SelectStackMixin" { + var exp: dojox.form._SelectStackMixin + export=exp; +} +declare module "dojox/form/BusyButton" { + var exp: dojox.form.BusyButton + export=exp; +} +declare module "dojox/form/_FormSelectWidget" { + var exp: dojox.form._FormSelectWidget + export=exp; +} +declare module "dojox/form/_FormSelectWidget.__SelectOption" { + var exp: dojox.form._FormSelectWidget.__SelectOption + export=exp; +} +declare module "dojox/form/CheckedMultiSelect" { + var exp: dojox.form.CheckedMultiSelect + export=exp; +} +declare module "dojox/form/DayTextBox" { + var exp: dojox.form.DayTextBox + export=exp; +} +declare module "dojox/form/DropDownSelect" { + var exp: dojox.form.DropDownSelect + export=exp; +} +declare module "dojox/form/DropDownSelect._Menu" { + var exp: dojox.form.DropDownSelect._Menu + export=exp; +} +declare module "dojox/form/FileInput" { + var exp: dojox.form.FileInput + export=exp; +} +declare module "dojox/form/DateTextBox" { + var exp: dojox.form.DateTextBox + export=exp; +} +declare module "dojox/form/FileInputBlind" { + var exp: dojox.form.FileInputBlind + export=exp; +} +declare module "dojox/form/FileInputAuto" { + var exp: dojox.form.FileInputAuto + export=exp; +} +declare module "dojox/form/FileUploader" { + var exp: dojox.form.FileUploader + export=exp; +} +declare module "dojox/form/Manager" { + var exp: dojox.form.Manager + export=exp; +} +declare module "dojox/form/FilePickerTextBox" { + var exp: dojox.form.FilePickerTextBox + export=exp; +} +declare module "dojox/form/RangeSlider" { + var exp: dojox.form.RangeSlider + export=exp; +} +declare module "dojox/form/ListInput" { + var exp: dojox.form.ListInput + export=exp; +} +declare module "dojox/form/PasswordValidator" { + var exp: dojox.form.PasswordValidator + export=exp; +} +declare module "dojox/form/Rating" { + var exp: dojox.form.Rating + export=exp; +} +declare module "dojox/form/MonthTextBox" { + var exp: dojox.form.MonthTextBox + export=exp; +} +declare module "dojox/form/MultiComboBox" { + var exp: dojox.form.MultiComboBox + export=exp; +} +declare module "dojox/form/TimeSpinner" { + var exp: dojox.form.TimeSpinner + export=exp; +} +declare module "dojox/form/TriStateCheckBox" { + var exp: dojox.form.TriStateCheckBox + export=exp; +} +declare module "dojox/form/Uploader" { + var exp: dojox.form.Uploader + export=exp; +} +declare module "dojox/form/YearTextBox" { + var exp: dojox.form.YearTextBox + export=exp; +} +declare module "dojox/form/manager/_ClassMixin" { + var exp: dojox.form.manager._ClassMixin + export=exp; +} +declare module "dojox/form/manager/_DisplayMixin" { + var exp: dojox.form.manager._DisplayMixin + export=exp; +} +declare module "dojox/form/manager/_EnableMixin" { + var exp: dojox.form.manager._EnableMixin + export=exp; +} +declare module "dojox/form/manager/_FormMixin" { + var exp: dojox.form.manager._FormMixin + export=exp; +} +declare module "dojox/form/manager/_Mixin" { + var exp: dojox.form.manager._Mixin + export=exp; +} +declare module "dojox/form/manager/_NodeMixin" { + var exp: dojox.form.manager._NodeMixin + export=exp; +} +declare module "dojox/form/manager/_ValueMixin" { + var exp: dojox.form.manager._ValueMixin + export=exp; +} +declare module "dojox/form/uploader/_HTML5" { + var exp: dojox.form.uploader._HTML5 + export=exp; +} +declare module "dojox/form/uploader/_Flash" { + var exp: dojox.form.uploader._Flash + export=exp; +} +declare module "dojox/form/uploader/_IFrame" { + var exp: dojox.form.uploader._IFrame + export=exp; +} +declare module "dojox/form/uploader/_Base" { + var exp: dojox.form.uploader._Base + export=exp; +} +declare module "dojox/form/uploader/FileList" { + var exp: dojox.form.uploader.FileList + export=exp; +} +declare module "dojox/form/uploader/plugins/Flash" { + var exp: dojox.form.uploader.plugins.Flash + export=exp; +} +declare module "dojox/form/uploader/plugins/HTML5" { + var exp: dojox.form.uploader.plugins.HTML5 + export=exp; +} +declare module "dojox/form/uploader/plugins/IFrame" { + var exp: dojox.form.uploader.plugins.IFrame + export=exp; +} diff --git a/dojo/dojox.fx.d.ts b/dojo/dojox.fx.d.ts index fdd4bec63..dce9d82c1 100644 --- a/dojo/dojox.fx.d.ts +++ b/dojo/dojox.fx.d.ts @@ -2015,4 +2015,69 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/fx" { + var exp: dojox.fx + export=exp; +} +declare module "dojox/fx/Shadow" { + var exp: dojox.fx.Shadow + export=exp; +} +declare module "dojox/fx/_core" { + var exp: dojox.fx._core + export=exp; +} +declare module "dojox/fx/scroll" { + var exp: dojox.fx.scroll + export=exp; +} +declare module "dojox/fx/_arg" { + var exp: dojox.fx._arg + export=exp; +} +declare module "dojox/fx/easing" { + var exp: dojox.fx.easing + export=exp; +} +declare module "dojox/fx/_base" { + var exp: dojox.fx._base + export=exp; +} +declare module "dojox/fx/flip" { + var exp: dojox.fx.flip + export=exp; +} +declare module "dojox/fx/style" { + var exp: dojox.fx.style + export=exp; +} +declare module "dojox/fx/text" { + var exp: dojox.fx.text + export=exp; +} +declare module "dojox/fx/split" { + var exp: dojox.fx.split + export=exp; +} +declare module "dojox/fx/Timeline" { + var exp: dojox.fx.Timeline + export=exp; +} +declare module "dojox/fx/ext-dojo/reverse" { + var exp: dojox.fx.ext_dojo.reverse + export=exp; +} +declare module "dojox/fx/ext-dojo/complex" { + var exp: dojox.fx.ext_dojo.complex + export=exp; +} +declare module "dojox/fx/ext-dojo/NodeList" { + var exp: dojox.fx.ext_dojo.NodeList + export=exp; +} +declare module "dojox/fx/ext-dojo/NodeList-style" { + var exp: dojox.fx.ext_dojo.NodeList_style + export=exp; +} diff --git a/dojo/dojox.gantt.d.ts b/dojo/dojox.gantt.d.ts index 325833b76..7e21c82a9 100644 --- a/dojo/dojox.gantt.d.ts +++ b/dojo/dojox.gantt.d.ts @@ -1080,4 +1080,37 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/gantt/contextMenuTab" { + var exp: dojox.gantt.contextMenuTab + export=exp; +} +declare module "dojox/gantt/GanttProjectControl" { + var exp: dojox.gantt.GanttProjectControl + export=exp; +} +declare module "dojox/gantt/GanttProjectItem" { + var exp: dojox.gantt.GanttProjectItem + export=exp; +} +declare module "dojox/gantt/GanttResourceItem" { + var exp: dojox.gantt.GanttResourceItem + export=exp; +} +declare module "dojox/gantt/GanttChart" { + var exp: dojox.gantt.GanttChart + export=exp; +} +declare module "dojox/gantt/GanttTaskControl" { + var exp: dojox.gantt.GanttTaskControl + export=exp; +} +declare module "dojox/gantt/TabMenu" { + var exp: dojox.gantt.TabMenu + export=exp; +} +declare module "dojox/gantt/GanttTaskItem" { + var exp: dojox.gantt.GanttTaskItem + export=exp; +} diff --git a/dojo/dojox.gauges.d.ts b/dojo/dojox.gauges.d.ts index 771de41f8..4dab9054c 100644 --- a/dojo/dojox.gauges.d.ts +++ b/dojo/dojox.gauges.d.ts @@ -21551,4 +21551,89 @@ declare module dojox { onValueChanged(): void; } } -} \ No newline at end of file +} + +declare module "dojox/gauges/_Indicator" { + var exp: dojox.gauges._Indicator + export=exp; +} +declare module "dojox/gauges/_Gauge" { + var exp: dojox.gauges._Gauge + export=exp; +} +declare module "dojox/gauges/AnalogArrowIndicator" { + var exp: dojox.gauges.AnalogArrowIndicator + export=exp; +} +declare module "dojox/gauges/AnalogCircleIndicator" { + var exp: dojox.gauges.AnalogCircleIndicator + export=exp; +} +declare module "dojox/gauges/AnalogArcIndicator" { + var exp: dojox.gauges.AnalogArcIndicator + export=exp; +} +declare module "dojox/gauges/AnalogGauge" { + var exp: dojox.gauges.AnalogGauge + export=exp; +} +declare module "dojox/gauges/AnalogIndicatorBase" { + var exp: dojox.gauges.AnalogIndicatorBase + export=exp; +} +declare module "dojox/gauges/AnalogLineIndicator" { + var exp: dojox.gauges.AnalogLineIndicator + export=exp; +} +declare module "dojox/gauges/BarCircleIndicator" { + var exp: dojox.gauges.BarCircleIndicator + export=exp; +} +declare module "dojox/gauges/AnalogNeedleIndicator" { + var exp: dojox.gauges.AnalogNeedleIndicator + export=exp; +} +declare module "dojox/gauges/BarGauge" { + var exp: dojox.gauges.BarGauge + export=exp; +} +declare module "dojox/gauges/BarLineIndicator" { + var exp: dojox.gauges.BarLineIndicator + export=exp; +} +declare module "dojox/gauges/BarIndicator" { + var exp: dojox.gauges.BarIndicator + export=exp; +} +declare module "dojox/gauges/GlossyCircularGaugeNeedle" { + var exp: dojox.gauges.GlossyCircularGaugeNeedle + export=exp; +} +declare module "dojox/gauges/GlossyHorizontalGaugeMarker" { + var exp: dojox.gauges.GlossyHorizontalGaugeMarker + export=exp; +} +declare module "dojox/gauges/GlossyCircularGauge" { + var exp: dojox.gauges.GlossyCircularGauge + export=exp; +} +declare module "dojox/gauges/Range" { + var exp: dojox.gauges.Range + export=exp; +} +declare module "dojox/gauges/GlossyCircularGaugeBase" { + var exp: dojox.gauges.GlossyCircularGaugeBase + export=exp; +} +declare module "dojox/gauges/GlossyHorizontalGauge" { + var exp: dojox.gauges.GlossyHorizontalGauge + export=exp; +} +declare module "dojox/gauges/GlossySemiCircularGauge" { + var exp: dojox.gauges.GlossySemiCircularGauge + export=exp; +} +declare module "dojox/gauges/TextIndicator" { + var exp: dojox.gauges.TextIndicator + export=exp; +} diff --git a/dojo/dojox.geo.d.ts b/dojo/dojox.geo.d.ts index 9f3b570f3..7eedb2cf0 100644 --- a/dojo/dojox.geo.d.ts +++ b/dojo/dojox.geo.d.ts @@ -4721,4 +4721,177 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/geo/charting/_base" { + var exp: dojox.geo.charting._base + export=exp; +} +declare module "dojox/geo/charting/_Marker" { + var exp: dojox.geo.charting._Marker + export=exp; +} +declare module "dojox/geo/charting/Feature" { + var exp: dojox.geo.charting.Feature + export=exp; +} +declare module "dojox/geo/charting/KeyboardInteractionSupport" { + var exp: dojox.geo.charting.KeyboardInteractionSupport + export=exp; +} +declare module "dojox/geo/charting/MouseInteractionSupport" { + var exp: dojox.geo.charting.MouseInteractionSupport + export=exp; +} +declare module "dojox/geo/charting/TouchInteractionSupport" { + var exp: dojox.geo.charting.TouchInteractionSupport + export=exp; +} +declare module "dojox/geo/charting/Map" { + var exp: dojox.geo.charting.Map + export=exp; +} +declare module "dojox/geo/charting/widget/Legend" { + var exp: dojox.geo.charting.widget.Legend + export=exp; +} +declare module "dojox/geo/charting/widget/Map" { + var exp: dojox.geo.charting.widget.Map + export=exp; +} +declare module "dojox/geo/openlayers/_base" { + var exp: dojox.geo.openlayers._base + export=exp; +} +declare module "dojox/geo/openlayers/_base.Geometry" { + var exp: dojox.geo.openlayers._base.Geometry + export=exp; +} +declare module "dojox/geo/openlayers/_base.Collection" { + var exp: dojox.geo.openlayers._base.Collection + export=exp; +} +declare module "dojox/geo/openlayers/_base.Feature" { + var exp: dojox.geo.openlayers._base.Feature + export=exp; +} +declare module "dojox/geo/openlayers/_base.JsonImport" { + var exp: dojox.geo.openlayers._base.JsonImport + export=exp; +} +declare module "dojox/geo/openlayers/_base.GfxLayer" { + var exp: dojox.geo.openlayers._base.GfxLayer + export=exp; +} +declare module "dojox/geo/openlayers/_base.LineString" { + var exp: dojox.geo.openlayers._base.LineString + export=exp; +} +declare module "dojox/geo/openlayers/_base.Layer" { + var exp: dojox.geo.openlayers._base.Layer + export=exp; +} +declare module "dojox/geo/openlayers/_base.GeometryFeature" { + var exp: dojox.geo.openlayers._base.GeometryFeature + export=exp; +} +declare module "dojox/geo/openlayers/_base.Point" { + var exp: dojox.geo.openlayers._base.Point + export=exp; +} +declare module "dojox/geo/openlayers/_base.Map" { + var exp: dojox.geo.openlayers._base.Map + export=exp; +} +declare module "dojox/geo/openlayers/_base.TouchInteractionSupport" { + var exp: dojox.geo.openlayers._base.TouchInteractionSupport + export=exp; +} +declare module "dojox/geo/openlayers/_base.WidgetFeature" { + var exp: dojox.geo.openlayers._base.WidgetFeature + export=exp; +} +declare module "dojox/geo/openlayers/_base.__JsonImportArgs" { + var exp: dojox.geo.openlayers._base.__JsonImportArgs + export=exp; +} +declare module "dojox/geo/openlayers/_base.__WidgetFeatureArgs" { + var exp: dojox.geo.openlayers._base.__WidgetFeatureArgs + export=exp; +} +declare module "dojox/geo/openlayers/_base.__MapArgs" { + var exp: dojox.geo.openlayers._base.__MapArgs + export=exp; +} +declare module "dojox/geo/openlayers/_base.BaseLayerType" { + var exp: dojox.geo.openlayers._base.BaseLayerType + export=exp; +} +declare module "dojox/geo/openlayers/_base.GreatCircle" { + var exp: dojox.geo.openlayers._base.GreatCircle + export=exp; +} +declare module "dojox/geo/openlayers/_base.widget" { + var exp: dojox.geo.openlayers._base.widget + export=exp; +} +declare module "dojox/geo/openlayers/GreatCircle" { + var exp: dojox.geo.openlayers.GreatCircle + export=exp; +} +declare module "dojox/geo/openlayers/Patch" { + var exp: dojox.geo.openlayers.Patch + export=exp; +} +declare module "dojox/geo/openlayers/Collection" { + var exp: dojox.geo.openlayers.Collection + export=exp; +} +declare module "dojox/geo/openlayers/Feature" { + var exp: dojox.geo.openlayers.Feature + export=exp; +} +declare module "dojox/geo/openlayers/Geometry" { + var exp: dojox.geo.openlayers.Geometry + export=exp; +} +declare module "dojox/geo/openlayers/GfxLayer" { + var exp: dojox.geo.openlayers.GfxLayer + export=exp; +} +declare module "dojox/geo/openlayers/JsonImport" { + var exp: dojox.geo.openlayers.JsonImport + export=exp; +} +declare module "dojox/geo/openlayers/Layer" { + var exp: dojox.geo.openlayers.Layer + export=exp; +} +declare module "dojox/geo/openlayers/LineString" { + var exp: dojox.geo.openlayers.LineString + export=exp; +} +declare module "dojox/geo/openlayers/GeometryFeature" { + var exp: dojox.geo.openlayers.GeometryFeature + export=exp; +} +declare module "dojox/geo/openlayers/Point" { + var exp: dojox.geo.openlayers.Point + export=exp; +} +declare module "dojox/geo/openlayers/WidgetFeature" { + var exp: dojox.geo.openlayers.WidgetFeature + export=exp; +} +declare module "dojox/geo/openlayers/TouchInteractionSupport" { + var exp: dojox.geo.openlayers.TouchInteractionSupport + export=exp; +} +declare module "dojox/geo/openlayers/Map" { + var exp: dojox.geo.openlayers.Map + export=exp; +} +declare module "dojox/geo/openlayers/widget/Map" { + var exp: dojox.geo.openlayers.widget.Map + export=exp; +} diff --git a/dojo/dojox.gesture.d.ts b/dojo/dojox.gesture.d.ts index e4a8c38d7..e9d89357f 100644 --- a/dojo/dojox.gesture.d.ts +++ b/dojo/dojox.gesture.d.ts @@ -98,4 +98,10 @@ declare module dojox { } } -} \ No newline at end of file +} + + +declare module "dojox/gesture/Base" { + var exp: dojox.gesture.Base + export=exp; +} diff --git a/dojo/dojox.gfx.d.ts b/dojo/dojox.gfx.d.ts index 252575b3d..d2a36416a 100644 --- a/dojo/dojox.gfx.d.ts +++ b/dojo/dojox.gfx.d.ts @@ -11804,4 +11804,392 @@ declare module dojox { } -} \ No newline at end of file +} +declare module "dojox/gfx" { + var exp: dojox.gfx + export=exp; +} +declare module "dojox/gfx.__MoveableCtorArgs" { + var exp: dojox.gfx.__MoveableCtorArgs + export=exp; +} +declare module "dojox/gfx.Circle" { + var exp: dojox.gfx.Circle + export=exp; +} +declare module "dojox/gfx.Ellipse" { + var exp: dojox.gfx.Ellipse + export=exp; +} +declare module "dojox/gfx/path" { + var exp: dojox.gfx.path + export=exp; +} +declare module "dojox/gfx/Mover" { + var exp: dojox.gfx.Mover + export=exp; +} +declare module "dojox/gfx/Moveable" { + var exp: dojox.gfx.Moveable + export=exp; +} +declare module "dojox/gfx.Line" { + var exp: dojox.gfx.Line + export=exp; +} +declare module "dojox/gfx.Point" { + var exp: dojox.gfx.Point + export=exp; +} +declare module "dojox/gfx.Group" { + var exp: dojox.gfx.Group + export=exp; +} +declare module "dojox/gfx.Polyline" { + var exp: dojox.gfx.Polyline + export=exp; +} +declare module "dojox/gfx.Rect" { + var exp: dojox.gfx.Rect + export=exp; +} +declare module "dojox/gfx.Rectangle" { + var exp: dojox.gfx.Rectangle + export=exp; +} +declare module "dojox/gfx.Surface" { + var exp: dojox.gfx.Surface + export=exp; +} +declare module "dojox/gfx.TextPath" { + var exp: dojox.gfx.TextPath + export=exp; +} +declare module "dojox/gfx.Text" { + var exp: dojox.gfx.Text + export=exp; +} +declare module "dojox/gfx.VectorFont" { + var exp: dojox.gfx.VectorFont + export=exp; +} +declare module "dojox/gfx/VectorText" { + var exp: dojox.gfx.VectorText + export=exp; +} +declare module "dojox/gfx/decompose" { + var exp: dojox.gfx.decompose + export=exp; +} +declare module "dojox/gfx._vectorFontCache" { + var exp: dojox.gfx._vectorFontCache + export=exp; +} +declare module "dojox/gfx._svgFontCache" { + var exp: dojox.gfx._svgFontCache + export=exp; +} +declare module "dojox/gfx/arc" { + var exp: dojox.gfx.arc + export=exp; +} +declare module "dojox/gfx/bezierutils" { + var exp: dojox.gfx.bezierutils + export=exp; +} +declare module "dojox/gfx/_base" { + var exp: dojox.gfx._base + export=exp; +} +declare module "dojox/gfx/_gfxBidiSupport" { + var exp: dojox.gfx._gfxBidiSupport + export=exp; +} +declare module "dojox/gfx/canvas" { + var exp: dojox.gfx.canvas + export=exp; +} +declare module "dojox/gfx/canvasWithEvents" { + var exp: dojox.gfx.canvasWithEvents + export=exp; +} +declare module "dojox/gfx.defaultCircle" { + var exp: dojox.gfx.defaultCircle + export=exp; +} +declare module "dojox/gfx/canvasext" { + var exp: dojox.gfx.canvasext + export=exp; +} +declare module "dojox/gfx.defaultImage" { + var exp: dojox.gfx.defaultImage + export=exp; +} +declare module "dojox/gfx.defaultLine" { + var exp: dojox.gfx.defaultLine + export=exp; +} +declare module "dojox/gfx/canvas_attach" { + var exp: dojox.gfx.canvas_attach + export=exp; +} +declare module "dojox/gfx.defaultLinearGradient" { + var exp: dojox.gfx.defaultLinearGradient + export=exp; +} +declare module "dojox/gfx.defaultEllipse" { + var exp: dojox.gfx.defaultEllipse + export=exp; +} +declare module "dojox/gfx.defaultFont" { + var exp: dojox.gfx.defaultFont + export=exp; +} +declare module "dojox/gfx.defaultPath" { + var exp: dojox.gfx.defaultPath + export=exp; +} +declare module "dojox/gfx.defaultPattern" { + var exp: dojox.gfx.defaultPattern + export=exp; +} +declare module "dojox/gfx.defaultRadialGradient" { + var exp: dojox.gfx.defaultRadialGradient + export=exp; +} +declare module "dojox/gfx.defaultRect" { + var exp: dojox.gfx.defaultRect + export=exp; +} +declare module "dojox/gfx.defaultPolyline" { + var exp: dojox.gfx.defaultPolyline + export=exp; +} +declare module "dojox/gfx.defaultStroke" { + var exp: dojox.gfx.defaultStroke + export=exp; +} +declare module "dojox/gfx.defaultText" { + var exp: dojox.gfx.defaultText + export=exp; +} +declare module "dojox/gfx.Fill" { + var exp: dojox.gfx.Fill + export=exp; +} +declare module "dojox/gfx.defaultVectorFont" { + var exp: dojox.gfx.defaultVectorFont + export=exp; +} +declare module "dojox/gfx.defaultVectorText" { + var exp: dojox.gfx.defaultVectorText + export=exp; +} +declare module "dojox/gfx.defaultTextPath" { + var exp: dojox.gfx.defaultTextPath + export=exp; +} +declare module "dojox/gfx/fx" { + var exp: dojox.gfx.fx + export=exp; +} +declare module "dojox/gfx/gradient" { + var exp: dojox.gfx.gradient + export=exp; +} +declare module "dojox/gfx.Font" { + var exp: dojox.gfx.Font + export=exp; +} +declare module "dojox/gfx/gradutils" { + var exp: dojox.gfx.gradutils + export=exp; +} +declare module "dojox/gfx.LinearGradient" { + var exp: dojox.gfx.LinearGradient + export=exp; +} +declare module "dojox/gfx/move" { + var exp: dojox.gfx.move + export=exp; +} +declare module "dojox/gfx/matrix" { + var exp: dojox.gfx.matrix + export=exp; +} +declare module "dojox/gfx.Pattern" { + var exp: dojox.gfx.Pattern + export=exp; +} +declare module "dojox/gfx.RadialGradient" { + var exp: dojox.gfx.RadialGradient + export=exp; +} +declare module "dojox/gfx/shape" { + var exp: dojox.gfx.shape + export=exp; +} +declare module "dojox/gfx/silverlight" { + var exp: dojox.gfx.silverlight + export=exp; +} +declare module "dojox/gfx.Stroke" { + var exp: dojox.gfx.Stroke + export=exp; +} +declare module "dojox/gfx/silverlight_attach" { + var exp: dojox.gfx.silverlight_attach + export=exp; +} +declare module "dojox/gfx/svgext" { + var exp: dojox.gfx.svgext + export=exp; +} +declare module "dojox/gfx/svg" { + var exp: dojox.gfx.svg + export=exp; +} +declare module "dojox/gfx.vectorFontFitting" { + var exp: dojox.gfx.vectorFontFitting + export=exp; +} +declare module "dojox/gfx/utils" { + var exp: dojox.gfx.utils + export=exp; +} +declare module "dojox/gfx/vml" { + var exp: dojox.gfx.vml + export=exp; +} +declare module "dojox/gfx/filters" { + var exp: dojox.gfx.filters + export=exp; +} +declare module "dojox/gfx/registry" { + var exp: dojox.gfx.registry + export=exp; +} +declare module "dojox/gfx/renderer" { + var exp: dojox.gfx.renderer + export=exp; +} +declare module "dojox/gfx/svg_attach" { + var exp: dojox.gfx.svg_attach + export=exp; +} +declare module "dojox/gfx/svg_attach.Ellipse" { + var exp: dojox.gfx.svg_attach.Ellipse + export=exp; +} +declare module "dojox/gfx/svg_attach.Group" { + var exp: dojox.gfx.svg_attach.Group + export=exp; +} +declare module "dojox/gfx/svg_attach.Circle" { + var exp: dojox.gfx.svg_attach.Circle + export=exp; +} +declare module "dojox/gfx/svg_attach.Line" { + var exp: dojox.gfx.svg_attach.Line + export=exp; +} +declare module "dojox/gfx/svg_attach.Image" { + var exp: dojox.gfx.svg_attach.Image + export=exp; +} +declare module "dojox/gfx/svg_attach.Path" { + var exp: dojox.gfx.svg_attach.Path + export=exp; +} +declare module "dojox/gfx/svg_attach.Polyline" { + var exp: dojox.gfx.svg_attach.Polyline + export=exp; +} +declare module "dojox/gfx/svg_attach.Surface" { + var exp: dojox.gfx.svg_attach.Surface + export=exp; +} +declare module "dojox/gfx/svg_attach.Shape" { + var exp: dojox.gfx.svg_attach.Shape + export=exp; +} +declare module "dojox/gfx/svg_attach.Rect" { + var exp: dojox.gfx.svg_attach.Rect + export=exp; +} +declare module "dojox/gfx/svg_attach.Text" { + var exp: dojox.gfx.svg_attach.Text + export=exp; +} +declare module "dojox/gfx/svg_attach.TextPath" { + var exp: dojox.gfx.svg_attach.TextPath + export=exp; +} +declare module "dojox/gfx/svg_attach.dasharray" { + var exp: dojox.gfx.svg_attach.dasharray + export=exp; +} +declare module "dojox/gfx/svg_attach.xmlns" { + var exp: dojox.gfx.svg_attach.xmlns + export=exp; +} +declare module "dojox/gfx/vml_attach" { + var exp: dojox.gfx.vml_attach + export=exp; +} +declare module "dojox/gfx/vml_attach.Circle" { + var exp: dojox.gfx.vml_attach.Circle + export=exp; +} +declare module "dojox/gfx/vml_attach.Group" { + var exp: dojox.gfx.vml_attach.Group + export=exp; +} +declare module "dojox/gfx/vml_attach.Ellipse" { + var exp: dojox.gfx.vml_attach.Ellipse + export=exp; +} +declare module "dojox/gfx/vml_attach.Image" { + var exp: dojox.gfx.vml_attach.Image + export=exp; +} +declare module "dojox/gfx/vml_attach.Line" { + var exp: dojox.gfx.vml_attach.Line + export=exp; +} +declare module "dojox/gfx/vml_attach.Polyline" { + var exp: dojox.gfx.vml_attach.Polyline + export=exp; +} +declare module "dojox/gfx/vml_attach.Surface" { + var exp: dojox.gfx.vml_attach.Surface + export=exp; +} +declare module "dojox/gfx/vml_attach.Rect" { + var exp: dojox.gfx.vml_attach.Rect + export=exp; +} +declare module "dojox/gfx/vml_attach.Path" { + var exp: dojox.gfx.vml_attach.Path + export=exp; +} +declare module "dojox/gfx/vml_attach.Shape" { + var exp: dojox.gfx.vml_attach.Shape + export=exp; +} +declare module "dojox/gfx/vml_attach.Text" { + var exp: dojox.gfx.vml_attach.Text + export=exp; +} +declare module "dojox/gfx/vml_attach.TextPath" { + var exp: dojox.gfx.vml_attach.TextPath + export=exp; +} +declare module "dojox/gfx/vml_attach._bool" { + var exp: dojox.gfx.vml_attach._bool + export=exp; +} +declare module "dojox/gfx/vml_attach.text_alignment" { + var exp: dojox.gfx.vml_attach.text_alignment + export=exp; +} diff --git a/dojo/dojox.gfx3d.d.ts b/dojo/dojox.gfx3d.d.ts index 1b8eb7871..a86d62fe8 100644 --- a/dojo/dojox.gfx3d.d.ts +++ b/dojo/dojox.gfx3d.d.ts @@ -3234,4 +3234,157 @@ declare module dojox { } -} \ No newline at end of file +} +declare module "dojox/gfx3d" { + var exp: dojox.gfx3d + export=exp; +} +declare module "dojox/gfx3d/object" { + var exp: dojox.gfx3d.object + export=exp; +} +declare module "dojox/gfx3d/gradient" { + var exp: dojox.gfx3d.gradient + export=exp; +} +declare module "dojox/gfx3d/_base" { + var exp: dojox.gfx3d._base + export=exp; +} +declare module "dojox/gfx3d/_base.Cube" { + var exp: dojox.gfx3d._base.Cube + export=exp; +} +declare module "dojox/gfx3d/_base.Cylinder" { + var exp: dojox.gfx3d._base.Cylinder + export=exp; +} +declare module "dojox/gfx3d/_base.Edges" { + var exp: dojox.gfx3d._base.Edges + export=exp; +} +declare module "dojox/gfx3d/_base.Polygon" { + var exp: dojox.gfx3d._base.Polygon + export=exp; +} +declare module "dojox/gfx3d/_base.Orbit" { + var exp: dojox.gfx3d._base.Orbit + export=exp; +} +declare module "dojox/gfx3d/_base.Object" { + var exp: dojox.gfx3d._base.Object + export=exp; +} +declare module "dojox/gfx3d/_base.Path3d" { + var exp: dojox.gfx3d._base.Path3d + export=exp; +} +declare module "dojox/gfx3d/_base.Quads" { + var exp: dojox.gfx3d._base.Quads + export=exp; +} +declare module "dojox/gfx3d/_base.Triangles" { + var exp: dojox.gfx3d._base.Triangles + export=exp; +} +declare module "dojox/gfx3d/_base.Scene" { + var exp: dojox.gfx3d._base.Scene + export=exp; +} +declare module "dojox/gfx3d/_base.Viewport" { + var exp: dojox.gfx3d._base.Viewport + export=exp; +} +declare module "dojox/gfx3d/_base._creators" { + var exp: dojox.gfx3d._base._creators + export=exp; +} +declare module "dojox/gfx3d/_base.defaultCube" { + var exp: dojox.gfx3d._base.defaultCube + export=exp; +} +declare module "dojox/gfx3d/_base.defaultEdges" { + var exp: dojox.gfx3d._base.defaultEdges + export=exp; +} +declare module "dojox/gfx3d/_base.defaultOrbit" { + var exp: dojox.gfx3d._base.defaultOrbit + export=exp; +} +declare module "dojox/gfx3d/_base.defaultCylinder" { + var exp: dojox.gfx3d._base.defaultCylinder + export=exp; +} +declare module "dojox/gfx3d/_base.defaultPath3d" { + var exp: dojox.gfx3d._base.defaultPath3d + export=exp; +} +declare module "dojox/gfx3d/_base.defaultPolygon" { + var exp: dojox.gfx3d._base.defaultPolygon + export=exp; +} +declare module "dojox/gfx3d/_base.defaultQuads" { + var exp: dojox.gfx3d._base.defaultQuads + export=exp; +} +declare module "dojox/gfx3d/_base.defaultTriangles" { + var exp: dojox.gfx3d._base.defaultTriangles + export=exp; +} +declare module "dojox/gfx3d/_base.drawer" { + var exp: dojox.gfx3d._base.drawer + export=exp; +} +declare module "dojox/gfx3d/_base.lighting" { + var exp: dojox.gfx3d._base.lighting + export=exp; +} +declare module "dojox/gfx3d/_base.scheduler" { + var exp: dojox.gfx3d._base.scheduler + export=exp; +} +declare module "dojox/gfx3d/_base.matrix" { + var exp: dojox.gfx3d._base.matrix + export=exp; +} +declare module "dojox/gfx3d/_base.vector" { + var exp: dojox.gfx3d._base.vector + export=exp; +} +declare module "dojox/gfx3d/scheduler" { + var exp: dojox.gfx3d.scheduler + export=exp; +} +declare module "dojox/gfx3d/scheduler.BinarySearchTree" { + var exp: dojox.gfx3d.scheduler.BinarySearchTree + export=exp; +} +declare module "dojox/gfx3d/scheduler.drawer" { + var exp: dojox.gfx3d.scheduler.drawer + export=exp; +} +declare module "dojox/gfx3d/scheduler.scheduler" { + var exp: dojox.gfx3d.scheduler.scheduler + export=exp; +} +declare module "dojox/gfx3d/lighting" { + var exp: dojox.gfx3d.lighting + export=exp; +} +declare module "dojox/gfx3d/lighting.Model" { + var exp: dojox.gfx3d.lighting.Model + export=exp; +} +declare module "dojox/gfx3d/lighting.finish" { + var exp: dojox.gfx3d.lighting.finish + export=exp; +} +declare module "dojox/gfx3d/vector" { + var exp: dojox.gfx3d.vector + export=exp; +} +declare module "dojox/gfx3d/matrix" { + var exp: dojox.gfx3d.matrix + export=exp; +} + diff --git a/dojo/dojox.grid.d.ts b/dojo/dojox.grid.d.ts index cdfbeaf38..d45fd87fb 100644 --- a/dojo/dojox.grid.d.ts +++ b/dojo/dojox.grid.d.ts @@ -26083,4 +26083,480 @@ declare module dojox { } } -} \ No newline at end of file +} +declare module "dojox/grid/_Builder" { + var exp: dojox.grid._Builder + export=exp; +} +declare module "dojox/grid/util" { + var exp: dojox.grid.util + export=exp; +} +declare module "dojox/grid/_EditManager" { + var exp: dojox.grid._EditManager + export=exp; +} +declare module "dojox/grid/_RowManager" { + var exp: dojox.grid._RowManager + export=exp; +} +declare module "dojox/grid/_Layout" { + var exp: dojox.grid._Layout + export=exp; +} +declare module "dojox/grid/_Events" { + var exp: dojox.grid._Events + export=exp; +} +declare module "dojox/grid/_FocusManager" { + var exp: dojox.grid._FocusManager + export=exp; +} +declare module "dojox/grid/_SelectionPreserver" { + var exp: dojox.grid._SelectionPreserver + export=exp; +} +declare module "dojox/grid/_Scroller" { + var exp: dojox.grid._Scroller + export=exp; +} +declare module "dojox/grid/_ViewManager" { + var exp: dojox.grid._ViewManager + export=exp; +} +declare module "dojox/grid/_TreeView" { + var exp: dojox.grid._TreeView + export=exp; +} +declare module "dojox/grid/_View" { + var exp: dojox.grid._View + export=exp; +} +declare module "dojox/grid/_Selector" { + var exp: dojox.grid._Selector + export=exp; +} +declare module "dojox/grid/_RowSelector" { + var exp: dojox.grid._RowSelector + export=exp; +} +declare module "dojox/grid/DataSelection" { + var exp: dojox.grid.DataSelection + export=exp; +} +declare module "dojox/grid/_Grid" { + var exp: dojox.grid._Grid + export=exp; +} +declare module "dojox/grid/DataGrid" { + var exp: dojox.grid.DataGrid + export=exp; +} +declare module "dojox/grid/LazyTreeGridStoreModel" { + var exp: dojox.grid.LazyTreeGridStoreModel + export=exp; +} +declare module "dojox/grid/TreeSelection" { + var exp: dojox.grid.TreeSelection + export=exp; +} +declare module "dojox/grid/Selection" { + var exp: dojox.grid.Selection + export=exp; +} +declare module "dojox/grid/LazyTreeGrid" { + var exp: dojox.grid.LazyTreeGrid + export=exp; +} +declare module "dojox/grid/EnhancedGrid" { + var exp: dojox.grid.EnhancedGrid + export=exp; +} +declare module "dojox/grid/TreeGrid" { + var exp: dojox.grid.TreeGrid + export=exp; +} +declare module "dojox/grid/bidi/_BidiMixin" { + var exp: dojox.grid.bidi._BidiMixin + export=exp; +} +declare module "dojox/grid/cells/dijit" { + var exp: dojox.grid.cells.dijit + export=exp; +} +declare module "dojox/grid/cells/dijit._Widget" { + var exp: dojox.grid.cells.dijit._Widget + export=exp; +} +declare module "dojox/grid/cells/dijit.CheckBox" { + var exp: dojox.grid.cells.dijit.CheckBox + export=exp; +} +declare module "dojox/grid/cells/dijit.DateTextBox" { + var exp: dojox.grid.cells.dijit.DateTextBox + export=exp; +} +declare module "dojox/grid/cells/dijit.Editor" { + var exp: dojox.grid.cells.dijit.Editor + export=exp; +} +declare module "dojox/grid/cells/dijit.ComboBox" { + var exp: dojox.grid.cells.dijit.ComboBox + export=exp; +} +declare module "dojox/grid/cells/tree" { + var exp: dojox.grid.cells.tree + export=exp; +} +declare module "dojox/grid/cells/_base" { + var exp: dojox.grid.cells._base + export=exp; +} +declare module "dojox/grid/cells/_base.AlwaysEdit" { + var exp: dojox.grid.cells._base.AlwaysEdit + export=exp; +} +declare module "dojox/grid/cells/_base.Bool" { + var exp: dojox.grid.cells._base.Bool + export=exp; +} +declare module "dojox/grid/cells/_base.Cell" { + var exp: dojox.grid.cells._base.Cell + export=exp; +} +declare module "dojox/grid/cells/_base.Select" { + var exp: dojox.grid.cells._base.Select + export=exp; +} +declare module "dojox/grid/cells/_base.RowIndex" { + var exp: dojox.grid.cells._base.RowIndex + export=exp; +} +declare module "dojox/grid/enhanced/_Events" { + var exp: dojox.grid.enhanced._Events + export=exp; +} +declare module "dojox/grid/enhanced/_Plugin" { + var exp: dojox.grid.enhanced._Plugin + export=exp; +} +declare module "dojox/grid/enhanced/_PluginManager" { + var exp: dojox.grid.enhanced._PluginManager + export=exp; +} +declare module "dojox/grid/enhanced/_FocusManager" { + var exp: dojox.grid.enhanced._FocusManager + export=exp; +} +declare module "dojox/grid/enhanced/plugins/_StoreLayer" { + var exp: dojox.grid.enhanced.plugins._StoreLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/_StoreLayer._ServerSideLayer" { + var exp: dojox.grid.enhanced.plugins._StoreLayer._ServerSideLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/_StoreLayer._StoreLayer" { + var exp: dojox.grid.enhanced.plugins._StoreLayer._StoreLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/_RowMapLayer" { + var exp: dojox.grid.enhanced.plugins._RowMapLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/_SelectionPreserver" { + var exp: dojox.grid.enhanced.plugins._SelectionPreserver + export=exp; +} +declare module "dojox/grid/enhanced/plugins/AutoScroll" { + var exp: dojox.grid.enhanced.plugins.AutoScroll + export=exp; +} +declare module "dojox/grid/enhanced/plugins/DnD" { + var exp: dojox.grid.enhanced.plugins.DnD + export=exp; +} +declare module "dojox/grid/enhanced/plugins/CellMerge" { + var exp: dojox.grid.enhanced.plugins.CellMerge + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Exporter" { + var exp: dojox.grid.enhanced.plugins.Exporter + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Cookie" { + var exp: dojox.grid.enhanced.plugins.Cookie + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Filter" { + var exp: dojox.grid.enhanced.plugins.Filter + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Dialog" { + var exp: dojox.grid.enhanced.plugins.Dialog + export=exp; +} +declare module "dojox/grid/enhanced/plugins/IndirectSelection" { + var exp: dojox.grid.enhanced.plugins.IndirectSelection + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Menu" { + var exp: dojox.grid.enhanced.plugins.Menu + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Printer" { + var exp: dojox.grid.enhanced.plugins.Printer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/NestedSorting" { + var exp: dojox.grid.enhanced.plugins.NestedSorting + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Rearrange" { + var exp: dojox.grid.enhanced.plugins.Rearrange + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Search" { + var exp: dojox.grid.enhanced.plugins.Search + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Pagination" { + var exp: dojox.grid.enhanced.plugins.Pagination + export=exp; +} +declare module "dojox/grid/enhanced/plugins/GridSource" { + var exp: dojox.grid.enhanced.plugins.GridSource + export=exp; +} +declare module "dojox/grid/enhanced/plugins/Selector" { + var exp: dojox.grid.enhanced.plugins.Selector + export=exp; +} +declare module "dojox/grid/enhanced/plugins/exporter/_ExportWriter" { + var exp: dojox.grid.enhanced.plugins.exporter._ExportWriter + export=exp; +} +declare module "dojox/grid/enhanced/plugins/exporter/CSVWriter" { + var exp: dojox.grid.enhanced.plugins.exporter.CSVWriter + export=exp; +} +declare module "dojox/grid/enhanced/plugins/exporter/TableWriter" { + var exp: dojox.grid.enhanced.plugins.exporter.TableWriter + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_ConditionExpr" { + var exp: dojox.grid.enhanced.plugins.filter._ConditionExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_ConditionExpr._BiOpExpr" { + var exp: dojox.grid.enhanced.plugins.filter._ConditionExpr._BiOpExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_ConditionExpr._OperatorExpr" { + var exp: dojox.grid.enhanced.plugins.filter._ConditionExpr._OperatorExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_ConditionExpr._UniOpExpr" { + var exp: dojox.grid.enhanced.plugins.filter._ConditionExpr._UniOpExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_ConditionExpr._ConditionExpr" { + var exp: dojox.grid.enhanced.plugins.filter._ConditionExpr._ConditionExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_ConditionExpr._DataExpr" { + var exp: dojox.grid.enhanced.plugins.filter._ConditionExpr._DataExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs._BiOpExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs._BiOpExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs._ConditionExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs._ConditionExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs._OperatorExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs._OperatorExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs._UniOpExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs._UniOpExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs.NumberExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs.NumberExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs.DateExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs.DateExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs._DataExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs._DataExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs.StringExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs.StringExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs.BooleanExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs.BooleanExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_DataExprs.TimeExpr" { + var exp: dojox.grid.enhanced.plugins.filter._DataExprs.TimeExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr._ConditionExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr._ConditionExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr._OperatorExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr._OperatorExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr._BiOpExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr._BiOpExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.BooleanExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.BooleanExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr._DataExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr._DataExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr._UniOpExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr._UniOpExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.EndsWith" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.EndsWith + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.Contains" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.Contains + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.DateExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.DateExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.EqualTo" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.EqualTo + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LargerThan" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LargerThan + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.IsEmpty" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.IsEmpty + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LessThanOrEqualTo" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LessThanOrEqualTo + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LessThan" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LessThan + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LargerThanOrEqualTo" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LargerThanOrEqualTo + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LogicALL" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LogicALL + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LogicAND" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LogicAND + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LogicANY" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LogicANY + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.Matches" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.Matches + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LogicOR" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LogicOR + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LogicNOT" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LogicNOT + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.LogicXOR" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.LogicXOR + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.StringExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.StringExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.NumberExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.NumberExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.TimeExpr" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.TimeExpr + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/_FilterExpr.StartsWith" { + var exp: dojox.grid.enhanced.plugins.filter._FilterExpr.StartsWith + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterLayer" { + var exp: dojox.grid.enhanced.plugins.filter.FilterLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterLayer._ServerSideLayer" { + var exp: dojox.grid.enhanced.plugins.filter.FilterLayer._ServerSideLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterLayer._StoreLayer" { + var exp: dojox.grid.enhanced.plugins.filter.FilterLayer._StoreLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterLayer.ServerSideFilterLayer" { + var exp: dojox.grid.enhanced.plugins.filter.FilterLayer.ServerSideFilterLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterLayer.ClientSideFilterLayer" { + var exp: dojox.grid.enhanced.plugins.filter.FilterLayer.ClientSideFilterLayer + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterBuilder" { + var exp: dojox.grid.enhanced.plugins.filter.FilterBuilder + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterStatusTip" { + var exp: dojox.grid.enhanced.plugins.filter.FilterStatusTip + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterDefDialog" { + var exp: dojox.grid.enhanced.plugins.filter.FilterDefDialog + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/ClearFilterConfirm" { + var exp: dojox.grid.enhanced.plugins.filter.ClearFilterConfirm + export=exp; +} +declare module "dojox/grid/enhanced/plugins/filter/FilterBar" { + var exp: dojox.grid.enhanced.plugins.filter.FilterBar + export=exp; +} diff --git a/dojo/dojox.help.d.ts b/dojo/dojox.help.d.ts index dee039b94..9d0bc7b1a 100644 --- a/dojo/dojox.help.d.ts +++ b/dojo/dojox.help.d.ts @@ -22,4 +22,13 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/help/_base" { + var exp: dojox.help._base + export=exp; +} +declare module "dojox/help/console" { + var exp: dojox.help.console + export=exp; +} diff --git a/dojo/dojox.highlight.d.ts b/dojo/dojox.highlight.d.ts index ce8f44de6..17b88e5da 100644 --- a/dojo/dojox.highlight.d.ts +++ b/dojo/dojox.highlight.d.ts @@ -2370,4 +2370,185 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/highlight" { + var exp: dojox.highlight + export=exp; +} +declare module "dojox/highlight/_base" { + var exp: dojox.highlight._base + export=exp; +} +declare module "dojox/highlight/_base.constants" { + var exp: dojox.highlight._base.constants + export=exp; +} +declare module "dojox/highlight/languages/css" { + var exp: dojox.highlight.languages.css + export=exp; +} +declare module "dojox/highlight/languages/css.defaultMode" { + var exp: dojox.highlight.languages.css.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/delphi" { + var exp: dojox.highlight.languages.delphi + export=exp; +} +declare module "dojox/highlight/languages/delphi.defaultMode" { + var exp: dojox.highlight.languages.delphi.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/cpp" { + var exp: dojox.highlight.languages.cpp + export=exp; +} +declare module "dojox/highlight/languages/cpp.defaultMode" { + var exp: dojox.highlight.languages.cpp.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/django" { + var exp: dojox.highlight.languages.django + export=exp; +} +declare module "dojox/highlight/languages/django.defaultMode" { + var exp: dojox.highlight.languages.django.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/html" { + var exp: dojox.highlight.languages.html + export=exp; +} +declare module "dojox/highlight/languages/html.HTML_ATTR" { + var exp: dojox.highlight.languages.html.HTML_ATTR + export=exp; +} +declare module "dojox/highlight/languages/html.defaultMode" { + var exp: dojox.highlight.languages.html.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/html.HTML_VALUE" { + var exp: dojox.highlight.languages.html.HTML_VALUE + export=exp; +} +declare module "dojox/highlight/languages/html.HTML_DOCTYPE" { + var exp: dojox.highlight.languages.html.HTML_DOCTYPE + export=exp; +} +declare module "dojox/highlight/languages/html.HTML_TAGS" { + var exp: dojox.highlight.languages.html.HTML_TAGS + export=exp; +} +declare module "dojox/highlight/languages/groovy" { + var exp: dojox.highlight.languages.groovy + export=exp; +} +declare module "dojox/highlight/languages/groovy.defaultMode" { + var exp: dojox.highlight.languages.groovy.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/groovy.GROOVY_KEYWORDS" { + var exp: dojox.highlight.languages.groovy.GROOVY_KEYWORDS + export=exp; +} +declare module "dojox/highlight/languages/javascript" { + var exp: dojox.highlight.languages.javascript + export=exp; +} +declare module "dojox/highlight/languages/javascript.defaultMode" { + var exp: dojox.highlight.languages.javascript.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/java" { + var exp: dojox.highlight.languages.java + export=exp; +} +declare module "dojox/highlight/languages/java.defaultMode" { + var exp: dojox.highlight.languages.java.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/python" { + var exp: dojox.highlight.languages.python + export=exp; +} +declare module "dojox/highlight/languages/python.defaultMode" { + var exp: dojox.highlight.languages.python.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/sql" { + var exp: dojox.highlight.languages.sql + export=exp; +} +declare module "dojox/highlight/languages/sql.defaultMode" { + var exp: dojox.highlight.languages.sql.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/xquery" { + var exp: dojox.highlight.languages.xquery + export=exp; +} +declare module "dojox/highlight/languages/xquery.defaultMode" { + var exp: dojox.highlight.languages.xquery.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/xquery.XQUERY_COMMENT" { + var exp: dojox.highlight.languages.xquery.XQUERY_COMMENT + export=exp; +} +declare module "dojox/highlight/languages/xml" { + var exp: dojox.highlight.languages.xml + export=exp; +} +declare module "dojox/highlight/languages/xml.defaultMode" { + var exp: dojox.highlight.languages.xml.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/xml.XML_ATTR" { + var exp: dojox.highlight.languages.xml.XML_ATTR + export=exp; +} +declare module "dojox/highlight/languages/xml.XML_COMMENT" { + var exp: dojox.highlight.languages.xml.XML_COMMENT + export=exp; +} +declare module "dojox/highlight/languages/xml.XML_VALUE" { + var exp: dojox.highlight.languages.xml.XML_VALUE + export=exp; +} +declare module "dojox/highlight/languages/pygments/css" { + var exp: dojox.highlight.languages.pygments.css + export=exp; +} +declare module "dojox/highlight/languages/pygments/css.defaultMode" { + var exp: dojox.highlight.languages.pygments.css.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/pygments/xml" { + var exp: dojox.highlight.languages.pygments.xml + export=exp; +} +declare module "dojox/highlight/languages/pygments/xml.defaultMode" { + var exp: dojox.highlight.languages.pygments.xml.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/pygments/html" { + var exp: dojox.highlight.languages.pygments.html + export=exp; +} +declare module "dojox/highlight/languages/pygments/html.defaultMode" { + var exp: dojox.highlight.languages.pygments.html.defaultMode + export=exp; +} +declare module "dojox/highlight/languages/pygments/javascript" { + var exp: dojox.highlight.languages.pygments.javascript + export=exp; +} +declare module "dojox/highlight/languages/pygments/javascript.defaultMode" { + var exp: dojox.highlight.languages.pygments.javascript.defaultMode + export=exp; +} +declare module "dojox/highlight/widget/Code" { + var exp: dojox.highlight.widget.Code + export=exp; +} diff --git a/dojo/dojox.html.d.ts b/dojo/dojox.html.d.ts index fc0394243..4091666d8 100644 --- a/dojo/dojox.html.d.ts +++ b/dojo/dojox.html.d.ts @@ -567,4 +567,45 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/html" { + var exp: dojox.html + export=exp; +} +declare module "dojox/html/ellipsis" { + var exp: dojox.html.ellipsis + export=exp; +} +declare module "dojox/html/entities" { + var exp: dojox.html.entities + export=exp; +} +declare module "dojox/html/metrics" { + var exp: dojox.html.metrics + export=exp; +} +declare module "dojox/html/styles" { + var exp: dojox.html.styles + export=exp; +} +declare module "dojox/html/styles._ContentSetter" { + var exp: dojox.html.styles._ContentSetter + export=exp; +} +declare module "dojox/html/styles.ext-dojo" { + var exp: dojox.html.styles.ext_dojo + export=exp; +} +declare module "dojox/html/styles.metrics" { + var exp: dojox.html.styles.metrics + export=exp; +} +declare module "dojox/html/styles.entities" { + var exp: dojox.html.styles.entities + export=exp; +} +declare module "dojox/html/_base._ContentSetter" { + var exp: dojox.html._base._ContentSetter + export=exp; +} diff --git a/dojo/dojox.image.d.ts b/dojo/dojox.image.d.ts index 69cb5e9fb..29aac5e41 100644 --- a/dojo/dojox.image.d.ts +++ b/dojo/dojox.image.d.ts @@ -2759,4 +2759,37 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/image" { + var exp: dojox.image + export=exp; +} +declare module "dojox/image/FlickrBadge" { + var exp: dojox.image.FlickrBadge + export=exp; +} +declare module "dojox/image/Lightbox" { + var exp: dojox.image.Lightbox + export=exp; +} +declare module "dojox/image/Lightbox.LightboxDialog" { + var exp: dojox.image.Lightbox.LightboxDialog + export=exp; +} +declare module "dojox/image/LightboxNano" { + var exp: dojox.image.LightboxNano + export=exp; +} +declare module "dojox/image/Badge" { + var exp: dojox.image.Badge + export=exp; +} +declare module "dojox/image/Magnifier" { + var exp: dojox.image.Magnifier + export=exp; +} +declare module "dojox/image/MagnifierLite" { + var exp: dojox.image.MagnifierLite + export=exp; +} diff --git a/dojo/dojox.io.d.ts b/dojo/dojox.io.d.ts index 19ba8237b..4079b56a4 100644 --- a/dojo/dojox.io.d.ts +++ b/dojo/dojox.io.d.ts @@ -241,4 +241,45 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/io/httpParse" { + var exp: dojox.io.httpParse + export=exp; +} +declare module "dojox/io/xhrMultiPart" { + var exp: dojox.io.xhrMultiPart + export=exp; +} +declare module "dojox/io/xhrWindowNamePlugin" { + var exp: dojox.io.xhrWindowNamePlugin + export=exp; +} +declare module "dojox/io/xhrScriptPlugin" { + var exp: dojox.io.xhrScriptPlugin + export=exp; +} +declare module "dojox/io/windowName" { + var exp: dojox.io.windowName + export=exp; +} +declare module "dojox/io/scriptFrame" { + var exp: dojox.io.scriptFrame + export=exp; +} +declare module "dojox/io/scriptFrame._loadedIds" { + var exp: dojox.io.scriptFrame._loadedIds + export=exp; +} +declare module "dojox/io/scriptFrame._waiters" { + var exp: dojox.io.scriptFrame._waiters + export=exp; +} +declare module "dojox/io/proxy/xip" { + var exp: dojox.io.proxy.xip + export=exp; +} +declare module "dojox/io/proxy/xip._state" { + var exp: dojox.io.proxy.xip._state + export=exp; +} diff --git a/dojo/dojox.jq.d.ts b/dojo/dojox.jq.d.ts index dbe9cd266..d2e7405f9 100644 --- a/dojo/dojox.jq.d.ts +++ b/dojo/dojox.jq.d.ts @@ -12,4 +12,9 @@ declare module dojox { */ interface jq { } -} \ No newline at end of file +} + +declare module "dojox/jq" { + var exp: dojox.jq + export=exp; +} diff --git a/dojo/dojox.json.d.ts b/dojo/dojox.json.d.ts index 10245b556..a7a6da1ef 100644 --- a/dojo/dojox.json.d.ts +++ b/dojo/dojox.json.d.ts @@ -129,4 +129,13 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/json/query" { + var exp: dojox.json.query + export=exp; +} +declare module "dojox/json/ref" { + var exp: dojox.json.ref + export=exp; +} diff --git a/dojo/dojox.jsonPath.d.ts b/dojo/dojox.jsonPath.d.ts index b7530a959..7278a436f 100644 --- a/dojo/dojox.jsonPath.d.ts +++ b/dojo/dojox.jsonPath.d.ts @@ -28,4 +28,13 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/jsonPath" { + var exp: dojox.jsonPath + export=exp; +} +declare module "dojox/jsonPath/query" { + var exp: dojox.jsonPath.query + export=exp; +} diff --git a/dojo/dojox.lang.d.ts b/dojo/dojox.lang.d.ts index 6e26bc58e..7092b6da5 100644 --- a/dojo/dojox.lang.d.ts +++ b/dojo/dojox.lang.d.ts @@ -12019,4 +12019,117 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/lang/observable" { + var exp: dojox.lang.observable + export=exp; +} +declare module "dojox/lang/aspect" { + var exp: dojox.lang.aspect + export=exp; +} +declare module "dojox/lang/aspect/memoizerGuard" { + var exp: dojox.lang.aspect.memoizerGuard + export=exp; +} +declare module "dojox/lang/aspect/memoizer" { + var exp: dojox.lang.aspect.memoizer + export=exp; +} +declare module "dojox/lang/aspect/counter" { + var exp: dojox.lang.aspect.counter + export=exp; +} +declare module "dojox/lang/aspect/cflow" { + var exp: dojox.lang.aspect.cflow + export=exp; +} +declare module "dojox/lang/aspect/timer" { + var exp: dojox.lang.aspect.timer + export=exp; +} +declare module "dojox/lang/aspect/profiler" { + var exp: dojox.lang.aspect.profiler + export=exp; +} +declare module "dojox/lang/aspect/tracer" { + var exp: dojox.lang.aspect.tracer + export=exp; +} +declare module "dojox/lang/async" { + var exp: dojox.lang.async + export=exp; +} +declare module "dojox/lang/async/event" { + var exp: dojox.lang.async.event + export=exp; +} +declare module "dojox/lang/async/timeout" { + var exp: dojox.lang.async.timeout + export=exp; +} +declare module "dojox/lang/async/topic" { + var exp: dojox.lang.async.topic + export=exp; +} +declare module "dojox/lang/functional" { + var exp: dojox.lang.functional + export=exp; +} +declare module "dojox/lang/functional/listcomp" { + var exp: dojox.lang.functional.listcomp + export=exp; +} +declare module "dojox/lang/functional/object" { + var exp: dojox.lang.functional.object + export=exp; +} +declare module "dojox/lang/functional/zip" { + var exp: dojox.lang.functional.zip + export=exp; +} +declare module "dojox/lang/functional/array" { + var exp: dojox.lang.functional.array + export=exp; +} +declare module "dojox/lang/functional/lambda" { + var exp: dojox.lang.functional.lambda + export=exp; +} +declare module "dojox/lang/functional/reversed" { + var exp: dojox.lang.functional.reversed + export=exp; +} +declare module "dojox/lang/functional/sequence" { + var exp: dojox.lang.functional.sequence + export=exp; +} +declare module "dojox/lang/utils" { + var exp: dojox.lang.utils + export=exp; +} +declare module "dojox/lang/oo/mixin" { + var exp: dojox.lang.oo.mixin + export=exp; +} +declare module "dojox/lang/oo/Filter" { + var exp: dojox.lang.oo.Filter + export=exp; +} +declare module "dojox/lang/oo/Decorator" { + var exp: dojox.lang.oo.Decorator + export=exp; +} +declare module "dojox/lang/oo/rearrange" { + var exp: dojox.lang.oo.rearrange + export=exp; +} +declare module "dojox/lang/oo/aop" { + var exp: dojox.lang.oo.aop + export=exp; +} +declare module "dojox/lang/oo/general" { + var exp: dojox.lang.oo.general + export=exp; +} diff --git a/dojo/dojox.layout.d.ts b/dojo/dojox.layout.d.ts index ff6ae2d86..e7ba0b572 100644 --- a/dojo/dojox.layout.d.ts +++ b/dojo/dojox.layout.d.ts @@ -11432,4 +11432,77 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/layout/BorderContainer" { + var exp: dojox.layout.BorderContainer + export=exp; +} +declare module "dojox/layout/RadioGroup" { + var exp: dojox.layout.RadioGroup + export=exp; +} +declare module "dojox/layout/Dock" { + var exp: dojox.layout.Dock + export=exp; +} +declare module "dojox/layout/DragPane" { + var exp: dojox.layout.DragPane + export=exp; +} +declare module "dojox/layout/ExpandoPane" { + var exp: dojox.layout.ExpandoPane + export=exp; +} +declare module "dojox/layout/ContentPane" { + var exp: dojox.layout.ContentPane + export=exp; +} +declare module "dojox/layout/GridContainer" { + var exp: dojox.layout.GridContainer + export=exp; +} +declare module "dojox/layout/FloatingPane" { + var exp: dojox.layout.FloatingPane + export=exp; +} +declare module "dojox/layout/GridContainerLite" { + var exp: dojox.layout.GridContainerLite + export=exp; +} +declare module "dojox/layout/GridContainerLite.ChildWidgetProperties" { + var exp: dojox.layout.GridContainerLite.ChildWidgetProperties + export=exp; +} +declare module "dojox/layout/ResizeHandle" { + var exp: dojox.layout.ResizeHandle + export=exp; +} +declare module "dojox/layout/ToggleSplitter" { + var exp: dojox.layout.ToggleSplitter + export=exp; +} +declare module "dojox/layout/RotatorContainer" { + var exp: dojox.layout.RotatorContainer + export=exp; +} +declare module "dojox/layout/TableContainer" { + var exp: dojox.layout.TableContainer + export=exp; +} +declare module "dojox/layout/TableContainer.ChildWidgetProperties" { + var exp: dojox.layout.TableContainer.ChildWidgetProperties + export=exp; +} +declare module "dojox/layout/ScrollPane" { + var exp: dojox.layout.ScrollPane + export=exp; +} +declare module "dojox/layout/dnd/Avatar" { + var exp: dojox.layout.dnd.Avatar + export=exp; +} +declare module "dojox/layout/dnd/PlottedDnd" { + var exp: dojox.layout.dnd.PlottedDnd + export=exp; +} diff --git a/dojo/dojox.main.d.ts b/dojo/dojox.main.d.ts index cef3da3be..4f4592532 100644 --- a/dojo/dojox.main.d.ts +++ b/dojo/dojox.main.d.ts @@ -2327,4 +2327,57 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/main" { + var exp: dojox.main + export=exp; +} +declare module "dojox/main.languages" { + var exp: dojox.main.languages + export=exp; +} +declare module "dojox/main.islamic" { + var exp: dojox.main.islamic + export=exp; +} +declare module "dojox/main.buddhist" { + var exp: dojox.main.buddhist + export=exp; +} +declare module "dojox/main.charting" { + var exp: dojox.main.charting + export=exp; +} +declare module "dojox/main.hebrew" { + var exp: dojox.main.hebrew + export=exp; +} +declare module "dojox/main.functional" { + var exp: dojox.main.functional + export=exp; +} +declare module "dojox/main.relative" { + var exp: dojox.main.relative + export=exp; +} +declare module "dojox/main.util" { + var exp: dojox.main.util + export=exp; +} +declare module "dojox/main.regexp" { + var exp: dojox.main.regexp + export=exp; +} +declare module "dojox/main.umalqura" { + var exp: dojox.main.umalqura + export=exp; +} +declare module "dojox/main.persian" { + var exp: dojox.main.persian + export=exp; +} +declare module "dojox/main.utils" { + var exp: dojox.main.utils + export=exp; +} diff --git a/dojo/dojox.math.d.ts b/dojo/dojox.math.d.ts index 0d85d20c5..4b20f1f56 100644 --- a/dojo/dojox.math.d.ts +++ b/dojo/dojox.math.d.ts @@ -147,4 +147,33 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/math" { + var exp: dojox.math + export=exp; +} +declare module "dojox/math/BigInteger" { + var exp: dojox.math.BigInteger + export=exp; +} +declare module "dojox/math/BigInteger-ext" { + var exp: dojox.math.BigInteger_ext + export=exp; +} +declare module "dojox/math/round" { + var exp: dojox.math.round + export=exp; +} +declare module "dojox/math/random/prng4" { + var exp: dojox.math.random.prng4 + export=exp; +} +declare module "dojox/math/random/Simple" { + var exp: dojox.math.random.Simple + export=exp; +} +declare module "dojox/math/random/Secure" { + var exp: dojox.math.random.Secure + export=exp; +} diff --git a/dojo/dojox.mdnd.d.ts b/dojo/dojox.mdnd.d.ts index a8b8f82c8..4d596bd29 100644 --- a/dojo/dojox.mdnd.d.ts +++ b/dojo/dojox.mdnd.d.ts @@ -996,4 +996,49 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/mdnd/AutoScroll" { + var exp: dojox.mdnd.AutoScroll + export=exp; +} +declare module "dojox/mdnd/DropIndicator" { + var exp: dojox.mdnd.DropIndicator + export=exp; +} +declare module "dojox/mdnd/AreaManager" { + var exp: dojox.mdnd.AreaManager + export=exp; +} +declare module "dojox/mdnd/LazyManager" { + var exp: dojox.mdnd.LazyManager + export=exp; +} +declare module "dojox/mdnd/Moveable" { + var exp: dojox.mdnd.Moveable + export=exp; +} +declare module "dojox/mdnd/PureSource" { + var exp: dojox.mdnd.PureSource + export=exp; +} +declare module "dojox/mdnd/adapter/DndFromDojo" { + var exp: dojox.mdnd.adapter.DndFromDojo + export=exp; +} +declare module "dojox/mdnd/adapter/DndToDojo" { + var exp: dojox.mdnd.adapter.DndToDojo + export=exp; +} +declare module "dojox/mdnd/dropMode/DefaultDropMode" { + var exp: dojox.mdnd.dropMode.DefaultDropMode + export=exp; +} +declare module "dojox/mdnd/dropMode/OverDropMode" { + var exp: dojox.mdnd.dropMode.OverDropMode + export=exp; +} +declare module "dojox/mdnd/dropMode/VerticalDropMode" { + var exp: dojox.mdnd.dropMode.VerticalDropMode + export=exp; +} diff --git a/dojo/dojox.mobile.d.ts b/dojo/dojox.mobile.d.ts index 889beb5ed..ae64ac433 100644 --- a/dojo/dojox.mobile.d.ts +++ b/dojo/dojox.mobile.d.ts @@ -60715,4 +60715,597 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/mobile" { + var exp: dojox.mobile + export=exp; +} +declare module "dojox/mobile/_ContentPaneMixin" { + var exp: dojox.mobile._ContentPaneMixin + export=exp; +} +declare module "dojox/mobile/_DataMixin" { + var exp: dojox.mobile._DataMixin + export=exp; +} +declare module "dojox/mobile/_ComboBoxMenu" { + var exp: dojox.mobile._ComboBoxMenu + export=exp; +} +declare module "dojox/mobile/_DatePickerMixin" { + var exp: dojox.mobile._DatePickerMixin + export=exp; +} +declare module "dojox/mobile/_ExecScriptMixin" { + var exp: dojox.mobile._ExecScriptMixin + export=exp; +} +declare module "dojox/mobile/_DataListMixin" { + var exp: dojox.mobile._DataListMixin + export=exp; +} +declare module "dojox/mobile/_EditableIconMixin" { + var exp: dojox.mobile._EditableIconMixin + export=exp; +} +declare module "dojox/mobile/_EditableListMixin" { + var exp: dojox.mobile._EditableListMixin + export=exp; +} +declare module "dojox/mobile/_ListTouchMixin" { + var exp: dojox.mobile._ListTouchMixin + export=exp; +} +declare module "dojox/mobile/_IconItemPane" { + var exp: dojox.mobile._IconItemPane + export=exp; +} +declare module "dojox/mobile/_StoreListMixin" { + var exp: dojox.mobile._StoreListMixin + export=exp; +} +declare module "dojox/mobile/_StoreMixin" { + var exp: dojox.mobile._StoreMixin + export=exp; +} +declare module "dojox/mobile/_TimePickerMixin" { + var exp: dojox.mobile._TimePickerMixin + export=exp; +} +declare module "dojox/mobile/_ItemBase" { + var exp: dojox.mobile._ItemBase + export=exp; +} +declare module "dojox/mobile/Badge" { + var exp: dojox.mobile.Badge + export=exp; +} +declare module "dojox/mobile/_ScrollableMixin" { + var exp: dojox.mobile._ScrollableMixin + export=exp; +} +declare module "dojox/mobile/_PickerBase" { + var exp: dojox.mobile._PickerBase + export=exp; +} +declare module "dojox/mobile/Audio" { + var exp: dojox.mobile.Audio + export=exp; +} +declare module "dojox/mobile/Accordion" { + var exp: dojox.mobile.Accordion + export=exp; +} +declare module "dojox/mobile/Accordion.ChildWidgetProperties" { + var exp: dojox.mobile.Accordion.ChildWidgetProperties + export=exp; +} +declare module "dojox/mobile/Button" { + var exp: dojox.mobile.Button + export=exp; +} +declare module "dojox/mobile/CarouselItem" { + var exp: dojox.mobile.CarouselItem + export=exp; +} +declare module "dojox/mobile/Carousel" { + var exp: dojox.mobile.Carousel + export=exp; +} +declare module "dojox/mobile/Carousel.ChildSwapViewProperties" { + var exp: dojox.mobile.Carousel.ChildSwapViewProperties + export=exp; +} +declare module "dojox/mobile/CheckBox" { + var exp: dojox.mobile.CheckBox + export=exp; +} +declare module "dojox/mobile/Container" { + var exp: dojox.mobile.Container + export=exp; +} +declare module "dojox/mobile/ComboBox" { + var exp: dojox.mobile.ComboBox + export=exp; +} +declare module "dojox/mobile/ContentPane" { + var exp: dojox.mobile.ContentPane + export=exp; +} +declare module "dojox/mobile/DataCarousel" { + var exp: dojox.mobile.DataCarousel + export=exp; +} +declare module "dojox/mobile/FilteredListMixin" { + var exp: dojox.mobile.FilteredListMixin + export=exp; +} +declare module "dojox/mobile/EdgeToEdgeList" { + var exp: dojox.mobile.EdgeToEdgeList + export=exp; +} +declare module "dojox/mobile/EdgeToEdgeCategory" { + var exp: dojox.mobile.EdgeToEdgeCategory + export=exp; +} +declare module "dojox/mobile/EdgeToEdgeStoreList" { + var exp: dojox.mobile.EdgeToEdgeStoreList + export=exp; +} +declare module "dojox/mobile/EdgeToEdgeDataList" { + var exp: dojox.mobile.EdgeToEdgeDataList + export=exp; +} +declare module "dojox/mobile/ExpandingTextArea" { + var exp: dojox.mobile.ExpandingTextArea + export=exp; +} +declare module "dojox/mobile/FixedSplitterPane" { + var exp: dojox.mobile.FixedSplitterPane + export=exp; +} +declare module "dojox/mobile/Icon" { + var exp: dojox.mobile.Icon + export=exp; +} +declare module "dojox/mobile/FixedSplitter" { + var exp: dojox.mobile.FixedSplitter + export=exp; +} +declare module "dojox/mobile/FormLayout" { + var exp: dojox.mobile.FormLayout + export=exp; +} +declare module "dojox/mobile/GridLayout" { + var exp: dojox.mobile.GridLayout + export=exp; +} +declare module "dojox/mobile/IconMenu" { + var exp: dojox.mobile.IconMenu + export=exp; +} +declare module "dojox/mobile/IconMenuItem" { + var exp: dojox.mobile.IconMenuItem + export=exp; +} +declare module "dojox/mobile/IconContainer" { + var exp: dojox.mobile.IconContainer + export=exp; +} +declare module "dojox/mobile/Heading" { + var exp: dojox.mobile.Heading + export=exp; +} +declare module "dojox/mobile/LongListMixin" { + var exp: dojox.mobile.LongListMixin + export=exp; +} +declare module "dojox/mobile/IconItem" { + var exp: dojox.mobile.IconItem + export=exp; +} +declare module "dojox/mobile/ListItem" { + var exp: dojox.mobile.ListItem + export=exp; +} +declare module "dojox/mobile/ListItem.ChildWidgetProperties" { + var exp: dojox.mobile.ListItem.ChildWidgetProperties + export=exp; +} +declare module "dojox/mobile/Pane" { + var exp: dojox.mobile.Pane + export=exp; +} +declare module "dojox/mobile/Opener" { + var exp: dojox.mobile.Opener + export=exp; +} +declare module "dojox/mobile/Overlay" { + var exp: dojox.mobile.Overlay + export=exp; +} +declare module "dojox/mobile/PageIndicator" { + var exp: dojox.mobile.PageIndicator + export=exp; +} +declare module "dojox/mobile/ProgressBar" { + var exp: dojox.mobile.ProgressBar + export=exp; +} +declare module "dojox/mobile/ProgressIndicator" { + var exp: dojox.mobile.ProgressIndicator + export=exp; +} +declare module "dojox/mobile/RoundRectCategory" { + var exp: dojox.mobile.RoundRectCategory + export=exp; +} +declare module "dojox/mobile/RoundRect" { + var exp: dojox.mobile.RoundRect + export=exp; +} +declare module "dojox/mobile/RadioButton" { + var exp: dojox.mobile.RadioButton + export=exp; +} +declare module "dojox/mobile/RoundRectList" { + var exp: dojox.mobile.RoundRectList + export=exp; +} +declare module "dojox/mobile/ScreenSizeAware" { + var exp: dojox.mobile.ScreenSizeAware + export=exp; +} +declare module "dojox/mobile/RoundRectDataList" { + var exp: dojox.mobile.RoundRectDataList + export=exp; +} +declare module "dojox/mobile/RoundRectStoreList" { + var exp: dojox.mobile.RoundRectStoreList + export=exp; +} +declare module "dojox/mobile/ScrollablePane" { + var exp: dojox.mobile.ScrollablePane + export=exp; +} +declare module "dojox/mobile/Rating" { + var exp: dojox.mobile.Rating + export=exp; +} +declare module "dojox/mobile/Slider" { + var exp: dojox.mobile.Slider + export=exp; +} +declare module "dojox/mobile/SimpleDialog" { + var exp: dojox.mobile.SimpleDialog + export=exp; +} +declare module "dojox/mobile/SearchBox" { + var exp: dojox.mobile.SearchBox + export=exp; +} +declare module "dojox/mobile/ScrollableView" { + var exp: dojox.mobile.ScrollableView + export=exp; +} +declare module "dojox/mobile/SpinWheel" { + var exp: dojox.mobile.SpinWheel + export=exp; +} +declare module "dojox/mobile/SpinWheelDatePicker" { + var exp: dojox.mobile.SpinWheelDatePicker + export=exp; +} +declare module "dojox/mobile/SpinWheelTimePicker" { + var exp: dojox.mobile.SpinWheelTimePicker + export=exp; +} +declare module "dojox/mobile/Switch" { + var exp: dojox.mobile.Switch + export=exp; +} +declare module "dojox/mobile/SpinWheelSlot" { + var exp: dojox.mobile.SpinWheelSlot + export=exp; +} +declare module "dojox/mobile/StoreCarousel" { + var exp: dojox.mobile.StoreCarousel + export=exp; +} +declare module "dojox/mobile/TabBar" { + var exp: dojox.mobile.TabBar + export=exp; +} +declare module "dojox/mobile/SwapView" { + var exp: dojox.mobile.SwapView + export=exp; +} +declare module "dojox/mobile/TextArea" { + var exp: dojox.mobile.TextArea + export=exp; +} +declare module "dojox/mobile/ToggleButton" { + var exp: dojox.mobile.ToggleButton + export=exp; +} +declare module "dojox/mobile/TransitionEvent" { + var exp: dojox.mobile.TransitionEvent + export=exp; +} +declare module "dojox/mobile/Tooltip" { + var exp: dojox.mobile.Tooltip + export=exp; +} +declare module "dojox/mobile/TextBox" { + var exp: dojox.mobile.TextBox + export=exp; +} +declare module "dojox/mobile/ToolBarButton" { + var exp: dojox.mobile.ToolBarButton + export=exp; +} +declare module "dojox/mobile/TabBarButton" { + var exp: dojox.mobile.TabBarButton + export=exp; +} +declare module "dojox/mobile/ValuePicker" { + var exp: dojox.mobile.ValuePicker + export=exp; +} +declare module "dojox/mobile/ValuePickerSlot" { + var exp: dojox.mobile.ValuePickerSlot + export=exp; +} +declare module "dojox/mobile/ValuePickerDatePicker" { + var exp: dojox.mobile.ValuePickerDatePicker + export=exp; +} +declare module "dojox/mobile/ViewController" { + var exp: dojox.mobile.ViewController + export=exp; +} +declare module "dojox/mobile/TreeView" { + var exp: dojox.mobile.TreeView + export=exp; +} +declare module "dojox/mobile/Video" { + var exp: dojox.mobile.Video + export=exp; +} +declare module "dojox/mobile/ValuePickerTimePicker" { + var exp: dojox.mobile.ValuePickerTimePicker + export=exp; +} +declare module "dojox/mobile/View" { + var exp: dojox.mobile.View + export=exp; +} +declare module "dojox/mobile/DatePicker" { + var exp: dojox.mobile.DatePicker + export=exp; +} +declare module "dojox/mobile/pageTurningUtils" { + var exp: dojox.mobile.pageTurningUtils + export=exp; +} +declare module "dojox/mobile/scrollable" { + var exp: dojox.mobile.scrollable + export=exp; +} +declare module "dojox/mobile/TimePicker" { + var exp: dojox.mobile.TimePicker + export=exp; +} +declare module "dojox/mobile/_base" { + var exp: dojox.mobile._base + export=exp; +} +declare module "dojox/mobile/_compat" { + var exp: dojox.mobile._compat + export=exp; +} +declare module "dojox/mobile/_css3" { + var exp: dojox.mobile._css3 + export=exp; +} +declare module "dojox/mobile/_PickerChooser" { + var exp: dojox.mobile._PickerChooser + export=exp; +} +declare module "dojox/mobile/_maskUtils" { + var exp: dojox.mobile._maskUtils + export=exp; +} +declare module "dojox/mobile/bookmarkable" { + var exp: dojox.mobile.bookmarkable + export=exp; +} +declare module "dojox/mobile/common" { + var exp: dojox.mobile.common + export=exp; +} +declare module "dojox/mobile/compat" { + var exp: dojox.mobile.compat + export=exp; +} +declare module "dojox/mobile/i18n" { + var exp: dojox.mobile.i18n + export=exp; +} +declare module "dojox/mobile/i18n.I18NProperties" { + var exp: dojox.mobile.i18n.I18NProperties + export=exp; +} +declare module "dojox/mobile/mobile-all" { + var exp: dojox.mobile.mobile_all + export=exp; +} +declare module "dojox/mobile/sniff" { + var exp: dojox.mobile.sniff + export=exp; +} +declare module "dojox/mobile/transition" { + var exp: dojox.mobile.transition + export=exp; +} +declare module "dojox/mobile/uacss" { + var exp: dojox.mobile.uacss + export=exp; +} +declare module "dojox/mobile/viewRegistry" { + var exp: dojox.mobile.viewRegistry + export=exp; +} +declare module "dojox/mobile/viewRegistry.hash" { + var exp: dojox.mobile.viewRegistry.hash + export=exp; +} +declare module "dojox/mobile/bidi/common" { + var exp: dojox.mobile.bidi.common + export=exp; +} +declare module "dojox/mobile/bidi/common.MARK" { + var exp: dojox.mobile.bidi.common.MARK + export=exp; +} +declare module "dojox/mobile/bidi/_ComboBoxMenu" { + var exp: dojox.mobile.bidi._ComboBoxMenu + export=exp; +} +declare module "dojox/mobile/bidi/_ItemBase" { + var exp: dojox.mobile.bidi._ItemBase + export=exp; +} +declare module "dojox/mobile/bidi/_StoreListMixin" { + var exp: dojox.mobile.bidi._StoreListMixin + export=exp; +} +declare module "dojox/mobile/bidi/Accordion" { + var exp: dojox.mobile.bidi.Accordion + export=exp; +} +declare module "dojox/mobile/bidi/Badge" { + var exp: dojox.mobile.bidi.Badge + export=exp; +} +declare module "dojox/mobile/bidi/Button" { + var exp: dojox.mobile.bidi.Button + export=exp; +} +declare module "dojox/mobile/bidi/Carousel" { + var exp: dojox.mobile.bidi.Carousel + export=exp; +} +declare module "dojox/mobile/bidi/Heading" { + var exp: dojox.mobile.bidi.Heading + export=exp; +} +declare module "dojox/mobile/bidi/IconMenu" { + var exp: dojox.mobile.bidi.IconMenu + export=exp; +} +declare module "dojox/mobile/bidi/IconItem" { + var exp: dojox.mobile.bidi.IconItem + export=exp; +} +declare module "dojox/mobile/bidi/CarouselItem" { + var exp: dojox.mobile.bidi.CarouselItem + export=exp; +} +declare module "dojox/mobile/bidi/ListItem" { + var exp: dojox.mobile.bidi.ListItem + export=exp; +} +declare module "dojox/mobile/bidi/RoundRectCategory" { + var exp: dojox.mobile.bidi.RoundRectCategory + export=exp; +} +declare module "dojox/mobile/bidi/TabBar" { + var exp: dojox.mobile.bidi.TabBar + export=exp; +} +declare module "dojox/mobile/bidi/SwapView" { + var exp: dojox.mobile.bidi.SwapView + export=exp; +} +declare module "dojox/mobile/bidi/Switch" { + var exp: dojox.mobile.bidi.Switch + export=exp; +} +declare module "dojox/mobile/bidi/SpinWheelSlot" { + var exp: dojox.mobile.bidi.SpinWheelSlot + export=exp; +} +declare module "dojox/mobile/bidi/TextBox" { + var exp: dojox.mobile.bidi.TextBox + export=exp; +} +declare module "dojox/mobile/bidi/TabBarButton" { + var exp: dojox.mobile.bidi.TabBarButton + export=exp; +} +declare module "dojox/mobile/bidi/ToolBarButton" { + var exp: dojox.mobile.bidi.ToolBarButton + export=exp; +} +declare module "dojox/mobile/bidi/Tooltip" { + var exp: dojox.mobile.bidi.Tooltip + export=exp; +} +declare module "dojox/mobile/bidi/ValuePickerSlot" { + var exp: dojox.mobile.bidi.ValuePickerSlot + export=exp; +} +declare module "dojox/mobile/bidi/TreeView" { + var exp: dojox.mobile.bidi.TreeView + export=exp; +} +declare module "dojox/mobile/dh/ContentTypeMap" { + var exp: dojox.mobile.dh.ContentTypeMap + export=exp; +} +declare module "dojox/mobile/dh/ContentTypeMap.map" { + var exp: dojox.mobile.dh.ContentTypeMap.map + export=exp; +} +declare module "dojox/mobile/dh/PatternFileTypeMap" { + var exp: dojox.mobile.dh.PatternFileTypeMap + export=exp; +} +declare module "dojox/mobile/dh/PatternFileTypeMap.map" { + var exp: dojox.mobile.dh.PatternFileTypeMap.map + export=exp; +} +declare module "dojox/mobile/dh/SuffixFileTypeMap" { + var exp: dojox.mobile.dh.SuffixFileTypeMap + export=exp; +} +declare module "dojox/mobile/dh/SuffixFileTypeMap.map" { + var exp: dojox.mobile.dh.SuffixFileTypeMap.map + export=exp; +} +declare module "dojox/mobile/dh/DataHandler" { + var exp: dojox.mobile.dh.DataHandler + export=exp; +} +declare module "dojox/mobile/dh/HtmlContentHandler" { + var exp: dojox.mobile.dh.HtmlContentHandler + export=exp; +} +declare module "dojox/mobile/dh/HtmlScriptContentHandler" { + var exp: dojox.mobile.dh.HtmlScriptContentHandler + export=exp; +} +declare module "dojox/mobile/dh/JsonContentHandler" { + var exp: dojox.mobile.dh.JsonContentHandler + export=exp; +} +declare module "dojox/mobile/dh/StringDataSource" { + var exp: dojox.mobile.dh.StringDataSource + export=exp; +} +declare module "dojox/mobile/dh/UrlDataSource" { + var exp: dojox.mobile.dh.UrlDataSource + export=exp; +} diff --git a/dojo/dojox.mvc.d.ts b/dojo/dojox.mvc.d.ts index 5478c1aa4..7604f149c 100644 --- a/dojo/dojox.mvc.d.ts +++ b/dojo/dojox.mvc.d.ts @@ -21502,4 +21502,301 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/mvc" { + var exp: dojox.mvc + export=exp; +} +declare module "dojox/mvc/_atBindingMixin" { + var exp: dojox.mvc._atBindingMixin + export=exp; +} +declare module "dojox/mvc/_atBindingMixin.mixin" { + var exp: dojox.mvc._atBindingMixin.mixin + export=exp; +} +declare module "dojox/mvc/_InlineTemplateMixin" { + var exp: dojox.mvc._InlineTemplateMixin + export=exp; +} +declare module "dojox/mvc/_DataBindingMixin" { + var exp: dojox.mvc._DataBindingMixin + export=exp; +} +declare module "dojox/mvc/_Controller" { + var exp: dojox.mvc._Controller + export=exp; +} +declare module "dojox/mvc/_Container" { + var exp: dojox.mvc._Container + export=exp; +} +declare module "dojox/mvc/EditModelRefController" { + var exp: dojox.mvc.EditModelRefController + export=exp; +} +declare module "dojox/mvc/EditStoreRefListController" { + var exp: dojox.mvc.EditStoreRefListController + export=exp; +} +declare module "dojox/mvc/EditStoreRefController" { + var exp: dojox.mvc.EditStoreRefController + export=exp; +} +declare module "dojox/mvc/ListController" { + var exp: dojox.mvc.ListController + export=exp; +} +declare module "dojox/mvc/Element" { + var exp: dojox.mvc.Element + export=exp; +} +declare module "dojox/mvc/ModelRefController" { + var exp: dojox.mvc.ModelRefController + export=exp; +} +declare module "dojox/mvc/Group" { + var exp: dojox.mvc.Group + export=exp; +} +declare module "dojox/mvc/Generate" { + var exp: dojox.mvc.Generate + export=exp; +} +declare module "dojox/mvc/Output" { + var exp: dojox.mvc.Output + export=exp; +} +declare module "dojox/mvc/StatefulModel" { + var exp: dojox.mvc.StatefulModel + export=exp; +} +declare module "dojox/mvc/StatefulModel.getPlainValueOptions" { + var exp: dojox.mvc.StatefulModel.getPlainValueOptions + export=exp; +} +declare module "dojox/mvc/StatefulModel.getStatefulOptions" { + var exp: dojox.mvc.StatefulModel.getStatefulOptions + export=exp; +} +declare module "dojox/mvc/Repeat" { + var exp: dojox.mvc.Repeat + export=exp; +} +declare module "dojox/mvc/StoreRefController" { + var exp: dojox.mvc.StoreRefController + export=exp; +} +declare module "dojox/mvc/StatefulSeries" { + var exp: dojox.mvc.StatefulSeries + export=exp; +} +declare module "dojox/mvc/Templated" { + var exp: dojox.mvc.Templated + export=exp; +} +declare module "dojox/mvc/WidgetList" { + var exp: dojox.mvc.WidgetList + export=exp; +} +declare module "dojox/mvc/atBindingExtension" { + var exp: dojox.mvc.atBindingExtension + export=exp; +} +declare module "dojox/mvc/at" { + var exp: dojox.mvc.at + export=exp; +} +declare module "dojox/mvc/at.handle" { + var exp: dojox.mvc.at.handle + export=exp; +} +declare module "dojox/mvc/equals" { + var exp: dojox.mvc.equals + export=exp; +} +declare module "dojox/mvc/getPlainValue" { + var exp: dojox.mvc.getPlainValue + export=exp; +} +declare module "dojox/mvc/getStateful" { + var exp: dojox.mvc.getStateful + export=exp; +} +declare module "dojox/mvc/resolve" { + var exp: dojox.mvc.resolve + export=exp; +} +declare module "dojox/mvc/StatefulArray" { + var exp: dojox.mvc.StatefulArray + export=exp; +} +declare module "dojox/mvc/StatefulArray._meta" { + var exp: dojox.mvc.StatefulArray._meta + export=exp; +} +declare module "dojox/mvc/sync" { + var exp: dojox.mvc.sync + export=exp; +} +declare module "dojox/mvc/_base" { + var exp: dojox.mvc._base + export=exp; +} +declare module "dojox/mvc/_base._InlineTemplateMixin" { + var exp: dojox.mvc._base._InlineTemplateMixin + export=exp; +} +declare module "dojox/mvc/_base._Controller" { + var exp: dojox.mvc._base._Controller + export=exp; +} +declare module "dojox/mvc/_base._DataBindingMixin" { + var exp: dojox.mvc._base._DataBindingMixin + export=exp; +} +declare module "dojox/mvc/_base.EditStoreRefController" { + var exp: dojox.mvc._base.EditStoreRefController + export=exp; +} +declare module "dojox/mvc/_base._Container" { + var exp: dojox.mvc._base._Container + export=exp; +} +declare module "dojox/mvc/_base.EditModelRefController" { + var exp: dojox.mvc._base.EditModelRefController + export=exp; +} +declare module "dojox/mvc/_base.EditStoreRefListController" { + var exp: dojox.mvc._base.EditStoreRefListController + export=exp; +} +declare module "dojox/mvc/_base.Element" { + var exp: dojox.mvc._base.Element + export=exp; +} +declare module "dojox/mvc/_base.Generate" { + var exp: dojox.mvc._base.Generate + export=exp; +} +declare module "dojox/mvc/_base.ListController" { + var exp: dojox.mvc._base.ListController + export=exp; +} +declare module "dojox/mvc/_base.ModelRefController" { + var exp: dojox.mvc._base.ModelRefController + export=exp; +} +declare module "dojox/mvc/_base.Group" { + var exp: dojox.mvc._base.Group + export=exp; +} +declare module "dojox/mvc/_base.StatefulSeries" { + var exp: dojox.mvc._base.StatefulSeries + export=exp; +} +declare module "dojox/mvc/_base.Output" { + var exp: dojox.mvc._base.Output + export=exp; +} +declare module "dojox/mvc/_base.StoreRefController" { + var exp: dojox.mvc._base.StoreRefController + export=exp; +} +declare module "dojox/mvc/_base.Repeat" { + var exp: dojox.mvc._base.Repeat + export=exp; +} +declare module "dojox/mvc/_base.StatefulModel" { + var exp: dojox.mvc._base.StatefulModel + export=exp; +} +declare module "dojox/mvc/_base.Templated" { + var exp: dojox.mvc._base.Templated + export=exp; +} +declare module "dojox/mvc/_base.WidgetList" { + var exp: dojox.mvc._base.WidgetList + export=exp; +} +declare module "dojox/mvc/Bind" { + var exp: dojox.mvc.Bind + export=exp; +} +declare module "dojox/mvc/Bind._DataBindingMixin" { + var exp: dojox.mvc.Bind._DataBindingMixin + export=exp; +} +declare module "dojox/mvc/Bind._Controller" { + var exp: dojox.mvc.Bind._Controller + export=exp; +} +declare module "dojox/mvc/Bind._InlineTemplateMixin" { + var exp: dojox.mvc.Bind._InlineTemplateMixin + export=exp; +} +declare module "dojox/mvc/Bind.EditModelRefController" { + var exp: dojox.mvc.Bind.EditModelRefController + export=exp; +} +declare module "dojox/mvc/Bind.EditStoreRefController" { + var exp: dojox.mvc.Bind.EditStoreRefController + export=exp; +} +declare module "dojox/mvc/Bind._Container" { + var exp: dojox.mvc.Bind._Container + export=exp; +} +declare module "dojox/mvc/Bind.EditStoreRefListController" { + var exp: dojox.mvc.Bind.EditStoreRefListController + export=exp; +} +declare module "dojox/mvc/Bind.Element" { + var exp: dojox.mvc.Bind.Element + export=exp; +} +declare module "dojox/mvc/Bind.ListController" { + var exp: dojox.mvc.Bind.ListController + export=exp; +} +declare module "dojox/mvc/Bind.ModelRefController" { + var exp: dojox.mvc.Bind.ModelRefController + export=exp; +} +declare module "dojox/mvc/Bind.Generate" { + var exp: dojox.mvc.Bind.Generate + export=exp; +} +declare module "dojox/mvc/Bind.StatefulSeries" { + var exp: dojox.mvc.Bind.StatefulSeries + export=exp; +} +declare module "dojox/mvc/Bind.Group" { + var exp: dojox.mvc.Bind.Group + export=exp; +} +declare module "dojox/mvc/Bind.StatefulModel" { + var exp: dojox.mvc.Bind.StatefulModel + export=exp; +} +declare module "dojox/mvc/Bind.Output" { + var exp: dojox.mvc.Bind.Output + export=exp; +} +declare module "dojox/mvc/Bind.Repeat" { + var exp: dojox.mvc.Bind.Repeat + export=exp; +} +declare module "dojox/mvc/Bind.StoreRefController" { + var exp: dojox.mvc.Bind.StoreRefController + export=exp; +} +declare module "dojox/mvc/Bind.WidgetList" { + var exp: dojox.mvc.Bind.WidgetList + export=exp; +} +declare module "dojox/mvc/Bind.Templated" { + var exp: dojox.mvc.Bind.Templated + export=exp; +} diff --git a/dojo/dojox.rails.d.ts b/dojo/dojox.rails.d.ts index 15fe907cf..e85112fc3 100644 --- a/dojo/dojox.rails.d.ts +++ b/dojo/dojox.rails.d.ts @@ -19,4 +19,9 @@ declare module dojox { */ live(selector: any, evtName: any, fn: any): void; } -} \ No newline at end of file +} + +declare module "dojox/rails" { + var exp: dojox.rails + export=exp; +} diff --git a/dojo/dojox.robot.d.ts b/dojo/dojox.robot.d.ts index 5152ebb5f..bceb29a86 100644 --- a/dojo/dojox.robot.d.ts +++ b/dojo/dojox.robot.d.ts @@ -15,4 +15,9 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/robot/recorder" { + var exp: dojox.robot.recorder + export=exp; +} diff --git a/dojo/dojox.rpc.d.ts b/dojo/dojox.rpc.d.ts index b76cba781..a67fbaf37 100644 --- a/dojo/dojox.rpc.d.ts +++ b/dojo/dojox.rpc.d.ts @@ -266,4 +266,32 @@ declare module dojox { } -} \ No newline at end of file +} +declare module "dojox/rpc/Rest" { + var exp: dojox.rpc.Rest + export=exp; +} +declare module "dojox/rpc/Rest._index" { + var exp: dojox.rpc.Rest._index + export=exp; +} +declare module "dojox/rpc/Rest._timeStamps" { + var exp: dojox.rpc.Rest._timeStamps + export=exp; +} +declare module "dojox/rpc/OfflineRest" { + var exp: dojox.rpc.OfflineRest + export=exp; +} +declare module "dojox/rpc/JsonRest" { + var exp: dojox.rpc.JsonRest + export=exp; +} +declare module "dojox/rpc/JsonRest.services" { + var exp: dojox.rpc.JsonRest.services + export=exp; +} +declare module "dojox/rpc/JsonRest.schemas" { + var exp: dojox.rpc.JsonRest.schemas + export=exp; +} diff --git a/dojo/dojox.secure.d.ts b/dojo/dojox.secure.d.ts index f049b4985..9925c86f9 100644 --- a/dojo/dojox.secure.d.ts +++ b/dojo/dojox.secure.d.ts @@ -56,4 +56,17 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/secure/DOM" { + var exp: dojox.secure.DOM + export=exp; +} +declare module "dojox/secure/sandbox" { + var exp: dojox.secure.sandbox + export=exp; +} +declare module "dojox/secure/capability" { + var exp: dojox.secure.capability + export=exp; +} diff --git a/dojo/dojox.sketch.d.ts b/dojo/dojox.sketch.d.ts index 4c1a3a389..2e920d9b7 100644 --- a/dojo/dojox.sketch.d.ts +++ b/dojo/dojox.sketch.d.ts @@ -1820,4 +1820,81 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/sketch" { + var exp: dojox.sketch + export=exp; +} +declare module "dojox/sketch/_Plugin" { + var exp: dojox.sketch._Plugin + export=exp; +} +declare module "dojox/sketch/Slider" { + var exp: dojox.sketch.Slider + export=exp; +} +declare module "dojox/sketch/UndoStack" { + var exp: dojox.sketch.UndoStack + export=exp; +} +declare module "dojox/sketch/Toolbar" { + var exp: dojox.sketch.Toolbar + export=exp; +} +declare module "dojox/sketch/Anchor" { + var exp: dojox.sketch.Anchor + export=exp; +} +declare module "dojox/sketch/Annotation" { + var exp: dojox.sketch.Annotation + export=exp; +} +declare module "dojox/sketch/Annotation.Modes" { + var exp: dojox.sketch.Annotation.Modes + export=exp; +} +declare module "dojox/sketch/DoubleArrowAnnotation" { + var exp: dojox.sketch.DoubleArrowAnnotation + export=exp; +} +declare module "dojox/sketch/DoubleArrowAnnotation.control" { + var exp: dojox.sketch.DoubleArrowAnnotation.control + export=exp; +} +declare module "dojox/sketch/DoubleArrowAnnotation.start" { + var exp: dojox.sketch.DoubleArrowAnnotation.start + export=exp; +} +declare module "dojox/sketch/DoubleArrowAnnotation.textPosition" { + var exp: dojox.sketch.DoubleArrowAnnotation.textPosition + export=exp; +} +declare module "dojox/sketch/DoubleArrowAnnotation.transform" { + var exp: dojox.sketch.DoubleArrowAnnotation.transform + export=exp; +} +declare module "dojox/sketch/DoubleArrowAnnotation.end" { + var exp: dojox.sketch.DoubleArrowAnnotation.end + export=exp; +} +declare module "dojox/sketch/Figure" { + var exp: dojox.sketch.Figure + export=exp; +} +declare module "dojox/sketch/PreexistingAnnotation" { + var exp: dojox.sketch.PreexistingAnnotation + export=exp; +} +declare module "dojox/sketch/LeadAnnotation" { + var exp: dojox.sketch.LeadAnnotation + export=exp; +} +declare module "dojox/sketch/SingleArrowAnnotation" { + var exp: dojox.sketch.SingleArrowAnnotation + export=exp; +} +declare module "dojox/sketch/UnderlineAnnotation" { + var exp: dojox.sketch.UnderlineAnnotation + export=exp; +} diff --git a/dojo/dojox.socket.d.ts b/dojo/dojox.socket.d.ts index fd653ad64..37d3f043c 100644 --- a/dojo/dojox.socket.d.ts +++ b/dojo/dojox.socket.d.ts @@ -49,4 +49,13 @@ declare module dojox { */ interface Reconnect{(socket: any, options: any): void} } -} \ No newline at end of file +} + +declare module "dojox/socket" { + var exp: dojox.socket + export=exp; +} +declare module "dojox/socket/Reconnect" { + var exp: dojox.socket.Reconnect + export=exp; +} diff --git a/dojo/dojox.sql.d.ts b/dojo/dojox.sql.d.ts index 19da54076..07b8fbdf3 100644 --- a/dojo/dojox.sql.d.ts +++ b/dojo/dojox.sql.d.ts @@ -27,4 +27,13 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/sql" { + var exp: dojox.sql + export=exp; +} +declare module "dojox/sql/_crypto" { + var exp: dojox.sql._crypto + export=exp; +} diff --git a/dojo/dojox.storage.d.ts b/dojo/dojox.storage.d.ts index f26dfc1aa..868f05a1b 100644 --- a/dojo/dojox.storage.d.ts +++ b/dojo/dojox.storage.d.ts @@ -11,4 +11,9 @@ declare module dojox { */ interface storage { } -} \ No newline at end of file +} + +declare module "dojox/storage" { + var exp: dojox.storage + export=exp; +} diff --git a/dojo/dojox.string.d.ts b/dojo/dojox.string.d.ts index 4abad8bbc..f0c7e8a97 100644 --- a/dojo/dojox.string.d.ts +++ b/dojo/dojox.string.d.ts @@ -268,4 +268,25 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/string/tokenize" { + var exp: dojox.string_.tokenize + export=exp; +} +declare module "dojox/string/sprintf" { + var exp: dojox.string_.sprintf + export=exp; +} +declare module "dojox/string/Builder" { + var exp: dojox.string_.Builder + export=exp; +} +declare module "dojox/string/BidiComplex" { + var exp: dojox.string_.BidiComplex + export=exp; +} +declare module "dojox/string/BidiEngine" { + var exp: dojox.string_.BidiEngine + export=exp; +} diff --git a/dojo/dojox.testing.d.ts b/dojo/dojox.testing.d.ts index e9a0ef891..535ff2c61 100644 --- a/dojo/dojox.testing.d.ts +++ b/dojo/dojox.testing.d.ts @@ -79,4 +79,8 @@ declare module dojox { } } -} \ No newline at end of file +} +declare module "dojox/testing/DocTest" { + var exp: dojox.testing.DocTest + export=exp; +} diff --git a/dojo/dojox.timing.d.ts b/dojo/dojox.timing.d.ts index b23da5c0c..ba4bf27e8 100644 --- a/dojo/dojox.timing.d.ts +++ b/dojo/dojox.timing.d.ts @@ -103,4 +103,21 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/timing" { + var exp: dojox.timing + export=exp; +} +declare module "dojox/timing/Sequence" { + var exp: dojox.timing.Sequence + export=exp; +} +declare module "dojox/timing/doLater" { + var exp: dojox.timing.doLater + export=exp; +} +declare module "dojox/timing/Streamer" { + var exp: dojox.timing.Streamer + export=exp; +} diff --git a/dojo/dojox.treemap.d.ts b/dojo/dojox.treemap.d.ts index 291082979..72ecee258 100644 --- a/dojo/dojox.treemap.d.ts +++ b/dojo/dojox.treemap.d.ts @@ -1104,4 +1104,29 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/treemap/_utils" { + var exp: dojox.treemap._utils + export=exp; +} +declare module "dojox/treemap/GroupLabel" { + var exp: dojox.treemap.GroupLabel + export=exp; +} +declare module "dojox/treemap/DrillDownUp" { + var exp: dojox.treemap.DrillDownUp + export=exp; +} +declare module "dojox/treemap/Keyboard" { + var exp: dojox.treemap.Keyboard + export=exp; +} +declare module "dojox/treemap/ScaledLabel" { + var exp: dojox.treemap.ScaledLabel + export=exp; +} +declare module "dojox/treemap/TreeMap" { + var exp: dojox.treemap.TreeMap + export=exp; +} diff --git a/dojo/dojox.uuid.d.ts b/dojo/dojox.uuid.d.ts index 5669d1475..f6b925d47 100644 --- a/dojo/dojox.uuid.d.ts +++ b/dojo/dojox.uuid.d.ts @@ -221,4 +221,29 @@ declare module dojox { } -} \ No newline at end of file +} + +declare module "dojox/uuid" { + var exp: dojox.uuid + export=exp; +} +declare module "dojox/uuid/generateRandomUuid" { + var exp: dojox.uuid.generateRandomUuid + export=exp; +} +declare module "dojox/uuid/generateTimeBasedUuid" { + var exp: dojox.uuid.generateTimeBasedUuid + export=exp; +} +declare module "dojox/uuid/Uuid" { + var exp: dojox.uuid.Uuid + export=exp; +} +declare module "dojox/uuid/_base.variant" { + var exp: dojox.uuid._base.variant + export=exp; +} +declare module "dojox/uuid/_base.version" { + var exp: dojox.uuid._base.version + export=exp; +} diff --git a/dojo/dojox.validate.d.ts b/dojo/dojox.validate.d.ts index 889cbff85..8fb5b2673 100644 --- a/dojo/dojox.validate.d.ts +++ b/dojo/dojox.validate.d.ts @@ -1303,4 +1303,85 @@ declare module dojox { interface isbn { (value: String): void } } -} \ No newline at end of file +} + +declare module "dojox/validate" { + var exp: dojox.validate + export=exp; +} +declare module "dojox/validate/check" { + var exp: dojox.validate.check + export=exp; +} +declare module "dojox/validate/isbn" { + var exp: dojox.validate.isbn + export=exp; +} +declare module "dojox/validate/ca" { + var exp: dojox.validate.ca + export=exp; +} +declare module "dojox/validate/creditCard" { + var exp: dojox.validate.creditCard + export=exp; +} +declare module "dojox/validate/_base" { + var exp: dojox.validate._base + export=exp; +} +declare module "dojox/validate/_base._cardInfo" { + var exp: dojox.validate._base._cardInfo + export=exp; +} +declare module "dojox/validate/_base._isInRangeCache" { + var exp: dojox.validate._base._isInRangeCache + export=exp; +} +declare module "dojox/validate/regexp" { + var exp: dojox.validate.regexp + export=exp; +} +declare module "dojox/validate/regexp.us" { + var exp: dojox.validate.regexp.us + export=exp; +} +declare module "dojox/validate/regexp.ca" { + var exp: dojox.validate.regexp.ca + export=exp; +} +declare module "dojox/validate/br" { + var exp: dojox.validate.br + export=exp; +} +declare module "dojox/validate/br._isInRangeCache" { + var exp: dojox.validate.br._isInRangeCache + export=exp; +} +declare module "dojox/validate/br._cardInfo" { + var exp: dojox.validate.br._cardInfo + export=exp; +} +declare module "dojox/validate/us" { + var exp: dojox.validate.us + export=exp; +} +declare module "dojox/validate/us._isInRangeCache" { + var exp: dojox.validate.us._isInRangeCache + export=exp; +} +declare module "dojox/validate/us._cardInfo" { + var exp: dojox.validate.us._cardInfo + export=exp; +} +declare module "dojox/validate/web" { + var exp: dojox.validate.web + export=exp; +} +declare module "dojox/validate/web._cardInfo" { + var exp: dojox.validate.web._cardInfo + export=exp; +} +declare module "dojox/validate/web._isInRangeCache" { + var exp: dojox.validate.web._isInRangeCache + export=exp; +} diff --git a/dojo/dojox.widget.d.ts b/dojo/dojox.widget.d.ts index 87b9b111b..bce757a00 100644 --- a/dojo/dojox.widget.d.ts +++ b/dojo/dojox.widget.d.ts @@ -30670,4 +30670,229 @@ declare module dojox { } } -} \ No newline at end of file +} + +declare module "dojox/widget/CalendarViews" { + var exp: dojox.widget.CalendarViews + export=exp; +} +declare module "dojox/widget/FilePicker" { + var exp: dojox.widget.FilePicker + export=exp; +} +declare module "dojox/widget/_CalendarDay" { + var exp: dojox.widget._CalendarDay + export=exp; +} +declare module "dojox/widget/_CalendarMonthYear" { + var exp: dojox.widget._CalendarMonthYear + export=exp; +} +declare module "dojox/widget/_CalendarMonth" { + var exp: dojox.widget._CalendarMonth + export=exp; +} +declare module "dojox/widget/_CalendarBase" { + var exp: dojox.widget._CalendarBase + export=exp; +} +declare module "dojox/widget/_CalendarDayView" { + var exp: dojox.widget._CalendarDayView + export=exp; +} +declare module "dojox/widget/_CalendarMonthView" { + var exp: dojox.widget._CalendarMonthView + export=exp; +} +declare module "dojox/widget/_CalendarYear" { + var exp: dojox.widget._CalendarYear + export=exp; +} +declare module "dojox/widget/_FisheyeFX" { + var exp: dojox.widget._FisheyeFX + export=exp; +} +declare module "dojox/widget/_CalendarView" { + var exp: dojox.widget._CalendarView + export=exp; +} +declare module "dojox/widget/AutoRotator" { + var exp: dojox.widget.AutoRotator + export=exp; +} +declare module "dojox/widget/_Invalidating" { + var exp: dojox.widget._Invalidating + export=exp; +} +declare module "dojox/widget/_CalendarYearView" { + var exp: dojox.widget._CalendarYearView + export=exp; +} +declare module "dojox/widget/_CalendarMonthYearView" { + var exp: dojox.widget._CalendarMonthYearView + export=exp; +} +declare module "dojox/widget/Calendar2Pane" { + var exp: dojox.widget.Calendar2Pane + export=exp; +} +declare module "dojox/widget/CalendarFisheye" { + var exp: dojox.widget.CalendarFisheye + export=exp; +} +declare module "dojox/widget/Calendar" { + var exp: dojox.widget.Calendar + export=exp; +} +declare module "dojox/widget/Dialog" { + var exp: dojox.widget.Dialog + export=exp; +} +declare module "dojox/widget/Calendar3Pane" { + var exp: dojox.widget.Calendar3Pane + export=exp; +} +declare module "dojox/widget/CalendarFx" { + var exp: dojox.widget.CalendarFx + export=exp; +} +declare module "dojox/widget/DailyCalendar" { + var exp: dojox.widget.DailyCalendar + export=exp; +} +declare module "dojox/widget/FisheyeLite" { + var exp: dojox.widget.FisheyeLite + export=exp; +} +declare module "dojox/widget/FisheyeListItem" { + var exp: dojox.widget.FisheyeListItem + export=exp; +} +declare module "dojox/widget/ColorPicker" { + var exp: dojox.widget.ColorPicker + export=exp; +} +declare module "dojox/widget/FisheyeList" { + var exp: dojox.widget.FisheyeList + export=exp; +} +declare module "dojox/widget/DialogSimple" { + var exp: dojox.widget.DialogSimple + export=exp; +} +declare module "dojox/widget/MonthAndYearlyCalendar" { + var exp: dojox.widget.MonthAndYearlyCalendar + export=exp; +} +declare module "dojox/widget/MonthlyCalendar" { + var exp: dojox.widget.MonthlyCalendar + export=exp; +} +declare module "dojox/widget/PagerItem" { + var exp: dojox.widget.PagerItem + export=exp; +} +declare module "dojox/widget/Pager" { + var exp: dojox.widget.Pager + export=exp; +} +declare module "dojox/widget/MultiSelectCalendar" { + var exp: dojox.widget.MultiSelectCalendar + export=exp; +} +declare module "dojox/widget/MultiSelectCalendar._MonthDropDown" { + var exp: dojox.widget.MultiSelectCalendar._MonthDropDown + export=exp; +} +declare module "dojox/widget/Roller" { + var exp: dojox.widget.Roller + export=exp; +} +declare module "dojox/widget/Roller._Hover" { + var exp: dojox.widget.Roller._Hover + export=exp; +} +declare module "dojox/widget/Roller.RollerSlide" { + var exp: dojox.widget.Roller.RollerSlide + export=exp; +} +declare module "dojox/widget/PlaceholderMenuItem" { + var exp: dojox.widget.PlaceholderMenuItem + export=exp; +} +declare module "dojox/widget/Rotator" { + var exp: dojox.widget.Rotator + export=exp; +} +declare module "dojox/widget/PortletDialogSettings" { + var exp: dojox.widget.PortletDialogSettings + export=exp; +} +declare module "dojox/widget/Portlet" { + var exp: dojox.widget.Portlet + export=exp; +} +declare module "dojox/widget/PortletSettings" { + var exp: dojox.widget.PortletSettings + export=exp; +} +declare module "dojox/widget/Selection" { + var exp: dojox.widget.Selection + export=exp; +} +declare module "dojox/widget/TitleGroup" { + var exp: dojox.widget.TitleGroup + export=exp; +} +declare module "dojox/widget/UpgradeBar" { + var exp: dojox.widget.UpgradeBar + export=exp; +} +declare module "dojox/widget/Toaster" { + var exp: dojox.widget.Toaster + export=exp; +} +declare module "dojox/widget/Wizard" { + var exp: dojox.widget.Wizard + export=exp; +} +declare module "dojox/widget/Standby" { + var exp: dojox.widget.Standby + export=exp; +} +declare module "dojox/widget/YearlyCalendar" { + var exp: dojox.widget.YearlyCalendar + export=exp; +} +declare module "dojox/widget/WizardPane" { + var exp: dojox.widget.WizardPane + export=exp; +} +declare module "dojox/widget/rotator/Fade" { + var exp: dojox.widget.rotator.Fade + export=exp; +} +declare module "dojox/widget/rotator/PanFade" { + var exp: dojox.widget.rotator.PanFade + export=exp; +} +declare module "dojox/widget/rotator/Pan" { + var exp: dojox.widget.rotator.Pan + export=exp; +} +declare module "dojox/widget/rotator/Slide" { + var exp: dojox.widget.rotator.Slide + export=exp; +} +declare module "dojox/widget/rotator/Wipe" { + var exp: dojox.widget.rotator.Wipe + export=exp; +} +declare module "dojox/widget/rotator/Controller" { + var exp: dojox.widget.rotator.Controller + export=exp; +} +declare module "dojox/widget/rotator/ThumbnailController" { + var exp: dojox.widget.rotator.ThumbnailController + export=exp; +} From d6fa105a4f3b0d84e3e0a506c5b11d22ede23e52 Mon Sep 17 00:00:00 2001 From: Mike Van Sickle Date: Wed, 10 Dec 2014 15:56:45 -0500 Subject: [PATCH 03/10] - Updated type definitions to correct various function prototypes - updated README.md with a more efficient way to integrate Dojo and TypeScripts' class systems --- dojo/README.md | 273 +++++++--------------------------------- dojo/dojo.d.ts | 19 +-- dojo/dojox.dgauges.d.ts | 8 +- dojo/dojox.embed.d.ts | 2 +- 4 files changed, 61 insertions(+), 241 deletions(-) diff --git a/dojo/README.md b/dojo/README.md index 1fa593757..555cc00d1 100644 --- a/dojo/README.md +++ b/dojo/README.md @@ -24,12 +24,11 @@ A normal dojo module might look something like this: When using the TypeScript, you can write the following: ```ts - define(['dojo/request', 'dojo/request/xhr'], - function (request: dojo.request, - xhr: dojo.request.xhr) { - ... - } - ); +import request = require("dojo/request"); +import xhr = require("dojo/request/xhr"); + +... + ``` Inside of the define variable, both `request` and `xhr` will work as the functions that come from Dojo, only they are strongly typed. @@ -68,231 +67,49 @@ When using the TypeScript, you can write the following: The first challenge that we run into is how to define the class. We will define that using standard TypeScript semantics as follows: ```ts - module App { - export class Foo extends dijit._WidgetBase implements dijit._TemplatedMixin { - constructor(public templateString= "
Hello TypeScript
", - public message= "") { - super(); - } +import dojoDeclare = require("dojo/_base/declare"); +import _WidgetBase = require("dijit/_WidgetBase"); +import _TemplatedMixin = require("dijit/_TemplatedMixin"); - sayMessage() { - alert(this.message); - } +import template = require("dojo/text!./_templates/View.html"); - getServerInfo() { - request.get("http://dojoAndTypeScriptTogetherAtLast.html", (data: string) => { - console.log(data); - }); - } - +class Foo extends dijit._WidgetBase { + + message: String = ""; + + constructor(args?: Object, element?: HTMLElement) { + return new FooType(args, element); } - } + + sayMessage() { + alert(this.message); + } + + getServerInfo() { + request.get('http://dojoAndTypeScriptTogetherAtLast.html', function(data) { + console.log(data); + }); + } + +} + +var FooType = dojoDeclare("", [_WidgetBase, _TemplatedMixin], { + templateString: '
Hello TypeScript { - console.log(data); - }); - } - - } - - export class WidgetBaseWithTemplatedMixin extends dijit._WidgetBase implements dijit._TemplatedMixin { - "attachScope": Object; - "searchContainerNode": boolean; - "templatePath": string; - "templateString": string; - buildRendering(): {} - destroyRendering(): {} - getCachedTemplate(templateString: String, alwaysUseString: boolean, doc: HTMLDocument): {} - - } - } -``` - -Now the base class meets TypeScript's requirements so it is happy. This class could easily be moved out to a general add-in file so that it can be created and forgotten since it is only here to make TypeScript happy. - -The second problem that we had as that `request` is undefined. This is going to take a bit more trickery as shown below: - -```ts - module App { - export class Foo extends WidgetBaseWithTemplatedMixin { - constructor(public templateString= "
Hello TypeScript
", - public message= "") { - super(); - } - - public request: dojo.request; - - sayMessage() { - alert(this.message); - } - - getServerInfo() { - this.request.get("http://dojoAndTypeScriptTogetherAtLast.html").then((data: string) => { - console.log(data); - }); - } - - } - - export class WidgetBaseWithTemplatedMixin extends dijit._WidgetBase implements dijit._TemplatedMixin { - public static getPrototype(deps: Object) { - if (deps) { - for (var i in deps) { - this.prototype[i] = deps[i]; - } - - return this.prototype; - } - } - - "attachScope": Object; - "searchContainerNode": boolean; - "templatePath": string; - "templateString": string; - buildRendering(): {} - destroyRendering(): {} - getCachedTemplate(templateString: String, alwaysUseString: boolean, doc: HTMLDocument): {} - - } - } - - - define(['dojo/_base/declare', 'dijit/_WidgetBase', 'dijit/_TemplatedMixin', 'dojo/request'], - function (dojoDeclare, _WidgetBase, _TemplatedMixin, request) { - var deps = { - request: request - }; - - var Foo = dojoDeclare([_WidgetBase, _TemplatedMixin], App.Foo.getPrototype(deps)); - - return Foo; - } - ); -``` - -Yes, I know - pretty crazy right. But, we're getting close... - -In the Dojo module, we are building an object that contains references to each of the dependencies. We are then passing that object into the static method `getPrototype` that we have added to the base class. This method takes an object literal and mixes it into the class's prototype. In this way, the module dependencies are made available to the TypeScript class via its prototype. The last thing we need to do is change the `getServerInfo()`'s call to `request` to be a `this.request` call since it is calling through its prototype instead of the ambient object that is used in Dojo. - -Okay, great. TypeScript is happy. Everything should be working right? Wrong. - -We have two more problems that are not apparent until the code is actually executed. They are both related to our usage of the `extends` keyword that we used to show that our `Foo` class extends from `dijit._WidgetBase`. - -The first problem is that, as stated previously, TypeScript has its own implementation of a class system in JavaScript. When one class extends another, TypeScript injects the following snippet into the module: - -```js - var __extends = this.__extends || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - __.prototype = b.prototype; - d.prototype = new __(); - }; -``` - -This method is called in a closure that wraps the class definition and mixes the parent's prototype and owned properties into the child class. However, this won't work in our case, because our base class is `dijit._WidgetBase` which doesn't actually exist in the global namespace (where TypeScript expects it). This is because we are still using Dojo's class system (via `declare`). This is an important, and confusing, point. Our class is actually being constructed by Dojo using declare. However, we are working with the class as if it was created in the way the TypeScript expects. In short, this means that we don't actually need the `__extends` function to work, but something needs to be there so that the constructor function doesn't die. The solve is actually relatively easy: In the main HTML page, add this function before the tag that includes `dojo.js`: - -```js -var __extends = function (d, b) { - if (d && b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { - this.constructor = d; - } - - __.prototype = b.prototype; - d.prototype = new __(); - } -}; -``` - -All this does is check to see if `d` and `b` are defined before running. Since TypeScript won't override __extends, it will allow us to override the default implementation. - -Okay, only one more thing to deal with: the call to super. This issue is also related to TypeScript's method for handling inheritance. After calling `__extends`, the generated constructor function will call the parent's constructor function. Once again, we are hit by the fact that our base class (`dijit._WidgetBase`) doesn't actually exist where TypeScript is expecting it. The only way around this is to give TypeScript something to call. This simplest thing to do is to add a no-op function for TypeScript to call. In short add this: - -```js - var dijit = dijit || {}; - dijit._WidgetBase = function() {} -``` - -Into the page after Dojo bootstraps, but before our module loads. The simplest way to do this is to create a little module that does this and added it to the array of modules loaded in the `define()` call of the module. - -Okay, so things look pretty messy right now. There are several hacks and tricks that we have to play in order to allow TypeScript and Dojo to work together. The nice thing about most of this is that it can all be shoved into a single helper module and never thought of again. Here is an example of what that module would look like: - -```ts - "use strict"; - - define([], function () { }); - - var __extends = function (d, b) { - if (d && b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { - this.constructor = d; - } - - __.prototype = b.prototype; - d.prototype = new __(); - } - }; - - window['dojo'] = {}; - window['dijit'] = { - _WidgetBase: function () { - - } - }; - - module Base { - function getPrototype(type: Function, deps: Object): Object { - if (deps) { - for (var i in deps) { - type.prototype[i] = deps[i]; - } - - return this.prototype; - } - } - export class WidgetBaseWithTemplatedMixin extends dijit._WidgetBase implements dijit._TemplatedMixin { - public static getPrototype(deps: Object): Object { - return getPrototype(this, deps); - } - - "attachScope": Object; - "searchContainerNode": boolean; - "templatePath": string; - "templateString": string; - buildRendering() { } - destroyRendering() { } - getCachedTemplate(templateString: String, alwaysUseString: boolean, doc: HTMLDocument) { } - - } - } -``` - -This module can then be added to whenever we have another base class / mix-in combination (e.g. dijit/_WidgetBase, dijit/_TemplatedMixin, and dijit/_WidgetsInTemplateMixin). When done this way, the only regularly visible changes that we have to do is to compose the hash of dependencies and call the `getPrototype` as the last argument to `declare`. - -## Appendix - -Examples: -* https://github.com/craigstjean/typescript-dojo-sample - diff --git a/dojo/dojo.d.ts b/dojo/dojo.d.ts index b13ba2930..289a741a9 100644 --- a/dojo/dojo.d.ts +++ b/dojo/dojo.d.ts @@ -1,3 +1,6 @@ +declare function define(dependencies: String[], factory: Function): any; +declare function require(config?:Object, dependencies?: String[], callback?: Function): any; + declare module dojox.dtl { interface __StringArgs { } interface __ObjectArgs { } @@ -20,28 +23,28 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - del(url: String, options: dojo.request.__BaseOptions): dojo.request.__Promise; + del(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP GET request using the default transport for the current platform. * * @param url URL to request * @param options OptionalOptions for the request. */ - get(url: String, options: dojo.request.__BaseOptions): dojo.request.__Promise; + get(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using the default transport for the current platform. * * @param url URL to request * @param options OptionalOptions for the request. */ - post(url: String, options: dojo.request.__BaseOptions): any; + post(url: String, options?: dojo.request.__BaseOptions): any; /** * Send an HTTP POST request using the default transport for the current platform. * * @param url URL to request * @param options OptionalOptions for the request. */ - put(url: String, options: dojo.request.__BaseOptions): dojo.request.__Promise; + put(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; } module request { @@ -581,7 +584,7 @@ declare module dojo { * */ "checkString": string; - /** + /**dojo * Data to transfer. This is ignored for GET and DELETE * requests. * @@ -980,7 +983,7 @@ declare module dojo { * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. */ - then(callback: Function, errback: Function, progback: Function): dojo.promise.Promise; + then(callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; /** * */ @@ -3196,7 +3199,7 @@ declare module dojo { * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ - interface declare{(className?: String, superclass?: Function, props?: Object): void} + interface declare { (className?: String, superclass?: Function, props?: Object): any} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.html * @@ -3271,7 +3274,7 @@ declare module dojo { * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ - interface declare{(className?: String, superclass?: Function[], props?: Object): void} + interface declare{(className?: String, superclass?: Function[], props?: Object): any} interface declare { /** * Mix in properties skipping a constructor and decorating functions diff --git a/dojo/dojox.dgauges.d.ts b/dojo/dojox.dgauges.d.ts index 4b06c89ef..8510b1194 100644 --- a/dojo/dojox.dgauges.d.ts +++ b/dojo/dojox.dgauges.d.ts @@ -22103,19 +22103,19 @@ declare module "dojox/dgauges/components/classic/SemiCircularLinearGauge" { export=exp; } declare module "dojox/dgauges/components/default/CircularLinearGauge" { - var exp: dojox.dgauges.components.default.CircularLinearGauge + var exp: dojox.dgauges.components.default_.CircularLinearGauge export=exp; } declare module "dojox/dgauges/components/default/HorizontalLinearGauge" { - var exp: dojox.dgauges.components.default.HorizontalLinearGauge + var exp: dojox.dgauges.components.default_.HorizontalLinearGauge export=exp; } declare module "dojox/dgauges/components/default/SemiCircularLinearGauge" { - var exp: dojox.dgauges.components.default.SemiCircularLinearGauge + var exp: dojox.dgauges.components.default_.SemiCircularLinearGauge export=exp; } declare module "dojox/dgauges/components/default/VerticalLinearGauge" { - var exp: dojox.dgauges.components.default.VerticalLinearGauge + var exp: dojox.dgauges.components.default_.VerticalLinearGauge export=exp; } declare module "dojox/dgauges/components/green/HorizontalLinearGauge" { diff --git a/dojo/dojox.embed.d.ts b/dojo/dojox.embed.d.ts index 91e37c882..f2484f3a4 100644 --- a/dojo/dojox.embed.d.ts +++ b/dojo/dojox.embed.d.ts @@ -1023,6 +1023,6 @@ declare module "dojox/embed/flashVars" { export=exp; } declare module "dojox/embed/Object" { - var exp: dojox.embed.Object + var exp: dojox.embed.Object_ export=exp; } From db04c56770327ef93747216f53764e9343e32907 Mon Sep 17 00:00:00 2001 From: Mike Van Sickle Date: Thu, 11 Dec 2014 16:12:49 -0500 Subject: [PATCH 04/10] - Added dijit/ConfirmDialog and dijit/_ConfirmDialogMixin type defs - various corrections to type defs --- dojo/dijit.d.ts | 1376 ++++++++++++++++++++++++++++++++++++++++++++++- dojo/dojo.d.ts | 86 +-- 2 files changed, 1413 insertions(+), 49 deletions(-) diff --git a/dojo/dijit.d.ts b/dojo/dijit.d.ts index 10a0ab717..b4e4a9ba0 100644 --- a/dojo/dijit.d.ts +++ b/dojo/dijit.d.ts @@ -2403,7 +2403,7 @@ declare module dijit { * @param eventObj Optional * @param callbackArgs Optional */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; + emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Get a property from a widget. * Get a named property from a widget. The property may @@ -2463,7 +2463,7 @@ declare module dijit { * @param type Name of event (ex: "click") or extension event like touch.press. * @param func */ - on(type: String, func: Function): any; + on(type: String, func: Function): {remove:{():void}}; /** * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). @@ -2473,7 +2473,7 @@ declare module dijit { * @param type Name of event (ex: "click") or extension event like touch.press. * @param func */ - on(type: Function, func: Function): any; + on(type: Function, func: Function): {remove:{():void}}; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. @@ -2501,7 +2501,7 @@ declare module dijit { * @param reference Widget, DOMNode, or id of widget or DOMNode * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ - placeAt(reference: HTMLElement, position: String): any; + placeAt(reference: HTMLElement, position?: String): any; /** * Place this widget somewhere in the DOM based * on standard domConstruct.place() conventions. @@ -2512,7 +2512,7 @@ declare module dijit { * @param reference Widget, DOMNode, or id of widget or DOMNode * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ - placeAt(reference: dijit._WidgetBase, position: String): any; + placeAt(reference: dijit._WidgetBase, position?: String): any; /** * Place this widget somewhere in the DOM based * on standard domConstruct.place() conventions. @@ -2523,7 +2523,7 @@ declare module dijit { * @param reference Widget, DOMNode, or id of widget or DOMNode * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ - placeAt(reference: String, position: number): any; + placeAt(reference: String, position?: number): any; /** * Place this widget somewhere in the DOM based * on standard domConstruct.place() conventions. @@ -2534,7 +2534,7 @@ declare module dijit { * @param reference Widget, DOMNode, or id of widget or DOMNode * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ - placeAt(reference: HTMLElement, position: number): any; + placeAt(reference: HTMLElement, position?: number): any; /** * Place this widget somewhere in the DOM based * on standard domConstruct.place() conventions. @@ -2545,7 +2545,7 @@ declare module dijit { * @param reference Widget, DOMNode, or id of widget or DOMNode * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ - placeAt(reference: dijit._WidgetBase, position: number): any; + placeAt(reference: dijit._WidgetBase, position?: number): any; /** * Processing after the DOM fragment is created * Called after the DOM fragment has been created, but not necessarily @@ -11210,6 +11210,1357 @@ declare module dijit { */ onShow(): void; } + /** + * Permalink: http://dojotoolkit.org/api/1.10/dijit/_ConfirmDialogMixin.html + * + * Mixin for Dialog/TooltipDialog with OK/Cancel buttons. + * + */ + class _ConfirmDialogMixin extends dijit._WidgetsInTemplateMixin { + constructor(); + /** + * + */ + "actionBarTemplate": Object; + /** + * Label of cancel button + * + */ + "buttonCancel": string; + /** + * Label of OK button + * + */ + "buttonOk": string; + /** + * Used to provide a context require to the dojo/parser in order to be + * able to use relative MIDs (e.g. ./Widget) in the widget's template. + * + */ + "contextRequire": Function; + /** + * Should we parse the template to find widgets that might be + * declared in markup inside it? (Remove for 2.0 and assume true) + * + */ + "widgetsInTemplate": boolean; + /** + * + */ + startup(): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.10/dijit/ConfirmDialog.html + * + * A Dialog with OK/Cancel buttons. + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + */ + class ConfirmDialog extends dijit.Dialog implements dijit._ConfirmDialogMixin { + constructor(params: Object, srcNodeRef?: HTMLElement); + /** + * HTML snippet to show the action bar (gray bar with OK/cancel buttons). + * Blank by default, but used by ConfirmDialog/ConfirmTooltipDialog subclasses. + * + */ + "actionBarTemplate": string; + set(property:"actionBarTemplate", value: string): void; + get(property:"actionBarTemplate"): string; + watch(property:"actionBarTemplate", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * True if mouse was pressed while over this widget, and hasn't been released yet + * + */ + "active": boolean; + set(property:"active", value: boolean): void; + get(property:"active"): boolean; + watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Object to which attach points and events will be scoped. Defaults + * to 'this'. + * + */ + "attachScope": Object; + set(property:"attachScope", value: Object): void; + get(property:"attachScope"): Object; + watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} + /** + * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute + * for each XXX attribute to be mapped to the DOM. + * + * attributeMap sets up a "binding" between attributes (aka properties) + * of the widget and the widget's DOM. + * Changes to widget attributes listed in attributeMap will be + * reflected into the DOM. + * + * For example, calling set('title', 'hello') + * on a TitlePane will automatically cause the TitlePane's DOM to update + * with the new title. + * + * attributeMap is a hash where the key is an attribute of the widget, + * and the value reflects a binding to a: + * + * DOM node attribute + * focus: {node: "focusNode", type: "attribute"} + * Maps this.focus to this.focusNode.focus + * + * DOM node innerHTML + * title: { node: "titleNode", type: "innerHTML" } + * Maps this.title to this.titleNode.innerHTML + * + * DOM node innerText + * title: { node: "titleNode", type: "innerText" } + * Maps this.title to this.titleNode.innerText + * + * DOM node CSS class + * myClass: { node: "domNode", type: "class" } + * Maps this.myClass to this.domNode.className + * + * If the value is an array, then each element in the array matches one of the + * formats of the above list. + * + * There are also some shorthands for backwards compatibility: + * + * string --> { node: string, type: "attribute" }, for example: + * "focusNode" ---> { node: "focusNode", type: "attribute" } + * "" --> { node: "domNode", type: "attribute" } + * + */ + "attributeMap": Object; + set(property:"attributeMap", value: Object): void; + get(property:"attributeMap"): Object; + watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} + /** + * A Toggle to modify the default focus behavior of a Dialog, which + * is to focus on the first dialog element after opening the dialog. + * False will disable autofocusing. Default: true + * + */ + "autofocus": boolean; + set(property:"autofocus", value: boolean): void; + get(property:"autofocus"): boolean; + watch(property:"autofocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * + */ + "baseClass": string; + set(property:"baseClass", value: string): void; + get(property:"baseClass"): string; + watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Label of cancel button + * + */ + "buttonCancel": string; + set(property:"buttonCancel", value: string): void; + get(property:"buttonCancel"): string; + watch(property:"buttonCancel", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Label of OK button + * + */ + "buttonOk": string; + set(property:"buttonOk", value: string): void; + get(property:"buttonOk"): string; + watch(property:"buttonOk", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * + */ + "class": string; + set(property:"class", value: string): void; + get(property:"class"): string; + watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Dialog show [x] icon to close itself, and ESC key will close the dialog. + * + */ + "closable": boolean; + set(property:"closable", value: boolean): void; + get(property:"closable"): boolean; + watch(property:"closable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Designates where children of the source DOM node will be placed. + * "Children" in this case refers to both DOM nodes and widgets. + * For example, for myWidget: + * + *
+ * here's a plain DOM node + * and a widget + * and another plain DOM node + *
+ * containerNode would point to: + * + * here's a plain DOM node + * and a widget + * and another plain DOM node + * In templated widgets, "containerNode" is set via a + * data-dojo-attach-point assignment. + * + * containerNode must be defined for any widget that accepts innerHTML + * (like ContentPane or BorderContainer or even Button), and conversely + * is null for widgets that don't, like TextBox. + * + */ + "containerNode": HTMLElement; + set(property:"containerNode", value: HTMLElement): void; + get(property:"containerNode"): HTMLElement; + watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} + /** + * The innerHTML of the ContentPane. + * Note that the initialization parameter / argument to set("content", ...) + * can be a String, DomNode, Nodelist, or _Widget. + * + */ + "content": string; + set(property:"content", value: string): void; + get(property:"content"): string; + watch(property:"content", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Used to provide a context require to the dojo/parser in order to be + * able to use relative MIDs (e.g. ./Widget) in the widget's template. + * + */ + "contextRequire": Function; + set(property:"contextRequire", value: Function): void; + get(property:"contextRequire"): Function; + watch(property:"contextRequire", callback:{(property?:string, oldValue?:Function, newValue?: Function):void}) :{unwatch():void} + /** + * + */ + "cssStateNodes": Object; + set(property:"cssStateNodes", value: Object): void; + get(property:"cssStateNodes"): Object; + watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} + /** + * Bi-directional support, as defined by the HTML DIR + * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's + * default direction. + * + */ + "dir": string; + set(property:"dir", value: string): void; + get(property:"dir"): string; + watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * + * false - don't adjust size of children + * true - if there is a single visible child widget, set it's size to however big the ContentPane is + * + */ + "doLayout": boolean; + set(property:"doLayout", value: boolean): void; + get(property:"doLayout"): boolean; + watch(property:"doLayout", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * This is our visible representation of the widget! Other DOM + * Nodes may by assigned to other properties, usually through the + * template system's data-dojo-attach-point syntax, but the domNode + * property is the canonical "top level" node in widget UI. + * + */ + "domNode": HTMLElement; + set(property:"domNode", value: HTMLElement): void; + get(property:"domNode"): HTMLElement; + watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} + /** + * Toggles the movable aspect of the Dialog. If true, Dialog + * can be dragged by it's title. If false it will remain centered + * in the viewport. + * + */ + "draggable": boolean; + set(property:"draggable", value: boolean): void; + get(property:"draggable"): boolean; + watch(property:"draggable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * The time in milliseconds it takes the dialog to fade in and out + * + */ + "duration": number; + set(property:"duration", value: number): void; + get(property:"duration"): number; + watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} + /** + * Message that shows if an error occurs + * + */ + "errorMessage": string; + set(property:"errorMessage", value: string): void; + get(property:"errorMessage"): string; + watch(property:"errorMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Extract visible content from inside of .... . + * I.e., strip and (and it's contents) from the href + * + */ + "extractContent": boolean; + set(property:"extractContent", value: boolean): void; + get(property:"extractContent"): boolean; + watch(property:"extractContent", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * This widget or a widget it contains has focus, or is "active" because + * it was recently clicked. + * + */ + "focused": boolean; + set(property:"focused", value: boolean): void; + get(property:"focused"): boolean; + watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * True if cursor is over this widget + * + */ + "hovering": boolean; + set(property:"hovering", value: boolean): void; + get(property:"hovering"): boolean; + watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * The href of the content that displays now. + * Set this at construction if you want to load data externally when the + * pane is shown. (Set preload=true to load it immediately.) + * Changing href after creation doesn't have any effect; Use set('href', ...); + * + */ + "href": string; + set(property:"href", value: string): void; + get(property:"href"): string; + watch(property:"href", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * A unique, opaque ID string that can be assigned by users or by the + * system. If the developer passes an ID which is known not to be + * unique, the specified ID is ignored and the system-generated ID is + * used instead. + * + */ + "id": string; + set(property:"id", value: string): void; + get(property:"id"): string; + watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Parameters to pass to xhrGet() request, for example: + * + *
+ * + */ + "ioArgs": Object; + set(property:"ioArgs", value: Object): void; + get(property:"ioArgs"): Object; + watch(property:"ioArgs", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} + /** + * Indicates that this widget will call resize() on it's child widgets + * when they become visible. + * + */ + "isLayoutContainer": boolean; + set(property:"isLayoutContainer", value: boolean): void; + get(property:"isLayoutContainer"): boolean; + watch(property:"isLayoutContainer", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * True if the ContentPane has data in it, either specified + * during initialization (via href or inline content), or set + * via set('content', ...) / set('href', ...) + * + * False if it doesn't have any content, or if ContentPane is + * still in the process of downloading href. + * + */ + "isLoaded": boolean; + set(property:"isLoaded", value: boolean): void; + get(property:"isLoaded"): boolean; + watch(property:"isLoaded", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Rarely used. Overrides the default Dojo locale used to render this widget, + * as defined by the HTML LANG attribute. + * Value must be among the list of locales specified during by the Dojo bootstrap, + * formatted according to RFC 3066 (like en-us). + * + */ + "lang": string; + set(property:"lang", value: string): void; + get(property:"lang"): string; + watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Message that shows while downloading + * + */ + "loadingMessage": string; + set(property:"loadingMessage", value: string): void; + get(property:"loadingMessage"): string; + watch(property:"loadingMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Maximum size to allow the dialog to expand to, relative to viewport size + * + */ + "maxRatio": number; + set(property:"maxRatio", value: number): void; + get(property:"maxRatio"): number; + watch(property:"maxRatio", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} + /** + * This is the dojo.Deferred returned by set('href', ...) and refresh(). + * Calling onLoadDeferred.then() registers your + * callback to be called only once, when the prior set('href', ...) call or + * the initial href parameter to the constructor finishes loading. + * + * This is different than an onLoad() handler which gets called any time any href + * or content is loaded. + * + */ + "onLoadDeferred": Object; + set(property:"onLoadDeferred", value: Object): void; + get(property:"onLoadDeferred"): Object; + watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} + /** + * True if Dialog is currently displayed on screen. + * + */ + "open": boolean; + set(property:"open", value: boolean): void; + get(property:"open"): boolean; + watch(property:"open", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * The document this widget belongs to. If not specified to constructor, will default to + * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global + * + */ + "ownerDocument": Object; + set(property:"ownerDocument", value: Object): void; + get(property:"ownerDocument"): Object; + watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} + /** + * Parse content and create the widgets, if any. + * + */ + "parseOnLoad": boolean; + set(property:"parseOnLoad", value: boolean): void; + get(property:"parseOnLoad"): boolean; + watch(property:"parseOnLoad", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Flag passed to parser. Root for attribute names to search for. If scopeName is dojo, + * will search for data-dojo-type (or dojoType). For backwards compatibility + * reasons defaults to dojo._scopeName (which is "dojo" except when + * multi-version support is used, when it will be something like dojo16, dojo20, etc.) + * + */ + "parserScope": string; + set(property:"parserScope", value: string): void; + get(property:"parserScope"): string; + watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Force load of data on initialization even if pane is hidden. + * + */ + "preload": boolean; + set(property:"preload", value: boolean): void; + get(property:"preload"): boolean; + watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Prevent caching of data from href's by appending a timestamp to the href. + * + */ + "preventCache": boolean; + set(property:"preventCache", value: boolean): void; + get(property:"preventCache"): boolean; + watch(property:"preventCache", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * A Toggle to modify the default focus behavior of a Dialog, which + * is to re-focus the element which had focus before being opened. + * False will disable refocusing. Default: true + * + */ + "refocus": boolean; + set(property:"refocus", value: boolean): void; + get(property:"refocus"): boolean; + watch(property:"refocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Refresh (re-download) content when pane goes from hidden to shown + * + */ + "refreshOnShow": boolean; + set(property:"refreshOnShow", value: boolean): void; + get(property:"refreshOnShow"): boolean; + watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * + */ + "searchContainerNode": boolean; + set(property:"searchContainerNode", value: boolean): void; + get(property:"searchContainerNode"): boolean; + watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * pointer to original DOM node + * + */ + "srcNodeRef": HTMLElement; + set(property:"srcNodeRef", value: HTMLElement): void; + get(property:"srcNodeRef"): HTMLElement; + watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} + /** + * Will be "Error" if one or more of the child widgets has an invalid value, + * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", + * which indicates that the form is ready to be submitted. + * + */ + "state": string; + set(property:"state", value: string): void; + get(property:"state"): string; + watch(property:"state", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * + */ + "stopParser": boolean; + set(property:"stopParser", value: boolean): void; + get(property:"stopParser"): boolean; + watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * HTML style attributes as cssText string or name/value hash + * + */ + "style": string; + set(property:"style", value: string): void; + get(property:"style"): string; + watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Path to template (HTML file) for this widget relative to dojo.baseUrl. + * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead + * + */ + "templatePath": string; + set(property:"templatePath", value: string): void; + get(property:"templatePath"): string; + watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * + */ + "templateString": string; + set(property:"templateString", value: string): void; + get(property:"templateString"): string; + watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * HTML title attribute. + * + * For form widgets this specifies a tooltip to display when hovering over + * the widget (just like the native HTML title attribute). + * + * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, + * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's + * interpreted as HTML. + * + */ + "title": string; + set(property:"title", value: string): void; + get(property:"title"): string; + watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * When this widget's title attribute is used to for a tab label, accordion pane title, etc., + * this specifies the tooltip to appear when the mouse is hovered over that text. + * + */ + "tooltip": string; + set(property:"tooltip", value: string): void; + get(property:"tooltip"): string; + watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} + /** + * Should we parse the template to find widgets that might be + * declared in markup inside it? (Remove for 2.0 and assume true) + * + */ + "widgetsInTemplate": boolean; + set(property:"widgetsInTemplate", value: boolean): void; + get(property:"widgetsInTemplate"): boolean; + watch(property:"widgetsInTemplate", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} + /** + * Makes the given widget a child of this widget. + * Inserts specified child widget's dom node as a child of this widget's + * container node, and possibly does other processing (such as layout). + * + * @param widget + * @param insertIndex Optional + */ + addChild(widget: dijit._WidgetBase, insertIndex: number): void; + /** + * This method is deprecated, use get() or set() directly. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + */ + attr(name: String, value: Object): any; + /** + * This method is deprecated, use get() or set() directly. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + */ + attr(name: Object, value: Object): any; + /** + * + */ + buildRendering(): void; + /** + * Cancels an in-flight download of content + * + */ + cancel(): void; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: Object, event: String, method: String): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: any, event: String, method: String): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: Object, event: Function, method: String): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: any, event: Function, method: String): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: Object, event: String, method: Function): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: any, event: String, method: Function): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: Object, event: Function, method: Function): any; + /** + * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. + * + * Connects specified obj/event to specified method of this object + * and registers for disconnect() on widget destroy. + * + * Provide widget-specific analog to dojo.connect, except with the + * implicit use of this widget as the target object. + * Events connected with this.connect are disconnected upon + * destruction. + * + * @param obj + * @param event + * @param method + */ + connect(obj: any, event: Function, method: Function): any; + /** + * You can call this function directly, ex. in the event that you + * programmatically add a widget to the form after the form has been + * initialized. + * + * @param inStartup + */ + connectChildren(inStartup: boolean): void; + /** + * + * @param params + * @param srcNodeRef + */ + create(params: any, srcNodeRef: any): void; + /** + * Wrapper to setTimeout to avoid deferred functions executing + * after the originating widget has been destroyed. + * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. + */ + defer(fcn: Function, delay: number): Object; + /** + * + */ + destroy(): void; + /** + * Destroy all the widgets inside the ContentPane and empty containerNode + * + * @param preserveDom + */ + destroyDescendants(preserveDom: boolean): void; + /** + * Destroy the ContentPane and its contents + * + * @param preserveDom + */ + destroyRecursive(preserveDom: boolean): void; + /** + * Destroys the DOM nodes associated with this widget. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + */ + destroyRendering(preserveDom: boolean): void; + /** + * Deprecated, will be removed in 2.0, use handle.remove() instead. + * + * Disconnects handle created by connect. + * + * @param handle + */ + disconnect(handle: any): void; + /** + * Deprecated method. Applications no longer need to call this. Remove for 2.0. + * + */ + disconnectChildren(): void; + /** + * Used by widgets to signal that a synthetic event occurred, ex: + * + * myWidget.emit("attrmodified-selectedChildWidget", {}). + * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. + * Also calls onType() method, if present, and returns value from that method. + * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. + * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional + */ + emit(type: String, eventObj: Object, callbackArgs: any[]): any; + /** + * Callback when the user hits the submit button. + * Override this method to handle Dialog execution. + * After the user has pressed the submit button, the Dialog + * first calls onExecute() to notify the container to hide the + * dialog and restore focus to wherever it used to be. + * + * Then this method is called. + * + * @param formContents + */ + execute(formContents: Object): void; + /** + * + */ + focus(): void; + /** + * Get a property from a widget. + * Get a named property from a widget. The property may + * potentially be retrieved via a getter method. If no getter is defined, this + * just retrieves the object's property. + * + * For example, if the widget has properties foo and bar + * and a method named _getFooAttr(), calling: + * myWidget.get("foo") would be equivalent to calling + * widget._getFooAttr() and myWidget.get("bar") + * would be equivalent to the expression + * widget.bar2 + * + * @param name The property to get. + */ + get(name: any): any; + /** + * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent + * is this widget. Note that it does not return all descendants, but rather just direct children. + * Analogous to Node.childNodes, + * except containing widgets rather than DOMNodes. + * + * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) + * outside of this.containerNode. + * + * Note that the array returned is a simple array. Application code should not assume + * existence of methods like forEach(). + * + */ + getChildren(): any[]; + /** + * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. + * This method should generally be avoided as it returns widgets declared in templates, which are + * supposed to be internal/hidden, but it's left here for back-compat reasons. + * + */ + getDescendants(): any[]; + /** + * Gets the index of the child in this container or -1 if not found + * + * @param child + */ + getIndexOfChild(child: dijit._WidgetBase): any; + /** + * Returns the parent widget of this widget. + * + */ + getParent(): any; + /** + * + */ + getValues(): any; + /** + * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. + * + */ + hasChildren(): boolean; + /** + * Hide the dialog + * + */ + hide(): any; + /** + * Function that should grab the content specified via href. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + */ + ioMethod(args: Object): any; + /** + * Return true if this widget can currently be focused + * and false if not + * + */ + isFocusable(): any; + /** + * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) + * + */ + isLeftToRight(): any; + /** + * Returns true if all of the widgets are valid. + * Deprecated, will be removed in 2.0. Use get("state") instead. + * + */ + isValid: {(): boolean}; + /** + * + * @param params + * @param node + * @param ctor + */ + markupFactory(params: any, node: any, ctor: any): any; + /** + * + * @param type protected + * @param func + */ + on(type: String, func: Function): any; + /** + * + * @param type protected + * @param func + */ + on(type: Function, func: Function): any; + /** + * Track specified handles and remove/destroy them when this instance is destroyed, unless they were + * already removed/destroyed manually. + * + */ + own(): any; + /** + * Place this widget somewhere in the DOM based + * on standard domConstruct.place() conventions. + * A convenience function provided in all _Widgets, providing a simple + * shorthand mechanism to put an existing (or newly created) Widget + * somewhere in the dom, and allow chaining. + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + */ + placeAt(reference: String, position: String): any; + /** + * Place this widget somewhere in the DOM based + * on standard domConstruct.place() conventions. + * A convenience function provided in all _Widgets, providing a simple + * shorthand mechanism to put an existing (or newly created) Widget + * somewhere in the dom, and allow chaining. + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + */ + placeAt(reference: HTMLElement, position: String): any; + /** + * Place this widget somewhere in the DOM based + * on standard domConstruct.place() conventions. + * A convenience function provided in all _Widgets, providing a simple + * shorthand mechanism to put an existing (or newly created) Widget + * somewhere in the dom, and allow chaining. + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + */ + placeAt(reference: dijit._WidgetBase, position: String): any; + /** + * Place this widget somewhere in the DOM based + * on standard domConstruct.place() conventions. + * A convenience function provided in all _Widgets, providing a simple + * shorthand mechanism to put an existing (or newly created) Widget + * somewhere in the dom, and allow chaining. + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + */ + placeAt(reference: String, position: number): any; + /** + * Place this widget somewhere in the DOM based + * on standard domConstruct.place() conventions. + * A convenience function provided in all _Widgets, providing a simple + * shorthand mechanism to put an existing (or newly created) Widget + * somewhere in the dom, and allow chaining. + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + */ + placeAt(reference: HTMLElement, position: number): any; + /** + * Place this widget somewhere in the DOM based + * on standard domConstruct.place() conventions. + * A convenience function provided in all _Widgets, providing a simple + * shorthand mechanism to put an existing (or newly created) Widget + * somewhere in the dom, and allow chaining. + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + */ + placeAt(reference: dijit._WidgetBase, position: number): any; + /** + * + */ + postCreate(): void; + /** + * + */ + postMixInProperties(): void; + /** + * [Re]download contents of href and display + * cancels any currently in-flight requests + * posts "loading..." message + * sends XHR to download new data + * + */ + refresh(): any; + /** + * Removes the passed widget instance from this widget but does + * not destroy it. You can also pass in an integer indicating + * the index within the container to remove (ie, removeChild(5) removes the sixth widget). + * + * @param widget + */ + removeChild(widget: dijit._WidgetBase): void; + /** + * Removes the passed widget instance from this widget but does + * not destroy it. You can also pass in an integer indicating + * the index within the container to remove (ie, removeChild(5) removes the sixth widget). + * + * @param widget + */ + removeChild(widget: number): void; + /** + * + */ + reset(): void; + /** + * See dijit/layout/_LayoutWidget.resize() for description. + * Although ContentPane doesn't extend _LayoutWidget, it does implement + * the same API. + * + * @param changeSize + * @param resultSize + */ + resize(changeSize: any, resultSize: any): void; + /** + * Set a property on a widget + * Sets named properties on a widget which may potentially be handled by a + * setter in the widget. + * + * For example, if the widget has properties foo and bar + * and a method named _setFooAttr(), calling + * myWidget.set("foo", "Howdy!") would be equivalent to calling + * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) + * would be equivalent to the statement widget.bar = 3; + * + * set() may also be called with a hash of name/value pairs, ex: + * + * myWidget.set({ + * foo: "Howdy", + * bar: 3 + * }); + * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) + * + * @param name The property to set. + * @param value The value to set in the property. + */ + set(name: any, value: any): any; + /** + * Deprecated. Use set() instead. + * + * @param attr + * @param value + */ + setAttribute(attr: String, value: any): void; + /** + * Deprecated. Use set('content', ...) instead. + * + * @param data + */ + setContent(data: String): void; + /** + * Deprecated. Use set('content', ...) instead. + * + * @param data + */ + setContent(data: HTMLElement): void; + /** + * Deprecated. Use set('content', ...) instead. + * + * @param data + */ + setContent(data: NodeList): void; + /** + * Deprecated. Use set('href', ...) instead. + * + * @param href + */ + setHref(href: String): any; + /** + * Deprecated. Use set('href', ...) instead. + * + * @param href + */ + setHref(href: URL): any; + /** + * + * @param val + */ + setValues(val: any): any; + /** + * Display the dialog + * + */ + show(): any; + /** + * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects + * + */ + startup(): void; + /** + * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. + * + * Subscribes to the specified topic and calls the specified method + * of this object and registers for unsubscribe() on widget destroy. + * + * Provide widget-specific analog to dojo.subscribe, except with the + * implicit use of this widget as the target object. + * + * @param t The topic + * @param method The callback + */ + subscribe(t: String, method: Function): any; + /** + * Returns a string that represents the widget. + * When a widget is cast to a string, this method will be used to generate the + * output. Currently, it does not implement any sort of reversible + * serialization. + * + */ + toString(): string; + /** + * Deprecated. Override destroy() instead to implement custom widget tear-down + * behavior. + * + */ + uninitialize(): boolean; + /** + * Deprecated, will be removed in 2.0, use handle.remove() instead. + * + * Unsubscribes handle created by this.subscribe. + * Also removes handle from this widget's list of subscriptions + * + * @param handle + */ + unsubscribe(handle: Object): void; + /** + * returns if the form is valid - same as isValid - but + * provides a few additional (ui-specific) features: + * + * it will highlight any sub-widgets that are not valid + * it will call focus() on the first invalid sub-widget + * + */ + validate(): any; + /** + * Watches a property for changes + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + */ + watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; + /** + * Static method to get a template based on the templatePath or + * templateString key + */ + getCachedTemplate(): any; + /** + * Called when the widget stops being "active" because + * focus moved to something outside of it, or the user + * clicked somewhere outside of it, or the widget was + * hidden. + * + */ + onBlur(): void; + /** + * Called when user has pressed the Dialog's cancel button, to notify container. + * Developer shouldn't override or connect to this method; + * it's a private communication device between the TooltipDialog + * and the thing that opened it (ex: dijit/form/DropDownButton) + * + */ + onCancel(): void; + /** + * Connect to this function to receive notifications of mouse click events. + * + * @param event mouse Event + */ + onClick(event: any): void; + /** + * Called when this widget is being displayed as a popup (ex: a Calendar popped + * up from a DateTextBox), and it is hidden. + * This is called from the dijit.popup code, and should not be called directly. + * + * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. + * Callback if a user tries to close the child. Child will be closed if this function returns true. + * + */ + onClose(): boolean; + /** + * Called on DOM faults, require faults etc. in content. + * + * In order to display an error message in the pane, return + * the error message from this method, as an HTML string. + * + * By default (if this method is not overriden), it returns + * nothing, so the error message is just printed to the console. + * + * @param error + */ + onContentError(error: Error): void; + /** + * Connect to this function to receive notifications of mouse double click events. + * + * @param event mouse Event + */ + onDblClick(event: any): void; + /** + * Called when download is finished. + * + */ + onDownloadEnd(): void; + /** + * Called when download error occurs. + * + * In order to display an error message in the pane, return + * the error message from this method, as an HTML string. + * + * Default behavior (if this method is not overriden) is to display + * the error message inside the pane. + * + * @param error + */ + onDownloadError(error: Error): any; + /** + * Called before download starts. + * The string returned by this function will be the html + * that tells the user we are loading something. + * Override with your own function if you want to change text. + * + */ + onDownloadStart(): any; + /** + * Called when user has pressed the dialog's OK button, to notify container. + * Developer shouldn't override or connect to this method; + * it's a private communication device between the TooltipDialog + * and the thing that opened it (ex: dijit/form/DropDownButton) + * + */ + onExecute(): void; + /** + * Called when the widget becomes "active" because + * it or a widget inside of it either has focus, or has recently + * been clicked. + * + */ + onFocus(): void; + /** + * Called when another widget becomes the selected pane in a + * dijit/layout/TabContainer, dijit/layout/StackContainer, + * dijit/layout/AccordionContainer, etc. + * + * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. + * + */ + onHide(): void; + /** + * Connect to this function to receive notifications of keys being pressed down. + * + * @param event key Event + */ + onKeyDown(event: any): void; + /** + * Connect to this function to receive notifications of printable keys being typed. + * + * @param event key Event + */ + onKeyPress(event: any): void; + /** + * Connect to this function to receive notifications of keys being released. + * + * @param event key Event + */ + onKeyUp(event: any): void; + /** + * Event hook, is called after everything is loaded and widgetified + * + * @param data + */ + onLoad(data: any): void; + /** + * Connect to this function to receive notifications of when the mouse button is pressed down. + * + * @param event mouse Event + */ + onMouseDown(event: any): void; + /** + * Connect to this function to receive notifications of when the mouse moves onto this widget. + * + * @param event mouse Event + */ + onMouseEnter(event: any): void; + /** + * Connect to this function to receive notifications of when the mouse moves off of this widget. + * + * @param event mouse Event + */ + onMouseLeave(event: any): void; + /** + * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. + * + * @param event mouse Event + */ + onMouseMove(event: any): void; + /** + * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. + * + * @param event mouse Event + */ + onMouseOut(event: any): void; + /** + * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. + * + * @param event mouse Event + */ + onMouseOver(event: any): void; + /** + * Connect to this function to receive notifications of when the mouse button is released. + * + * @param event mouse Event + */ + onMouseUp(event: any): void; + /** + * Called when this widget becomes the selected pane in a + * dijit/layout/TabContainer, dijit/layout/StackContainer, + * dijit/layout/AccordionContainer, etc. + * + * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. + * + */ + onShow(): void; + /** + * Event hook, is called before old content is cleared + * + */ + onUnload(): void; + /** + * Stub function to connect to if you want to do something + * (like disable/enable a submit button) when the valid + * state changes on the form as a whole. + * + * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. + * + * @param isValid + */ + onValidStateChange(isValid: boolean): void; + } + /** * Permalink: http://dojotoolkit.org/api/1.9/dijit/Dialog.html * @@ -105579,3 +106930,12 @@ declare module "dijit/tree/TreeStoreModel" { var exp: dijit.tree.TreeStoreModel export=exp; } + +declare module "dijit/ConfirmDialog" { + var exp: dijit.ConfirmDialog; + export=exp; +} +declare module "dijit/_ConfirmDialogMixin" { + var exp: dijit._ConfirmDialogMixin; + export=exp; +} \ No newline at end of file diff --git a/dojo/dojo.d.ts b/dojo/dojo.d.ts index 289a741a9..eb2924916 100644 --- a/dojo/dojo.d.ts +++ b/dojo/dojo.d.ts @@ -15,7 +15,7 @@ declare module dojo { * @param url The URL to request. * @param options OptionalOptions for the request. */ - interface request{(url: String, options?: dojo.request.__Options): void} + interface request { (url: String, options?: dojo.request.__Options): void } interface request { /** * Send an HTTP DELETE request using the default transport for the current platform. @@ -54,7 +54,7 @@ declare module dojo { * * @param response */ - interface handlers{(response: any): void} + interface handlers { (response: any): void } interface handlers { /** * @@ -75,7 +75,7 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - interface iframe{(url: String, options?: dojo.request.iframe.__Options): void} + interface iframe { (url: String, options?: dojo.request.iframe.__Options): void } interface iframe { /** * @@ -230,7 +230,7 @@ declare module dojo { * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". * @param listener OptionalA callback to be run when an event happens. */ - interface notify{(type?: String, listener?: Function): void} + interface notify { (type?: String, listener?: Function): void } interface notify { /** * @@ -251,7 +251,7 @@ declare module dojo { * @param url * @param options */ - interface registry{(url: any, options: any): void} + interface registry { (url: any, options: any): void } interface registry { /** * @@ -282,7 +282,7 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - interface node{(url: String, options?: dojo.request.node.__Options): void} + interface node { (url: String, options?: dojo.request.node.__Options): void } interface node { /** * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. @@ -446,7 +446,7 @@ declare module dojo { * * @param dfd The Deferred object to watch. */ - interface watch{(dfd: dojo.Deferred): void} + interface watch { (dfd: dojo.Deferred): void } interface watch { /** * Function used to check if basic IO call worked. Gets the dfd @@ -484,7 +484,7 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - interface script{(url: String, options?: dojo.request.script.__Options): void} + interface script { (url: String, options?: dojo.request.script.__Options): void } interface script { /** * Send an HTTP GET request using a script element with the given URL and options. @@ -644,7 +644,7 @@ declare module dojo { * @param url URL to request * @param options OptionalOptions for the request. */ - interface xhr{(url: String, options?: dojo.request.xhr.__Options): void} + interface xhr { (url: String, options?: dojo.request.xhr.__Options): void } interface xhr { /** * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. @@ -1084,7 +1084,7 @@ declare module dojo { * * @param returnWrappers Optional */ - interface AdapterRegistry{(returnWrappers?: boolean): void} + interface AdapterRegistry { (returnWrappers?: boolean): void } interface AdapterRegistry { /** * @@ -1145,7 +1145,7 @@ declare module dojo { * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ - interface cache{(module: String, url: String, value?: String): void} + interface cache { (module: String, url: String, value?: String): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html * @@ -1167,7 +1167,7 @@ declare module dojo { * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ - interface cache{(module: Object, url: String, value?: String): void} + interface cache { (module: Object, url: String, value?: String): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html * @@ -1189,7 +1189,7 @@ declare module dojo { * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ - interface cache{(module: String, url: String, value?: Object): void} + interface cache { (module: String, url: String, value?: Object): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html * @@ -1211,7 +1211,7 @@ declare module dojo { * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ - interface cache{(module: Object, url: String, value?: Object): void} + interface cache { (module: Object, url: String, value?: Object): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/cookie.html * @@ -1223,7 +1223,7 @@ declare module dojo { * @param value OptionalValue for the cookie * @param props OptionalProperties for the cookie */ - interface cookie{(name: String, value?: String, props?: Object): void} + interface cookie { (name: String, value?: String, props?: Object): void } interface cookie { /** * Use to determine if the current browser supports cookies or not. @@ -1245,7 +1245,7 @@ declare module dojo { * * @param callback */ - interface domReady{(callback: any): void} + interface domReady { (callback: any): void } interface domReady { /** * @@ -1271,7 +1271,7 @@ declare module dojo { * @param hash Optionalthe hash is set - #string. * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. */ - interface hash{(hash?: String, replace?: boolean): void} + interface hash { (hash?: String, replace?: boolean): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/has.html * @@ -1281,7 +1281,7 @@ declare module dojo { * * @param name The name (if a string) or identifier (if an integer) of the feature to test. */ - interface has{(name: String): void} + interface has { (name: String): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/has.html * @@ -1291,7 +1291,7 @@ declare module dojo { * * @param name The name (if a string) or identifier (if an integer) of the feature to test. */ - interface has{(name: number): void} + interface has { (name: number): void } interface has { /** * @@ -1349,21 +1349,21 @@ declare module dojo { * Returns has() method; * */ - interface hccss{(): void} + interface hccss { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-data.html * * Adds data() and removeData() methods to NodeList, and returns NodeList constructor. * */ - interface NodeList_data{(): void} + interface NodeList_data { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-html.html * * Adds a chainable html method to dojo/query() / NodeList instances for setting/replacing node content * */ - interface NodeList_html{(): void} + interface NodeList_html { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-fx.html * @@ -1371,7 +1371,7 @@ declare module dojo { * with additional FX functions. NodeList is the array-like object used to hold query results. * */ - interface NodeList_fx{(): void} + interface NodeList_fx { (): void } interface NodeList_fx { /** * fade all elements of the node list to a specified opacity @@ -1415,7 +1415,7 @@ declare module dojo { * Adds DOM related methods to NodeList, and returns NodeList constructor. * */ - interface NodeList_dom{(): void} + interface NodeList_dom { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-manipulate.html * @@ -1423,14 +1423,14 @@ declare module dojo { * and DOM nodes and their properties. * */ - interface NodeList_manipulate{(): void} + interface NodeList_manipulate { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-traverse.html * * Adds chainable methods to dojo/query() / NodeList instances for traversing the DOM * */ - interface NodeList_traverse{(): void} + interface NodeList_traverse { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html * @@ -1464,7 +1464,7 @@ declare module dojo { * @param listener This is the function that should be called when the event fires. * @param dontFix */ - interface on{(target: HTMLElement, type: String, listener: Function, dontFix: any): void} + interface on { (target: HTMLElement, type: String, listener: Function, dontFix: any): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html * @@ -1498,7 +1498,7 @@ declare module dojo { * @param listener This is the function that should be called when the event fires. * @param dontFix */ - interface on{(target: Object, type: String, listener: Function, dontFix: any): void} + interface on { (target: Object, type: String, listener: Function, dontFix: any): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html * @@ -1532,7 +1532,7 @@ declare module dojo { * @param listener This is the function that should be called when the event fires. * @param dontFix */ - interface on{(target: HTMLElement, type: Function, listener: Function, dontFix: any): void} + interface on { (target: HTMLElement, type: Function, listener: Function, dontFix: any): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html * @@ -1566,7 +1566,7 @@ declare module dojo { * @param listener This is the function that should be called when the event fires. * @param dontFix */ - interface on{(target: Object, type: Function, listener: Function, dontFix: any): void} + interface on { (target: Object, type: String, listener: Function, dontFix?: any): { remove: { (): void } } } interface on { /** * @@ -1905,13 +1905,13 @@ declare module dojo { * @param type * @param event */ - emit(type: any, event: any): any; + emit(type: String, data: any): any; /** * * @param type * @param listener */ - on(type: any, listener: any): any; + on(type: String, listener: {(e:any):void}): {remove: {():void}}; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList.html @@ -3199,7 +3199,7 @@ declare module dojo { * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ - interface declare { (className?: String, superclass?: Function, props?: Object): any} + interface declare { (className?: String, superclass?: any, props?: Object): any} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.html * @@ -3274,7 +3274,7 @@ declare module dojo { * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ - interface declare{(className?: String, superclass?: Function[], props?: Object): any} + interface declare{(className?: String, superclass?: any[], props?: Object): any} interface declare { /** * Mix in properties skipping a constructor and decorating functions @@ -4952,7 +4952,7 @@ declare module dojo { * @param callback * @param thisObject Optional */ - forEach(arr: any[], callback: Function, thisObject: Object): void; + forEach(arr: any[], callback: Function, thisObject?: Object): void; /** * for every item in arr, callback is invoked. Return values are ignored. * If you want to break out of the loop, consider using array.every() or array.some(). @@ -4967,7 +4967,7 @@ declare module dojo { * @param callback * @param thisObject Optional */ - forEach(arr: String, callback: Function, thisObject: Object): void; + forEach(arr: String, callback: Function, thisObject?: Object): void; /** * for every item in arr, callback is invoked. Return values are ignored. * If you want to break out of the loop, consider using array.every() or array.some(). @@ -4982,7 +4982,7 @@ declare module dojo { * @param callback * @param thisObject Optional */ - forEach(arr: any[], callback: String, thisObject: Object): void; + forEach(arr: any[], callback: String, thisObject?: Object): void; /** * for every item in arr, callback is invoked. Return values are ignored. * If you want to break out of the loop, consider using array.every() or array.some(). @@ -4997,7 +4997,7 @@ declare module dojo { * @param callback * @param thisObject Optional */ - forEach(arr: String, callback: String, thisObject: Object): void; + forEach(arr: String, callback: String, thisObject?: Object): void; /** * locates the first index of the provided value in the * passed array. If the value is not found, -1 is returned. @@ -9748,7 +9748,7 @@ declare module dojo { *
*
* - * + * */ init(): void; } @@ -13706,6 +13706,8 @@ declare module dojo { * */ "map": Object; + + node: HTMLElement; /** * */ @@ -13854,6 +13856,8 @@ declare module dojo { * */ creator(): void; + + } } @@ -18365,7 +18369,7 @@ declare module dojo { * * * - * + * */ init(): void; } @@ -25075,7 +25079,7 @@ declare module dojo { * * * - * + * */ init(): void; } From 198acaa6e5abcf299a095ddaef1618ebb65b4a53 Mon Sep 17 00:00:00 2001 From: Mike Van Sickle Date: Fri, 12 Dec 2014 13:59:22 -0500 Subject: [PATCH 05/10] - Added "typeof" keyword to module declarations that return class definitions in dojo.d.ts and dijit.d.ts - Added inherited method to dojo/Stateful. This is really added when dojo/_base/declare creates the class, but TypeScript doesn't know how to do that so I put it in a common base class for convenience. - various other fixes --- dojo/dijit.d.ts | 131848 +++++++++------------------------------------ dojo/dojo.d.ts | 86 +- 2 files changed, 26668 insertions(+), 105266 deletions(-) diff --git a/dojo/dijit.d.ts b/dojo/dijit.d.ts index b4e4a9ba0..1a9991e12 100644 --- a/dojo/dijit.d.ts +++ b/dojo/dijit.d.ts @@ -1,15036 +1,4084 @@ -// Type definitions for Dojo v1.9 -// Project: http://dojotoolkit.org -// Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +declare function define(dependencies: String[], factory: Function): any; +declare function require(config?:Object, dependencies?: String[], callback?: Function): any; -/// +declare module dojox.dtl { + interface __StringArgs { } + interface __ObjectArgs { } +} -declare module dijit { +declare module dojo { /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_BidiSupport.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.html * - * Deprecated module for enabling textdir support in the dijit widgets. New code should just define - * has("dojo-bidi") to return true, rather than manually requiring this module. + * Send a request using the default transport for the current platform. * + * @param url The URL to request. + * @param options OptionalOptions for the request. */ - interface _BidiSupport{(): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/BackgroundIframe.html - * - * For IE/FF z-index shenanigans. id attribute is required. - * new dijit.BackgroundIframe(node). - * - * Makes a background iframe as a child of node, that fills - * area (and position) of node - * - * @param node - */ - interface BackgroundIframe{(node: HTMLElement): void} - module BackgroundIframe { + interface request { (url: String, options?: dojo.request.__Options): void } + interface request { /** - * destroy the iframe + * Send an HTTP DELETE request using the default transport for the current platform. * + * @param url URL to request + * @param options OptionalOptions for the request. */ - interface destroy{(): void} + del(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; /** - * Resize the iframe so it's the same size as node. - * Needed on IE6 and IE/quirks because height:100% doesn't work right. + * Send an HTTP GET request using the default transport for the current platform. * - * @param node + * @param url URL to request + * @param options OptionalOptions for the request. */ - interface resize{(node: any): void} + get(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP POST request using the default transport for the current platform. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + post(url: String, options?: dojo.request.__BaseOptions): any; + /** + * Send an HTTP POST request using the default transport for the current platform. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + put(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/hccss.html - * - * Test if computer is in high contrast mode, and sets dijit_a11y flag on if it is. - * Deprecated, use dojo/hccss instead. - * - */ - interface hccss{(): void} - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_AttachMixin.html - * - * Mixin for widgets to attach to dom nodes and setup events via - * convenient data-dojo-attach-point and data-dojo-attach-event DOM attributes. - * - * Superclass of _TemplatedMixin, and can also be used standalone when templates are pre-rendered on the - * server. - * - * Does not [yet] handle widgets like ContentPane with this.containerNode set. It should skip - * scanning for data-dojo-attach-point and data-dojo-attach-event inside this.containerNode, but it - * doesn't. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. - */ - class _AttachMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); + module request { /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - /** - * Search descendants of this.containerNode for data-dojo-attach-point and data-dojo-attach-event. - * Should generally be left false (the default value) both for performance and to avoid failures when - * this.containerNode holds other _AttachMixin instances with their own attach points and events. - * - */ - "searchContainerNode": boolean; - /** - * Attach to DOM nodes marked with special attributes. - * - */ - buildRendering(): void; - /** - * - */ - destroyRendering(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_Container.html - * - * Mixin for widgets that contain HTML and/or a set of widget children. - * - */ - class _Container { - constructor(); - /** - * Makes the given widget a child of this widget. - * Inserts specified child widget's dom node as a child of this widget's - * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * - */ - buildRendering(): void; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_Contained.html - * - * Mixin for widgets that are children of a container widget - * - */ - class _Contained { - constructor(); - /** - * Returns the index of this widget within its container parent. - * It returns -1 if the parent does not exist, or if the parent - * is not a dijit/_Container - * - */ - getIndexInParent(): any; - /** - * Returns null if this is the last child of the parent, - * otherwise returns the next element sibling to the "right". - * - */ - getNextSibling(): any; - /** - * Returns null if this is the first child of the parent, - * otherwise returns the next element sibling to the "left". - * - */ - getPreviousSibling(): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_DialogMixin.html - * - * This provides functions useful to Dialog and TooltipDialog - * - */ - class _DialogMixin { - constructor(); - /** - * Callback when the user hits the submit button. - * Override this method to handle Dialog execution. - * After the user has pressed the submit button, the Dialog - * first calls onExecute() to notify the container to hide the - * dialog and restore focus to wherever it used to be. - * - * Then this method is called. - * - * @param formContents - */ - execute(formContents: Object): void; - /** - * Called when user has pressed the Dialog's cancel button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onCancel(): void; - /** - * Called when user has pressed the dialog's OK button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onExecute(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_CssStateMixin.html - * - * Mixin for widgets to set CSS classes on the widget DOM nodes depending on hover/mouse press/focus - * state changes, and also higher-level state changes such becoming disabled or selected. - * By mixing this class into your widget, and setting the this.baseClass attribute, it will automatically - * maintain CSS classes on the widget root node (this.domNode) depending on hover, - * active, focus, etc. state. Ex: with a baseClass of dijitButton, it will apply the classes - * dijitButtonHovered and dijitButtonActive, as the user moves the mouse over the widget and clicks it. - * - * It also sets CSS like dijitButtonDisabled based on widget semantic state. - * - * By setting the cssStateNodes attribute, a widget can also track events on subnodes (like buttons - * within the widget). - * - */ - class _CssStateMixin { - constructor(); - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_FocusMixin.html - * - * Mixin to widget to provide _onFocus() and _onBlur() methods that - * fire when a widget or its descendants get/lose focus - * - */ - class _FocusMixin { - constructor(); - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_HasDropDown.html - * - * Mixin for widgets that need drop down ability. - * - */ - class _HasDropDown extends dijit._FocusMixin { - constructor(); - /** - * Set to true to make the drop down at least as wide as this - * widget. Set to false if the drop down should just be its - * default width. - * - */ - "autoWidth": boolean; - /** - * The widget to display as a popup. This widget must be - * defined before the startup function is called. - * - */ - "dropDown": Object; - /** - * This variable controls the position of the drop down. - * It's an array of strings with the following values: - * - * before: places drop down to the left of the target node/widget, or to the right in - * the case of RTL scripts like Hebrew and Arabic - * after: places drop down to the right of the target node/widget, or to the left in - * the case of RTL scripts like Hebrew and Arabic - * above: drop down goes above target node - * below: drop down goes below target node - * The list is positions is tried, in order, until a position is found where the drop down fits - * within the viewport. - * - */ - "dropDownPosition": Object; - /** - * Set to true to make the drop down exactly as wide as this - * widget. Overrides autoWidth. - * - */ - "forceWidth": boolean; - /** - * The max height for our dropdown. - * Any dropdown taller than this will have scrollbars. - * Set to 0 for no max height, or -1 to limit height to available space in viewport - * - */ - "maxHeight": number; - /** - * - */ - buildRendering(): void; - /** - * Closes the drop down on this widget - * - * @param focus If true, refocuses the button widget - */ - closeDropDown(focus: boolean): void; - /** - * - */ - destroy(): void; - /** - * Returns true if the dropdown exists and it's data is loaded. This can - * be overridden in order to force a call to loadDropDown(). - * - */ - isLoaded(): boolean; - /** - * Creates the drop down if it doesn't exist, loads the data - * if there's an href and it hasn't been loaded yet, and - * then opens the drop down. This is basically a callback when the - * user presses the down arrow button to open the drop down. - * - */ - loadAndOpenDropDown(): any; - /** - * Creates the drop down if it doesn't exist, loads the data - * if there's an href and it hasn't been loaded yet, and then calls - * the given callback. - * - * @param loadCallback - */ - loadDropDown(loadCallback: Function): void; - /** - * Opens the dropdown for this widget. To be called only when this.dropDown - * has been created and is ready to display (ie, it's data is loaded). - * - */ - openDropDown(): any; - /** - * set up nodes and connect our mouse and keyboard events - * - */ - postCreate(): void; - /** - * Callback when the user presses the down arrow button or presses - * the down arrow key to open/close the drop down. - * Toggle the drop-down widget; if it is up, close it, if not, open it - * - */ - toggleDropDown(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_KeyNavMixin.html - * - * A mixin to allow arrow key and letter key navigation of child or descendant widgets. - * It can be used by dijit/_Container based widgets with a flat list of children, - * or more complex widgets like dijit/Tree. - * - * To use this mixin, the subclass must: - * - * - Implement _getNext(), _getFirst(), _getLast(), _onLeftArrow(), _onRightArrow() - * _onDownArrow(), _onUpArrow() methods to handle home/end/left/right/up/down keystrokes. - * Next and previous in this context refer to a linear ordering of the descendants used - * by letter key search. - * - Set all descendants' initial tabIndex to "-1"; both initial descendants and any - * descendants added later, by for example addChild() - * - Define childSelector to a function or string that identifies focusable descendant widgets - * Also, child widgets must implement a focus() method. - * - */ - class _KeyNavMixin extends dijit._FocusMixin { - constructor(); - /** - * Selector (passed to on.selector()) used to identify what to treat as a child widget. Used to monitor - * focus events and set this.focusedChild. Must be set by implementing class. If this is a string - * (ex: "> *") then the implementing class must require dojo/query. - * - */ - "childSelector": any; - /** - * The currently focused child widget, or null if there isn't one - * - */ - "focusedChild": Object; - /** - * If multiple characters are typed where each keystroke happens within - * multiCharSearchDuration of the previous keystroke, - * search for nodes matching all the keystrokes. - * - * For example, typing "ab" will search for entries starting with - * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * - */ - "multiCharSearchDuration": number; - /** - * Tab index of the container; same as HTML tabIndex attribute. - * Note then when user tabs into the container, focus is immediately - * moved to the first item in the container. - * - */ - "tabIndex": string; - /** - * Default focus() implementation: focus the first child. - * - */ - focus(): void; - /** - * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one - */ - focusChild(widget: dijit._WidgetBase, last: boolean): void; - /** - * Focus the first focusable child in the container. - * - */ - focusFirstChild(): void; - /** - * Focus the last focusable child in the container. - * - */ - focusLastChild(): void; - /** - * - */ - postCreate(): void; - /** - * When a key is pressed that matches a child item, - * this method is called so that a widget can take appropriate action is necessary. - * - * @param item - * @param evt - * @param searchString - * @param numMatches - */ - onKeyboardSearch(item: dijit._WidgetBase, evt: Event, searchString: String, numMatches: number): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_KeyNavContainer.html - * - * A _Container with keyboard navigation of its children. - * Provides normalized keyboard and focusing code for Container widgets. - * To use this mixin, call connectKeyNavHandlers() in postCreate(). - * Also, child widgets must implement a focus() method. - * - */ - class _KeyNavContainer extends dijit._FocusMixin implements dijit._KeyNavMixin, dijit._Container { - constructor(); - /** - * The currently focused child widget, or null if there isn't one - * - */ - "focusedChild": Object; - /** - * If multiple characters are typed where each keystroke happens within - * multiCharSearchDuration of the previous keystroke, - * search for nodes matching all the keystrokes. - * - * For example, typing "ab" will search for entries starting with - * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * - */ - "multiCharSearchDuration": number; - /** - * Tab index of the container; same as HTML tabIndex attribute. - * Note then when user tabs into the container, focus is immediately - * moved to the first item in the container. - * - */ - "tabIndex": string; - /** - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * - */ - buildRendering(): void; - /** - * - * @param node - */ - childSelector(node: HTMLElement): any; - /** - * Deprecated. You can call this in postCreate() to attach the keyboard handlers to the container, - * but the preferred method is to override _onLeftArrow() and _onRightArrow(), or - * _onUpArrow() and _onDownArrow(), to call focusPrev() and focusNext(). - * - * @param prevKeyCodes Key codes for navigating to the previous child. - * @param nextKeyCodes Key codes for navigating to the next child. - */ - connectKeyNavHandlers(prevKeyCodes: dojo.keys, nextKeyCodes: dojo.keys): void; - /** - * Default focus() implementation: focus the first child. - * - */ - focus(): void; - /** - * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one - */ - focusChild(widget: dijit._WidgetBase, last: boolean): void; - /** - * Focus the first focusable child in the container. - * - */ - focusFirstChild(): void; - /** - * Focus the last focusable child in the container. - * - */ - focusLastChild(): void; - /** - * Focus the next widget - * - */ - focusNext(): void; - /** - * Focus the last focusable node in the previous widget - * (ex: go to the ComboButton icon section rather than button section) - * - */ - focusPrev(): void; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * - */ - postCreate(): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * - */ - startup(): void; - /** - * - */ - startupKeyNavChildren(): void; - /** - * When a key is pressed that matches a child item, - * this method is called so that a widget can take appropriate action is necessary. - * - * @param item - * @param evt - * @param searchString - * @param numMatches - */ - onKeyboardSearch(item: dijit._WidgetBase, evt: Event, searchString: String, numMatches: number): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_OnDijitClickMixin.html - * - * Deprecated. New code should access the dijit/a11yclick event directly, ex: - * - * this.own(on(node, a11yclick, function(){ ... })); - * Mixing in this class will make _WidgetBase.connect(node, "ondijitclick", ...) work. - * It also used to be necessary to make templates with ondijitclick work, but now you can just require - * dijit/a11yclick. - * - */ - class _OnDijitClickMixin { - constructor(); - /** - * Custom press, release, and click synthetic events - * which trigger on a left mouse click, touch, or space/enter keyup. - * - */ - "a11yclick": Object; - /** - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: any, method: any): any; - } - module _OnDijitClickMixin { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_OnDijitClickMixin.a11yclick.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/handlers.html * - * Custom press, release, and click synthetic events - * which trigger on a left mouse click, touch, or space/enter keyup. * + * @param response */ - interface a11yclick { + interface handlers { (response: any): void } + interface handlers { /** - * Logical click operation for mouse, touch, or keyboard (space/enter key) * - * @param node - * @param listener + * @param name + * @param handler */ - click(node: any, listener: any): void; - /** - * Mouse cursor or a finger is dragged over the given node. - * - * @param node - * @param listener - */ - move(node: any, listener: any): void; - /** - * Mousedown (left button), touchstart, or keydown (space or enter) corresponding to logical click operation. - * - * @param node - * @param listener - */ - press(node: any, listener: any): void; - /** - * Mouseup (left button), touchend, or keyup (space or enter) corresponding to logical click operation. - * - * @param node - * @param listener - */ - release(node: any, listener: any): void; + register(name: any, handler: any): void; + } + + module handlers { } - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_PaletteMixin.html - * - * A keyboard accessible palette, for picking a color/emoticon/etc. - * A mixin for a grid showing various entities, so the user can pick a certain entity. - * - */ - class _PaletteMixin extends dijit._CssStateMixin { - constructor(); /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - /** - * CSS class applied to each cell in the palette - * - */ - "cellClass": string; - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - /** - * Number of milliseconds before a held key or button becomes typematic - * - */ - "defaultTimeout": number; - /** - * Constructor for Object created for each cell of the palette. - * dyeClass should implement the dijit/_PaletteMixin.__Dye interface. - * - */ - "dyeClass": Object; - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - /** - * Widget tab index. - * - */ - "tabIndex": string; - /** - * Fraction of time used to change the typematic timer between events - * 1.0 means that each typematic event fires at defaultTimeout intervals - * Less than 1.0 means that each typematic event fires at an increasing faster rate - * - */ - "timeoutChangeRate": number; - /** - * Currently selected color/emoticon/etc. - * - */ - "value": string; - /** - * Focus this widget. Puts focus on the most recently focused cell. - * - */ - focus(): void; - /** - * - */ - postCreate(): void; - /** - * Callback when a cell is selected. - * - * @param value Value corresponding to cell. - */ - onChange(value: String): void; - } - module _PaletteMixin { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_PaletteMixin.__Dye.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.html * - * Interface for the JS Object associated with a palette cell (i.e. DOMNode) + * Sends a request using an iframe element with the given URL and options. * - * @param alias - * @param row - * @param col + * @param url URL to request + * @param options OptionalOptions for the request. */ - class __Dye { - constructor(alias: String, row: any, col: any); + interface iframe { (url: String, options?: dojo.request.iframe.__Options): void } + interface iframe { /** - * Add cell DOMNode inner structure * - * @param cell The surrounding cell - * @param blankGif URL for blank cell image + * @param name + * @param onloadstr + * @param uri */ - fillCell(cell: HTMLElement, blankGif: String): void; + create(name: any, onloadstr: any, uri: any): any; /** - * Return "value" of cell; meaning of "value" varies by subclass. - * For example color hex value, emoticon ascii value etc, entity hex value. + * + * @param iframeNode + */ + doc(iframeNode: any): any; + /** + * Send an HTTP GET request using an iframe element with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + get(url: String, options: dojo.request.iframe.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP POST request using an iframe element with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + post(url: String, options: dojo.request.iframe.__BaseOptions): dojo.request.__Promise; + /** + * + * @param _iframe + * @param src + * @param replace + */ + setSrc(_iframe: any, src: any, replace: any): void; + } + + module iframe { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__MethodOptions.html + * * */ - getValue(): void; + class __MethodOptions { + constructor(); + /** + * The HTTP method to use to make the request. Must be + * uppercase. Only "GET" and "POST" are accepted. + * Default is "POST". + * + */ + "method": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__BaseOptions.html + * + * + */ + class __BaseOptions { + constructor(); + /** + * Data to transfer. When making a GET request, this will + * be converted to key=value parameters and appended to the + * URL. + * + */ + "data": string; + /** + * A form node to use to submit data to the server. + * + */ + "form": HTMLElement; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__Options.html + * + * + */ + class __Options { + constructor(); + /** + * Data to transfer. When making a GET request, this will + * be converted to key=value parameters and appended to the + * URL. + * + */ + "data": string; + /** + * A form node to use to submit data to the server. + * + */ + "form": HTMLElement; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * The HTTP method to use to make the request. Must be + * uppercase. Only "GET" and "POST" are accepted. + * Default is "POST". + * + */ + "method": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + } } - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TemplatedMixin.html - * - * Mixin for widgets that are instantiated from a template - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. - */ - class _TemplatedMixin extends dijit._AttachMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/notify.html + * + * Register a listener to be notified when an event + * in dojo/request happens. * + * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". + * @param listener OptionalA callback to be run when an event happens. */ - "attachScope": Object; + interface notify { (type?: String, listener?: Function): void } + interface notify { + /** + * + * @param type + * @param event + * @param cancel + */ + emit(type: any, event: any, cancel: any): void; + } + + module notify { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/registry.html + * * + * @param url + * @param options */ - "searchContainerNode": boolean; + interface registry { (url: any, options: any): void } + interface registry { + /** + * + * @param id + * @param parentRequire + * @param loaded + * @param config + */ + load(id: any, parentRequire: any, loaded: any, config: any): void; + /** + * + * @param url + * @param provider + * @param first + */ + register(url: any, provider: any, first: any): void; + } + + module registry { + } + /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.html + * + * Sends a request using the included http or https interface from node.js + * with the given URL and options. * + * @param url URL to request + * @param options OptionalOptions for the request. */ - "templatePath": string; + interface node { (url: String, options?: dojo.request.node.__Options): void } + interface node { + /** + * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + del(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP GET request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + get(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP POST request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + post(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + put(url: String, options: dojo.request.node.__BaseOptions): dojo.request.__Promise; + } + + module node { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__MethodOptions.html + * + * + */ + class __MethodOptions { + constructor(); + /** + * The HTTP method to use to make the request. Must be + * uppercase. Default is "GET". + * + */ + "method": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__Options.html + * + * + */ + class __Options { + constructor(); + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * Headers to use for the request. + * + */ + "headers": Object; + /** + * The HTTP method to use to make the request. Must be + * uppercase. Default is "GET". + * + */ + "method": string; + /** + * Password to use during the request. + * + */ + "password": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + /** + * Username to use during the request. + * + */ + "user": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__BaseOptions.html + * + * + */ + class __BaseOptions { + constructor(); + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * Headers to use for the request. + * + */ + "headers": Object; + /** + * Password to use during the request. + * + */ + "password": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + /** + * Username to use during the request. + * + */ + "user": string; + } + } + /** - * A string that represents the widget template. - * Use in conjunction with dojo.cache() to load from a file. + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/watch.html + * + * Watches the io request represented by dfd to see if it completes. * + * @param dfd The Deferred object to watch. */ - "templateString": string; + interface watch { (dfd: dojo.Deferred): void } + interface watch { + /** + * Function used to check if basic IO call worked. Gets the dfd + * object as its only argument. + * + */ + ioCheck: Function; + /** + * Function used to process response. Gets the dfd + * object as its only argument. + * + */ + resHandle: Function; + /** + * Function used to check if the IO request is still valid. Gets the dfd + * object as its only argument. + * + */ + validCheck: Function; + /** + * Cancels all pending IO requests, regardless of IO type + * + */ + cancelAll(): void; + } + + module watch { + } + /** - * Construct the UI for this widget from a template, setting this.domNode. + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.html + * + * Sends a request using a script element with the given URL and options. * + * @param url URL to request + * @param options OptionalOptions for the request. */ - buildRendering(): void; + interface script { (url: String, options?: dojo.request.script.__Options): void } + interface script { + /** + * Send an HTTP GET request using a script element with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + get(url: String, options: dojo.request.script.__BaseOptions): dojo.request.__Promise; + } + + module script { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__MethodOptions.html + * + * + */ + class __MethodOptions { + constructor(); + /** + * This option is ignored. All requests using this transport are + * GET requests. + * + */ + "method": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__BaseOptions.html + * + * + */ + class __BaseOptions { + constructor(); + /** + * A string of JavaScript that when evaluated like so: + * "typeof(" + checkString + ") != 'undefined'" + * being true means that the script fetched has been loaded. + * Do not use this if doing a JSONP type of call (use jsonp instead). + * + */ + "checkString": string; + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * The Document object of a child iframe. If this is passed in, the script + * will be attached to that document. This can be helpful in some comet long-polling + * scenarios with Firefox and Opera. + * + */ + "frameDoc": Object; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * The URL parameter name that indicates the JSONP callback string. + * For instance, when using Yahoo JSONP calls it is normally, + * jsonp: "callback". For AOL JSONP calls it is normally + * jsonp: "c". + * + */ + "jsonp": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__Options.html + * + * + */ + class __Options { + constructor(); + /** + * A string of JavaScript that when evaluated like so: + * "typeof(" + checkString + ") != 'undefined'" + * being true means that the script fetched has been loaded. + * Do not use this if doing a JSONP type of call (use jsonp instead). + * + */ + "checkString": string; + /**dojo + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * The Document object of a child iframe. If this is passed in, the script + * will be attached to that document. This can be helpful in some comet long-polling + * scenarios with Firefox and Opera. + * + */ + "frameDoc": Object; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * The URL parameter name that indicates the JSONP callback string. + * For instance, when using Yahoo JSONP calls it is normally, + * jsonp: "callback". For AOL JSONP calls it is normally + * jsonp: "c". + * + */ + "jsonp": string; + /** + * This option is ignored. All requests using this transport are + * GET requests. + * + */ + "method": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + } + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.html + * + * Sends a request using XMLHttpRequest with the given URL and options. * + * @param url URL to request + * @param options OptionalOptions for the request. */ - destroyRendering(): void; + interface xhr { (url: String, options?: dojo.request.xhr.__Options): void } + interface xhr { + /** + * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + del(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP GET request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + get(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP POST request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + post(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; + /** + * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. + * + * @param url URL to request + * @param options OptionalOptions for the request. + */ + put(url: String, options: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; + } + + module xhr { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__BaseOptions.html + * + * + */ + class __BaseOptions { + constructor(); + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * Headers to use for the request. + * + */ + "headers": Object; + /** + * Password to use during the request. + * + */ + "password": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Whether to make a synchronous request or not. Default + * is false (asynchronous). + * + */ + "sync": boolean; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + /** + * Username to use during the request. + * + */ + "user": string; + /** + * For cross-site requests, whether to send credentials + * or not. + * + */ + "withCredentials": boolean; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__MethodOptions.html + * + * + */ + class __MethodOptions { + constructor(); + /** + * The HTTP method to use to make the request. Must be + * uppercase. Default is "GET". + * + */ + "method": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__Options.html + * + * + */ + class __Options { + constructor(); + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * Headers to use for the request. + * + */ + "headers": Object; + /** + * The HTTP method to use to make the request. Must be + * uppercase. Default is "GET". + * + */ + "method": string; + /** + * Password to use during the request. + * + */ + "password": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Whether to make a synchronous request or not. Default + * is false (asynchronous). + * + */ + "sync": boolean; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + /** + * Username to use during the request. + * + */ + "user": string; + /** + * For cross-site requests, whether to send credentials + * or not. + * + */ + "withCredentials": boolean; + } + } + /** - * Static method to get a template based on the templatePath or - * templateString key - * - * @param templateString The template - * @param alwaysUseString Don't cache the DOM tree for this template, even if it doesn't have any variables - * @param doc OptionalThe target document. Defaults to document global if unspecified. - */ - getCachedTemplate(templateString: String, alwaysUseString: boolean, doc: HTMLDocument): any; - } - module _TemplatedMixin { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TemplatedMixin._templateCache.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__BaseOptions.html * * */ - interface _templateCache { - } - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_Templated.html - * - * Deprecated mixin for widgets that are instantiated from a template. - * Widgets should use _TemplatedMixin plus if necessary _WidgetsInTemplateMixin instead. - * - */ - class _Templated extends dijit._TemplatedMixin implements dijit._WidgetsInTemplateMixin { - constructor(); - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - /** - * Used to provide a context require to the dojo/parser in order to be - * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * - */ - "contextRequire": Function; - /** - * - */ - "searchContainerNode": boolean; - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - /** - * A string that represents the widget template. - * Use in conjunction with dojo.cache() to load from a file. - * - */ - "templateString": string; - /** - * Should we parse the template to find widgets that might be - * declared in markup inside it? False by default. - * - */ - "widgetsInTemplate": boolean; - /** - * Construct the UI for this widget from a template, setting this.domNode. - * - */ - buildRendering(): void; - /** - * - */ - destroyRendering(): void; - /** - * - */ - startup(): void; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_MenuBase.html - * - * Abstract base class for Menu and MenuBar. - * Subclass should implement _onUpArrow(), _onDownArrow(), _onLeftArrow(), and _onRightArrow(). - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class _MenuBase extends dijit._Widget implements dijit._TemplatedMixin, dijit._KeyNavContainer, dijit._CssStateMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * This Menu has been clicked (mouse or via space/arrow key) or opened as a submenu, - * so mere mouseover will open submenus. Focusing a menu via TAB does NOT automatically make it active - * since TAB is a navigation operation and not a selection one. - * For Windows apps, pressing the ALT key focuses the menubar menus (similar to TAB navigation) but the - * menu is not active (ie no dropdown) until an item is clicked. - * - */ - "activated": boolean; - set(property:"activated", value: boolean): void; - get(property:"activated"): boolean; - watch(property:"activated", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * A toggle to control whether or not a Menu gets focused when opened as a drop down from a MenuBar - * or DropDownButton/ComboButton. Note though that it always get focused when opened via the keyboard. - * - */ - "autoFocus": boolean; - set(property:"autoFocus", value: boolean): void; - get(property:"autoFocus"): boolean; - watch(property:"autoFocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The currently focused child widget, or null if there isn't one - * - */ - "focusedChild": Object; - set(property:"focusedChild", value: Object): void; - get(property:"focusedChild"): Object; - watch(property:"focusedChild", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * If multiple characters are typed where each keystroke happens within - * multiCharSearchDuration of the previous keystroke, - * search for nodes matching all the keystrokes. - * - * For example, typing "ab" will search for entries starting with - * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * - */ - "multiCharSearchDuration": number; - set(property:"multiCharSearchDuration", value: number): void; - get(property:"multiCharSearchDuration"): number; - watch(property:"multiCharSearchDuration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to menu that displayed me - * - */ - "parentMenu": Object; - set(property:"parentMenu", value: Object): void; - get(property:"parentMenu"): Object; - watch(property:"parentMenu", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * For a passive (unclicked) Menu, number of milliseconds before hovering (without clicking) will cause - * the popup to open. Default is Infinity, meaning you need to click the menu to open it. - * - */ - "passivePopupDelay": number; - set(property:"passivePopupDelay", value: number): void; - get(property:"passivePopupDelay"): number; - watch(property:"passivePopupDelay", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * After a menu has been activated (by clicking on it etc.), number of milliseconds before hovering - * (without clicking) another MenuItem causes that MenuItem's popup to automatically open. - * - */ - "popupDelay": number; - set(property:"popupDelay", value: number): void; - get(property:"popupDelay"): number; - watch(property:"popupDelay", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Currently selected (a.k.a. highlighted) MenuItem, or null if no MenuItem is selected. - * If a submenu is open, will be set to MenuItem that displayed the submenu. OTOH, if - * this Menu is in passive mode (i.e. hasn't been clicked yet), will be null, because - * "selected" is not merely "hovered". - * - */ - "selected": Object; - set(property:"selected", value: Object): void; - get(property:"selected"): Object; - watch(property:"selected", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Tab index of the container; same as HTML tabIndex attribute. - * Note then when user tabs into the container, focus is immediately - * moved to the first item in the container. - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A string that represents the widget template. - * Use in conjunction with dojo.cache() to load from a file. - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Selector (passed to on.selector()) used to identify MenuItem child widgets, but exclude inert children - * like MenuSeparator. If subclass overrides to a string (ex: "> *"), the subclass must require dojo/query. - * - * @param node - */ - childSelector(node: HTMLElement): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Deprecated. You can call this in postCreate() to attach the keyboard handlers to the container, - * but the preferred method is to override _onLeftArrow() and _onRightArrow(), or - * _onUpArrow() and _onDownArrow(), to call focusPrev() and focusNext(). - * - * @param prevKeyCodes Key codes for navigating to the previous child. - * @param nextKeyCodes Key codes for navigating to the next child. - */ - connectKeyNavHandlers(prevKeyCodes: dojo.keys, nextKeyCodes: dojo.keys): void; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Default focus() implementation: focus the first child. - * - */ - focus(): void; - /** - * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one - */ - focusChild(widget: dijit._WidgetBase, last: boolean): void; - /** - * Focus the first focusable child in the container. - * - */ - focusFirstChild(): void; - /** - * Focus the last focusable child in the container. - * - */ - focusLastChild(): void; - /** - * Focus the next widget - * - */ - focusNext(): void; - /** - * Focus the last focusable node in the previous widget - * (ex: go to the ComboButton icon section rather than button section) - * - */ - focusPrev(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * - */ - startupKeyNavChildren(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Attach point for notification about when the user cancels the current menu - * This is an internal mechanism used for Menus to signal to their parent to - * close them. In general developers should not attach to or override this method. - * - * @param closeAll - */ - onCancel(closeAll: boolean): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Attach point for notification about when a menu item has been executed. - * This is an internal mechanism used for Menus to signal to their parent to - * close them, because they are about to execute the onClick handler. In - * general developers should not attach to or override this method. - * - */ - onExecute(): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Called when cursor is over a MenuItem. - * - * @param item - */ - onItemHover(item: dijit.MenuItem): void; - /** - * Callback fires when mouse exits a MenuItem - * - * @param item - */ - onItemUnhover(item: dijit.MenuItem): void; - /** - * Attach point for notification about when a menu item has been searched for - * via the keyboard search mechanism. - * - * @param item - * @param evt - * @param searchString - * @param numMatches - */ - onKeyboardSearch(item: dijit.MenuItem, evt: Event, searchString: String, numMatches: number): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_WidgetsInTemplateMixin.html - * - * Mixin to supplement _TemplatedMixin when template contains widgets - * - */ - class _WidgetsInTemplateMixin { - constructor(); - /** - * Used to provide a context require to the dojo/parser in order to be - * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * - */ - "contextRequire": Function; - /** - * Should we parse the template to find widgets that might be - * declared in markup inside it? (Remove for 2.0 and assume true) - * - */ - "widgetsInTemplate": boolean; - /** - * - */ - startup(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_WidgetBase.html - * - * Future base class for all Dijit widgets. - * Future base class for all Dijit widgets. - * _Widget extends this class adding support for various features needed by desktop. - * - * Provides stubs for widget lifecycle methods for subclasses to extend, like postMixInProperties(), buildRendering(), - * postCreate(), startup(), and destroy(), and also public API methods like set(), get(), and watch(). - * - * Widgets can provide custom setters/getters for widget attributes, which are called automatically by set(name, value). - * For an attribute XXX, define methods _setXXXAttr() and/or _getXXXAttr(). - * - * _setXXXAttr can also be a string/hash/array mapping from a widget attribute XXX to the widget's DOMNodes: - * - * DOM node attribute - * _setFocusAttr: {node: "focusNode", type: "attribute"} - * _setFocusAttr: "focusNode" (shorthand) - * _setFocusAttr: "" (shorthand, maps to this.domNode) - * Maps this.focus to this.focusNode.focus, or (last example) this.domNode.focus - * - * DOM node innerHTML - * _setTitleAttr: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * _setTitleAttr: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * _setMyClassAttr: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value of _setXXXAttr is an array, then each element in the array matches one of the - * formats of the above list. - * - * If the custom setter is null, no action is performed other than saving the new value - * in the widget (in this). - * - * If no custom setter is defined for an attribute, then it will be copied - * to this.focusNode (if the widget defines a focusNode), or this.domNode otherwise. - * That's only done though for attributes that match DOMNode attributes (title, - * alt, aria-labelledby, etc.) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class _WidgetBase extends dojo.Stateful implements dijit.Destroyable { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": Object; - set(property:"style", value: Object): void; - get(property:"style"): Object; - watch(property:"style", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - */ - isValid: any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: String, func: Function): {remove:{():void}}; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: Function, func: Function): {remove:{():void}}; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position?: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position?: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position?: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position?: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position?: number): any; - /** - * Processing after the DOM fragment is created - * Called after the DOM fragment has been created, but not necessarily - * added to the document. Do not include any operations which rely on - * node dimensions or placement. - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_Widget.html - * - * Old base class for widgets. New widgets should extend dijit/_WidgetBase instead - * Old Base class for Dijit widgets. - * - * Extends _WidgetBase, adding support for: - * - * declaratively/programatically specifying widget initialization parameters like - * onMouseMove="foo" that call foo when this.domNode gets a mousemove event - * ondijitclick: - * Support new data-dojo-attach-event="ondijitclick: ..." that is triggered by a mouse click or a SPACE/ENTER keypress - * focus related functions: - * In particular, the onFocus()/onBlur() callbacks. Driven internally by - * dijit/_base/focus.js. - * deprecated methods - * onShow(), onHide(), onClose() - * Also, by loading code in dijit/_base, turns on: - * - * browser sniffing (putting browser class like dj_ie on node) - * high contrast mode sniffing (add dijit_a11y class to if machine is in high contrast mode) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class _Widget extends dijit._WidgetBase implements dijit._OnDijitClickMixin, dijit._FocusMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Custom press, release, and click synthetic events - * which trigger on a left mouse click, touch, or space/enter keyup. - * - */ - "a11yclick": Object; - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Defines a type of widget. - * - */ - "dndType": string; - set(property:"dndType", value: string): void; - get(property:"dndType"): string; - watch(property:"dndType", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "observer": string; - set(property:"observer", value: string): void; - get(property:"observer"): string; - watch(property:"observer", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * A parameter needed by RadioGroupSlide only. An optional paramter to force - * the ContentPane to slide in from a set direction. Defaults - * to "random", or specify one of "top", "left", "right", "bottom" - * to slideFrom top, left, right, or bottom. - * - */ - "slideFrom": string; - set(property:"slideFrom", value: string): void; - get(property:"slideFrom"): string; - watch(property:"slideFrom", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": Object; - set(property:"style", value: Object): void; - get(property:"style"): Object; - watch(property:"style", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TimePicker.html - * - * A time picker dropdown, used by dijit/form/TimeTextBox. - * This widget is not available as a standalone widget due to lack of accessibility support. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree - */ - class _TimePicker extends dijit._WidgetBase implements dijit.form._ListMouseMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * The root className to use for the various states of this widget - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * ISO-8601 string representing the amount by which - * every clickable element in the time picker increases. - * Set in local time, without a time zone. - * Example: T00:15:00 creates 15 minute increments - * Must divide dijit/_TimePicker.visibleIncrement evenly - * - */ - "clickableIncrement": string; - set(property:"clickableIncrement", value: string): void; - get(property:"clickableIncrement"): string; - watch(property:"clickableIncrement", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Specifies valid range of times (start time, end time) - * - */ - "constraints": Object; - set(property:"constraints", value: Object): void; - get(property:"constraints"): Object; - watch(property:"constraints", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * The string to filter by - * - */ - "filterString": string; - set(property:"filterString", value: string): void; - get(property:"filterString"): string; - watch(property:"filterString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * currently selected node - * - */ - "selected": HTMLElement; - set(property:"selected", value: HTMLElement): void; - get(property:"selected"): HTMLElement; - watch(property:"selected", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Date to display. - * Defaults to current time and date. - * Can be a Date object or an ISO-8601 string. - * If you specify the GMT time zone (-01:00), - * the time will be converted to the local time in the local time zone. - * Otherwise, the time is considered to be in the local time zone. - * If you specify the date and isDate is true, the date is used. - * Example: if your local time zone is GMT -05:00, - * T10:00:00 becomes T10:00:00-05:00 (considered to be local time), - * T10:00:00-01:00 becomes T06:00:00-05:00 (4 hour difference), - * T10:00:00Z becomes T05:00:00-05:00 (5 hour difference between Zulu and local time) - * yyyy-mm-ddThh:mm:ss is the format to set the date and time - * Example: 2007-06-01T09:00:00 - * - */ - "value": string; - set(property:"value", value: string): void; - get(property:"value"): string; - watch(property:"value", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * ISO-8601 string representing the amount by which - * every element with a visible time in the time picker increases. - * Set in local time, without a time zone. - * Example: T01:00:00 creates text in every 1 hour increment - * - */ - "visibleIncrement": string; - set(property:"visibleIncrement", value: string): void; - get(property:"visibleIncrement"): string; - watch(property:"visibleIncrement", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Called from dijit/form/_DateTimeTextBox to pass a keypress event - * from the dijit/form/TimeTextBox to be handled in this widget - * - * @param e - */ - handleKey(e: Event): any; - /** - * May be overridden to disable certain dates in the TimePicker e.g. isDisabledDate=locale.isWeekend - * - * @param dateObject - * @param locale Optional - */ - isDisabledDate(dateObject: Date, locale: String): boolean; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: String, func: Function): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * Processing after the DOM fragment is created - * Called after the DOM fragment has been created, but not necessarily - * added to the document. Do not include any operations which rely on - * node dimensions or placement. - * - */ - postCreate(): void; - /** - * - */ - postMixInProperties(): void; - /** - * Select the first displayed item in the list. - * - */ - selectFirstNode(): void; - /** - * Select the last displayed item in the list - * - */ - selectLastNode(): void; - /** - * Select the item just below the current selection. - * If nothing selected, select first node. - * - */ - selectNextNode(): void; - /** - * Select the item just above the current selection. - * If nothing selected, select last node (if - * you select Previous and try to keep scrolling up the list). - * - */ - selectPreviousNode(): void; - /** - * Format a Date object as a string according a subset of the ISO-8601 standard - * When options.selector is omitted, output follows RFC3339 - * The local time zone is included as an offset from GMT, except when selector=='time' (time without a date) - * Does not check bounds. Only years between 100 and 9999 are supported. - * - * @param dateObject A Date object - * @param options OptionalAn object with the following properties:selector (String): "date" or "time" for partial formatting of the Date object.Both date and time will be formatted by default.zulu (Boolean): if true, UTC/GMT is used for a timezonemilliseconds (Boolean): if true, output milliseconds - */ - serialize(dateObject: Date, options: Object): any; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Used set('value') instead. - * - * @param value - */ - setValue(value: Date): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Notification that a time was selected. It may be the same as the previous value. - * - * @param time - */ - onChange(time: Date): void; - /** - * - * @param node - */ - onClick(node: HTMLElement): void; - /** - * - * @param node - */ - onDeselect(node: HTMLElement): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * - * @param node - */ - onHover(node: HTMLElement): void; - /** - * - */ - onOpen(): void; - /** - * - * @param node - */ - onSelect(node: HTMLElement): void; - /** - * - * @param node - */ - onUnhover(node: HTMLElement): void; - } - module _TimePicker { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TimePicker.__Constraints.html - * - * - */ - class __Constraints { + class __BaseOptions { constructor(); /** - * override strings for am in times + * Data to transfer. This is ignored for GET and DELETE + * requests. * */ - "am": string; + "data": string; /** - * See dijit/_TimePicker.clickableIncrement + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. * */ - "clickableIncrement": string; + "handleAs": string; /** - * override pattern with this string + * Whether to append a cache-busting parameter to the URL. * */ - "datePattern": string; + "preventCache": boolean; /** - * choice of long, short, medium or full (plus any custom additions). Defaults to 'short' + * Query parameters to append to the URL. * */ - "formatLength": string; + "query": string; /** - * (format only) use 4 digit years whenever 2 digit years are called for + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. * */ - "fullYear": boolean; + "timeout": number; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__MethodOptions.html + * + * + */ + class __MethodOptions { + constructor(); /** - * override the locale used to determine formatting rules + * The HTTP method to use to make the request. Must be + * uppercase. + * + */ + "method": string; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__Options.html + * + * + */ + class __Options { + constructor(); + /** + * Data to transfer. This is ignored for GET and DELETE + * requests. + * + */ + "data": string; + /** + * How to handle the response from the server. Default is + * 'text'. Other values are 'json', 'javascript', and 'xml'. + * + */ + "handleAs": string; + /** + * The HTTP method to use to make the request. Must be + * uppercase. + * + */ + "method": string; + /** + * Whether to append a cache-busting parameter to the URL. + * + */ + "preventCache": boolean; + /** + * Query parameters to append to the URL. + * + */ + "query": string; + /** + * Milliseconds to wait for the response. If this time + * passes, the then the promise is rejected. + * + */ + "timeout": number; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__Promise.html + * + * + */ + class __Promise extends dojo.promise.Promise { + constructor(); + /** + * A promise resolving to an object representing + * the response from the server. + * + */ + "response": Object; + /** + * Add a callback to be invoked when the promise is resolved + * or rejected. + * + * @param callbackOrErrback OptionalA function that is used both as a callback and errback. + */ + always(callbackOrErrback: Function): any; + /** + * Inform the deferred it may cancel its asynchronous operation. + * Inform the deferred it may cancel its asynchronous operation. + * The deferred's (optional) canceler is invoked and the + * deferred will be left in a rejected state. Can affect other + * promises that originate with the same deferred. + * + * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. + */ + cancel(reason: any, strict: boolean): any; + /** + * Checks whether the promise has been canceled. + * + */ + isCanceled(): boolean; + /** + * Checks whether the promise has been resolved or rejected. + * + */ + isFulfilled(): boolean; + /** + * Checks whether the promise has been rejected. + * + */ + isRejected(): boolean; + /** + * Checks whether the promise has been resolved. + * + */ + isResolved(): boolean; + /** + * Add new errbacks to the promise. + * + * @param errback OptionalCallback to be invoked when the promise is rejected. + */ + otherwise(errback: Function): any; + /** + * Add new callbacks to the promise. + * Add new callbacks to the deferred. Callbacks can be added + * before or after the deferred is fulfilled. + * + * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. + * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. + * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. + */ + then(callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; + /** + * + */ + toString(): String; + /** + * + */ + trace(): dojo.promise.Promise; + /** + * + */ + traceRejected(): dojo.promise.Promise; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/default.html + * + * + */ + interface default_ { + /** + * + */ + getPlatformDefaultId(): void; + /** + * + * @param id + * @param parentRequire + * @param loaded + * @param config + */ + load(id: any, parentRequire: any, loaded: any, config: any): void; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/util.html + * + * + */ + interface util { + /** + * + * @param provider + * @param methods + */ + addCommonMethods(provider: any, methods: any): void; + /** + * + * @param stat + */ + checkStatus(stat: any): boolean; + /** + * + * @param target + * @param source + */ + deepCopy(target: any, source: any): any; + /** + * + * @param source + * @param properties + */ + deepCreate(source: any, properties: any): any; + /** + * + * @param response The object used as the value of the request promise. + * @param cancel + * @param isValid + * @param isReady + * @param handleResponse + * @param last + */ + deferred(response: Object, cancel: any, isValid: any, isReady: any, handleResponse: any, last: any): any; + /** + * Register a listener to be notified when an event + * in dojo/request happens. + * + * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". + * @param listener OptionalA callback to be run when an event happens. + */ + notify(type: String, listener: Function): any; + /** + * + * @param url + * @param options + * @param skipData + */ + parseArgs(url: any, options: any, skipData: any): Object; + } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/AdapterRegistry.html + * + * A registry to make contextual calling/searching easier. + * Objects of this class keep list of arrays in the form [name, check, + * wrap, directReturn] that are used to determine what the contextual + * result of a set of checked arguments is. All check/wrap functions + * in this registry should be of the same arity. + * + * @param returnWrappers Optional + */ + interface AdapterRegistry { (returnWrappers?: boolean): void } + interface AdapterRegistry { + /** + * + */ + pairs: any[]; + /** + * + */ + returnWrappers: boolean; + /** + * Find an adapter for the given arguments. If no suitable adapter + * is found, throws an exception. match() accepts any number of + * arguments, all of which are passed to all matching functions + * from the registered pairs. + * + */ + match(): any; + /** + * register a check function to determine if the wrap function or + * object gets selected + * + * @param name a way to identify this matcher. + * @param check a function that arguments are passed to from the adapter'smatch() function. The check function should return true if thegiven arguments are appropriate for the wrap function. + * @param wrap + * @param directReturn OptionalIf directReturn is true, the value passed in for wrap will bereturned instead of being called. Alternately, theAdapterRegistry can be set globally to "return not call" usingthe returnWrappers property. Either way, this behavior allowsthe registry to act as a "search" function instead of afunction interception library. + * @param override OptionalIf override is given and true, the check function will be givenhighest priority. Otherwise, it will be the lowest priorityadapter. + */ + register(name: String, check: Function, wrap: Function, directReturn: boolean, override: boolean): void; + /** + * Remove a named adapter from the registry + * + * @param name The name of the adapter. + */ + unregister(name: String): any; + } + + module AdapterRegistry { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html + * + * A getter and setter for storing the string content associated with the + * module and url arguments. + * If module is a string that contains slashes, then it is interpretted as a fully + * resolved path (typically a result returned by require.toUrl), and url should not be + * provided. This is the preferred signature. If module is a string that does not + * contain slashes, then url must also be provided and module and url are used to + * call dojo.moduleUrl() to generate a module URL. This signature is deprecated. + * If value is specified, the cache value for the moduleUrl will be set to + * that value. Otherwise, dojo.cache will fetch the moduleUrl and store it + * in its internal cache and return that cached value for the URL. To clear + * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the + * the URL contents, only modules on the same domain of the page can use this capability. + * The build system can inline the cache values though, to allow for xdomain hosting. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + */ + interface cache { (module: String, url: String, value?: String): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html + * + * A getter and setter for storing the string content associated with the + * module and url arguments. + * If module is a string that contains slashes, then it is interpretted as a fully + * resolved path (typically a result returned by require.toUrl), and url should not be + * provided. This is the preferred signature. If module is a string that does not + * contain slashes, then url must also be provided and module and url are used to + * call dojo.moduleUrl() to generate a module URL. This signature is deprecated. + * If value is specified, the cache value for the moduleUrl will be set to + * that value. Otherwise, dojo.cache will fetch the moduleUrl and store it + * in its internal cache and return that cached value for the URL. To clear + * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the + * the URL contents, only modules on the same domain of the page can use this capability. + * The build system can inline the cache values though, to allow for xdomain hosting. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + */ + interface cache { (module: Object, url: String, value?: String): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html + * + * A getter and setter for storing the string content associated with the + * module and url arguments. + * If module is a string that contains slashes, then it is interpretted as a fully + * resolved path (typically a result returned by require.toUrl), and url should not be + * provided. This is the preferred signature. If module is a string that does not + * contain slashes, then url must also be provided and module and url are used to + * call dojo.moduleUrl() to generate a module URL. This signature is deprecated. + * If value is specified, the cache value for the moduleUrl will be set to + * that value. Otherwise, dojo.cache will fetch the moduleUrl and store it + * in its internal cache and return that cached value for the URL. To clear + * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the + * the URL contents, only modules on the same domain of the page can use this capability. + * The build system can inline the cache values though, to allow for xdomain hosting. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + */ + interface cache { (module: String, url: String, value?: Object): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/cache.html + * + * A getter and setter for storing the string content associated with the + * module and url arguments. + * If module is a string that contains slashes, then it is interpretted as a fully + * resolved path (typically a result returned by require.toUrl), and url should not be + * provided. This is the preferred signature. If module is a string that does not + * contain slashes, then url must also be provided and module and url are used to + * call dojo.moduleUrl() to generate a module URL. This signature is deprecated. + * If value is specified, the cache value for the moduleUrl will be set to + * that value. Otherwise, dojo.cache will fetch the moduleUrl and store it + * in its internal cache and return that cached value for the URL. To clear + * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the + * the URL contents, only modules on the same domain of the page can use this capability. + * The build system can inline the cache values though, to allow for xdomain hosting. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + */ + interface cache { (module: Object, url: String, value?: Object): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/cookie.html + * + * Get or set a cookie. + * If one argument is passed, returns the value of the cookie + * For two or more arguments, acts as a setter. + * + * @param name Name of the cookie + * @param value OptionalValue for the cookie + * @param props OptionalProperties for the cookie + */ + interface cookie { (name: String, value?: String, props?: Object): void } + interface cookie { + /** + * Use to determine if the current browser supports cookies or not. + * + * Returns true if user allows cookies. + * Returns false if user doesn't allow cookies. + * + */ + isSupported(): void; + } + + module cookie { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/domReady.html + * + * Plugin to delay require()/define() callback from firing until the DOM has finished loading. + * + * @param callback + */ + interface domReady { (callback: any): void } + interface domReady { + /** + * + * @param id + * @param req + * @param load + */ + load(id: any, req: any, load: any): void; + } + + module domReady { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/hash.html + * + * Gets or sets the hash string in the browser URL. + * Handles getting and setting of location.hash. + * + * If no arguments are passed, acts as a getter. + * If a string is passed, acts as a setter. + * + * @param hash Optionalthe hash is set - #string. + * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. + */ + interface hash { (hash?: String, replace?: boolean): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/has.html + * + * Return the current value of the named feature. + * Returns the value of the feature named by name. The feature must have been + * previously added to the cache by has.add. + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. + */ + interface has { (name: String): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/has.html + * + * Return the current value of the named feature. + * Returns the value of the feature named by name. The feature must have been + * previously added to the cache by has.add. + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. + */ + interface has { (name: number): void } + interface has { + /** + * + */ + cache: string; + /** + * Register a new feature test for some named feature. + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. + * @param test A test function to register. If a function, queued for testing until actuallyneeded. The test function should return a boolean indicatingthe presence of a feature or bug. + * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. + * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). + */ + add(name: String, test: Function, now: boolean, force: boolean): any; + /** + * Register a new feature test for some named feature. + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. + * @param test A test function to register. If a function, queued for testing until actuallyneeded. The test function should return a boolean indicatingthe presence of a feature or bug. + * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. + * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). + */ + add(name: number, test: Function, now: boolean, force: boolean): any; + /** + * Deletes the contents of the element passed to test functions. + * + * @param element + */ + clearElement(element: any): void; + /** + * Conditional loading of AMD modules based on a has feature test value. + * + * @param id Gives the resolved module id to load. + * @param parentRequire The loader require function with respect to the module that contained the plugin resource in it'sdependency list. + * @param loaded Callback to loader that consumes result of plugin demand. + */ + load(id: String, parentRequire: Function, loaded: Function): void; + /** + * Resolves id into a module id based on possibly-nested tenary expression that branches on has feature test value(s). + * + * @param id + * @param toAbsMid Resolves a relative module id into an absolute module id + */ + normalize(id: any, toAbsMid: Function): void; + } + + module has { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/hccss.html + * + * Test if computer is in high contrast mode (i.e. if browser is not displaying background images). + * Defines has("highcontrast") and sets dj_a11y CSS class on if machine is in high contrast mode. + * Returns has() method; + * + */ + interface hccss { (): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-data.html + * + * Adds data() and removeData() methods to NodeList, and returns NodeList constructor. + * + */ + interface NodeList_data { (): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-html.html + * + * Adds a chainable html method to dojo/query() / NodeList instances for setting/replacing node content + * + */ + interface NodeList_html { (): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-fx.html + * + * Adds dojo.fx animation support to dojo.query() by extending the NodeList class + * with additional FX functions. NodeList is the array-like object used to hold query results. + * + */ + interface NodeList_fx { (): void } + interface NodeList_fx { + /** + * fade all elements of the node list to a specified opacity + * + * @param args + */ + fadeTo(args: any): any; + /** + * highlight all elements of the node list. + * Returns an instance of dojo.Animation + * + * @param args + */ + highlight(args: any): any; + /** + * size all elements of this NodeList. Returns an instance of dojo.Animation + * + * @param args + */ + sizeTo(args: any): any; + /** + * slide all elements of this NodeList. Returns an instance of dojo.Animation + * + * @param args + */ + slideBy(args: any): any; + /** + * Wipe all elements of the NodeList to a specified width: or height: + * + * @param args + */ + wipeTo(args: any): any; + } + + module NodeList_fx { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-dom.html + * + * Adds DOM related methods to NodeList, and returns NodeList constructor. + * + */ + interface NodeList_dom { (): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-manipulate.html + * + * Adds chainable methods to dojo.query() / NodeList instances for manipulating HTML + * and DOM nodes and their properties. + * + */ + interface NodeList_manipulate { (): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-traverse.html + * + * Adds chainable methods to dojo/query() / NodeList instances for traversing the DOM + * + */ + interface NodeList_traverse { (): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html + * + * A function that provides core event listening functionality. With this function + * you can provide a target, event type, and listener to be notified of + * future matching events that are fired. + * To listen for "click" events on a button node, we can do: + * + * define(["dojo/on"], function(listen){ + * on(button, "click", clickHandler); + * ... + * Evented JavaScript objects can also have their own events. + * + * var obj = new Evented; + * on(obj, "foo", fooHandler); + * And then we could publish a "foo" event: + * + * on.emit(obj, "foo", {key: "value"}); + * We can use extension events as well. For example, you could listen for a tap gesture: + * + * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ + * on(button, tap, tapHandler); + * ... + * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: + * + * obj.onfoo({key:"value"}); + * If you use on.emit on a DOM node, it will use native event dispatching when possible. + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix + */ + interface on { (target: HTMLElement, type: String, listener: Function, dontFix: any): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html + * + * A function that provides core event listening functionality. With this function + * you can provide a target, event type, and listener to be notified of + * future matching events that are fired. + * To listen for "click" events on a button node, we can do: + * + * define(["dojo/on"], function(listen){ + * on(button, "click", clickHandler); + * ... + * Evented JavaScript objects can also have their own events. + * + * var obj = new Evented; + * on(obj, "foo", fooHandler); + * And then we could publish a "foo" event: + * + * on.emit(obj, "foo", {key: "value"}); + * We can use extension events as well. For example, you could listen for a tap gesture: + * + * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ + * on(button, tap, tapHandler); + * ... + * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: + * + * obj.onfoo({key:"value"}); + * If you use on.emit on a DOM node, it will use native event dispatching when possible. + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix + */ + interface on { (target: Object, type: String, listener: Function, dontFix: any): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html + * + * A function that provides core event listening functionality. With this function + * you can provide a target, event type, and listener to be notified of + * future matching events that are fired. + * To listen for "click" events on a button node, we can do: + * + * define(["dojo/on"], function(listen){ + * on(button, "click", clickHandler); + * ... + * Evented JavaScript objects can also have their own events. + * + * var obj = new Evented; + * on(obj, "foo", fooHandler); + * And then we could publish a "foo" event: + * + * on.emit(obj, "foo", {key: "value"}); + * We can use extension events as well. For example, you could listen for a tap gesture: + * + * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ + * on(button, tap, tapHandler); + * ... + * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: + * + * obj.onfoo({key:"value"}); + * If you use on.emit on a DOM node, it will use native event dispatching when possible. + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix + */ + interface on { (target: HTMLElement, type: Function, listener: Function, dontFix: any): void } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/on.html + * + * A function that provides core event listening functionality. With this function + * you can provide a target, event type, and listener to be notified of + * future matching events that are fired. + * To listen for "click" events on a button node, we can do: + * + * define(["dojo/on"], function(listen){ + * on(button, "click", clickHandler); + * ... + * Evented JavaScript objects can also have their own events. + * + * var obj = new Evented; + * on(obj, "foo", fooHandler); + * And then we could publish a "foo" event: + * + * on.emit(obj, "foo", {key: "value"}); + * We can use extension events as well. For example, you could listen for a tap gesture: + * + * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ + * on(button, tap, tapHandler); + * ... + * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: + * + * obj.onfoo({key:"value"}); + * If you use on.emit on a DOM node, it will use native event dispatching when possible. + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix + */ + interface on { (target: Object, type: String, listener: Function, dontFix?: any): { remove: { (): void } } } + interface on { + /** + * + * @param target + * @param type + * @param event + */ + emit(target: any, type: any, event: any): any; + /** + * This function acts the same as on(), but will only call the listener once. The + * listener will be called for the first + * event that takes place and then listener will automatically be removed. + * + * @param target + * @param type + * @param listener + * @param dontFix + */ + once(target: any, type: any, listener: any, dontFix: any): any; + /** + * + * @param target + * @param type + * @param listener + * @param addListener + * @param dontFix + * @param matchesTarget + */ + parse(target: any, type: any, listener: any, addListener: any, dontFix: any, matchesTarget: any): any; + /** + * This function acts the same as on(), but with pausable functionality. The + * returned signal object has pause() and resume() functions. Calling the + * pause() method will cause the listener to not be called for future events. Calling the + * resume() method will cause the listener to again be called for future events. + * + * @param target + * @param type + * @param listener + * @param dontFix + */ + pausable(target: any, type: any, listener: any, dontFix: any): any; + /** + * Creates a new extension event with event delegation. This is based on + * the provided event type (can be extension event) that + * only calls the listener when the CSS selector matches the target of the event. + * + * The application must require() an appropriate level of dojo/query to handle the selector. + * + * @param selector The CSS selector to use for filter events and determine the |this| of the event listener. + * @param eventType The event to listen for + * @param children Indicates if children elements of the selector should be allowed. This defaults to true + */ + selector(selector: any, eventType: any, children: any): Function; + } + + module on { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/query.html + * + * This modules provides DOM querying functionality. The module export is a function + * that can be used to query for DOM nodes by CSS selector and returns a NodeList + * representing the matching nodes. + * dojo/query is responsible for loading the appropriate query engine and wrapping + * its results with a NodeList. You can use dojo/query with a specific selector engine + * by using it as a plugin. For example, if you installed the sizzle package, you could + * use it as the selector engine with: + * + * require(["dojo/query!sizzle"], function(query){ + * query("div")... + * The id after the ! can be a module id of the selector engine or one of the following values: + * + * acme: This is the default engine used by Dojo base, and will ensure that the full + * Acme engine is always loaded. + * css2: If the browser has a native selector engine, this will be used, otherwise a + * very minimal lightweight selector engine will be loaded that can do simple CSS2 selectors + * (by #id, .class, tag, and [name=value] attributes, with standard child or descendant (>) + * operators) and nothing more. + * css2.1: If the browser has a native selector engine, this will be used, otherwise the + * full Acme engine will be loaded. + * css3: If the browser has a native selector engine with support for CSS3 pseudo + * selectors (most modern browsers except IE8), this will be used, otherwise the + * full Acme engine will be loaded. + * Or the module id of a selector engine can be used to explicitly choose the selector engine + * + * For example, if you are using CSS3 pseudo selectors in module, you can specify that + * you will need support them with: + * + * require(["dojo/query!css3"], function(query){ + * query('#t > h3:nth-child(odd)')... + * You can also choose the selector engine/load configuration by setting the query-selector: + * For example: + * + * + * + * @param selector A CSS selector to search for. + * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. + */ + interface query{(selector: String, context?: String): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/query.html + * + * This modules provides DOM querying functionality. The module export is a function + * that can be used to query for DOM nodes by CSS selector and returns a NodeList + * representing the matching nodes. + * dojo/query is responsible for loading the appropriate query engine and wrapping + * its results with a NodeList. You can use dojo/query with a specific selector engine + * by using it as a plugin. For example, if you installed the sizzle package, you could + * use it as the selector engine with: + * + * require(["dojo/query!sizzle"], function(query){ + * query("div")... + * The id after the ! can be a module id of the selector engine or one of the following values: + * + * acme: This is the default engine used by Dojo base, and will ensure that the full + * Acme engine is always loaded. + * css2: If the browser has a native selector engine, this will be used, otherwise a + * very minimal lightweight selector engine will be loaded that can do simple CSS2 selectors + * (by #id, .class, tag, and [name=value] attributes, with standard child or descendant (>) + * operators) and nothing more. + * css2.1: If the browser has a native selector engine, this will be used, otherwise the + * full Acme engine will be loaded. + * css3: If the browser has a native selector engine with support for CSS3 pseudo + * selectors (most modern browsers except IE8), this will be used, otherwise the + * full Acme engine will be loaded. + * Or the module id of a selector engine can be used to explicitly choose the selector engine + * + * For example, if you are using CSS3 pseudo selectors in module, you can specify that + * you will need support them with: + * + * require(["dojo/query!css3"], function(query){ + * query('#t > h3:nth-child(odd)')... + * You can also choose the selector engine/load configuration by setting the query-selector: + * For example: + * + * + * + * @param selector A CSS selector to search for. + * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. + */ + interface query{(selector: String, context?: HTMLElement): void} + interface query { + /** + * can be used as AMD plugin to conditionally load new query engine + * + * @param id + * @param parentRequire + * @param loaded + */ + load(id: any, parentRequire: any, loaded: any): void; + /** + * Array-like object which adds syntactic + * sugar for chaining, common iteration operations, animation, and + * node manipulation. NodeLists are most often returned as the + * result of dojo/query() calls. + * NodeList instances provide many utilities that reflect + * core Dojo APIs for Array iteration and manipulation, DOM + * manipulation, and event handling. Instead of needing to dig up + * functions in the dojo package, NodeLists generally make the + * full power of Dojo available for DOM manipulation tasks in a + * simple, chainable way. + * + * @param array + */ + NodeList(array: any): any[]; + } + + module query { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/ready.html + * + * Add a function to execute on DOM content loaded and all requested modules have arrived and been evaluated. + * In most cases, the domReady plug-in should suffice and this method should not be needed. + * + * When called in a non-browser environment, just checks that all requested modules have arrived and been + * evaluated. + * + * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 + * @param context The context in which to run execute callback, or a callback if not using context + * @param callback OptionalThe function to execute. + */ + interface ready{(priority?: number, context?: any, callback?: Function): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/sniff.html + * + * This module sets has() flags based on the current browser. + * It returns the has() function. + * + */ + interface sniff{(): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/when.html + * + * Transparently applies callbacks to values and/or promises. + * Accepts promises but also transparently handles non-promises. If no + * callbacks are provided returns a promise, regardless of the initial + * value. Foreign promises are converted. + * + * If callbacks are provided and the initial value is not a promise, + * the callback is executed immediately with no error handling. Returns + * a promise if the initial value is a promise, or the result of the + * callback otherwise. + * + * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. + * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. + * @param errback OptionalCallback to be invoked when the promise is rejected. + * @param progback OptionalCallback to be invoked when the promise emits a progress update. + */ + interface when{(valueOrPromise: any, callback?: Function, errback?: Function, progback?: Function): void} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/DeferredList.html + * + * Deprecated, use dojo/promise/all instead. + * Provides event handling for a group of Deferred objects. + * DeferredList takes an array of existing deferreds and returns a new deferred of its own + * this new deferred will typically have its callback fired when all of the deferreds in + * the given list have fired their own deferreds. The parameters fireOnOneCallback and + * fireOnOneErrback, will fire before all the deferreds as appropriate + * + */ + class DeferredList { + constructor(); + /** + * Gathers the results of the deferreds for packaging + * as the parameters to the Deferred Lists' callback + * + * @param deferredList The deferred list from which this function gathers results. + */ + gatherResults(deferredList: dojo.DeferredList): any; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/Deferred.html + * + * Creates a new deferred. This API is preferred over + * dojo/_base/Deferred. + * Creates a new deferred, as an abstraction over (primarily) + * asynchronous operations. The deferred is the private interface + * that should not be returned to calling code. That's what the + * promise is for. See dojo/promise/Promise. + * + * @param canceler OptionalWill be invoked if the deferred is canceled. The cancelerreceives the reason the deferred was canceled as its argument.The deferred is rejected with its return value, or a newdojo/errors/CancelError instance. + */ + class Deferred { + constructor(canceler?: Function); + /** + * + */ + "promise": Object; + /** + * Inform the deferred it may cancel its asynchronous operation. + * Inform the deferred it may cancel its asynchronous operation. + * The deferred's (optional) canceler is invoked and the + * deferred will be left in a rejected state. Can affect other + * promises that originate with the same deferred. + * + * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. + */ + cancel(reason: any, strict: boolean): any; + /** + * Checks whether the deferred has been canceled. + * + */ + isCanceled(): boolean; + /** + * Checks whether the deferred has been resolved or rejected. + * + */ + isFulfilled(): boolean; + /** + * Checks whether the deferred has been rejected. + * + */ + isRejected(): boolean; + /** + * Checks whether the deferred has been resolved. + * + */ + isResolved(): boolean; + /** + * Emit a progress update on the deferred. + * Emit a progress update on the deferred. Progress updates + * can be used to communicate updates about the asynchronous + * operation before it has finished. + * + * @param update The progress update. Passed to progbacks. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently no progress can be emitted. + */ + progress(update: any, strict: boolean): dojo.promise.Promise; + /** + * Reject the deferred. + * Reject the deferred, putting it in an error state. + * + * @param error The error result of the deferred. Passed to errbacks. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be rejected. + */ + reject(error: any, strict: boolean): any; + /** + * Resolve the deferred. + * Resolve the deferred, putting it in a success state. + * + * @param value The result of the deferred. Passed to callbacks. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be resolved. + */ + resolve(value: any, strict: boolean): dojo.promise.Promise; + /** + * Add new callbacks to the deferred. + * Add new callbacks to the deferred. Callbacks can be added + * before or after the deferred is fulfilled. + * + * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. + * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. + * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. + */ + then(callback: Function, errback: Function, progback: Function): dojo.promise.Promise; + /** + * + */ + toString(): String; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/Evented.html + * + * A class that can be used as a mixin or base class, + * to add on() and emit() methods to a class + * for listening for events and emitting events: + * + */ + class Evented { + constructor(); + /** + * + * @param type + * @param event + */ + emit(type: String, data: any): any; + /** + * + * @param type + * @param listener + */ + on(type: String, listener: {(e:any):void}): {remove: {():void}}; + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList.html + * + * Array-like object which adds syntactic + * sugar for chaining, common iteration operations, animation, and + * node manipulation. NodeLists are most often returned as the + * result of dojo/query() calls. + * NodeList instances provide many utilities that reflect + * core Dojo APIs for Array iteration and manipulation, DOM + * manipulation, and event handling. Instead of needing to dig up + * functions in the dojo package, NodeLists generally make the + * full power of Dojo available for DOM manipulation tasks in a + * simple, chainable way. + * + * @param array + */ + class NodeList { + constructor(array: any); + /** + * + */ + "events": any[]; + /** + * adds the specified class to every node in the list + * + * @param className A String class name to add, or several space-separated class names,or an array of class names. + */ + addClass(className: String): void; + /** + * adds the specified class to every node in the list + * + * @param className A String class name to add, or several space-separated class names,or an array of class names. + */ + addClass(className: any[]): void; + /** + * Animate the effects of adding a class to all nodes in this list. + * see dojox.fx.addClass + * + * @param cssClass + * @param args + */ + addClassFx(cssClass: any, args: any): {type:Function;value:any}; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: String, position: String): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: HTMLElement, position: String): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: Object, position: String): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: dojo.NodeList, position: String): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: String, position: number): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: HTMLElement, position: number): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: Object, position: number): Function; + /** + * add a node, NodeList or some HTML as a string to every item in the + * list. Returns the original list. + * a copy of the HTML content is added to each item in the + * list, with an optional position argument. If no position + * argument is provided, the content is appended to the end of + * each item. + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + */ + addContent(content: dojo.NodeList, position: number): Function; + /** + * places any/all elements in queryOrListOrNode at a + * position relative to the first element in this list. + * Returns a dojo/NodeList of the adopted elements. + * + * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. + * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + */ + adopt(queryOrListOrNode: String, position: String): any; + /** + * places any/all elements in queryOrListOrNode at a + * position relative to the first element in this list. + * Returns a dojo/NodeList of the adopted elements. + * + * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. + * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + */ + adopt(queryOrListOrNode: any[], position: String): any; + /** + * places any/all elements in queryOrListOrNode at a + * position relative to the first element in this list. + * Returns a dojo/NodeList of the adopted elements. + * + * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. + * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + */ + adopt(queryOrListOrNode: HTMLElement, position: String): any; + /** + * Places the content after every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + after(content: String): any; + /** + * Places the content after every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + after(content: HTMLElement): any; + /** + * Places the content after every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + after(content: NodeList): any; + /** + * Adds the nodes from the previous dojo/NodeList to the current dojo/NodeList. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + */ + andSelf(): any; + /** + * Animate one or more CSS properties for all nodes in this list. + * The returned animation object will already be playing when it + * is returned. See the docs for dojo.anim for full details. + * + * @param properties the properties to animate. does NOT support the auto parameter like otherNodeList-fx methods. + * @param duration OptionalOptional. The time to run the animations for + * @param easing OptionalOptional. The easing function to use. + * @param onEnd OptionalA function to be called when the animation ends + * @param delay Optionalhow long to delay playing the returned animation + */ + anim(properties: Object, duration: number, easing: Function, onEnd: Function, delay: number): any; + /** + * Animate all elements of this NodeList across the properties specified. + * syntax identical to dojo.animateProperty + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + */ + animateProperty(args: Object): any; + /** + * appends the content to every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + append(content: String): any; + /** + * appends the content to every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + append(content: HTMLElement): any; + /** + * appends the content to every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + append(content: NodeList): any; + /** + * appends nodes in this NodeList to the nodes matched by + * the query passed to appendTo. + * The nodes in this NodeList will be cloned if the query + * matches more than one element. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param query + */ + appendTo(query: String): any; + /** + * Returns a new NodeList comprised of items in this NodeList + * at the given index or indices. + * + * @param index One or more 0-based indices of items in the currentNodeList. A negative index will start at the end of thelist and go backwards. + */ + at(index: number[]): any; + /** + * gets or sets the DOM attribute for every element in the + * NodeList. See also dojo/dom-attr + * + * @param property the attribute to get/set + * @param value Optionaloptional. The value to set the property to + */ + attr(property: String, value: String): any; + /** + * Places the content before every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + before(content: String): any; + /** + * Places the content before every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + before(content: HTMLElement): any; + /** + * Places the content before every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + before(content: NodeList): any; + /** + * Returns all immediate child elements for nodes in this dojo/NodeList. + * Optionally takes a query to filter the child elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + children(query: String): any; + /** + * Clones all the nodes in this NodeList and returns them as a new NodeList. + * Only the DOM nodes are cloned, not any attached event handlers. + * + */ + clone(): any; + /** + * Returns closest parent that matches query, including current node in this + * dojo/NodeList if it matches the query. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query a CSS selector. + * @param root OptionalIf specified, query is relative to "root" rather than document body. + */ + closest(query: String, root: String): any; + /** + * Returns closest parent that matches query, including current node in this + * dojo/NodeList if it matches the query. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query a CSS selector. + * @param root OptionalIf specified, query is relative to "root" rather than document body. + */ + closest(query: String, root: HTMLElement): any; + /** + * Returns a new NodeList comprised of items in this NodeList + * as well as items passed in as parameters + * This method behaves exactly like the Array.concat method + * with the caveat that it returns a NodeList and not a + * raw Array. For more details, see the Array.concat + * docs + * + * @param item OptionalAny number of optional parameters may be passed in to bespliced into the NodeList + */ + concat(item: Object): any; + /** + * Attach event handlers to every item of the NodeList. Uses dojo.connect() + * so event properties are normalized. + * + * Application must manually require() "dojo/_base/connect" before using this method. + * + * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event + * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in + * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. + */ + connect(methodName: String, objOrFunc: Object, funcName: String): void; + /** + * Attach event handlers to every item of the NodeList. Uses dojo.connect() + * so event properties are normalized. + * + * Application must manually require() "dojo/_base/connect" before using this method. + * + * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event + * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in + * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. + */ + connect(methodName: String, objOrFunc: Function, funcName: String): void; + /** + * Attach event handlers to every item of the NodeList. Uses dojo.connect() + * so event properties are normalized. + * + * Application must manually require() "dojo/_base/connect" before using this method. + * + * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event + * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in + * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. + */ + connect(methodName: String, objOrFunc: String, funcName: String): void; + /** + * Deprecated: Use position() for border-box x/y/w/h + * or marginBox() for margin-box w/h/l/t. + * Returns the box objects of all elements in a node list as + * an Array (not a NodeList). Acts like domGeom.coords, though assumes + * the node passed is each node in this list. + * + */ + coords(): void; + /** + * stash or get some arbitrary data on/from these nodes. + * Stash or get some arbitrary data on/from these nodes. This private _data function is + * exposed publicly on dojo/NodeList, eg: as the result of a dojo/query call. + * DIFFERS from jQuery.data in that when used as a getter, the entire list is ALWAYS + * returned. EVEN WHEN THE LIST IS length == 1. + * + * A single-node version of this function is provided as dojo._nodeData, which follows + * the same signature, though expects a String ID or DomNode reference in the first + * position, before key/value arguments. + * + * @param key OptionalIf an object, act as a setter and iterate over said object setting data items as defined.If a string, and value present, set the data for defined key to valueIf a string, and value absent, act as a getter, returning the data associated with said key + * @param value OptionalThe value to set for said key, provided key is a string (and not an object) + */ + data(key: Object, value: any): any; + /** + * stash or get some arbitrary data on/from these nodes. + * Stash or get some arbitrary data on/from these nodes. This private _data function is + * exposed publicly on dojo/NodeList, eg: as the result of a dojo/query call. + * DIFFERS from jQuery.data in that when used as a getter, the entire list is ALWAYS + * returned. EVEN WHEN THE LIST IS length == 1. + * + * A single-node version of this function is provided as dojo._nodeData, which follows + * the same signature, though expects a String ID or DomNode reference in the first + * position, before key/value arguments. + * + * @param key OptionalIf an object, act as a setter and iterate over said object setting data items as defined.If a string, and value present, set the data for defined key to valueIf a string, and value absent, act as a getter, returning the data associated with said key + * @param value OptionalThe value to set for said key, provided key is a string (and not an object) + */ + data(key: String, value: any): any; + /** + * Monitor nodes in this NodeList for [bubbled] events on nodes that match selector. + * Calls fn(evt) for those events, where (inside of fn()), this == the node + * that matches the selector. + * Sets up event handlers that can catch events on any subnodes matching a given selector, + * including nodes created after delegate() has been called. + * + * This allows an app to setup a single event handler on a high level node, rather than many + * event handlers on subnodes. For example, one onclick handler for a Tree widget, rather than separate + * handlers for each node in the tree. + * Since setting up many event handlers is expensive, this can increase performance. + * + * Note that delegate() will not work for events that don't bubble, like focus. + * onmouseenter/onmouseleave also don't currently work. + * + * @param selector CSS selector valid to dojo.query, like ".foo" or "div > span". Theselector is relative to the nodes in this NodeList, not the document root.For example myNodeList.delegate("> a", "onclick", ...) will catch events onanchor nodes which are (immediate) children of the nodes in myNodeList. + * @param eventName Standard event name used as an argument to dojo.connect, like "onclick". + * @param fn Callback function passed the event object, and where this == the node that matches the selector.That means that for example, after setting up a handler viadojo.query("body").delegate("fieldset", "onclick", ...)clicking on a fieldset or any nodes inside of a fieldset will be reportedas a click on the fieldset itself. + */ + delegate(selector: String, eventName: String, fn: Function): any; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: dojox.dtl.__StringArgs , context: dojox.dtl.__ObjectArgs ): Function; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: String, context: dojox.dtl.__ObjectArgs ): Function; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: dojox.dtl.__StringArgs , context: Object): Function; + /** + * Renders the specified template in each of the NodeList entries. + * + * @param template The template string or location + * @param context The context object or location + */ + dtl(template: String, context: Object): Function; + /** + * clears all content from each node in the list. Effectively + * equivalent to removing all child nodes from every item in + * the list. + * + */ + empty(): any; + /** + * Ends use of the current NodeList by returning the previous NodeList + * that generated the current NodeList. + * Returns the NodeList that generated the current NodeList. If there + * is no parent NodeList, an empty NodeList is returned. + * + */ + end(): any; + /** + * Returns the even nodes in this dojo/NodeList as a dojo/NodeList. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + */ + even(): any; + /** + * see dojo/_base/array.every() and the Array.every + * docs. + * Takes the same structure of arguments and returns as + * dojo/_base/array.every() with the caveat that the passed array is + * implicitly this NodeList + * + * @param callback the callback + * @param thisObject Optionalthe context + */ + every(callback: Function, thisObject: Object): any; + /** + * fade in all elements of this NodeList via dojo.fadeIn + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + */ + fadeIn(args: Object): any; + /** + * fade out all elements of this NodeList via dojo.fadeOut + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + */ + fadeOut(args: Object): any; + /** + * "masks" the built-in javascript filter() method (supported + * in Dojo via dojo.filter) to support passing a simple + * string filter in addition to supporting filtering function + * objects. + * + * @param filter If a string, a CSS rule like ".thinger" or "div > span". + */ + filter(filter: String): any; + /** + * "masks" the built-in javascript filter() method (supported + * in Dojo via dojo.filter) to support passing a simple + * string filter in addition to supporting filtering function + * objects. + * + * @param filter If a string, a CSS rule like ".thinger" or "div > span". + */ + filter(filter: Function): any; + /** + * Returns the first node in this dojo/NodeList as a dojo/NodeList. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + */ + first(): any; + /** + * see dojo/_base/array.forEach(). The primary difference is that the acted-on + * array is implicitly this NodeList. If you want the option to break out + * of the forEach loop, use every() or some() instead. + * + * @param callback + * @param thisObj + */ + forEach(callback: any, thisObj: any): Function; + /** + * allows setting the innerHTML of each node in the NodeList, + * if there is a value passed in, otherwise, reads the innerHTML value of the first node. + * This method is simpler than the dojo/NodeList.html() method provided by + * dojo/NodeList-html. This method just does proper innerHTML insertion of HTML fragments, + * and it allows for the innerHTML to be read for the first node in the node list. + * Since dojo/NodeList-html already took the "html" name, this method is called + * "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this + * module will define an "html" method that can be used instead. Be careful if you + * are working in an environment where it is possible that dojo/NodeList-html could + * have been loaded, since its definition of "html" will take precedence. + * The nodes represented by the value argument will be cloned if more than one + * node is in this NodeList. The nodes in this NodeList are returned in the "set" + * usage of this method, not the HTML that was inserted. + * + * @param value Optional + */ + html(value: String): any; + /** + * allows setting the innerHTML of each node in the NodeList, + * if there is a value passed in, otherwise, reads the innerHTML value of the first node. + * This method is simpler than the dojo/NodeList.html() method provided by + * dojo/NodeList-html. This method just does proper innerHTML insertion of HTML fragments, + * and it allows for the innerHTML to be read for the first node in the node list. + * Since dojo/NodeList-html already took the "html" name, this method is called + * "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this + * module will define an "html" method that can be used instead. Be careful if you + * are working in an environment where it is possible that dojo/NodeList-html could + * have been loaded, since its definition of "html" will take precedence. + * The nodes represented by the value argument will be cloned if more than one + * node is in this NodeList. The nodes in this NodeList are returned in the "set" + * usage of this method, not the HTML that was inserted. + * + * @param value Optional + */ + html(value: HTMLElement): any; + /** + * allows setting the innerHTML of each node in the NodeList, + * if there is a value passed in, otherwise, reads the innerHTML value of the first node. + * This method is simpler than the dojo/NodeList.html() method provided by + * dojo/NodeList-html. This method just does proper innerHTML insertion of HTML fragments, + * and it allows for the innerHTML to be read for the first node in the node list. + * Since dojo/NodeList-html already took the "html" name, this method is called + * "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this + * module will define an "html" method that can be used instead. Be careful if you + * are working in an environment where it is possible that dojo/NodeList-html could + * have been loaded, since its definition of "html" will take precedence. + * The nodes represented by the value argument will be cloned if more than one + * node is in this NodeList. The nodes in this NodeList are returned in the "set" + * usage of this method, not the HTML that was inserted. + * + * @param value Optional + */ + html(value: NodeList): any; + /** + * see dojo/_base/array.indexOf(). The primary difference is that the acted-on + * array is implicitly this NodeList + * For more details on the behavior of indexOf, see Mozilla's + * indexOf + * docs + * + * @param value The value to search for. + * @param fromIndex OptionalThe location to start searching from. Optional. Defaults to 0. + */ + indexOf(value: Object, fromIndex: number): any; + /** + * allows setting the innerHTML of each node in the NodeList, + * if there is a value passed in, otherwise, reads the innerHTML value of the first node. + * This method is simpler than the dojo/NodeList.html() method provided by + * dojo/NodeList-html. This method just does proper innerHTML insertion of HTML fragments, + * and it allows for the innerHTML to be read for the first node in the node list. + * Since dojo/NodeList-html already took the "html" name, this method is called + * "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this + * module will define an "html" method that can be used instead. Be careful if you + * are working in an environment where it is possible that dojo/NodeList-html could + * have been loaded, since its definition of "html" will take precedence. + * The nodes represented by the value argument will be cloned if more than one + * node is in this NodeList. The nodes in this NodeList are returned in the "set" + * usage of this method, not the HTML that was inserted. + * + * @param value Optional + */ + innerHTML(value: String): any; + /** + * allows setting the innerHTML of each node in the NodeList, + * if there is a value passed in, otherwise, reads the innerHTML value of the first node. + * This method is simpler than the dojo/NodeList.html() method provided by + * dojo/NodeList-html. This method just does proper innerHTML insertion of HTML fragments, + * and it allows for the innerHTML to be read for the first node in the node list. + * Since dojo/NodeList-html already took the "html" name, this method is called + * "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this + * module will define an "html" method that can be used instead. Be careful if you + * are working in an environment where it is possible that dojo/NodeList-html could + * have been loaded, since its definition of "html" will take precedence. + * The nodes represented by the value argument will be cloned if more than one + * node is in this NodeList. The nodes in this NodeList are returned in the "set" + * usage of this method, not the HTML that was inserted. + * + * @param value Optional + */ + innerHTML(value: HTMLElement): any; + /** + * allows setting the innerHTML of each node in the NodeList, + * if there is a value passed in, otherwise, reads the innerHTML value of the first node. + * This method is simpler than the dojo/NodeList.html() method provided by + * dojo/NodeList-html. This method just does proper innerHTML insertion of HTML fragments, + * and it allows for the innerHTML to be read for the first node in the node list. + * Since dojo/NodeList-html already took the "html" name, this method is called + * "innerHTML". However, if dojo/NodeList-html has not been loaded yet, this + * module will define an "html" method that can be used instead. Be careful if you + * are working in an environment where it is possible that dojo/NodeList-html could + * have been loaded, since its definition of "html" will take precedence. + * The nodes represented by the value argument will be cloned if more than one + * node is in this NodeList. The nodes in this NodeList are returned in the "set" + * usage of this method, not the HTML that was inserted. + * + * @param value Optional + */ + innerHTML(value: NodeList): any; + /** + * The nodes in this NodeList will be placed after the nodes + * matched by the query passed to insertAfter. + * The nodes in this NodeList will be cloned if the query + * matches more than one element. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param query + */ + insertAfter(query: String): any; + /** + * The nodes in this NodeList will be placed after the nodes + * matched by the query passed to insertAfter. + * The nodes in this NodeList will be cloned if the query + * matches more than one element. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param query + */ + insertBefore(query: String): any; + /** + * Create a new instance of a specified class, using the + * specified properties and each node in the NodeList as a + * srcNodeRef. + * + * @param declaredClass + * @param properties Optional + */ + instantiate(declaredClass: String, properties: Object): any; + /** + * Create a new instance of a specified class, using the + * specified properties and each node in the NodeList as a + * srcNodeRef. + * + * @param declaredClass + * @param properties Optional + */ + instantiate(declaredClass: Object, properties: Object): any; + /** + * Returns the last node in this dojo/NodeList as a dojo/NodeList. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + */ + last(): any; + /** + * see dojo/_base/array.lastIndexOf(). The primary difference is that the + * acted-on array is implicitly this NodeList + * For more details on the behavior of lastIndexOf, see + * Mozilla's lastIndexOf + * docs + * + * @param value The value to search for. + * @param fromIndex OptionalThe location to start searching from. Optional. Defaults to 0. + */ + lastIndexOf(value: Object, fromIndex: number): any; + /** + * see dojo/_base/array.map(). The primary difference is that the acted-on + * array is implicitly this NodeList and the return is a + * NodeList (a subclass of Array) + * + * @param func + * @param obj Optional + */ + map(func: Function, obj: Function): any; + /** + * Returns margin-box size of nodes + * + */ + marginBox(): void; + /** + * Returns the next element for nodes in this dojo/NodeList. + * Optionally takes a query to filter the next elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + next(query: String): any; + /** + * Returns all sibling elements that come after the nodes in this dojo/NodeList. + * Optionally takes a query to filter the sibling elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + nextAll(query: String): any; + /** + * Returns the odd nodes in this dojo/NodeList as a dojo/NodeList. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + */ + odd(): any; + /** + * Listen for events on the nodes in the NodeList. Basic usage is: + * + * @param eventName + * @param listener + */ + on(eventName: any, listener: any): any; + /** + * removes elements in this list that match the filter + * from their parents and returns them as a new NodeList. + * + * @param filter OptionalCSS selector like ".foo" or "div > span" + */ + orphan(filter: String): any; + /** + * Returns immediate parent elements for nodes in this dojo/NodeList. + * Optionally takes a query to filter the parent elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + parent(query: String): any; + /** + * Returns all parent elements for nodes in this dojo/NodeList. + * Optionally takes a query to filter the child elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + parents(query: String): any; + /** + * places elements of this node list relative to the first element matched + * by queryOrNode. Returns the original NodeList. See: dojo/dom-construct.place + * + * @param queryOrNode may be a string representing any valid CSS3 selector or a DOM node.In the selector case, only the first matching element will be usedfor relative positioning. + * @param position can be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + */ + place(queryOrNode: String, position: String): any; + /** + * places elements of this node list relative to the first element matched + * by queryOrNode. Returns the original NodeList. See: dojo/dom-construct.place + * + * @param queryOrNode may be a string representing any valid CSS3 selector or a DOM node.In the selector case, only the first matching element will be usedfor relative positioning. + * @param position can be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + */ + place(queryOrNode: HTMLElement, position: String): any; + /** + * Returns border-box objects (x/y/w/h) of all elements in a node list + * as an Array (not a NodeList). Acts like dojo/dom-geometry-position, though + * assumes the node passed is each node in this list. + * + */ + position(): any; + /** + * prepends the content to every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + prepend(content: String): any; + /** + * prepends the content to every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + prepend(content: HTMLElement): any; + /** + * prepends the content to every node in the NodeList. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + prepend(content: NodeList): any; + /** + * prepends nodes in this NodeList to the nodes matched by + * the query passed to prependTo. + * The nodes in this NodeList will be cloned if the query + * matches more than one element. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param query + */ + prependTo(query: String): any; + /** + * Returns the previous element for nodes in this dojo/NodeList. + * Optionally takes a query to filter the previous elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + prev(query: String): any; + /** + * Returns all sibling elements that come before the nodes in this dojo/NodeList. + * Optionally takes a query to filter the sibling elements. + * The returned nodes will be in reverse DOM order -- the first node in the list will + * be the node closest to the original node/NodeList. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + prevAll(query: String): any; + /** + * Returns a new list whose members match the passed query, + * assuming elements of the current NodeList as the root for + * each search. + * + * @param queryStr + */ + query(queryStr: String): any; + /** + * removes elements in this list that match the filter + * from their parents and returns them as a new NodeList. + * + * @param filter OptionalCSS selector like ".foo" or "div > span" + */ + remove(filter: String): any; + /** + * Removes an attribute from each node in the list. + * + * @param name the name of the attribute to remove + */ + removeAttr(name: String): void; + /** + * removes the specified class from every node in the list + * + * @param className OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + */ + removeClass(className: String): any; + /** + * removes the specified class from every node in the list + * + * @param className OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + */ + removeClass(className: any[]): any; + /** + * Animate the effect of removing a class to all nodes in this list. + * see dojox.fx.removeClass + * + * @param cssClass + * @param args + */ + removeClassFx(cssClass: any, args: any): {type:Function;value:any}; + /** + * Remove the data associated with these nodes. + * + * @param key OptionalIf omitted, clean all data for this node.If passed, remove the data item found at key + */ + removeData(key: String): void; + /** + * replaces nodes matched by the query passed to replaceAll with the nodes + * in this NodeList. + * The nodes in this NodeList will be cloned if the query + * matches more than one element. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param query + */ + replaceAll(query: String): any; + /** + * Replaces one or more classes on a node if not present. + * Operates more quickly than calling removeClass() and addClass() + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + */ + replaceClass(addClassStr: String, removeClassStr: String): void; + /** + * Replaces one or more classes on a node if not present. + * Operates more quickly than calling removeClass() and addClass() + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + */ + replaceClass(addClassStr: any[], removeClassStr: String): void; + /** + * Replaces one or more classes on a node if not present. + * Operates more quickly than calling removeClass() and addClass() + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + */ + replaceClass(addClassStr: String, removeClassStr: any[]): void; + /** + * Replaces one or more classes on a node if not present. + * Operates more quickly than calling removeClass() and addClass() + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + */ + replaceClass(addClassStr: any[], removeClassStr: any[]): void; + /** + * Replaces each node in ths NodeList with the content passed to replaceWith. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + replaceWith(content: String): any; + /** + * Replaces each node in ths NodeList with the content passed to replaceWith. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + replaceWith(content: HTMLElement): any; + /** + * Replaces each node in ths NodeList with the content passed to replaceWith. + * The content will be cloned if the length of NodeList + * is greater than 1. Only the DOM nodes are cloned, not + * any attached event handlers. + * + * @param content + */ + replaceWith(content: NodeList): any; + /** + * Returns all sibling elements for nodes in this dojo/NodeList. + * Optionally takes a query to filter the sibling elements. + * .end() can be used on the returned dojo/NodeList to get back to the + * original dojo/NodeList. + * + * @param query Optionala CSS selector. + */ + siblings(query: String): any; + /** + * Returns a new NodeList, maintaining this one in place + * This method behaves exactly like the Array.slice method + * with the caveat that it returns a dojo/NodeList and not a + * raw Array. For more details, see Mozilla's slice + * documentation + * + * @param begin Can be a positive or negative integer, with positiveintegers noting the offset to begin at, and negativeintegers denoting an offset from the end (i.e., to the leftof the end) + * @param end OptionalOptional parameter to describe what position relative tothe NodeList's zero index to end the slice at. Like begin,can be positive or negative. + */ + slice(begin: number, end: number): any; + /** + * slide all elements of the node list to the specified place via dojo/fx.slideTo() + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + */ + slideTo(args: Object): any; + /** + * Takes the same structure of arguments and returns as + * dojo/_base/array.some() with the caveat that the passed array is + * implicitly this NodeList. See dojo/_base/array.some() and Mozilla's + * Array.some + * documentation. + * + * @param callback the callback + * @param thisObject Optionalthe context + */ + some(callback: Function, thisObject: Object): any; + /** + * Returns a new NodeList, manipulating this NodeList based on + * the arguments passed, potentially splicing in new elements + * at an offset, optionally deleting elements + * This method behaves exactly like the Array.splice method + * with the caveat that it returns a dojo/NodeList and not a + * raw Array. For more details, see Mozilla's splice + * documentation + * For backwards compatibility, calling .end() on the spliced NodeList + * does not return the original NodeList -- splice alters the NodeList in place. + * + * @param index begin can be a positive or negative integer, with positiveintegers noting the offset to begin at, and negativeintegers denoting an offset from the end (i.e., to the leftof the end) + * @param howmany OptionalOptional parameter to describe what position relative tothe NodeList's zero index to end the slice at. Like begin,can be positive or negative. + * @param item OptionalAny number of optional parameters may be passed in to bespliced into the NodeList + */ + splice(index: number, howmany: number, item: Object[]): any; + /** + * gets or sets the CSS property for every element in the NodeList + * + * @param property the CSS property to get/set, in JavaScript notation("lineHieght" instead of "line-height") + * @param value Optionaloptional. The value to set the property to + */ + style(property: String, value: String): any; + /** + * allows setting the text value of each node in the NodeList, + * if there is a value passed in, otherwise, returns the text value for all the + * nodes in the NodeList in one string. + * + * @param value + */ + text(value: String): any; + /** + * Adds a class to node if not present, or removes if present. + * Pass a boolean condition if you want to explicitly add or remove. + * + * @param className the CSS class to add + * @param condition OptionalIf passed, true means to add the class, false means to remove. + */ + toggleClass(className: String, condition: boolean): void; + /** + * Animate the effect of adding or removing a class to all nodes in this list. + * see dojox.fx.toggleClass + * + * @param cssClass + * @param force + * @param args + */ + toggleClassFx(cssClass: any, force: any, args: any): {type:Function;value:any}; + /** + * + */ + toString(): any; + /** + * If a value is passed, allows seting the value property of form elements in this + * NodeList, or properly selecting/checking the right value for radio/checkbox/select + * elements. If no value is passed, the value of the first node in this NodeList + * is returned. + * + * @param value + */ + val(value: String): any; + /** + * If a value is passed, allows seting the value property of form elements in this + * NodeList, or properly selecting/checking the right value for radio/checkbox/select + * elements. If no value is passed, the value of the first node in this NodeList + * is returned. + * + * @param value + */ + val(value: any[]): any; + /** + * wipe in all elements of this NodeList via dojo/fx.wipeIn() + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + */ + wipeIn(args: Object): any; + /** + * wipe out all elements of this NodeList via dojo/fx.wipeOut() + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + */ + wipeOut(args: Object): any; + /** + * Wrap each node in the NodeList with html passed to wrap. + * html will be cloned if the NodeList has more than one + * element. Only DOM nodes are cloned, not any attached + * event handlers. + * + * @param html + */ + wrap(html: String): any; + /** + * Wrap each node in the NodeList with html passed to wrap. + * html will be cloned if the NodeList has more than one + * element. Only DOM nodes are cloned, not any attached + * event handlers. + * + * @param html + */ + wrap(html: HTMLElement): any; + /** + * Insert html where the first node in this NodeList lives, then place all + * nodes in this NodeList as the child of the html. + * + * @param html + */ + wrapAll(html: String): any; + /** + * Insert html where the first node in this NodeList lives, then place all + * nodes in this NodeList as the child of the html. + * + * @param html + */ + wrapAll(html: HTMLElement): any; + /** + * For each node in the NodeList, wrap all its children with the passed in html. + * html will be cloned if the NodeList has more than one + * element. Only DOM nodes are cloned, not any attached + * event handlers. + * + * @param html + */ + wrapInner(html: String): any; + /** + * For each node in the NodeList, wrap all its children with the passed in html. + * html will be cloned if the NodeList has more than one + * element. Only DOM nodes are cloned, not any attached + * event handlers. + * + * @param html + */ + wrapInner(html: HTMLElement): any; + } + module NodeList { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList._nodeDataCache.html + * + * + */ + interface _nodeDataCache { + } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/Stateful.html + * + * Base class for objects that provide named properties with optional getter/setter + * control and the ability to watch for property changes + * + * The class also provides the functionality to auto-magically manage getters + * and setters for object attributes/properties. + * + * Getters and Setters should follow the format of _xxxGetter or _xxxSetter where + * the xxx is a name of the attribute to handle. So an attribute of "foo" + * would have a custom getter of _fooGetter and a custom setter of _fooSetter. + * + */ + class Stateful { + constructor(); + /** + * Get a property on a Stateful instance. + * Get a named property on a Stateful object. The property may + * potentially be retrieved via a getter method in subclasses. In the base class + * this just retrieves the object's property. + * + * @param name The property to get. + */ + get(name: String): any; + /** + * + * @param params Optional + */ + postscript(params: Object): void; + /** + * Set a property on a Stateful instance + * Sets named properties on a stateful object and notifies any watchers of + * the property. A programmatic setter may be defined in subclasses. + * + * @param name The property to set. + * @param value The value to set in the property. + */ + set(name: String, value: Object): any; + /** + * Watches a property for changes + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + */ + watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; + } + module _base { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.html + * + * Create a feature-rich constructor from compact notation. + * Create a constructor using a compact notation for inheritance and + * prototype extension. + * + * Mixin ancestors provide a type of multiple inheritance. + * Prototypes of mixin ancestors are copied to the new class: + * changes to mixin prototypes will not affect classes to which + * they have been mixed in. + * + * Ancestors can be compound classes created by this version of + * declare(). In complex cases all base classes are going to be + * linearized according to C3 MRO algorithm + * (see http://www.python.org/download/releases/2.3/mro/ for more + * details). + * + * "className" is cached in "declaredClass" property of the new class, + * if it was supplied. The immediate super class will be cached in + * "superclass" property of the new class. + * + * Methods in "props" will be copied and modified: "nom" property + * (the declared name of the method) will be added to all copied + * functions to help identify them for the internal machinery. Be + * very careful, while reusing methods: if you use the same + * function under different names, it can produce errors in some + * cases. + * + * It is possible to use constructors created "manually" (without + * declare()) as bases. They will be called as usual during the + * creation of an instance, their methods will be chained, and even + * called by "this.inherited()". + * + * Special property "-chains-" governs how to chain methods. It is + * a dictionary, which uses method names as keys, and hint strings + * as values. If a hint string is "after", this method will be + * called after methods of its base classes. If a hint string is + * "before", this method will be called before methods of its base + * classes. + * + * If "constructor" is not mentioned in "-chains-" property, it will + * be chained using the legacy mode: using "after" chaining, + * calling preamble() method before each constructor, if available, + * and calling postscript() after all constructors were executed. + * If the hint is "after", it is chained as a regular method, but + * postscript() will be called after the chain of constructors. + * "constructor" cannot be chained "before", but it allows + * a special hint string: "manual", which means that constructors + * are not going to be chained in any way, and programmer will call + * them manually using this.inherited(). In the latter case + * postscript() will be called after the construction. + * + * All chaining hints are "inherited" from base classes and + * potentially can be overridden. Be very careful when overriding + * hints! Make sure that all chained methods can work in a proposed + * manner of chaining. + * + * Once a method was chained, it is impossible to unchain it. The + * only exception is "constructor". You don't need to define a + * method in order to supply a chaining hint. + * + * If a method is chained, it cannot use this.inherited() because + * all other methods in the hierarchy will be called automatically. + * + * Usually constructors and initializers of any kind are chained + * using "after" and destructors of any kind are chained as + * "before". Note that chaining assumes that chained methods do not + * return any value: any returned value will be discarded. + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + */ + interface declare { (className?: String, superclass?: any, props?: Object): any} + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.html + * + * Create a feature-rich constructor from compact notation. + * Create a constructor using a compact notation for inheritance and + * prototype extension. + * + * Mixin ancestors provide a type of multiple inheritance. + * Prototypes of mixin ancestors are copied to the new class: + * changes to mixin prototypes will not affect classes to which + * they have been mixed in. + * + * Ancestors can be compound classes created by this version of + * declare(). In complex cases all base classes are going to be + * linearized according to C3 MRO algorithm + * (see http://www.python.org/download/releases/2.3/mro/ for more + * details). + * + * "className" is cached in "declaredClass" property of the new class, + * if it was supplied. The immediate super class will be cached in + * "superclass" property of the new class. + * + * Methods in "props" will be copied and modified: "nom" property + * (the declared name of the method) will be added to all copied + * functions to help identify them for the internal machinery. Be + * very careful, while reusing methods: if you use the same + * function under different names, it can produce errors in some + * cases. + * + * It is possible to use constructors created "manually" (without + * declare()) as bases. They will be called as usual during the + * creation of an instance, their methods will be chained, and even + * called by "this.inherited()". + * + * Special property "-chains-" governs how to chain methods. It is + * a dictionary, which uses method names as keys, and hint strings + * as values. If a hint string is "after", this method will be + * called after methods of its base classes. If a hint string is + * "before", this method will be called before methods of its base + * classes. + * + * If "constructor" is not mentioned in "-chains-" property, it will + * be chained using the legacy mode: using "after" chaining, + * calling preamble() method before each constructor, if available, + * and calling postscript() after all constructors were executed. + * If the hint is "after", it is chained as a regular method, but + * postscript() will be called after the chain of constructors. + * "constructor" cannot be chained "before", but it allows + * a special hint string: "manual", which means that constructors + * are not going to be chained in any way, and programmer will call + * them manually using this.inherited(). In the latter case + * postscript() will be called after the construction. + * + * All chaining hints are "inherited" from base classes and + * potentially can be overridden. Be very careful when overriding + * hints! Make sure that all chained methods can work in a proposed + * manner of chaining. + * + * Once a method was chained, it is impossible to unchain it. The + * only exception is "constructor". You don't need to define a + * method in order to supply a chaining hint. + * + * If a method is chained, it cannot use this.inherited() because + * all other methods in the hierarchy will be called automatically. + * + * Usually constructors and initializers of any kind are chained + * using "after" and destructors of any kind are chained as + * "before". Note that chaining assumes that chained methods do not + * return any value: any returned value will be discarded. + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + */ + interface declare{(className?: String, superclass?: any[], props?: Object): any} + interface declare { + /** + * Mix in properties skipping a constructor and decorating functions + * like it is done by declare(). + * This function is used to mix in properties like lang.mixin does, + * but it skips a constructor property and decorates functions like + * declare() does. + * + * It is meant to be used with classes and objects produced with + * declare. Functions mixed in with dojo.safeMixin can use + * this.inherited() like normal methods. + * + * This function is used to implement extend() method of a constructor + * produced with declare(). + * + * @param target Target object to accept new properties. + * @param source Source object for new properties. + */ + safeMixin(target: Object, source: Object): Object; + } + + module declare { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.__DeclareCreatedObject.html + * + * dojo/_base/declare() returns a constructor C. new C() returns an Object with the following + * methods, in addition to the methods and properties specified via the arguments passed to declare(). + * + */ + class __DeclareCreatedObject { + constructor(); + /** + * Create a subclass of the declared class from a list of base classes. + * Create a constructor using a compact notation for inheritance and + * prototype extension. + * + * Mixin ancestors provide a type of multiple inheritance. + * Prototypes of mixin ancestors are copied to the new class: + * changes to mixin prototypes will not affect classes to which + * they have been mixed in. + * + * @param mixins Specifies a list of bases (the left-most one is the most deepestbase). + * @param props OptionalAn optional object whose properties are copied to the created prototype. + */ + createSubclass(mixins: Function[], props: Object): dojo._base.declare.__DeclareCreatedObject; + /** + * Adds all properties and methods of source to constructor's + * prototype, making them available to all instances created with + * constructor. This method is specific to constructors created with + * declare(). + * Adds source properties to the constructor's prototype. It can + * override existing properties. + * + * This method is similar to dojo.extend function, but it is specific + * to constructors produced by declare(). It is implemented + * using dojo.safeMixin, and it skips a constructor property, + * and properly decorates copied functions. + * + * @param source Source object which properties are going to be copied to theconstructor's prototype. + */ + extend(source: Object): void; + /** + * Returns a super method. + * This method is a convenience method for "this.inherited()". + * It uses the same algorithm but instead of executing a super + * method, it returns it, or "undefined" if not found. + * + * @param name OptionalThe optional method name. Should be the same as the caller'sname. Usually "name" is specified in complex dynamic cases, whenthe calling method was dynamically added, undecorated bydeclare(), and it cannot be determined. + * @param args The caller supply this argument, which should be the original"arguments". + */ + getInherited(name: String, args: Object): any; + /** + * Calls a super method. + * This method is used inside method of classes produced with + * declare() to call a super method (next in the chain). It is + * used for manually controlled chaining. Consider using the regular + * chaining, because it is faster. Use "this.inherited()" only in + * complex cases. + * + * This method cannot me called from automatically chained + * constructors including the case of a special (legacy) + * constructor chaining. It cannot be called from chained methods. + * + * If "this.inherited()" cannot find the next-in-chain method, it + * does nothing and returns "undefined". The last method in chain + * can be a default method implemented in Object, which will be + * called last. + * + * If "name" is specified, it is assumed that the method that + * received "args" is the parent method for this call. It is looked + * up in the chain list and if it is found the next-in-chain method + * is called. If it is not found, the first-in-chain method is + * called. + * + * If "name" is not specified, it will be derived from the calling + * method (using a methoid property "nom"). + * + * @param name OptionalThe optional method name. Should be the same as the caller'sname. Usually "name" is specified in complex dynamic cases, whenthe calling method was dynamically added, undecorated bydeclare(), and it cannot be determined. + * @param args The caller supply this argument, which should be the original"arguments". + * @param newArgs OptionalIf "true", the found function will be returned withoutexecuting it.If Array, it will be used to call a super method. Otherwise"args" will be used. + */ + inherited(name: String, args: Object, newArgs: Object): any; + /** + * Checks the inheritance chain to see if it is inherited from this + * class. + * This method is used with instances of classes produced with + * declare() to determine of they support a certain interface or + * not. It models "instanceof" operator. + * + * @param cls Class constructor. + */ + isInstanceOf(cls: Function): any; + } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/Deferred.html + * + * Deprecated. This module defines the legacy dojo/_base/Deferred API. + * New code should use dojo/Deferred instead. + * The Deferred API is based on the concept of promises that provide a + * generic interface into the eventual completion of an asynchronous action. + * The motivation for promises fundamentally is about creating a + * separation of concerns that allows one to achieve the same type of + * call patterns and logical data flow in asynchronous code as can be + * achieved in synchronous code. Promises allows one + * to be able to call a function purely with arguments needed for + * execution, without conflating the call with concerns of whether it is + * sync or async. One shouldn't need to alter a call's arguments if the + * implementation switches from sync to async (or vice versa). By having + * async functions return promises, the concerns of making the call are + * separated from the concerns of asynchronous interaction (which are + * handled by the promise). + * + * The Deferred is a type of promise that provides methods for fulfilling the + * promise with a successful result or an error. The most important method for + * working with Dojo's promises is the then() method, which follows the + * CommonJS proposed promise API. An example of using a Dojo promise: + * + * var resultingPromise = someAsyncOperation.then(function(result){ + * ... handle result ... + * }, + * function(error){ + * ... handle error ... + * }); + * The .then() call returns a new promise that represents the result of the + * execution of the callback. The callbacks will never affect the original promises value. + * + * The Deferred instances also provide the following functions for backwards compatibility: + * + * addCallback(handler) + * addErrback(handler) + * callback(result) + * errback(result) + * Callbacks are allowed to return promises themselves, so + * you can build complicated sequences of events with ease. + * + * The creator of the Deferred may specify a canceller. The canceller + * is a function that will be called if Deferred.cancel is called + * before the Deferred fires. You can use this to implement clean + * aborting of an XMLHttpRequest, etc. Note that cancel will fire the + * deferred with a CancelledError (unless your canceller returns + * another kind of error), so the errbacks should be prepared to + * handle that error for cancellable Deferreds. + * + * @param canceller Optional + */ + interface Deferred{(canceller?: Function): void} + interface Deferred { + /** + * + */ + fired: number; + /** + * + */ + promise: Object; + /** + * Add handler as both successful callback and error callback for this deferred instance. + * + * @param callback + */ + addBoth(callback: Function): any; + /** + * Adds successful callback for this deferred instance. + * + * @param callback + */ + addCallback(callback: Function): any; + /** + * Adds callback and error callback for this deferred instance. + * + * @param callback OptionalThe callback attached to this deferred object. + * @param errback OptionalThe error callback attached to this deferred object. + */ + addCallbacks(callback: Function, errback: Function): any; + /** + * Adds error callback for this deferred instance. + * + * @param errback + */ + addErrback(errback: Function): any; + /** + * Fulfills the Deferred instance successfully with the provide value + * + * @param value + */ + callback(value: any): void; + /** + * Cancels the asynchronous operation + * + */ + cancel(): void; + /** + * Fulfills the Deferred instance as an error with the provided error + * + * @param error + */ + errback(error: any): void; + /** + * Checks whether the deferred has been canceled. + * + */ + isCanceled(): boolean; + /** + * Checks whether the deferred has been resolved or rejected. + * + */ + isFulfilled(): boolean; + /** + * Checks whether the deferred has been rejected. + * + */ + isRejected(): boolean; + /** + * Checks whether the deferred has been resolved. + * + */ + isResolved(): boolean; + /** + * Send progress events to all listeners + * + * @param update + */ + progress(update: any): void; + /** + * Fulfills the Deferred instance as an error with the provided error + * + * @param error + */ + reject(error: any): void; + /** + * Fulfills the Deferred instance successfully with the provide value + * + * @param value + */ + resolve(value: any): void; + /** + * Adds a fulfilledHandler, errorHandler, and progressHandler to be called for + * completion of a promise. The fulfilledHandler is called when the promise + * is fulfilled. The errorHandler is called when a promise fails. The + * progressHandler is called for progress events. All arguments are optional + * and non-function values are ignored. The progressHandler is not only an + * optional argument, but progress events are purely optional. Promise + * providers are not required to ever create progress events. + * + * This function will return a new promise that is fulfilled when the given + * fulfilledHandler or errorHandler callback is finished. This allows promise + * operations to be chained together. The value returned from the callback + * handler is the fulfillment value for the returned promise. If the callback + * throws an error, the returned promise will be moved to failed state. + * + * @param resolvedCallback Optional + * @param errorCallback Optional + * @param progressCallback Optional + */ + then(resolvedCallback: Function, errorCallback: Function, progressCallback: Function): any; + /** + * Transparently applies callbacks to values and/or promises. + * Accepts promises but also transparently handles non-promises. If no + * callbacks are provided returns a promise, regardless of the initial + * value. Foreign promises are converted. + * + * If callbacks are provided and the initial value is not a promise, + * the callback is executed immediately with no error handling. Returns + * a promise if the initial value is a promise, or the result of the + * callback otherwise. + * + * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. + * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. + * @param errback OptionalCallback to be invoked when the promise is rejected. + * @param progback OptionalCallback to be invoked when the promise emits a progress update. + */ + when(valueOrPromise: any, callback: Function, errback: Function, progback: Function): any; + } + + module Deferred { + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.html + * + * + */ + interface url{(): void} + interface url { + /** + * + */ + authority: Object; + /** + * + */ + fragment: Object; + /** + * + */ + host: Object; + /** + * + */ + password: Object; + /** + * + */ + path: Object; + /** + * + */ + port: Object; + /** + * + */ + query: Object; + /** + * + */ + scheme: Object; + /** + * + */ + uri: Object; + /** + * + */ + user: Object; + /** + * + */ + toString(): void; + } + + module url { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.authority.html + * + * + */ + interface authority { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.password.html + * + * + */ + interface password { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.port.html + * + * + */ + interface port { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.fragment.html + * + * + */ + interface fragment { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.query.html + * + * + */ + interface query { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.user.html + * + * + */ + interface user { + } + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.scheme.html + * + * + */ + interface scheme { + } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/xhr.html + * + * Deprecated. Use dojo/request instead. + * Sends an HTTP request with the given method. + * See also dojo.xhrGet(), xhrPost(), xhrPut() and dojo.xhrDelete() for shortcuts + * for those HTTP methods. There are also methods for "raw" PUT and POST methods + * via dojo.rawXhrPut() and dojo.rawXhrPost() respectively. + * + * @param method HTTP method to be used, such as GET, POST, PUT, DELETE. Should be uppercase. + * @param args + * @param hasBody OptionalIf the request has an HTTP body, then pass true for hasBody. + */ + interface xhr{(method: String, args: Object, hasBody?: boolean): void} + interface xhr { + /** + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. + * + */ + contentHandlers: Object; + /** + * Sends an HTTP DELETE request to the server. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + */ + del(args: Object): any; + /** + * Serialize a form field to a JavaScript object. + * Returns the value encoded in a form field as + * as a string or an array of strings. Disabled form elements + * and unchecked radio and checkboxes are skipped. Multi-select + * elements are returned as an array of string values. + * + * @param inputNode + */ + fieldToObject(inputNode: HTMLElement): any; + /** + * Serialize a form field to a JavaScript object. + * Returns the value encoded in a form field as + * as a string or an array of strings. Disabled form elements + * and unchecked radio and checkboxes are skipped. Multi-select + * elements are returned as an array of string values. + * + * @param inputNode + */ + fieldToObject(inputNode: String): any; + /** + * Create a serialized JSON string from a form node or string + * ID identifying the form to serialize + * + * @param formNode + * @param prettyPrint Optional + */ + formToJson(formNode: HTMLElement, prettyPrint: boolean): any; + /** + * Create a serialized JSON string from a form node or string + * ID identifying the form to serialize + * + * @param formNode + * @param prettyPrint Optional + */ + formToJson(formNode: String, prettyPrint: boolean): any; + /** + * Serialize a form node to a JavaScript object. + * Returns the values encoded in an HTML form as + * string properties in an object which it then returns. Disabled form + * elements, buttons, and other non-value form elements are skipped. + * Multi-select elements are returned as an array of string values. + * + * @param formNode + */ + formToObject(formNode: HTMLElement): Object; + /** + * Serialize a form node to a JavaScript object. + * Returns the values encoded in an HTML form as + * string properties in an object which it then returns. Disabled form + * elements, buttons, and other non-value form elements are skipped. + * Multi-select elements are returned as an array of string values. + * + * @param formNode + */ + formToObject(formNode: String): Object; + /** + * Returns a URL-encoded string representing the form passed as either a + * node or string ID identifying the form to serialize + * + * @param formNode + */ + formToQuery(formNode: HTMLElement): any; + /** + * Returns a URL-encoded string representing the form passed as either a + * node or string ID identifying the form to serialize + * + * @param formNode + */ + formToQuery(formNode: String): any; + /** + * Sends an HTTP GET request to the server. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + */ + get(args: Object): any; + /** + * takes a name/value mapping object and returns a string representing + * a URL-encoded version of that object. + * + * @param map + */ + objectToQuery(map: Object): any; + /** + * Sends an HTTP POST request to the server. In addition to the properties + * listed for the dojo.__XhrArgs type, the following property is allowed: + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + */ + post(args: Object): any; + /** + * Sends an HTTP PUT request to the server. In addition to the properties + * listed for the dojo.__XhrArgs type, the following property is allowed: + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + */ + put(args: Object): any; + /** + * Create an object representing a de-serialized query section of a + * URL. Query keys with multiple values are returned in an array. + * + * @param str + */ + queryToObject(str: String): Object; + } + + module xhr { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/xhr.contentHandlers.html + * + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. + * A map of available XHR transport handle types. Name matches the + * handleAs attribute passed to XHR calls. Each contentHandler is + * called, passing the xhr object for manipulation. The return value + * from the contentHandler will be passed to the load or handle + * functions defined in the original xhr call. + * + */ + interface contentHandlers { + /** + * + * @param xhr + */ + auto(xhr: any): void; + /** + * A contentHandler which evaluates the response data, expecting it to be valid JavaScript + * + * @param xhr + */ + javascript(xhr: any): any; + /** + * A contentHandler which returns a JavaScript object created from the response data + * + * @param xhr + */ + json(xhr: any): any; + /** + * A contentHandler which expects comment-filtered JSON. + * A contentHandler which expects comment-filtered JSON. + * the json-comment-filtered option was implemented to prevent + * "JavaScript Hijacking", but it is less secure than standard JSON. Use + * standard JSON instead. JSON prefixing can be used to subvert hijacking. + * + * Will throw a notice suggesting to use application/json mimetype, as + * json-commenting can introduce security issues. To decrease the chances of hijacking, + * use the standard json contentHandler, and prefix your "JSON" with: {}&& + * + * use djConfig.useCommentedJson = true to turn off the notice + * + * @param xhr + */ + json_comment_filtered(xhr: any): any; + /** + * A contentHandler which checks the presence of comment-filtered JSON and + * alternates between the json and json-comment-filtered contentHandlers. + * + * @param xhr + */ + json_comment_optional(xhr: any): any; + /** + * + * @param xhr + */ + olson_zoneinfo(xhr: any): void; + /** + * A contentHandler which simply returns the plaintext response data + * + * @param xhr + */ + text(xhr: any): any; + /** + * A contentHandler returning an XML Document parsed from the response data + * + * @param xhr + */ + xml(xhr: any): any; + } + } + + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/config.html + * + * This module defines the user configuration during bootstrap. + * By defining user configuration as a module value, an entire configuration can be specified in a build, + * thereby eliminating the need for sniffing and or explicitly setting in the global variable dojoConfig. + * Also, when multiple instances of dojo exist in a single application, each will necessarily be located + * at an unique absolute module identifier as given by the package configuration. Implementing configuration + * as a module allows for specifying unique, per-instance configurations. + * + */ + class config { + constructor(); + /** + * Adds a callback via dojo/ready. Useful when Dojo is added after + * the page loads and djConfig.afterOnLoad is true. Supports the same + * arguments as dojo/ready. When using a function reference, use + * djConfig.addOnLoad = function(){};. For object with function name use + * djConfig.addOnLoad = [myObject, "functionName"]; and for object with + * function reference use + * djConfig.addOnLoad = [myObject, function(){}]; + * + */ + "addOnLoad": Function; + /** + * + */ + "afterOnLoad": boolean; + /** + * + */ + "baseUrl": Object; + /** + * Defines a callback to be used when dependencies are defined before + * the loader has been loaded. When provided, they cause the loader to + * execute require(deps, callback) once it has finished loading. + * Should be used with deps. + * + */ + "callback": Function; + /** + * + */ + "debugContainerId": string; + /** + * + */ + "debugHeight": number; + /** + * Default duration, in milliseconds, for wipe and fade animations within dijits. + * Assigned to dijit.defaultDuration. + * + */ + "defaultDuration": number; + /** + * Whether deferred instrumentation should be loaded or included + * in builds. + * + */ + "deferredInstrumentation": boolean; + /** + * Defines dependencies to be used before the loader has been loaded. + * When provided, they cause the loader to execute require(deps, callback) + * once it has finished loading. Should be used with callback. + * + */ + "deps": Function; + /** + * Used by some modules to configure an empty iframe. Used by dojo/io/iframe and + * dojo/back, and dijit/popup support in IE where an iframe is needed to make sure native + * controls do not bleed through the popups. Normally this configuration variable + * does not need to be set, except when using cross-domain/CDN Dojo builds. + * Save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl + * to the path on your domain your copy of blank.html. + * + */ + "dojoBlankHtmlUrl": string; + /** + * No default value. Specifies additional locales whose + * resources should also be loaded alongside the default locale when + * calls to dojo.requireLocalization() are processed. + * + */ + "extraLocale": any[]; + /** + * Set this to true to enable publishing of topics for the different phases of + * IO operations. Publishing is done via dojo/topic.publish(). See dojo/main.__IoPublish for a list + * of topics that are published. + * + */ + "ioPublish": Object; + /** + * Defaults to false. If set to true, ensures that Dojo provides + * extended debugging feedback via Firebug. If Firebug is not available + * on your platform, setting isDebug to true will force Dojo to + * pull in (and display) the version of Firebug Lite which is + * integrated into the Dojo distribution, thereby always providing a + * debugging/logging console when isDebug is enabled. Note that + * Firebug's console.* methods are ALWAYS defined by Dojo. If + * isDebug is false and you are on a platform without Firebug, these + * methods will be defined as no-ops. + * + */ + "isDebug": boolean; + /** + * The locale to assume for loading localized resources in this page, + * specified according to RFC 3066. + * Must be specified entirely in lowercase, e.g. en-us and zh-cn. + * See the documentation for dojo.i18n and dojo.requireLocalization + * for details on loading localized resources. If no locale is specified, + * Dojo assumes the locale of the user agent, according to navigator.userLanguage + * or navigator.language properties. * */ "locale": string; /** - * override strings for pm in times + * A map of module names to paths relative to dojo.baseUrl. The + * key/value pairs correspond directly to the arguments which + * dojo.registerModulePath accepts. Specifying + * djConfig.modulePaths = { "foo": "../../bar" } is the equivalent + * of calling dojo.registerModulePath("foo", "../../bar");. Multiple + * modules may be configured via djConfig.modulePaths. * */ - "pm": string; + "modulePaths": Object; /** - * choice of 'time','date' (default: date and time) + * Run the parser after the page is loaded * */ - "selector": string; + "parseOnLoad": boolean; /** - * (parse only) strict parsing, off by default + * An array of module names to be loaded immediately after dojo.js has been included + * in a page. * */ - "strict": boolean; + "require": Object; /** - * override pattern with this string + * Array containing the r, g, b components used as transparent color in dojo.Color; + * if undefined, [255,255,255] (white) will be used. * */ - "timePattern": string; + "transparentColor": any[]; + /** + * Used by dojox.analytics.Urchin as the default UA-123456-7 account + * number used when being created. Alternately, you can pass an acct:"" + * parameter to the constructor a la: new dojox.analytics.Urchin({ acct:"UA-123456-7" }); + * + */ + "urchin": string; + /** + * If set to a value that evaluates to true such as a string or array and + * isDebug is true and Firebug is not available or running, then it bypasses + * the creation of Firebug Lite allowing you to define your own console object. + * + */ + "useCustomLogger": Object; + /** + * Whether the deferred instrumentation should be used. + * + * "report-rejections": report each rejection as it occurs. + * true or 1 or "report-unhandled-rejections": wait 1 second + * in an attempt to detect unhandled rejections. + * + */ + "useDeferredInstrumentation": boolean; + } + module config { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/config.modulePaths.html + * + * A map of module names to paths relative to dojo.baseUrl. The + * key/value pairs correspond directly to the arguments which + * dojo.registerModulePath accepts. Specifying + * djConfig.modulePaths = { "foo": "../../bar" } is the equivalent + * of calling dojo.registerModulePath("foo", "../../bar");. Multiple + * modules may be configured via djConfig.modulePaths. + * + */ + interface modulePaths { + } } - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Destroyable.html - * - * Mixin to track handles and release them when instance is destroyed. - * Call this.own(...) on list of handles (returned from dojo/aspect, dojo/on, - * dojo/Stateful::watch, or any class (including widgets) with a destroyRecursive() or destroy() method. - * Then call destroy() later to destroy this instance and release the resources. - * - */ - class Destroyable { - constructor(); /** - * Destroy this class, releasing any resources registered via own(). - * - * @param preserveDom - */ - destroy(preserveDom?: boolean): void; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/CalendarLite.html - * - * Lightweight version of Calendar widget aimed towards mobile use - * A simple GUI for choosing a date in the context of a monthly calendar. - * This widget can't be used in a form because it doesn't serialize the date to an - * field. For a form element, use dijit/form/DateTextBox instead. - * - * Note that the parser takes all dates attributes passed in the - * RFC 3339 format, e.g. 2005-06-30T08:05:00-07:00 - * so that they are serializable and locale-independent. - * - * Also note that this widget isn't keyboard accessible; use dijit.Calendar for that - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree - */ - class CalendarLite extends dijit._WidgetBase implements dijit._TemplatedMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Date object containing the currently focused date, or the date which would be focused - * if the calendar itself was focused. Also indicates which year and month to display, - * i.e. the current "page" the calendar is on. - * - */ - "currentFocus": Date; - set(property:"currentFocus", value: Date): void; - get(property:"currentFocus"): Date; - watch(property:"currentFocus", callback:{(property?:string, oldValue?:Date, newValue?: Date):void}) :{unwatch():void} - /** - * JavaScript namespace to find calendar routines. If unspecified, uses Gregorian calendar routines - * at dojo/date and dojo/date/locale. - * - */ - "datePackage": string; - set(property:"datePackage", value: string): void; - get(property:"datePackage"): string; - watch(property:"datePackage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "dateTemplateString": string; - set(property:"dateTemplateString", value: string): void; - get(property:"dateTemplateString"): string; - watch(property:"dateTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * How to represent the days of the week in the calendar header. See locale - * - */ - "dayWidth": string; - set(property:"dayWidth", value: string): void; - get(property:"dayWidth"): string; - watch(property:"dayWidth", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * - */ - "dowTemplateString": string; - set(property:"dowTemplateString", value: string): void; - get(property:"dowTemplateString"): string; - watch(property:"dowTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Order fields are traversed when user hits the tab key - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The currently selected Date, initially set to invalid date to indicate no selection. - * - */ - "value": Date; - set(property:"value", value: Date): void; - get(property:"value"): Date; - watch(property:"value", callback:{(property?:string, oldValue?:Date, newValue?: Date):void}) :{unwatch():void} - /** - * - */ - "weekTemplateString": string; - set(property:"weekTemplateString", value: string): void; - get(property:"weekTemplateString"): string; - watch(property:"weekTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Focus the calendar by focusing one of the calendar cells - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * May be overridden to return CSS classes to associate with the date entry for the given dateObject, - * for example to indicate a holiday in specified locale. - * - * @param dateObject - * @param locale Optional - */ - getClassForDate(dateObject: Date, locale: String): String; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Sets calendar's value to today's date - * - */ - goToToday(): void; - /** - * May be overridden to disable certain dates in the calendar e.g. isDisabledDate=dojo.date.locale.isWeekend - * - * @param dateObject - * @param locale Optional - */ - isDisabledDate(dateObject: Date, locale: String): boolean; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: String, func: Function): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called only when the selected date has changed - * - * @param date - */ - onChange(date: Date): void; - } - module CalendarLite { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/CalendarLite._MonthWidget.html + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/Color.html * - * Displays name of current month padded to the width of the month - * w/the longest name, so that changing months doesn't change width. + * Takes a named string, hex string, array of rgb or rgba values, + * an object with r, g, b, and a properties, or another Color object + * and creates a new Color instance to work from. * - * Create as: - * - * new Calendar._MonthWidget({ - * lang: ..., - * dateLocaleModule: ... - * }) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class _MonthWidget extends dijit._WidgetBase { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: String, func: Function): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * Processing after the DOM fragment is created - * Called after the DOM fragment has been created, but not necessarily - * added to the document. Do not include any operations which rely on - * node dimensions or placement. - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - } - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Declaration.html - * - * The Declaration widget allows a developer to declare new widget - * classes directly from a snippet of markup. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class Declaration extends dijit._Widget { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * - */ - "defaults": Object; - set(property:"defaults", value: Object): void; - get(property:"defaults"): Object; - watch(property:"defaults", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * List containing the prototype for this widget, and also any mixins, - * ex: ["dijit._Widget", "dijit._Container"] - * - */ - "mixins": Object; - set(property:"mixins", value: Object): void; - get(property:"mixins"): Object; - watch(property:"mixins", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Name of class being declared, ex: "acme.myWidget" - * - */ - "widgetClass": string; - set(property:"widgetClass", value: string): void; - get(property:"widgetClass"): string; - watch(property:"widgetClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Calendar.html - * - * A simple GUI for choosing a date in the context of a monthly calendar. - * See CalendarLite for general description. Calendar extends CalendarLite, adding: - * - * month drop down list - * keyboard navigation - * CSS classes for hover/mousepress on date, month, and year nodes - * support of deprecated methods (will be removed in 2.0) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree - */ - class Calendar extends dijit.CalendarLite implements dijit._Widget, dijit._CssStateMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Custom press, release, and click synthetic events - * which trigger on a left mouse click, touch, or space/enter keyup. - * - */ - "a11yclick": Object; - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Date object containing the currently focused date, or the date which would be focused - * if the calendar itself was focused. Also indicates which year and month to display, - * i.e. the current "page" the calendar is on. - * - */ - "currentFocus": Date; - set(property:"currentFocus", value: Date): void; - get(property:"currentFocus"): Date; - watch(property:"currentFocus", callback:{(property?:string, oldValue?:Date, newValue?: Date):void}) :{unwatch():void} - /** - * JavaScript namespace to find calendar routines. If unspecified, uses Gregorian calendar routines - * at dojo/date and dojo/date/locale. - * - */ - "datePackage": string; - set(property:"datePackage", value: string): void; - get(property:"datePackage"): string; - watch(property:"datePackage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "dateTemplateString": string; - set(property:"dateTemplateString", value: string): void; - get(property:"dateTemplateString"): string; - watch(property:"dateTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * How to represent the days of the week in the calendar header. See locale - * - */ - "dayWidth": string; - set(property:"dayWidth", value: string): void; - get(property:"dayWidth"): string; - watch(property:"dayWidth", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * - */ - "dowTemplateString": string; - set(property:"dowTemplateString", value: string): void; - get(property:"dowTemplateString"): string; - watch(property:"dowTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Defines a type of widget. - * - */ - "dndType": string; - set(property:"dndType", value: string): void; - get(property:"dndType"): string; - watch(property:"dndType", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "observer": string; - set(property:"observer", value: string): void; - get(property:"observer"): string; - watch(property:"observer", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A parameter needed by RadioGroupSlide only. An optional paramter to force - * the ContentPane to slide in from a set direction. Defaults - * to "random", or specify one of "top", "left", "right", "bottom" - * to slideFrom top, left, right, or bottom. - * - */ - "slideFrom": string; - set(property:"slideFrom", value: string): void; - get(property:"slideFrom"): string; - watch(property:"slideFrom", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Order fields are traversed when user hits the tab key - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The currently selected Date, initially set to invalid date to indicate no selection. - * - */ - "value": Date; - set(property:"value", value: Date): void; - get(property:"value"): Date; - watch(property:"value", callback:{(property?:string, oldValue?:Date, newValue?: Date):void}) :{unwatch():void} - /** - * - */ - "weekTemplateString": string; - set(property:"weekTemplateString", value: string): void; - get(property:"weekTemplateString"): string; - watch(property:"weekTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Focus the calendar by focusing one of the calendar cells - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * May be overridden to return CSS classes to associate with the date entry for the given dateObject, - * for example to indicate a holiday in specified locale. - * - * @param dateObject - * @param locale Optional - */ - getClassForDate(dateObject: Date, locale: String): String; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Sets calendar's value to today's date - * - */ - goToToday(): void; - /** - * Provides keyboard navigation of calendar. - * Called from _onKeyDown() to handle keydown on a stand alone Calendar, - * and also from dijit/form/_DateTimeTextBox to pass a keydown event - * from the dijit/form/DateTextBox to be handled in this widget - * - * @param evt - */ - handleKey(evt: Event): any; - /** - * May be overridden to disable certain dates in the calendar e.g. isDisabledDate=dojo.date.locale.isWeekend - * - * @param dateObject - * @param locale Optional - */ - isDisabledDate(dateObject: Date, locale: String): boolean; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: String, func: Function): any; - /** - * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). - * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). - * Note that the function is not run in any particular scope, so if (for example) you want it to run in the - * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Deprecated. Use set('value', ...) instead. - * - * @param value - */ - setValue(value: Date): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * - * @param value - */ - onChange(value: any): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - /** - * Deprecated. Notification that a date cell was selected. It may be the same as the previous value. - * Formerly used by dijit/form/_DateTimeTextBox (and thus dijit/form/DateTextBox) - * to get notification when the user has clicked a date. Now onExecute() (above) is used. - * - * @param date - */ - onValueSelected(date: Date): void; - } - module Calendar { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Calendar._MonthDropDown.html - * - * The list-of-months drop down from the MonthDropDownButton - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class _MonthDropDown extends dijit._Widget implements dijit._TemplatedMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * List of names of months, possibly w/some undefined entries for Hebrew leap months - * (ex: ["January", "February", undefined, "April", ...]) - * - */ - "months": Object; - set(property:"months", value: Object): void; - get(property:"months"): Object; - watch(property:"months", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Callback when month is selected from drop down - * - * @param month - */ - onChange(month: number): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Calendar._MonthDropDownButton.html - * - * DropDownButton for the current month. Displays name of current month - * and a list of month names in the drop down - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class _MonthDropDownButton extends dijit.form.DropDownButton { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Corresponds to the native HTML element's attribute. - * - */ - "alt": string; - set(property:"alt", value: string): void; - get(property:"alt"): string; - watch(property:"alt", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "aria-label": string; - set(property:"aria-label", value: string): void; - get(property:"aria-label"): string; - watch(property:"aria-label", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Set to true to make the drop down at least as wide as this - * widget. Set to false if the drop down should just be its - * default width. - * - */ - "autoWidth": boolean; - set(property:"autoWidth", value: boolean): void; - get(property:"autoWidth"): boolean; - watch(property:"autoWidth", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Should this widget respond to user input? - * In markup, this is specified as "disabled='disabled'", or just "disabled". - * - */ - "disabled": boolean; - set(property:"disabled", value: boolean): void; - get(property:"disabled"): boolean; - watch(property:"disabled", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * The widget to display as a popup. This widget must be - * defined before the startup function is called. - * - */ - "dropDown": Object; - set(property:"dropDown", value: Object): void; - get(property:"dropDown"): Object; - watch(property:"dropDown", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * This variable controls the position of the drop down. - * It's an array of strings with the following values: - * - * before: places drop down to the left of the target node/widget, or to the right in - * the case of RTL scripts like Hebrew and Arabic - * after: places drop down to the right of the target node/widget, or to the left in - * the case of RTL scripts like Hebrew and Arabic - * above: drop down goes above target node - * below: drop down goes below target node - * The list is positions is tried, in order, until a position is found where the drop down fits - * within the viewport. - * - */ - "dropDownPosition": Object; - set(property:"dropDownPosition", value: Object): void; - get(property:"dropDownPosition"): Object; - watch(property:"dropDownPosition", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Set to true to make the drop down exactly as wide as this - * widget. Overrides autoWidth. - * - */ - "forceWidth": boolean; - set(property:"forceWidth", value: boolean): void; - get(property:"forceWidth"): boolean; - watch(property:"forceWidth", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Class to apply to DOMNode in button to make it display an icon - * - */ - "iconClass": string; - set(property:"iconClass", value: string): void; - get(property:"iconClass"): string; - watch(property:"iconClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Fires onChange for each value change or only on demand - * - */ - "intermediateChanges": boolean; - set(property:"intermediateChanges", value: boolean): void; - get(property:"intermediateChanges"): boolean; - watch(property:"intermediateChanges", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Content to display in button. - * - */ - "label": string; - set(property:"label", value: string): void; - get(property:"label"): string; - watch(property:"label", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The max height for our dropdown. - * Any dropdown taller than this will have scrollbars. - * Set to 0 for no max height, or -1 to limit height to available space in viewport - * - */ - "maxHeight": number; - set(property:"maxHeight", value: number): void; - get(property:"maxHeight"): number; - watch(property:"maxHeight", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * Name used when submitting form; same as "name" attribute or plain HTML elements - * - */ - "name": string; - set(property:"name", value: string): void; - get(property:"name"): string; - watch(property:"name", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * On focus, should this widget scroll into view? - * - */ - "scrollOnFocus": boolean; - set(property:"scrollOnFocus", value: boolean): void; - get(property:"scrollOnFocus"): boolean; - watch(property:"scrollOnFocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Set this to true to hide the label text and display only the icon. - * (If showLabel=false then iconClass must be specified.) - * Especially useful for toolbars. - * If showLabel=true, the label will become the title (a.k.a. tooltip/hint) of the icon. - * - * The exception case is for computers in high-contrast mode, where the label - * will still be displayed, since the icon doesn't appear. - * - */ - "showLabel": boolean; - set(property:"showLabel", value: boolean): void; - get(property:"showLabel"): boolean; - watch(property:"showLabel", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Order fields are traversed when user hits the tab key - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Corresponds to the native HTML element's attribute. - * - */ - "type": string; - set(property:"type", value: string): void; - get(property:"type"): string; - watch(property:"type", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Corresponds to the native HTML element's attribute. - * - */ - "value": string; - set(property:"value", value: string): void; - get(property:"value"): string; - watch(property:"value", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Makes the given widget a child of this widget. - * Inserts specified child widget's dom node as a child of this widget's - * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Closes the drop down on this widget - * - * @param focus If true, refocuses the button widget - */ - closeDropDown(focus: boolean): void; - /** - * Compare 2 values (as returned by get('value') for this widget). - * - * @param val1 - * @param val2 - */ - compare(val1: any, val2: any): number; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Put focus on this widget - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Deprecated. Use get('value') instead. - * - */ - getValue(): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - */ - isLoaded(): boolean; - /** - * Creates the drop down if it doesn't exist, loads the data - * if there's an href and it hasn't been loaded yet, and - * then opens the drop down. This is basically a callback when the - * user presses the down arrow button to open the drop down. - * - */ - loadAndOpenDropDown(): any; - /** - * - * @param callback - */ - loadDropDown(callback: Function): void; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Opens the dropdown for this widget. To be called only when this.dropDown - * has been created and is ready to display (ie, it's data is loaded). - * - */ - openDropDown(): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * - */ - postMixInProperties(): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Deprecated. Use set('disabled', ...) instead. - * - * @param disabled - */ - setDisabled(disabled: boolean): void; - /** - * Deprecated. Use set('label', ...) instead. - * - * @param content - */ - setLabel(content: String): void; - /** - * Deprecated. Use set('value', ...) instead. - * - * @param value - */ - setValue(value: String): void; - /** - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Callback when the user presses the down arrow button or presses - * the down arrow key to open/close the drop down. - * Toggle the drop-down widget; if it is up, close it, if not, open it - * - */ - toggleDropDown(): void; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Callback when this widget's value is changed. - * - * @param newValue - */ - onChange(newValue: any): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): boolean; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * - */ - onMonthSelect(): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/CheckedMenuItem.html - * - * A checkbox-like menu item for toggling on and off - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class CheckedMenuItem extends dijit.MenuItem { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Text for the accelerator (shortcut) key combination, a control, alt, etc. modified keystroke meant to - * execute the menu item regardless of where the focus is on the page. - * - * Note that although Menu can display accelerator keys, there is no infrastructure to actually catch and - * execute those accelerators. - * - */ - "accelKey": string; - set(property:"accelKey", value: string): void; - get(property:"accelKey"): string; - watch(property:"accelKey", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Our checked state - * - */ - "checked": boolean; - set(property:"checked", value: boolean): void; - get(property:"checked"): boolean; - watch(property:"checked", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Character (or string) used in place of checkbox icon when display in high contrast mode - * - */ - "checkedChar": string; - set(property:"checkedChar", value: string): void; - get(property:"checkedChar"): string; - watch(property:"checkedChar", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * If true, the menu item is disabled. - * If false, the menu item is enabled. - * - */ - "disabled": boolean; - set(property:"disabled", value: boolean): void; - get(property:"disabled"): boolean; - watch(property:"disabled", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "iconClass": string; - set(property:"iconClass", value: string): void; - get(property:"iconClass"): string; - watch(property:"iconClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Menu text as HTML - * - */ - "label": string; - set(property:"label", value: string): void; - get(property:"label"): string; - watch(property:"label", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "role": string; - set(property:"role", value: string): void; - get(property:"role"): string; - watch(property:"role", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Single character (underlined when the parent Menu is focused) used to navigate directly to this widget, - * also known as a mnemonic. - * This is denoted in the label by surrounding the single character with {}. - * For example, if label="{F}ile", then shortcutKey="F". - * - */ - "shortcutKey": string; - set(property:"shortcutKey", value: string): void; - get(property:"shortcutKey"): string; - watch(property:"shortcutKey", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Focus on this MenuItem - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the index of this widget within its container parent. - * It returns -1 if the parent does not exist, or if the parent - * is not a dijit/_Container - * - */ - getIndexInParent(): any; - /** - * Returns null if this is the last child of the parent, - * otherwise returns the next element sibling to the "right". - * - */ - getNextSibling(): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Returns null if this is the first child of the parent, - * otherwise returns the next element sibling to the "left". - * - */ - getPreviousSibling(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Deprecated. Use set('disabled', bool) instead. - * - * @param disabled - */ - setDisabled(disabled: boolean): void; - /** - * Deprecated. Use set('label', ...) instead. - * - * @param content - */ - setLabel(content: String): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * User defined function to handle check/uncheck events - * - * @param checked - */ - onChange(checked: boolean): void; - /** - * User defined function to handle clicks - * - */ - onClick(): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/DialogUnderlay.html - * - * A component used to block input behind a dijit/Dialog. - * - * Normally this class should not be instantiated directly, but rather shown and hidden via - * DialogUnderlay.show() and DialogUnderlay.hide(). And usually the module is not accessed directly - * at all, since the underlay is shown and hidden by Dialog.DialogLevelManager. - * - * The underlay itself can be styled based on and id: - * - * #myDialog_underlay { background-color:red; } - * In the case of dijit.Dialog, this id is based on the id of the Dialog, - * suffixed with _underlay. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class DialogUnderlay extends dijit._Widget implements dijit._TemplatedMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate - * widget state. - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Id of the dialog.... DialogUnderlay's id is based on this id - * - */ - "dialogId": string; - set(property:"dialogId", value: string): void; - get(property:"dialogId"): string; - watch(property:"dialogId", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * - */ - destroy(): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Hide the underlay. - * - */ - hide(): void; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Show the dialog underlay - * - */ - show(): void; - /** - * Display the underlay with the given attributes set. If the underlay is already displayed, - * then adjust it's attributes as specified. - * - * @param attrs The parameters to create DialogUnderlay with. - * @param zIndex zIndex of the underlay - */ - show(attrs: Object, zIndex: number): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.10/dijit/_ConfirmDialogMixin.html - * - * Mixin for Dialog/TooltipDialog with OK/Cancel buttons. - * - */ - class _ConfirmDialogMixin extends dijit._WidgetsInTemplateMixin { - constructor(); - /** - * - */ - "actionBarTemplate": Object; - /** - * Label of cancel button - * - */ - "buttonCancel": string; - /** - * Label of OK button - * - */ - "buttonOk": string; - /** - * Used to provide a context require to the dojo/parser in order to be - * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * - */ - "contextRequire": Function; - /** - * Should we parse the template to find widgets that might be - * declared in markup inside it? (Remove for 2.0 and assume true) - * - */ - "widgetsInTemplate": boolean; - /** - * - */ - startup(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.10/dijit/ConfirmDialog.html - * - * A Dialog with OK/Cancel buttons. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class ConfirmDialog extends dijit.Dialog implements dijit._ConfirmDialogMixin { - constructor(params: Object, srcNodeRef?: HTMLElement); - /** - * HTML snippet to show the action bar (gray bar with OK/cancel buttons). - * Blank by default, but used by ConfirmDialog/ConfirmTooltipDialog subclasses. - * - */ - "actionBarTemplate": string; - set(property:"actionBarTemplate", value: string): void; - get(property:"actionBarTemplate"): string; - watch(property:"actionBarTemplate", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * A Toggle to modify the default focus behavior of a Dialog, which - * is to focus on the first dialog element after opening the dialog. - * False will disable autofocusing. Default: true - * - */ - "autofocus": boolean; - set(property:"autofocus", value: boolean): void; - get(property:"autofocus"): boolean; - watch(property:"autofocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Label of cancel button - * - */ - "buttonCancel": string; - set(property:"buttonCancel", value: string): void; - get(property:"buttonCancel"): string; - watch(property:"buttonCancel", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Label of OK button - * - */ - "buttonOk": string; - set(property:"buttonOk", value: string): void; - get(property:"buttonOk"): string; - watch(property:"buttonOk", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Dialog show [x] icon to close itself, and ESC key will close the dialog. - * - */ - "closable": boolean; - set(property:"closable", value: boolean): void; - get(property:"closable"): boolean; - watch(property:"closable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * The innerHTML of the ContentPane. - * Note that the initialization parameter / argument to set("content", ...) - * can be a String, DomNode, Nodelist, or _Widget. - * - */ - "content": string; - set(property:"content", value: string): void; - get(property:"content"): string; - watch(property:"content", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Used to provide a context require to the dojo/parser in order to be - * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * - */ - "contextRequire": Function; - set(property:"contextRequire", value: Function): void; - get(property:"contextRequire"): Function; - watch(property:"contextRequire", callback:{(property?:string, oldValue?:Function, newValue?: Function):void}) :{unwatch():void} - /** - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - * false - don't adjust size of children - * true - if there is a single visible child widget, set it's size to however big the ContentPane is - * - */ - "doLayout": boolean; - set(property:"doLayout", value: boolean): void; - get(property:"doLayout"): boolean; - watch(property:"doLayout", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Toggles the movable aspect of the Dialog. If true, Dialog - * can be dragged by it's title. If false it will remain centered - * in the viewport. - * - */ - "draggable": boolean; - set(property:"draggable", value: boolean): void; - get(property:"draggable"): boolean; - watch(property:"draggable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The time in milliseconds it takes the dialog to fade in and out - * - */ - "duration": number; - set(property:"duration", value: number): void; - get(property:"duration"): number; - watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * Message that shows if an error occurs - * - */ - "errorMessage": string; - set(property:"errorMessage", value: string): void; - get(property:"errorMessage"): string; - watch(property:"errorMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Extract visible content from inside of .... . - * I.e., strip and (and it's contents) from the href - * - */ - "extractContent": boolean; - set(property:"extractContent", value: boolean): void; - get(property:"extractContent"): boolean; - watch(property:"extractContent", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The href of the content that displays now. - * Set this at construction if you want to load data externally when the - * pane is shown. (Set preload=true to load it immediately.) - * Changing href after creation doesn't have any effect; Use set('href', ...); - * - */ - "href": string; - set(property:"href", value: string): void; - get(property:"href"): string; - watch(property:"href", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Parameters to pass to xhrGet() request, for example: - * - *
- * - */ - "ioArgs": Object; - set(property:"ioArgs", value: Object): void; - get(property:"ioArgs"): Object; - watch(property:"ioArgs", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Indicates that this widget will call resize() on it's child widgets - * when they become visible. - * - */ - "isLayoutContainer": boolean; - set(property:"isLayoutContainer", value: boolean): void; - get(property:"isLayoutContainer"): boolean; - watch(property:"isLayoutContainer", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if the ContentPane has data in it, either specified - * during initialization (via href or inline content), or set - * via set('content', ...) / set('href', ...) - * - * False if it doesn't have any content, or if ContentPane is - * still in the process of downloading href. - * - */ - "isLoaded": boolean; - set(property:"isLoaded", value: boolean): void; - get(property:"isLoaded"): boolean; - watch(property:"isLoaded", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Message that shows while downloading - * - */ - "loadingMessage": string; - set(property:"loadingMessage", value: string): void; - get(property:"loadingMessage"): string; - watch(property:"loadingMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Maximum size to allow the dialog to expand to, relative to viewport size - * - */ - "maxRatio": number; - set(property:"maxRatio", value: number): void; - get(property:"maxRatio"): number; - watch(property:"maxRatio", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * This is the dojo.Deferred returned by set('href', ...) and refresh(). - * Calling onLoadDeferred.then() registers your - * callback to be called only once, when the prior set('href', ...) call or - * the initial href parameter to the constructor finishes loading. - * - * This is different than an onLoad() handler which gets called any time any href - * or content is loaded. - * - */ - "onLoadDeferred": Object; - set(property:"onLoadDeferred", value: Object): void; - get(property:"onLoadDeferred"): Object; - watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * True if Dialog is currently displayed on screen. - * - */ - "open": boolean; - set(property:"open", value: boolean): void; - get(property:"open"): boolean; - watch(property:"open", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Parse content and create the widgets, if any. - * - */ - "parseOnLoad": boolean; - set(property:"parseOnLoad", value: boolean): void; - get(property:"parseOnLoad"): boolean; - watch(property:"parseOnLoad", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Flag passed to parser. Root for attribute names to search for. If scopeName is dojo, - * will search for data-dojo-type (or dojoType). For backwards compatibility - * reasons defaults to dojo._scopeName (which is "dojo" except when - * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * - */ - "parserScope": string; - set(property:"parserScope", value: string): void; - get(property:"parserScope"): string; - watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Force load of data on initialization even if pane is hidden. - * - */ - "preload": boolean; - set(property:"preload", value: boolean): void; - get(property:"preload"): boolean; - watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Prevent caching of data from href's by appending a timestamp to the href. - * - */ - "preventCache": boolean; - set(property:"preventCache", value: boolean): void; - get(property:"preventCache"): boolean; - watch(property:"preventCache", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A Toggle to modify the default focus behavior of a Dialog, which - * is to re-focus the element which had focus before being opened. - * False will disable refocusing. Default: true - * - */ - "refocus": boolean; - set(property:"refocus", value: boolean): void; - get(property:"refocus"): boolean; - watch(property:"refocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Refresh (re-download) content when pane goes from hidden to shown - * - */ - "refreshOnShow": boolean; - set(property:"refreshOnShow", value: boolean): void; - get(property:"refreshOnShow"): boolean; - watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Will be "Error" if one or more of the child widgets has an invalid value, - * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", - * which indicates that the form is ready to be submitted. - * - */ - "state": string; - set(property:"state", value: string): void; - get(property:"state"): string; - watch(property:"state", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "stopParser": boolean; - set(property:"stopParser", value: boolean): void; - get(property:"stopParser"): boolean; - watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Should we parse the template to find widgets that might be - * declared in markup inside it? (Remove for 2.0 and assume true) - * - */ - "widgetsInTemplate": boolean; - set(property:"widgetsInTemplate", value: boolean): void; - get(property:"widgetsInTemplate"): boolean; - watch(property:"widgetsInTemplate", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Makes the given widget a child of this widget. - * Inserts specified child widget's dom node as a child of this widget's - * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Cancels an in-flight download of content - * - */ - cancel(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * You can call this function directly, ex. in the event that you - * programmatically add a widget to the form after the form has been - * initialized. - * - * @param inStartup - */ - connectChildren(inStartup: boolean): void; - /** - * - * @param params - * @param srcNodeRef - */ - create(params: any, srcNodeRef: any): void; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * - */ - destroy(): void; - /** - * Destroy all the widgets inside the ContentPane and empty containerNode - * - * @param preserveDom - */ - destroyDescendants(preserveDom: boolean): void; - /** - * Destroy the ContentPane and its contents - * - * @param preserveDom - */ - destroyRecursive(preserveDom: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Deprecated method. Applications no longer need to call this. Remove for 2.0. - * - */ - disconnectChildren(): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Callback when the user hits the submit button. - * Override this method to handle Dialog execution. - * After the user has pressed the submit button, the Dialog - * first calls onExecute() to notify the container to hide the - * dialog and restore focus to wherever it used to be. - * - * Then this method is called. - * - * @param formContents - */ - execute(formContents: Object): void; - /** - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * - */ - getValues(): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * Hide the dialog - * - */ - hide(): any; - /** - * Function that should grab the content specified via href. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. - */ - ioMethod(args: Object): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * Returns true if all of the widgets are valid. - * Deprecated, will be removed in 2.0. Use get("state") instead. - * - */ - isValid: {(): boolean}; - /** - * - * @param params - * @param node - * @param ctor - */ - markupFactory(params: any, node: any, ctor: any): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * - */ - postMixInProperties(): void; - /** - * [Re]download contents of href and display - * cancels any currently in-flight requests - * posts "loading..." message - * sends XHR to download new data - * - */ - refresh(): any; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * - */ - reset(): void; - /** - * See dijit/layout/_LayoutWidget.resize() for description. - * Although ContentPane doesn't extend _LayoutWidget, it does implement - * the same API. - * - * @param changeSize - * @param resultSize - */ - resize(changeSize: any, resultSize: any): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: String): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: HTMLElement): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: NodeList): void; - /** - * Deprecated. Use set('href', ...) instead. - * - * @param href - */ - setHref(href: String): any; - /** - * Deprecated. Use set('href', ...) instead. - * - * @param href - */ - setHref(href: URL): any; - /** - * - * @param val - */ - setValues(val: any): any; - /** - * Display the dialog - * - */ - show(): any; - /** - * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * returns if the form is valid - same as isValid - but - * provides a few additional (ui-specific) features: - * - * it will highlight any sub-widgets that are not valid - * it will call focus() on the first invalid sub-widget - * - */ - validate(): any; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Called when user has pressed the Dialog's cancel button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onCancel(): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Called on DOM faults, require faults etc. in content. - * - * In order to display an error message in the pane, return - * the error message from this method, as an HTML string. - * - * By default (if this method is not overriden), it returns - * nothing, so the error message is just printed to the console. - * - * @param error - */ - onContentError(error: Error): void; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when download is finished. - * - */ - onDownloadEnd(): void; - /** - * Called when download error occurs. - * - * In order to display an error message in the pane, return - * the error message from this method, as an HTML string. - * - * Default behavior (if this method is not overriden) is to display - * the error message inside the pane. - * - * @param error - */ - onDownloadError(error: Error): any; - /** - * Called before download starts. - * The string returned by this function will be the html - * that tells the user we are loading something. - * Override with your own function if you want to change text. - * - */ - onDownloadStart(): any; - /** - * Called when user has pressed the dialog's OK button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onExecute(): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Event hook, is called after everything is loaded and widgetified - * - * @param data - */ - onLoad(data: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - /** - * Event hook, is called before old content is cleared - * - */ - onUnload(): void; - /** - * Stub function to connect to if you want to do something - * (like disable/enable a submit button) when the valid - * state changes on the form as a whole. - * - * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. - * - * @param isValid - */ - onValidStateChange(isValid: boolean): void; - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Dialog.html - * - * A modal dialog Widget. - * Pops up a modal dialog window, blocking access to the screen - * and also graying out the screen Dialog is extended from - * ContentPane so it supports all the same parameters (href, etc.). - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class Dialog extends dijit.layout.ContentPane implements dijit._TemplatedMixin, dijit.form._FormMixin, dijit._DialogMixin, dijit._CssStateMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * A Toggle to modify the default focus behavior of a Dialog, which - * is to focus on the first dialog element after opening the dialog. - * False will disable autofocusing. Default: true - * - */ - "autofocus": boolean; - set(property:"autofocus", value: boolean): void; - get(property:"autofocus"): boolean; - watch(property:"autofocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Dialog show [x] icon to close itself, and ESC key will close the dialog. - * - */ - "closable": boolean; - set(property:"closable", value: boolean): void; - get(property:"closable"): boolean; - watch(property:"closable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * The innerHTML of the ContentPane. - * Note that the initialization parameter / argument to set("content", ...) - * can be a String, DomNode, Nodelist, or _Widget. - * - */ - "content": string; - set(property:"content", value: string): void; - get(property:"content"): string; - watch(property:"content", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - * false - don't adjust size of children - * true - if there is a single visible child widget, set it's size to however big the ContentPane is - * - */ - "doLayout": boolean; - set(property:"doLayout", value: boolean): void; - get(property:"doLayout"): boolean; - watch(property:"doLayout", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Toggles the movable aspect of the Dialog. If true, Dialog - * can be dragged by it's title. If false it will remain centered - * in the viewport. - * - */ - "draggable": boolean; - set(property:"draggable", value: boolean): void; - get(property:"draggable"): boolean; - watch(property:"draggable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The time in milliseconds it takes the dialog to fade in and out - * - */ - "duration": number; - set(property:"duration", value: number): void; - get(property:"duration"): number; - watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * Message that shows if an error occurs - * - */ - "errorMessage": string; - set(property:"errorMessage", value: string): void; - get(property:"errorMessage"): string; - watch(property:"errorMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Extract visible content from inside of .... . - * I.e., strip and (and it's contents) from the href - * - */ - "extractContent": boolean; - set(property:"extractContent", value: boolean): void; - get(property:"extractContent"): boolean; - watch(property:"extractContent", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The href of the content that displays now. - * Set this at construction if you want to load data externally when the - * pane is shown. (Set preload=true to load it immediately.) - * Changing href after creation doesn't have any effect; Use set('href', ...); - * - */ - "href": string; - set(property:"href", value: string): void; - get(property:"href"): string; - watch(property:"href", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Parameters to pass to xhrGet() request, for example: - * - *
- * - */ - "ioArgs": Object; - set(property:"ioArgs", value: Object): void; - get(property:"ioArgs"): Object; - watch(property:"ioArgs", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Indicates that this widget will call resize() on it's child widgets - * when they become visible. - * - */ - "isLayoutContainer": boolean; - set(property:"isLayoutContainer", value: boolean): void; - get(property:"isLayoutContainer"): boolean; - watch(property:"isLayoutContainer", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if the ContentPane has data in it, either specified - * during initialization (via href or inline content), or set - * via set('content', ...) / set('href', ...) - * - * False if it doesn't have any content, or if ContentPane is - * still in the process of downloading href. - * - */ - "isLoaded": boolean; - set(property:"isLoaded", value: boolean): void; - get(property:"isLoaded"): boolean; - watch(property:"isLoaded", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Message that shows while downloading - * - */ - "loadingMessage": string; - set(property:"loadingMessage", value: string): void; - get(property:"loadingMessage"): string; - watch(property:"loadingMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Maximum size to allow the dialog to expand to, relative to viewport size - * - */ - "maxRatio": number; - set(property:"maxRatio", value: number): void; - get(property:"maxRatio"): number; - watch(property:"maxRatio", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * This is the dojo.Deferred returned by set('href', ...) and refresh(). - * Calling onLoadDeferred.then() registers your - * callback to be called only once, when the prior set('href', ...) call or - * the initial href parameter to the constructor finishes loading. - * - * This is different than an onLoad() handler which gets called any time any href - * or content is loaded. - * - */ - "onLoadDeferred": Object; - set(property:"onLoadDeferred", value: Object): void; - get(property:"onLoadDeferred"): Object; - watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * True if Dialog is currently displayed on screen. - * - */ - "open": boolean; - set(property:"open", value: boolean): void; - get(property:"open"): boolean; - watch(property:"open", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Parse content and create the widgets, if any. - * - */ - "parseOnLoad": boolean; - set(property:"parseOnLoad", value: boolean): void; - get(property:"parseOnLoad"): boolean; - watch(property:"parseOnLoad", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Flag passed to parser. Root for attribute names to search for. If scopeName is dojo, - * will search for data-dojo-type (or dojoType). For backwards compatibility - * reasons defaults to dojo._scopeName (which is "dojo" except when - * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * - */ - "parserScope": string; - set(property:"parserScope", value: string): void; - get(property:"parserScope"): string; - watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Force load of data on initialization even if pane is hidden. - * - */ - "preload": boolean; - set(property:"preload", value: boolean): void; - get(property:"preload"): boolean; - watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Prevent caching of data from href's by appending a timestamp to the href. - * - */ - "preventCache": boolean; - set(property:"preventCache", value: boolean): void; - get(property:"preventCache"): boolean; - watch(property:"preventCache", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A Toggle to modify the default focus behavior of a Dialog, which - * is to re-focus the element which had focus before being opened. - * False will disable refocusing. Default: true - * - */ - "refocus": boolean; - set(property:"refocus", value: boolean): void; - get(property:"refocus"): boolean; - watch(property:"refocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Refresh (re-download) content when pane goes from hidden to shown - * - */ - "refreshOnShow": boolean; - set(property:"refreshOnShow", value: boolean): void; - get(property:"refreshOnShow"): boolean; - watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Will be "Error" if one or more of the child widgets has an invalid value, - * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", - * which indicates that the form is ready to be submitted. - * - */ - "state": string; - set(property:"state", value: string): void; - get(property:"state"): string; - watch(property:"state", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "stopParser": boolean; - set(property:"stopParser", value: boolean): void; - get(property:"stopParser"): boolean; - watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Makes the given widget a child of this widget. - * Inserts specified child widget's dom node as a child of this widget's - * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Cancels an in-flight download of content - * - */ - cancel(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * You can call this function directly, ex. in the event that you - * programmatically add a widget to the form after the form has been - * initialized. - * - * @param inStartup - */ - connectChildren(inStartup: boolean): void; - /** - * - * @param params - * @param srcNodeRef - */ - create(params: any, srcNodeRef: any): void; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * - */ - destroy(): void; - /** - * Destroy all the widgets inside the ContentPane and empty containerNode - * - * @param preserveDom - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy the ContentPane and its contents - * - * @param preserveDom - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Deprecated method. Applications no longer need to call this. Remove for 2.0. - * - */ - disconnectChildren(): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Callback when the user hits the submit button. - * Override this method to handle Dialog execution. - * After the user has pressed the submit button, the Dialog - * first calls onExecute() to notify the container to hide the - * dialog and restore focus to wherever it used to be. - * - * Then this method is called. - * - * @param formContents - */ - execute(formContents: Object): void; - /** - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * - */ - getValues(): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * Hide the dialog - * - */ - hide(): any; - /** - * Function that should grab the content specified via href. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. - */ - ioMethod(args: Object): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * Returns true if all of the widgets are valid. - * Deprecated, will be removed in 2.0. Use get("state") instead. - * - */ - isValid: {(): boolean}; - /** - * - * @param params - * @param node - * @param ctor - */ - markupFactory(params: any, node: any, ctor: any): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * - */ - postMixInProperties(): void; - /** - * [Re]download contents of href and display - * cancels any currently in-flight requests - * posts "loading..." message - * sends XHR to download new data - * - */ - refresh(): any; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * - */ - reset(): void; - /** - * See dijit/layout/_LayoutWidget.resize() for description. - * Although ContentPane doesn't extend _LayoutWidget, it does implement - * the same API. - * - * @param changeSize - * @param resultSize - */ - resize(changeSize: any, resultSize: any): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: String): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: HTMLElement): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: NodeList): void; - /** - * Deprecated. Use set('href', ...) instead. - * - * @param href - */ - setHref(href: String): any; - /** - * Deprecated. Use set('href', ...) instead. - * - * @param href - */ - setHref(href: URL): any; - /** - * - * @param val - */ - setValues(val: any): any; - /** - * Display the dialog - * - */ - show(): any; - /** - * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * returns if the form is valid - same as isValid - but - * provides a few additional (ui-specific) features: - * - * it will highlight any sub-widgets that are not valid - * it will call focus() on the first invalid sub-widget - * - */ - validate(): any; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Called when user has pressed the Dialog's cancel button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onCancel(): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Called on DOM faults, require faults etc. in content. - * - * In order to display an error message in the pane, return - * the error message from this method, as an HTML string. - * - * By default (if this method is not overriden), it returns - * nothing, so the error message is just printed to the console. - * - * @param error - */ - onContentError(error: Error): void; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when download is finished. - * - */ - onDownloadEnd(): void; - /** - * Called when download error occurs. - * - * In order to display an error message in the pane, return - * the error message from this method, as an HTML string. - * - * Default behavior (if this method is not overriden) is to display - * the error message inside the pane. - * - * @param error - */ - onDownloadError(error: Error): any; - /** - * Called before download starts. - * The string returned by this function will be the html - * that tells the user we are loading something. - * Override with your own function if you want to change text. - * - */ - onDownloadStart(): any; - /** - * Called when user has pressed the dialog's OK button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onExecute(): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Event hook, is called after everything is loaded and widgetified - * - * @param data - */ - onLoad(data: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - /** - * Event hook, is called before old content is cleared - * - */ - onUnload(): void; - /** - * Stub function to connect to if you want to do something - * (like disable/enable a submit button) when the valid - * state changes on the form as a whole. - * - * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. - * - * @param isValid - */ - onValidStateChange(isValid: boolean): void; - } - module Dialog { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Dialog._DialogBase.html - * - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. - */ - class _DialogBase extends dijit._TemplatedMixin implements dijit.form._FormMixin, dijit._DialogMixin, dijit._CssStateMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - /** - * A Toggle to modify the default focus behavior of a Dialog, which - * is to focus on the first dialog element after opening the dialog. - * False will disable autofocusing. Default: true - * - */ - "autofocus": boolean; - /** - * - */ - "baseClass": string; - /** - * Dialog show [x] icon to close itself, and ESC key will close the dialog. - * - */ - "closable": boolean; - /** - * - */ - "cssStateNodes": Object; - /** - * Don't change this parameter from the default value. - * This ContentPane parameter doesn't make sense for Dialog, since Dialog - * is never a child of a layout container, nor can you specify the size of - * Dialog in order to control the size of an inner widget. - * - */ - "doLayout": boolean; - /** - * Toggles the movable aspect of the Dialog. If true, Dialog - * can be dragged by it's title. If false it will remain centered - * in the viewport. - * - */ - "draggable": boolean; - /** - * The time in milliseconds it takes the dialog to fade in and out - * - */ - "duration": number; - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - /** - * Maximum size to allow the dialog to expand to, relative to viewport size - * - */ - "maxRatio": number; - /** - * True if Dialog is currently displayed on screen. - * - */ - "open": boolean; - /** - * A Toggle to modify the default focus behavior of a Dialog, which - * is to re-focus the element which had focus before being opened. - * False will disable refocusing. Default: true - * - */ - "refocus": boolean; - /** - * - */ - "searchContainerNode": boolean; - /** - * Will be "Error" if one or more of the child widgets has an invalid value, - * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", - * which indicates that the form is ready to be submitted. - * - */ - "state": string; - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - /** - * - */ - "templateString": string; - /** - * Construct the UI for this widget from a template, setting this.domNode. - * - */ - buildRendering(): void; - /** - * You can call this function directly, ex. in the event that you - * programmatically add a widget to the form after the form has been - * initialized. - * - * @param inStartup - */ - connectChildren(inStartup: boolean): void; - /** - * - */ - destroy(): void; - /** - * - */ - destroyRendering(): void; - /** - * Deprecated method. Applications no longer need to call this. Remove for 2.0. - * - */ - disconnectChildren(): void; - /** - * Callback when the user hits the submit button. - * Override this method to handle Dialog execution. - * After the user has pressed the submit button, the Dialog - * first calls onExecute() to notify the container to hide the - * dialog and restore focus to wherever it used to be. - * - * Then this method is called. - * - * @param formContents - */ - execute(formContents: Object): void; - /** - * - */ - focus(): void; - /** - * - */ - getValues(): any; - /** - * Hide the dialog - * - */ - hide(): any; - /** - * Returns true if all of the widgets are valid. - * Deprecated, will be removed in 2.0. Use get("state") instead. - * - */ - isValid: {(): boolean}; - /** - * - */ - postCreate(): void; - /** - * - */ - postMixInProperties(): void; - /** - * - */ - reset(): void; - /** - * - * @param val - */ - setValues(val: any): any; - /** - * Display the dialog - * - */ - show(): any; - /** - * - */ - startup(): void; - /** - * returns if the form is valid - same as isValid - but - * provides a few additional (ui-specific) features: - * - * it will highlight any sub-widgets that are not valid - * it will call focus() on the first invalid sub-widget - * - */ - validate(): any; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when user has pressed the Dialog's cancel button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onCancel(): void; - /** - * Called when user has pressed the dialog's OK button, to notify container. - * Developer shouldn't override or connect to this method; - * it's a private communication device between the TooltipDialog - * and the thing that opened it (ex: dijit/form/DropDownButton) - * - */ - onExecute(): void; - /** - * Called when data has been loaded from an href. - * Unlike most other callbacks, this function can be connected to (via dojo.connect) - * but should not be overridden. - * - */ - onLoad(): void; - /** - * Stub function to connect to if you want to do something - * (like disable/enable a submit button) when the valid - * state changes on the form as a whole. - * - * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. - * - * @param isValid - */ - onValidStateChange(isValid: boolean): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Dialog._DialogLevelManager.html - * - * Controls the various active "levels" on the page, starting with the - * stuff initially visible on the page (at z-index 0), and then having an entry for - * each Dialog shown. - * - */ - interface _DialogLevelManager { - /** - * Called when the specified dialog is hidden/destroyed, after the fade-out - * animation ends, in order to reset page focus, fix the underlay, etc. - * If the specified dialog isn't open then does nothing. - * - * Caller is responsible for either setting display:none on the dialog domNode, - * or calling dijit/popup.hide(), or removing it from the page DOM. - * - * @param dialog - */ - hide(dialog: dijit._WidgetBase): void; - /** - * Returns true if specified Dialog is the top in the task - * - * @param dialog - */ - isTop(dialog: dijit._WidgetBase): boolean; - /** - * Call right before fade-in animation for new dialog. - * Saves current focus, displays/adjusts underlay for new dialog, - * and sets the z-index of the dialog itself. - * - * New dialog will be displayed on top of all currently displayed dialogs. - * - * Caller is responsible for setting focus in new dialog after the fade-in - * animation completes. - * - * @param dialog - * @param underlayAttrs - */ - show(dialog: dijit._WidgetBase, underlayAttrs: Object): void; - } - } - - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/ColorPalette.html - * - * A keyboard accessible color-picking widget - * Grid showing various colors, so the user can pick a certain color. - * Can be used standalone, or as a popup. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class ColorPalette extends dijit._Widget implements dijit._TemplatedMixin, dijit._PaletteMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * CSS class applied to each cell in the palette - * - */ - "cellClass": string; - set(property:"cellClass", value: string): void; - get(property:"cellClass"): string; - watch(property:"cellClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Number of milliseconds before a held key or button becomes typematic - * - */ - "defaultTimeout": number; - set(property:"defaultTimeout", value: number): void; - get(property:"defaultTimeout"): number; - watch(property:"defaultTimeout", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Constructor for Object created for each cell of the palette. - * dyeClass should implement the dijit/_PaletteMixin.__Dye interface. - * - */ - "dyeClass": Function; - set(property:"dyeClass", value: Function): void; - get(property:"dyeClass"): Function; - watch(property:"dyeClass", callback:{(property?:string, oldValue?:Function, newValue?: Function):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Size of grid, either "7x10" or "3x4". - * - */ - "palette": string; - set(property:"palette", value: string): void; - get(property:"palette"): string; - watch(property:"palette", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Widget tab index. - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * The template of this widget. - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Fraction of time used to change the typematic timer between events - * 1.0 means that each typematic event fires at defaultTimeout intervals - * Less than 1.0 means that each typematic event fires at an increasing faster rate - * - */ - "timeoutChangeRate": number; - set(property:"timeoutChangeRate", value: number): void; - get(property:"timeoutChangeRate"): number; - watch(property:"timeoutChangeRate", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Currently selected color/emoticon/etc. - * - */ - "value": string; - set(property:"value", value: string): void; - get(property:"value"): string; - watch(property:"value", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Focus this widget. Puts focus on the most recently focused cell. - * - */ - focus(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Callback when a cell is selected. - * - * @param value Value corresponding to cell. - */ - onChange(value: String): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - module ColorPalette { - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/ColorPalette._Color.html - * - * Object associated with each cell in a ColorPalette palette. - * Implements dijit/Dye. - * - * @param alias English name of the color. - * @param row Vertical position in grid. - * @param col - * @param title Localized name of the color. + * @param color */ - class _Color extends dojo._base.Color { - constructor(alias: String, row: number, col: any, title: String); + class Color { + constructor(color: any[]); /** * */ @@ -15044,29 +4092,69 @@ declare module dijit { */ "g": number; /** + * Dictionary list of all CSS named colors, by name. Values are 3-item arrays with corresponding RG and B values. * */ - "hcTemplate": string; + "named": Object; /** * */ "r": number; /** + * Blend colors end and start with weight from 0 to 1, 0.5 being a 50/50 blend, + * can reuse a previously allocated Color object for the result * + * @param start + * @param end + * @param weight + * @param obj Optional */ - "template": string; + blendColors(start: dojo._base.Color, end: dojo._base.Color, weight: number, obj: dojo._base.Color): any; /** + * Builds a Color from a 3 or 4 element array, mapping each + * element in sequence to the rgb(a) values of the color. * - * @param cell - * @param blankGif + * @param a + * @param obj Optional */ - fillCell(cell: HTMLElement, blankGif: String): void; + fromArray(a: any[], obj: dojo._base.Color): any; /** - * Note that although dijit._Color is initialized with a value like "white" getValue() always - * returns a hex value + * Converts a hex string with a '#' prefix to a color object. + * Supports 12-bit #rgb shorthand. Optionally accepts a + * Color object to update with the parsed value. * + * @param color + * @param obj Optional */ - getValue(): any; + fromHex(color: String, obj: dojo._base.Color): any; + /** + * get rgb(a) array from css-style color declarations + * this function can handle all 4 CSS3 Color Module formats: rgb, + * rgba, hsl, hsla, including rgb(a) with percentage values. + * + * @param color + * @param obj Optional + */ + fromRgb(color: String, obj: dojo._base.Color): any; + /** + * Parses str for a color value. Accepts hex, rgb, and rgba + * style color values. + * Acceptable input values for str may include arrays of any form + * accepted by dojo.colorFromArray, hex strings such as "#aaaaaa", or + * rgb or rgba strings such as "rgb(133, 200, 16)" or "rgba(10, 10, + * 10, 50)" + * + * @param str + * @param obj Optional + */ + fromString(str: String, obj: dojo._base.Color): any; + /** + * creates a greyscale color with an optional alpha + * + * @param g + * @param a Optional + */ + makeGrey(g: number, a: number): void; /** * makes sure that the object has correct attributes * @@ -15096,6 +4184,16 @@ declare module dijit { * @param color */ setColor(color: Object): Function; + /** + * Convert this Color to a CMY definition. + * + */ + toCmy(): Object; + /** + * Convert this Color to a CMYK definition. + * + */ + toCmyk(): Object; /** * Returns a css color string in rgb(a) representation * @@ -15107,6 +4205,16 @@ declare module dijit { * */ toHex(): String; + /** + * Convert this Color to an HSL definition. + * + */ + toHsl(): Object; + /** + * Convert this Color to an HSV definition. + * + */ + toHsv(): Object; /** * Returns 3 component array of rgb values * @@ -15124,36050 +4232,12659 @@ declare module dijit { */ toString(): any; } - } + module Color { + /** + * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/Color.named.html + * + * Dictionary list of all CSS named colors, by name. Values are 3-item arrays with corresponding RG and B values. + * + */ + interface named { + /** + * + */ + aliceblue: any[]; + /** + * + */ + antiquewhite: any[]; + /** + * + */ + aqua: any[]; + /** + * + */ + aquamarine: any[]; + /** + * + */ + azure: any[]; + /** + * + */ + beige: any[]; + /** + * + */ + bisque: any[]; + /** + * + */ + black: any[]; + /** + * + */ + blanchedalmond: any[]; + /** + * + */ + blue: any[]; + /** + * + */ + blueviolet: any[]; + /** + * + */ + brown: any[]; + /** + * + */ + burlywood: any[]; + /** + * + */ + cadetblue: any[]; + /** + * + */ + chartreuse: any[]; + /** + * + */ + chocolate: any[]; + /** + * + */ + coral: any[]; + /** + * + */ + cornflowerblue: any[]; + /** + * + */ + cornsilk: any[]; + /** + * + */ + crimson: any[]; + /** + * + */ + cyan: any[]; + /** + * + */ + darkblue: any[]; + /** + * + */ + darkcyan: any[]; + /** + * + */ + darkgoldenrod: any[]; + /** + * + */ + darkgray: any[]; + /** + * + */ + darkgreen: any[]; + /** + * + */ + darkgrey: any[]; + /** + * + */ + darkkhaki: any[]; + /** + * + */ + darkmagenta: any[]; + /** + * + */ + darkolivegreen: any[]; + /** + * + */ + darkorange: any[]; + /** + * + */ + darkorchid: any[]; + /** + * + */ + darkred: any[]; + /** + * + */ + darksalmon: any[]; + /** + * + */ + darkseagreen: any[]; + /** + * + */ + darkslateblue: any[]; + /** + * + */ + darkslategray: any[]; + /** + * + */ + darkslategrey: any[]; + /** + * + */ + darkturquoise: any[]; + /** + * + */ + darkviolet: any[]; + /** + * + */ + deeppink: any[]; + /** + * + */ + deepskyblue: any[]; + /** + * + */ + dimgray: any[]; + /** + * + */ + dimgrey: any[]; + /** + * + */ + dodgerblue: any[]; + /** + * + */ + firebrick: any[]; + /** + * + */ + floralwhite: any[]; + /** + * + */ + forestgreen: any[]; + /** + * + */ + fuchsia: any[]; + /** + * + */ + gainsboro: any[]; + /** + * + */ + ghostwhite: any[]; + /** + * + */ + gold: any[]; + /** + * + */ + goldenrod: any[]; + /** + * + */ + gray: any[]; + /** + * + */ + green: any[]; + /** + * + */ + greenyellow: any[]; + /** + * + */ + grey: any[]; + /** + * + */ + honeydew: any[]; + /** + * + */ + hotpink: any[]; + /** + * + */ + indianred: any[]; + /** + * + */ + indigo: any[]; + /** + * + */ + ivory: any[]; + /** + * + */ + khaki: any[]; + /** + * + */ + lavender: any[]; + /** + * + */ + lavenderblush: any[]; + /** + * + */ + lawngreen: any[]; + /** + * + */ + lemonchiffon: any[]; + /** + * + */ + lightblue: any[]; + /** + * + */ + lightcoral: any[]; + /** + * + */ + lightcyan: any[]; + /** + * + */ + lightgoldenrodyellow: any[]; + /** + * + */ + lightgray: any[]; + /** + * + */ + lightgreen: any[]; + /** + * + */ + lightgrey: any[]; + /** + * + */ + lightpink: any[]; + /** + * + */ + lightsalmon: any[]; + /** + * + */ + lightseagreen: any[]; + /** + * + */ + lightskyblue: any[]; + /** + * + */ + lightslategray: any[]; + /** + * + */ + lightslategrey: any[]; + /** + * + */ + lightsteelblue: any[]; + /** + * + */ + lightyellow: any[]; + /** + * + */ + lime: any[]; + /** + * + */ + limegreen: any[]; + /** + * + */ + linen: any[]; + /** + * + */ + magenta: any[]; + /** + * + */ + maroon: any[]; + /** + * + */ + mediumaquamarine: any[]; + /** + * + */ + mediumblue: any[]; + /** + * + */ + mediumorchid: any[]; + /** + * + */ + mediumpurple: any[]; + /** + * + */ + mediumseagreen: any[]; + /** + * + */ + mediumslateblue: any[]; + /** + * + */ + mediumspringgreen: any[]; + /** + * + */ + mediumturquoise: any[]; + /** + * + */ + mediumvioletred: any[]; + /** + * + */ + midnightblue: any[]; + /** + * + */ + mintcream: any[]; + /** + * + */ + mistyrose: any[]; + /** + * + */ + moccasin: any[]; + /** + * + */ + navajowhite: any[]; + /** + * + */ + navy: any[]; + /** + * + */ + oldlace: any[]; + /** + * + */ + olive: any[]; + /** + * + */ + olivedrab: any[]; + /** + * + */ + orange: any[]; + /** + * + */ + orangered: any[]; + /** + * + */ + orchid: any[]; + /** + * + */ + palegoldenrod: any[]; + /** + * + */ + palegreen: any[]; + /** + * + */ + paleturquoise: any[]; + /** + * + */ + palevioletred: any[]; + /** + * + */ + papayawhip: any[]; + /** + * + */ + peachpuff: any[]; + /** + * + */ + peru: any[]; + /** + * + */ + pink: any[]; + /** + * + */ + plum: any[]; + /** + * + */ + powderblue: any[]; + /** + * + */ + purple: any[]; + /** + * + */ + red: any[]; + /** + * + */ + rosybrown: any[]; + /** + * + */ + royalblue: any[]; + /** + * + */ + saddlebrown: any[]; + /** + * + */ + salmon: any[]; + /** + * + */ + sandybrown: any[]; + /** + * + */ + seagreen: any[]; + /** + * + */ + seashell: any[]; + /** + * + */ + sienna: any[]; + /** + * + */ + silver: any[]; + /** + * + */ + skyblue: any[]; + /** + * + */ + slateblue: any[]; + /** + * + */ + slategray: any[]; + /** + * + */ + slategrey: any[]; + /** + * + */ + snow: any[]; + /** + * + */ + springgreen: any[]; + /** + * + */ + steelblue: any[]; + /** + * + */ + tan: any[]; + /** + * + */ + teal: any[]; + /** + * + */ + thistle: any[]; + /** + * + */ + tomato: any[]; + /** + * + */ + transparent: Object; + /** + * + */ + turquoise: any[]; + /** + * + */ + violet: any[]; + /** + * + */ + wheat: any[]; + /** + * + */ + white: any[]; + /** + * + */ + whitesmoke: any[]; + /** + * + */ + yellow: any[]; + /** + * + */ + yellowgreen: any[]; + } + } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Fieldset.html - * - * An accessible fieldset that can be expanded or collapsed via - * its legend. Fieldset extends dijit.TitlePane. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class Fieldset extends dijit.TitlePane { - constructor(params?: Object, srcNodeRef?: HTMLElement); /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * The root className to use for the various states of this widget - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * The innerHTML of the ContentPane. - * Note that the initialization parameter / argument to set("content", ...) - * can be a String, DomNode, Nodelist, or _Widget. - * - */ - "content": string; - set(property:"content", value: string): void; - get(property:"content"): string; - watch(property:"content", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Don't change this parameter from the default value. - * This ContentPane parameter doesn't make sense for TitlePane, since TitlePane - * is never a child of a layout container, nor should TitlePane try to control - * the size of an inner widget. - * - */ - "doLayout": boolean; - set(property:"doLayout", value: boolean): void; - get(property:"doLayout"): boolean; - watch(property:"doLayout", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Time in milliseconds to fade in/fade out - * - */ - "duration": number; - set(property:"duration", value: number): void; - get(property:"duration"): number; - watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * Message that shows if an error occurs - * - */ - "errorMessage": string; - set(property:"errorMessage", value: string): void; - get(property:"errorMessage"): string; - watch(property:"errorMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Extract visible content from inside of .... . - * I.e., strip and (and it's contents) from the href - * - */ - "extractContent": boolean; - set(property:"extractContent", value: boolean): void; - get(property:"extractContent"): boolean; - watch(property:"extractContent", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The href of the content that displays now. - * Set this at construction if you want to load data externally when the - * pane is shown. (Set preload=true to load it immediately.) - * Changing href after creation doesn't have any effect; Use set('href', ...); - * - */ - "href": string; - set(property:"href", value: string): void; - get(property:"href"): string; - watch(property:"href", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Parameters to pass to xhrGet() request, for example: - * - *
- * - */ - "ioArgs": Object; - set(property:"ioArgs", value: Object): void; - get(property:"ioArgs"): Object; - watch(property:"ioArgs", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Indicates that this widget will call resize() on it's child widgets - * when they become visible. - * - */ - "isLayoutContainer": boolean; - set(property:"isLayoutContainer", value: boolean): void; - get(property:"isLayoutContainer"): boolean; - watch(property:"isLayoutContainer", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if the ContentPane has data in it, either specified - * during initialization (via href or inline content), or set - * via set('content', ...) / set('href', ...) - * - * False if it doesn't have any content, or if ContentPane is - * still in the process of downloading href. - * - */ - "isLoaded": boolean; - set(property:"isLoaded", value: boolean): void; - get(property:"isLoaded"): boolean; - watch(property:"isLoaded", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Message that shows while downloading - * - */ - "loadingMessage": string; - set(property:"loadingMessage", value: string): void; - get(property:"loadingMessage"): string; - watch(property:"loadingMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is the dojo.Deferred returned by set('href', ...) and refresh(). - * Calling onLoadDeferred.then() registers your - * callback to be called only once, when the prior set('href', ...) call or - * the initial href parameter to the constructor finishes loading. - * - * This is different than an onLoad() handler which gets called any time any href - * or content is loaded. - * - */ - "onLoadDeferred": Object; - set(property:"onLoadDeferred", value: Object): void; - get(property:"onLoadDeferred"): Object; - watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Whether fieldset is opened or closed. - * - */ - "open": boolean; - set(property:"open", value: boolean): void; - get(property:"open"): boolean; - watch(property:"open", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Parse content and create the widgets, if any. - * - */ - "parseOnLoad": boolean; - set(property:"parseOnLoad", value: boolean): void; - get(property:"parseOnLoad"): boolean; - watch(property:"parseOnLoad", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Flag passed to parser. Root for attribute names to search for. If scopeName is dojo, - * will search for data-dojo-type (or dojoType). For backwards compatibility - * reasons defaults to dojo._scopeName (which is "dojo" except when - * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * - */ - "parserScope": string; - set(property:"parserScope", value: string): void; - get(property:"parserScope"): string; - watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Force load of data on initialization even if pane is hidden. - * - */ - "preload": boolean; - set(property:"preload", value: boolean): void; - get(property:"preload"): boolean; - watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Prevent caching of data from href's by appending a timestamp to the href. - * - */ - "preventCache": boolean; - set(property:"preventCache", value: boolean): void; - get(property:"preventCache"): boolean; - watch(property:"preventCache", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Refresh (re-download) content when pane goes from hidden to shown - * - */ - "refreshOnShow": boolean; - set(property:"refreshOnShow", value: boolean): void; - get(property:"refreshOnShow"): boolean; - watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * - */ - "stopParser": boolean; - set(property:"stopParser", value: boolean): void; - get(property:"stopParser"): boolean; - watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Tabindex setting for the title (so users can tab to the title then - * use space/enter to open/close the title pane) - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Content of the legend tag. Overrides tag if not empty. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Whether pane can be opened or closed by clicking the title bar. - * - */ - "toggleable": boolean; - set(property:"toggleable", value: boolean): void; - get(property:"toggleable"): boolean; - watch(property:"toggleable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Makes the given widget a child of this widget. - * Inserts specified child widget's dom node as a child of this widget's - * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * - */ - buildRendering(): void; - /** - * Cancels an in-flight download of content - * - */ - cancel(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * - * @param params - * @param srcNodeRef - */ - create(params: any, srcNodeRef: any): void; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * - */ - destroy(): void; - /** - * Destroy all the widgets inside the ContentPane and empty containerNode - * - * @param preserveDom - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy the ContentPane and its contents - * - * @param preserveDom - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * Function that should grab the content specified via href. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. - */ - ioMethod(args: Object): any; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param params - * @param node - * @param ctor - */ - markupFactory(params: any, node: any, ctor: any): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * - */ - postMixInProperties(): void; - /** - * [Re]download contents of href and display - * cancels any currently in-flight requests - * posts "loading..." message - * sends XHR to download new data - * - */ - refresh(): any; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * See dijit/layout/_LayoutWidget.resize() for description. - * Although ContentPane doesn't extend _LayoutWidget, it does implement - * the same API. - * - * @param changeSize - * @param resultSize - */ - resize(changeSize: any, resultSize: any): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: String): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: HTMLElement): void; - /** - * Deprecated. Use set('content', ...) instead. - * - * @param data - */ - setContent(data: NodeList): void; - /** - * Deprecated. Use set('href', ...) instead. - * - * @param href - */ - setHref(href: String): any; - /** - * Deprecated. Use set('href', ...) instead. - * - * @param href - */ - setHref(href: URL): any; - /** - * Deprecated. Use set('title', ...) instead. - * - * @param title - */ - setTitle(title: String): void; - /** - * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects - * - */ - startup(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Called when this widget is being displayed as a popup (ex: a Calendar popped - * up from a DateTextBox), and it is hidden. - * This is called from the dijit.popup code, and should not be called directly. - * - * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. - * Callback if a user tries to close the child. Child will be closed if this function returns true. - * - */ - onClose(): boolean; - /** - * Called on DOM faults, require faults etc. in content. - * - * In order to display an error message in the pane, return - * the error message from this method, as an HTML string. - * - * By default (if this method is not overriden), it returns - * nothing, so the error message is just printed to the console. - * - * @param error - */ - onContentError(error: Error): void; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Called when download is finished. - * - */ - onDownloadEnd(): void; - /** - * Called when download error occurs. - * - * In order to display an error message in the pane, return - * the error message from this method, as an HTML string. - * - * Default behavior (if this method is not overriden) is to display - * the error message inside the pane. - * - * @param error - */ - onDownloadError(error: Error): any; - /** - * Called before download starts. - * The string returned by this function will be the html - * that tells the user we are loading something. - * Override with your own function if you want to change text. - * - */ - onDownloadStart(): any; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Event hook, is called after everything is loaded and widgetified - * - * @param data - */ - onLoad(data: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - /** - * Event hook, is called before old content is cleared - * - */ - onUnload(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/DropDownMenu.html - * - * A menu, without features for context menu (Meaning, drop down menu) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree - */ - class DropDownMenu extends dijit._MenuBase implements dijit._OnDijitClickMixin { - constructor(params?: Object, srcNodeRef?: HTMLElement); - /** - * This Menu has been clicked (mouse or via space/arrow key) or opened as a submenu, - * so mere mouseover will open submenus. Focusing a menu via TAB does NOT automatically make it active - * since TAB is a navigation operation and not a selection one. - * For Windows apps, pressing the ALT key focuses the menubar menus (similar to TAB navigation) but the - * menu is not active (ie no dropdown) until an item is clicked. - * - */ - "activated": boolean; - set(property:"activated", value: boolean): void; - get(property:"activated"): boolean; - watch(property:"activated", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * True if mouse was pressed while over this widget, and hasn't been released yet - * - */ - "active": boolean; - set(property:"active", value: boolean): void; - get(property:"active"): boolean; - watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Object to which attach points and events will be scoped. Defaults - * to 'this'. - * - */ - "attachScope": Object; - set(property:"attachScope", value: Object): void; - get(property:"attachScope"): Object; - watch(property:"attachScope", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute - * for each XXX attribute to be mapped to the DOM. - * - * attributeMap sets up a "binding" between attributes (aka properties) - * of the widget and the widget's DOM. - * Changes to widget attributes listed in attributeMap will be - * reflected into the DOM. - * - * For example, calling set('title', 'hello') - * on a TitlePane will automatically cause the TitlePane's DOM to update - * with the new title. - * - * attributeMap is a hash where the key is an attribute of the widget, - * and the value reflects a binding to a: - * - * DOM node attribute - * focus: {node: "focusNode", type: "attribute"} - * Maps this.focus to this.focusNode.focus - * - * DOM node innerHTML - * title: { node: "titleNode", type: "innerHTML" } - * Maps this.title to this.titleNode.innerHTML - * - * DOM node innerText - * title: { node: "titleNode", type: "innerText" } - * Maps this.title to this.titleNode.innerText - * - * DOM node CSS class - * myClass: { node: "domNode", type: "class" } - * Maps this.myClass to this.domNode.className - * - * If the value is an array, then each element in the array matches one of the - * formats of the above list. - * - * There are also some shorthands for backwards compatibility: - * - * string --> { node: string, type: "attribute" }, for example: - * "focusNode" ---> { node: "focusNode", type: "attribute" } - * "" --> { node: "domNode", type: "attribute" } - * - */ - "attributeMap": Object; - set(property:"attributeMap", value: Object): void; - get(property:"attributeMap"): Object; - watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * A toggle to control whether or not a Menu gets focused when opened as a drop down from a MenuBar - * or DropDownButton/ComboButton. Note though that it always get focused when opened via the keyboard. - * - */ - "autoFocus": boolean; - set(property:"autoFocus", value: boolean): void; - get(property:"autoFocus"): boolean; - watch(property:"autoFocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * - */ - "baseClass": string; - set(property:"baseClass", value: string): void; - get(property:"baseClass"): string; - watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "class": string; - set(property:"class", value: string): void; - get(property:"class"): string; - watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Designates where children of the source DOM node will be placed. - * "Children" in this case refers to both DOM nodes and widgets. - * For example, for myWidget: - * - *
- * here's a plain DOM node - * and a widget - * and another plain DOM node - *
- * containerNode would point to: - * - * here's a plain DOM node - * and a widget - * and another plain DOM node - * In templated widgets, "containerNode" is set via a - * data-dojo-attach-point assignment. - * - * containerNode must be defined for any widget that accepts innerHTML - * (like ContentPane or BorderContainer or even Button), and conversely - * is null for widgets that don't, like TextBox. - * - */ - "containerNode": HTMLElement; - set(property:"containerNode", value: HTMLElement): void; - get(property:"containerNode"): HTMLElement; - watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that - * need CSS classes applied on mouse hover/press and focus. - * - * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name - * (like "dijitUpArrowButton"). Example: - * - * { - * "upArrowButton": "dijitUpArrowButton", - * "downArrowButton": "dijitDownArrowButton" - * } - * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * - * is hovered, etc. - * - */ - "cssStateNodes": Object; - set(property:"cssStateNodes", value: Object): void; - get(property:"cssStateNodes"): Object; - watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * Bi-directional support, as defined by the HTML DIR - * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's - * default direction. - * - */ - "dir": string; - set(property:"dir", value: string): void; - get(property:"dir"): string; - watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * This is our visible representation of the widget! Other DOM - * Nodes may by assigned to other properties, usually through the - * template system's data-dojo-attach-point syntax, but the domNode - * property is the canonical "top level" node in widget UI. - * - */ - "domNode": HTMLElement; - set(property:"domNode", value: HTMLElement): void; - get(property:"domNode"): HTMLElement; - watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * This widget or a widget it contains has focus, or is "active" because - * it was recently clicked. - * - */ - "focused": boolean; - set(property:"focused", value: boolean): void; - get(property:"focused"): boolean; - watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * The currently focused child widget, or null if there isn't one - * - */ - "focusedChild": Object; - set(property:"focusedChild", value: Object): void; - get(property:"focusedChild"): Object; - watch(property:"focusedChild", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * True if cursor is over this widget - * - */ - "hovering": boolean; - set(property:"hovering", value: boolean): void; - get(property:"hovering"): boolean; - watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * A unique, opaque ID string that can be assigned by users or by the - * system. If the developer passes an ID which is known not to be - * unique, the specified ID is ignored and the system-generated ID is - * used instead. - * - */ - "id": string; - set(property:"id", value: string): void; - get(property:"id"): string; - watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Rarely used. Overrides the default Dojo locale used to render this widget, - * as defined by the HTML LANG attribute. - * Value must be among the list of locales specified during by the Dojo bootstrap, - * formatted according to RFC 3066 (like en-us). - * - */ - "lang": string; - set(property:"lang", value: string): void; - get(property:"lang"): string; - watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * If multiple characters are typed where each keystroke happens within - * multiCharSearchDuration of the previous keystroke, - * search for nodes matching all the keystrokes. - * - * For example, typing "ab" will search for entries starting with - * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * - */ - "multiCharSearchDuration": number; - set(property:"multiCharSearchDuration", value: number): void; - get(property:"multiCharSearchDuration"): number; - watch(property:"multiCharSearchDuration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * The document this widget belongs to. If not specified to constructor, will default to - * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * - */ - "ownerDocument": Object; - set(property:"ownerDocument", value: Object): void; - get(property:"ownerDocument"): Object; - watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to menu that displayed me - * - */ - "parentMenu": Object; - set(property:"parentMenu", value: Object): void; - get(property:"parentMenu"): Object; - watch(property:"parentMenu", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * For a passive (unclicked) Menu, number of milliseconds before hovering (without clicking) will cause - * the popup to open. Default is Infinity, meaning you need to click the menu to open it. - * - */ - "passivePopupDelay": number; - set(property:"passivePopupDelay", value: number): void; - get(property:"passivePopupDelay"): number; - watch(property:"passivePopupDelay", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * After a menu has been activated (by clicking on it etc.), number of milliseconds before hovering - * (without clicking) another MenuItem causes that MenuItem's popup to automatically open. - * - */ - "popupDelay": number; - set(property:"popupDelay", value: number): void; - get(property:"popupDelay"): number; - watch(property:"popupDelay", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} - /** - * - */ - "searchContainerNode": boolean; - set(property:"searchContainerNode", value: boolean): void; - get(property:"searchContainerNode"): boolean; - watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} - /** - * Currently selected (a.k.a. highlighted) MenuItem, or null if no MenuItem is selected. - * If a submenu is open, will be set to MenuItem that displayed the submenu. OTOH, if - * this Menu is in passive mode (i.e. hasn't been clicked yet), will be null, because - * "selected" is not merely "hovered". - * - */ - "selected": Object; - set(property:"selected", value: Object): void; - get(property:"selected"): Object; - watch(property:"selected", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} - /** - * pointer to original DOM node - * - */ - "srcNodeRef": HTMLElement; - set(property:"srcNodeRef", value: HTMLElement): void; - get(property:"srcNodeRef"): HTMLElement; - watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} - /** - * HTML style attributes as cssText string or name/value hash - * - */ - "style": string; - set(property:"style", value: string): void; - get(property:"style"): string; - watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Tab index of the container; same as HTML tabIndex attribute. - * Note then when user tabs into the container, focus is immediately - * moved to the first item in the container. - * - */ - "tabIndex": string; - set(property:"tabIndex", value: string): void; - get(property:"tabIndex"): string; - watch(property:"tabIndex", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * Path to template (HTML file) for this widget relative to dojo.baseUrl. - * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * - */ - "templatePath": string; - set(property:"templatePath", value: string): void; - get(property:"templatePath"): string; - watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - */ - "templateString": string; - set(property:"templateString", value: string): void; - get(property:"templateString"): string; - watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * HTML title attribute. - * - * For form widgets this specifies a tooltip to display when hovering over - * the widget (just like the native HTML title attribute). - * - * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, - * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's - * interpreted as HTML. - * - */ - "title": string; - set(property:"title", value: string): void; - get(property:"title"): string; - watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * When this widget's title attribute is used to for a tab label, accordion pane title, etc., - * this specifies the tooltip to appear when the mouse is hovered over that text. - * - */ - "tooltip": string; - set(property:"tooltip", value: string): void; - get(property:"tooltip"): string; - watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} - /** - * - * @param widget - * @param insertIndex Optional - */ - addChild(widget: dijit._WidgetBase, insertIndex: number): void; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: String, value: Object): any; - /** - * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. - */ - attr(name: Object, value: Object): any; - /** - * Construct the UI for this widget, setting this.domNode. - * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * - */ - buildRendering(): void; - /** - * Selector (passed to on.selector()) used to identify MenuItem child widgets, but exclude inert children - * like MenuSeparator. If subclass overrides to a string (ex: "> *"), the subclass must require dojo/query. - * - * @param node - */ - childSelector(node: HTMLElement): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: String): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: String, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: Object, event: Function, method: Function): any; - /** - * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * - * Connects specified obj/event to specified method of this object - * and registers for disconnect() on widget destroy. - * - * Provide widget-specific analog to dojo.connect, except with the - * implicit use of this widget as the target object. - * Events connected with this.connect are disconnected upon - * destruction. - * - * @param obj - * @param event - * @param method - */ - connect(obj: any, event: Function, method: Function): any; - /** - * Deprecated. You can call this in postCreate() to attach the keyboard handlers to the container, - * but the preferred method is to override _onLeftArrow() and _onRightArrow(), or - * _onUpArrow() and _onDownArrow(), to call focusPrev() and focusNext(). - * - * @param prevKeyCodes Key codes for navigating to the previous child. - * @param nextKeyCodes Key codes for navigating to the next child. - */ - connectKeyNavHandlers(prevKeyCodes: dojo.keys, nextKeyCodes: dojo.keys): void; - /** - * Wrapper to setTimeout to avoid deferred functions executing - * after the originating widget has been destroyed. - * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. - */ - defer(fcn: Function, delay: number): Object; - /** - * Destroy this widget, but not its descendants. Descendants means widgets inside of - * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * - * This method will also destroy internal widgets such as those created from a template, - * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * - * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not - * depend on the current ability to destroy a widget without destroying its descendants. Generally - * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets - */ - destroy(preserveDom?: boolean): void; - /** - * Recursively destroy the children of this widget and their - * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. - */ - destroyDescendants(preserveDom?: boolean): void; - /** - * Destroy this widget and its descendants - * This is the generic "destructor" function that all widget users - * should call to cleanly discard with a widget. Once a widget is - * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. - */ - destroyRecursive(preserveDom?: boolean): void; - /** - * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. - */ - destroyRendering(preserveDom?: boolean): void; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Disconnects handle created by connect. - * - * @param handle - */ - disconnect(handle: any): void; - /** - * Used by widgets to signal that a synthetic event occurred, ex: - * - * myWidget.emit("attrmodified-selectedChildWidget", {}). - * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. - * Also calls onType() method, if present, and returns value from that method. - * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. - * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional - */ - emit(type: String, eventObj: Object, callbackArgs: any[]): any; - /** - * Default focus() implementation: focus the first child. - * - */ - focus(): void; - /** - * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one - */ - focusChild(widget: dijit._WidgetBase, last: boolean): void; - /** - * Focus the first focusable child in the container. - * - */ - focusFirstChild(): void; - /** - * Focus the last focusable child in the container. - * - */ - focusLastChild(): void; - /** - * Focus the next widget - * - */ - focusNext(): void; - /** - * Focus the last focusable node in the previous widget - * (ex: go to the ComboButton icon section rather than button section) - * - */ - focusPrev(): void; - /** - * Get a property from a widget. - * Get a named property from a widget. The property may - * potentially be retrieved via a getter method. If no getter is defined, this - * just retrieves the object's property. - * - * For example, if the widget has properties foo and bar - * and a method named _getFooAttr(), calling: - * myWidget.get("foo") would be equivalent to calling - * widget._getFooAttr() and myWidget.get("bar") - * would be equivalent to the expression - * widget.bar2 - * - * @param name The property to get. - */ - get(name: any): any; - /** - * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent - * is this widget. Note that it does not return all descendants, but rather just direct children. - * Analogous to Node.childNodes, - * except containing widgets rather than DOMNodes. - * - * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) - * outside of this.containerNode. - * - * Note that the array returned is a simple array. Application code should not assume - * existence of methods like forEach(). - * - */ - getChildren(): any[]; - /** - * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. - * This method should generally be avoided as it returns widgets declared in templates, which are - * supposed to be internal/hidden, but it's left here for back-compat reasons. - * - */ - getDescendants(): any[]; - /** - * Gets the index of the child in this container or -1 if not found - * - * @param child - */ - getIndexOfChild(child: dijit._WidgetBase): any; - /** - * Returns the parent widget of this widget. - * - */ - getParent(): any; - /** - * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * - */ - hasChildren(): boolean; - /** - * Return true if this widget can currently be focused - * and false if not - * - */ - isFocusable(): any; - /** - * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * - */ - isLeftToRight(): any; - /** - * - * @param type protected - * @param func - */ - on(type: String, func: Function): any; - /** - * - * @param type protected - * @param func - */ - on(type: Function, func: Function): any; - /** - * Track specified handles and remove/destroy them when this instance is destroyed, unless they were - * already removed/destroyed manually. - * - */ - own(): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: String): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: String, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: HTMLElement, position: number): any; - /** - * Place this widget somewhere in the DOM based - * on standard domConstruct.place() conventions. - * A convenience function provided in all _Widgets, providing a simple - * shorthand mechanism to put an existing (or newly created) Widget - * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). - */ - placeAt(reference: dijit._WidgetBase, position: number): any; - /** - * - */ - postCreate(): void; - /** - * Called after the parameters to the widget have been read-in, - * but before the widget template is instantiated. Especially - * useful to set properties that are referenced in the widget - * template. - * - */ - postMixInProperties(): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: dijit._WidgetBase): void; - /** - * Removes the passed widget instance from this widget but does - * not destroy it. You can also pass in an integer indicating - * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget - */ - removeChild(widget: number): void; - /** - * Set a property on a widget - * Sets named properties on a widget which may potentially be handled by a - * setter in the widget. - * - * For example, if the widget has properties foo and bar - * and a method named _setFooAttr(), calling - * myWidget.set("foo", "Howdy!") would be equivalent to calling - * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) - * would be equivalent to the statement widget.bar = 3; - * - * set() may also be called with a hash of name/value pairs, ex: - * - * myWidget.set({ - * foo: "Howdy", - * bar: 3 - * }); - * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. - */ - set(name: any, value: any): any; - /** - * Deprecated. Use set() instead. - * - * @param attr - * @param value - */ - setAttribute(attr: String, value: any): void; - /** - * Processing after the DOM fragment is added to the document - * Called after a widget and its children have been created and added to the page, - * and all related widgets have finished their create() cycle, up through postCreate(). - * - * Note that startup() may be called while the widget is still hidden, for example if the widget is - * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. - * For widgets that need to do layout, it's best to put that layout code inside resize(), and then - * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * - */ - startup(): void; - /** - * - */ - startupKeyNavChildren(): void; - /** - * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * - * Subscribes to the specified topic and calls the specified method - * of this object and registers for unsubscribe() on widget destroy. - * - * Provide widget-specific analog to dojo.subscribe, except with the - * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback - */ - subscribe(t: String, method: Function): any; - /** - * Returns a string that represents the widget. - * When a widget is cast to a string, this method will be used to generate the - * output. Currently, it does not implement any sort of reversible - * serialization. - * - */ - toString(): string; - /** - * Deprecated. Override destroy() instead to implement custom widget tear-down - * behavior. - * - */ - uninitialize(): boolean; - /** - * Deprecated, will be removed in 2.0, use handle.remove() instead. - * - * Unsubscribes handle created by this.subscribe. - * Also removes handle from this widget's list of subscriptions - * - * @param handle - */ - unsubscribe(handle: Object): void; - /** - * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. - */ - watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; - /** - * Static method to get a template based on the templatePath or - * templateString key - */ - getCachedTemplate(): any; - /** - * Called when the widget stops being "active" because - * focus moved to something outside of it, or the user - * clicked somewhere outside of it, or the widget was - * hidden. - * - */ - onBlur(): void; - /** - * Attach point for notification about when the user cancels the current menu - * This is an internal mechanism used for Menus to signal to their parent to - * close them. In general developers should not attach to or override this method. - * - * @param closeAll - */ - onCancel(closeAll: boolean): void; - /** - * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event - */ - onClick(event: any): void; - /** - * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event - */ - onDblClick(event: any): void; - /** - * Attach point for notification about when a menu item has been executed. - * This is an internal mechanism used for Menus to signal to their parent to - * close them, because they are about to execute the onClick handler. In - * general developers should not attach to or override this method. - * - */ - onExecute(): void; - /** - * Called when the widget becomes "active" because - * it or a widget inside of it either has focus, or has recently - * been clicked. - * - */ - onFocus(): void; - /** - * Called when another widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onHide(): void; - /** - * Called when cursor is over a MenuItem. - * - * @param item - */ - onItemHover(item: dijit.MenuItem): void; - /** - * Callback fires when mouse exits a MenuItem - * - * @param item - */ - onItemUnhover(item: dijit.MenuItem): void; - /** - * Attach point for notification about when a menu item has been searched for - * via the keyboard search mechanism. - * - * @param item - * @param evt - * @param searchString - * @param numMatches - */ - onKeyboardSearch(item: dijit.MenuItem, evt: Event, searchString: String, numMatches: number): void; - /** - * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event - */ - onKeyDown(event: any): void; - /** - * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event - */ - onKeyPress(event: any): void; - /** - * Connect to this function to receive notifications of keys being released. - * - * @param event key Event - */ - onKeyUp(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event - */ - onMouseDown(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event - */ - onMouseEnter(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event - */ - onMouseLeave(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseMove(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOut(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event - */ - onMouseOver(event: any): void; - /** - * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event - */ - onMouseUp(event: any): void; - /** - * Called when this widget becomes the selected pane in a - * dijit/layout/TabContainer, dijit/layout/StackContainer, - * dijit/layout/AccordionContainer, etc. - * - * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * - */ - onShow(): void; - } - /** - * Permalink: http://dojotoolkit.org/api/1.9/dijit/Editor.html - * - * A rich text Editing widget - * This widget provides basic WYSIWYG editing features, based on the browser's - * underlying rich text editing capability, accompanied by a toolbar (dijit.Toolbar). - * A plugin model is available to extend the editor's capabilities as well as the - * the options available in the toolbar. Content generation may vary across - * browsers, and clipboard operations may have different results, to name - * a few limitations. Note: this widget should not be used with the HTML - *