UNPKG

@syncfusion/ej2-react-buttons

Version:

A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for React

12 lines (11 loc) 9.54 kB
/*! * filename: ej2-react-buttons.umd.min.js * version : 31.1.17 * 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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@syncfusion/ej2-buttons"),require("@syncfusion/ej2-react-base")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-buttons","@syncfusion/ej2-react-base"],e):e((t=t||self).ej={},t.React,t.ej2Buttons,t.ej2ReactBase)}(this,function(e,t,n,o){"use strict";r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var r,i,s=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=(i=n.Button,s(c,i),c.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));i.prototype.render.call(this),this.initRenderCalled=!0},c);function c(t){t=i.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}o.applyMixins(s,[o.ComponentBase,t.Component]);p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var p,a,l=function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=(a=n.CheckBox,l(u,a),u.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement(t.Fragment,null,[].concat(t.createElement("input",this.getDefaultAttributes()),this.portals));a.prototype.render.call(this),this.initRenderCalled=!0},u);function u(t){t=a.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}o.applyMixins(l,[o.ComponentBase,t.Component]);h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var h,f,d=function(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},d=(f=n.RadioButton,d(m,f),m.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement(t.Fragment,null,[].concat(t.createElement("input",this.getDefaultAttributes()),this.portals));f.prototype.render.call(this),this.initRenderCalled=!0},m);function m(t){t=f.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}o.applyMixins(d,[o.ComponentBase,t.Component]);y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var y,_,R=function(t,e){function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},R=(_=n.Switch,R(C,_),C.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement(t.Fragment,null,[].concat(t.createElement("input",this.getDefaultAttributes()),this.portals));_.prototype.render.call(this),this.initRenderCalled=!0},C);function C(t){t=_.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}o.applyMixins(R,[o.ComponentBase,t.Component]);b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var b,O,P=function(t,e){function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},S=(O=o.ComplexBase,P(j,O),j.moduleName="chip",j);function j(){return null!==O&&O.apply(this,arguments)||this}M=o.ComplexBase,P(v,M),v.propertyName="chips",v.moduleName="chips";var M,P=v;function v(){return null!==M&&M.apply(this,arguments)||this}k=function(t,e){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var k,w,B=function(t,e){function n(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},B=(w=n.ChipList,B(g,w),g.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));w.prototype.render.call(this),this.initRenderCalled=!0},g);function g(t){t=w.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.directivekeys={chips:"chip"},t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!1,t.isReactMock=!0,t.portals=[],t}o.applyMixins(B,[o.ComponentBase,t.Component]);T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var T,D,U=function(t,e){function n(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},U=(D=n.Fab,U(N,D),N.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));D.prototype.render.call(this),this.initRenderCalled=!0},N);function N(t){t=D.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}o.applyMixins(U,[o.ComponentBase,t.Component]);q=function(t,e){return(q=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var q,A,L=function(t,e){function n(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},z=(A=o.ComplexBase,L(G,A),G.moduleName="speedDialItem",G);function G(){return null!==A&&A.apply(this,arguments)||this}x=o.ComplexBase,L(I,x),I.propertyName="items",I.moduleName="speedDialItems";var x,L=I;function I(){return null!==x&&x.apply(this,arguments)||this}H=function(t,e){return(H=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var H,F,J=function(t,e){function n(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},J=(F=n.SpeedDial,J(K,F),K.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));F.prototype.render.call(this),this.initRenderCalled=!0},K);function K(t){t=F.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.directivekeys={speedDialItems:"speedDialItem"},t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!1,t.isReactMock=!0,t.portals=[],t}o.applyMixins(J,[o.ComponentBase,t.Component]);Q=function(t,e){return(Q=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var Q,E,V=function(t,e){function n(){this.constructor=t}Q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},V=(E=n.SmartPasteButton,V(W,E),W.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return t.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));E.prototype.render.call(this),this.initRenderCalled=!0},W);function W(t){t=E.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}o.applyMixins(V,[o.ComponentBase,t.Component]),Object.keys(n).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),e.ButtonComponent=s,e.CheckBoxComponent=l,e.ChipDirective=S,e.ChipListComponent=B,e.ChipsDirective=P,e.FabComponent=U,e.RadioButtonComponent=d,e.SmartPasteButtonComponent=V,e.SpeedDialComponent=J,e.SpeedDialItemDirective=z,e.SpeedDialItemsDirective=L,e.SwitchComponent=R,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=ej2-react-buttons.umd.min.js.map