-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart-webcomponents-angular-calendar.umd.min.js
25 lines (21 loc) · 26.9 KB
/
smart-webcomponents-angular-calendar.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.calendar';
!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/calendar",["exports","@angular/core","@angular/forms"],t):t(((e=e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].calendar={}),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,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function a(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{s(i.next(e))}catch(e){a(e)}}function l(e){try{s(i.throw(e))}catch(e){a(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(r,l)}s((i=i.apply(e,t||[])).next())}))}function r(e,t){var n,i,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(o=r.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(6===a[0]&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,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}),o([t.Output()],e.prototype,"onCreate",void 0),o([t.Output()],e.prototype,"onReady",void 0),o([t.Output()],e.prototype,"onAttach",void 0),o([t.Output()],e.prototype,"onDetach",void 0),o([t.Input()],e.prototype,"locale",null),o([t.Input()],e.prototype,"localizeFormatFunction",null),o([t.Input()],e.prototype,"messages",null),o([t.Input()],e.prototype,"rightToLeft",null),o([t.Input()],e.prototype,"theme",null),e}(),s=window.Smart,u={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.onDisplayModeChanging=new t.EventEmitter,i.onDisplayModeChange=new t.EventEmitter,i.onNavigationChanging=new t.EventEmitter,i.onNavigationChange=new t.EventEmitter,i.onOpen=new t.EventEmitter,i.onClose=new t.EventEmitter,i._initialChange=!0,i.nativeElement=n.nativeElement,i}return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-calendar"),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,"animationSettings",{get:function(){return this.nativeElement?this.nativeElement.animationSettings:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animationSettings=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calendarMode",{get:function(){return this.nativeElement?this.nativeElement.calendarMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.calendarMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dayNameFormat",{get:function(){return this.nativeElement?this.nativeElement.dayNameFormat:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dayNameFormat=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dateFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.dateFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dateFormatFunction=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,"disableAutoNavigation",{get:function(){return this.nativeElement?this.nativeElement.disableAutoNavigation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disableAutoNavigation=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,"displayModeView",{get:function(){return this.nativeElement?this.nativeElement.displayModeView:void 0},set:function(e){this.nativeElement&&(this.nativeElement.displayModeView=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,"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,"firstDayOfWeek",{get:function(){return this.nativeElement?this.nativeElement.firstDayOfWeek:void 0},set:function(e){this.nativeElement&&(this.nativeElement.firstDayOfWeek=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"footerTemplate",{get:function(){return this.nativeElement?this.nativeElement.footerTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.footerTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerTemplate",{get:function(){return this.nativeElement?this.nativeElement.headerTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.headerTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideDayNames",{get:function(){return this.nativeElement?this.nativeElement.hideDayNames:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideDayNames=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideOtherMonthDays",{get:function(){return this.nativeElement?this.nativeElement.hideOtherMonthDays:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideOtherMonthDays=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideTooltipArrow",{get:function(){return this.nativeElement?this.nativeElement.hideTooltipArrow:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideTooltipArrow=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"importantDates",{get:function(){return this.nativeElement?this.nativeElement.importantDates:void 0},set:function(e){this.nativeElement&&(this.nativeElement.importantDates=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"importantDatesTemplate",{get:function(){return this.nativeElement?this.nativeElement.importantDatesTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.importantDatesTemplate=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,"max",{get:function(){return this.nativeElement?this.nativeElement.max:void 0},set:function(e){this.nativeElement&&(this.nativeElement.max=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,"min",{get:function(){return this.nativeElement?this.nativeElement.min:void 0},set:function(e){this.nativeElement&&(this.nativeElement.min=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"months",{get:function(){return this.nativeElement?this.nativeElement.months:void 0},set:function(e){this.nativeElement&&(this.nativeElement.months=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"monthNameFormat",{get:function(){return this.nativeElement?this.nativeElement.monthNameFormat:void 0},set:function(e){this.nativeElement&&(this.nativeElement.monthNameFormat=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,"restrictedDates",{get:function(){return this.nativeElement?this.nativeElement.restrictedDates:void 0},set:function(e){this.nativeElement&&(this.nativeElement.restrictedDates=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,"scrollButtonsNavigationMode",{get:function(){return this.nativeElement?this.nativeElement.scrollButtonsNavigationMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.scrollButtonsNavigationMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollButtonsPosition",{get:function(){return this.nativeElement?this.nativeElement.scrollButtonsPosition:void 0},set:function(e){this.nativeElement&&(this.nativeElement.scrollButtonsPosition=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedDates",{get:function(){return this.nativeElement?this.nativeElement.selectedDates:void 0},set:function(e){this.nativeElement&&(this.nativeElement.selectedDates=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,"spinButtonsDelay",{get:function(){return this.nativeElement?this.nativeElement.spinButtonsDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.spinButtonsDelay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"spinButtonsInitialDelay",{get:function(){return this.nativeElement?this.nativeElement.spinButtonsInitialDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.spinButtonsInitialDelay=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,"titleTemplate",{get:function(){return this.nativeElement?this.nativeElement.titleTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.titleTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tooltip",{get:function(){return this.nativeElement?this.nativeElement.tooltip:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltip=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tooltipArrow",{get:function(){return this.nativeElement?this.nativeElement.tooltipArrow:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipArrow=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tooltipDelay",{get:function(){return this.nativeElement?this.nativeElement.tooltipDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipDelay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tooltipOffset",{get:function(){return this.nativeElement?this.nativeElement.tooltipOffset:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipOffset=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tooltipPosition",{get:function(){return this.nativeElement?this.nativeElement.tooltipPosition:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipPosition=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tooltipTemplate",{get:function(){return this.nativeElement?this.nativeElement.tooltipTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.tooltipTemplate=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,"view",{get:function(){return this.nativeElement?this.nativeElement.view:void 0},set:function(e){this.nativeElement&&(this.nativeElement.view=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"viewSections",{get:function(){return this.nativeElement?this.nativeElement.viewSections:void 0},set:function(e){this.nativeElement&&(this.nativeElement.viewSections=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"weekNumbers",{get:function(){return this.nativeElement?this.nativeElement.weekNumbers:void 0},set:function(e){this.nativeElement&&(this.nativeElement.weekNumbers=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"weeks",{get:function(){return this.nativeElement?this.nativeElement.weeks:void 0},set:function(e){this.nativeElement&&(this.nativeElement.weeks=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"yearFormat",{get:function(){return this.nativeElement?this.nativeElement.yearFormat:void 0},set:function(e){this.nativeElement&&(this.nativeElement.yearFormat=e)},enumerable:!0,configurable:!0}),n.prototype.clearSelection=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.clearSelection():this.nativeElement.whenRendered((function(){e.nativeElement.clearSelection()}))},n.prototype.navigate=function(e){return a(this,void 0,void 0,(function(){var t=this;return r(this,(function(n){switch(n.label){case 0:return[4,function(){return new Promise((function(n){t.nativeElement.whenRendered((function(){var i=t.nativeElement.navigate(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.today=function(){return a(this,void 0,void 0,(function(){var e=this;return r(this,(function(t){switch(t.label){case 0:return[4,function(){return new Promise((function(t){e.nativeElement.whenRendered((function(){var n=e.nativeElement.today();t(n)}))}))}()];case 1:return[2,t.sent()]}}))}))},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),s.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.selectedDates&&this.selectedDates.length>0?1===this.nativeElement.selectedDates.length?this.nativeElement.selectedDates[0]:this.nativeElement.selectedDates: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(){n.nativeElement.isInitialized=!n._initialChange,n.clearSelection(),Array.isArray(i)?e.forEach((function(e){return t.select(e)})):n.select(i),n.nativeElement.isInitialized=!0,!1===n._initialChange&&(n.selectedDates&&n.selectedDates.length>1?n._onChange(n.selectedDates):n._onChange(n.selectedDates&&n.selectedDates.length>0?n.selectedDates[0]: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.displayModeChangingHandler=function(t){e.onDisplayModeChanging.emit(t)},e.nativeElement.addEventListener("displayModeChanging",e.eventHandlers.displayModeChangingHandler),e.eventHandlers.displayModeChangeHandler=function(t){e.onDisplayModeChange.emit(t)},e.nativeElement.addEventListener("displayModeChange",e.eventHandlers.displayModeChangeHandler),e.eventHandlers.navigationChangingHandler=function(t){e.onNavigationChanging.emit(t)},e.nativeElement.addEventListener("navigationChanging",e.eventHandlers.navigationChangingHandler),e.eventHandlers.navigationChangeHandler=function(t){e.onNavigationChange.emit(t)},e.nativeElement.addEventListener("navigationChange",e.eventHandlers.navigationChangeHandler),e.eventHandlers.openHandler=function(t){e.onOpen.emit(t)},e.nativeElement.addEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.closeHandler=function(t){e.onClose.emit(t)},e.nativeElement.addEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.changeModelHandler=function(t){e._initialChange=!1,e._onChange(e.nativeElement.selectedDates.length>0?e.nativeElement.selectedDates.length>1?e.nativeElement.selectedDates:e.nativeElement.selectedDates[0]:null)},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.displayModeChangingHandler&&this.nativeElement.removeEventListener("displayModeChanging",this.eventHandlers.displayModeChangingHandler),this.eventHandlers.displayModeChangeHandler&&this.nativeElement.removeEventListener("displayModeChange",this.eventHandlers.displayModeChangeHandler),this.eventHandlers.navigationChangingHandler&&this.nativeElement.removeEventListener("navigationChanging",this.eventHandlers.navigationChangingHandler),this.eventHandlers.navigationChangeHandler&&this.nativeElement.removeEventListener("navigationChange",this.eventHandlers.navigationChangeHandler),this.eventHandlers.openHandler&&this.nativeElement.removeEventListener("open",this.eventHandlers.openHandler),this.eventHandlers.closeHandler&&this.nativeElement.removeEventListener("close",this.eventHandlers.closeHandler),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}]},o([t.Input()],n.prototype,"animation",null),o([t.Input()],n.prototype,"animationSettings",null),o([t.Input()],n.prototype,"calendarMode",null),o([t.Input()],n.prototype,"dayNameFormat",null),o([t.Input()],n.prototype,"dateFormatFunction",null),o([t.Input()],n.prototype,"disabled",null),o([t.Input()],n.prototype,"disableAutoNavigation",null),o([t.Input()],n.prototype,"displayMode",null),o([t.Input()],n.prototype,"displayModeView",null),o([t.Input()],n.prototype,"dropDownHeight",null),o([t.Input()],n.prototype,"dropDownWidth",null),o([t.Input()],n.prototype,"firstDayOfWeek",null),o([t.Input()],n.prototype,"footerTemplate",null),o([t.Input()],n.prototype,"headerTemplate",null),o([t.Input()],n.prototype,"hideDayNames",null),o([t.Input()],n.prototype,"hideOtherMonthDays",null),o([t.Input()],n.prototype,"hideTooltipArrow",null),o([t.Input()],n.prototype,"importantDates",null),o([t.Input()],n.prototype,"importantDatesTemplate",null),o([t.Input()],n.prototype,"locale",null),o([t.Input()],n.prototype,"localizeFormatFunction",null),o([t.Input()],n.prototype,"max",null),o([t.Input()],n.prototype,"messages",null),o([t.Input()],n.prototype,"min",null),o([t.Input()],n.prototype,"months",null),o([t.Input()],n.prototype,"monthNameFormat",null),o([t.Input()],n.prototype,"name",null),o([t.Input()],n.prototype,"readonly",null),o([t.Input()],n.prototype,"restrictedDates",null),o([t.Input()],n.prototype,"rightToLeft",null),o([t.Input()],n.prototype,"scrollButtonsNavigationMode",null),o([t.Input()],n.prototype,"scrollButtonsPosition",null),o([t.Input()],n.prototype,"selectedDates",null),o([t.Input()],n.prototype,"selectionMode",null),o([t.Input()],n.prototype,"spinButtonsDelay",null),o([t.Input()],n.prototype,"spinButtonsInitialDelay",null),o([t.Input()],n.prototype,"theme",null),o([t.Input()],n.prototype,"titleTemplate",null),o([t.Input()],n.prototype,"tooltip",null),o([t.Input()],n.prototype,"tooltipArrow",null),o([t.Input()],n.prototype,"tooltipDelay",null),o([t.Input()],n.prototype,"tooltipOffset",null),o([t.Input()],n.prototype,"tooltipPosition",null),o([t.Input()],n.prototype,"tooltipTemplate",null),o([t.Input()],n.prototype,"unfocusable",null),o([t.Input()],n.prototype,"view",null),o([t.Input()],n.prototype,"viewSections",null),o([t.Input()],n.prototype,"weekNumbers",null),o([t.Input()],n.prototype,"weeks",null),o([t.Input()],n.prototype,"yearFormat",null),o([t.Output()],n.prototype,"onChange",void 0),o([t.Output()],n.prototype,"onDisplayModeChanging",void 0),o([t.Output()],n.prototype,"onDisplayModeChange",void 0),o([t.Output()],n.prototype,"onNavigationChanging",void 0),o([t.Output()],n.prototype,"onNavigationChange",void 0),o([t.Output()],n.prototype,"onOpen",void 0),o([t.Output()],n.prototype,"onClose",void 0),n=o([t.Directive({exportAs:"smart-calendar",selector:"smart-calendar, [smart-calendar]",providers:[u]})],n)}(l),m=function(){function e(){}return e=o([t.NgModule({declarations:[p],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[p]})],e)}();e.CalendarComponent=p,e.CalendarModule=m,e.Smart=s,e.ɵa=l,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=smart-webcomponents-angular-calendar.umd.min.js.map