UNPKG

@syncfusion/ej2-react-buttons

Version:

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

10 lines 11.3 kB
/*! * filename: ej2-react-buttons.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("React"),require("SyncfusionButtons"),require("SyncfusionReactBase")):"function"==typeof define&&define.amd?define(["React","SyncfusionButtons","SyncfusionReactBase"],e):"object"==typeof exports?exports.SyncfusionReactButtons=e(require("React"),require("SyncfusionButtons"),require("SyncfusionReactBase")):t.SyncfusionReactButtons=e(t.React,t.SyncfusionButtons,t.SyncfusionReactBase)}(self,(t,e,n)=>(()=>{"use strict";var o={119:(t,e,n)=>{n.d(e,{r:()=>p});var o,r=n(24),i=n(741),s=n(705),c=(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)}),p=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 c(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.Button);(0,s.applyMixins)(p,[s.ComponentBase,r.Component])},820:(t,e,n)=>{n.d(e,{u:()=>p});var o,r=n(24),i=n(741),s=n(705),c=(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)}),p=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 c(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement(r.Fragment,null,[].concat(r.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.CheckBox);(0,s.applyMixins)(p,[s.ComponentBase,r.Component])},979:(t,e,n)=>{n.d(e,{gP:()=>s,rf:()=>u,Uz:()=>c});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="chip",e}(r.ComplexBase),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="chips",e.moduleName="chips",e}(r.ComplexBase),p=n(24),a=n(741),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)}}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={chips:"chip"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,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 p.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.ChipList);(0,r.applyMixins)(u,[r.ComponentBase,p.Component])},994:(t,e,n)=>{n.d(e,{u:()=>p});var o,r=n(24),i=n(741),s=n(705),c=(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)}),p=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 c(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.Fab);(0,s.applyMixins)(p,[s.ComponentBase,r.Component])},319:(t,e,n)=>{n.d(e,{_:()=>p});var o,r=n(24),i=n(741),s=n(705),c=(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)}),p=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 c(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement(r.Fragment,null,[].concat(r.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.RadioButton);(0,s.applyMixins)(p,[s.ComponentBase,r.Component])},218:(t,e,n)=>{n.d(e,{B:()=>p});var o,r=n(24),i=n(741),s=n(705),c=(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)}),p=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 c(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.SmartPasteButton);(0,s.applyMixins)(p,[s.ComponentBase,r.Component])},809:(t,e,n)=>{n.d(e,{o6:()=>u,Cr:()=>s,Oc:()=>c});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="speedDialItem",e}(r.ComplexBase),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="speedDialItems",e}(r.ComplexBase),p=n(24),a=n(741),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)}}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={speedDialItems:"speedDialItem"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,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 p.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.SpeedDial);(0,r.applyMixins)(u,[r.ComponentBase,p.Component])},370:(t,e,n)=>{n.d(e,{q:()=>p});var o,r=n(24),i=n(741),s=n(705),c=(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)}),p=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 c(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement(r.Fragment,null,[].concat(r.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.Switch);(0,s.applyMixins)(p,[s.ComponentBase,r.Component])},24:e=>{e.exports=t},741:t=>{t.exports=e},705: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,{ButtonComponent:()=>t.r,CheckBoxComponent:()=>e.u,ChipDirective:()=>r.gP,ChipListComponent:()=>r.rf,ChipsDirective:()=>r.Uz,FabComponent:()=>c.u,RadioButtonComponent:()=>n._,SmartPasteButtonComponent:()=>a.B,SpeedDialComponent:()=>p.o6,SpeedDialItemDirective:()=>p.Cr,SpeedDialItemsDirective:()=>p.Oc,SwitchComponent:()=>o.q});var t=i(119),e=i(820),n=i(319),o=i(370),r=i(979),c=i(994),p=i(809),a=i(218),l=i(741),u={};for(const t in l)["default","ButtonComponent","CheckBoxComponent","RadioButtonComponent","SwitchComponent","ChipDirective","ChipListComponent","ChipsDirective","FabComponent","SpeedDialComponent","SpeedDialItemDirective","SpeedDialItemsDirective","SmartPasteButtonComponent"].indexOf(t)<0&&(u[t]=()=>l[t]);i.d(s,u)})(),s})());