@syncfusion/ej2-ng-base
Advanced tools
Comparing version 1.0.8 to 1.0.10
@@ -1,1 +0,11 @@ | ||
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@angular/core"));else if("function"==typeof define&&define.amd)define(["@angular/core"],e);else{var n=e("object"==typeof exports?require("@angular/core"):t["@angular/core"]);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var r,o;r=[n,e,n(1),n(4),n(6),n(7)],void 0!==(o=function(t,e,n,r,o,i){"use strict";function a(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),a(n),a(r),a(o),a(i)}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(2)],void 0!==(o=function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.hasChanges=!1,this.propCollection={},this.tags=[],this.tagObjects=[]}return t.prototype.ngOnInit=function(){for(var t=0,e=this.tags;t<e.length;t++){var r=e[t],o=n.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),this);o&&this.tagObjects.push({instance:o,name:r})}},t.prototype.ngOnChanges=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e],o=t[r];this.propCollection[r]=o.currentValue}this.hasChanges=!0},t.prototype.getProperties=function(){for(var t=0,e=this.tagObjects;t<e.length;t++){var n=e[t];this.propCollection[n.name]=n.instance.getProperties()}return this.propCollection},t.prototype.ngAfterViewChecked=function(){this.hasChanges=!1},t}();e.ComplexBase=r;var o=function(){function t(t){this.list=[],this.hasChanges=!1,this.propertyName=t}return t.prototype.ngOnInit=function(){this.isInitChanges=!0},t.prototype.ngAfterContentInit=function(){var t=this,e=0;this.list=this.children.map(function(n){return n.index=e++,n.property=t.propertyName,n}),this.hasChanges=!0},t.prototype.getProperties=function(){for(var t=[],e=0,n=this.list;e<n.length;e++){var r=n[e];t.push(r.getProperties())}return t},t.prototype.isChanged=function(){for(var t=!1,e=0,n=this.list;e<n.length;e++){var r=n[e];t=t||r.hasChanges}return!!this.list.length&&t},t.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged()},t.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},t}();e.ArrayBase=o}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(3)],void 0!==(o=function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n)}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e],void 0!==(o=function(t,e){"use strict";function n(t,e){var n=e;return n.unshift(void 0),new(Function.prototype.bind.apply(t,n))}function r(t){var e,n=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(n);var r="ej2"+j(n),o=function(n){n.source===window&&"string"==typeof n.data&&n.data.length<=32&&n.data===r&&(t(),e())};return window.addEventListener("message",o,!1),window.postMessage(r,"*"),e=function(){window.removeEventListener("message",o)}}function o(t,e){for(var n=e,r=t.split("."),o=0;o<r.length&&!l(n);o++)n=n[r[o]];return n}function i(t,e,n){var r,o,i=t.split("."),a=n||{},s=a,u=i.length;for(r=0;r<u;r++)o=i[r],r+1===u?s[o]=void 0===e?{}:e:f(s[o])&&(s[o]={}),s=s[o];return a}function a(t,e){delete t[e]}function s(t){var e={};return!f(t)&&t.constructor===e.constructor}function u(t,e){return t[e]}function c(t,e){if(!f(e))for(var n=t,r=e,o=Object.keys(e),i=0,a=o;i<a.length;i++){var s=a[i];n[s]=r[s]}}function p(t,e,n,r){var o=t||{},i=arguments.length;r&&(i-=1);for(var a=arguments,u=1;u<i;u++)!function(t){if(!a[t])return"continue";var e=a[t];Object.keys(e).forEach(function(t){var n,i=o[t],a=e[t];r&&s(a)?(n=s(i)?i:{},o[t]=p({},n,a,!0)):o[t]=a})}(u);return o}function f(t){return void 0===t||null===t}function l(t){return void 0===t}function h(t){return t+"_"+P++}function g(t,e){var n,r=this;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=o[0],s=function(){return n=null,t.call(r,a)};clearTimeout(n),n=setTimeout(s,e)}}function d(t){for(var e=[],n=Object.keys(t),r=0,o=n;r<o.length;r++){var i=o[r];e.push(encodeURIComponent(i)+"="+encodeURIComponent(""+t[i]))}return e.join("&")}function v(t){var e=Object.prototype.toString;return"[object Array]"===e.call(t)&&"[object Object]"===e.call(t[0])}function y(t,e){var n=t;return n===e||!(n===document||!n)&&y(n.parentNode,e)}function m(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}}function C(t,e){var n=document.createElement("div"),r=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),o="";f(e)&&(e=window.open("","print","height=452,width=1024,tabbar=no")),n.appendChild(t.cloneNode(!0));for(var i=0,a=r.length;i<a;i++)o+=r[i].outerHTML;e.document.write("<!DOCTYPE html> <html><head>"+o+"</head><body>"+n.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),e.document.close(),e.focus();var s=setInterval(function(){e.ready&&(e.print(),e.close(),clearInterval(s))},500);return e}function b(t){var e=t+"";return"auto"===e||-1!==e.indexOf("%")||-1!==e.indexOf("px")?e:e+"px"}function O(t,e){var n="string"==typeof t?document.querySelector(t):t;if(n[x])for(var r=0,o=n[x];r<o.length;r++){var i=o[r];if(i instanceof e)return i}return null}function w(t,e){var n="string"==typeof t?document.querySelector(t):t;n[x]?n[x].push(e):n[x]=[e]}function j(t){for(var e="",n=0;n<5;n++)e+=(n?",":"")+t[n];return e}Object.defineProperty(e,"__esModule",{value:!0});var x="ej2_instances",P=0;e.createInstance=n,e.setImmediate=r,e.getValue=o,e.setValue=i,e.deleteObject=a,e.isObject=s,e.getEnumValue=u,e.merge=c,e.extend=p,e.isNullOrUndefined=f,e.isUndefined=l,e.getUniqueID=h,e.debounce=g,e.queryParams=d,e.isObjectArray=v,e.compareElementParent=y,e.throwError=m,e.print=C,e.formatUnit=b,e.getInstance=O,e.addInstance=w}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(2),n(5)],void 0!==(o=function(t,e,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){}return t.prototype.ngOnInit=function(){this.tags=this.tags||[],this.tagObjects=[];for(var t=0,e=this.tags;t<e.length;t++){var r=e[t],o={instance:n.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),this),name:r};this.tagObjects.push(o)}},t.prototype.ngAfterViewInit=function(){this.appendTo(this.element)},t.prototype.ngOnDestroy=function(){this.destroy()},t.prototype.ngAfterContentChecked=function(){for(var t=0,e=this.tagObjects;t<e.length;t++){var r=e[t];if(!n.isUndefined(r.instance)&&r.instance.hasChanges)if(r.instance.isInitChanges){var o={};o[r.name]=r.instance.getProperties(),this.setProperties(o,r.instance.isInitChanges)}else for(var i=0,a=r.instance.list;i<a.length;i++){var s=a[i];if(s.hasChanges){var u=r.instance.list.indexOf(s);n.getValue(r.name,this)[u].setProperties(s.getProperties())}}}},t.prototype.registerEvents=function(t){var e={};if(t&&t.length){for(var n=0,o=t;n<o.length;n++){e[o[n]]=new r.EventEmitter(!1)}this.setProperties(e,!0)}},t.prototype.addTwoWay=function(t){for(var e=this,o=this,i=0,a=t;i<a.length;i++){var s=a[i];!function(t){n.getValue(t,o),Object.defineProperty(o,t,{get:function(){return n.getValue(t,e.properties)},set:function(r){var o=n.getValue(t,e.properties);o!==r&&(e.saveChanges(t,r,o),n.setValue(t,n.isNullOrUndefined(r)?null:r,e.properties),n.getValue(t+"Change",e).emit(r))}}),n.setValue(t+"Change",new r.EventEmitter,o)}(s)}},t.prototype.trigger=function(t,e){var r=n.getValue(t,this);n.isUndefined(r)||r.next(e);var o=n.getValue("local"+t.charAt(0).toUpperCase()+t.slice(1),this);n.isUndefined(o)||o.call(this,e)},t}();e.ComponentBase=o}.apply(e,r))&&(t.exports=o)},function(e,n){e.exports=t},function(t,e,n){var r,o;r=[n,e],void 0!==(o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.localChange=function(t){void 0!==this.propagateChange&&this.propagateChange(t.value)},t.prototype.registerOnChange=function(t){this.propagateChange=t},t.prototype.registerOnTouched=function(t){this.propagateTouch=t},t.prototype.writeValue=function(t){this.value=t},t}();e.FormBase=n}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e],void 0!==(o=function(t,e){"use strict";function n(t,e){e.forEach(function(e){Object.getOwnPropertyNames(e.prototype).forEach(function(n){t.prototype[n]=e.prototype[n]})})}function r(t,e){void 0===e&&(e="");for(var n=[],o=0,i=t;o<i.length;o++){var a=i[o],s=a.type.prototype.propList;r(s.complexProps,"");n.push(a.propertyName)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixins=n,e.getPropArray=r}.apply(e,r))&&(t.exports=o)}])}); | ||
/*! | ||
* filename: ej2-ng-base.umd.min.js | ||
* version : 1.0.10 | ||
* Copyright Syncfusion Inc. 2001 - 2017. 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){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@angular/core"));else if("function"==typeof define&&define.amd)define(["@angular/core"],e);else{var n=e("object"==typeof exports?require("@angular/core"):t["@angular/core"]);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var r,o;r=[n,e,n(1),n(4),n(6),n(7),n(8)],void 0!==(o=function(t,e,n,r,o,i,s){"use strict";function a(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),a(n),a(r),a(o),a(i),a(s)}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(2)],void 0!==(o=function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.hasChanges=!1,this.propCollection={},this.tags=[],this.tagObjects=[]}return t.prototype.ngOnInit=function(){for(var t=0,e=this.tags;t<e.length;t++){var r=e[t],o=n.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),this);o&&this.tagObjects.push({instance:o,name:r})}},t.prototype.ngOnChanges=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e],o=t[r];this.propCollection[r]=o.currentValue}this.hasChanges=!0},t.prototype.getProperties=function(){for(var t=0,e=this.tagObjects;t<e.length;t++){var n=e[t];this.propCollection[n.name]=n.instance.getProperties()}return this.propCollection},t.prototype.ngAfterViewChecked=function(){this.hasChanges=!1},t}();e.ComplexBase=r;var o=function(){function t(t){this.list=[],this.hasChanges=!1,this.propertyName=t}return t.prototype.ngOnInit=function(){this.isInitChanges=!0},t.prototype.ngAfterContentInit=function(){var t=this,e=0;this.list=this.children.map(function(n){return n.index=e++,n.property=t.propertyName,n}),this.hasChanges=!0},t.prototype.getProperties=function(){for(var t=[],e=0,n=this.list;e<n.length;e++){var r=n[e];t.push(r.getProperties())}return t},t.prototype.isChanged=function(){for(var t=!1,e=0,n=this.list;e<n.length;e++){var r=n[e];t=t||r.hasChanges}return!!this.list.length&&t},t.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged()},t.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},t}();e.ArrayBase=o}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(3)],void 0!==(o=function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n)}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e],void 0!==(o=function(t,e){"use strict";function n(t,e){var n=e;return n.unshift(void 0),new(Function.prototype.bind.apply(t,n))}function r(t){var e,n=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(n);var r="ej2"+j(n),o=function(n){n.source===window&&"string"==typeof n.data&&n.data.length<=32&&n.data===r&&(t(),e())};return window.addEventListener("message",o,!1),window.postMessage(r,"*"),e=function(){window.removeEventListener("message",o)}}function o(t,e){for(var n=e,r=t.split("."),o=0;o<r.length&&!l(n);o++)n=n[r[o]];return n}function i(t,e,n){var r,o,i=t.split("."),s=n||{},a=s,u=i.length;for(r=0;r<u;r++)o=i[r],r+1===u?a[o]=void 0===e?{}:e:f(a[o])&&(a[o]={}),a=a[o];return s}function s(t,e){delete t[e]}function a(t){var e={};return!f(t)&&t.constructor===e.constructor}function u(t,e){return t[e]}function c(t,e){if(!f(e))for(var n=t,r=e,o=Object.keys(e),i=0,s=o;i<s.length;i++){var a=s[i];n[a]=r[a]}}function p(t,e,n,r){var o=t||{},i=arguments.length;r&&(i-=1);for(var s=arguments,u=1;u<i;u++)!function(t){if(!s[t])return"continue";var e=s[t];Object.keys(e).forEach(function(t){var n,i=o[t],s=e[t];r&&a(s)?(n=a(i)?i:{},o[t]=p({},n,s,!0)):o[t]=s})}(u);return o}function f(t){return void 0===t||null===t}function l(t){return void 0===t}function h(t){return t+"_"+P++}function g(t,e){var n,r=this;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=o[0],a=function(){return n=null,t.call(r,s)};clearTimeout(n),n=setTimeout(a,e)}}function d(t){for(var e=[],n=Object.keys(t),r=0,o=n;r<o.length;r++){var i=o[r];e.push(encodeURIComponent(i)+"="+encodeURIComponent(""+t[i]))}return e.join("&")}function v(t){var e=Object.prototype.toString;return"[object Array]"===e.call(t)&&"[object Object]"===e.call(t[0])}function y(t,e){var n=t;return n===e||!(n===document||!n)&&y(n.parentNode,e)}function m(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}}function b(t,e){var n=document.createElement("div"),r=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),o="";f(e)&&(e=window.open("","print","height=452,width=1024,tabbar=no")),n.appendChild(t.cloneNode(!0));for(var i=0,s=r.length;i<s;i++)o+=r[i].outerHTML;e.document.write("<!DOCTYPE html> <html><head>"+o+"</head><body>"+n.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),e.document.close(),e.focus();var a=setInterval(function(){e.ready&&(e.print(),e.close(),clearInterval(a))},500);return e}function O(t){var e=t+"";return"auto"===e||-1!==e.indexOf("%")||-1!==e.indexOf("px")?e:e+"px"}function C(t,e){var n="string"==typeof t?document.querySelector(t):t;if(n[x])for(var r=0,o=n[x];r<o.length;r++){var i=o[r];if(i instanceof e)return i}return null}function w(t,e){var n="string"==typeof t?document.querySelector(t):t;n[x]?n[x].push(e):n[x]=[e]}function j(t){for(var e="",n=0;n<5;n++)e+=(n?",":"")+t[n];return e}Object.defineProperty(e,"__esModule",{value:!0});var x="ej2_instances",P=0;e.createInstance=n,e.setImmediate=r,e.getValue=o,e.setValue=i,e.deleteObject=s,e.isObject=a,e.getEnumValue=u,e.merge=c,e.extend=p,e.isNullOrUndefined=f,e.isUndefined=l,e.getUniqueID=h,e.debounce=g,e.queryParams=d,e.isObjectArray=v,e.compareElementParent=y,e.throwError=m,e.print=b,e.formatUnit=O,e.getInstance=C,e.addInstance=w}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(2),n(5)],void 0!==(o=function(t,e,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){}return t.prototype.ngOnInit=function(){this.tags=this.tags||[],this.tagObjects=[];for(var t=0,e=this.tags;t<e.length;t++){var r=e[t],o={instance:n.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),this),name:r};this.tagObjects.push(o)}},t.prototype.ngAfterViewInit=function(){this.appendTo(this.element)},t.prototype.ngOnDestroy=function(){this.destroy()},t.prototype.ngAfterContentChecked=function(){for(var t=0,e=this.tagObjects;t<e.length;t++){var r=e[t];if(!n.isUndefined(r.instance)&&r.instance.hasChanges)if(r.instance.isInitChanges){var o={};o[r.name]=r.instance.getProperties(),this.setProperties(o,r.instance.isInitChanges)}else for(var i=0,s=r.instance.list;i<s.length;i++){var a=s[i];if(a.hasChanges){var u=r.instance.list.indexOf(a);n.getValue(r.name,this)[u].setProperties(a.getProperties())}}}},t.prototype.registerEvents=function(t){var e={};if(t&&t.length){for(var n=0,o=t;n<o.length;n++){e[o[n]]=new r.EventEmitter(!1)}this.setProperties(e,!0)}},t.prototype.addTwoWay=function(t){for(var e=this,o=this,i=0,s=t;i<s.length;i++){var a=s[i];!function(t){n.getValue(t,o),Object.defineProperty(o,t,{get:function(){return n.getValue(t,e.properties)},set:function(r){var o=n.getValue(t,e.properties);o!==r&&(e.saveChanges(t,r,o),n.setValue(t,n.isNullOrUndefined(r)?null:r,e.properties),n.getValue(t+"Change",e).emit(r))}}),n.setValue(t+"Change",new r.EventEmitter,o)}(a)}},t.prototype.trigger=function(t,e){var r=n.getValue(t,this);n.isUndefined(r)||r.next(e);var o=n.getValue("local"+t.charAt(0).toUpperCase()+t.slice(1),this);n.isUndefined(o)||o.call(this,e)},t}();e.ComponentBase=o}.apply(e,r))&&(t.exports=o)},function(e,n){e.exports=t},function(t,e,n){var r,o;r=[n,e],void 0!==(o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.localChange=function(t){void 0!==this.propagateChange&&this.propagateChange(t.value)},t.prototype.registerOnChange=function(t){this.propagateChange=t},t.prototype.registerOnTouched=function(t){this.propagateTouch=t},t.prototype.ngAfterViewInit=function(){this.appendTo(this.element),"input"!==this.ngEle.nativeElement.nodeName.toLowerCase()&&(this.element.addEventListener("focus",this.ngOnFocus.bind(this)),this.element.addEventListener("blur",this.ngOnBlur.bind(this)))},t.prototype.writeValue=function(t){this.value=t},t.prototype.ngOnFocus=function(t){this.focus.emit(t)},t.prototype.ngOnBlur=function(t){this.blur.emit(t)},t}();e.FormBase=n}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e],void 0!==(o=function(t,e){"use strict";function n(t,e){e.forEach(function(e){Object.getOwnPropertyNames(e.prototype).forEach(function(n){t.prototype[n]=e.prototype[n]})})}function r(t,e){void 0===e&&(e="");for(var n=[],o=0,i=t;o<i.length;o++){var s=i[o],a=s.type.prototype.propList;r(a.complexProps,"");n.push(s.propertyName)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixins=n,e.getPropArray=r}.apply(e,r))&&(t.exports=o)},function(t,e,n){var r,o;r=[n,e,n(2)],void 0!==(o=function(t,e,n){"use strict";function r(){return function(t,e){var n={set:o(e),get:i(e),enumerable:!0,configurable:!0};Object.defineProperty(t,e,n)}}function o(t){return function(e){void 0!==e&&n.setValue(t+"Ref",e,this)}}function i(t){return function(){return n.getValue(t+"Ref",this)}}Object.defineProperty(e,"__esModule",{value:!0}),e.Template=r}.apply(e,r))&&(t.exports=o)}])}); |
@@ -15,7 +15,20 @@ var FormBase = (function () { | ||
}; | ||
FormBase.prototype.ngAfterViewInit = function () { | ||
this.appendTo(this.element); | ||
if (this.ngEle.nativeElement.nodeName.toLowerCase() !== 'input') { | ||
this.element.addEventListener('focus', this.ngOnFocus.bind(this)); | ||
this.element.addEventListener('blur', this.ngOnBlur.bind(this)); | ||
} | ||
}; | ||
FormBase.prototype.writeValue = function (value) { | ||
this.value = value; | ||
}; | ||
FormBase.prototype.ngOnFocus = function (e) { | ||
this.focus.emit(e); | ||
}; | ||
FormBase.prototype.ngOnBlur = function (e) { | ||
this.blur.emit(e); | ||
}; | ||
return FormBase; | ||
}()); | ||
export { FormBase }; |
@@ -5,1 +5,2 @@ export * from './complex-array-base'; | ||
export * from './util'; | ||
export * from './template'; |
@@ -0,0 +0,0 @@ { |
@@ -13,29 +13,13 @@ { | ||
}, | ||
"D:\\sync\\workarea\\ej2" | ||
], | ||
[ | ||
{ | ||
"raw": "@syncfusion/ej2-ng-base@*", | ||
"scope": "@syncfusion", | ||
"escapedName": "@syncfusion%2fej2-ng-base", | ||
"name": "@syncfusion/ej2-ng-base", | ||
"rawSpec": "*", | ||
"spec": "*", | ||
"type": "range" | ||
}, | ||
"C:\\Users\\ajithr\\Desktop\\npm" | ||
"C:\\Users\\ajithr\\Desktop\\ej2-release" | ||
] | ||
], | ||
"_from": "@syncfusion/ej2-ng-base@*", | ||
"_id": "@syncfusion/ej2-ng-base@1.0.5", | ||
"_id": "@syncfusion/ej2-ng-base@1.0.10", | ||
"_inCache": true, | ||
"_location": "/@syncfusion/ej2-ng-base", | ||
"_nodeVersion": "6.10.2", | ||
"_npmOperationalInternal": { | ||
"host": "packages-18-east.internal.npmjs.com", | ||
"tmp": "tmp/ej2-ng-base-1.0.5.tgz_1494508078723_0.8686959680635482" | ||
}, | ||
"_nodeVersion": "6.11.0", | ||
"_npmUser": { | ||
"name": "ajithr11", | ||
"email": "ajithr@syncfusion.com" | ||
"name": "ej2", | ||
"email": "pipeline@syncfusion.com" | ||
}, | ||
@@ -60,10 +44,11 @@ "_npmVersion": "3.10.10", | ||
"/@syncfusion/ej2-ng-inputs", | ||
"/@syncfusion/ej2-ng-lists", | ||
"/@syncfusion/ej2-ng-navigations", | ||
"/@syncfusion/ej2-ng-popups" | ||
], | ||
"_resolved": "https://registry.npmjs.org/@syncfusion/ej2-ng-base/-/ej2-ng-base-1.0.5.tgz", | ||
"_shasum": "1a6a5e90d4adc22b687b01273fc558b08fe74151", | ||
"_resolved": "http://syncdeskn6525:8081/repository/ej2-production/@syncfusion/ej2-ng-base/-/ej2-ng-base-1.0.10.tgz", | ||
"_shasum": "f2f73e9601b43f29aa0fcf74571ef8bb5109db6b", | ||
"_shrinkwrap": null, | ||
"_spec": "@syncfusion/ej2-ng-base@*", | ||
"_where": "C:\\Users\\ajithr\\Desktop\\npm", | ||
"_where": "C:\\Users\\ajithr\\Desktop\\ej2-release", | ||
"author": { | ||
@@ -75,19 +60,12 @@ "name": "Syncfusion Inc." | ||
}, | ||
"config": { | ||
"ghooks": { | ||
"pre-commit": "gulp pre-commit", | ||
"pre-push": "gulp pre-push", | ||
"commit-msg": "gulp commit-msg" | ||
} | ||
}, | ||
"dependencies": { | ||
"@angular/common": "2.2.1 - 4.1.0", | ||
"@angular/compiler": "2.2.1 - 4.1.0", | ||
"@angular/core": "2.2.1 - 4.1.0", | ||
"@angular/forms": "2.2.1 - 4.1.0", | ||
"@angular/http": "2.2.1 - 4.1.0", | ||
"@angular/platform-browser": "2.2.1 - 4.1.0", | ||
"@angular/platform-browser-dynamic": "2.2.1 - 4.1.0", | ||
"@angular/router": "2.2.1 - 4.1.0", | ||
"@syncfusion/ej2-base": "^1.0.0", | ||
"@angular/common": "2.2.1 - 4.10.0", | ||
"@angular/compiler": "2.2.1 - 4.10.0", | ||
"@angular/core": "2.2.1 - 4.10.0", | ||
"@angular/forms": "2.2.1 - 4.10.0", | ||
"@angular/http": "2.2.1 - 4.10.0", | ||
"@angular/platform-browser": "2.2.1 - 4.10.0", | ||
"@angular/platform-browser-dynamic": "2.2.1 - 4.10.0", | ||
"@angular/router": "2.2.1 - 4.10.0", | ||
"@syncfusion/ej2-base": "^1.0.10", | ||
"core-js": "^2.4.1", | ||
@@ -98,3 +76,3 @@ "reflect-metadata": "^0.1.9", | ||
}, | ||
"description": "Syncfusion Angular Base", | ||
"description": "Essential JS 2 Angular Base", | ||
"devDependencies": { | ||
@@ -112,8 +90,7 @@ "@types/chai": "^3.4.28", | ||
}, | ||
"directories": {}, | ||
"dist": { | ||
"shasum": "1a6a5e90d4adc22b687b01273fc558b08fe74151", | ||
"tarball": "https://registry.npmjs.org/@syncfusion/ej2-ng-base/-/ej2-ng-base-1.0.5.tgz" | ||
"shasum": "f2f73e9601b43f29aa0fcf74571ef8bb5109db6b", | ||
"tarball": "http://syncdeskn6525:8081/repository/ej2-production/@syncfusion/ej2-ng-base/-/ej2-ng-base-1.0.10.tgz" | ||
}, | ||
"gitHead": "dfd4fa92932ab5c7392ee6b7c006150a20566d12", | ||
"gitHead": "8c3ba848200bc8a86b92eb60fa33d0183d18aace", | ||
"homepage": "https://github.com/syncfusion/ej2-ng-base#readme", | ||
@@ -123,7 +100,3 @@ "keywords": [ | ||
"syncfusion", | ||
"ej2-ng-base", | ||
"base", | ||
"angular", | ||
"angular 2", | ||
"angular2" | ||
"ej2-ng-base" | ||
], | ||
@@ -133,8 +106,4 @@ "license": "SEE LICENSE IN license", | ||
{ | ||
"name": "ajithr11", | ||
"email": "ajithr@syncfusion.com" | ||
}, | ||
{ | ||
"name": "syncfusionorg", | ||
"email": "npmjs@syncfusion.com" | ||
"name": "ej2", | ||
"email": "pipeline@syncfusion.com" | ||
} | ||
@@ -144,3 +113,4 @@ ], | ||
"optionalDependencies": {}, | ||
"readme": "ERROR: No README data found!", | ||
"readme": "A common package of Essential JS 2 angular base, methods and class definitions. It comes with full documentation and support and is available under commercial and community licenses – please visit www.syncfusion.com to get started.\n\n## Resources\n[Demos](http://ej2.syncfusion.com/angular/demos/) \n\n# 1.0.10\n\n## Bug Fixes\n- Form component's focus and blur events are propagated properly.", | ||
"readmeFilename": "ReadMe.md", | ||
"repository": { | ||
@@ -155,3 +125,3 @@ "type": "git", | ||
}, | ||
"version": "1.0.8" | ||
} | ||
"version": "1.0.10" | ||
} |
@@ -0,1 +1,2 @@ | ||
import { EventEmitter } from '@angular/core'; | ||
import { ControlValueAccessor } from '@angular/forms'; | ||
@@ -9,2 +10,7 @@ /** | ||
propagateTouch: () => void; | ||
element: HTMLElement; | ||
private ngEle; | ||
appendTo: (ele: string | HTMLElement) => void; | ||
focus: EventEmitter<Object>; | ||
blur: EventEmitter<Object>; | ||
localChange(e: { | ||
@@ -15,3 +21,6 @@ value: T; | ||
registerOnTouched(registerFunction: () => void): void; | ||
ngAfterViewInit(): void; | ||
writeValue(value: T): void; | ||
ngOnFocus(e: Event): void; | ||
ngOnBlur(e: Event): void; | ||
} |
@@ -18,5 +18,18 @@ define(["require", "exports"], function (require, exports) { | ||
}; | ||
FormBase.prototype.ngAfterViewInit = function () { | ||
this.appendTo(this.element); | ||
if (this.ngEle.nativeElement.nodeName.toLowerCase() !== 'input') { | ||
this.element.addEventListener('focus', this.ngOnFocus.bind(this)); | ||
this.element.addEventListener('blur', this.ngOnBlur.bind(this)); | ||
} | ||
}; | ||
FormBase.prototype.writeValue = function (value) { | ||
this.value = value; | ||
}; | ||
FormBase.prototype.ngOnFocus = function (e) { | ||
this.focus.emit(e); | ||
}; | ||
FormBase.prototype.ngOnBlur = function (e) { | ||
this.blur.emit(e); | ||
}; | ||
return FormBase; | ||
@@ -23,0 +36,0 @@ }()); |
@@ -8,1 +8,2 @@ /** | ||
export * from './util'; | ||
export * from './template'; |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "./complex-array-base", "./component-base", "./form-base", "./util"], function (require, exports, complex_array_base_1, component_base_1, form_base_1, util_1) { | ||
define(["require", "exports", "./complex-array-base", "./component-base", "./form-base", "./util", "./template"], function (require, exports, complex_array_base_1, component_base_1, form_base_1, util_1, template_1) { | ||
"use strict"; | ||
@@ -11,2 +11,3 @@ function __export(m) { | ||
__export(util_1); | ||
__export(template_1); | ||
}); |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40
19294
9
0
699203
+ Added@angular/common@4.4.7(transitive)
+ Added@angular/compiler@4.4.7(transitive)
+ Added@angular/core@4.4.7(transitive)
+ Added@angular/forms@4.4.7(transitive)
+ Added@angular/http@4.4.7(transitive)
+ Added@angular/platform-browser@4.4.7(transitive)
+ Added@angular/platform-browser-dynamic@4.4.7(transitive)
+ Added@angular/router@4.4.7(transitive)
+ Addedtslib@1.14.1(transitive)
- Removed@angular/common@4.1.0(transitive)
- Removed@angular/compiler@4.1.0(transitive)
- Removed@angular/core@4.1.0(transitive)
- Removed@angular/forms@4.1.0(transitive)
- Removed@angular/http@4.1.0(transitive)
- Removed@angular/platform-browser@4.1.0(transitive)
- Removed@angular/platform-browser-dynamic@4.1.0(transitive)
- Removed@angular/router@4.1.0(transitive)
Updated@angular/core@2.2.1 - 4.10.0
Updated@angular/http@2.2.1 - 4.10.0
Updated@syncfusion/ej2-base@^1.0.10