##// END OF EJS Templates
Added tag v1.0.7 for changeset 8ab7be820af9
Added tag v1.0.7 for changeset 8ab7be820af9

File last commit:

r10:641c326d4bb4 v1.0.2 default
r19:5657d35e9f29 default
Show More
form.d.ts
1870 lines | 65.9 KiB | video/mp2t | TypeScriptLexer
cin
Initial commit, project structure.
r0 declare namespace dijit {
cin
Maintenance release...
r8 namespace form {
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* implied */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface Constraints {
[prop: string]: any;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ConstrainedValueFunction<V = any, C extends Constraints = Constraints, T = any> {
/**
* Returns a value that has been constrained by the constraints
* @param value The value to constrain
* @param constraints The constraints to use
* @returns The constrained value
*/
(value: V, constraints: C): T;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ConstrainedValidFunction<C extends Constraints = Constraints> {
/**
* Returns true if the value is valid based on the constraints, otherwise
* returns false.
* @param value The value to check
* @param constraints The constraints to use
* @returns true if valid, otherwise false
*/
(value: any, constraints: C): boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ConstraintsToRegExpString<C extends Constraints = Constraints> {
/**
* Takes a set of constraints and returns a RegExpString that can be used
* to match values against
* @param constraints The constraints to use
* @returns The RegExpString that represents the constraints
*/
(constraints: C): string;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface SerializationFunction {
(val: any, options?: Object): string;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_AutoCompleterMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* tslint:disable:class-name */
interface _AutoCompleterMixin<T extends Object = any, Q extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions = dojo.store.api.QueryOptions> extends _SearchMixin<T, Q, O> {
/**
* This is the item returned by the dojo/store/api/Store implementation that
* provides the data for this ComboBox, it's the currently selected item.
*/
item: T;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* If user types in a partial string, and then tab out of the `<input>` box,
* automatically copy the first entry displayed in the drop down list to
* the `<input>` field
*/
autoComplete: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* One of: "first", "all" or "none".
*/
highlightMatch: string;
/* TODO: Uncomment for TS 1.8 and remove above */
/* highlightMatch: 'fisrt' | 'all' | 'none'; */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The entries in the drop down list come from this attribute in the
* dojo.data items.
* If not specified, the searchAttr attribute is used instead.
*/
labelAttr: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Specifies how to interpret the labelAttr in the data store items.
* Can be "html" or "text".
*/
labelType: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Flags to _HasDropDown to limit height of drop down to make it fit in viewport
*/
maxHeight: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* For backwards compatibility let onClick events propagate, even clicks on the down arrow button
*/
_stopClickEvents: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _getCaretPos(element: HTMLElement): number;
_setCaretPos(element: HTMLElement, location: number): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overrides _HasDropDown.loadDropDown().
*/
loadDropDown(loadCallback: () => void): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* signal to _HasDropDown that it needs to call loadDropDown() to load the
* drop down asynchronously before displaying it
*/
isLoaded(): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overrides _HasDropDown.closeDropDown(). Closes the drop down (assuming that it's open).
* This method is the callback when the user types ESC or clicking
* the button icon while the drop down is open. It's also called by other code.
*/
closeDropDown(focus?: boolean): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postMixInProperties(): void;
postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Highlights the string entered by the user in the menu. By default this
* highlights the first occurrence found. Override this method
* to implement your custom highlighting.
*/
doHighlight(label: string, find: string): string;
reset(): void;
labelFunc(item: T, store: dojo.store.api.Store<T, Q, O>): string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'value', value: string): this;
// set(name: 'item', value: T): this;
// set(name: 'disabled', value: boolean): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_ButtonMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ButtonMixin {
/**
* A mixin to add a thin standard API wrapper to a normal HTML button
*/
label: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Type of button (submit, reset, button, checkbox, radio)
*/
type: string;
postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Callback for when button is clicked.
* If type="submit", return true to perform submit, or false to cancel it.
*/
onClick(e: MouseEvent): boolean | void;
onSetLabel(e: Event): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_CheckBoxMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _CheckBoxMixin {
/**
* type attribute on `<input>` node.
* Overrides `dijit/form/Button.type`. Users should not change this value.
*/
type: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* As an initialization parameter, equivalent to value field on normal checkbox
* (if checked, the value is passed as the value when form is submitted).
*/
value: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Should this widget respond to user input?
* In markup, this is specified as "readOnly".
* Similar to disabled except readOnly form values are submitted.
*/
readOnly: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 reset: () => void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_ComboBoxMenu */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ComboBoxMenu<T = any> extends _WidgetBase, _TemplatedMixin, _ListMouseMixin, _ComboBoxMenuMixin<T> {
templateString: string;
baseClass: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Add hover CSS
*/
onHover(node: HTMLElement): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Remove hover CSS
*/
onUnhover(node: HTMLElement): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Add selected CSS
*/
onSelect(node: HTMLElement): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Remove selected CSS
*/
onDeselect(node: HTMLElement): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Handles page-up and page-down keypresses
*/
_page(up?: boolean): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Handle keystroke event forwarded from ComboBox, returning false if it's
* a keystroke I recognize and process, true otherwise.
*/
handleKey(evt: KeyboardEvent): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ComboBoxMenuConstructor extends _WidgetBaseConstructor<_ComboBoxMenu<any>> {
new <T = any>(params: Object, srcNodeRef: dojo.NodeOrString): _ComboBoxMenu<T>;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_ComboBoxMenuMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ComboBoxMenuMixin<T = any> {
/**
* Holds "next" and "previous" text for paging buttons on drop down
*/
_messages: { next: string; previous: string; };
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 onClick(node: HTMLElement): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Notifies ComboBox/FilteringSelect that user selected an option.
*/
onChange(direction: number): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Notifies ComboBox/FilteringSelect that user clicked to advance to next/previous page.
*/
onPage(direction: number): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Callback from dijit.popup code to this widget, notifying it that it closed
*/
onClose(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Fills in the items in the drop down list
*/
createOptions(results: T[], options: dojo.store.api.QueryOptions, labelFunc: (item: T) => { html: boolean; label: string; }): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Clears the entries in the drop down list, but of course keeps the previous and next buttons.
*/
clearResultList(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Highlight the first real item in the list (not Previous Choices).
*/
highlightFirstOption(): void;
/**
* Highlight the last real item in the list (not More Choices).
*/
highlightLastOption(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 selectFirstNode(): void;
selectLastNode(): void;
getHighlightedOption(): HTMLElement;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'value', value: Object): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_DateTimeTextBox */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DateTimeConstraints extends Constraints, dojo.date.DateLocaleFormatOptions { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _DateTimeTextBox<T extends _WidgetBase> extends RangeBoundTextBox, _HasDropDown<T> {
templateString: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Set this textbox to display a down arrow button, to open the drop down list.
*/
hasDownArrow: boolean;
cssStateNodes: CSSStateNodes;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Despite the name, this parameter specifies both constraints on the input
* (including starting/ending dates/times allowed) as well as
* formatting options like whether the date is displayed in long (ex: December 25, 2005)
* or short (ex: 12/25/2005) format. See `dijit/form/_DateTimeTextBox.__Constraints` for details.
*/
constraints: DateTimeConstraints;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The constraints without the min/max properties. Used by the compare() method
*/
_unboundedConstraints: DateTimeConstraints;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 pattern: (options?: dojo.date.DateLocaleFormatOptions | RangeBoundTextBoxConstraints) => string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* JavaScript namespace to find calendar routines. If unspecified, uses Gregorian calendar routines
* at dojo/date and dojo/date/locale.
*/
datePackage: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postMixInProperties(): void;
compare(val1: Date, val2: Date): number;
autoWidth: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Formats the value as a Date, according to specified locale (second argument)
*/
format: ConstrainedValueFunction<Date, DateTimeConstraints, string>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Parses as string as a Date, according to constraints
*/
parse: ConstrainedValueFunction<string, DateTimeConstraints, Date>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 serialize(val: any, options?: dojo.date.StampFormatOptions): string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The default value to focus in the popupClass widget when the textbox value is empty.
*/
dropDownDefaultValue: Date;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The value of this widget as a JavaScript Date object. Use get("value") / set("value", val) to manipulate.
* When passed to the parser in markup, must be specified according to `dojo/date/stamp.fromISOString()`
*/
value: Date;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _blankValue: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Name of the popup widget class used to select a date/time.
* Subclasses should specify this.
*/
popupClass: string | _WidgetBaseConstructor<T>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Specifies constraints.selector passed to dojo.date functions, should be either
* "date" or "time".
* Subclass must specify this.
*/
_selector: string;
/* TODO: uncomment for TS 1.8 */
/* _selector: 'data' | 'time'; */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 buildRendering(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Runs various tests on the value, checking for invalid conditions
*/
_isInvalidDate(value: Date): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // get(name: 'displayedValue'): string;
// get(name: string): any;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'displayedValue', value: string): this;
// set(name: 'dropDownDefaultValue', value: Date): this;
// set(name: 'value', value: Date | string): this;
// set(name: 'constraints', value: DateTimeConstraints): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _DateTimeTextBoxConstructor<T extends _WidgetBase> extends _WidgetBaseConstructor<_DateTimeTextBox<T>> { }
/* dijit/form/_ExpandingTextAreaMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ExpandingTextAreaMixin {
postCreate(): void;
startup(): void;
resize(): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_FormMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface OnValidStateChange {
(isValid?: boolean): void;
}
interface _FormMixin {
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* 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: '' | 'Error' | 'Incomplete';
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns all form widget descendants, searching through non-form child widgets like BorderContainer
*/
_getDescendantFormWidgets(children?: _WidgetBase[]): _FormWidget[];
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 reset(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* returns if the form is valid - same as isValid - but
* provides a few additional (ui-specific) features:
*
* 1. it will highlight any sub-widgets that are not valid
* 2. it will call focus() on the first invalid sub-widget
*/
validate(): boolean;
setValues(val: any): _FormMixin;
getValues(): any;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns true if all of the widgets are valid.
* Deprecated, will be removed in 2.0. Use get("state") instead.
*/
isValid(): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* 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.
*/
onValidStateChange: OnValidStateChange;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Compute what this.state should be based on state of children
*/
_getState(): '' | 'Error' | 'Incomplete';
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Deprecated method. Applications no longer need to call this. Remove for 2.0.
*/
disconnectChildren(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* 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.
*/
connectChildren(inStartup?: boolean): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Called when child's value or disabled state changes
*/
_onChildChange(attr?: string): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 startup(): void;
destroy(preserveDom?: boolean): void;
cin
added type parameter to Evented<T>, T is the event map...
r10
_setValueAttr(value: any): void;
cin
Maintenance release...
r8 }
interface _FormMixinConstructor extends dojo._base.DeclareConstructor<_FormMixin> { }
/* dijit/form/_FormSelectWidget */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface SelectOption {
value?: string;
label: string;
selected?: boolean;
disabled?: boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _FormSelectWidget<T extends Object, Q extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions = dojo.store.api.QueryOptions> extends _FormValueWidget {
/**
* Whether or not we are multi-valued
*/
multiple: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The set of options for our select item. Roughly corresponds to
* the html `<option>` tag.
*/
options: SelectOption[];
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* A store to use for getting our list of options - rather than reading them
* from the `<option>` html tags. Should support getIdentity().
* For back-compat store can also be a dojo/data/api/Identity.
*/
store: dojo.store.api.Store<T, Q, O>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* A query to use when fetching items from our store
*/
query: Q;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Query options to use when fetching from the store
*/
queryOptions: O;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The entries in the drop down list come from this attribute in the dojo.store items.
* If ``store`` is set, labelAttr must be set too, unless store is an old-style
* dojo.data store rather than a new dojo/store.
*/
labelAttr: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* A callback to do with an onFetch - but before any items are actually
* iterated over (i.e. to filter even further what you want to add)
*/
onFetch: (items: T[]) => void;
/**
* Flag to sort the options returned from a store by the label of
* the store.
*/
sortByLabel: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* By default loadChildren is called when the items are fetched from the
* store. This property allows delaying loadChildren (and the creation
* of the options/menuitems) until the user clicks the button to open the
* dropdown.
*/
loadChildrenOnOpen: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* This is the `dojo.Deferred` returned by setStore().
* Calling onLoadDeferred.then() registers your
* callback to be called only once, when the prior setStore completes.
*/
onLoadDeferred: dojo.Deferred<void>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns a given option (or options).
*/
getOptions(valueOrIdx: string): SelectOption;
getOptions(valueOrIdx: number): SelectOption;
getOptions(valueOrIdx: SelectOption): SelectOption;
getOptions(valueOrIdx: (string | number | SelectOption)[]): SelectOption[];
getOptions(): SelectOption[];
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Adds an option or options to the end of the select. If value
* of the option is empty or missing, a separator is created instead.
* Passing in an array of options will yield slightly better performance
* since the children are only loaded once.
*/
addOption(option: SelectOption | SelectOption[]): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Removes the given option or options. You can remove by string
* (in which case the value is removed), number (in which case the
* index in the options array is removed), or select option (in
* which case, the select option with a matching value is removed).
* You can also pass in an array of those values for a slightly
* better performance since the children are only loaded once.
* For numeric option values, specify {value: number} as the argument.
*/
removeOption(option: string | number | SelectOption | (string | number | SelectOption)[]): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Updates the values of the given option. The option to update
* is matched based on the value of the entered option. Passing
* in an array of new options will yield better performance since
* the children will only be loaded once.
*/
updateOption(newOption: SelectOption | SelectOption[]): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Deprecated!
*/
setStore(store: dojo.store.api.Store<T, Q, O>, selectedValue?: T, fetchArgs?: {
query: Q;
queryOptions: O;
onFetch: (items: T[], fetchArgs?: any) => void;
}): dojo.store.api.Store<T, Q, O>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Sets the store you would like to use with this select widget.
* The selected value is the value of the new store to set. This
* function returns the original store, in case you want to reuse
* it or something.
*/
_deprecatedSetStore(store: dojo.store.api.Store<T, Q, O>, selectedValue?: T, fetchArgs?: {
query: Q;
queryOptions: O;
onFetch: (items: T[], fetchArgs?: any) => void;
}): dojo.store.api.Store<T, Q, O>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Loads the children represented by this widget's options.
* reset the menu to make it populatable on the next click
*/
_loadChildren(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Sets the "selected" class on the item for styling purposes
*/
_updateSelection(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns the value of the widget by reading the options for
* the selected flag
*/
_getValueFromOpts(): string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 buildRendering(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Loads our options and sets up our dropdown correctly. We
* don't want any content, so we don't call any inherit chain
* function.
*/
_fillContent(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* sets up our event handling that we need for functioning
* as a select
*/
postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 startup(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Clean up our connections
*/
destroy(preserveDom?: boolean): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* User-overridable function which, for the given option, adds an
* item to the select. If the option doesn't have a value, then a
* separator is added in that place. Make sure to store the option
* in the created option widget.
*/
_addOptionItem(option: SelectOption): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* User-overridable function which, for the given option, removes
* its item from the select.
*/
_removeOptionItem(option: SelectOption): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridable function which will set the display for the
* widget. newDisplay is either a string (in the case of
* single selects) or array of strings (in the case of multi-selects)
*/
_setDisplay(newDisplay: string | string[]): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridable function to return the children that this widget contains.
*/
_getChildren(): any[];
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* hooks into this.attr to provide a mechanism for getting the
* option items for the current value of the widget.
*/
_getSelectedOptionsAttr(): SelectOption[];
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* a function that will "fake" loading children, if needed, and
* if we have set to not load children until the widget opens.
*/
_pseudoLoadChildren(items: T[]): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* a function that can be connected to in order to receive a
* notification that the store has finished loading and all options
* from that store are available
*/
onSetStore(): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_FormValueMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _FormValueMixin extends _FormWidgetMixin {
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Should this widget respond to user input?
* In markup, this is specified as "readOnly".
* Similar to disabled except readOnly form values are submitted.
*/
readOnly: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Restore the value to the last value passed to onChange
*/
undo(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Reset the widget's value to what it was at initialization time
*/
reset(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _hasBeenBlurred?: boolean;
}
/* dijit/form/_FormValueWidget */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _FormValueWidget extends _FormWidget, _FormValueMixin {
/**
* Work around table sizing bugs on IE7 by forcing redraw
*/
_layoutHackIE7(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: string, value: any): this;
// set(values: Object): this;
}
interface _FormValueWidgetConstructor extends _WidgetBaseConstructor<_FormValueWidget> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_FormWidget */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _FormWidget extends _Widget, _TemplatedMixin, _CssStateMixin, _FormWidgetMixin {
setDisabled(disabled: boolean): void;
setValue(value: string): void;
postMixInProperties(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'value', value: string): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _FormWidgetConstructor extends _WidgetBaseConstructor<_FormWidget> { }
/* dijit/form/_FormWidgetMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Mixin for widgets corresponding to native HTML elements such as `<checkbox>` or `<button>`,
* which can be children of a `<form>` node or a `dijit/form/Form` widget.
*
* Represents a single HTML element.
* All these widgets should have these attributes just like native HTML input elements.
* You can set them during widget construction or afterwards, via `dijit/_WidgetBase.set()`.
*
* They also share some common methods.
*/
interface _FormWidgetMixin {
/**
* Name used when submitting form; same as "name" attribute or plain HTML elements
*/
name: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Corresponds to the native HTML `<input>` element's attribute. */
alt: string;
/** Corresponds to the native HTML `<input>` element's attribute. */
value: any;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Corresponds to the native HTML `<input>` element's attribute. */
type: string;
/** Apply aria-label in markup to the widget's focusNode */
"aria-label": "focusNode";
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Order fields are traversed when user hits the tab key */
tabIndex: number;
/** Should this widget respond to user input?
* In markup, this is specified as "disabled='disabled'", or just "disabled".
*/
disabled: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Fires onChange for each value change or only on demand */
intermediateChanges: boolean;
/** On focus, should this widget scroll into view? */
scrollOnFocus: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _setDisabledAttr(value: boolean): void;
_onFocus(by: string): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Tells if this widget is focusable or not. Used internally by dijit.
* @protected
*/
isFocusable(): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Put focus on this widget */
focus(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /** Compare 2 values (as returned by get('value') for this widget).
* @protected
*/
compare(val1: any, val2: any): number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 onChange(newValue: any): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Hook so set('value', value) works.
*
* Sets the value of the widget.
* If the value has changed, then fire onChange event, unless priorityChange
* is specified as null (or false?)
*
* @param value
* @param priorityChange
*/
_setValueAttr(value: any, priorityChange?: boolean);
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Called when the value of the widget has changed. Saves the new value in this.value,
* and calls onChange() if appropriate. See _FormWidget._handleOnChange() for details.
*
* @param newValue
* @param priorityChange
*/
_handleOnChange(newValue: any, priorityChange?: boolean);
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_ListBase */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ListBase {
/**
* currently selected node
*/
selected: HTMLElement;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Select the first displayed item in the list.
*/
selectFirstNode(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Select the last displayed item in the list
*/
selectLastNode(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Select the item just below the current selection.
* If nothing selected, select first node.
*/
selectNextNode(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* 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;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'selected', value: HTMLElement): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
/* dijit/form/_ListMouseMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ListMouseMixin extends _ListBase {
postCreate(): void;
}
/* dijit/form/_RadioButtonMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _RadioButtonMixin {
/**
* type attribute on `<input>` node.
* Users should not change this value.
*/
type: string;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_SearchMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _SearchMixin<T extends Object, Q extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions = dojo.store.api.QueryOptions> {
/**
* Argument to data provider.
* Specifies maximum number of search results to return per query
*/
pageSize: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Reference to data provider object used by this ComboBox.
* The store must accept an object hash of properties for its query. See `query` and `queryExpr` for details.
*/
store: dojo.store.api.Store<T, Q, O>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Mixin to the store's fetch.
* For example, to set the sort order of the ComboBox menu, pass:
* { sort: [{attribute:"name",descending: true}] }
* To override the default queryOptions so that deep=false, do:
* { queryOptions: {ignoreCase: true, deep: false} }
*/
fetchProperties: { [property: string]: any };
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* A query that can be passed to `store` to initially filter the items.
* ComboBox overwrites any reference to the `searchAttr` and sets it to the `queryExpr` with the user's input substituted.
*/
query: Q;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Alternate to specifying a store. Id of a dijit/form/DataList widget.
*/
list: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Delay in milliseconds between when user types something and we start
* searching based on that value
*/
searchDelay: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Search for items in the data store where this attribute (in the item)
* matches what the user typed
*/
searchAttr: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* This specifies what query is sent to the data store,
* based on what the user has typed. Changing this expression will modify
* whether the results are only exact matches, a "starting with" match,
* etc.
* `${0}` will be substituted for the user text.
* `*` is used for wildcards.
* `${0}*` means "starts with", `*${0}*` means "contains", `${0}` means "is"
*/
queryExpr: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Set true if the query should ignore case when matching possible items
*/
ignoreCase: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Helper function to convert a simple pattern to a regular expression for matching.
*/
_patternToRegExp(pattern: string): RegExp;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _abortQuery(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Handles input (keyboard/paste) events
*/
_processInput(e: KeyboardEvent): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Callback when a search completes.
*/
onSearch(results: T[], query: Q, options: O): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _startSearchFromInput(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Starts a search for elements matching text (text=="" means to return all items
* and calls onSearch(...) when the search completes, to display the results.
*/
_startSearch(text: string): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postMixInProperties(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'list', value: string): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_Spinner */
interface AdjustFunction {
(val: any, delta: number): any;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _Spinner extends RangeBoundTextBox {
/**
* Number of milliseconds before a held arrow key or up/down button becomes typematic
*/
defaultTimeout: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* minimum number of milliseconds that typematic event fires when held key or button is held
*/
minimumTimeout: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* 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;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Adjust the value by this much when spinning using the arrow keys/buttons
*/
smallDelta: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Adjust the value by this much when spinning using the PgUp/Dn keys
*/
largeDelta: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 templateString: string;
baseClass: string;
cssStateNodes: CSSStateNodes;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridable function used to adjust a primitive value(Number/Date/...) by the delta amount specified.
* The val is adjusted in a way that makes sense to the object type.
*/
adjust: AdjustFunction;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postCreate(): void;
}
interface _SpinnerConstrctor extends _WidgetBaseConstructor<_Spinner> { }
/* dijit/form/_TextBoxMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _TextBoxMixin<C extends Constraints = Constraints> {
/**
* Removes leading and trailing whitespace if true. Default is false.
*/
trim: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Converts all characters to uppercase if true. Default is false.
*/
uppercase: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Converts all characters to lowercase if true. Default is false.
*/
lowercase: boolean;
/**
* Converts the first character of each word to uppercase if true.
*/
propercase: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* HTML INPUT tag maxLength declaration.
*/
maxLength: string;
/**
* If true, all text will be selected when focused with mouse
*/
selectOnClick: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Defines a hint to help users fill out the input field (as defined in HTML 5).
* This should only contain plain text (no html markup).
*/
placeHolder: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* For subclasses like ComboBox where the displayed value
* (ex: Kentucky) and the serialized value (ex: KY) are different,
* this represents the displayed value.
*
* Setting 'displayedValue' through set('displayedValue', ...)
* updates 'value', and vice-versa. Otherwise 'value' is updated
* from 'displayedValue' periodically, like onBlur etc.
*/
displayedValue: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Replaceable function to convert a value to a properly formatted string.
*/
format: ConstrainedValueFunction<any, C, any>;
/**
* Replaceable function to convert a formatted string to a value
*/
parse: ConstrainedValueFunction<any, C, any>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Connect to this function to receive notifications of various user data-input events.
* Return false to cancel the event and prevent it from being processed.
* Note that although for historical reasons this method is called `onInput()`, it doesn't
* correspond to the standard DOM "input" event, because it occurs before the input has been processed.
*/
onInput(e: InputEvent): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* if the textbox is blank, what value should be reported
*/
_blankValue: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Auto-corrections (such as trimming) that are applied to textbox
* value on blur or form submit.
*/
filter<T>(val: T): T;
filter<T extends number>(value: T): T;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _setBlurValue(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 reset(): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/_ToggleButtonMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface _ToggleButtonMixin {
/**
* Corresponds to the native HTML `<input>` element's attribute.
* In markup, specified as "checked='checked'" or just "checked".
* True if the button is depressed, or the checkbox is checked,
* or the radio button is selected, etc.
*/
checked: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Reset the widget's value to what it was at initialization time
*/
reset(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _hasBeenBlurred?: boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/Button */
interface Button extends _FormWidget, _ButtonMixin {
/**
* 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)
*/
showLabel: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Class to apply to DOMNode in button to make it display an icon
*/
iconClass: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 baseClass: string;
templateString: string;
postCreate(): void;
setLabel(content: string): void;
onLabelSet(e: Event): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 onClick(e: MouseEvent): boolean | void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'showLabel', value: boolean): this;
// set(name: 'value', value: string): this;
// set(name: 'name', value: string): this;
// set(name: 'label', value: string): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ButtonConstructor extends _WidgetBaseConstructor<Button> { }
/* dijit/form/CheckBox */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface CheckBox extends ToggleButton, _CheckBoxMixin {
templateString: string;
baseClass: string;
postMixInProperties(): void;
value: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'value', value: string | boolean): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
interface CheckBoxConstructor extends _WidgetBaseConstructor<CheckBox> { }
/* dijit/form/ComboBox */
interface ComboBox<T extends Object = any, Q extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions = dojo.store.api.QueryOptions, C extends Constraints = Constraints> extends ValidationTextBox<C>, ComboBoxMixin<T, Q, O> {
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ComboBoxConstructor extends _WidgetBaseConstructor<ComboBox<any>> {
new <T extends Object = any, Q extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions = dojo.store.api.QueryOptions, C extends Constraints = Constraints>(params: Object, srcNodeRef: dojo.NodeOrString): ComboBox<T, Q, O, C>;
}
/* dijit/form/ComboBoxMixin */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ComboBoxMixin<T extends Object = any, Q extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions = dojo.store.api.QueryOptions> extends _HasDropDown<_ComboBoxMenu<T>>, _AutoCompleterMixin<T, Q, O> {
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Dropdown widget class used to select a date/time.
* Subclasses should specify this.
*/
dropDownClass: _ComboBoxMenu<T>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Set this textbox to have a down arrow button, to display the drop down list.
* Defaults to true.
*/
hasDownArrow: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 templateString: string;
baseClass: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Reference to data provider object used by this ComboBox.
*
* Should be dojo/store/api/Store, but dojo/data/api/Read supported
* for backwards compatibility.
*/
store: dojo.store.api.Store<T, Q, O>;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 cssStateNodes: CSSStateNodes;
postMixInProperties(): void;
buildRendering(): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ComboBoxMixinConstructor<T = any, U extends dojo.store.api.BaseQueryType = dojo.store.api.BaseQueryType, V = any> extends _WidgetBaseConstructor<ComboBoxMixin<T, U, V>> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/CurrencyTextBox */
interface CurrencyTextBoxConstraints extends NumberTextBoxConstraints, dojo.CurrencyFormatOptions, dojo.CurrencyParseOptions {
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface CurrencyTextBox extends NumberTextBox {
/**
* the [ISO4217](http://en.wikipedia.org/wiki/ISO_4217) currency code, a three letter sequence like "USD"
*/
currency: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Despite the name, this parameter specifies both constraints on the input
* (including minimum/maximum allowed values) as well as
* formatting options. See `dijit/form/CurrencyTextBox.__Constraints` for details.
*/
constraints: CurrencyTextBoxConstraints;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 baseClass: string;
_formatter: (value: number, options?: dojo.CurrencyFormatOptions) => string;
_parser: (expression: string, options?: dojo.CurrencyParseOptions) => number;
_regExpGenerator: (options?: dojo.NumberRegexpOptions) => string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Parses string value as a Currency, according to the constraints object
*/
parse(value: string, constraints: CurrencyTextBoxConstraints): string;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface CurrencyTextBoxConstructor extends _WidgetBaseConstructor<CurrencyTextBox> { }
/* dijit/form/DataList */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DataList<T extends Object> extends dojo.store.Memory<T> {
/**
* Get the option marked as selected, like `<option selected>`.
* Not part of dojo.data API.
*/
fetchSelectedItem(): T;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DataListConstructor {
new <T extends Object>(params: Object, srcNodeRef: dojo.NodeOrString): DataList<T>;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/DateTextBox */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DateTextBox extends _DateTimeTextBox<Calendar> {
baseClass: string;
popupClass: CalendarConstructor;
_selector: string;
maxHeight: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The value of this widget as a JavaScript Date object, with only year/month/day specified.`
*/
value: Date;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DateTextBoxConstructor extends _WidgetBaseConstructor<DateTextBox> { }
/* dijit/form/DropDownButton */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DropDownButton<T extends _WidgetBase> extends Button, _Container, _HasDropDown<T> {
baseClass: string;
templateString: string;
/**
* Overrides _TemplatedMixin#_fillContent().
* My inner HTML possibly contains both the button label and/or a drop down widget, like
* <DropDownButton> <span>push me</span> <Menu> ... </Menu> </DropDownButton>
*/
_fillContent(): void;
startup(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns whether or not we are loaded - if our dropdown has an href,
* then we want to check that.
*/
isLoaded(): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Default implementation assumes that drop down already exists,
* but hasn't loaded it's data (ex: ContentPane w/href).
* App must override if the drop down is lazy-created.
*/
loadDropDown(callback: () => void): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridden so that focus is handled by the _HasDropDown mixin, not by
* the _FormWidget mixin.
*/
isFocusable(): boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface DropDownButtonConstructor extends _WidgetBaseConstructor<DropDownButton<any>> {
new <T extends _WidgetBase>(params: Object, srcNodeRef: dojo.NodeOrString): DropDownButton<T>;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/FilteringSelect */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface FilteringSelect<C extends Constraints, T extends Object, Q extends string | Object | Function, O extends dojo.store.api.QueryOptions> extends MappedTextBox<C>, ComboBoxMixin<T, Q, O> {
/**
* True (default) if user is required to enter a value into this field.
*/
required: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _lastDisplayedValue: string;
_isValidSubset(): boolean;
isValid(): boolean;
_refreshState(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Callback from dojo.store after lookup of user entered value finishes
*/
_callbackSetLabel(result: T[], query: Q, options: O, priorityChange?: boolean): void;
_openResultList(results: T[], query: Q, options: O): void;
undo(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 // set(name: 'displayedValue', value: string): this;
// set(name: 'item', value: T): this;
// set(name: string, value: any): this;
// set(values: Object): this;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface FilteringSelectConstructor extends _WidgetBaseConstructor<FilteringSelect<any, any, any, any>> {
new <C extends Constraints, T extends Object, Q extends string | Object | Function, O extends dojo.store.api.QueryOptions>(params: Object, srcNodeRef: dojo.NodeOrString): FilteringSelect<C, T, Q, O>;
}
/* dijit/form/Form */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface Form extends _Widget, _TemplatedMixin, _FormMixin, layout._ContentPaneResizeMixin {
name?: string;
action?: string;
method?: string;
encType?: string;
'accept-charset'?: string;
accept?: string;
target?: string;
templateString: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Deprecated: use submit()
*/
execute(formContents: Object): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Deprecated: use onSubmit()
*/
onExecute(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* restores all widget values back to their init values,
* calls onReset() which can cancel the reset by returning false
*/
reset(e?: Event): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Callback when user resets the form. This method is intended
* to be over-ridden. When the `reset` method is called
* programmatically, the return value from `onReset` is used
* to compute whether or not resetting should proceed
*/
onReset(e?: Event): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Callback when user submits the form.
*/
onSubmit(e?: Event): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* programmatically submit form if and only if the `onSubmit` returns true
*/
submit(): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface FormConstructor extends _WidgetBaseConstructor<Form> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/HorizontalRule */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Hash marks for `dijit/form/HorizontalSlider`
*/
interface HorizontalRule extends _Widget, _TemplatedMixin {
/**
* Number of hash marks to generate
*/
count: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* For HorizontalSlider, this is either "topDecoration" or "bottomDecoration", and indicates whether this rule goes above or below the slider.
*/
container: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* CSS style to apply to individual hash marks
*/
ruleStyle: string;
_positionPrefix: string;
_positionSuffix: string;
_suffix: string;
_genHTML(pos: number): string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* VerticalRule will override this...
*/
_isHorizontal: boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface HorizontalRuleConstructor extends _WidgetBaseConstructor<HorizontalRule> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/HorizontalRuleLabels */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Labels for `dijit/form/HorizontalSlider`
*/
interface HorizontalRuleLabels extends HorizontalRule {
/**
* CSS style to apply to individual text labels
*/
labelStyle: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Array of text labels to render - evenly spaced from left-to-right or bottom-to-top.
* Alternately, minimum and maximum can be specified, to get numeric labels.
*/
labels: string[];
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Number of generated numeric labels that should be rendered as '' on the ends when labels[] are not specified
*/
numericMargin: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Leftmost label value for generated numeric labels when labels[] are not specified
*/
minimum: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Rightmost label value for generated numeric labels when labels[] are not specified
*/
maximum: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* pattern, places, lang, et al (see dojo.number) for generated numeric labels when labels[] are not specified
*/
constraints: { pattern: string };
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns the value to be used in HTML for the label as part of the left: attribute
*/
_calcPosition(pos: number): number;
_genHTML(pos: number, ndx?: number): string;
/**
* extension point for bidi code
*/
_genDirectionHTML(label: string): string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridable function to return array of labels to use for this slider.
* Can specify a getLabels() method instead of a labels[] array, or min/max attributes.
*/
getLabels(): string[];
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface HorizontalRuleLabelsConstructor extends _WidgetBaseConstructor<HorizontalRuleLabels> { }
/* dijit/form/HorizontalSlider */
interface _SliderMover extends dojo.dnd.Mover { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* A form widget that allows one to select a value with a horizontally draggable handle
*/
interface HorizontalSlider extends _FormValueWidget, _Container {
/**
* Show increment/decrement buttons at the ends of the slider?
*/
showButtons: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The minimum value the slider can be set to.
*/
minimum: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The maximum value the slider can be set to.
*/
maximum: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* If specified, indicates that the slider handle has only 'discreteValues' possible positions, and that after dragging the handle, it will snap to the nearest possible position.
* Thus, the slider has only 'discreteValues' possible values.
*
* For example, if minimum=10, maxiumum=30, and discreteValues=3, then the slider handle has three possible positions, representing values 10, 20, or 30.
*
* If discreteValues is not specified or if it's value is higher than the number of pixels in the slider bar, then the slider handle can be moved freely, and the slider's value will be computed/reported based on pixel position (in this case it will likely be fractional, such as 123.456789).
*/
discreteValues: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* If discreteValues is also specified, this indicates the amount of clicks (ie, snap positions) that the slider handle is moved via pageup/pagedown keys.
* If discreteValues is not specified, it indicates the number of pixels.
*/
pageIncrement: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* If clicking the slider bar changes the value or not
*/
clickSelect: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* The time in ms to take to animate the slider handle from 0% to 100%, when clicking the slider bar to make the handle move.
*/
slideDuration: number;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _mousePixelCoord: string;
_pixelCount: string;
_startingPixelCoord: string;
_handleOffsetCoord: string;
_progressPixelSize: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _onKeyUp(e: Event): void;
_onKeyDown(e: Event): void;
_onHandleClick(e: Event): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns true if direction is from right to left
*/
_isReversed(): boolean;
_onBarClick(e: Event): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _setPixelValue(pixelValue: number, maxPixels: number, priorityChange?: boolean): void;
_setValueAttr(value: number, priorityChange?: boolean): void;
_bumpValue(signedChange: number, priorityChange: boolean): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _onClkBumper(val: any): void;
_onClkIncBumper(): void;
_onClkDecBumper(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 decrement(e: Event): void;
increment(e: Event): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 _mouseWheeled(evt: Event): void;
_typematicCallback(count: number, button: Element, e: Event): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface HorizontalSliderConstructor extends _WidgetBaseConstructor<HorizontalSlider> {
/**
* for monkey patching
*/
_Mover: _SliderMover;
}
/* dijit/form/MappedTextBox */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface MappedTextBox<C extends Constraints> extends ValidationTextBox<C> {
postMixInProperties(): void;
serialize: SerializationFunction;
toString(): string;
validate(isFocused?: boolean): boolean;
buildRendering(): void;
reset(): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface MappedTextBoxConstructor extends _WidgetBaseConstructor<MappedTextBox<Constraints>> {
new <C extends Constraints>(params: Object, srcNodeRef: dojo.NodeOrString): MappedTextBox<C>;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/NumberSpinner */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface NumberSpinner extends _Spinner, NumberTextBoxMixin {
constraints: NumberTextBoxConstraints;
baseClass: string;
adjust(val: any, delta: number): any;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* overrides */
pattern: ConstraintsToRegExpString<NumberTextBoxConstraints>;
parse(value: string, constraints: NumberTextBoxConstraints): string;
format(value: number, constraints: NumberTextBoxConstraints): string;
filter(value: number): number;
value: number;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface NumberSpinnerConstructor extends _WidgetBaseConstructor<NumberSpinner> { }
/* dijit/form/NumberTextBox */
interface NumberTextBoxConstraints extends RangeBoundTextBoxConstraints, dojo.NumberFormatOptions, dojo.NumberParseOptions { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface NumberTextBoxMixin {
pattern: ConstraintsToRegExpString<NumberTextBoxConstraints>;
constraints: NumberTextBoxConstraints;
value: number;
editOptions: { pattern: string };
_formatter: (value: number, options?: dojo.NumberFormatOptions) => string;
_regExpGenerator: (options?: dojo.NumberRegexpOptions) => string;
_decimalInfo: (constraints: Constraints) => { sep: string; places: number; };
postMixInProperties(): void;
format(value: number, constraints: NumberTextBoxConstraints): string;
_parser: (expression: string, options?: dojo.NumberParseOptions) => number;
parse(value: string, constraints: dojo.NumberParseOptions): string;
filter(value: number): number;
serialize: SerializationFunction;
isValid(isFocused: boolean): boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface NumberTextBoxMixinConstructor extends _WidgetBaseConstructor<NumberTextBoxMixin> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface NumberTextBox extends RangeBoundTextBox, NumberTextBoxMixin {
constraints: NumberTextBoxConstraints;
pattern: ConstraintsToRegExpString<NumberTextBoxConstraints>;
parse(value: string, constraints: dojo.NumberParseOptions): string;
format(value: number, constraints: dojo.NumberFormatOptions): string;
value: number;
filter(value: number): number;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface NumberTextBoxConstructor extends _WidgetBaseConstructor<NumberTextBox> {
Mixin: NumberTextBoxMixinConstructor;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/RadioButton */
interface RadioButton extends CheckBox, _RadioButtonMixin {
baseClass: string;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface RadioButtonConstructor extends _WidgetBaseConstructor<RadioButton> { }
/* dijit/form/RangeBoundTextBox */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface RangeBoundTextBoxConstraints extends Constraints {
min?: number;
max?: number;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface RangeBoundTextBox extends MappedTextBox<RangeBoundTextBoxConstraints> {
/**
* The message to display if value is out-of-range
*/
rangeMessage: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridable function used to validate the range of the numeric input value.
*/
rangeCheck(primative: number, constraints: RangeBoundTextBoxConstraints): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Tests if the value is in the min/max range specified in constraints
*/
isInRange(isFocused: boolean): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Returns true if the value is out of range and will remain
* out of range even if the user types more characters
*/
_isDefinitelyOutOfRange(): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 isValid(isFocused: boolean): boolean;
getErrorMessage(isFocused: boolean): string;
postMixInProperties(): void;
}
interface RangeBoundTextBoxConstructor extends _WidgetBaseConstructor<RangeBoundTextBox> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/Select */
interface Select<T extends Object, Q extends dojo.store.api.BaseQueryType, O extends dojo.store.api.QueryOptions, U extends dijit._WidgetBase> extends _FormSelectWidget<T, Q, O>, _HasDropDown<U>, _KeyNavMixin {
baseClass: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* What to display in an "empty" drop down.
*/
emptyLabel: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Specifies how to interpret the labelAttr in the data store items.
*/
labelType: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Currently displayed error/prompt message
*/
message: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Can be true or false, default is false.
*/
required: boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* "Incomplete" if this select is required but unset (i.e. blank value), "" otherwise
*/
state: string;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Order fields are traversed when user hits the tab key
*/
tabIndex: any;
templateString: any;
/**
* See the description of dijit/Tooltip.defaultPosition for details on this parameter.
*/
tooltipPosition: any;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 childSelector(node: Element | Node): boolean;
destroy(preserveDom: boolean): void;
focus(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Sets the value to the given option, used during search by letter.
* @param widget Reference to option's widget
*/
focusChild(widget: dijit._WidgetBase): void;
isLoaded(): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Whether or not this is a valid value.
* @param isFocused
*/
isValid(isFocused: boolean): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* populates the menu
* @param loadCallback
*/
loadDropDown(loadCallback: () => any): void;
postCreate(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* set the missing message
*/
postMixInProperties(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Overridden so that the state will be cleared.
*/
reset(): void;
startup(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* Called by oninit, onblur, and onkeypress, and whenever required/disabled state changes
* @param isFocused
*/
validate(isFocused: boolean): boolean;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /**
* 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;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface SelectConstructor extends _WidgetBaseConstructor<Select<any, any, any, any>> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/SimpleTextarea */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface SimpleTextarea extends TextBox {
baseClass: string;
rows: string;
cols: string;
templateString: string;
postMixInProperties(): void;
buildRendering(): void;
filter(value: string): string;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface SimpleTextareaConstructor extends _WidgetBaseConstructor<SimpleTextarea> {
new(params: Object, srcNodeRef: dojo.NodeOrString): SimpleTextarea;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/Textarea */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface Textarea extends SimpleTextarea, _ExpandingTextAreaMixin {
baseClass: string;
cols: string;
buildRendering(): void;
}
interface TextareaConstructor extends _WidgetBaseConstructor<Textarea> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/TextBox */
interface TextBox extends _FormValueWidget, _TextBoxMixin<Constraints> {
}
interface TextBoxConstructor extends _WidgetBaseConstructor<TextBox> { }
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 /* dijit/form/ToggleButton */
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ToggleButton extends Button, _ToggleButtonMixin {
baseClass: string;
setChecked(checked: boolean): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ToggleButtonConstructor extends _WidgetBaseConstructor<ToggleButton> { }
/* dijit/form/ValidationTextBox */
interface IsValidFunction {
(isFocused?: boolean): boolean;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ValidationTextBox<C extends Constraints = Constraints> extends TextBox {
templateString: string;
required: boolean;
promptMessage: string;
invalidMessage: string;
missingMessage: string;
message: string;
constraints: C;
pattern: string | ConstraintsToRegExpString<C>;
regExp: string;
regExpGen(constraints: C): void;
state: string;
tooltipPosition: string[];
validator: ConstrainedValidFunction<C>;
isValid: IsValidFunction;
getErrorMessage(isFocused: boolean): string;
getPromptMessage(isFocused: boolean): string;
validate(isFocused: boolean): boolean;
displayMessage(message: string): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 startup(): void;
postMixInProperties(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 reset(): void;
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 destroy(preserveDom?: boolean): void;
}
cin
Initial commit, project structure.
r0
cin
Maintenance release...
r8 interface ValidationTextBoxConstructor extends _WidgetBaseConstructor<ValidationTextBox<Constraints>> {
new <C extends Constraints>(params: Object, srcNodeRef: dojo.NodeOrString): ValidationTextBox<C>;
}
}
cin
Initial commit, project structure.
r0 }