UNPKG

@syncfusion/ej2-react-inputs

Version:

A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users. for React

10 lines 14.8 kB
/*! * filename: ej2-react-inputs.min.js * version : 29.1.33 * 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("SyncfusionInputs"),require("SyncfusionReactBase")):"function"==typeof define&&define.amd?define(["React","SyncfusionInputs","SyncfusionReactBase"],e):"object"==typeof exports?exports.SyncfusionReactInputs=e(require("React"),require("SyncfusionInputs"),require("SyncfusionReactBase")):t.SyncfusionReactInputs=e(t.React,t.SyncfusionInputs,t.SyncfusionReactBase)}(self,((t,e,n)=>(()=>{"use strict";var r={585:(t,e,n)=>{n.d(e,{h:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.ColorPicker);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},280:(t,e,n)=>{n.d(e,{K:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this,e)||this;return n.controlAttributes=["name"],n.initRenderCalled=!1,n.checkInjectedModules=!1,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.MaskedTextBox);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},766:(t,e,n)=>{n.d(e,{U:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.NumericTextBox);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},988:(t,e,n)=>{n.d(e,{u:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.OtpInput);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},874:(t,e,n)=>{n.d(e,{A:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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=!1,n.isReactMock=!0,n.portals=[],n}return a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.Rating);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},128:(t,e,n)=>{n.d(e,{t:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("canvas",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.Signature);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},265:(t,e,n)=>{n.d(e,{P:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this,e)||this;return n.controlAttributes=["name"],n.initRenderCalled=!1,n.checkInjectedModules=!1,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.Slider);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},154:(t,e,n)=>{n.d(e,{T:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("textarea",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.SmartTextArea);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},777:(t,e,n)=>{n.d(e,{P:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("button",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.SpeechToText);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},390:(t,e,n)=>{n.d(e,{U:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("textarea",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.TextArea);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},593:(t,e,n)=>{n.d(e,{P:()=>c});var r,o=n(24),i=n(323),s=n(705),a=(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])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=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 a(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement(o.Fragment,null,[].concat(o.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.TextBox);(0,s.applyMixins)(c,[s.ComponentBase,o.Component])},682:(t,e,n)=>{n.d(e,{hQ:()=>a,E_:()=>s,BP:()=>u});var r,o=n(705),i=(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])},r(t,e)},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=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="uploadedFiles",e}(o.ComplexBase),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="files",e.moduleName="files",e}(o.ComplexBase),c=n(24),p=n(323),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 r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={files:"uploadedFiles"},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 c.createElement(c.Fragment,null,[].concat(c.createElement("input",this.getDefaultAttributes()),this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(p.Uploader);(0,o.applyMixins)(u,[o.ComponentBase,c.Component])},24:e=>{e.exports=t},323:t=>{t.exports=e},705:t=>{t.exports=n}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[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,{ColorPickerComponent:()=>c.h,FilesDirective:()=>a.hQ,MaskedTextBoxComponent:()=>r.K,NumericTextBoxComponent:()=>n.U,OtpInputComponent:()=>u.u,RatingComponent:()=>l.A,SignatureComponent:()=>p.t,SliderComponent:()=>o.P,SmartTextAreaComponent:()=>d.T,SpeechToTextComponent:()=>f.P,TextAreaComponent:()=>e.U,TextBoxComponent:()=>t.P,UploadedFilesDirective:()=>a.E_,UploaderComponent:()=>a.BP});var t=i(593),e=i(390),n=i(766),r=i(280),o=i(265),a=i(682),c=i(585),p=i(128),l=i(874),u=i(988),d=i(154),f=i(777),h=i(323),m={};for(const t in h)["default","TextBoxComponent","TextAreaComponent","NumericTextBoxComponent","MaskedTextBoxComponent","SliderComponent","FilesDirective","UploadedFilesDirective","UploaderComponent","ColorPickerComponent","SignatureComponent","RatingComponent","OtpInputComponent","SmartTextAreaComponent","SpeechToTextComponent"].indexOf(t)<0&&(m[t]=()=>h[t]);i.d(s,m)})(),s})()));