@syncfusion/ej2-ng-base
Advanced tools
Comparing version 16.1.24 to 16.1.25
@@ -11,3 +11,3 @@ /*! | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-base"),require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@angular/core"],t):t(e.ej={},e.ej2Base,e.core)}(this,function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e.registeredTemplate);if(n.length)for(var i=t&&t.filter(function(e){return!/\./g.test(e)}),r=0,o=i&&i||n;r<o.length;r++){for(var s=o[r],a=0,p=e.registeredTemplate[s];a<p.length;a++){var h=p[a];if(!h.destroyed){for(var u=h._view.renderer.parentNode(h.rootNodes[0]),c=void 0;c<h.rootNodes.length;c++)u.appendChild(h.rootNodes[c]);h.destroy()}}delete e.registeredTemplate[s]}for(var f=function(e){e.instance&&e.instance.clearTemplate(t&&t.filter(function(t){return!!new RegExp(e.name).test(t)}))},l=0,g=e.tagObjects;l<g.length;l++){f(g[l])}}function r(e,n){if("string"==typeof e)return h(e,n);var i=e.elementRef.nativeElement._viewContainerRef,r=e.elementRef.nativeElement.propName;return function(n,o,s){var a={$implicit:n},p=i||o.viewContainerRef,h=p.createEmbeddedView(e,a),u=o?o.registeredTemplate:t.getValue("currentInstance.registeredTemplate",p);return s=s||r,void 0===u[s]&&(u[s]=[]),u[s].push(h),h.rootNodes}}var o=function(){function e(){this.hasChanges=!1,this.propCollection={},this.tags=[],this.tagObjects=[]}return e.prototype.ngOnInit=function(){this.registeredTemplate={};for(var e=0,n=this.tags;e<n.length;e++){var i=n[e],r=t.getValue("child"+i.substring(0,1).toUpperCase()+i.substring(1),this);r&&this.tagObjects.push({instance:r,name:i})}for(var o=Object.keys(this),s=0,a=o=o.filter(function(e){return/Ref$/i.test(e)});s<a.length;s++){var p=a[s].replace("Ref","");t.setValue(p.replace("_","."),t.getValue(p,this),this.propCollection)}},e.prototype.ngOnChanges=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t],r=e[i];this.propCollection[i]=r.currentValue}this.hasChanges=!0},e.prototype.clearTemplate=function(e){i(this,e)},e.prototype.getProperties=function(){for(var e=0,t=this.tagObjects;e<t.length;e++){var n=t[e];this.propCollection[n.name]=n.instance.getProperties()}return this.propCollection},e.prototype.isChanged=function(){for(var e=this.hasChanges,t=0,n=this.tagObjects;t<n.length;t++){var i=n[t];e=e||i.instance.hasChanges}return e},e.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged();var e=Object.keys(this);e=e.filter(function(e){return/Ref$/i.test(e)})},e.prototype.ngAfterViewChecked=function(){this.hasChanges=!1},e}(),s=function(){function e(e){this.list=[],this.hasChanges=!1,this.propertyName=e}return e.prototype.ngOnInit=function(){this.isInitChanges=!0},e.prototype.ngAfterContentInit=function(){var e=this,t=0;this.list=this.children.map(function(n){return n.index=t++,n.property=e.propertyName,n}),this.hasChanges=!0},e.prototype.getProperties=function(){for(var e=[],t=0,n=this.list;t<n.length;t++){var i=n[t];e.push(i.getProperties())}return e},e.prototype.isChanged=function(){for(var e=!1,t=0,n=this.list;t<n.length;t++){var i=n[t];e=e||i.hasChanges}return!!this.list.length&&e},e.prototype.clearTemplate=function(e){for(var t=this,n=0,i=this.list;n<i.length;n++){i[n].clearTemplate(e&&e.map(function(e){return new RegExp(t.propertyName).test(e)?e.replace(t.propertyName+".",""):e}))}},e.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged()},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e}(),a=function(){function e(){}return e.prototype.ngOnInit=function(){this.registeredTemplate={},this.ngBoundedEvents={},this.tags=this.tags||[],this.complexTemplate=this.complexTemplate||[],this.tagObjects=[];for(var e=0,n=this.tags;e<n.length;e++){var i=n[e],r={instance:t.getValue("child"+i.substring(0,1).toUpperCase()+i.substring(1),this),name:i};this.tagObjects.push(r)}for(var o=Object.keys(this),s=0,a=o=o.filter(function(e){return/Ref$/i.test(e)&&/\_/i.test(e)});s<a.length;s++){var p=a[s].replace("Ref",""),h={};t.setValue(p.replace("_","."),t.getValue(p,this),h),this.setProperties(h,!0)}},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){"undefined"!=typeof window&&e.appendTo(e.element)})},e.prototype.ngOnDestroy=function(){"undefined"!=typeof window&&(this.destroy(),this.clearTemplate(null))},e.prototype.clearTemplate=function(e){i(this,e)},e.prototype.ngAfterContentChecked=function(){for(var e=0,n=this.tagObjects;e<n.length;e++){var i=n[e];if(!t.isUndefined(i.instance)&&(i.instance.isInitChanges||i.instance.hasChanges))if(i.instance.isInitChanges){var r={};r[i.name]=i.instance.getProperties(),this.setProperties(r,i.instance.isInitChanges)}else for(var o=0,s=i.instance.list;o<s.length;o++){var a=s[o];if(a.hasChanges){var p=i.instance.list.indexOf(a);t.getValue(i.name,this)[p].setProperties(a.getProperties())}}}},e.prototype.registerEvents=function(e){var t={};if(e&&e.length){for(var i=0,r=e;i<r.length;i++){t[r[i]]=new n.EventEmitter(!1)}this.setProperties(t,!0)}},e.prototype.addTwoWay=function(e){for(var i=this,r=function(e){t.getValue(e,o),Object.defineProperty(o,e,{get:function(){return t.getValue(e,i.properties)},set:function(n){var r=t.getValue(e,i.properties);r!==n&&(i.saveChanges(e,n,r),t.setValue(e,t.isNullOrUndefined(n)?null:n,i.properties),t.getValue(e+"Change",i).emit(n))}}),t.setValue(e+"Change",new n.EventEmitter,o)},o=this,s=0,a=e;s<a.length;s++){r(a[s])}},e.prototype.addEventListener=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||(this.ngBoundedEvents[e]||(this.ngBoundedEvents[e]=new Map),this.ngBoundedEvents[e].set(n,i.subscribe(n)))},e.prototype.removeEventListener=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||this.ngBoundedEvents[e].get(n).unsubscribe()},e.prototype.trigger=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||i.next(n);var r=t.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this);t.isUndefined(r)||r.call(this,n)},e}(),p=function(){function e(){}return e.prototype.propagateChange=function(e){},e.prototype.propagateTouch=function(){},e.prototype.localChange=function(e){var t=void 0===e.checked?e.value:e.checked;void 0!==this.propagateChange&&void 0!==t&&this.propagateChange(t)},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(e){this.propagateTouch=e},e.prototype.ngAfterViewInit=function(){var e=this;"undefined"!=typeof window&&setTimeout(function(){e.appendTo(e.element);var t=e.inputElement||e.element;t.addEventListener("focus",e.ngOnFocus.bind(e)),t.addEventListener("blur",e.ngOnBlur.bind(e))})},e.prototype.setDisabledState=function(e){this.enabled=!e},e.prototype.writeValue=function(e){void 0===this.checked?this.value=e:this.checked="boolean"==typeof e?e:e===this.value},e.prototype.ngOnFocus=function(e){this.focus.emit(e)},e.prototype.ngOnBlur=function(e){this.propagateTouch(),this.blur.emit(e)},e}(),h=t.getTemplateEngine();t.setTemplateEngine({compile:r}),e.ComplexBase=o,e.ArrayBase=s,e.ComponentBase=a,e.FormBase=p,e.applyMixins=function(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(n){e.prototype[n]=t.prototype[n]})})},e.clearTemplate=i,e.setValue=function(e,t,n){for(var i=e.split("."),r=n||{},o=0;o<i.length;o++){var s=i[o];o+1===i.length?r[s]=void 0===t?{}:t:void 0===r[s]&&(r[s]={}),r=r[s]}return r},e.compile=r,e.Template=function(e){return function(n,i){var r={set:function(e){return function(n){void 0!==n&&(t.setValue(e+"Ref",n,this),"string"!=typeof n?(n.elementRef.nativeElement._viewContainerRef=this.viewContainerRef,n.elementRef.nativeElement.propName=e):this.saveChanges&&(this.saveChanges(e,n,void 0),this.dataBind()))}}(i),get:function(e,n){return function(){return t.getValue(e+"Ref",this)||n}}(i,e),enumerable:!0,configurable:!0};Object.defineProperty(n,i,r)}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-base"),require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@angular/core"],t):t(e.ej={},e.ej2Base,e.core)}(this,function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e.registeredTemplate);if(n.length)for(var i=t&&t.filter(function(e){return!/\./g.test(e)}),r=0,o=i&&i||n;r<o.length;r++){for(var s=o[r],a=0,p=e.registeredTemplate[s];a<p.length;a++){var h=p[a];if(!h.destroyed){for(var u=h._view.renderer.parentNode(h.rootNodes[0]),c=0;c<h.rootNodes.length;c++)u.appendChild(h.rootNodes[c]);h.destroy()}}delete e.registeredTemplate[s]}for(var f=function(e){e.instance&&e.instance.clearTemplate(t&&t.filter(function(t){return!!new RegExp(e.name).test(t)}))},l=0,g=e.tagObjects;l<g.length;l++){f(g[l])}}function r(e,n){if("string"==typeof e)return h(e,n);var i=e.elementRef.nativeElement._viewContainerRef,r=e.elementRef.nativeElement.propName;return function(n,o,s){var a={$implicit:n},p=i||o.viewContainerRef,h=p.createEmbeddedView(e,a),u=o?o.registeredTemplate:t.getValue("currentInstance.registeredTemplate",p);return s=s||r,void 0===u[s]&&(u[s]=[]),u[s].push(h),h.rootNodes}}var o=function(){function e(){this.hasChanges=!1,this.propCollection={},this.tags=[],this.tagObjects=[]}return e.prototype.ngOnInit=function(){this.registeredTemplate={};for(var e=0,n=this.tags;e<n.length;e++){var i=n[e],r=t.getValue("child"+i.substring(0,1).toUpperCase()+i.substring(1),this);r&&this.tagObjects.push({instance:r,name:i})}for(var o=Object.keys(this),s=0,a=o=o.filter(function(e){return/Ref$/i.test(e)});s<a.length;s++){var p=a[s].replace("Ref","");t.setValue(p.replace("_","."),t.getValue(p,this),this.propCollection)}},e.prototype.ngOnChanges=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t],r=e[i];this.propCollection[i]=r.currentValue}this.hasChanges=!0},e.prototype.clearTemplate=function(e){i(this,e)},e.prototype.getProperties=function(){for(var e=0,t=this.tagObjects;e<t.length;e++){var n=t[e];this.propCollection[n.name]=n.instance.getProperties()}return this.propCollection},e.prototype.isChanged=function(){for(var e=this.hasChanges,t=0,n=this.tagObjects;t<n.length;t++){var i=n[t];e=e||i.instance.hasChanges}return e},e.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged();var e=Object.keys(this);e=e.filter(function(e){return/Ref$/i.test(e)})},e.prototype.ngAfterViewChecked=function(){this.hasChanges=!1},e}(),s=function(){function e(e){this.list=[],this.hasChanges=!1,this.propertyName=e}return e.prototype.ngOnInit=function(){this.isInitChanges=!0},e.prototype.ngAfterContentInit=function(){var e=this,t=0;this.list=this.children.map(function(n){return n.index=t++,n.property=e.propertyName,n}),this.hasChanges=!0},e.prototype.getProperties=function(){for(var e=[],t=0,n=this.list;t<n.length;t++){var i=n[t];e.push(i.getProperties())}return e},e.prototype.isChanged=function(){for(var e=!1,t=0,n=this.list;t<n.length;t++){var i=n[t];e=e||i.hasChanges}return!!this.list.length&&e},e.prototype.clearTemplate=function(e){for(var t=this,n=0,i=this.list;n<i.length;n++){i[n].clearTemplate(e&&e.map(function(e){return new RegExp(t.propertyName).test(e)?e.replace(t.propertyName+".",""):e}))}},e.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged()},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e}(),a=function(){function e(){}return e.prototype.ngOnInit=function(){this.registeredTemplate={},this.ngBoundedEvents={},this.tags=this.tags||[],this.complexTemplate=this.complexTemplate||[],this.tagObjects=[];for(var e=0,n=this.tags;e<n.length;e++){var i=n[e],r={instance:t.getValue("child"+i.substring(0,1).toUpperCase()+i.substring(1),this),name:i};this.tagObjects.push(r)}for(var o=Object.keys(this),s=0,a=o=o.filter(function(e){return/Ref$/i.test(e)&&/\_/i.test(e)});s<a.length;s++){var p=a[s].replace("Ref",""),h={};t.setValue(p.replace("_","."),t.getValue(p,this),h),this.setProperties(h,!0)}},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){"undefined"!=typeof window&&e.appendTo(e.element)})},e.prototype.ngOnDestroy=function(){"undefined"!=typeof window&&(this.destroy(),this.clearTemplate(null))},e.prototype.clearTemplate=function(e){i(this,e)},e.prototype.ngAfterContentChecked=function(){for(var e=0,n=this.tagObjects;e<n.length;e++){var i=n[e];if(!t.isUndefined(i.instance)&&(i.instance.isInitChanges||i.instance.hasChanges))if(i.instance.isInitChanges){var r={};r[i.name]=i.instance.getProperties(),this.setProperties(r,i.instance.isInitChanges)}else for(var o=0,s=i.instance.list;o<s.length;o++){var a=s[o];if(a.hasChanges){var p=i.instance.list.indexOf(a);t.getValue(i.name,this)[p].setProperties(a.getProperties())}}}},e.prototype.registerEvents=function(e){var t={};if(e&&e.length){for(var i=0,r=e;i<r.length;i++){t[r[i]]=new n.EventEmitter(!1)}this.setProperties(t,!0)}},e.prototype.addTwoWay=function(e){for(var i=this,r=function(e){t.getValue(e,o),Object.defineProperty(o,e,{get:function(){return t.getValue(e,i.properties)},set:function(n){var r=t.getValue(e,i.properties);r!==n&&(i.saveChanges(e,n,r),t.setValue(e,t.isNullOrUndefined(n)?null:n,i.properties),t.getValue(e+"Change",i).emit(n))}}),t.setValue(e+"Change",new n.EventEmitter,o)},o=this,s=0,a=e;s<a.length;s++){r(a[s])}},e.prototype.addEventListener=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||(this.ngBoundedEvents[e]||(this.ngBoundedEvents[e]=new Map),this.ngBoundedEvents[e].set(n,i.subscribe(n)))},e.prototype.removeEventListener=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||this.ngBoundedEvents[e].get(n).unsubscribe()},e.prototype.trigger=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||i.next(n);var r=t.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this);t.isUndefined(r)||r.call(this,n)},e}(),p=function(){function e(){}return e.prototype.propagateChange=function(e){},e.prototype.propagateTouch=function(){},e.prototype.localChange=function(e){var t=void 0===e.checked?e.value:e.checked;void 0!==this.propagateChange&&void 0!==t&&this.propagateChange(t)},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(e){this.propagateTouch=e},e.prototype.ngAfterViewInit=function(){var e=this;"undefined"!=typeof window&&setTimeout(function(){e.appendTo(e.element);var t=e.inputElement||e.element;t.addEventListener("focus",e.ngOnFocus.bind(e)),t.addEventListener("blur",e.ngOnBlur.bind(e))})},e.prototype.setDisabledState=function(e){this.enabled=!e},e.prototype.writeValue=function(e){void 0===this.checked?this.value=e:this.checked="boolean"==typeof e?e:e===this.value},e.prototype.ngOnFocus=function(e){this.focus.emit(e)},e.prototype.ngOnBlur=function(e){this.propagateTouch(),this.blur.emit(e)},e}(),h=t.getTemplateEngine();t.setTemplateEngine({compile:r}),e.ComplexBase=o,e.ArrayBase=s,e.ComponentBase=a,e.FormBase=p,e.applyMixins=function(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(n){e.prototype[n]=t.prototype[n]})})},e.clearTemplate=i,e.setValue=function(e,t,n){for(var i=e.split("."),r=n||{},o=0;o<i.length;o++){var s=i[o];o+1===i.length?r[s]=void 0===t?{}:t:void 0===r[s]&&(r[s]={}),r=r[s]}return r},e.compile=r,e.Template=function(e){return function(n,i){var r={set:function(e){return function(n){void 0!==n&&(t.setValue(e+"Ref",n,this),"string"!=typeof n?(n.elementRef.nativeElement._viewContainerRef=this.viewContainerRef,n.elementRef.nativeElement.propName=e):this.saveChanges&&(this.saveChanges(e,n,void 0),this.dataBind()))}}(i),get:function(e,n){return function(){return t.getValue(e+"Ref",this)||n}}(i,e),enumerable:!0,configurable:!0};Object.defineProperty(n,i,r)}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ej2-ng-base.umd.min.js.map |
@@ -28,3 +28,3 @@ import { getTemplateEngine, getValue, isNullOrUndefined, isUndefined, setTemplateEngine, setValue } from '@syncfusion/ej2-base'; | ||
let pNode = rt._view.renderer.parentNode(rt.rootNodes[0]); | ||
for (let m; m < rt.rootNodes.length; m++) { | ||
for (let m = 0; m < rt.rootNodes.length; m++) { | ||
pNode.appendChild(rt.rootNodes[m]); | ||
@@ -31,0 +31,0 @@ } |
@@ -30,3 +30,3 @@ import { getTemplateEngine, getValue, isNullOrUndefined, isUndefined, setTemplateEngine, setValue } from '@syncfusion/ej2-base'; | ||
var pNode = rt._view.renderer.parentNode(rt.rootNodes[0]); | ||
for (var m = void 0; m < rt.rootNodes.length; m++) { | ||
for (var m = 0; m < rt.rootNodes.length; m++) { | ||
pNode.appendChild(rt.rootNodes[m]); | ||
@@ -33,0 +33,0 @@ } |
/*! | ||
* filename: index.d.ts | ||
* version : 15.4.30 | ||
* version : 16.1.24 | ||
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-ng-base", | ||
"version": "16.1.24", | ||
"version": "16.1.25", | ||
"description": "Essential JS 2 Angular Base", | ||
@@ -47,3 +47,15 @@ "author": "Syncfusion Inc.", | ||
"url": "https://github.com/syncfusion/ej2-ng-base.git" | ||
}, | ||
"scripts": { | ||
"test": "gulp ci-test", | ||
"compile": "gulp ci-compile", | ||
"ci-publish": "gulp ci-publish" | ||
}, | ||
"config": { | ||
"ghooks": { | ||
"pre-commit": "gulp pre-commit", | ||
"pre-push": "gulp pre-push", | ||
"commit-msg": "gulp commit-msg" | ||
} | ||
} | ||
} | ||
} |
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. | ||
## Resources | ||
[Demos](http://ej2.syncfusion.com/angular/demos/) | ||
## Changelog | ||
Check the changelog [here](https://github.com/syncfusion/ej2-ng-base/blob/master/CHANGELOG.md) | ||
[Demos](http://ej2.syncfusion.com/angular/demos/) |
@@ -31,3 +31,3 @@ /** | ||
var pNode = rt._view.renderer.parentNode(rt.rootNodes[0]); | ||
for (var m = void 0; m < rt.rootNodes.length; m++) { | ||
for (var m = 0; m < rt.rootNodes.length; m++) { | ||
pNode.appendChild(rt.rootNodes[m]); | ||
@@ -34,0 +34,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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1519752
4