jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
8 lines (7 loc) • 21.3 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxscrollbar');
require('../../jqwidgets/jqxlistbox');
require('../../jqwidgets/jqxcombobox');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxcombobox",["exports","@angular/core","@angular/forms"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxcombobox={}),t.ng.core,t.ng.forms)}(this,function(t,e,o){"use strict";function i(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,s,i=o.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)r.push(n.value)}catch(h){s={error:h}}finally{try{n&&!n.done&&(o=i["return"])&&o.call(i)}finally{if(s)throw s.error}}return r}var n=function(){},s={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return r}),multi:!0},r=function(){function t(t){this.autoCreate=!0,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=n,this.onChangeCallback=n,this.onBindingComplete=new e.EventEmitter,this.onCheckChange=new e.EventEmitter,this.onClose=new e.EventEmitter,this.onChange=new e.EventEmitter,this.onOpen=new e.EventEmitter,this.onSelect=new e.EventEmitter,this.onUnselect=new e.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var t="",e={};if(0<JQXLite(this.elementRef.nativeElement.children).find("li").length){this.container=document.createElement("div"),t=this.elementRef.nativeElement.innerHTML,this.container.appendChild(this.elementRef.nativeElement.firstChild),this.elementRef.nativeElement.innerHTML=t,this.content=t;var o=JQXLite.jqx.parseSourceTag(this.container);e.source=o.items}this.autoCreate&&this.createComponent(e)},t.prototype.ngAfterViewChecked=function(){if(this.container&&this.content!==this.container.innerHTML){this.content=this.container.innerHTML;var t=JQXLite.jqx.parseSourceTag(this.container);this.host.jqxComboBox({source:t.items})}},t.prototype.ngOnChanges=function(t){if(this.host)for(var e=0;e<this.properties.length;e++){var o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),n=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(n=this.arraysEqual(this[o],this.host.jqxComboBox(this.properties[e]))),n)return!1;this.host.jqxComboBox(this.properties[e],this[o]);continue}this[o]!==this.host.jqxComboBox(this.properties[e])&&this.host.jqxComboBox(this.properties[e],this[o])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[o]!==undefined&&(t[this.properties[e]]=this[o])}return t},t.prototype.moveClasses=function(t,e){var o,n=t.classList;0<n.length&&(o=e.classList).add.apply(o,function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}(n)),t.className=""},t.prototype.moveStyles=function(t,e){var o=t.style.cssText;e.style.cssText=o,t.style.cssText=""},t.prototype.createComponent=function(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=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",t))},t.prototype.createWidget=function(t){this.createComponent(t)},t.prototype.__updateRect__=function(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})},t.prototype.writeValue=function(t){this.widgetObject&&this.onChangeCallback(this.host.val())},t.prototype.registerOnChange=function(t){this.onChangeCallback=t},t.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},t.prototype.setOptions=function(t){this.host.jqxComboBox("setOptions",t)},t.prototype.animationType=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("animationType");this.host.jqxComboBox("animationType",t)},t.prototype.autoComplete=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("autoComplete");this.host.jqxComboBox("autoComplete",t)},t.prototype.autoOpen=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("autoOpen");this.host.jqxComboBox("autoOpen",t)},t.prototype.autoItemsHeight=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("autoItemsHeight");this.host.jqxComboBox("autoItemsHeight",t)},t.prototype.autoDropDownHeight=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("autoDropDownHeight");this.host.jqxComboBox("autoDropDownHeight",t)},t.prototype.closeDelay=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("closeDelay");this.host.jqxComboBox("closeDelay",t)},t.prototype.checkboxes=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("checkboxes");this.host.jqxComboBox("checkboxes",t)},t.prototype.disabled=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("disabled");this.host.jqxComboBox("disabled",t)},t.prototype.displayMember=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("displayMember");this.host.jqxComboBox("displayMember",t)},t.prototype.dropDownHorizontalAlignment=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("dropDownHorizontalAlignment");this.host.jqxComboBox("dropDownHorizontalAlignment",t)},t.prototype.dropDownVerticalAlignment=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("dropDownVerticalAlignment");this.host.jqxComboBox("dropDownVerticalAlignment",t)},t.prototype.dropDownHeight=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("dropDownHeight");this.host.jqxComboBox("dropDownHeight",t)},t.prototype.dropDownWidth=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("dropDownWidth");this.host.jqxComboBox("dropDownWidth",t)},t.prototype.enableHover=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("enableHover");this.host.jqxComboBox("enableHover",t)},t.prototype.enableSelection=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("enableSelection");this.host.jqxComboBox("enableSelection",t)},t.prototype.enableBrowserBoundsDetection=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("enableBrowserBoundsDetection");this.host.jqxComboBox("enableBrowserBoundsDetection",t)},t.prototype.height=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("height");this.host.jqxComboBox("height",t)},t.prototype.itemHeight=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("itemHeight");this.host.jqxComboBox("itemHeight",t)},t.prototype.multiSelect=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("multiSelect");this.host.jqxComboBox("multiSelect",t)},t.prototype.minLength=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("minLength");this.host.jqxComboBox("minLength",t)},t.prototype.openDelay=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("openDelay");this.host.jqxComboBox("openDelay",t)},t.prototype.popupZIndex=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("popupZIndex");this.host.jqxComboBox("popupZIndex",t)},t.prototype.placeHolder=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("placeHolder");this.host.jqxComboBox("placeHolder",t)},t.prototype.remoteAutoComplete=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("remoteAutoComplete");this.host.jqxComboBox("remoteAutoComplete",t)},t.prototype.remoteAutoCompleteDelay=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("remoteAutoCompleteDelay");this.host.jqxComboBox("remoteAutoCompleteDelay",t)},t.prototype.renderer=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("renderer");this.host.jqxComboBox("renderer",t)},t.prototype.renderSelectedItem=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("renderSelectedItem");this.host.jqxComboBox("renderSelectedItem",t)},t.prototype.rtl=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("rtl");this.host.jqxComboBox("rtl",t)},t.prototype.selectedIndex=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("selectedIndex");this.host.jqxComboBox("selectedIndex",t)},t.prototype.showArrow=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("showArrow");this.host.jqxComboBox("showArrow",t)},t.prototype.showCloseButtons=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("showCloseButtons");this.host.jqxComboBox("showCloseButtons",t)},t.prototype.searchMode=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("searchMode");this.host.jqxComboBox("searchMode",t)},t.prototype.search=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("search");this.host.jqxComboBox("search",t)},t.prototype.source=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("source");this.host.jqxComboBox("source",t)},t.prototype.scrollBarSize=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("scrollBarSize");this.host.jqxComboBox("scrollBarSize",t)},t.prototype.template=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("template");this.host.jqxComboBox("template",t)},t.prototype.theme=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("theme");this.host.jqxComboBox("theme",t)},t.prototype.validateSelection=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("validateSelection");this.host.jqxComboBox("validateSelection",t)},t.prototype.valueMember=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("valueMember");this.host.jqxComboBox("valueMember",t)},t.prototype.width=function(t){if(this.autoCreate&&!this.host&&this.createComponent(),t===undefined)return this.host.jqxComboBox("width");this.host.jqxComboBox("width",t)},t.prototype.addItem=function(t){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("addItem",t)},t.prototype.clearSelection=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("clearSelection")},t.prototype.clear=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("clear")},t.prototype.close=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("close")},t.prototype.checkIndex=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("checkIndex",t)},t.prototype.checkItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("checkItem",t)},t.prototype.checkAll=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("checkAll")},t.prototype.destroy=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("destroy")},t.prototype.disableItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("disableItem",t)},t.prototype.disableAt=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("disableAt",t)},t.prototype.enableItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("enableItem",t)},t.prototype.enableAt=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("enableAt",t)},t.prototype.ensureVisible=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("ensureVisible",t)},t.prototype.focus=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("focus")},t.prototype.getItem=function(t){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getItem",t)},t.prototype.getItemByValue=function(t){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getItemByValue",t)},t.prototype.getVisibleItems=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getVisibleItems")},t.prototype.getItems=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getItems")},t.prototype.getCheckedItems=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getCheckedItems")},t.prototype.getSelectedItem=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getSelectedItem")},t.prototype.getSelectedItems=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getSelectedItems")},t.prototype.getSelectedIndex=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("getSelectedIndex")},t.prototype.insertAt=function(t,e){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("insertAt",t,e)},t.prototype.isOpened=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("isOpened")},t.prototype.indeterminateIndex=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("indeterminateIndex",t)},t.prototype.indeterminateItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("indeterminateItem",t)},t.prototype.loadFromSelect=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("loadFromSelect",t)},t.prototype.open=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("open")},t.prototype.removeItem=function(t){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("removeItem",t)},t.prototype.removeAt=function(t){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("removeAt",t)},t.prototype.selectIndex=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("selectIndex",t)},t.prototype.selectItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("selectItem",t)},t.prototype.searchString=function(){return this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("searchString")},t.prototype.updateItem=function(t,e){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("updateItem",t,e)},t.prototype.updateAt=function(t,e){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("updateAt",t,e)},t.prototype.unselectIndex=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("unselectIndex",t)},t.prototype.unselectItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("unselectItem",t)},t.prototype.uncheckIndex=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("uncheckIndex",t)},t.prototype.uncheckItem=function(t){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("uncheckItem",t)},t.prototype.uncheckAll=function(){this.autoCreate&&!this.host&&this.createComponent(),this.host.jqxComboBox("uncheckAll")},t.prototype.val=function(t){return t!==undefined?this.host.jqxComboBox("val",t):this.host.jqxComboBox("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("bindingComplete",function(t){e.onBindingComplete.emit(t)}),this.host.on("checkChange",function(t){e.onCheckChange.emit(t)}),this.host.on("close",function(t){e.onClose.emit(t)}),this.host.on("change",function(t){e.onChange.emit(t),t.args&&null!==t.args.item&&e.onChangeCallback(t.args.item.value)}),this.host.on("open",function(t){e.onOpen.emit(t)}),this.host.on("select",function(t){e.onSelect.emit(t)}),this.host.on("unselect",function(t){e.onUnselect.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxComboBox",template:"<div><ng-content></ng-content></div>",providers:[s],changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationType:[{type:e.Input,args:["animationType"]}],attrAutoComplete:[{type:e.Input,args:["autoComplete"]}],attrAutoOpen:[{type:e.Input,args:["autoOpen"]}],attrAutoItemsHeight:[{type:e.Input,args:["autoItemsHeight"]}],attrAutoDropDownHeight:[{type:e.Input,args:["autoDropDownHeight"]}],attrCloseDelay:[{type:e.Input,args:["closeDelay"]}],attrCheckboxes:[{type:e.Input,args:["checkboxes"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrDisplayMember:[{type:e.Input,args:["displayMember"]}],attrDropDownHorizontalAlignment:[{type:e.Input,args:["dropDownHorizontalAlignment"]}],attrDropDownVerticalAlignment:[{type:e.Input,args:["dropDownVerticalAlignment"]}],attrDropDownHeight:[{type:e.Input,args:["dropDownHeight"]}],attrDropDownWidth:[{type:e.Input,args:["dropDownWidth"]}],attrEnableHover:[{type:e.Input,args:["enableHover"]}],attrEnableSelection:[{type:e.Input,args:["enableSelection"]}],attrEnableBrowserBoundsDetection:[{type:e.Input,args:["enableBrowserBoundsDetection"]}],attrItemHeight:[{type:e.Input,args:["itemHeight"]}],attrMultiSelect:[{type:e.Input,args:["multiSelect"]}],attrMinLength:[{type:e.Input,args:["minLength"]}],attrOpenDelay:[{type:e.Input,args:["openDelay"]}],attrPopupZIndex:[{type:e.Input,args:["popupZIndex"]}],attrPlaceHolder:[{type:e.Input,args:["placeHolder"]}],attrRemoteAutoComplete:[{type:e.Input,args:["remoteAutoComplete"]}],attrRemoteAutoCompleteDelay:[{type:e.Input,args:["remoteAutoCompleteDelay"]}],attrRenderer:[{type:e.Input,args:["renderer"]}],attrRenderSelectedItem:[{type:e.Input,args:["renderSelectedItem"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSelectedIndex:[{type:e.Input,args:["selectedIndex"]}],attrShowArrow:[{type:e.Input,args:["showArrow"]}],attrShowCloseButtons:[{type:e.Input,args:["showCloseButtons"]}],attrSearchMode:[{type:e.Input,args:["searchMode"]}],attrSearch:[{type:e.Input,args:["search"]}],attrSource:[{type:e.Input,args:["source"]}],attrScrollBarSize:[{type:e.Input,args:["scrollBarSize"]}],attrTemplate:[{type:e.Input,args:["template"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrValidateSelection:[{type:e.Input,args:["validateSelection"]}],attrValueMember:[{type:e.Input,args:["valueMember"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onBindingComplete:[{type:e.Output}],onCheckChange:[{type:e.Output}],onClose:[{type:e.Output}],onChange:[{type:e.Output}],onOpen:[{type:e.Output}],onSelect:[{type:e.Output}],onUnselect:[{type:e.Output}]},t}(),h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.FormsModule],declarations:[r],exports:[r]}]}],t}();t.jqxComboBoxComponent=r,t.jqxComboBoxModule=h,Object.defineProperty(t,"__esModule",{value:!0})});