UNPKG

ngx-month-picker-range

Version:

Esta libreria fue generada con [Angular CLI](https://github.com/angular/angular-cli) version 8.2.9.

2 lines 26.6 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-month-picker-range",["exports","@angular/core","@angular/forms","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-month-picker-range"]={},e.ng.core,e.ng.forms,e.ng.common)}(this,(function(e,t,n,i){"use strict";var a=function(){};a.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new a},token:a,providedIn:"root"}),a.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[]};Object.create;function r(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var o=function(){function e(){}return e.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},e.addMultipleClasses=function(e,t){if(e.classList)for(var n=t.split(" "),i=0;i<n.length;i++)e.classList.add(n[i]);else for(n=t.split(" "),i=0;i<n.length;i++)e.className+=" "+n[i]},e.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},e.hasClass=function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},e.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))},e.find=function(e,t){return Array.from(e.querySelectorAll(t))},e.findSingle=function(e,t){return e?e.querySelector(t):null},e.index=function(e){for(var t=e.parentNode.childNodes,n=0,i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1},e.indexWithinGroup=function(e,t){for(var n=e.parentNode?e.parentNode.childNodes:[],i=0,a=0;a<n.length;a++){if(n[a]==e)return i;n[a].attributes&&n[a].attributes[t]&&1==n[a].nodeType&&i++}return-1},e.relativePosition=function(e,t){var n,i,a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=t.offsetHeight,o=t.getBoundingClientRect(),s=this.getViewport();o.top+r+a.height>s.height?(n=-1*a.height,e.style.transformOrigin="bottom",o.top+n<0&&(n=-1*o.top)):(n=r,e.style.transformOrigin="top"),i=a.width>s.width?-1*o.left:o.left+a.width>s.width?-1*(o.left+a.width-s.width):0,e.style.top=n+"px",e.style.left=i+"px"},e.absolutePosition=function(e,t){var n,i,a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=a.height,o=a.width,s=t.offsetHeight,l=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),h=this.getWindowScrollLeft(),u=(this.getWindowScrollRght(),this.getViewport());d.top+s+r>u.height?(n=d.top+c-r,e.style.transformOrigin="bottom",n<0&&(n=c)):(n=s+d.top+c,e.style.transformOrigin="top"),i=d.left+o>u.width?Math.max(0,d.left+h+l-o):d.left+h,e.style.top=n+"px",e.style.left=i+"px",e.style.position="absolute"},e.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.scrollInView=function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,a=getComputedStyle(e).getPropertyValue("paddingTop"),r=a?parseFloat(a):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-i-r,l=e.scrollTop,d=e.clientHeight,c=this.getOuterHeight(t);s<0?e.scrollTop=l+s:s+c>d&&(e.scrollTop=l+s-d+c)},e.fadeIn=function(e,t){e.style.opacity=0;var n=+new Date,i=0,a=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};a()},e.fadeOut=function(e,t){var n=1,i=50/t,a=setInterval((function(){(n-=i)<=0&&(n=0,clearInterval(a)),e.style.opacity=n}),50)},e.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.getWindowScrollRght=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollWidth)-(e.scrollWidth||0)},e.matches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.getOuterWidth=function(e,t){var n=e.offsetWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n},e.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.innerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.width=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.getInnerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)},e.getOuterHeight=function(e,t){var n=e.offsetHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n},e.getHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)},e.getWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)},e.getViewport=function(){var e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},e.getOffset=function(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}},e.replaceElementWith=function(e,t){var n=e.parentNode;if(!n)throw"Can't replace element";return n.replaceChild(t,e)},e.getUserAgent=function(){return navigator.userAgent},e.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0){e.indexOf("rv:");return!0}return e.indexOf("Edge/")>0},e.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},e.isAndroid=function(){return/(android)/i.test(navigator.userAgent)},e.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot append "+t+" to "+e;t.el.nativeElement.appendChild(e)}},e.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+e+" from "+t;t.el.nativeElement.removeChild(e)}},e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.calculateScrollbarWidth=function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i},e.calculateScrollbarHeight=function(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;var e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);var t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e.getBrowser=function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},e.resolveUserAgent=function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.isInteger=function(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isHidden=function(e){return null===e.offsetParent},e.getFocusableElements=function(t){var n,i,a=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), \n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), \n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), \n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), \n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'),o=[];try{for(var s=r(a),l=s.next();!l.done;l=s.next()){var d=l.value;"none"!=getComputedStyle(d).display&&"hidden"!=getComputedStyle(d).visibility&&o.push(d)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e}();o.zindex=1e3,o.calculatedScrollbarWidth=null,o.calculatedScrollbarHeight=null;var s=function(){function e(e,n,i){this.renderer=e,this.cd=n,this.elem=i,this.mode="single",this.inputContainerClass="calendar-input-container",this.inputValueClass="calendar-input-value",this.calendarContainerClass="calendar-ui",this.monthItemClass="monthItem",this.edgeClass="isEdge",this.notYearClass="notCurrentYear",this.inRangeClass="inRange",this.lowerEdgeClass="isLowerEdge",this.upperEdgeClass="upperEdgeClass",this.cleanBtnClass="clean-btn",this.acceptBtnClass="accept-btn",this.locale="es-MX",this.appendTo="body",this.monthRangeSelected=new t.EventEmitter,this.tabindex=0,this.onChange=function(e){},this.onTouched=function(){},this.onModelTouched=function(){},this.placeholder||(this.placeholder="Seleccionar...")}return e.prototype.blurHandler=function(){this.focused=!1,this.itemFocused=-1,this.onTouched()},e.prototype.focusHandler=function(){this.focused=!0},Object.defineProperty(e.prototype,"value",{get:function(){return this._Value},set:function(e){this._Value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemFocused",{get:function(){return this._itemFocused},set:function(e){this._itemFocused=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.initCalendar(),this.cd.detectChanges()},e.prototype.initCalendar=function(){var e=this;this.initYearLabels(),this.initMonthLabels(),this.initViewSlices(),this.initMonthsData(),this.initRangeIndexes(),this.value?this.value.start?this.currentYearIndex=this.years.findIndex((function(t){return t===e.value.start.getFullYear()})):this.currentYearIndex=this.years.findIndex((function(t){return t===e.value.getFullYear()})):this.currentYearIndex=this.years.findIndex((function(e){return e===(new Date).getFullYear()})),this.sliceDataIntoView()},e.prototype.ngOnChanges=function(e){e.value&&(this.value=e.value.currentValue),e.mode&&(this.mode=e.mode.currentValue),e.placeholder&&(this.placeholder=e.placeholder.currentValue),e.acceptBtnClass&&(this.acceptBtnClass=e.acceptBtnClass.currentValue)},e.prototype.ngAfterContentInit=function(){var e=this;this.renderer.listen(this.elem.nativeElement,"keydown",(function(t){return function(e,t){switch(e.which){case 40:!t.isOpen&&e.altKey&&(t.onShowCalendar(),t.itemFocused=-1),e.preventDefault();break;case 13:t.onShowCalendar(),t.itemFocused=-1,e.preventDefault();break;case 27:t.hide(),t.itemFocused=-1,e.preventDefault();break;case 8:t.clearData(),t.itemFocused=-1,e.preventDefault()}}(t,e)}))},e.prototype.ngOnDestroy=function(){this.isOpen&&this.onShowCalendar(),this.renderer.listen(this.elem.nativeElement,"keydown",null)},e.prototype.onShowCalendar=function(e){this.disabled||(e&&e.stopPropagation(),this.isOpen?this.hide(e):this.show(e))},e.prototype.show=function(e){var t=this;e&&e.stopPropagation(),this.initCalendar(),this.isOpen=!0,document.querySelectorAll(".calendar-input-container").forEach((function(e){e.getAttribute("class").includes("active")&&t.renderer.removeClass(e,"active")})),document.querySelectorAll(".calendar-ui").forEach((function(e){t.renderer.setStyle(e,"display","none")})),this.renderer.addClass(this.calendarInputContainer.nativeElement,"active"),this.appendOverlay(),this.alignOverlay(),this.renderer.setStyle(this.calendarUI.nativeElement,"display","block")},e.prototype.hide=function(e){e&&e.stopPropagation(),this.isOpen=!1,this.renderer.removeClass(this.calendarInputContainer.nativeElement,"active"),this.renderer.setStyle(this.calendarUI.nativeElement,"display","none"),this.restoreOverlayAppend()},e.prototype.appendOverlay=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.calendarUI.nativeElement):o.appendChild(this.calendarUI,this.appendTo))},e.prototype.restoreOverlayAppend=function(){this.calendarUI&&this.appendTo&&this.elem.nativeElement.appendChild(this.calendarUI.nativeElement)},e.prototype.alignOverlay=function(){this.calendarUI&&(this.appendTo?o.absolutePosition(this.calendarUI.nativeElement,this.containerViewChild.nativeElement):o.relativePosition(this.calendarUI.nativeElement,this.containerViewChild.nativeElement))},e.prototype.onClick=function(e){if("single"!==this.mode)if(null!==this.rangeIndexes[0]&&null!==this.rangeIndexes[1]&&this.clearData(),null===this.rangeIndexes[0])this.rangeIndexes[0]=this.globalIndexOffset+e;else if(null===this.rangeIndexes[1]){this.rangeIndexes[1]=this.globalIndexOffset+e,this.paintRange();i=this.monthsData[this.rangeIndexes[0]];var t=this.monthsData[this.rangeIndexes[1]],n=(a=new Date(i.monthYear,i.month,1),new Date(t.monthYear,t.month+1,0));this.value={start:a,end:n}}else this.initRangeIndexes(),this.initMonthsData(),this.onClick(e),this.sliceDataIntoView();else{this.rangeIndexes[0]=this.globalIndexOffset+e;var i=this.monthsData[this.rangeIndexes[0]],a=new Date(i.monthYear,i.month,1);this.value=a}},e.prototype.paintRange=function(){var e=this;this.rangeIndexes.sort((function(e,t){return e-t})),this.monthsData.forEach((function(t,n){e.rangeIndexes[0]<=n&&n<=e.rangeIndexes[1]&&(t.isInRange=!0),e.rangeIndexes[0]===n&&(t.isLowerEdge=!0),e.rangeIndexes[1]===n&&(t.isUpperEdge=!0)}))},e.prototype.emitData=function(){this.isClosing=!0,this.updateChanges(),this.onTouched(),this.monthRangeSelected.emit(this.value),this.hide()},e.prototype.sliceDataIntoView=function(){this.globalIndexOffset=this.monthViewSlicesIndexes[this.currentYearIndex],this.monthDataSlice=this.monthsData.slice(this.globalIndexOffset,this.globalIndexOffset+24)},e.prototype.incrementYear=function(){this.currentYearIndex!==this.years.length-1&&(this.currentYearIndex++,this.sliceDataIntoView())},e.prototype.decrementYear=function(){0!==this.currentYearIndex&&(this.currentYearIndex--,this.sliceDataIntoView())},e.prototype.initRangeIndexes=function(){var e=this;this.value?(this.rangeIndexes=[],this.value.start?(this.rangeIndexes.push(this.monthsData.findIndex((function(t,n){return t.month===e.value.start.getMonth()&&t.monthYear===e.value.start.getFullYear()}))),this.value.end&&this.rangeIndexes.push(this.monthsData.findIndex((function(t,n){return t.month===e.value.end.getMonth()&&t.monthYear===e.value.end.getFullYear()}))),this.paintRange()):this.rangeIndexes.push(this.monthsData.findIndex((function(t,n){return t.month===e.value.getMonth()&&t.monthYear===e.value.getFullYear()})))):this.rangeIndexes=[null,null]},e.prototype.initMonthsData=function(){var e=this;this.monthsData=new Array,this.years.forEach((function(t){e.months.forEach((function(n,i){e.monthsData.push({monthName:n,month:i,monthYear:t,isInRange:!1,isLowerEdge:!1,isUpperEdge:!1})}))}))},e.prototype.initYearLabels=function(){var e,t,n,i=(new Date).getFullYear();this.years=(e=this.firstYear?this.firstYear:i-5,t=this.lastYear?this.lastYear:i+5,n=1,Array.from({length:(t-e)/n+1},(function(t,i){return e+i*n})))},e.prototype.initMonthLabels=function(){var e=this;this.months=new Array(12).fill(0).map((function(t,n){return new Date(n+1+"/1/1").toLocaleDateString(e.locale,{month:"short"})}))},e.prototype.initViewSlices=function(){var e=this;this.monthViewSlicesIndexes=[],this.years.forEach((function(t,n){0===n?e.monthViewSlicesIndexes.push(0):1===n?e.monthViewSlicesIndexes.push(6):e.monthViewSlicesIndexes.push(e.monthViewSlicesIndexes[n-1]+12)}))},Object.defineProperty(e.prototype,"valueText",{get:function(){var e="",t=this.monthsData[this.rangeIndexes[0]],n=this.monthsData[this.rangeIndexes[1]];return"single"===this.mode?t&&(e+=t.monthName+", "+t.monthYear):t&&n&&(t.monthYear===n.monthYear?t.monthName!==n.monthName?e+=t.monthName+" - "+n.monthName+", "+t.monthYear:e+=t.monthName+", "+t.monthYear:e+=t.monthName+", "+t.monthYear+" - "+n.monthName+", "+n.monthYear),""===e&&(e=this.placeholder?this.placeholder:"Seleccionar..."),e},enumerable:!1,configurable:!0}),e.prototype.clearData=function(){this.value=void 0,this.updateChanges(),this.ngOnInit()},e.prototype.validate=function(e){e.value;return this.isRequired&&null==this.value&&{invalid:!0}},e.prototype.updateChanges=function(){this.onChange(this.value)},e.prototype.writeValue=function(e){this.value=e,this.updateChanges()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.setReadOnlyState=function(e){this.isReadOnly=e},e}();s.decorators=[{type:t.Component,args:[{selector:"ngx-month-picker",template:'\n <div class="calendar-widget" #select>\n <div [ngClass]="inputContainerClass" (click)="onShowCalendar($event)" role="listbox" #calendarInputContainer [title]="valueText">\n <span [ngClass]="inputValueClass">{{valueText}}</span>\n </div>\n <div [ngClass]="calendarContainerClass" #calendarUI style="display: none;">\n <div class="outerCard">\n <div class="topPanel">\n <button class="prevYearButton" (click)="decrementYear()">\n <i class="arrow arrow-left"></i>\n </button>\n <span class="yearLabel">{{ years[currentYearIndex] }}</span>\n <button class="nextYearButton" (click)="incrementYear()">\n <i class="arrow arrow-right"></i>\n </button>\n </div>\n <div class="contentPanel" #calendarContent>\n <div (click)="onClick(i)" *ngFor="let month of monthDataSlice; let i = index" [ngClass]="[monthItemClass, \n (rangeIndexes[0]===globalIndexOffset+i || rangeIndexes[1]===globalIndexOffset+i) ? edgeClass: \'\', \n (currentYearIndex===0? i > 11:(i < 6 || i > 17)) ? notYearClass : \'\']">\n <div [id]="i" class="monthItemHighlight" [ngClass]="[ month.isInRange ? inRangeClass : \'\', \n month.isLowerEdge ? lowerEdgeClass : \'\', month.isUpperEdge ? upperEdgeClass : \'\' ]">\n {{ month.monthName }}\n </div>\n </div>\n </div>\n <div class="footerPanel">\n <a id="cleanBtn" href="javascript:void(0)" [ngClass]="cleanBtnClass" (click)="clearData()">\n Limpiar\n </a>\n <a id="acceptBtn" href="javascript:void(0)" [ngClass]="acceptBtnClass" (click)="emitData()">\n Aceptar\n </a>\n </div>\n </div>\n </div>\n</div>\n ',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return s})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:s,multi:!0}],styles:['\n .calendar-ui {\n z-index: 1003;\n width: 350px;\n background-color: white;\n}\n\n.calendar-input-container {\n background: #F5F5F6 !important;\n border: solid 1px #C2D1D9 !important;\n color: #A8B0BA !important;\n font-family: "open_sansitalic", sans-serif !important;\n line-height: 17px;\n min-height: 48px;\n display: flex;\n align-items: center;\n border-radius: 3px;\n width: 100%;\n font-size: 16px;\n letter-spacing: 0;\n}\n\n.calendar-input-value {\n padding-left: 10px;\n padding-right: 10px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.outerCard {\n touch-action: none;\n overflow: hidden;\n width: inherit;\n /*height: 350px;*/\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);\n}\n\n.topPanel {\n width: inherit;\n height: 44px;\n text-align: center;\n line-height: 64px;\n}\n\n.prevYearButton {\n float: left;\n}\n\n.nextYearButton {\n float: right;\n}\n\nbutton {\n width: 64px;\n height: 64px;\n background: none;\n border: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n\nbutton:focus {\n outline: 0;\n}\n\ni {\n border: solid black;\n border-width: 0 3px 3px 0;\n display: inline-block;\n padding: 6px;\n}\n\n.arrow-right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n}\n\n.arrow-left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n}\n\n.topPanel.yearLabel {\n display: inline-block;\n margin: 0 auto;\n}\n\n.contentPanel {\n padding: 32px 6px;\n}\n\n.footerPanel {\n display: flex;\n}\n\n.monthItem {\n display: inline-block;\n height: 54px;\n width: 54px;\n cursor: pointer;\n text-align: center;\n line-height: 54px;\n margin-top: 1px;\n margin-bottom: 1px;\n}\n\n.monthItem:hover {\n border-radius: 100%;\n background-color: #F5F5F6;\n color: #A8B0BA;\n}\n\n.isEdge {\n border-radius: 100%;\n background-color: #1474a4;\n color: white;\n}\n\n.inRange {\n background-color: #1474a4;\n opacity: 0.5;\n color: white;\n}\n\n.isLowerEdge {\n background-color: none;\n background: linear-gradient(to right, transparent 50%, #1474a4 50%);\n}\n\n.isUpperEdge {\n background-color: none;\n background: linear-gradient(to right, #1474a4 50%, transparent 50%);\n}\n\n.notCurrentYear {\n color: #c4cbd6;\n}\n\n.clean-btn {\n text-decoration: none;\n width: 50%;\n display: inline-block;\n font-weight: 400;\n color: #A8B0BA;\n background-color: #F5F5F6;\n text-align: center;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: .375rem .75rem;\n font-size: 1rem;\n line-height: 1.5;\n}\n\n.accept-btn {\n text-decoration: none;\n width: 50%;\n display: inline-block;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: .375rem .75rem;\n font-size: 1rem;\n line-height: 1.5;\n color: white;\n background-color: #1474a4;\n}\n ']}]}],s.ctorParameters=function(){return[{type:t.Renderer2},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},s.propDecorators={placeholder:[{type:t.Input,args:["placeholder"]}],isRequired:[{type:t.Input,args:["required"]}],disabled:[{type:t.Input,args:["disabled"]}],isReadOnly:[{type:t.Input,args:["readonly"]}],mode:[{type:t.Input,args:["mode"]}],firstYear:[{type:t.Input,args:["firstYear"]}],lastYear:[{type:t.Input,args:["lastYear"]}],inputContainerClass:[{type:t.Input,args:["inputContainerClass"]}],inputValueClass:[{type:t.Input,args:["inputValueClass"]}],calendarContainerClass:[{type:t.Input,args:["inputValueClass"]}],monthItemClass:[{type:t.Input,args:["monthItemClass"]}],edgeClass:[{type:t.Input,args:["edgeClass"]}],notYearClass:[{type:t.Input,args:["notYearClass"]}],inRangeClass:[{type:t.Input,args:["inRangeClass"]}],lowerEdgeClass:[{type:t.Input,args:["lowerEdgeClass"]}],upperEdgeClass:[{type:t.Input,args:["upperEdgeClass"]}],cleanBtnClass:[{type:t.Input,args:["cleanBtnClass"]}],acceptBtnClass:[{type:t.Input,args:["acceptBtnClass"]}],locale:[{type:t.Input,args:["locale"]}],calendarInputContainer:[{type:t.ViewChild,args:["calendarInputContainer",{static:!1}]}],calendarUI:[{type:t.ViewChild,args:["calendarUI",{static:!1}]}],calendarContent:[{type:t.ViewChild,args:["calendarContent",{static:!1}]}],containerViewChild:[{type:t.ViewChild,args:["select",{static:!1}]}],monthRangeSelected:[{type:t.Output}],tabindex:[{type:t.HostBinding,args:["tabindex"]}],blurHandler:[{type:t.HostListener,args:["blur"]}],focusHandler:[{type:t.HostListener,args:["focus"]}]};var l=function(){};l.decorators=[{type:t.NgModule,args:[{declarations:[s],imports:[i.CommonModule],exports:[s],schemas:[t.CUSTOM_ELEMENTS_SCHEMA]}]}],e.NgxMonthPickerComponent=s,e.NgxMonthPickerModule=l,e.NgxMonthPickerService=a,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=ngx-month-picker-range.umd.min.js.map