UNPKG

@syncfusion/ej2-react-calendars

Version:

A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization. for React

12 lines (11 loc) 6.3 kB
/*! * filename: ej2-react-calendars.umd.min.js * version : 31.1.21 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-calendars"),require("@syncfusion/ej2-react-base")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-calendars","@syncfusion/ej2-react-base"],t):t((e=e||self).ej={},e.React,e.ej2Calendars,e.ej2ReactBase)}(this,function(t,e,n,r){"use strict";o=function(e,t){return(o=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)};var o,i,s=function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=(i=n.Calendar,s(c,i),c.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return e.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));i.prototype.render.call(this),this.initRenderCalled=!0},c);function c(e){e=i.call(this,e)||this;return e.initRenderCalled=!1,e.checkInjectedModules=!0,e.statelessTemplateProps=null,e.templateProps=null,e.immediateRender=!0,e.isReactMock=!0,e.portals=[],e}r.applyMixins(s,[r.ComponentBase,e.Component]);a=function(e,t){return(a=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)};var a,p,l=function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},l=(p=n.DatePicker,l(u,p),u.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return e.createElement(e.Fragment,null,[].concat(e.createElement("input",this.getDefaultAttributes()),this.portals));p.prototype.render.call(this),this.initRenderCalled=!0},u);function u(e){e=p.call(this,e)||this;return e.initRenderCalled=!1,e.checkInjectedModules=!0,e.statelessTemplateProps=null,e.templateProps=null,e.immediateRender=!0,e.isReactMock=!0,e.portals=[],e}r.applyMixins(l,[r.ComponentBase,e.Component]);f=function(e,t){return(f=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)};var f,d,h=function(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},h=(d=n.TimePicker,h(m,d),m.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return e.createElement(e.Fragment,null,[].concat(e.createElement("input",this.getDefaultAttributes()),this.portals));d.prototype.render.call(this),this.initRenderCalled=!0},m);function m(e){e=d.call(this,e)||this;return e.initRenderCalled=!1,e.checkInjectedModules=!0,e.statelessTemplateProps=null,e.templateProps=null,e.immediateRender=!0,e.isReactMock=!0,e.portals=[],e}r.applyMixins(h,[r.ComponentBase,e.Component]);y=function(e,t){return(y=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)};var y,_,R=function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},C=(_=r.ComplexBase,R(P,_),P.moduleName="preset",P);function P(){return null!==_&&_.apply(this,arguments)||this}j=r.ComplexBase,R(O,j),O.propertyName="presets",O.moduleName="presets";var j,R=O;function O(){return null!==j&&j.apply(this,arguments)||this}b=function(e,t){return(b=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)};var b,k,M=function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},M=(k=n.DateRangePicker,M(g,k),g.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return e.createElement(e.Fragment,null,[].concat(e.createElement("input",this.getDefaultAttributes()),this.portals));k.prototype.render.call(this),this.initRenderCalled=!0},g);function g(e){e=k.call(this,e)||this;return e.initRenderCalled=!1,e.checkInjectedModules=!1,e.directivekeys={presets:"preset"},e.statelessTemplateProps=null,e.templateProps=null,e.immediateRender=!1,e.isReactMock=!0,e.portals=[],e}r.applyMixins(M,[r.ComponentBase,e.Component]);v=function(e,t){return(v=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)};var v,D,w=function(e,t){function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},w=(D=n.DateTimePicker,w(A,D),A.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return e.createElement(e.Fragment,null,[].concat(e.createElement("input",this.getDefaultAttributes()),this.portals));D.prototype.render.call(this),this.initRenderCalled=!0},A);function A(e){e=D.call(this,e)||this;return e.initRenderCalled=!1,e.checkInjectedModules=!0,e.statelessTemplateProps=null,e.templateProps=null,e.immediateRender=!0,e.isReactMock=!0,e.portals=[],e}r.applyMixins(w,[r.ComponentBase,e.Component]),Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),Object.defineProperty(t,"Inject",{enumerable:!0,get:function(){return r.Inject}}),t.CalendarComponent=s,t.DatePickerComponent=l,t.DateRangePickerComponent=M,t.DateTimePickerComponent=w,t.PresetDirective=C,t.PresetsDirective=R,t.TimePickerComponent=h,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=ej2-react-calendars.umd.min.js.map