-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart-webcomponents-angular-button.umd.min.js
25 lines (21 loc) · 27.3 KB
/
smart-webcomponents-angular-button.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.button';
!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/button",["exports","@angular/core","@angular/forms"],t):t(((e=e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].button={}),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}var l=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}(),a=window.Smart,u=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onClick=new t.EventEmitter,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-button"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clickMode",{get:function(){return this.nativeElement?this.nativeElement.clickMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.clickMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"content",{get:function(){return this.nativeElement?this.nativeElement.content:void 0},set:function(e){this.nativeElement&&(this.nativeElement.content=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,"innerHTML",{get:function(){return this.nativeElement?this.nativeElement.innerHTML:void 0},set:function(e){this.nativeElement&&(this.nativeElement.innerHTML=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,"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,"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,"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,"type",{get:function(){return this.nativeElement?this.nativeElement.type:void 0},set:function(e){this.nativeElement&&(this.nativeElement.type=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,"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,"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),a.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},n.prototype.ngOnDestroy=function(){this.unlisten()},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.clickHandler=function(t){e.onClick.emit(t)},e.nativeElement.addEventListener("click",e.eventHandlers.clickHandler)},n.prototype.unlisten=function(){this.eventHandlers.clickHandler&&this.nativeElement.removeEventListener("click",this.eventHandlers.clickHandler)},n.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],n.prototype,"animation",null),r([t.Input()],n.prototype,"clickMode",null),r([t.Input()],n.prototype,"content",null),r([t.Input()],n.prototype,"disabled",null),r([t.Input()],n.prototype,"innerHTML",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,"name",null),r([t.Input()],n.prototype,"readonly",null),r([t.Input()],n.prototype,"rightToLeft",null),r([t.Input()],n.prototype,"theme",null),r([t.Input()],n.prototype,"type",null),r([t.Input()],n.prototype,"value",null),r([t.Input()],n.prototype,"unfocusable",null),r([t.Output()],n.prototype,"onClick",void 0),n=r([t.Directive({exportAs:"smart-button",selector:"smart-button, [smart-button]"})],n)}(l),s=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onClick=new t.EventEmitter,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-repeat-button"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clickMode",{get:function(){return this.nativeElement?this.nativeElement.clickMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.clickMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"delay",{get:function(){return this.nativeElement?this.nativeElement.delay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.delay=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,"initialDelay",{get:function(){return this.nativeElement?this.nativeElement.initialDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.initialDelay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"innerHTML",{get:function(){return this.nativeElement?this.nativeElement.innerHTML:void 0},set:function(e){this.nativeElement&&(this.nativeElement.innerHTML=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,"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,"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,"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,"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,"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),a.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},n.prototype.ngOnDestroy=function(){this.unlisten()},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.clickHandler=function(t){e.onClick.emit(t)},e.nativeElement.addEventListener("click",e.eventHandlers.clickHandler)},n.prototype.unlisten=function(){this.eventHandlers.clickHandler&&this.nativeElement.removeEventListener("click",this.eventHandlers.clickHandler)},n.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],n.prototype,"animation",null),r([t.Input()],n.prototype,"clickMode",null),r([t.Input()],n.prototype,"delay",null),r([t.Input()],n.prototype,"disabled",null),r([t.Input()],n.prototype,"initialDelay",null),r([t.Input()],n.prototype,"innerHTML",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,"name",null),r([t.Input()],n.prototype,"readonly",null),r([t.Input()],n.prototype,"theme",null),r([t.Input()],n.prototype,"unfocusable",null),r([t.Input()],n.prototype,"value",null),r([t.Output()],n.prototype,"onClick",void 0),n=r([t.Directive({exportAs:"smart-repeat-button",selector:"smart-repeat-button, [smart-repeat-button]"})],n)}(l),c=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onChange=new t.EventEmitter,i.onCheckValue=new t.EventEmitter,i.onUncheckValue=new t.EventEmitter,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-toggle-button"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checked",{get:function(){return this.nativeElement?this.nativeElement.checked:void 0},set:function(e){this.nativeElement&&(this.nativeElement.checked=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clickMode",{get:function(){return this.nativeElement?this.nativeElement.clickMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.clickMode=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,"innerHTML",{get:function(){return this.nativeElement?this.nativeElement.innerHTML:void 0},set:function(e){this.nativeElement&&(this.nativeElement.innerHTML=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,"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,"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,"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,"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,"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),a.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},n.prototype.ngOnDestroy=function(){this.unlisten()},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.checkValueHandler=function(t){e.onCheckValue.emit(t)},e.nativeElement.addEventListener("checkValue",e.eventHandlers.checkValueHandler),e.eventHandlers.uncheckValueHandler=function(t){e.onUncheckValue.emit(t)},e.nativeElement.addEventListener("uncheckValue",e.eventHandlers.uncheckValueHandler)},n.prototype.unlisten=function(){this.eventHandlers.changeHandler&&this.nativeElement.removeEventListener("change",this.eventHandlers.changeHandler),this.eventHandlers.checkValueHandler&&this.nativeElement.removeEventListener("checkValue",this.eventHandlers.checkValueHandler),this.eventHandlers.uncheckValueHandler&&this.nativeElement.removeEventListener("uncheckValue",this.eventHandlers.uncheckValueHandler)},n.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],n.prototype,"animation",null),r([t.Input()],n.prototype,"checked",null),r([t.Input()],n.prototype,"clickMode",null),r([t.Input()],n.prototype,"disabled",null),r([t.Input()],n.prototype,"innerHTML",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,"name",null),r([t.Input()],n.prototype,"readonly",null),r([t.Input()],n.prototype,"theme",null),r([t.Input()],n.prototype,"unfocusable",null),r([t.Input()],n.prototype,"value",null),r([t.Output()],n.prototype,"onChange",void 0),r([t.Output()],n.prototype,"onCheckValue",void 0),r([t.Output()],n.prototype,"onUncheckValue",void 0),n=r([t.Directive({exportAs:"smart-toggle-button",selector:"smart-toggle-button, [smart-toggle-button]"})],n)}(l),m={provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return p})),multi:!0},p=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._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-power-button"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checked",{get:function(){return this.nativeElement?this.nativeElement.checked:void 0},set:function(e){this.nativeElement&&(this.nativeElement.checked=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clickMode",{get:function(){return this.nativeElement?this.nativeElement.clickMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.clickMode=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,"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,"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,"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,"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,"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,"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),a.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(){return this.nativeElement?this.nativeElement.value:null},set:function(e){this.nativeElement&&this.writeValue(e)},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(e){var t=this,n=null==e?"":e;t.nativeElement.whenRendered((function(){t.value=n,!1===t._initialChange&&t._onChange(t.value)}))},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.changeModelHandler=function(t){e._initialChange=!1,e._onChange(e.nativeElement.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.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,"animation",null),r([t.Input()],n.prototype,"checked",null),r([t.Input()],n.prototype,"clickMode",null),r([t.Input()],n.prototype,"disabled",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,"name",null),r([t.Input()],n.prototype,"readonly",null),r([t.Input()],n.prototype,"theme",null),r([t.Input()],n.prototype,"unfocusable",null),r([t.Input()],n.prototype,"value",null),r([t.Output()],n.prototype,"onChange",void 0),n=r([t.Directive({exportAs:"smart-power-button",selector:"smart-power-button, [smart-power-button]",providers:[m]})],n)}(l),v=function(){function e(){}return e=r([t.NgModule({declarations:[u,s,c,p],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[u,s,c,p]})],e)}();e.ButtonComponent=u,e.ButtonModule=v,e.PowerButtonComponent=p,e.RepeatButtonComponent=s,e.Smart=a,e.ToggleButtonComponent=c,e.ɵa=l,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=smart-webcomponents-angular-button.umd.min.js.map