@syncfusion/ej2-react-splitbuttons
Version:
A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup. for React
10 lines • 6.4 kB
JavaScript
/*!
* filename: ej2-react-splitbuttons.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&&"object"==typeof module?module.exports=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionSplitbuttons")):"function"==typeof define&&define.amd?define(["SyncfusionReactBase","React","SyncfusionSplitbuttons"],e):"object"==typeof exports?exports.SyncfusionReactSplitbuttons=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionSplitbuttons")):t.SyncfusionReactSplitbuttons=e(t.SyncfusionReactBase,t.React,t.SyncfusionSplitbuttons)}(self,(t,e,n)=>(()=>{"use strict";var o={21:(t,e,n)=>{n.d(e,{_z:()=>a,Og:()=>s,eS:()=>p});var o,r=n(705),i=(o=function(t,e){return o=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])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="dropDownButtonItem",e}(r.ComplexBase),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="dropDownButtonItems",e}(r.ComplexBase),u=n(24),c=n(295),l=function(){var t=function(e,n){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,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={dropDownButtonItems:"dropDownButtonItem"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return l(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return u.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(c.DropDownButton);(0,r.applyMixins)(a,[r.ComponentBase,u.Component])},352:(t,e,n)=>{n.d(e,{l:()=>u});var o,r=n(24),i=n(295),s=n(705),p=(o=function(t,e){return o=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])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return p(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.ProgressButton);(0,s.applyMixins)(u,[s.ComponentBase,r.Component])},959:(t,e,n)=>{n.d(e,{S4:()=>a,Fd:()=>s,kx:()=>p});var o,r=n(705),i=(o=function(t,e){return o=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])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="splitButtonItem",e}(r.ComplexBase),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="splitButtonItems",e}(r.ComplexBase),u=n(24),c=n(295),l=function(){var t=function(e,n){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,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={splitButtonItems:"splitButtonItem"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return l(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return u.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(c.SplitButton);(0,r.applyMixins)(a,[r.ComponentBase,u.Component])},24:t=>{t.exports=e},705:e=>{e.exports=t},295:t=>{t.exports=n}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}};return o[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{DropDownButtonComponent:()=>t._z,DropDownButtonItemDirective:()=>t.Og,DropDownButtonItemsDirective:()=>t.eS,ProgressButtonComponent:()=>n.l,SplitButtonComponent:()=>e.S4,SplitButtonItemDirective:()=>e.Fd,SplitButtonItemsDirective:()=>e.kx});var t=i(21),e=i(959),n=i(352),o=i(295),r={};for(const t in o)["default","DropDownButtonComponent","DropDownButtonItemDirective","DropDownButtonItemsDirective","SplitButtonComponent","SplitButtonItemDirective","SplitButtonItemsDirective","ProgressButtonComponent"].indexOf(t)<0&&(r[t]=()=>o[t]);i.d(s,r)})(),s})());