jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
1,343 lines (1,342 loc) • 38.1 kB
JavaScript
import * as jqxcore from '../../jqwidgets/jqxcore';
import * as jqxdata from '../../jqwidgets/jqxdata';
import * as jqxbuttons from '../../jqwidgets/jqxbuttons';
import * as jqxscrollbar from '../../jqwidgets/jqxscrollbar';
import * as jqxlistbox from '../../jqwidgets/jqxlistbox';
import * as jqxdragdrop from '../../jqwidgets/jqxdragdrop';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/// <reference path="../../jqwidgets.d.ts" />
/// <reference path="../../jqwidgets.d.ts" />
import { Component, Input, Output, EventEmitter, ElementRef, forwardRef, ChangeDetectionStrategy } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
/** @type {?} */
const noop = () => { };
const ɵ0 = noop;
/** @type {?} */
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => jqxListBoxComponent),
multi: true
};
export class jqxListBoxComponent {
/**
* @param {?} containerElement
*/
constructor(containerElement) {
this.autoCreate = true;
this.properties = ['autoHeight', 'allowDrag', 'allowDrop', 'checkboxes', 'disabled', 'displayMember', 'dropAction', 'dragStart', 'dragEnd', 'enableHover', 'enableSelection', 'equalItemsWidth', 'filterable', 'filterHeight', 'filterDelay', 'filterPlaceHolder', 'height', 'hasThreeStates', 'itemHeight', 'incrementalSearch', 'incrementalSearchDelay', 'multiple', 'multipleextended', 'renderer', 'rendered', 'rtl', 'selectedIndex', 'selectedIndexes', 'source', 'scrollBarSize', 'searchMode', 'theme', 'valueMember', 'width'];
this.onTouchedCallback = noop;
this.onChangeCallback = noop;
// jqxListBoxComponent events
this.onBindingComplete = new EventEmitter();
this.onChange = new EventEmitter();
this.onCheckChange = new EventEmitter();
this.onDragStart = new EventEmitter();
this.onDragEnd = new EventEmitter();
this.onSelect = new EventEmitter();
this.onUnselect = new EventEmitter();
this.elementRef = containerElement;
}
/**
* @return {?}
*/
ngOnInit() {
}
;
/**
* @return {?}
*/
ngAfterViewInit() {
/** @type {?} */
let children = JQXLite(this.elementRef.nativeElement.children).find('li');
/** @type {?} */
let html = '';
/** @type {?} */
let options = {};
if (children.length > 0) {
this.container = document.createElement('div');
html = this.elementRef.nativeElement.innerHTML;
this.container.appendChild(this.elementRef.nativeElement.firstChild);
this.elementRef.nativeElement.innerHTML = html;
this.content = html;
/** @type {?} */
let result = JQXLite.jqx.parseSourceTag(this.container);
options['source'] = result.items;
}
if (this.autoCreate) {
this.createComponent(options);
}
}
;
/**
* @return {?}
*/
ngAfterViewChecked() {
if (this.container) {
if (this.content !== this.container.innerHTML) {
this.content = this.container.innerHTML;
/** @type {?} */
let result = JQXLite.jqx.parseSourceTag(this.container);
this.host.jqxListBox({ source: result.items });
}
}
}
;
/**
* @param {?} changes
* @return {?}
*/
ngOnChanges(changes) {
if (this.host) {
for (let i = 0; i < this.properties.length; i++) {
/** @type {?} */
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
/** @type {?} */
let areEqual = false;
if (this[attrName] !== undefined) {
if (typeof this[attrName] === 'object') {
if (this[attrName] instanceof Array) {
areEqual = this.arraysEqual(this[attrName], this.host.jqxListBox(this.properties[i]));
}
if (areEqual) {
return false;
}
this.host.jqxListBox(this.properties[i], this[attrName]);
continue;
}
if (this[attrName] !== this.host.jqxListBox(this.properties[i])) {
this.host.jqxListBox(this.properties[i], this[attrName]);
}
}
}
}
}
/**
* @param {?} attrValue
* @param {?} hostValue
* @return {?}
*/
arraysEqual(attrValue, hostValue) {
if ((attrValue && !hostValue) || (!attrValue && hostValue)) {
return false;
}
if (attrValue.length != hostValue.length) {
return false;
}
for (let i = 0; i < attrValue.length; i++) {
if (attrValue[i] !== hostValue[i]) {
return false;
}
}
return true;
}
/**
* @return {?}
*/
manageAttributes() {
/** @type {?} */
let options = {};
for (let i = 0; i < this.properties.length; i++) {
/** @type {?} */
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
if (this[attrName] !== undefined) {
options[this.properties[i]] = this[attrName];
}
}
return options;
}
/**
* @param {?} parentEl
* @param {?} childEl
* @return {?}
*/
moveClasses(parentEl, childEl) {
/** @type {?} */
let classes = parentEl.classList;
if (classes.length > 0) {
childEl.classList.add(...classes);
}
parentEl.className = '';
}
/**
* @param {?} parentEl
* @param {?} childEl
* @return {?}
*/
moveStyles(parentEl, childEl) {
/** @type {?} */
let style = parentEl.style.cssText;
childEl.style.cssText = style;
parentEl.style.cssText = '';
}
/**
* @param {?=} options
* @return {?}
*/
createComponent(options) {
if (this.host) {
return;
}
if (options) {
JQXLite.extend(options, this.manageAttributes());
}
else {
options = this.manageAttributes();
}
this.host = JQXLite(this.elementRef.nativeElement.firstChild);
this.moveClasses(this.elementRef.nativeElement, this.host[0]);
this.moveStyles(this.elementRef.nativeElement, this.host[0]);
this.__wireEvents__();
this.widgetObject = jqwidgets.createInstance(this.host, 'jqxListBox', options);
}
/**
* @param {?=} options
* @return {?}
*/
createWidget(options) {
this.createComponent(options);
}
/**
* @return {?}
*/
__updateRect__() {
if (this.host)
this.host.css({ width: this.attrWidth, height: this.attrHeight });
}
/**
* @param {?} value
* @return {?}
*/
writeValue(value) {
if (this.widgetObject) {
this.onChangeCallback(this.host.val());
}
}
/**
* @param {?} fn
* @return {?}
*/
registerOnChange(fn) {
this.onChangeCallback = fn;
}
/**
* @param {?} fn
* @return {?}
*/
registerOnTouched(fn) {
this.onTouchedCallback = fn;
}
/**
* @param {?} options
* @return {?}
*/
setOptions(options) {
this.host.jqxListBox('setOptions', options);
}
// jqxListBoxComponent properties
/**
* @param {?=} arg
* @return {?}
*/
autoHeight(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('autoHeight', arg);
}
else {
return this.host.jqxListBox('autoHeight');
}
}
/**
* @param {?=} arg
* @return {?}
*/
allowDrag(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('allowDrag', arg);
}
else {
return this.host.jqxListBox('allowDrag');
}
}
/**
* @param {?=} arg
* @return {?}
*/
allowDrop(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('allowDrop', arg);
}
else {
return this.host.jqxListBox('allowDrop');
}
}
/**
* @param {?=} arg
* @return {?}
*/
checkboxes(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('checkboxes', arg);
}
else {
return this.host.jqxListBox('checkboxes');
}
}
/**
* @param {?=} arg
* @return {?}
*/
disabled(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('disabled', arg);
}
else {
return this.host.jqxListBox('disabled');
}
}
/**
* @param {?=} arg
* @return {?}
*/
displayMember(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('displayMember', arg);
}
else {
return this.host.jqxListBox('displayMember');
}
}
/**
* @param {?=} arg
* @return {?}
*/
dropAction(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('dropAction', arg);
}
else {
return this.host.jqxListBox('dropAction');
}
}
/**
* @param {?=} arg
* @return {?}
*/
dragStart(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('dragStart', arg);
}
else {
return this.host.jqxListBox('dragStart');
}
}
/**
* @param {?=} arg
* @return {?}
*/
dragEnd(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('dragEnd', arg);
}
else {
return this.host.jqxListBox('dragEnd');
}
}
/**
* @param {?=} arg
* @return {?}
*/
enableHover(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('enableHover', arg);
}
else {
return this.host.jqxListBox('enableHover');
}
}
/**
* @param {?=} arg
* @return {?}
*/
enableSelection(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('enableSelection', arg);
}
else {
return this.host.jqxListBox('enableSelection');
}
}
/**
* @param {?=} arg
* @return {?}
*/
equalItemsWidth(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('equalItemsWidth', arg);
}
else {
return this.host.jqxListBox('equalItemsWidth');
}
}
/**
* @param {?=} arg
* @return {?}
*/
filterable(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('filterable', arg);
}
else {
return this.host.jqxListBox('filterable');
}
}
/**
* @param {?=} arg
* @return {?}
*/
filterHeight(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('filterHeight', arg);
}
else {
return this.host.jqxListBox('filterHeight');
}
}
/**
* @param {?=} arg
* @return {?}
*/
filterDelay(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('filterDelay', arg);
}
else {
return this.host.jqxListBox('filterDelay');
}
}
/**
* @param {?=} arg
* @return {?}
*/
filterPlaceHolder(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('filterPlaceHolder', arg);
}
else {
return this.host.jqxListBox('filterPlaceHolder');
}
}
/**
* @param {?=} arg
* @return {?}
*/
height(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('height', arg);
}
else {
return this.host.jqxListBox('height');
}
}
/**
* @param {?=} arg
* @return {?}
*/
hasThreeStates(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('hasThreeStates', arg);
}
else {
return this.host.jqxListBox('hasThreeStates');
}
}
/**
* @param {?=} arg
* @return {?}
*/
itemHeight(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('itemHeight', arg);
}
else {
return this.host.jqxListBox('itemHeight');
}
}
/**
* @param {?=} arg
* @return {?}
*/
incrementalSearch(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('incrementalSearch', arg);
}
else {
return this.host.jqxListBox('incrementalSearch');
}
}
/**
* @param {?=} arg
* @return {?}
*/
incrementalSearchDelay(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('incrementalSearchDelay', arg);
}
else {
return this.host.jqxListBox('incrementalSearchDelay');
}
}
/**
* @param {?=} arg
* @return {?}
*/
multiple(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('multiple', arg);
}
else {
return this.host.jqxListBox('multiple');
}
}
/**
* @param {?=} arg
* @return {?}
*/
multipleextended(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('multipleextended', arg);
}
else {
return this.host.jqxListBox('multipleextended');
}
}
/**
* @param {?=} arg
* @return {?}
*/
renderer(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('renderer', arg);
}
else {
return this.host.jqxListBox('renderer');
}
}
/**
* @param {?=} arg
* @return {?}
*/
rendered(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('rendered', arg);
}
else {
return this.host.jqxListBox('rendered');
}
}
/**
* @param {?=} arg
* @return {?}
*/
rtl(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('rtl', arg);
}
else {
return this.host.jqxListBox('rtl');
}
}
/**
* @param {?=} arg
* @return {?}
*/
selectedIndex(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('selectedIndex', arg);
}
else {
return this.host.jqxListBox('selectedIndex');
}
}
/**
* @param {?=} arg
* @return {?}
*/
selectedIndexes(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('selectedIndexes', arg);
}
else {
return this.host.jqxListBox('selectedIndexes');
}
}
/**
* @param {?=} arg
* @return {?}
*/
source(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('source', arg);
}
else {
return this.host.jqxListBox('source');
}
}
/**
* @param {?=} arg
* @return {?}
*/
scrollBarSize(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('scrollBarSize', arg);
}
else {
return this.host.jqxListBox('scrollBarSize');
}
}
/**
* @param {?=} arg
* @return {?}
*/
searchMode(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('searchMode', arg);
}
else {
return this.host.jqxListBox('searchMode');
}
}
/**
* @param {?=} arg
* @return {?}
*/
theme(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('theme', arg);
}
else {
return this.host.jqxListBox('theme');
}
}
/**
* @param {?=} arg
* @return {?}
*/
valueMember(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('valueMember', arg);
}
else {
return this.host.jqxListBox('valueMember');
}
}
/**
* @param {?=} arg
* @return {?}
*/
width(arg) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
if (arg !== undefined) {
this.host.jqxListBox('width', arg);
}
else {
return this.host.jqxListBox('width');
}
}
// jqxListBoxComponent functions
/**
* @param {?} Item
* @return {?}
*/
addItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('addItem', Item);
}
/**
* @return {?}
*/
beginUpdate() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('beginUpdate');
}
/**
* @return {?}
*/
clear() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('clear');
}
/**
* @return {?}
*/
clearSelection() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('clearSelection');
}
/**
* @param {?} Index
* @return {?}
*/
checkIndex(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('checkIndex', Index);
}
/**
* @param {?} Item
* @return {?}
*/
checkItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('checkItem', Item);
}
/**
* @return {?}
*/
checkAll() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('checkAll');
}
/**
* @return {?}
*/
clearFilter() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('clearFilter');
}
/**
* @return {?}
*/
destroy() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('destroy');
}
/**
* @param {?} Item
* @return {?}
*/
disableItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('disableItem', Item);
}
/**
* @param {?} Index
* @return {?}
*/
disableAt(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('disableAt', Index);
}
/**
* @param {?} Item
* @return {?}
*/
enableItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('enableItem', Item);
}
/**
* @param {?} Index
* @return {?}
*/
enableAt(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('enableAt', Index);
}
/**
* @param {?} item
* @return {?}
*/
ensureVisible(item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('ensureVisible', item);
}
/**
* @return {?}
*/
endUpdate() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('endUpdate');
}
/**
* @return {?}
*/
focus() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('focus');
}
/**
* @return {?}
*/
getItems() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getItems');
}
/**
* @return {?}
*/
getSelectedItems() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getSelectedItems');
}
/**
* @return {?}
*/
getCheckedItems() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getCheckedItems');
}
/**
* @param {?} Index
* @return {?}
*/
getItem(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getItem', Index);
}
/**
* @param {?} Item
* @return {?}
*/
getItemByValue(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getItemByValue', Item);
}
/**
* @return {?}
*/
getSelectedItem() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getSelectedItem');
}
/**
* @return {?}
*/
getSelectedIndex() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
return this.host.jqxListBox('getSelectedIndex');
}
/**
* @param {?} Item
* @param {?} Index
* @return {?}
*/
insertAt(Item, Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('insertAt', Item, Index);
}
/**
* @return {?}
*/
invalidate() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('invalidate');
}
/**
* @param {?} Item
* @return {?}
*/
indeterminateItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('indeterminateItem', Item);
}
/**
* @param {?} Index
* @return {?}
*/
indeterminateIndex(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('indeterminateIndex', Index);
}
/**
* @param {?} selector
* @return {?}
*/
loadFromSelect(selector) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('loadFromSelect', selector);
}
/**
* @param {?} Item
* @return {?}
*/
removeItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('removeItem', Item);
}
/**
* @param {?} Index
* @return {?}
*/
removeAt(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('removeAt', Index);
}
/**
* @return {?}
*/
render() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('render');
}
/**
* @return {?}
*/
refresh() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('refresh');
}
/**
* @param {?} Item
* @return {?}
*/
selectItem(Item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('selectItem', Item);
}
/**
* @param {?} Index
* @return {?}
*/
selectIndex(Index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('selectIndex', Index);
}
/**
* @param {?} Item
* @param {?} Value
* @return {?}
*/
updateItem(Item, Value) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('updateItem', Item, Value);
}
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
updateAt(item, index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('updateAt', item, index);
}
/**
* @param {?} index
* @return {?}
*/
unselectIndex(index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('unselectIndex', index);
}
/**
* @param {?} item
* @return {?}
*/
unselectItem(item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('unselectItem', item);
}
/**
* @param {?} index
* @return {?}
*/
uncheckIndex(index) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('uncheckIndex', index);
}
/**
* @param {?} item
* @return {?}
*/
uncheckItem(item) {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('uncheckItem', item);
}
/**
* @return {?}
*/
uncheckAll() {
if (this.autoCreate && !this.host) {
this.createComponent();
}
this.host.jqxListBox('uncheckAll');
}
/**
* @param {?=} value
* @return {?}
*/
val(value) {
if (value !== undefined) {
return this.host.jqxListBox('val', value);
}
else {
return this.host.jqxListBox('val');
}
}
;
/**
* @return {?}
*/
__wireEvents__() {
this.host.on('bindingComplete', (eventData) => { this.onBindingComplete.emit(eventData); });
this.host.on('change', (eventData) => { this.onChange.emit(eventData); if (eventData.args)
this.onChangeCallback(eventData.args.item.value); });
this.host.on('checkChange', (eventData) => { this.onCheckChange.emit(eventData); });
this.host.on('dragStart', (eventData) => { this.onDragStart.emit(eventData); });
this.host.on('dragEnd', (eventData) => { this.onDragEnd.emit(eventData); });
this.host.on('select', (eventData) => { this.onSelect.emit(eventData); });
this.host.on('unselect', (eventData) => { this.onUnselect.emit(eventData); });
}
} //jqxListBoxComponent
jqxListBoxComponent.decorators = [
{ type: Component, args: [{
selector: 'jqxListBox',
template: '<div><ng-content></ng-content></div>',
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
changeDetection: ChangeDetectionStrategy.OnPush
}] }
];
/** @nocollapse */
jqxListBoxComponent.ctorParameters = () => [
{ type: ElementRef }
];
jqxListBoxComponent.propDecorators = {
attrAutoHeight: [{ type: Input, args: ['autoHeight',] }],
attrAllowDrag: [{ type: Input, args: ['allowDrag',] }],
attrAllowDrop: [{ type: Input, args: ['allowDrop',] }],
attrCheckboxes: [{ type: Input, args: ['checkboxes',] }],
attrDisabled: [{ type: Input, args: ['disabled',] }],
attrDisplayMember: [{ type: Input, args: ['displayMember',] }],
attrDropAction: [{ type: Input, args: ['dropAction',] }],
attrDragStart: [{ type: Input, args: ['dragStart',] }],
attrDragEnd: [{ type: Input, args: ['dragEnd',] }],
attrEnableHover: [{ type: Input, args: ['enableHover',] }],
attrEnableSelection: [{ type: Input, args: ['enableSelection',] }],
attrEqualItemsWidth: [{ type: Input, args: ['equalItemsWidth',] }],
attrFilterable: [{ type: Input, args: ['filterable',] }],
attrFilterHeight: [{ type: Input, args: ['filterHeight',] }],
attrFilterDelay: [{ type: Input, args: ['filterDelay',] }],
attrFilterPlaceHolder: [{ type: Input, args: ['filterPlaceHolder',] }],
attrHasThreeStates: [{ type: Input, args: ['hasThreeStates',] }],
attrItemHeight: [{ type: Input, args: ['itemHeight',] }],
attrIncrementalSearch: [{ type: Input, args: ['incrementalSearch',] }],
attrIncrementalSearchDelay: [{ type: Input, args: ['incrementalSearchDelay',] }],
attrMultiple: [{ type: Input, args: ['multiple',] }],
attrMultipleextended: [{ type: Input, args: ['multipleextended',] }],
attrRenderer: [{ type: Input, args: ['renderer',] }],
attrRendered: [{ type: Input, args: ['rendered',] }],
attrRtl: [{ type: Input, args: ['rtl',] }],
attrSelectedIndex: [{ type: Input, args: ['selectedIndex',] }],
attrSelectedIndexes: [{ type: Input, args: ['selectedIndexes',] }],
attrSource: [{ type: Input, args: ['source',] }],
attrScrollBarSize: [{ type: Input, args: ['scrollBarSize',] }],
attrSearchMode: [{ type: Input, args: ['searchMode',] }],
attrTheme: [{ type: Input, args: ['theme',] }],
attrValueMember: [{ type: Input, args: ['valueMember',] }],
attrWidth: [{ type: Input, args: ['width',] }],
attrHeight: [{ type: Input, args: ['height',] }],
autoCreate: [{ type: Input, args: ['auto-create',] }],
onBindingComplete: [{ type: Output }],
onChange: [{ type: Output }],
onCheckChange: [{ type: Output }],
onDragStart: [{ type: Output }],
onDragEnd: [{ type: Output }],
onSelect: [{ type: Output }],
onUnselect: [{ type: Output }]
};
if (false) {
/** @type {?} */
jqxListBoxComponent.prototype.attrAutoHeight;
/** @type {?} */
jqxListBoxComponent.prototype.attrAllowDrag;
/** @type {?} */
jqxListBoxComponent.prototype.attrAllowDrop;
/** @type {?} */
jqxListBoxComponent.prototype.attrCheckboxes;
/** @type {?} */
jqxListBoxComponent.prototype.attrDisabled;
/** @type {?} */
jqxListBoxComponent.prototype.attrDisplayMember;
/** @type {?} */
jqxListBoxComponent.prototype.attrDropAction;
/** @type {?} */
jqxListBoxComponent.prototype.attrDragStart;
/** @type {?} */
jqxListBoxComponent.prototype.attrDragEnd;
/** @type {?} */
jqxListBoxComponent.prototype.attrEnableHover;
/** @type {?} */
jqxListBoxComponent.prototype.attrEnableSelection;
/** @type {?} */
jqxListBoxComponent.prototype.attrEqualItemsWidth;
/** @type {?} */
jqxListBoxComponent.prototype.attrFilterable;
/** @type {?} */
jqxListBoxComponent.prototype.attrFilterHeight;
/** @type {?} */
jqxListBoxComponent.prototype.attrFilterDelay;
/** @type {?} */
jqxListBoxComponent.prototype.attrFilterPlaceHolder;
/** @type {?} */
jqxListBoxComponent.prototype.attrHasThreeStates;
/** @type {?} */
jqxListBoxComponent.prototype.attrItemHeight;
/** @type {?} */
jqxListBoxComponent.prototype.attrIncrementalSearch;
/** @type {?} */
jqxListBoxComponent.prototype.attrIncrementalSearchDelay;
/** @type {?} */
jqxListBoxComponent.prototype.attrMultiple;
/** @type {?} */
jqxListBoxComponent.prototype.attrMultipleextended;
/** @type {?} */
jqxListBoxComponent.prototype.attrRenderer;
/** @type {?} */
jqxListBoxComponent.prototype.attrRendered;
/** @type {?} */
jqxListBoxComponent.prototype.attrRtl;
/** @type {?} */
jqxListBoxComponent.prototype.attrSelectedIndex;
/** @type {?} */
jqxListBoxComponent.prototype.attrSelectedIndexes;
/** @type {?} */
jqxListBoxComponent.prototype.attrSource;
/** @type {?} */
jqxListBoxComponent.prototype.attrScrollBarSize;
/** @type {?} */
jqxListBoxComponent.prototype.attrSearchMode;
/** @type {?} */
jqxListBoxComponent.prototype.attrTheme;
/** @type {?} */
jqxListBoxComponent.prototype.attrValueMember;
/** @type {?} */
jqxListBoxComponent.prototype.attrWidth;
/** @type {?} */
jqxListBoxComponent.prototype.attrHeight;
/** @type {?} */
jqxListBoxComponent.prototype.autoCreate;
/** @type {?} */
jqxListBoxComponent.prototype.properties;
/** @type {?} */
jqxListBoxComponent.prototype.host;
/** @type {?} */
jqxListBoxComponent.prototype.elementRef;
/** @type {?} */
jqxListBoxComponent.prototype.widgetObject;
/** @type {?} */
jqxListBoxComponent.prototype.content;
/** @type {?} */
jqxListBoxComponent.prototype.container;
/**
* @type {?}
* @private
*/
jqxListBoxComponent.prototype.onTouchedCallback;
/**
* @type {?}
* @private
*/
jqxListBoxComponent.prototype.onChangeCallback;
/** @type {?} */
jqxListBoxComponent.prototype.onBindingComplete;
/** @type {?} */
jqxListBoxComponent.prototype.onChange;
/** @type {?} */
jqxListBoxComponent.prototype.onCheckChange;
/** @type {?} */
jqxListBoxComponent.prototype.onDragStart;
/** @type {?} */
jqxListBoxComponent.prototype.onDragEnd;
/** @type {?} */
jqxListBoxComponent.prototype.onSelect;
/** @type {?} */
jqxListBoxComponent.prototype.onUnselect;
/* Skipping unhandled member: ;*/
/* Skipping unhandled member: ;*/
/* Skipping unhandled member: ;*/
/* Skipping unhandled member: ;*/
}
export { ɵ0 };