Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-react-base

Package Overview
Dependencies
Maintainers
2
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-react-base - npm Package Compare versions

Comparing version 1.0.11 to 1.0.14

dist/ej2-react-base.umd.js

4

dist/ej2-react-base.umd.min.js
/*!
* filename: ej2-react-base.umd.min.js
* version : 0.2.0
* version : 1.0.14
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.

@@ -11,2 +11,2 @@ * Use of this code is subject to the terms of our license.

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],e);else{var r="object"==typeof exports?e(require("react"),require("react-dom")):e(t.react,t["react-dom"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){var n,o;n=[r,e,r(1),r(6),r(7),r(8)],void 0!==(o=function(t,e,r,n,o,i){"use strict";function c(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),c(r),c(n),c(o),c(i)}.apply(e,n))&&(t.exports=o)},function(t,e,r){var n,o,i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();n=[r,e,r(2),r(3),r(4)],void 0!==(o=function(t,e,r,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","onClick","onFocus","onBlur"],u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentWillMount=function(){var t=Object.keys(this.props);this.htmlattributes={};for(var e=c.concat(this.controlAttributes||[]),r=0,n=t;r<n.length;r++){var o=n[r];-1===o.indexOf("data-")&&-1===o.indexOf("aria-")&&-1===e.indexOf(o)||(this.htmlattributes[o]=this.props[o])}},e.prototype.componentDidMount=function(){this.refreshChild(!0);var t=n.findDOMNode(this);this.appendTo(t)},e.prototype.componentWillReceiveProps=function(t){this.setState(t),this.setProperties(t),this.refreshChild(!1,t)},e.prototype.getDefaultAttributes=function(){return this.htmlattributes},e.prototype.refreshChild=function(t,e){if(this.checkInjectedModules){var r=this.getInjectedModules()||[];this.injectedModules=r.concat(this.getInjectedServices())}if(this.directivekeys){var n=this.validateChildren({},this.directivekeys,e||this.props);if(n){if(!t&&this.skipRefresh)for(var o=0,i=this.skipRefresh;o<i.length;o++){var c=i[o];delete n[c]}this.setProperties(n,t)}}},e.prototype.componentWillUnmount=function(){this.destroy()},e.prototype.validateChildren=function(t,e,n){for(var o=!1,i=r.Children.toArray(n.children),c=0,u=i;c<u.length;c++){var s=u[c],a=this.getChildType(s),p=e[a];if(a&&e){var f=this.getChildProps(r.Children.toArray(s.props.children),p);f.length&&(o=!0,t[s.type.propertyName||a]=f)}}return o?t:null},e.prototype.getChildType=function(t){return t.type&&t.type.isDirective?t.type.moduleName||"":""},e.prototype.getChildProps=function(t,e){for(var r=[],n=0,i=t;n<i.length;n++){var c=i[n],u=!1,s=void 0;"string"==typeof e?(u=!0,s=e):s=Object.keys(e)[0];var a=c.props;this.getChildType(c)===s&&(u||!a.children?r.push(a):r.push(this.validateChildren(o.extend({},a),e[s],a)||a))}return r},e.prototype.getInjectedServices=function(){for(var t=r.Children.toArray(this.props.children),e=0,n=t;e<n.length;e++){var o=n[e];if(o.type.isService)return o.props.services}return[]},e}(r.PureComponent);e.ComponentBase=u}.apply(e,n))&&(t.exports=o)},function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){var n,o;n=[r,e,r(5)],void 0!==(o=function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r)}.apply(e,n))&&(t.exports=o)},function(t,e,r){var n,o;n=[r,e],void 0!==(o=function(t,e){"use strict";function r(t,e){var r=e;return r.unshift(void 0),new(Function.prototype.bind.apply(t,r))}function n(t){var e,r=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(r);var n="ej2"+x(r),o=function(r){r.source===window&&"string"==typeof r.data&&r.data.length<=32&&r.data===n&&(t(),e())};return window.addEventListener("message",o,!1),window.postMessage(n,"*"),e=function(){window.removeEventListener("message",o)}}function o(t,e){for(var r=e,n=t.split("."),o=0;o<n.length&&!l(r);o++)r=r[n[o]];return r}function i(t,e,r){var n,o,i=t.split("."),c=r||{},u=c,s=i.length;for(n=0;n<s;n++)o=i[n],n+1===s?u[o]=void 0===e?{}:e:f(u[o])&&(u[o]={}),u=u[o];return c}function c(t,e){delete t[e]}function u(t){var e={};return!f(t)&&t.constructor===e.constructor}function s(t,e){return t[e]}function a(t,e){if(!f(e))for(var r=t,n=e,o=Object.keys(e),i=0,c=o;i<c.length;i++){var u=c[i];r[u]=n[u]}}function p(t,e,r,n){var o=t||{},i=arguments.length;n&&(i-=1);for(var c=arguments,s=1;s<i;s++)!function(t){if(!c[t])return"continue";var e=c[t];Object.keys(e).forEach(function(t){var r,i=o[t],c=e[t];n&&u(c)?(r=u(i)?i:{},o[t]=p({},r,c,!0)):o[t]=c})}(s);return o}function f(t){return void 0===t||null===t}function l(t){return void 0===t}function d(t){return t+"_"+P++}function h(t,e){var r,n=this;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var c=o[0],u=function(){return r=null,t.call(n,c)};clearTimeout(r),r=setTimeout(u,e)}}function v(t){for(var e=[],r=Object.keys(t),n=0,o=r;n<o.length;n++){var i=o[n];e.push(encodeURIComponent(i)+"="+encodeURIComponent(""+t[i]))}return e.join("&")}function y(t){var e=Object.prototype.toString;return"[object Array]"===e.call(t)&&"[object Object]"===e.call(t[0])}function m(t,e){var r=t;return r===e||!(r===document||!r)&&m(r.parentNode,e)}function _(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}}function b(t,e){var r=document.createElement("div"),n=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),o="";f(e)&&(e=window.open("","print","height=452,width=1024,tabbar=no")),r.appendChild(t.cloneNode(!0));for(var i=0,c=n.length;i<c;i++)o+=n[i].outerHTML;e.document.write("<!DOCTYPE html> <html><head>"+o+"</head><body>"+r.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),e.document.close(),e.focus();var u=setInterval(function(){e.ready&&(e.print(),e.close(),clearInterval(u))},500);return e}function g(t){var e=t+"";return"auto"===e||-1!==e.indexOf("%")||-1!==e.indexOf("px")?e:e+"px"}function O(t,e){var r="string"==typeof t?document.querySelector(t):t;if(r[w])for(var n=0,o=r[w];n<o.length;n++){var i=o[n];if(i instanceof e)return i}return null}function j(t,e){var r="string"==typeof t?document.querySelector(t):t;r[w]?r[w].push(e):r[w]=[e]}function x(t){for(var e="",r=0;r<5;r++)e+=(r?",":"")+t[r];return e}Object.defineProperty(e,"__esModule",{value:!0});var w="ej2_instances",P=0;e.createInstance=r,e.setImmediate=n,e.getValue=o,e.setValue=i,e.deleteObject=c,e.isObject=u,e.getEnumValue=s,e.merge=a,e.extend=p,e.isNullOrUndefined=f,e.isUndefined=l,e.getUniqueID=d,e.debounce=h,e.queryParams=v,e.isObjectArray=y,e.compareElementParent=m,e.throwError=_,e.print=b,e.formatUnit=g,e.getInstance=O,e.addInstance=j}.apply(e,n))&&(t.exports=o)},function(t,e,r){var n,o;n=[r,e],void 0!==(o=function(t,e){"use strict";function r(t,e){e.forEach(function(e){Object.getOwnPropertyNames(e.prototype).forEach(function(r){t.prototype[r]=e.prototype[r]})})}Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixins=r}.apply(e,n))&&(t.exports=o)},function(t,e,r){var n,o,i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();n=[r,e,r(2)],void 0!==(o=function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){return null},e}(r.PureComponent);n.isDirective=!0,e.ComplexBase=n}.apply(e,n))&&(t.exports=o)},function(t,e,r){var n,o,i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();n=[r,e,r(2)],void 0!==(o=function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){return null},e}(r.PureComponent);n.isService=!0,e.Inject=n}.apply(e,n))&&(t.exports=o)}])});
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-dom"),require("@syncfusion/ej2-base"));else if("function"==typeof define&&define.amd)define(["react","react-dom","@syncfusion/ej2-base"],e);else{var r="object"==typeof exports?e(require("react"),require("react-dom"),require("@syncfusion/ej2-base")):e(t.react,t["react-dom"],t["@syncfusion/ej2-base"]);for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(this,function(t,e,r){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){var o,n;o=[r,e,r(1),r(5),r(6),r(7)],void 0!==(n=function(t,e,r,o,n,i){"use strict";function s(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),s(r),s(o),s(n),s(i)}.apply(e,o))&&(t.exports=n)},function(t,e,r){var o,n,i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();o=[r,e,r(2),r(3),r(4)],void 0!==(n=function(t,e,r,o,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=["alt","className","disabled","form","id","readOnly","style","tabIndex","title","type","onClick","onFocus","onBlur"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentWillMount=function(){var t=Object.keys(this.props);this.htmlattributes={};for(var e=s.concat(this.controlAttributes||[]),r=0,o=t;r<o.length;r++){var n=o[r];-1===n.indexOf("data-")&&-1===n.indexOf("aria-")&&-1===e.indexOf(n)||(this.htmlattributes[n]=this.props[n])}},e.prototype.componentDidMount=function(){this.refreshChild(!0);var t=o.findDOMNode(this);this.appendTo(t)},e.prototype.componentWillReceiveProps=function(t){this.setState(t),this.setProperties(t),this.refreshChild(!1,t)},e.prototype.getDefaultAttributes=function(){return this.htmlattributes},e.prototype.refreshChild=function(t,e){if(this.checkInjectedModules){var r=this.getInjectedModules()||[];this.injectedModules=r.concat(this.getInjectedServices())}if(this.directivekeys){var o=this.validateChildren({},this.directivekeys,e||this.props);if(o){if(!t&&this.skipRefresh)for(var n=0,i=this.skipRefresh;n<i.length;n++){var s=i[n];delete o[s]}this.setProperties(o,t)}}},e.prototype.componentWillUnmount=function(){this.destroy()},e.prototype.validateChildren=function(t,e,o){for(var n=!1,i=r.Children.toArray(o.children),s=0,p=i;s<p.length;s++){var c=p[s],u=this.getChildType(c),a=e[u];if(u&&e){var f=this.getChildProps(r.Children.toArray(c.props.children),a);f.length&&(n=!0,t[c.type.propertyName||u]=f)}}return n?t:null},e.prototype.getChildType=function(t){return t.type&&t.type.isDirective?t.type.moduleName||"":""},e.prototype.getChildProps=function(t,e){for(var r=[],o=0,i=t;o<i.length;o++){var s=i[o],p=!1,c=void 0;"string"==typeof e?(p=!0,c=e):c=Object.keys(e)[0];var u=s.props;this.getChildType(s)===c&&(p||!u.children?r.push(u):r.push(this.validateChildren(n.extend({},u),e[c],u)||u))}return r},e.prototype.getInjectedServices=function(){for(var t=r.Children.toArray(this.props.children),e=0,o=t;e<o.length;e++){var n=o[e];if(n.type.isService)return n.props.services}return[]},e}(r.PureComponent);e.ComponentBase=p}.apply(e,o))&&(t.exports=n)},function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e){t.exports=r},function(t,e,r){var o,n;o=[r,e],void 0!==(n=function(t,e){"use strict";function r(t,e){e.forEach(function(e){Object.getOwnPropertyNames(e.prototype).forEach(function(r){t.prototype[r]=e.prototype[r]})})}Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixins=r}.apply(e,o))&&(t.exports=n)},function(t,e,r){var o,n,i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();o=[r,e,r(2)],void 0!==(n=function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){return null},e}(r.PureComponent);o.isDirective=!0,e.ComplexBase=o}.apply(e,o))&&(t.exports=n)},function(t,e,r){var o,n,i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();o=[r,e,r(2)],void 0!==(n=function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){return null},e}(r.PureComponent);o.isService=!0,e.Inject=o}.apply(e,o))&&(t.exports=n)}])});

@@ -13,3 +13,3 @@ var __extends = (this && this.__extends) || (function () {

import * as ReactDOM from 'react-dom';
import { extend } from '@syncfusion/ej2-base/util';
import { extend } from '@syncfusion/ej2-base';
var defaulthtmlkeys = ['alt', 'className', 'disabled', 'form', 'id',

@@ -16,0 +16,0 @@ 'readOnly', 'style', 'tabIndex', 'title', 'type',

{
"name": "@syncfusion/ej2-react-base",
"version": "1.0.11",
"description": "Syncfusion React Base",
"version": "1.0.14",
"description": "Essential JS 2 React Base",
"author": "Syncfusion Inc.",

@@ -27,3 +27,3 @@ "license": "SEE LICENSE IN license",

"source-map-loader": "^0.2.1",
"@syncfusion/ej2-base": "^1.0.11"
"@syncfusion/ej2-base": "^1.0.14"
},

@@ -30,0 +30,0 @@ "devDependencies": {

@@ -11,3 +11,3 @@ var __extends = (this && this.__extends) || (function () {

})();
define(["require", "exports", "react", "react-dom", "@syncfusion/ej2-base/util"], function (require, exports, React, ReactDOM, util_1) {
define(["require", "exports", "react", "react-dom", "@syncfusion/ej2-base"], function (require, exports, React, ReactDOM, ej2_base_1) {
"use strict";

@@ -114,3 +114,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

else {
ret.push(this.validateChildren(util_1.extend({}, prop), matcher[key], prop) || prop);
ret.push(this.validateChildren(ej2_base_1.extend({}, prop), matcher[key], prop) || prop);
}

@@ -117,0 +117,0 @@ }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc