UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

1,345 lines (1,338 loc) 38 kB
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 jqxcombobox from '../../jqwidgets/jqxcombobox'; import { Component, Input, Output, EventEmitter, ElementRef, forwardRef, ChangeDetectionStrategy, NgModule } from '@angular/core'; import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'; /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** @type {?} */ const noop = () => { }; /** @type {?} */ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => jqxComboBoxComponent), multi: true }; class jqxComboBoxComponent { /** * @param {?} containerElement */ constructor(containerElement) { this.autoCreate = true; this.properties = ['animationType', 'autoComplete', 'autoOpen', 'autoItemsHeight', 'autoDropDownHeight', 'closeDelay', 'checkboxes', 'disabled', 'displayMember', 'dropDownHorizontalAlignment', 'dropDownVerticalAlignment', 'dropDownHeight', 'dropDownWidth', 'enableHover', 'enableSelection', 'enableBrowserBoundsDetection', 'height', 'itemHeight', 'multiSelect', 'minLength', 'openDelay', 'popupZIndex', 'placeHolder', 'remoteAutoComplete', 'remoteAutoCompleteDelay', 'renderer', 'renderSelectedItem', 'rtl', 'selectedIndex', 'showArrow', 'showCloseButtons', 'searchMode', 'search', 'source', 'scrollBarSize', 'template', 'theme', 'validateSelection', 'valueMember', 'width']; this.onTouchedCallback = noop; this.onChangeCallback = noop; // jqxComboBoxComponent events this.onBindingComplete = new EventEmitter(); this.onCheckChange = new EventEmitter(); this.onClose = new EventEmitter(); this.onChange = new EventEmitter(); this.onOpen = 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.jqxComboBox({ 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.jqxComboBox(this.properties[i])); } if (areEqual) { return false; } this.host.jqxComboBox(this.properties[i], this[attrName]); continue; } if (this[attrName] !== this.host.jqxComboBox(this.properties[i])) { this.host.jqxComboBox(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, 'jqxComboBox', 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.jqxComboBox('setOptions', options); } // jqxComboBoxComponent properties /** * @param {?=} arg * @return {?} */ animationType(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('animationType', arg); } else { return this.host.jqxComboBox('animationType'); } } /** * @param {?=} arg * @return {?} */ autoComplete(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('autoComplete', arg); } else { return this.host.jqxComboBox('autoComplete'); } } /** * @param {?=} arg * @return {?} */ autoOpen(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('autoOpen', arg); } else { return this.host.jqxComboBox('autoOpen'); } } /** * @param {?=} arg * @return {?} */ autoItemsHeight(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('autoItemsHeight', arg); } else { return this.host.jqxComboBox('autoItemsHeight'); } } /** * @param {?=} arg * @return {?} */ autoDropDownHeight(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('autoDropDownHeight', arg); } else { return this.host.jqxComboBox('autoDropDownHeight'); } } /** * @param {?=} arg * @return {?} */ closeDelay(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('closeDelay', arg); } else { return this.host.jqxComboBox('closeDelay'); } } /** * @param {?=} arg * @return {?} */ checkboxes(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('checkboxes', arg); } else { return this.host.jqxComboBox('checkboxes'); } } /** * @param {?=} arg * @return {?} */ disabled(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('disabled', arg); } else { return this.host.jqxComboBox('disabled'); } } /** * @param {?=} arg * @return {?} */ displayMember(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('displayMember', arg); } else { return this.host.jqxComboBox('displayMember'); } } /** * @param {?=} arg * @return {?} */ dropDownHorizontalAlignment(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('dropDownHorizontalAlignment', arg); } else { return this.host.jqxComboBox('dropDownHorizontalAlignment'); } } /** * @param {?=} arg * @return {?} */ dropDownVerticalAlignment(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('dropDownVerticalAlignment', arg); } else { return this.host.jqxComboBox('dropDownVerticalAlignment'); } } /** * @param {?=} arg * @return {?} */ dropDownHeight(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('dropDownHeight', arg); } else { return this.host.jqxComboBox('dropDownHeight'); } } /** * @param {?=} arg * @return {?} */ dropDownWidth(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('dropDownWidth', arg); } else { return this.host.jqxComboBox('dropDownWidth'); } } /** * @param {?=} arg * @return {?} */ enableHover(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('enableHover', arg); } else { return this.host.jqxComboBox('enableHover'); } } /** * @param {?=} arg * @return {?} */ enableSelection(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('enableSelection', arg); } else { return this.host.jqxComboBox('enableSelection'); } } /** * @param {?=} arg * @return {?} */ enableBrowserBoundsDetection(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('enableBrowserBoundsDetection', arg); } else { return this.host.jqxComboBox('enableBrowserBoundsDetection'); } } /** * @param {?=} arg * @return {?} */ height(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('height', arg); } else { return this.host.jqxComboBox('height'); } } /** * @param {?=} arg * @return {?} */ itemHeight(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('itemHeight', arg); } else { return this.host.jqxComboBox('itemHeight'); } } /** * @param {?=} arg * @return {?} */ multiSelect(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('multiSelect', arg); } else { return this.host.jqxComboBox('multiSelect'); } } /** * @param {?=} arg * @return {?} */ minLength(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('minLength', arg); } else { return this.host.jqxComboBox('minLength'); } } /** * @param {?=} arg * @return {?} */ openDelay(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('openDelay', arg); } else { return this.host.jqxComboBox('openDelay'); } } /** * @param {?=} arg * @return {?} */ popupZIndex(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('popupZIndex', arg); } else { return this.host.jqxComboBox('popupZIndex'); } } /** * @param {?=} arg * @return {?} */ placeHolder(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('placeHolder', arg); } else { return this.host.jqxComboBox('placeHolder'); } } /** * @param {?=} arg * @return {?} */ remoteAutoComplete(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('remoteAutoComplete', arg); } else { return this.host.jqxComboBox('remoteAutoComplete'); } } /** * @param {?=} arg * @return {?} */ remoteAutoCompleteDelay(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('remoteAutoCompleteDelay', arg); } else { return this.host.jqxComboBox('remoteAutoCompleteDelay'); } } /** * @param {?=} arg * @return {?} */ renderer(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('renderer', arg); } else { return this.host.jqxComboBox('renderer'); } } /** * @param {?=} arg * @return {?} */ renderSelectedItem(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('renderSelectedItem', arg); } else { return this.host.jqxComboBox('renderSelectedItem'); } } /** * @param {?=} arg * @return {?} */ rtl(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('rtl', arg); } else { return this.host.jqxComboBox('rtl'); } } /** * @param {?=} arg * @return {?} */ selectedIndex(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('selectedIndex', arg); } else { return this.host.jqxComboBox('selectedIndex'); } } /** * @param {?=} arg * @return {?} */ showArrow(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('showArrow', arg); } else { return this.host.jqxComboBox('showArrow'); } } /** * @param {?=} arg * @return {?} */ showCloseButtons(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('showCloseButtons', arg); } else { return this.host.jqxComboBox('showCloseButtons'); } } /** * @param {?=} arg * @return {?} */ searchMode(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('searchMode', arg); } else { return this.host.jqxComboBox('searchMode'); } } /** * @param {?=} arg * @return {?} */ search(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('search', arg); } else { return this.host.jqxComboBox('search'); } } /** * @param {?=} arg * @return {?} */ source(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('source', arg); } else { return this.host.jqxComboBox('source'); } } /** * @param {?=} arg * @return {?} */ scrollBarSize(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('scrollBarSize', arg); } else { return this.host.jqxComboBox('scrollBarSize'); } } /** * @param {?=} arg * @return {?} */ template(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('template', arg); } else { return this.host.jqxComboBox('template'); } } /** * @param {?=} arg * @return {?} */ theme(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('theme', arg); } else { return this.host.jqxComboBox('theme'); } } /** * @param {?=} arg * @return {?} */ validateSelection(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('validateSelection', arg); } else { return this.host.jqxComboBox('validateSelection'); } } /** * @param {?=} arg * @return {?} */ valueMember(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('valueMember', arg); } else { return this.host.jqxComboBox('valueMember'); } } /** * @param {?=} arg * @return {?} */ width(arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxComboBox('width', arg); } else { return this.host.jqxComboBox('width'); } } // jqxComboBoxComponent functions /** * @param {?} item * @return {?} */ addItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('addItem', item); } /** * @return {?} */ clearSelection() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('clearSelection'); } /** * @return {?} */ clear() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('clear'); } /** * @return {?} */ close() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('close'); } /** * @param {?} index * @return {?} */ checkIndex(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('checkIndex', index); } /** * @param {?} item * @return {?} */ checkItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('checkItem', item); } /** * @return {?} */ checkAll() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('checkAll'); } /** * @return {?} */ destroy() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('destroy'); } /** * @param {?} item * @return {?} */ disableItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('disableItem', item); } /** * @param {?} index * @return {?} */ disableAt(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('disableAt', index); } /** * @param {?} item * @return {?} */ enableItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('enableItem', item); } /** * @param {?} index * @return {?} */ enableAt(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('enableAt', index); } /** * @param {?} index * @return {?} */ ensureVisible(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('ensureVisible', index); } /** * @return {?} */ focus() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('focus'); } /** * @param {?} index * @return {?} */ getItem(index) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getItem', index); } /** * @param {?} value * @return {?} */ getItemByValue(value) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getItemByValue', value); } /** * @return {?} */ getVisibleItems() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getVisibleItems'); } /** * @return {?} */ getItems() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getItems'); } /** * @return {?} */ getCheckedItems() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getCheckedItems'); } /** * @return {?} */ getSelectedItem() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getSelectedItem'); } /** * @return {?} */ getSelectedItems() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getSelectedItems'); } /** * @return {?} */ getSelectedIndex() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('getSelectedIndex'); } /** * @param {?} item * @param {?} index * @return {?} */ insertAt(item, index) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('insertAt', item, index); } /** * @return {?} */ isOpened() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('isOpened'); } /** * @param {?} index * @return {?} */ indeterminateIndex(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('indeterminateIndex', index); } /** * @param {?} item * @return {?} */ indeterminateItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('indeterminateItem', item); } /** * @param {?} selectTagId * @return {?} */ loadFromSelect(selectTagId) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('loadFromSelect', selectTagId); } /** * @return {?} */ open() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('open'); } /** * @param {?} item * @return {?} */ removeItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('removeItem', item); } /** * @param {?} index * @return {?} */ removeAt(index) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('removeAt', index); } /** * @param {?} index * @return {?} */ selectIndex(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('selectIndex', index); } /** * @param {?} item * @return {?} */ selectItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('selectItem', item); } /** * @return {?} */ searchString() { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxComboBox('searchString'); } /** * @param {?} item * @param {?} itemValue * @return {?} */ updateItem(item, itemValue) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('updateItem', item, itemValue); } /** * @param {?} item * @param {?} index * @return {?} */ updateAt(item, index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('updateAt', item, index); } /** * @param {?} index * @return {?} */ unselectIndex(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('unselectIndex', index); } /** * @param {?} item * @return {?} */ unselectItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('unselectItem', item); } /** * @param {?} index * @return {?} */ uncheckIndex(index) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('uncheckIndex', index); } /** * @param {?} item * @return {?} */ uncheckItem(item) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('uncheckItem', item); } /** * @return {?} */ uncheckAll() { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxComboBox('uncheckAll'); } /** * @param {?=} value * @return {?} */ val(value) { if (value !== undefined) { return this.host.jqxComboBox('val', value); } else { return this.host.jqxComboBox('val'); } } ; /** * @return {?} */ __wireEvents__() { this.host.on('bindingComplete', (eventData) => { this.onBindingComplete.emit(eventData); }); this.host.on('checkChange', (eventData) => { this.onCheckChange.emit(eventData); }); this.host.on('close', (eventData) => { this.onClose.emit(eventData); }); this.host.on('change', (eventData) => { this.onChange.emit(eventData); if (eventData.args) if (eventData.args.item !== null) this.onChangeCallback(eventData.args.item.value); }); this.host.on('open', (eventData) => { this.onOpen.emit(eventData); }); this.host.on('select', (eventData) => { this.onSelect.emit(eventData); }); this.host.on('unselect', (eventData) => { this.onUnselect.emit(eventData); }); } } //jqxComboBoxComponent jqxComboBoxComponent.decorators = [ { type: Component, args: [{ selector: 'jqxComboBox', template: '<div><ng-content></ng-content></div>', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush }] } ]; /** @nocollapse */ jqxComboBoxComponent.ctorParameters = () => [ { type: ElementRef } ]; jqxComboBoxComponent.propDecorators = { attrAnimationType: [{ type: Input, args: ['animationType',] }], attrAutoComplete: [{ type: Input, args: ['autoComplete',] }], attrAutoOpen: [{ type: Input, args: ['autoOpen',] }], attrAutoItemsHeight: [{ type: Input, args: ['autoItemsHeight',] }], attrAutoDropDownHeight: [{ type: Input, args: ['autoDropDownHeight',] }], attrCloseDelay: [{ type: Input, args: ['closeDelay',] }], attrCheckboxes: [{ type: Input, args: ['checkboxes',] }], attrDisabled: [{ type: Input, args: ['disabled',] }], attrDisplayMember: [{ type: Input, args: ['displayMember',] }], attrDropDownHorizontalAlignment: [{ type: Input, args: ['dropDownHorizontalAlignment',] }], attrDropDownVerticalAlignment: [{ type: Input, args: ['dropDownVerticalAlignment',] }], attrDropDownHeight: [{ type: Input, args: ['dropDownHeight',] }], attrDropDownWidth: [{ type: Input, args: ['dropDownWidth',] }], attrEnableHover: [{ type: Input, args: ['enableHover',] }], attrEnableSelection: [{ type: Input, args: ['enableSelection',] }], attrEnableBrowserBoundsDetection: [{ type: Input, args: ['enableBrowserBoundsDetection',] }], attrItemHeight: [{ type: Input, args: ['itemHeight',] }], attrMultiSelect: [{ type: Input, args: ['multiSelect',] }], attrMinLength: [{ type: Input, args: ['minLength',] }], attrOpenDelay: [{ type: Input, args: ['openDelay',] }], attrPopupZIndex: [{ type: Input, args: ['popupZIndex',] }], attrPlaceHolder: [{ type: Input, args: ['placeHolder',] }], attrRemoteAutoComplete: [{ type: Input, args: ['remoteAutoComplete',] }], attrRemoteAutoCompleteDelay: [{ type: Input, args: ['remoteAutoCompleteDelay',] }], attrRenderer: [{ type: Input, args: ['renderer',] }], attrRenderSelectedItem: [{ type: Input, args: ['renderSelectedItem',] }], attrRtl: [{ type: Input, args: ['rtl',] }], attrSelectedIndex: [{ type: Input, args: ['selectedIndex',] }], attrShowArrow: [{ type: Input, args: ['showArrow',] }], attrShowCloseButtons: [{ type: Input, args: ['showCloseButtons',] }], attrSearchMode: [{ type: Input, args: ['searchMode',] }], attrSearch: [{ type: Input, args: ['search',] }], attrSource: [{ type: Input, args: ['source',] }], attrScrollBarSize: [{ type: Input, args: ['scrollBarSize',] }], attrTemplate: [{ type: Input, args: ['template',] }], attrTheme: [{ type: Input, args: ['theme',] }], attrValidateSelection: [{ type: Input, args: ['validateSelection',] }], attrValueMember: [{ type: Input, args: ['valueMember',] }], attrWidth: [{ type: Input, args: ['width',] }], attrHeight: [{ type: Input, args: ['height',] }], autoCreate: [{ type: Input, args: ['auto-create',] }], onBindingComplete: [{ type: Output }], onCheckChange: [{ type: Output }], onClose: [{ type: Output }], onChange: [{ type: Output }], onOpen: [{ type: Output }], onSelect: [{ type: Output }], onUnselect: [{ type: Output }] }; /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ class jqxComboBoxModule { } jqxComboBoxModule.decorators = [ { type: NgModule, args: [{ imports: [ FormsModule ], declarations: [jqxComboBoxComponent], exports: [jqxComboBoxComponent] },] } ]; /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ export { jqxComboBoxComponent, jqxComboBoxModule };