forked from HTMLElements/smart-webcomponents-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmart-webcomponents-angular-combobox.umd.min.js
25 lines (21 loc) · 39.8 KB
/
smart-webcomponents-angular-combobox.umd.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if (!window['Smart']) {
window['Smart'] = { RenderMode: 'manual' };
}
else {
window['Smart'].RenderMode = 'manual';
}
import './../source/modules/smart.combobox';
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("smart-webcomponents-angular/combobox",["exports","@angular/core","@angular/forms"],t):t(((e=e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].combobox={}),e.ng.core,e.ng.forms)}(this,(function(e,t,n){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r(e,t,n,i){var o,r=arguments.length,l=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l}function l(e,t,n,i){return new(n||(n=Promise))((function(o,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function a(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((i=i.apply(e,t||[])).next())}))}function a(e,t){var n,i,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,i=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){l.label=r[1];break}if(6===r[0]&&l.label<o[1]){l.label=o[1],o=r;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(r);break}o[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}var s=function(){function e(e){this.onCreate=new t.EventEmitter,this.onReady=new t.EventEmitter,this.onAttach=new t.EventEmitter,this.onDetach=new t.EventEmitter;var n=this;this.nativeElement=e.nativeElement,n.nativeElement.onAttached=function(){n.onAttach.emit(n.nativeElement)},n.nativeElement.onDetached=function(){n.onDetach.emit(n.nativeElement)}}return e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.removeEventListener(e,t,n)},e.prototype.dispatchEvent=function(e){return this.nativeElement.dispatchEvent(e)},e.prototype.blur=function(){this.nativeElement.blur()},e.prototype.click=function(){this.nativeElement.click()},e.prototype.focus=function(e){this.nativeElement.focus(e)},Object.defineProperty(e.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!0,configurable:!0}),r([t.Output()],e.prototype,"onCreate",void 0),r([t.Output()],e.prototype,"onReady",void 0),r([t.Output()],e.prototype,"onAttach",void 0),r([t.Output()],e.prototype,"onDetach",void 0),r([t.Input()],e.prototype,"locale",null),r([t.Input()],e.prototype,"localizeFormatFunction",null),r([t.Input()],e.prototype,"messages",null),r([t.Input()],e.prototype,"rightToLeft",null),r([t.Input()],e.prototype,"theme",null),e}(),u=window.Smart,p={provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return c})),multi:!0},c=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i._onChange=function(){},i._onTouched=function(){},i.onChange=new t.EventEmitter,i.onClose=new t.EventEmitter,i.onClosing=new t.EventEmitter,i.onItemClick=new t.EventEmitter,i.onOpen=new t.EventEmitter,i.onOpening=new t.EventEmitter,i.onResizeStart=new t.EventEmitter,i.onResizeEnd=new t.EventEmitter,i.onScrollBottomReached=new t.EventEmitter,i.onScrollTopReached=new t.EventEmitter,i.onTokenClick=new t.EventEmitter,i._initialChange=!0,i.nativeElement=n.nativeElement,i}return o(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-combo-box"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"autoCloseDelay",{get:function(){return this.nativeElement?this.nativeElement.autoCloseDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoCloseDelay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoComplete",{get:function(){return this.nativeElement?this.nativeElement.autoComplete:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoComplete=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoCompleteDelay",{get:function(){return this.nativeElement?this.nativeElement.autoCompleteDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoCompleteDelay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoOpenShortcutKey",{get:function(){return this.nativeElement?this.nativeElement.autoOpenShortcutKey:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoOpenShortcutKey=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataSource",{get:function(){return this.nativeElement?this.nativeElement.dataSource:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dataSource=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayLoadingIndicator",{get:function(){return this.nativeElement?this.nativeElement.displayLoadingIndicator:void 0},set:function(e){this.nativeElement&&(this.nativeElement.displayLoadingIndicator=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayMember",{get:function(){return this.nativeElement?this.nativeElement.displayMember:void 0},set:function(e){this.nativeElement&&(this.nativeElement.displayMember=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownAppendTo",{get:function(){return this.nativeElement?this.nativeElement.dropDownAppendTo:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownAppendTo=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownButtonPosition",{get:function(){return this.nativeElement?this.nativeElement.dropDownButtonPosition:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownButtonPosition=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownHeight",{get:function(){return this.nativeElement?this.nativeElement.dropDownHeight:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownMaxHeight",{get:function(){return this.nativeElement?this.nativeElement.dropDownMaxHeight:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownMaxHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownMaxWidth",{get:function(){return this.nativeElement?this.nativeElement.dropDownMaxWidth:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownMaxWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownMinHeight",{get:function(){return this.nativeElement?this.nativeElement.dropDownMinHeight:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownMinHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownMinWidth",{get:function(){return this.nativeElement?this.nativeElement.dropDownMinWidth:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownMinWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownOpenMode",{get:function(){return this.nativeElement?this.nativeElement.dropDownOpenMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownOpenMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownOverlay",{get:function(){return this.nativeElement?this.nativeElement.dropDownOverlay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownOverlay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownPlaceholder",{get:function(){return this.nativeElement?this.nativeElement.dropDownPlaceholder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownPlaceholder=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownPosition",{get:function(){return this.nativeElement?this.nativeElement.dropDownPosition:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownPosition=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownWidth",{get:function(){return this.nativeElement?this.nativeElement.dropDownWidth:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dropDownWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"escKeyMode",{get:function(){return this.nativeElement?this.nativeElement.escKeyMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.escKeyMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterable",{get:function(){return this.nativeElement?this.nativeElement.filterable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.filterable=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterInputPlaceholder",{get:function(){return this.nativeElement?this.nativeElement.filterInputPlaceholder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.filterInputPlaceholder=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterMode",{get:function(){return this.nativeElement?this.nativeElement.filterMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.filterMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"grouped",{get:function(){return this.nativeElement?this.nativeElement.grouped:void 0},set:function(e){this.nativeElement&&(this.nativeElement.grouped=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"groupMember",{get:function(){return this.nativeElement?this.nativeElement.groupMember:void 0},set:function(e){this.nativeElement&&(this.nativeElement.groupMember=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hint",{get:function(){return this.nativeElement?this.nativeElement.hint:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hint=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"horizontalScrollBarVisibility",{get:function(){return this.nativeElement?this.nativeElement.horizontalScrollBarVisibility:void 0},set:function(e){this.nativeElement&&(this.nativeElement.horizontalScrollBarVisibility=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputMember",{get:function(){return this.nativeElement?this.nativeElement.inputMember:void 0},set:function(e){this.nativeElement&&(this.nativeElement.inputMember=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputPurpose",{get:function(){return this.nativeElement?this.nativeElement.inputPurpose:void 0},set:function(e){this.nativeElement&&(this.nativeElement.inputPurpose=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"incrementalSearchDelay",{get:function(){return this.nativeElement?this.nativeElement.incrementalSearchDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.incrementalSearchDelay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"incrementalSearchMode",{get:function(){return this.nativeElement?this.nativeElement.incrementalSearchMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.incrementalSearchMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemHeight",{get:function(){return this.nativeElement?this.nativeElement.itemHeight:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemMeasureMode",{get:function(){return this.nativeElement?this.nativeElement.itemMeasureMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemMeasureMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return this.nativeElement?this.nativeElement.items:void 0},set:function(e){this.nativeElement&&(this.nativeElement.items=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemTemplate",{get:function(){return this.nativeElement?this.nativeElement.itemTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){return this.nativeElement?this.nativeElement.label:void 0},set:function(e){this.nativeElement&&(this.nativeElement.label=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"loadingIndicatorPlaceholder",{get:function(){return this.nativeElement?this.nativeElement.loadingIndicatorPlaceholder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.loadingIndicatorPlaceholder=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"loadingIndicatorPosition",{get:function(){return this.nativeElement?this.nativeElement.loadingIndicatorPosition:void 0},set:function(e){this.nativeElement&&(this.nativeElement.loadingIndicatorPosition=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minLength",{get:function(){return this.nativeElement?this.nativeElement.minLength:void 0},set:function(e){this.nativeElement&&(this.nativeElement.minLength=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxLength",{get:function(){return this.nativeElement?this.nativeElement.maxLength:void 0},set:function(e){this.nativeElement&&(this.nativeElement.maxLength=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.nativeElement?this.nativeElement.name:void 0},set:function(e){this.nativeElement&&(this.nativeElement.name=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"opened",{get:function(){return this.nativeElement?this.nativeElement.opened:void 0},set:function(e){this.nativeElement&&(this.nativeElement.opened=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this.nativeElement?this.nativeElement.placeholder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.placeholder=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"resizeIndicator",{get:function(){return this.nativeElement?this.nativeElement.resizeIndicator:void 0},set:function(e){this.nativeElement&&(this.nativeElement.resizeIndicator=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"resizeMode",{get:function(){return this.nativeElement?this.nativeElement.resizeMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.resizeMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectionDisplayMode",{get:function(){return this.nativeElement?this.nativeElement.selectionDisplayMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selectionDisplayMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndexes",{get:function(){return this.nativeElement?this.nativeElement.selectedIndexes:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selectedIndexes=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedValues",{get:function(){return this.nativeElement?this.nativeElement.selectedValues:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selectedValues=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectionMode",{get:function(){return this.nativeElement?this.nativeElement.selectionMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selectionMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sorted",{get:function(){return this.nativeElement?this.nativeElement.sorted:void 0},set:function(e){this.nativeElement&&(this.nativeElement.sorted=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sortDirection",{get:function(){return this.nativeElement?this.nativeElement.sortDirection:void 0},set:function(e){this.nativeElement&&(this.nativeElement.sortDirection=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tokenTemplate",{get:function(){return this.nativeElement?this.nativeElement.tokenTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tokenTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"unfocusable",{get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.nativeElement?this.nativeElement.value:void 0},set:function(e){this.nativeElement&&(this.nativeElement.value=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueMember",{get:function(){return this.nativeElement?this.nativeElement.valueMember:void 0},set:function(e){this.nativeElement&&(this.nativeElement.valueMember=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalScrollBarVisibility",{get:function(){return this.nativeElement?this.nativeElement.verticalScrollBarVisibility:void 0},set:function(e){this.nativeElement&&(this.nativeElement.verticalScrollBarVisibility=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"virtualized",{get:function(){return this.nativeElement?this.nativeElement.virtualized:void 0},set:function(e){this.nativeElement&&(this.nativeElement.virtualized=e)},enumerable:!0,configurable:!0}),n.prototype.appendChild=function(e){return l(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,function(){return new Promise((function(n){t.nativeElement.whenRendered((function(){var i=t.nativeElement.appendChild(e);n(i)}))}))}()];case 1:return[2,n.sent()]}}))}))},n.prototype.clearItems=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.clearItems():this.nativeElement.whenRendered((function(){e.nativeElement.clearItems()}))},n.prototype.clearSelection=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.clearSelection():this.nativeElement.whenRendered((function(){e.nativeElement.clearSelection()}))},n.prototype.close=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.close():this.nativeElement.whenRendered((function(){e.nativeElement.close()}))},n.prototype.ensureVisible=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.ensureVisible(e):this.nativeElement.whenRendered((function(){t.nativeElement.ensureVisible(e)}))},n.prototype.getItem=function(e){return l(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,function(){return new Promise((function(n){t.nativeElement.whenRendered((function(){var i=t.nativeElement.getItem(e);n(i)}))}))}()];case 1:return[2,n.sent()]}}))}))},n.prototype.insert=function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.insert(e,t):this.nativeElement.whenRendered((function(){n.nativeElement.insert(e,t)}))},n.prototype.insertBefore=function(e,t){return l(this,void 0,void 0,(function(){var n=this;return a(this,(function(i){switch(i.label){case 0:return[4,function(){return new Promise((function(i){n.nativeElement.whenRendered((function(){var o=n.nativeElement.insertBefore(e,t);i(o)}))}))}()];case 1:return[2,i.sent()]}}))}))},n.prototype.open=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.open():this.nativeElement.whenRendered((function(){e.nativeElement.open()}))},n.prototype.removeAt=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.removeAt(e):this.nativeElement.whenRendered((function(){t.nativeElement.removeAt(e)}))},n.prototype.removeChild=function(e){return l(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,function(){return new Promise((function(n){t.nativeElement.whenRendered((function(){var i=t.nativeElement.removeChild(e);n(i)}))}))}()];case 1:return[2,n.sent()]}}))}))},n.prototype.select=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.select(e):this.nativeElement.whenRendered((function(){t.nativeElement.select(e)}))},n.prototype.unselect=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.unselect(e):this.nativeElement.whenRendered((function(){t.nativeElement.unselect(e)}))},n.prototype.update=function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.update(e,t):this.nativeElement.whenRendered((function(){n.nativeElement.update(e,t)}))},Object.defineProperty(n.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),u.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},n.prototype.ngOnDestroy=function(){this.unlisten()},Object.defineProperty(n.prototype,"ngValue",{get:function(){if(!this.nativeElement)return null;if(this.selectedValues&&this.selectedValues.length>0)return 1===this.selectedValues.length?this.nativeElement.selectedValues[0]:this.nativeElement.selectedValues;var e=this.nativeElement.querySelector("input");return e?e.value:null},set:function(e){this.nativeElement&&this.writeValue(e)},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(e){var t=this,n=this,i=null==e?"":e;n.nativeElement.whenRendered((function(){if(n.nativeElement.$.listBox.isInitialized=!n._initialChange,n.clearSelection(),Array.isArray(i)?e.forEach((function(e){return t.select(e)})):n.select(i),n.nativeElement.$.listBox.isInitialized=!0,n.nativeElement._applySelection(),!1===n._initialChange)if(n.selectedValues&&n.selectedValues.length>1)n._onChange(n.selectedValues);else{var o=n.nativeElement.querySelector("input");n._onChange(n.selectedValues&&n.selectedValues.length>0?n.selectedValues[0]:o?o.value:null)}}))},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},n.prototype.listen=function(){var e=this;e.eventHandlers.changeHandler=function(t){e.onChange.emit(t)},e.nativeElement.addEventListener("change",e.eventHandlers.changeHandler),e.eventHandlers.closeHandler=function(t){e.onClose.emit(t)},e.nativeElement.addEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.closingHandler=function(t){e.onClosing.emit(t)},e.nativeElement.addEventListener("closing",e.eventHandlers.closingHandler),e.eventHandlers.itemClickHandler=function(t){e.onItemClick.emit(t)},e.nativeElement.addEventListener("itemClick",e.eventHandlers.itemClickHandler),e.eventHandlers.openHandler=function(t){e.onOpen.emit(t)},e.nativeElement.addEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.openingHandler=function(t){e.onOpening.emit(t)},e.nativeElement.addEventListener("opening",e.eventHandlers.openingHandler),e.eventHandlers.resizeStartHandler=function(t){e.onResizeStart.emit(t)},e.nativeElement.addEventListener("resizeStart",e.eventHandlers.resizeStartHandler),e.eventHandlers.resizeEndHandler=function(t){e.onResizeEnd.emit(t)},e.nativeElement.addEventListener("resizeEnd",e.eventHandlers.resizeEndHandler),e.eventHandlers.scrollBottomReachedHandler=function(t){e.onScrollBottomReached.emit(t)},e.nativeElement.addEventListener("scrollBottomReached",e.eventHandlers.scrollBottomReachedHandler),e.eventHandlers.scrollTopReachedHandler=function(t){e.onScrollTopReached.emit(t)},e.nativeElement.addEventListener("scrollTopReached",e.eventHandlers.scrollTopReachedHandler),e.eventHandlers.tokenClickHandler=function(t){e.onTokenClick.emit(t)},e.nativeElement.addEventListener("tokenClick",e.eventHandlers.tokenClickHandler),e.eventHandlers.changeModelHandler=function(t){e._initialChange=!1,e._onChange(e.nativeElement.selectedValues.length>0?e.nativeElement.selectedValues.length>1?e.nativeElement.selectedValues:e.nativeElement.selectedValues[0]:e.nativeElement.querySelector("input").value)},e.eventHandlers.blurModelHandler=function(t){e._onTouched()},e.nativeElement.whenRendered((function(){e.nativeElement.querySelector("input")&&(e.eventHandlers.keyupModelHandler=function(t){setTimeout((function(){e.eventHandlers.changeModelHandler(t)}),50)},e.nativeElement.querySelector("input").addEventListener("keyup",e.eventHandlers.keyupModelHandler))})),e.nativeElement.addEventListener("change",e.eventHandlers.changeModelHandler),e.nativeElement.addEventListener("blur",e.eventHandlers.blurModelHandler)},n.prototype.unlisten=function(){this.eventHandlers.changeHandler&&this.nativeElement.removeEventListener("change",this.eventHandlers.changeHandler),this.eventHandlers.closeHandler&&this.nativeElement.removeEventListener("close",this.eventHandlers.closeHandler),this.eventHandlers.closingHandler&&this.nativeElement.removeEventListener("closing",this.eventHandlers.closingHandler),this.eventHandlers.itemClickHandler&&this.nativeElement.removeEventListener("itemClick",this.eventHandlers.itemClickHandler),this.eventHandlers.openHandler&&this.nativeElement.removeEventListener("open",this.eventHandlers.openHandler),this.eventHandlers.openingHandler&&this.nativeElement.removeEventListener("opening",this.eventHandlers.openingHandler),this.eventHandlers.resizeStartHandler&&this.nativeElement.removeEventListener("resizeStart",this.eventHandlers.resizeStartHandler),this.eventHandlers.resizeEndHandler&&this.nativeElement.removeEventListener("resizeEnd",this.eventHandlers.resizeEndHandler),this.eventHandlers.scrollBottomReachedHandler&&this.nativeElement.removeEventListener("scrollBottomReached",this.eventHandlers.scrollBottomReachedHandler),this.eventHandlers.scrollTopReachedHandler&&this.nativeElement.removeEventListener("scrollTopReached",this.eventHandlers.scrollTopReachedHandler),this.eventHandlers.tokenClickHandler&&this.nativeElement.removeEventListener("tokenClick",this.eventHandlers.tokenClickHandler),this.eventHandlers.changeModelHandler&&(this.nativeElement.removeEventListener("change",this.eventHandlers.changeModelHandler),this.nativeElement.querySelector("input")&&this.nativeElement.querySelector("input").removeEventListener("keyup",this.eventHandlers.keyupModelHandler)),this.eventHandlers.blurModelHandler&&this.nativeElement.removeEventListener("blur",this.eventHandlers.blurModelHandler)},n.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],n.prototype,"autoCloseDelay",null),r([t.Input()],n.prototype,"autoComplete",null),r([t.Input()],n.prototype,"autoCompleteDelay",null),r([t.Input()],n.prototype,"autoOpenShortcutKey",null),r([t.Input()],n.prototype,"dataSource",null),r([t.Input()],n.prototype,"disabled",null),r([t.Input()],n.prototype,"displayLoadingIndicator",null),r([t.Input()],n.prototype,"displayMember",null),r([t.Input()],n.prototype,"dropDownAppendTo",null),r([t.Input()],n.prototype,"dropDownButtonPosition",null),r([t.Input()],n.prototype,"dropDownHeight",null),r([t.Input()],n.prototype,"dropDownMaxHeight",null),r([t.Input()],n.prototype,"dropDownMaxWidth",null),r([t.Input()],n.prototype,"dropDownMinHeight",null),r([t.Input()],n.prototype,"dropDownMinWidth",null),r([t.Input()],n.prototype,"dropDownOpenMode",null),r([t.Input()],n.prototype,"dropDownOverlay",null),r([t.Input()],n.prototype,"dropDownPlaceholder",null),r([t.Input()],n.prototype,"dropDownPosition",null),r([t.Input()],n.prototype,"dropDownWidth",null),r([t.Input()],n.prototype,"escKeyMode",null),r([t.Input()],n.prototype,"filterable",null),r([t.Input()],n.prototype,"filterInputPlaceholder",null),r([t.Input()],n.prototype,"filterMode",null),r([t.Input()],n.prototype,"grouped",null),r([t.Input()],n.prototype,"groupMember",null),r([t.Input()],n.prototype,"hint",null),r([t.Input()],n.prototype,"horizontalScrollBarVisibility",null),r([t.Input()],n.prototype,"inputMember",null),r([t.Input()],n.prototype,"inputPurpose",null),r([t.Input()],n.prototype,"incrementalSearchDelay",null),r([t.Input()],n.prototype,"incrementalSearchMode",null),r([t.Input()],n.prototype,"itemHeight",null),r([t.Input()],n.prototype,"itemMeasureMode",null),r([t.Input()],n.prototype,"items",null),r([t.Input()],n.prototype,"itemTemplate",null),r([t.Input()],n.prototype,"label",null),r([t.Input()],n.prototype,"loadingIndicatorPlaceholder",null),r([t.Input()],n.prototype,"loadingIndicatorPosition",null),r([t.Input()],n.prototype,"locale",null),r([t.Input()],n.prototype,"localizeFormatFunction",null),r([t.Input()],n.prototype,"messages",null),r([t.Input()],n.prototype,"minLength",null),r([t.Input()],n.prototype,"maxLength",null),r([t.Input()],n.prototype,"name",null),r([t.Input()],n.prototype,"opened",null),r([t.Input()],n.prototype,"placeholder",null),r([t.Input()],n.prototype,"readonly",null),r([t.Input()],n.prototype,"rightToLeft",null),r([t.Input()],n.prototype,"resizeIndicator",null),r([t.Input()],n.prototype,"resizeMode",null),r([t.Input()],n.prototype,"selectionDisplayMode",null),r([t.Input()],n.prototype,"selectedIndexes",null),r([t.Input()],n.prototype,"selectedValues",null),r([t.Input()],n.prototype,"selectionMode",null),r([t.Input()],n.prototype,"sorted",null),r([t.Input()],n.prototype,"sortDirection",null),r([t.Input()],n.prototype,"theme",null),r([t.Input()],n.prototype,"tokenTemplate",null),r([t.Input()],n.prototype,"unfocusable",null),r([t.Input()],n.prototype,"value",null),r([t.Input()],n.prototype,"valueMember",null),r([t.Input()],n.prototype,"verticalScrollBarVisibility",null),r([t.Input()],n.prototype,"virtualized",null),r([t.Output()],n.prototype,"onChange",void 0),r([t.Output()],n.prototype,"onClose",void 0),r([t.Output()],n.prototype,"onClosing",void 0),r([t.Output()],n.prototype,"onItemClick",void 0),r([t.Output()],n.prototype,"onOpen",void 0),r([t.Output()],n.prototype,"onOpening",void 0),r([t.Output()],n.prototype,"onResizeStart",void 0),r([t.Output()],n.prototype,"onResizeEnd",void 0),r([t.Output()],n.prototype,"onScrollBottomReached",void 0),r([t.Output()],n.prototype,"onScrollTopReached",void 0),r([t.Output()],n.prototype,"onTokenClick",void 0),n=r([t.Directive({exportAs:"smart-combo-box",selector:"smart-combo-box, [smart-combo-box]",providers:[p]})],n)}(s),m=function(e){function n(t){var n=e.call(this,t)||this;return n.eventHandlers=[],n.nativeElement=t.nativeElement,n}return o(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-list-item"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"alternationIndex",{get:function(){return this.nativeElement?this.nativeElement.alternationIndex:void 0},set:function(e){this.nativeElement&&(this.nativeElement.alternationIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this.nativeElement?this.nativeElement.color:void 0},set:function(e){this.nativeElement&&(this.nativeElement.color=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayMode",{get:function(){return this.nativeElement?this.nativeElement.displayMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.displayMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"grouped",{get:function(){return this.nativeElement?this.nativeElement.grouped:void 0},set:function(e){this.nativeElement&&(this.nativeElement.grouped=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this.nativeElement?this.nativeElement.selected:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selected=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.nativeElement?this.nativeElement.value:void 0},set:function(e){this.nativeElement&&(this.nativeElement.value=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){return this.nativeElement?this.nativeElement.label:void 0},set:function(e){this.nativeElement&&(this.nativeElement.label=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"details",{get:function(){return this.nativeElement?this.nativeElement.details:void 0},set:function(e){this.nativeElement&&(this.nativeElement.details=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"group",{get:function(){return this.nativeElement?this.nativeElement.group:void 0},set:function(e){this.nativeElement&&(this.nativeElement.group=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hidden",{get:function(){return this.nativeElement?this.nativeElement.hidden:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hidden=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)}))},n.prototype.ngOnDestroy=function(){},n.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},n.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],n.prototype,"alternationIndex",null),r([t.Input()],n.prototype,"color",null),r([t.Input()],n.prototype,"displayMode",null),r([t.Input()],n.prototype,"grouped",null),r([t.Input()],n.prototype,"selected",null),r([t.Input()],n.prototype,"value",null),r([t.Input()],n.prototype,"label",null),r([t.Input()],n.prototype,"details",null),r([t.Input()],n.prototype,"group",null),r([t.Input()],n.prototype,"hidden",null),r([t.Input()],n.prototype,"readonly",null),n=r([t.Directive({exportAs:"smart-list-item",selector:"smart-list-item, [smart-list-item]"})],n)}(s),v=function(e){function n(t){var n=e.call(this,t)||this;return n.eventHandlers=[],n.nativeElement=t.nativeElement,n}return o(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-list-items-group"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"label",{get:function(){return this.nativeElement?this.nativeElement.label:void 0},set:function(e){this.nativeElement&&(this.nativeElement.label=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)}))},n.prototype.ngOnDestroy=function(){},n.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},n.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],n.prototype,"label",null),n=r([t.Directive({exportAs:"smart-list-items-group",selector:"smart-list-items-group, [smart-list-items-group]"})],n)}(s),d=function(){function e(){}return e=r([t.NgModule({declarations:[c,m,v],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[c,m,v]})],e)}();e.ComboBoxComponent=c,e.ComboBoxModule=d,e.ListItemComponent=m,e.ListItemsGroupComponent=v,e.Smart=u,e.ɵa=s,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=smart-webcomponents-angular-combobox.umd.min.js.map