UNPKG

@syncfusion/ej2-react-splitbuttons

Version:

A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup. for React

12 lines (11 loc) 5.14 kB
/*! * filename: ej2-react-splitbuttons.umd.min.js * version : 32.1.22 * Copyright Syncfusion Inc. 2001 - 2025. 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("@syncfusion/ej2-react-base"),require("react"),require("@syncfusion/ej2-splitbuttons")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-react-base","react","@syncfusion/ej2-splitbuttons"],e):e((t=t||self).ej={},t.ej2ReactBase,t.React,t.ej2Splitbuttons)}(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)},p=(i=t.ComplexBase,s(c,i),c.moduleName="dropDownButtonItem",c);function c(){return null!==i&&i.apply(this,arguments)||this}u=t.ComplexBase,s(l,u),l.propertyName="items",l.moduleName="dropDownButtonItems";var u,s=l;function l(){return null!==u&&u.apply(this,arguments)||this}a=function(t,e){return(a=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 a,f,h=function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=(f=o.DropDownButton,h(d,f),d.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return n.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));f.prototype.render.call(this),this.initRenderCalled=!0},d);function d(t){t=f.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.directivekeys={dropDownButtonItems:"dropDownButtonItem"},t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}t.applyMixins(h,[t.ComponentBase,n.Component]);m=function(t,e){return(m=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 m,y,_=function(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},b=(y=t.ComplexBase,_(B,y),B.moduleName="splitButtonItem",B);function B(){return null!==y&&y.apply(this,arguments)||this}j=t.ComplexBase,_(O,j),O.propertyName="items",O.moduleName="splitButtonItems";var j,_=O;function O(){return null!==j&&j.apply(this,arguments)||this}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,C,P=function(t,e){function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},P=(C=o.SplitButton,P(v,C),v.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return n.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));C.prototype.render.call(this),this.initRenderCalled=!0},v);function v(t){t=C.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.directivekeys={splitButtonItems:"splitButtonItem"},t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}t.applyMixins(P,[t.ComponentBase,n.Component]);D=function(t,e){return(D=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 D,w,I=function(t,e){function n(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},I=(w=o.ProgressButton,I(M,w),M.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return n.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));w.prototype.render.call(this),this.initRenderCalled=!0},M);function M(t){t=w.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}t.applyMixins(I,[t.ComponentBase,n.Component]),Object.keys(o).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),e.DropDownButtonComponent=h,e.DropDownButtonItemDirective=p,e.DropDownButtonItemsDirective=s,e.ProgressButtonComponent=I,e.SplitButtonComponent=P,e.SplitButtonItemDirective=b,e.SplitButtonItemsDirective=_,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=ej2-react-splitbuttons.umd.min.js.map