UNPKG

primeng

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![Build Status](https://travis-ci.org/primefaces/primeng.

2 lines 2.69 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define("primeng/fullcalendar",["exports","@angular/core","@angular/common","@fullcalendar/core"],t):t(((e=e||self).primeng=e.primeng||{},e.primeng.fullcalendar={}),e.ng.core,e.ng.common,e.core$1)}(this,(function(e,t,n,i){"use strict";var o=this&&this.__decorate||function(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 s=e.length-1;s>=0;s--)(o=e[s])&&(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},r=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){if(this.config={theme:!0},this.options)for(var e in this.options)this.config[e]=this.options[e]},e.prototype.ngAfterViewChecked=function(){!this.initialized&&this.el.nativeElement.offsetParent&&this.initialize()},Object.defineProperty(e.prototype,"events",{get:function(){return this._events},set:function(e){this._events=e,this._events&&this.calendar&&(this.calendar.removeAllEventSources(),this.calendar.addEventSource(this._events))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){if(this._options=e,this._options&&this.calendar)for(var t in this._options){var n=this._options[t];this.config[t]=n,this.calendar.setOption(t,n)}},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.calendar=new i.Calendar(this.el.nativeElement.children[0],this.config),this.calendar.render(),this.initialized=!0,this.events&&(this.calendar.removeAllEventSources(),this.calendar.addEventSource(this.events))},e.prototype.getCalendar=function(){return this.calendar},e.prototype.ngOnDestroy=function(){this.calendar&&(this.calendar.destroy(),this.initialized=!1,this.calendar=null)},e.ctorParameters=function(){return[{type:t.ElementRef}]},o([t.Input()],e.prototype,"style",void 0),o([t.Input()],e.prototype,"styleClass",void 0),o([t.Input()],e.prototype,"events",null),o([t.Input()],e.prototype,"options",null),e=o([t.Component({selector:"p-fullCalendar",template:'<div [ngStyle]="style" [class]="styleClass"></div>',changeDetection:t.ChangeDetectionStrategy.Default})],e)}(),l=function(){function e(){}return e=o([t.NgModule({imports:[n.CommonModule],exports:[r],declarations:[r]})],e)}();e.FullCalendar=r,e.FullCalendarModule=l,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=primeng-fullcalendar.umd.min.js.map