/*! * * Wijmo Library 5.20252.44 * https://developer.mescius.com/wijmo * * Copyright(c) MESCIUS inc. All rights reserved. * * Licensed under the End-User License Agreement For MESCIUS Wijmo Software. * us.sales@mescius.com * https://developer.mescius.com/wijmo/licensing * */ /** * {@module wijmo.angular.input} * AngularJS directives for wijmo.input module */ /** * */ export declare var ___keepComment: any; import { Control } from 'wijmo/wijmo'; import { WjDirective, WjLink } from 'wijmo/wijmo.angular.base'; import * as wjcInput from 'wijmo/wijmo.input'; /** * Angular module name, which can be used in the angular.module(moduleName) * function to obtain a reference to the module . */ export declare const ngModuleName = "wj.input"; export declare class WjDropDown extends WjDirective { readonly _controlConstructor: typeof wjcInput.DropDown; } /** * AngularJS directive for the {@link ComboBox} control. * * Use the wj-combo-box directive to add ComboBox controls to your AngularJS applications. * Note that directive and parameter names must be formatted as lower-case with dashes * instead of camel-case. For example: * *
<p>Here is a ComboBox control:</p> * <wj-combo-box * text="theCountry" * items-source="countries" * is-editable="false" * placeholder="country"> * </wj-combo-box>* * The example below creates a ComboBox control and binds it to a 'countries' array * exposed by the controller. The ComboBox searches for the country as the user * types. The isEditable property is set to false, so the user is forced to * select one of the items in the list. * * Example * * The wj-combo-box directive supports the following attributes: * *
@ Binds the control's selectedValue property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the
* ng-model directive.= A reference to the {@link ComboBox} control created by this directive.@ The name of the property to use as the visual representation of the items.@ A value indicating whether the drop-down list displays the items as plain text or as HTML.@ A value indicating whether the drop down list is currently visible.@ A value indicating whether the user can enter values not present on the list.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values.= A function used to customize the values shown in the drop-down list.= An array or {@link ICollectionView} that contains items to show in the list.@ The maximum height of the drop-down list.@ The maximum width of the drop-down list.@ A string shown as a hint when the control is empty.@ A value indicating whether to prevent null values.@ A value indicating whether the control displays a drop-down button.= The index of the currently selected item in the drop-down list.= The currently selected item in the drop-down list.= The value of the selected item, obtained using the selected-value-path.@ The name of the property used to get the selected-value from the selected-item.= The text to show in the control.& The {@link ComboBox.isDroppedDownChanging} event handler.& The {@link ComboBox.isDroppedDownChanged} event handler.& The {@link ComboBox.selectedIndexChanged} event handler.& The {@link ComboBox.gotFocus} event handler.& The {@link ComboBox.lostFocus} event handler.& The {@link ComboBox.textChanged} event handler.<p>Here is an AutoComplete control:</p> * <wj-auto-complete * text="theCountry" * items-source="countries" * is-editable="false" * placeholder="country"> * </wj-auto-complete>* * The example below creates an AutoComplete control and binds it to a 'countries' array * exposed by the controller. The AutoComplete searches for the country as the user * types, and narrows down the list of countries that match the current input. * * Example * * The wj-auto-complete directive extends {@link wijmo.angular.input.WjComboBox} with the following attributes: * *
@ The name of the CSS class used to highlight
* parts of the content that match the search terms.@ The amount of delay in milliseconds between
* when a keystroke occurs and when the search is performed.= A function that provides the items
* dynamically as the user types.@ The maximum number of items to display
* in the dropdown.@ The minimum input length to require before
* triggering autocomplete suggestions.<p>Here is a Calendar control:</p> * <wj-calendar * value="theDate"> * </wj-calendar>* * Example * * This example creates a Calendar control and binds it to a 'date' variable * exposed by the controller. The range of dates that may be selected is limited * by the min and max properties. * * The wj-calendar directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the
* ng-model directive.= A reference to the {@link Calendar} control
* created by this directive.= The month being displayed in the calendar.@ The first day of the week.& This event occurs after the binding has finished
* initializing the control with attribute values.= A value indicating whether the binding has finished
* initializing the control with attribute values. = The function used to customize the dates
* shown in the calendar.@ The latest valid date (string in the
* format "yyyy-MM-dd").@ The earliest valid date (string in the
* format "yyyy-MM-dd").@ A value indicating whether the control displays
* a month or the entire year.@ A value indicating whether the control displays
* the header area.= The date being edited.& The {@link Calendar.gotFocus} event handler.& The {@link Calendar.lostFocus} event handler.& The {@link Calendar.valueChanged} event handler.<p>Here is a ColorPicker control:</p> * <wj-color-picker * value="theColor" * show-alpha-channel="false"> * </wj-color-picker>* * The wj-color-picker directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the
* ng-model directive.= A reference to the {@link ColorPicker}
* control created by this directive.& This event occurs after the binding has finished
* initializing the control with attribute values.= A value indicating whether the binding has finished
* initializing the control with attribute values. @ A value indicating whether the control
* displays the alpha channel (transparency) editor.@ A value indicating whether the control
* displays a string representation of the color being edited.= An array with ten color values to use
* as the palette.= The color being edited.& The {@link ColorPicker.gotFocus} event handler.& The {@link ColorPicker.lostFocus} event handler.& The {@link ColorPicker.valueChanged} event handler.b>Here is a ListBox control:</p> * <wj-list-box * selected-item="theCountry" * items-source="countries" * placeholder="country"> * </wj-list-box>* * The example below creates a ListBox control and binds it to a 'countries' array * exposed by the controller. The value selected is bound to the 'theCountry' * controller property using the selected-item attribute. * * Example * * The wj-list-box directive supports the following attributes: * *
@ Binds the control's selectedValue property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the
* ng-model directive.= A reference to the {@link ListBox}
* control created by this directive.@ The property to use as the visual
* representation of the items.@ A value indicating whether items
* contain plain text or HTML.& This event occurs after the binding has finished
* initializing the control with attribute values.= A value indicating whether the binding has finished
* initializing the control with attribute values. = A function used to customize the
* values to show in the list.= An array or {@link ICollectionView}
* that contains the list items.@ The maximum height of the list.= The index of the currently selected
* item.= The item that is currently selected.= The value of the selected-item
* obtained using the selected-value-path.@ The property used to get the
* selected-value from the selected-item.& The {@link ListBox.gotFocus} event handler.& The {@link ListBox.lostFocus} event handler.& The {@link ListBox.itemsChanged} event handler.& The {@link ListBox.selectedIndexChanged} event handler.<p>Here is a ListBox control with an item template:</p>
* <wj-list-box items-source="musicians">
* <wj-item-template>
* {{$itemIndex}}. <b>{{$item.name}}</b>
* <br />
* <img ng-src="{{$item.photo}}"/>
* </wj-item-template>
* </wj-list-box>
*/
export declare class WjItemTemplate extends WjDirective {
static _itemTemplateProp: string;
static _itemScopeProp: string;
_$compile: any;
constructor($compile: any);
_initControl(element: any): any;
_createLink(): WjLink;
_getMetaDataId(): any;
}
/**
* AngularJS directive for the {@link Menu} control.
*
* Use the wj-menu directive to add drop-down menus to your AngularJS applications.
* Note that directive and parameter names must be formatted as lower-case with dashes
* instead of camel-case. For example:
*
* <p>Here is a Menu control used as a value picker:</p> * <wj-menu header="Tax" value="tax"> * <wj-menu-item value="0">Exempt</wj-menu-item> * <wj-menu-item value=".05">5%</wj-menu-item> * <wj-menu-item value=".1">10%</wj-menu-item> * <wj-menu-item value=".15">15%</wj-menu-item> * </wj-menu>* * Example * * This example creates three Menu controls. The first is used as a value picker, * the second uses a list of commands with parameters, and the third is a group of * three menus handled by an itemClicked function in the controller. * * The wj-menu directive extends {@link wijmo.angular.input.WjComboBox} with the following attributes: * *
@ The command to be executed when the item is clicked.@ The name of the property that contains command parameters.@ The text shown on the control.@ Whether the menu should react to clicks on its header area.@ The value of the selected wj-menu-item value property. & The {@link Menu.itemClicked} event handler.& The {@link Menu.gotFocus} event handler.& The {@link Menu.lostFocus} event handler.= The function to execute in the controller
* when the item is clicked.= The parameter passed to the cmd function
* when the item is clicked.= The value to select when the item is clicked
* (use either this or cmd).<!-- paragraph with a context menu -->
*<p wj-context-menu="#idMenu" >
* This paragraph has a context menu.</p>
*
*<!-- define the context menu (hidden and with an id) -->
*<wj-menu id="idMenu" ng-show="false">
* <wj-menu-item cmd="cmdOpen" cmd-param ="1">Open...</wj-menu-item>
* <wj-menu-item cmd="cmdSave" cmd-param="2">Save </wj-menu-item>
* <wj-menu-item cmd="cmdSave" cmd-param="3">Save As...</wj-menu-item>
* <wj-menu-item cmd="cmdNew" cmd-param ="4">New...</wj-menu-item>
* <wj-menu-separator></wj-menu-separator>
* <wj-menu-item cmd="cmdExit" cmd-param="5">Exit</wj-menu-item>
*</wj-menu >
*/
export declare class WjContextMenu extends WjDirective {
constructor();
_getMetaDataId(): any;
_postLinkFn(): (scope: any, tElement: any, tAttrs: any) => void;
}
/**
* AngularJS directive for the {@link InputDate} control.
*
* Use the wj-input-date directive to add {@link InputDate} controls to your
* AngularJS applications.
* Note that directive and parameter names must be formatted as lower-case with dashes
* instead of camel-case. For example:
*
* <p>Here is an InputDate control:</p> * <wj-input-date * value="theDate" * format="M/d/yyyy"> * </wj-input-date>* * The example below shows a Date value (that includes date and time information) * using an {@link InputDate} and an {@link InputTime} control. Notice how both controls * are bound to the same controller variable, and each edits the appropriate information * (either date or time). The example also shows a {@link Calendar} control that can be * used to select the date with a single click. * * Example * * The wj-input-date directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the ng-model directive.= A reference to the {@link InputDate} control created by this directive.@ The format used to display the date being edited (see {@link Globalize}).@ The mask used to validate the input as the user types (see {@link wijmo.input.InputMask}).@ A value indicating whether the drop-down is currently visible.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values. @ The latest valid date (a string in the format "yyyy-MM-dd").@ The earliest valid date (a string in the format "yyyy-MM-dd").@ The string to show as a hint when the control is empty.@ A value indicating whether to prevent null values.@ A value indicating whether the control displays a drop-down button.= The text to show in the control.= The date being edited.& The {@link InputDate.gotFocus} event handler.& The {@link InputDate.lostFocus} event handler.& The {@link InputDate.isDroppedDownChanging} event handler.& The {@link InputDate.isDroppedDownChanged} event handler.& The {@link InputDate.textChanged} event handler.& The {@link InputDate.valueChanged} event handler.<p>Here is an InputDateTime control:</p> * <wj-input-date-time * value="theDate" * format="M/d/yyyy"> * </wj-input-date-time>* * The wj-input-date-time directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the ng-model directive.= A reference to the {@link InputDate} control created by this directive.@ The format used to display the date being edited (see {@link Globalize}).@ The mask used to validate the input as the user types (see {@link wijmo.input.InputMask}).@ A value indicating whether the drop-down is currently visible.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values. @ The latest valid date (a string in the format "yyyy-MM-dd").@ The earliest valid date (a string in the format "yyyy-MM-dd").@ The string to show as a hint when the control is empty.@ A value indicating whether to prevent null values.@ A value indicating whether the control displays a drop-down button.= The text to show in the control.@ The earliest valid time (a string in the format "hh:mm").@ The latest valid time (a string in the format "hh:mm").@ The number of minutes between entries in the drop-down list.@ The format sting used to show values in the time drop-down list.= The date being edited.& The {@link InputDateTime.gotFocus} event handler.& The {@link InputDateTime.lostFocus} event handler.& The {@link InputDateTime.isDroppedDownChanging} event handler.& The {@link InputDateTime.isDroppedDownChanged} event handler.& The {@link InputDateTime.textChanged} event handler.& The {@link InputDateTime.valueChanged} event handler.<p>Here is an InputNumber control:</p> * <wj-input-number * value="theNumber" * min="0" * max="10" * format="n0" * placeholder="number between zero and ten"> * </wj-input-number>* * The example below creates several InputNumber controls and shows the effect * of using different formats, ranges, and step values. * * Example * * The wj-input-number directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the ng-model directive.= A reference to the {@link InputNumber} control created by this directive.@ The format used to display the number (see {@link Globalize}).@ The "type" attribute of the HTML input element hosted by the control.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values. @ The largest valid number.@ The smallest valid number.@ The string to show as a hint when the control is empty.@ A value indicating whether to prevent null values.@ A value indicating whether to display spinner buttons to change the value by step units.@ The amount to add or subtract to the value when the user clicks the spinner buttons.= The text to show in the control.= The number being edited.& The {@link InputNumber.gotFocus} event handler.& The {@link InputNumber.lostFocus} event handler.& The {@link InputNumber.textChanged} event handler.& The {@link InputNumber.valueChanged} event handler.<p>Here is an InputMask control:</p> * <wj-input-mask * mask="99/99/99" * mask-placeholder="*"> * </wj-input-mask>* * The wj-input-mask directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the ng-model directive.= A reference to the {@link InputNumber} control created by this directive.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values. @ The string mask used to format the value as the user types.@ A character used to show input locations within the mask.@ The string to show as a hint when the control is empty.= The string being edited.= The string being edited, excluding literal and prompt characters.& The {@link InputMask.gotFocus} event handler.& The {@link InputMask.lostFocus} event handler.& The {@link InputMask.valueChanged} event handler.<p>Here is an InputTime control:</p> * <wj-input-time * value="theDate" * format="h:mm tt" * min="09:00" max="17:00" * step="15"> * </wj-input-time>* * Example * * This example edits a Date value (that includes date and time information) * using an {@link InputDate} and an InputTime control. Notice how both controls * are bound to the same controller variable, and each edits the appropriate information * (either date or time). The example also shows a {@link Calendar} control that can be * used to select the date with a single click. * * The wj-input-time directive extends {@link wijmo.angular.input.WjComboBox} with the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the ng-model directive.= A reference to the {@link InputDate} control created by this directive.@ The format used to display the selected time.@ A mask used to validate the input as the user types (see {@link InputMask}).@ The earliest valid time (a string in the format "hh:mm").@ The latest valid time (a string in the format "hh:mm").@ The number of minutes between entries in the drop-down list.= The time being edited (as a Date object).& The!@see: valueChanged event handler.<p>Here is an InputColor control:</p> * <wj-input-color * value="theColor" * show-alpha-channel="false"> * </wj-input-color>* * The wj-input-color directive supports the following attributes: * *
@ Binds the control's value property using the ng-model Angular
* directive. Binding the property using the ng-model directive provides standard benefits
* like validation, adding the control's state to the form instance, and so on. To redefine
* properties on a control that is bound by the ng-model directive, use the wj-model-property
* attribute.@ Specifies a control property that is bound to a scope using the ng-model directive.= A reference to the InputColor control created by this directive.@ A value indicating whether the drop-down is currently visible.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values. @ A value indicating whether the drop-down displays the alpha channel (transparency) editor.@ The string to show as a hint when the control is empty.@ A value indicating whether to prevent null values.@ A value indicating whether the control displays a drop-down button.= The text to show in the control.= The color being edited.& The {@link InputColor.gotFocus} event handler.& The {@link InputColor.lostFocus} event handler.& The {@link InputColor.isDroppedDownChanging} event handler.& The {@link InputColor.isDroppedDownChanged} event handler.& The {@link InputColor.textChanged} event handler.& The {@link InputColor.valueChanged} event handler.<p>Here is a Popup control triggered by a button:</p>
* <button id="btn2" type="button">
* Click to show Popup
* </button>
* <wj-popup owner="#btn2" show-trigger="Click" hide-trigger="Blur">
* <h3>
* Salutation
* </h3>
* <div class="popover-content">
* Hello {{firstName}} {{lastName}}
* </div>
* </wj-popup>
*
* The wj-popup directive supports the following attributes:
*
* = A reference to the Popup control created by this directive.@ A boolean value that determines whether popups should be shown using a fade-in animation.@ A boolean value that determines whether popups should be hidden using a fade-out animation.@ A {@link PopupTrigger} value defining the action that hides the {@link Popup}.& This event occurs after the binding has finished initializing the control with attribute values.= A value indicating whether the binding has finished initializing the control with attribute values. @ A CSS selector referencing an element that controls the popup visibility.@ A {@link PopupTrigger} value defining the action that shows the {@link Popup}.@ A boolean value that determines whether the {@link Popup} should be displayed as a modal dialog.& The {@link Popup.gotFocus} event handler.& The {@link Popup.lostFocus} event handler.& The {@link Popup.showing} event handler.& The {@link Popup.shown} event handler.& The {@link Popup.hiding} event handler.& The {@link Popup.hidden} event handler.<p>Here is a MultiSelect bound to a collection of objects:</p>
* <wj-multi-select
* placeholder="Select Countries"
* items-source="ctx.items"
* header-format="{count} countries selected"
* display-Member-path="country"
* checked-Member-path="selected">
* </wj-multi-select>
*
* The wj-multi-select directive extends {@link wijmo.angular.input.WjComboBox} with the following attributes:
*
* @ The name of the property used to control the checkboxes placed next to each item.@ The format string used to create the header content when the control has more than maxHeaderItems items checked.= A function that gets the HTML in the control header.@ The maximum number of items to display on the control header.& The {@link MultiSelect.checkedItemsChanged} event handler.<p>Here is a InputTags bound to a collection of objects:</p> * <wj-multi-auto-complete * max-selected-items="8" * items-source="ctx.items" * selected-Member-path="selected"> * </wj-multi-auto-complete>* The wj-multi-auto-complete directive extends {@link wijmo.angular.input.WjAutoComplete} with the following attributes: * *
@ The maximum number of items that can be selected.@ The name of the property used to control which
* item will be selected.@ An array containing the items that are currently selected.
* & The {@link MultiAutoComplete.selectedItemsChanged} event handler.Here is a CollectionViewNavigator:</p> * <wj-collection-view-navigator * cv="myCollectionView"> * </wj-collection-view-navigator>* * Example * * This example creates a CollectionView with 100,000 items and 20 items per page. * It defines a navigator to select the current page, another to select the current item, * and shows the data in a {@link FlexGrid}. * * The wj-collection-view-navigator directive has a single attribute: * *
= A reference to the {@link ICollectionView} object to navigate.Here is a CollectionViewPager:</p> * <wj-collection-view-pager * cv="myCollectionView"> * </wj-collection-view-pager>* * Example * * This example creates a CollectionView with 100,000 items and 20 items per page. * It defines a navigator to select the current page, another to select the current item, * and shows the data in a {@link FlexGrid}. * * The wj-collection-view-pager directive has a single attribute: * *
= A reference to the paged {@link ICollectionView} object to navigate.