@fullcalendar/angular
Version:
An official FullCalendar component for Angular
2 lines • 11.7 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("fast-deep-equal"),require("@angular/core"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define("@fullcalendar/angular",["exports","fast-deep-equal","@angular/core","@fullcalendar/core"],t):t(((e=e||self).fullcalendar=e.fullcalendar||{},e.fullcalendar.angular={}),e.deepEqual,e.ng.core,e.FullCalendar)}(this,(function(e,t,n,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,p,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){p={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(p)throw p.error}}return o}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}var o=Object.prototype.hasOwnProperty;function u(e){return Array.isArray(e)?e.map(u):e instanceof Date?new Date(e.valueOf()):"object"==typeof e&&e?function(e,t){var n={};for(var r in e)o.call(e,r)&&(n[r]=t(e[r],r));return n}(e,u):e}var i=["header","footer","customButtons","buttonIcons","themeSystem","bootstrapFontAwesome","firstDay","dir","weekends","hiddenDays","fixedWeekCount","weekNumbers","weekNumbersWithinDays","weekNumberCalculation","businessHours","showNonCurrentDates","height","contentHeight","aspectRatio","handleWindowResize","windowResizeDelay","eventLimit","eventLimitClick","timeZone","now","defaultView","allDaySlot","allDayText","slotDuration","slotLabelFormat","slotLabelInterval","snapDuration","scrollTime","minTime","maxTime","slotEventOverlap","listDayFormat","listDayAltFormat","noEventsMessage","defaultDate","nowIndicator","visibleRange","validRange","dateIncrement","dateAlignment","duration","dayCount","locales","locale","eventTimeFormat","columnHeader","columnHeaderFormat","columnHeaderText","columnHeaderHtml","titleFormat","weekLabel","displayEventTime","displayEventEnd","eventLimitText","dayPopoverFormat","navLinks","selectable","selectMirror","selectMinDistance","unselectAuto","unselectCancel","defaultAllDayEventDuration","defaultTimedEventDuration","cmdFormatter","defaultRangeSeparator","selectConstraint","selectOverlap","selectAllow","editable","eventStartEditable","eventDurationEditable","eventConstraint","eventOverlap","eventAllow","eventClassName","eventClassNames","eventBackgroundColor","eventBorderColor","eventTextColor","eventColor","events","eventSources","allDayDefault","startParam","endParam","lazyFetching","nextDayThreshold","eventOrder","rerenderDelay","dragRevertDuration","dragScroll","longPressDelay","eventLongPressDelay","droppable","dropAccept","eventDataTransform","allDayMaintainDuration","eventResizableFromStart","timeGridEventMinHeight","allDayHtml","eventDragMinDistance","eventSourceFailure","eventSourceSuccess","forceEventDuration","progressiveEventRendering","selectLongPressDelay","selectMinDistance","timeZoneParam","titleRangeSeparator","buttonText","views","plugins","schedulerLicenseKey","resources","resourceLabelText","resourceOrder","filterResourcesWithEvents","resourceText","resourceGroupField","resourceGroupText","resourceAreaWidth","resourceColumns","resourcesInitiallyExpanded","slotWidth","datesAboveResources","googleCalendarApiKey","refetchResourcesOnNavigate","eventResourceEditable"],s={header:!0,footer:!0,events:!0,eventSources:!0,resources:!0},l=["windowResize","dateClick","eventClick","navLinkDayClick","navLinkWeekClick","eventMouseEnter","eventMouseLeave","select","unselect","loading","eventPositioned","eventDragStart","eventDragStop","eventDrop","eventResizeStart","eventResizeStop","eventResize","drop","eventReceive","eventLeave","_destroyed","viewSkeletonRender","viewSkeletonDestroy","datesRender","datesDestroy","dayRender","eventRender","eventDestroy","resourceRender"],y=function(){function e(e){this.element=e,this.dirtyProps={},this.deepCopies={},this.windowResize=new n.EventEmitter,this.dateClick=new n.EventEmitter,this.eventClick=new n.EventEmitter,this.eventMouseEnter=new n.EventEmitter,this.eventMouseLeave=new n.EventEmitter,this.select=new n.EventEmitter,this.unselect=new n.EventEmitter,this.loading=new n.EventEmitter,this.eventPositioned=new n.EventEmitter,this.eventDragStart=new n.EventEmitter,this.eventDragStop=new n.EventEmitter,this.eventDrop=new n.EventEmitter,this.eventResizeStart=new n.EventEmitter,this.eventResizeStop=new n.EventEmitter,this.eventResize=new n.EventEmitter,this.drop=new n.EventEmitter,this.eventReceive=new n.EventEmitter,this.eventLeave=new n.EventEmitter,this._destroyed=new n.EventEmitter,this.navLinkDayClick=new n.EventEmitter,this.navLinkWeekClick=new n.EventEmitter,this.viewSkeletonRender=new n.EventEmitter,this.viewSkeletonDestroy=new n.EventEmitter,this.datesRender=new n.EventEmitter,this.datesDestroy=new n.EventEmitter,this.dayRender=new n.EventEmitter,this.eventRender=new n.EventEmitter,this.eventDestroy=new n.EventEmitter,this.resourceRender=new n.EventEmitter}return e.prototype.ngAfterViewInit=function(){this.calendar=new r.Calendar(this.element.nativeElement,this.buildOptions()),this.calendar.render()},e.prototype.buildOptions=function(){var e=this,t={};return l.forEach((function(n){t[n]=function(){for(var t,r=[],p=0;p<arguments.length;p++)r[p]=arguments[p];(t=e[n]).emit.apply(t,a(r))}})),i.forEach((function(n){var r=e[n];void 0!==r&&(e.deepChangeDetection&&s[n]&&(r=u(r),e.deepCopies[n]=r),t[n]=r)})),t},e.prototype.ngDoCheck=function(){if(this.calendar&&this.deepChangeDetection){var e=this.deepCopies;for(var n in s)if(s.hasOwnProperty(n)){var r=this[n];if(void 0!==r&&!t(r,e[n])){var p=u(r);e[n]=p,this.dirtyProps[n]=p}}}},e.prototype.ngOnChanges=function(e){if(this.calendar)for(var t in e)e.hasOwnProperty(t)&&void 0===this.deepCopies[t]&&(this.dirtyProps[t]=e[t].currentValue)},e.prototype.ngAfterContentChecked=function(){var e=this.dirtyProps;Object.keys(e).length>0&&(this.dirtyProps={},this.calendar.mutateOptions(e,[],!1,t))},e.prototype.ngOnDestroy=function(){this.calendar&&this.calendar.destroy(),this.calendar=null},e.prototype.getApi=function(){return this.calendar},e.decorators=[{type:n.Component,args:[{selector:"full-calendar",template:""}]}],e.ctorParameters=function(){return[{type:n.ElementRef}]},e.propDecorators={deepChangeDetection:[{type:n.Input}],header:[{type:n.Input}],footer:[{type:n.Input}],customButtons:[{type:n.Input}],buttonIcons:[{type:n.Input}],themeSystem:[{type:n.Input}],bootstrapFontAwesome:[{type:n.Input}],firstDay:[{type:n.Input}],dir:[{type:n.Input}],weekends:[{type:n.Input}],hiddenDays:[{type:n.Input}],fixedWeekCount:[{type:n.Input}],weekNumbers:[{type:n.Input}],weekNumbersWithinDays:[{type:n.Input}],weekNumberCalculation:[{type:n.Input}],businessHours:[{type:n.Input}],showNonCurrentDates:[{type:n.Input}],height:[{type:n.Input}],contentHeight:[{type:n.Input}],aspectRatio:[{type:n.Input}],handleWindowResize:[{type:n.Input}],windowResizeDelay:[{type:n.Input}],eventLimit:[{type:n.Input}],eventLimitClick:[{type:n.Input}],timeZone:[{type:n.Input}],now:[{type:n.Input}],defaultView:[{type:n.Input}],allDaySlot:[{type:n.Input}],allDayText:[{type:n.Input}],slotDuration:[{type:n.Input}],slotLabelFormat:[{type:n.Input}],slotLabelInterval:[{type:n.Input}],snapDuration:[{type:n.Input}],scrollTime:[{type:n.Input}],minTime:[{type:n.Input}],maxTime:[{type:n.Input}],slotEventOverlap:[{type:n.Input}],listDayFormat:[{type:n.Input}],listDayAltFormat:[{type:n.Input}],noEventsMessage:[{type:n.Input}],defaultDate:[{type:n.Input}],nowIndicator:[{type:n.Input}],visibleRange:[{type:n.Input}],validRange:[{type:n.Input}],dateIncrement:[{type:n.Input}],dateAlignment:[{type:n.Input}],duration:[{type:n.Input}],dayCount:[{type:n.Input}],locales:[{type:n.Input}],locale:[{type:n.Input}],eventTimeFormat:[{type:n.Input}],columnHeader:[{type:n.Input}],columnHeaderFormat:[{type:n.Input}],columnHeaderText:[{type:n.Input}],columnHeaderHtml:[{type:n.Input}],titleFormat:[{type:n.Input}],weekLabel:[{type:n.Input}],displayEventTime:[{type:n.Input}],displayEventEnd:[{type:n.Input}],eventLimitText:[{type:n.Input}],dayPopoverFormat:[{type:n.Input}],navLinks:[{type:n.Input}],selectable:[{type:n.Input}],selectMirror:[{type:n.Input}],unselectAuto:[{type:n.Input}],unselectCancel:[{type:n.Input}],defaultAllDayEventDuration:[{type:n.Input}],defaultTimedEventDuration:[{type:n.Input}],cmdFormatter:[{type:n.Input}],defaultRangeSeparator:[{type:n.Input}],selectConstraint:[{type:n.Input}],selectOverlap:[{type:n.Input}],selectAllow:[{type:n.Input}],selectMinDistance:[{type:n.Input}],editable:[{type:n.Input}],eventStartEditable:[{type:n.Input}],eventDurationEditable:[{type:n.Input}],eventConstraint:[{type:n.Input}],eventOverlap:[{type:n.Input}],eventAllow:[{type:n.Input}],eventClassName:[{type:n.Input}],eventClassNames:[{type:n.Input}],eventBackgroundColor:[{type:n.Input}],eventBorderColor:[{type:n.Input}],eventTextColor:[{type:n.Input}],eventColor:[{type:n.Input}],events:[{type:n.Input}],eventSources:[{type:n.Input}],allDayDefault:[{type:n.Input}],startParam:[{type:n.Input}],endParam:[{type:n.Input}],lazyFetching:[{type:n.Input}],nextDayThreshold:[{type:n.Input}],eventOrder:[{type:n.Input}],rerenderDelay:[{type:n.Input}],dragRevertDuration:[{type:n.Input}],dragScroll:[{type:n.Input}],longPressDelay:[{type:n.Input}],eventLongPressDelay:[{type:n.Input}],droppable:[{type:n.Input}],dropAccept:[{type:n.Input}],eventDataTransform:[{type:n.Input}],allDayMaintainDuration:[{type:n.Input}],eventResizableFromStart:[{type:n.Input}],timeGridEventMinHeight:[{type:n.Input}],allDayHtml:[{type:n.Input}],eventDragMinDistance:[{type:n.Input}],eventSourceFailure:[{type:n.Input}],eventSourceSuccess:[{type:n.Input}],forceEventDuration:[{type:n.Input}],progressiveEventRendering:[{type:n.Input}],selectLongPressDelay:[{type:n.Input}],timeZoneParam:[{type:n.Input}],titleRangeSeparator:[{type:n.Input}],buttonText:[{type:n.Input}],views:[{type:n.Input}],plugins:[{type:n.Input}],schedulerLicenseKey:[{type:n.Input}],resources:[{type:n.Input}],resourceLabelText:[{type:n.Input}],resourceOrder:[{type:n.Input}],filterResourcesWithEvents:[{type:n.Input}],resourceText:[{type:n.Input}],resourceGroupField:[{type:n.Input}],resourceGroupText:[{type:n.Input}],resourceAreaWidth:[{type:n.Input}],resourceColumns:[{type:n.Input}],resourcesInitiallyExpanded:[{type:n.Input}],slotWidth:[{type:n.Input}],datesAboveResources:[{type:n.Input}],googleCalendarApiKey:[{type:n.Input}],refetchResourcesOnNavigate:[{type:n.Input}],eventResourceEditable:[{type:n.Input}],windowResize:[{type:n.Output}],dateClick:[{type:n.Output}],eventClick:[{type:n.Output}],eventMouseEnter:[{type:n.Output}],eventMouseLeave:[{type:n.Output}],select:[{type:n.Output}],unselect:[{type:n.Output}],loading:[{type:n.Output}],eventPositioned:[{type:n.Output}],eventDragStart:[{type:n.Output}],eventDragStop:[{type:n.Output}],eventDrop:[{type:n.Output}],eventResizeStart:[{type:n.Output}],eventResizeStop:[{type:n.Output}],eventResize:[{type:n.Output}],drop:[{type:n.Output}],eventReceive:[{type:n.Output}],eventLeave:[{type:n.Output}],_destroyed:[{type:n.Output}],navLinkDayClick:[{type:n.Output}],navLinkWeekClick:[{type:n.Output}],viewSkeletonRender:[{type:n.Output}],viewSkeletonDestroy:[{type:n.Output}],datesRender:[{type:n.Output}],datesDestroy:[{type:n.Output}],dayRender:[{type:n.Output}],eventRender:[{type:n.Output}],eventDestroy:[{type:n.Output}],resourceRender:[{type:n.Output}]},e}();var d=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{declarations:[y],imports:[],exports:[y]}]}],e}();e.FullCalendarComponent=y,e.FullCalendarModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=fullcalendar-angular.umd.min.js.map