Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-angular-base

Package Overview
Dependencies
Maintainers
3
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 25.2.6 to 26.1.35

.eslintrc.json

4

dist/ej2-angular-base.umd.min.js
/*!
* filename: ej2-angular-base.umd.min.js
* version : 25.2.6
* version : 26.1.35
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

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

*/
!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){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(n){(!e.prototype.hasOwnProperty(n)||t.isFormBase&&"constructor"!==n)&&(e.prototype[n]=t.prototype[n])})})}function s(e,t,i){var s={};if(e&&e.length){for(var r=0,a=e;r<a.length;r++){var o=a[r];!0===i?(t.propCollection[o]=new n.EventEmitter(!1),t[o]=t.propCollection[o]):s[o]=new n.EventEmitter(!1)}!0!==i&&t.setProperties(s,!0)}}function r(e,n,i){var s=Object.keys(e.registeredTemplate);if(s.length)for(var r=n&&n.filter(function(e){return!/\./g.test(e)}),a=/tab|accordion|toolbar/.test(e.getModuleName()),o=0,l=r&&r||s;o<l.length;o++){var h=l[o];if(i&&i.length)for(var p=0;p<i.length;p++)if(a)for(var c=0;c<e.registeredTemplate[h].length;c++){(u=e.registeredTemplate[h][c])&&u===i[p]&&(u.destroy(),e.registeredTemplate[h].splice(c,1))}else for(c=0;c<e.registeredTemplate.template.length;c++){var u;if((u=e.registeredTemplate.template[c].rootNodes[0])===i[p]){(d=e.registeredTemplate[h])[c].destroy()}}else if(e.registeredTemplate[h])for(var g=0,f=e.registeredTemplate[h];g<f.length;g++){var d;if(!(d=f[g]).destroyed){if(d._view){var v=d._view.renderer.parentNode(d.rootNodes[0]);if(!t.isNullOrUndefined(v))for(c=0;c<d.rootNodes.length;c++)v.appendChild(d.rootNodes[c])}d.destroy()}}a&&i||delete e.registeredTemplate[h]}for(var m=function(e){e.instance&&e.instance.clearTemplate(n&&n.filter(function(t){return!!new RegExp(e.name).test(t)}))},y=0,C=e.tagObjects;y<C.length;y++){m(C[y])}}function a(e,n){if("string"==typeof e||"function"==typeof e&&e.prototype&&e.prototype.CSPTemplate)return u(e,n);var i=e.elementRef.nativeElement._viewContainerRef,s=e.elementRef.nativeElement.propName;return function(n,r,a){var o={$implicit:n},l=i||r.viewContainerRef,h=l.createEmbeddedView(e,o);/EJS-MENTION|EJS-DROPDOWNLIST/.test(t.getValue("currentInstance.element.nodeName",l))||/E-TABITEM/.test(t.getValue("element.nativeElement.nodeName",l))?h.detectChanges():h.markForCheck();var p=r&&r.registeredTemplate?r.registeredTemplate:t.getValue("currentInstance.registeredTemplate",l);return a=a&&r.registeredTemplate?a:s,void 0===p[a]&&(p[a]=[]),p[a].push(h),h.rootNodes}}var o=/Ref$/,l=function(){function e(){this.hasChanges=!1,this.propCollection={},this.dataSource={},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],s=t.getValue("child"+i.substring(0,1).toUpperCase()+i.substring(1),this);s&&this.tagObjects.push({instance:s,name:i})}for(var r=Object.keys(this),a=0;a<r.length;a++){var o=t.getValue(r[a],this);"object"==typeof o&&o&&o.elementRef&&(t.getValue(-1!==r[a].indexOf("Ref")?r[a]:r[a]+"Ref",this)||t.setValue(-1!==r[a].indexOf("Ref")?r[a]:r[a]+"Ref",o,this),!t.getValue("viewContainerRef",this)||t.getValue("_viewContainerRef",o.elementRef.nativeElement)||t.getValue("propName",o.elementRef.nativeElement)||(t.setValue("_viewContainerRef",t.getValue("viewContainerRef",this),o.elementRef.nativeElement),t.setValue("propName",r[a].replace("Ref",""),o.elementRef.nativeElement)))}for(var l=0,h=r=(r=Object.keys(this)).filter(function(e){return/Ref$/i.test(e)});l<h.length;l++){var p=h[l].replace("Ref","");t.setValue(p.replace("_","."),t.getValue(p,this),this.propCollection)}var c=Object.keys(this);if(this.directivePropList){for(var u=0;u<this.directivePropList.length;u++){var g=this.directivePropList[u];-1===c.indexOf(g)||!1!==t.getValue(g,this)&&!t.getValue(g,this)||t.setValue(g,t.getValue(g,this),this.propCollection)}this.hasChanges=!0}this.isInitChanges=!0},e.prototype.registerEvents=function(e){s(e,this,!0)},e.prototype.ngOnChanges=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t],s=e[i];this.propCollection[i]=s.currentValue}this.isUpdated=!1,this.hasChanges=!0},e.prototype.clearTemplate=function(e){r(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(){var e=this.hasChanges;if(!t.isNullOrUndefined(this.propCollection[this.property]))for(var n=this.propCollection[this.property],i=Object.keys(n[0]),s=0;s<i.length;s++)if(!t.isNullOrUndefined(this.propCollection[i[s]])){var r=t.getValue(i[s],this),a=this.propCollection[this.property][0][i[s]];t.isNullOrUndefined(r)||this.propCollection[i[s]]===r||a===r||(t.setValue(i[s],r,this.propCollection[this.property][0]),t.setValue(i[s],r,this.propCollection),this.hasChanges=!0,this.isUpdated=!1)}for(var o=0,l=this.tagObjects;o<l.length;o++){var h=l[o];e=e||h.instance.hasChanges}return e||this.hasChanges},e.prototype.ngAfterContentChecked=function(){if(this.hasChanges=this.isChanged(),this.isInitChanges||this.hasChanges)for(var e=Object.keys(this),n=0,i=e=e.filter(function(e){return o.test(e)});n<i.length;n++){var s=i[n].replace("Ref","");t.setValue(s.replace("_","."),t.getValue(s,this),this.propCollection)}},e.prototype.ngAfterViewChecked=function(){this.isUpdated&&(this.hasChanges=!1)},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e.prototype.ngOnDestroy=function(){this.directivePropList=[]},e}(),h=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.dirIndex=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(){var e=this,t=!1,n=0,i=!1,s=this.children.map(function(e){return e});if(this.list.length===this.children.length)for(var r=0;r<this.list.length;r++)this.list[r].propCollection.dataSource&&(this.list[r].dataSource&&this.list[r].propCollection.dataSource!==this.list[r].dataSource&&(this.list[r].propCollection.dataSource=this.list[r].dataSource,this.list[r].hasChanges=!0),"series"!==this.list[r].property&&(i=JSON.stringify(this.list[r].propCollection.dataSource)!==JSON.stringify(s[r].propCollection.dataSource))),i=this.list[r].hasChanges!==s[r].hasChanges;this.hasNewChildren=!(this.list.length===this.children.length&&!i)||null,this.hasNewChildren&&(this.list=this.children.map(function(t){return t.dirIndex=n++,t.property=e.propertyName,t}));for(var a=0,o=this.list;a<o.length;a++){var l=o[a];t=t||l.hasChanges}return!!this.list.length&&t},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();for(var e=0;e<this.list.length;e++)t.getValue("childColumns",this.list[e])&&"columns"===t.getValue("property",this.list[e])&&t.setValue("columns",t.getValue("childColumns",this.list[e]).getProperties(),this.list[e].propCollection),this.list[e].isUpdated=!0},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e.prototype.ngOnDestroy=function(){this.list=[]},e}(),p=function(){function e(){this.isProtectedOnChange=!0,this.isFormInit=!0}return e.prototype.saveChanges=function(e,t,n){if(!this.isProtectedOnChange){this.oldProperties[e]=n,this.changedProperties[e]=t,this.finalUpdate();var i=setTimeout(this.dataBind.bind(this));this.finalUpdate=function(){clearTimeout(i)}}},e.prototype.ngOnInit=function(e){var n=e||this;n.registeredTemplate={},n.ngBoundedEvents={},n.isAngular=!0,n.isFormInit=!0,e&&(this.tags=e.tags),n.tags=this.tags||[],n.complexTemplate=this.complexTemplate||[],n.tagObjects=[],n.ngAttr=this.getAngularAttr(n.element),n.createElement=function(e,i){var s=n.srenderer?n.srenderer.createElement(e):t.createElement(e);return void 0===i?s:(s.innerHTML=i.innerHTML?i.innerHTML:"",void 0!==i.className&&(s.className=i.className),void 0!==i.id&&(s.id=i.id),void 0!==i.styles&&s.setAttribute("style",i.styles),void 0!==n.ngAttr&&s.setAttribute(n.ngAttr,""),void 0!==i.attrs&&t.attributes(s,i.attrs),s)};for(var i=0,s=n.tags;i<s.length;i++){var r=s[i],a={instance:t.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),n),name:r};n.tagObjects.push(a)}for(var o=Object.keys(n),l=0;l<o.length;l++){var h=t.getValue(o[l],n);"object"==typeof h&&h&&h.elementRef&&("object"==typeof h&&h&&h.elementRef&&-1!==o[l].indexOf("_")&&-1===o[l].indexOf("Ref")&&t.setValue(o[l]+"Ref",h,n),!n.viewContainerRef||t.getValue("_viewContainerRef",h.elementRef.nativeElement)||t.getValue("propName",h.elementRef.nativeElement)||(t.setValue("_viewContainerRef",n.viewContainerRef,h.elementRef.nativeElement),t.setValue("propName",o[l].replace("Ref",""),h.elementRef.nativeElement)))}for(var p=0,c=o=(o=Object.keys(n)).filter(function(e){return/Ref$/i.test(e)&&/\_/i.test(e)});p<c.length;p++){var u=c[p].replace("Ref",""),g={};t.setValue(u.replace("_","."),t.getValue(u,n),g),n.setProperties(g,!0)}},e.prototype.getAngularAttr=function(e){for(var t,n=e.attributes,i=n.length,s=0;s<i;s++)/_ngcontent/g.test(n[s].name)&&(t=n[s].name);return t},e.prototype.ngAfterViewInit=function(e){var n=e||this;/ejs-tab|ejs-accordion/g.test(n.ngEle.nativeElement.outerHTML)&&(n.ngEle.nativeElement.style.visibility="hidden");var i=Object.keys(n);i=i.filter(function(e){return/Ref$/i.test(e)});for(var s="DocumentEditor"===n.getModuleName(),r=0,a=i;r<a.length;r++){var o=a[r].replace("Ref","");t.setValue(o.replace("_","."),t.getValue(o+"Ref",n),n)}var l=function(e){("undefined"!=typeof window&&e.element||e.getModuleName().includes("btn"))&&(e.appendTo(e.element),e.ngEle.nativeElement.style.visibility="")};s?l(n):setTimeout(function(){l(n)})},e.prototype.ngOnDestroy=function(e){var t=e||this;setTimeout(function(){"undefined"!=typeof window&&t.element.classList.contains("e-control")&&(t.destroy(),t.clearTemplate(null),setTimeout(function(){for(var e=0,n=Object.keys(t);e<n.length;e++){var i=n[e],s=t[i];if(s&&/object/.test(typeof s)&&0!==Object.keys(s).length)if(/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(i))for(var r=0,a=Object.keys(t[i]);r<a.length;r++){var o=a[r],l=s[o];l&&/object/.test(typeof l)&&0!==Object.keys(l).length&&(l.parent||l.parentObj)&&(t[i][o]=null)}else(s.parent||s.parentObj)&&(t[i]=null)}}))})},e.prototype.clearTemplate=function(e,t){r(this,e,t)},e.prototype.ngAfterContentChecked=function(e){for(var n=e||this,i=0,s=n.tagObjects;i<s.length;i++){var r=s[i];if(!t.isUndefined(r.instance)&&(r.instance.isInitChanges||r.instance.hasChanges||r.instance.hasNewChildren)){var a={};if(r.instance.isInitChanges){var o=void 0;(y=t.getValue("instance.list",r))&&y.length&&(o=y[0].directivePropList);var l=!0;if(n.getModuleName&&"gantt"===n.getModuleName()&&(l=!1),o&&l&&-1===o.indexOf(r.instance.propertyName))for(var h=Object.keys(r.instance.list[0].propCollection),p=0;p<r.instance.list.length;p++){r.instance.list[p].propCollection[r.instance.propertyName]=[];for(var c={},u=0;u<h.length;u++){c[N=h[u]]=r.instance.list[p].propCollection[N]}for(var g=function(e){var n=r.instance.list[p].tags[e],i=t.getValue("child"+n.substring(0,1).toUpperCase()+n.substring(1),r.instance.list[p]);if(i){var s=r.instance.list[p]["child"+n.substring(0,1).toUpperCase()+n.substring(1)],a=function(e){var n=[];if(e)for(var i=0;i<e.list.length;i++){var s=e.list[0].tags[0];if(s){var r=t.getValue("child"+s.substring(0,1).toUpperCase()+s.substring(1),e.list[i]);r&&(e.list[i].tagObjects.push({instance:r,name:s}),n.push(r))}}if(0!==n.length)for(var o=0;o<n.length;o++)a(n[o])};a(s),r.instance.list[p].tagObjects.push({instance:i,name:n})}},f=0;f<r.instance.list[p].tags.length;f++)g(f);r.instance.list[p].propCollection[r.instance.propertyName].push(c)}a[r.name]=r.instance.getProperties(),n.setProperties(a,r.instance.isInitChanges)}else{var d=!1;(n[r.name].length!==r.instance.list.length||/diagram|DashboardLayout/.test(n.getModuleName()))&&(n[r.name]=r.instance.list,d=!0);for(var v=0,m=r.instance.list;v<m.length;v++){var y=m[v],C=r.instance.list.indexOf(y),b=t.getValue(r.name,n)[C],V=Object.keys(b);if(V=V.filter(function(e){return/Ref$/i.test(e)}),b.properties&&0!==Object.keys(b.properties).length)for(var O=0,E=V;O<E.length;O++){var N;N=(N=E[O]).replace(/Ref/,""),b.properties[N]=b.properties[N]?b.properties[N]:b.propCollection[N]}t.isUndefined(b)||t.isUndefined(b.setProperties)||(/diagram|DashboardLayout/.test(n.getModuleName())?b.setProperties(y.getProperties(),!0):b.setProperties(y.getProperties())),y.isUpdated=!0}(/grid/.test(n.getModuleName())&&d||/chart/.test(n.getModuleName()))&&(a[r.name]=r.instance.getProperties(),n.setProperties(a,r.instance.isInitChanges))}}}},e.prototype.registerEvents=function(e){s(e,this)},e.prototype.twoWaySetter=function(e,n){var i=t.getValue(n,this.properties);i!==e&&(this.saveChanges(n,e,i),t.setValue(n,t.isNullOrUndefined(e)?null:e,this.properties),t.getValue(n+"Change",this).emit(e))},e.prototype.addTwoWay=function(e){for(var i=this,s=function(e){t.getValue(e,r),Object.defineProperty(r,e,{get:function(){return t.getValue(e,i.properties)},set:function(t){return i.twoWaySetter(t,e)}}),t.setValue(e+"Change",new n.EventEmitter,r)},r=this,a=0,o=e;a<o.length;a++){s(o[a])}},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,i){var s=t.getValue(e,this),r=this.isProtectedOnChange;this.isProtectedOnChange=!1,n&&(n.name=e),t.isUndefined(s)||s.next(n);var a=t.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this);t.isUndefined(a)||a.call(this,n),this.isProtectedOnChange=r,i&&(this.preventChange=this.isPreventChange,i.call(this,n)),this.isPreventChange=!1},e}(),c=function(){function e(){}return e.prototype.propagateChange=function(e){},e.prototype.propagateTouch=function(){},e.prototype.localChange=function(e){var n=void 0===e.checked?e.value:e.checked;if(this.objCheck=t.isObject(n),!0===this.isUpdated&&(this.angularValue=this.oldValue),!0===this.objCheck)this.duplicateValue=JSON.stringify(n),this.duplicateAngularValue=JSON.stringify(this.angularValue),this.duplicateValue!==this.duplicateAngularValue&&void 0!==this.propagateChange&&void 0!==n&&(this.propagateChange(n),this.angularValue=n);else if(n!==this.angularValue&&void 0!==this.propagateChange&&void 0!==n)if(""!==n&&null!==n)this.propagateChange(n),this.angularValue=n;else{var i=n;this.propagateChange(i),this.angularValue=n}this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(e){this.propagateTouch=e},e.prototype.twoWaySetter=function(e,n){var i=this.oldValue||t.getValue(n,this.properties),s=this.inputElement||this.element;(!s||i!==e||this.value!==e||void 0!==s.value&&""!==s.value)&&(this.saveChanges(n,e,i),t.setValue(n,t.isNullOrUndefined(e)?null:e,this.properties),t.getValue(n+"Change",this).emit(e))},e.prototype.ngAfterViewInit=function(e){var t=e||this;if("undefined"!=typeof window){t.getModuleName().includes("dropdowntree")?setTimeout(function(){t.appendTo(t.element)}):t.appendTo(t.element);var n=t.inputElement||t.element;n.addEventListener("focus",t.ngOnFocus.bind(t)),n.addEventListener("blur",t.ngOnBlur.bind(t))}this.isFormInit=!1},e.prototype.setDisabledState=function(e){this.enabled=!e,this.disabled=e},e.prototype.writeValue=function(e){void 0===this.checked?this.value=e:this.ngEle&&("boolean"==typeof e?/ejs-radiobutton/g.test(this.ngEle.nativeElement.outerHTML)?this.checked=e===this.value:this.checked=e:this.checked=e===this.value),this.angularValue=e,this.isUpdated=!0,this.preventChange=!this.isFormInit,this.cdr.markForCheck()},e.prototype.ngOnFocus=function(e){!0!==this.skipFromEvent&&this.focus.emit(e),this.cdr.markForCheck()},e.prototype.ngOnBlur=function(e){this.propagateTouch(),!0!==this.skipFromEvent&&this.blur.emit(e),this.cdr.markForCheck()},e.isFormBase=!0,e}(),u=t.getTemplateEngine();t.setTemplateEngine({compile:a}),e.ComplexBase=l,e.ArrayBase=h,e.ComponentBase=p,e.FormBase=c,e.applyMixins=i,e.ComponentMixins=function(e){return function(t){i(t,e)}},e.registerEvents=s,e.clearTemplate=r,e.setValue=function(e,t,n){for(var i=e.replace(/\[/g,".").replace(/\]/g,"").split("."),s=n||{},r=0;r<i.length;r++){var a=i[r];r+1===i.length?s[a]=void 0===t?{}:t:void 0===s[a]&&(s[a]={}),s=s[a]}return s},e.compile=a,e.Template=function(e){return function(n,i){var s={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,s)}},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=e||self).ej={},e.ej2Base,e.core)}(this,function(e,V,o){"use strict";function n(n,e){e.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(e){(!Object.prototype.hasOwnProperty.call(n.prototype,e)||t.isFormBase&&"constructor"!==e)&&(n.prototype["".concat(e)]=t.prototype["".concat(e)])})})}function t(e,t,n){var i={};if(e&&e.length){for(var r=0,s=e;r<s.length;r++){var a=s[r];!0===n?(t.propCollection["".concat(a)]=new o.EventEmitter(!1),t["".concat(a)]=t.propCollection["".concat(a)]):i["".concat(a)]=new o.EventEmitter(!1)}!0!==n&&t.setProperties(i,!0)}}function i(e,n,t){var i=Object.keys(e.registeredTemplate);if(i.length)for(var r=n&&n.filter(function(e){return!/\./g.test(e)}),s=/tab|accordion|toolbar/.test(e.getModuleName()),a=0,o=r||i;a<o.length;a++){var l=o[a];if(t&&t.length)for(var p=0;p<t.length;p++)if(s)for(var c=0;c<e.registeredTemplate["".concat(l)].length;c++)(h=e.registeredTemplate["".concat(l)][parseInt(c.toString(),10)])&&h===t["".concat(p)]&&(h.destroy(),e.registeredTemplate["".concat(l)].splice(c,1));else for(var h,c=0;c<e.registeredTemplate.template.length;c++)(h=e.registeredTemplate.template[parseInt(c.toString(),10)].rootNodes[0])===t["".concat(p)]&&(g=e.registeredTemplate["".concat(l)])[parseInt(c.toString(),10)].destroy();else if(e.registeredTemplate["".concat(l)])for(var g,u=0,f=e.registeredTemplate["".concat(l)];u<f.length;u++)if(!(g=f[u]).destroyed){if(g._view){var d=g._view.renderer.parentNode(g.rootNodes[0]);if(!V.isNullOrUndefined(d))for(c=0;c<g.rootNodes.length;c++)d.appendChild(g.rootNodes[parseInt(c.toString(),10)])}g.destroy()}s&&t||delete e.registeredTemplate["".concat(l)]}for(var v=0,m=e.tagObjects;v<m.length;v++)!function(t){t.instance&&t.instance.clearTemplate(n&&n.filter(function(e){return!!new RegExp(t.name).test(e)}))}(m[v])}var r=/Ref$/,s=(a.prototype.ngOnInit=function(){this.registeredTemplate={};for(var e=0,t=this.tags;e<t.length;e++){var n=t[e],i=V.getValue("child"+n.substring(0,1).toUpperCase()+n.substring(1),this);i&&this.tagObjects.push({instance:i,name:n})}for(var r=Object.keys(this),s=0;s<r.length;s++){var a=V.getValue(r[parseInt(s.toString(),10)],this);"object"==typeof a&&a&&a.elementRef&&(V.getValue(-1!==r[parseInt(s.toString(),10)].indexOf("Ref")?r[parseInt(s.toString(),10)]:r[parseInt(s.toString(),10)]+"Ref",this)||V.setValue(-1!==r[parseInt(s.toString(),10)].indexOf("Ref")?r[parseInt(s.toString(),10)]:r[parseInt(s.toString(),10)]+"Ref",a,this),!V.getValue("viewContainerRef",this)||V.getValue("_viewContainerRef",a.elementRef.nativeElement)||V.getValue("propName",a.elementRef.nativeElement)||(V.setValue("_viewContainerRef",V.getValue("viewContainerRef",this),a.elementRef.nativeElement),V.setValue("propName",r[parseInt(s.toString(),10)].replace("Ref",""),a.elementRef.nativeElement)))}for(var o=0,l=r=(r=Object.keys(this)).filter(function(e){return/Ref$/i.test(e)});o<l.length;o++){var p=l[o].replace("Ref","");V.setValue(p.replace("_","."),V.getValue(p,this),this.propCollection)}var c=Object.keys(this);if(this.directivePropList){for(var h=0;h<this.directivePropList.length;h++){var g=this.directivePropList[parseInt(h.toString(),10)];-1===c.indexOf(g)||!1!==V.getValue(g,this)&&!V.getValue(g,this)||V.setValue(g,V.getValue(g,this),this.propCollection)}this.hasChanges=!0}this.isInitChanges=!0},a.prototype.registerEvents=function(e){t(e,this,!0)},a.prototype.ngOnChanges=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t],r=e["".concat(i)];this.propCollection["".concat(i)]=r.currentValue}this.isUpdated=!1,this.hasChanges=!0},a.prototype.clearTemplate=function(e){i(this,e)},a.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},a.prototype.isChanged=function(){var e=this.hasChanges;if(!V.isNullOrUndefined(this.propCollection[this.property]))for(var t,n,i=this.propCollection[this.property],r=Object.keys(i[0]),s=0;s<r.length;s++)V.isNullOrUndefined(this.propCollection[r[parseInt(s.toString(),10)]])||(t=V.getValue(r[parseInt(s.toString(),10)],this),n=this.propCollection[this.property][0][r[parseInt(s.toString(),10)]],V.isNullOrUndefined(t))||this.propCollection[r[parseInt(s.toString(),10)]]===t||n===t||(V.setValue(r[parseInt(s.toString(),10)],t,this.propCollection[this.property][0]),V.setValue(r[parseInt(s.toString(),10)],t,this.propCollection),this.hasChanges=!0,this.isUpdated=!1);for(var a=0,o=this.tagObjects;a<o.length;a++)var l=o[a],e=e||l.instance.hasChanges;return e||this.hasChanges},a.prototype.ngAfterContentChecked=function(){if(this.hasChanges=this.isChanged(),this.isInitChanges||this.hasChanges)for(var e=0,t=Object.keys(this).filter(function(e){return r.test(e)});e<t.length;e++){var n=t[e].replace("Ref","");V.setValue(n.replace("_","."),V.getValue(n,this),this.propCollection)}},a.prototype.ngAfterViewChecked=function(){this.isUpdated&&(this.hasChanges=!1)},a.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},a.prototype.ngOnDestroy=function(){this.directivePropList=[]},a);function a(){this.hasChanges=!1,this.propCollection={},this.dataSource={},this.tags=[],this.tagObjects=[]}p.prototype.ngOnInit=function(){this.isInitChanges=!0},p.prototype.ngAfterContentInit=function(){var t=this,n=0;this.list=this.children.map(function(e){return e.dirIndex=n++,e.property=t.propertyName,e}),this.hasChanges=!0},p.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},p.prototype.isChanged=function(){var t=this,e=!1,n=0,i=!1,r=this.children.map(function(e){return e});if(this.list.length===this.children.length)for(var s=0;s<this.list.length;s++)this.list[parseInt(s.toString(),10)].propCollection.dataSource&&(this.list[parseInt(s.toString(),10)].dataSource&&this.list[parseInt(s.toString(),10)].propCollection.dataSource!==this.list[parseInt(s.toString(),10)].dataSource&&(this.list[parseInt(s.toString(),10)].propCollection.dataSource=this.list[parseInt(s.toString(),10)].dataSource,this.list[parseInt(s.toString(),10)].hasChanges=!0),"series"!==this.list[parseInt(s.toString(),10)].property)&&(i=JSON.stringify(this.list[parseInt(s.toString(),10)].propCollection.dataSource)!==JSON.stringify(r[parseInt(s.toString(),10)].propCollection.dataSource)),i=this.list[parseInt(s.toString(),10)].hasChanges!==r[parseInt(s.toString(),10)].hasChanges;this.hasNewChildren=!(this.list.length===this.children.length&&!i)||null,this.hasNewChildren&&(this.list=this.children.map(function(e){return e.dirIndex=n++,e.property=t.propertyName,e}));for(var a=0,o=this.list;a<o.length;a++)var l=o[a],e=e||l.hasChanges;return!!this.list.length&&e},p.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}))},p.prototype.ngAfterContentChecked=function(){this.hasChanges=this.isChanged();for(var e=0;e<this.list.length;e++)V.getValue("childColumns",this.list[parseInt(e.toString(),10)])&&"columns"===V.getValue("property",this.list[parseInt(e.toString(),10)])&&V.setValue("columns",V.getValue("childColumns",this.list[parseInt(e.toString(),10)]).getProperties(),this.list[parseInt(e.toString(),10)].propCollection),this.list[parseInt(e.toString(),10)].isUpdated=!0},p.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},p.prototype.ngOnDestroy=function(){this.list=[]};var l=p;function p(e){this.list=[],this.hasChanges=!1,this.propertyName=e}h.prototype.saveChanges=function(e,t,n){var i;this.isProtectedOnChange||(this.oldProperties["".concat(e)]=n,this.changedProperties["".concat(e)]=t,this.finalUpdate(),i=setTimeout(this.dataBind.bind(this)),this.finalUpdate=function(){clearTimeout(i)})},h.prototype.ngOnInit=function(e){var n=e||this;n.registeredTemplate={},n.ngBoundedEvents={},n.isAngular=!0,n.isFormInit=!0,e&&(this.tags=e.tags),n.tags=this.tags||[],n.complexTemplate=this.complexTemplate||[],n.tagObjects=[],n.ngAttr=this.getAngularAttr(n.element),n.createElement=function(e,t){e=(n.srenderer||V).createElement(e);return void 0!==t&&(e.innerHTML=t.innerHTML||"",void 0!==t.className&&(e.className=t.className),void 0!==t.id&&(e.id=t.id),void 0!==t.styles&&e.setAttribute("style",t.styles),void 0!==n.ngAttr&&e.setAttribute(n.ngAttr,""),void 0!==t.attrs)&&V.attributes(e,t.attrs),e};for(var t=0,i=n.tags;t<i.length;t++){var r=i[t],r={instance:V.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),n),name:r};n.tagObjects.push(r)}for(var s=Object.keys(n),a=0;a<s.length;a++){var o=V.getValue(s[parseInt(a.toString(),10)],n);"object"==typeof o&&o&&o.elementRef&&("object"==typeof o&&o&&o.elementRef&&-1!==s[parseInt(a.toString(),10)].indexOf("_")&&-1===s[parseInt(a.toString(),10)].indexOf("Ref")&&V.setValue(s[parseInt(a.toString(),10)]+"Ref",o,n),!n.viewContainerRef||V.getValue("_viewContainerRef",o.elementRef.nativeElement)||V.getValue("propName",o.elementRef.nativeElement)||(V.setValue("_viewContainerRef",n.viewContainerRef,o.elementRef.nativeElement),V.setValue("propName",s[parseInt(a.toString(),10)].replace("Ref",""),o.elementRef.nativeElement)))}for(var l=0,p=s=(s=Object.keys(n)).filter(function(e){return/Ref$/i.test(e)&&/_/i.test(e)});l<p.length;l++){var c=p[l].replace("Ref",""),h={};V.setValue(c.replace("_","."),V.getValue(c,n),h),n.setProperties(h,!0)}},h.prototype.getAngularAttr=function(e){for(var t,n=e.attributes,i=n.length,r=0;r<i;r++)/_ngcontent/g.test(n[parseInt(r.toString(),10)].name)&&(t=n[parseInt(r.toString(),10)].name);return t},h.prototype.ngAfterViewInit=function(e){var t=e||this;/ejs-tab|ejs-accordion/g.test(t.ngEle.nativeElement.outerHTML)&&(t.ngEle.nativeElement.style.visibility="hidden");for(var e=(e=Object.keys(t)).filter(function(e){return/Ref$/i.test(e)}),n="DocumentEditor"===t.getModuleName(),i=0,r=e;i<r.length;i++){var s=r[i].replace("Ref","");V.setValue(s.replace("_","."),V.getValue(s+"Ref",t),t)}function a(e){("undefined"!=typeof window&&e.element||e.getModuleName().includes("btn"))&&(e.appendTo(e.element),e.ngEle.nativeElement.style.visibility="")}n?a(t):setTimeout(function(){a(t)})},h.prototype.ngOnDestroy=function(e){var l=e||this;setTimeout(function(){"undefined"!=typeof window&&l.element.classList.contains("e-control")&&(l.destroy(),l.clearTemplate(null),setTimeout(function(){for(var e=0,t=Object.keys(l);e<t.length;e++){var n=t[e],i=l["".concat(n)];if(i&&/object/.test(typeof i)&&0!==Object.keys(i).length)if(/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(n))for(var r=0,s=Object.keys(l["".concat(n)]);r<s.length;r++){var a=s[r],o=i["".concat(a)];o&&/object/.test(typeof o)&&0!==Object.keys(o).length&&(o.parent||o.parentObj)&&(l["".concat(n)]["".concat(a)]=null)}else(i.parent||i.parentObj)&&(l["".concat(n)]=null)}}))})},h.prototype.clearTemplate=function(e,t){i(this,e,t)},h.prototype.ngAfterContentChecked=function(e){for(var t=e||this,n=0,i=t.tagObjects;n<i.length;n++){var r=i[n];if(!V.isUndefined(r.instance)&&(r.instance.isInitChanges||r.instance.hasChanges||r.instance.hasNewChildren)){var s={};if(r.instance.isInitChanges){var a=void 0,o=((v=V.getValue("instance.list",r))&&v.length&&(a=v[0].directivePropList),!0);if(t.getModuleName&&"gantt"===t.getModuleName()&&(o=!1),a&&o&&-1===a.indexOf(r.instance.propertyName))for(var l=Object.keys(r.instance.list[0].propCollection),p=0;p<r.instance.list.length;p++){r.instance.list["".concat(p)].propCollection[r.instance.propertyName]=[];for(var c={},h=0;h<l.length;h++){var g=l[parseInt(h.toString(),10)];c["".concat(g)]=r.instance.list["".concat(p)].propCollection["".concat(g)]}for(var u=0;u<r.instance.list["".concat(p)].tags.length;u++)!function(e){var t,a,e=r.instance.list["".concat(p)].tags[parseInt(e.toString(),10)],n=V.getValue("child"+e.substring(0,1).toUpperCase()+e.substring(1),r.instance.list["".concat(p)]);n&&(t=r.instance.list["".concat(p)]["child"+e.substring(0,1).toUpperCase()+e.substring(1)],(a=function(e){var t=[];if(e)for(var n=0;n<e.list.length;n++){var i,r=e.list[0].tags[0];r&&(i=V.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),e.list[parseInt(n.toString(),10)]))&&(e.list[parseInt(n.toString(),10)].tagObjects.push({instance:i,name:r}),t.push(i))}if(0!==t.length)for(var s=0;s<t.length;s++)a(t[parseInt(s.toString(),10)])})(t),r.instance.list["".concat(p)].tagObjects.push({instance:n,name:e}))}(u);r.instance.list["".concat(p)].propCollection[r.instance.propertyName].push(c)}s[r.name]=r.instance.getProperties(),t.setProperties(s,r.instance.isInitChanges)}else{o=!1;t[r.name].length===r.instance.list.length&&!/diagram|DashboardLayout/.test(t.getModuleName())||(t[r.name]=r.instance.list,o=!0);for(var f=0,d=r.instance.list;f<d.length;f++){var v=d[f],m=r.instance.list.indexOf(v),y=V.getValue(r.name,t)["".concat(m)],m=(m=Object.keys(y)).filter(function(e){return/Ref$/i.test(e)});if(y.properties&&0!==Object.keys(y.properties).length)for(var C=0,b=m;C<b.length;C++)g=(g=b[C]).replace(/Ref/,""),y.properties["".concat(g)]=(y.properties["".concat(g)]?y.properties:y.propCollection)["".concat(g)];V.isUndefined(y)||V.isUndefined(y.setProperties)||(/diagram|DashboardLayout/.test(t.getModuleName())?y.setProperties(v.getProperties(),!0):y.setProperties(v.getProperties())),v.isUpdated=!0}(/grid/.test(t.getModuleName())&&o||/chart/.test(t.getModuleName()))&&(s[r.name]=r.instance.getProperties(),t.setProperties(s,r.instance.isInitChanges))}}}},h.prototype.registerEvents=function(e){t(e,this)},h.prototype.twoWaySetter=function(e,t){var n=V.getValue(t,this.properties);n!==e&&(this.saveChanges(t,e,n),V.setValue(t,V.isNullOrUndefined(e)?null:e,this.properties),V.getValue(t+"Change",this).emit(e))},h.prototype.addTwoWay=function(e){for(var n=this,i=this,t=0,r=e;t<r.length;t++)!function(t){V.getValue(t,i),Object.defineProperty(i,t,{get:function(){return V.getValue(t,n.properties)},set:function(e){return n.twoWaySetter(e,t)}}),V.setValue(t+"Change",new o.EventEmitter,i)}(r[t])},h.prototype.addEventListener=function(e,t){var n=V.getValue(e,this);V.isUndefined(n)||(this.ngBoundedEvents["".concat(e)]||(this.ngBoundedEvents["".concat(e)]=new Map),this.ngBoundedEvents["".concat(e)].set(t,n.subscribe(t)))},h.prototype.removeEventListener=function(e,t){var n=V.getValue(e,this);V.isUndefined(n)||this.ngBoundedEvents["".concat(e)].get(t).unsubscribe()},h.prototype.trigger=function(e,t,n){var i=V.getValue(e,this),r=this.isProtectedOnChange,i=(this.isProtectedOnChange=!1,t&&(t.name=e),V.isUndefined(i)||i.next(t),V.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this));V.isUndefined(i)||i.call(this,t),this.isProtectedOnChange=r,n&&(this.preventChange=this.isPreventChange,n.call(this,t)),this.isPreventChange=!1};var c=h;function h(){this.isProtectedOnChange=!0,this.isFormInit=!0}u.prototype.propagateChange=function(e){},u.prototype.propagateTouch=function(){},u.prototype.localChange=function(e){e=void 0===e.checked?e.value:e.checked;this.objCheck=V.isObject(e),!0===this.isUpdated&&(this.angularValue=this.oldValue),!0===this.objCheck?(this.duplicateValue=JSON.stringify(e),this.duplicateAngularValue=JSON.stringify(this.angularValue),this.duplicateValue!==this.duplicateAngularValue&&void 0!==this.propagateChange&&void 0!==e&&(this.propagateChange(e),this.angularValue=e)):e!==this.angularValue&&void 0!==this.propagateChange&&void 0!==e&&(this.propagateChange(e),this.angularValue=e),this.cdr.markForCheck()},u.prototype.registerOnChange=function(e){this.propagateChange=e},u.prototype.registerOnTouched=function(e){this.propagateTouch=e},u.prototype.twoWaySetter=function(e,t){var n=this.oldValue||V.getValue(t,this.properties),i=this.inputElement||this.element;i&&n===e&&this.value===e&&(void 0===i.value||""===i.value)||(this.saveChanges(t,e,n),V.setValue(t,V.isNullOrUndefined(e)?null:e,this.properties),V.getValue(t+"Change",this).emit(e))},u.prototype.ngAfterViewInit=function(e){var t=e||this;"undefined"!=typeof window&&(t.getModuleName().includes("dropdowntree")?setTimeout(function(){t.appendTo(t.element)}):t.appendTo(t.element),(e=t.inputElement||t.element).addEventListener("focus",t.ngOnFocus.bind(t)),e.addEventListener("blur",t.ngOnBlur.bind(t))),this.isFormInit=!1},u.prototype.setDisabledState=function(e){this.enabled=!e,this.disabled=e},u.prototype.writeValue=function(e){void 0===this.checked?this.value=e:this.ngEle&&("boolean"!=typeof e||/ejs-radiobutton/g.test(this.ngEle.nativeElement.outerHTML)?this.checked=e===this.value:this.checked=e),this.angularValue=e,this.isUpdated=!0,this.preventChange=!this.isFormInit,this.cdr.markForCheck()},u.prototype.ngOnFocus=function(e){!0!==this.skipFromEvent&&this.focus.emit(e),this.cdr.markForCheck()},u.prototype.ngOnBlur=function(e){this.propagateTouch(),!0!==this.skipFromEvent&&this.blur.emit(e),this.cdr.markForCheck()},u.isFormBase=!0;var g=u;function u(){}var f=V.getTemplateEngine();function d(r,e){var s,a;return"string"==typeof r||"function"==typeof r&&r.prototype&&r.prototype.CSPTemplate?f(r,e):(s=r.elementRef.nativeElement._viewContainerRef,a=r.elementRef.nativeElement.propName,function(e,t,n){var i=s||t.viewContainerRef,e=i.createEmbeddedView(r,{$implicit:e}),i=(/EJS-MENTION|EJS-DROPDOWNLIST/.test(V.getValue("currentInstance.element.nodeName",i))||/E-TABITEM/.test(V.getValue("element.nativeElement.nodeName",i))?e.detectChanges():e.markForCheck(),t&&t.registeredTemplate?t.registeredTemplate:V.getValue("currentInstance.registeredTemplate",i));return n=n&&t.registeredTemplate?n:a,void 0===i["".concat(n)]&&(i["".concat(n)]=[]),i["".concat(n)].push(e),e.rootNodes})}V.setTemplateEngine({compile:d}),e.ArrayBase=l,e.ComplexBase=s,e.ComponentBase=c,e.ComponentMixins=function(t){return function(e){n(e,t)}},e.FormBase=g,e.Template=function(a){return function(e,t){var n,i,r,s={set:function(e){void 0!==e&&(V.setValue(r+"Ref",e,this),"string"!=typeof e?(e.elementRef.nativeElement._viewContainerRef=this.viewContainerRef,e.elementRef.nativeElement.propName=r):this.saveChanges&&(this.saveChanges(r,e,void 0),this.dataBind()))},get:(n=r=t,i=a,function(){return V.getValue(n+"Ref",this)||i}),enumerable:!0,configurable:!0};Object.defineProperty(e,t,s)}},e.applyMixins=n,e.clearTemplate=i,e.compile=d,e.registerEvents=t,e.setValue=function(e,t,n){for(var i=e.replace(/\[/g,".").replace(/\]/g,"").split("."),r=n||{},s=0;s<i.length;s++){var a=i[parseInt(s.toString(),10)];s+1===i.length?r["".concat(a)]=void 0===t?{}:t:void 0===r["".concat(a)]&&(r["".concat(a)]={}),r=r["".concat(a)]}return r},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-angular-base.umd.min.js.map

@@ -1,13 +0,17 @@

import { attributes, createElement, getTemplateEngine, getValue, isNullOrUndefined, isObject, isUndefined, setTemplateEngine, setValue } from '@syncfusion/ej2-base';
import { isNullOrUndefined, getValue, setValue as setValue$1, createElement, attributes, isUndefined, isObject, getTemplateEngine, setTemplateEngine } from '@syncfusion/ej2-base';
import { EventEmitter } from '@angular/core';
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
/**
* Angular Utility Module
*
* @param {Function} derivedClass The derived class to which mixins are applied.
* @param {Function[]} baseClass An array of base classes whose methods are applied as mixins.
* @returns {void}
*/
/* tslint:disable */
function applyMixins(derivedClass, baseClass) {
baseClass.forEach(baseClass => {
Object.getOwnPropertyNames(baseClass.prototype).forEach(name => {
if (!derivedClass.prototype.hasOwnProperty(name) || (baseClass.isFormBase && name !== 'constructor')) {
derivedClass.prototype[name] = baseClass.prototype[name];
baseClass.forEach((baseClass) => {
Object.getOwnPropertyNames(baseClass.prototype).forEach((name) => {
if (!Object.prototype.hasOwnProperty.call(derivedClass.prototype, name) || (baseClass.isFormBase && name !== 'constructor')) {
derivedClass.prototype[`${name}`] = baseClass.prototype[`${name}`];
}

@@ -17,3 +21,8 @@ });

}
/* tslint:disable */
/**
* Decorator function to apply mixins to a derived class.
*
* @param {Function[]} baseClass - An array of mixin classes to be applied to the derived class.
* @returns {ClassDecorator} The decorator function.
*/
function ComponentMixins(baseClass) {

@@ -25,14 +34,20 @@ return function (derivedClass) {

/**
* Registers events.
*
* @private
* @param {string[]} eventList - The list of events to register.
* @param {any} obj - The object on which to register the events.
* @param {boolean} [direct] - Whether to register events directly on the object or not.
* @returns {void}
*/
function registerEvents(eventList, obj, direct) {
let ngEventsEmitter = {};
const ngEventsEmitter = {};
if (eventList && eventList.length) {
for (let event of eventList) {
for (const event of eventList) {
if (direct === true) {
obj.propCollection[event] = new EventEmitter(false);
obj[event] = obj.propCollection[event];
obj.propCollection[`${event}`] = new EventEmitter(false);
obj[`${event}`] = obj.propCollection[`${event}`];
}
else {
ngEventsEmitter[event] = new EventEmitter(false);
ngEventsEmitter[`${event}`] = new EventEmitter(false);
}

@@ -46,13 +61,19 @@ }

/**
* Clears registered templates.
*
* @private
* @param {any} _this - The context object.
* @param {string[]} [templateNames] - Optional. An array of template names to clear.
* @param {any[]} [index] - Optional. An array of indices specifying templates to clear.
* @returns {void}
*/
function clearTemplate(_this, templateNames, index) {
let regTemplates = Object.keys(_this.registeredTemplate);
const regTemplates = Object.keys(_this.registeredTemplate);
if (regTemplates.length) {
/* istanbul ignore next */
let regProperties = templateNames && templateNames.filter((val) => {
const regProperties = templateNames && templateNames.filter((val) => {
return (/\./g.test(val) ? false : true);
});
let tabaccordionTemp = /tab|accordion|toolbar/.test(_this.getModuleName());
for (let registeredTemplate of (regProperties && regProperties || regTemplates)) {
const tabaccordionTemp = /tab|accordion|toolbar/.test(_this.getModuleName());
for (const registeredTemplate of (regProperties && regProperties || regTemplates)) {
/* istanbul ignore next */

@@ -62,7 +83,7 @@ if (index && index.length) {

if (tabaccordionTemp) {
for (let m = 0; m < _this.registeredTemplate[registeredTemplate].length; m++) {
let value = _this.registeredTemplate[registeredTemplate][m];
if (value && value === index[e]) {
for (let m = 0; m < _this.registeredTemplate[`${registeredTemplate}`].length; m++) {
const value = _this.registeredTemplate[`${registeredTemplate}`][parseInt(m.toString(), 10)];
if (value && value === index[`${e}`]) {
value.destroy();
_this.registeredTemplate[registeredTemplate].splice(m, 1);
_this.registeredTemplate[`${registeredTemplate}`].splice(m, 1);
}

@@ -73,6 +94,6 @@ }

for (let m = 0; m < _this.registeredTemplate.template.length; m++) {
let value = _this.registeredTemplate.template[m].rootNodes[0];
if (value === index[e]) {
let rt = _this.registeredTemplate[registeredTemplate];
rt[m].destroy();
const value = _this.registeredTemplate.template[parseInt(m.toString(), 10)].rootNodes[0];
if (value === index[`${e}`]) {
const rt = _this.registeredTemplate[`${registeredTemplate}`];
rt[parseInt(m.toString(), 10)].destroy();
}

@@ -84,10 +105,10 @@ }

else {
if (_this.registeredTemplate[registeredTemplate]) {
for (let rt of _this.registeredTemplate[registeredTemplate]) {
if (_this.registeredTemplate[`${registeredTemplate}`]) {
for (const rt of _this.registeredTemplate[`${registeredTemplate}`]) {
if (!rt.destroyed) {
if (rt._view) {
let pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
const pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
if (!isNullOrUndefined(pNode)) {
for (let m = 0; m < rt.rootNodes.length; m++) {
pNode.appendChild(rt.rootNodes[m]);
pNode.appendChild(rt.rootNodes[parseInt(m.toString(), 10)]);
}

@@ -102,11 +123,12 @@ }

if (!tabaccordionTemp || !index) {
delete _this.registeredTemplate[registeredTemplate];
delete _this.registeredTemplate[`${registeredTemplate}`];
}
}
}
for (let tagObject of _this.tagObjects) {
for (const tagObject of _this.tagObjects) {
if (tagObject.instance) {
/* istanbul ignore next */
tagObject.instance.clearTemplate((templateNames && templateNames.filter((val) => {
return (new RegExp(tagObject.name).test(val) ? true : false);
const regExp = RegExp;
return (new regExp(tagObject.name).test(val) ? true : false);
})));

@@ -118,21 +140,22 @@ }

* To set value for the nameSpace in desired object.
* @param {string} nameSpace - String value to the get the inner object
*
* @param {string} nameSpace - String value to get the inner object.
* @param {any} value - Value that you need to set.
* @param {any} obj - Object to get the inner object value.
* @return {void}
* @param {any} object - Object to get the inner object value.
* @returns {void}
* @private
*/
function setValue$1(nameSpace, value, object) {
let keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
function setValue(nameSpace, value, object) {
const keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
/* istanbul ignore next */
let fromObj = object || {};
for (let i = 0; i < keys.length; i++) {
let key = keys[i];
const key = keys[parseInt(i.toString(), 10)];
if (i + 1 === keys.length) {
fromObj[key] = value === undefined ? {} : value;
fromObj[`${key}`] = value === undefined ? {} : value;
}
else if (fromObj[key] === undefined) {
fromObj[key] = {};
else if (fromObj[`${key}`] === undefined) {
fromObj[`${key}`] = {};
}
fromObj = fromObj[key];
fromObj = fromObj[`${key}`];
}

@@ -153,4 +176,4 @@ return fromObj;

this.registeredTemplate = {};
for (let tag of this.tags) {
let objInstance = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), this);
for (const tag of this.tags) {
const objInstance = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), this);
if (objInstance) {

@@ -162,10 +185,10 @@ this.tagObjects.push({ instance: objInstance, name: tag });

for (let i = 0; i < templateProperties.length; i++) {
var tempProp = getValue(templateProperties[i], this);
const tempProp = getValue(templateProperties[parseInt(i.toString(), 10)], this);
if (typeof tempProp === 'object' && tempProp && tempProp.elementRef) {
if (!getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)) {
setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
if (!getValue(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', this)) {
setValue$1(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', tempProp, this);
}
if (getValue("viewContainerRef", this) && !getValue("_viewContainerRef", tempProp.elementRef.nativeElement) && !getValue("propName", tempProp.elementRef.nativeElement)) {
setValue("_viewContainerRef", getValue("viewContainerRef", this), tempProp.elementRef.nativeElement);
setValue("propName", templateProperties[i].replace("Ref", ''), tempProp.elementRef.nativeElement);
if (getValue('viewContainerRef', this) && !getValue('_viewContainerRef', tempProp.elementRef.nativeElement) && !getValue('propName', tempProp.elementRef.nativeElement)) {
setValue$1('_viewContainerRef', getValue('viewContainerRef', this), tempProp.elementRef.nativeElement);
setValue$1('propName', templateProperties[parseInt(i.toString(), 10)].replace('Ref', ''), tempProp.elementRef.nativeElement);
}

@@ -178,15 +201,15 @@ }

});
for (let tempName of templateProperties) {
let propName = tempName.replace('Ref', '');
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
for (const tempName of templateProperties) {
const propName = tempName.replace('Ref', '');
setValue$1(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
}
// Angular 9 compatibility to overcome ngOnchange not get triggered issue
// To Update properties to "this.propCollection"
let propList = Object.keys(this);
const propList = Object.keys(this);
/* istanbul ignore next */
if (this.directivePropList) {
for (let k = 0; k < this.directivePropList.length; k++) {
let dirPropName = this.directivePropList[k];
const dirPropName = this.directivePropList[parseInt(k.toString(), 10)];
if (propList.indexOf(dirPropName) !== -1 && (getValue(dirPropName, this) === false || getValue(dirPropName, this))) {
setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
setValue$1(dirPropName, getValue(dirPropName, this), this.propCollection);
}

@@ -202,5 +225,5 @@ }

ngOnChanges(changes) {
for (let propName of Object.keys(changes)) {
let changedVal = changes[propName];
this.propCollection[propName] = changedVal.currentValue;
for (const propName of Object.keys(changes)) {
const changedVal = changes[`${propName}`];
this.propCollection[`${propName}`] = changedVal.currentValue;
}

@@ -216,3 +239,3 @@ this.isUpdated = false;

/* istanbul ignore next */
for (let tagObject of this.tagObjects) {
for (const tagObject of this.tagObjects) {
this.propCollection[tagObject.name] = tagObject.instance.getProperties();

@@ -225,12 +248,12 @@ }

if (!isNullOrUndefined(this.propCollection[this.property])) {
let tempProps = this.propCollection[this.property];
let props = Object.keys(tempProps[0]);
const tempProps = this.propCollection[this.property];
const props = Object.keys(tempProps[0]);
for (let d = 0; d < props.length; d++) {
if (!isNullOrUndefined(this.propCollection[props[d]])) {
let val = getValue(props[d], this);
let propVal = this.propCollection[this.property][0][props[d]];
if (!isNullOrUndefined(val) && this.propCollection[props[d]] !== val
if (!isNullOrUndefined(this.propCollection[props[parseInt(d.toString(), 10)]])) {
const val = getValue(props[parseInt(d.toString(), 10)], this);
const propVal = this.propCollection[this.property][0][props[parseInt(d.toString(), 10)]];
if (!isNullOrUndefined(val) && this.propCollection[props[parseInt(d.toString(), 10)]] !== val
&& propVal !== val) {
setValue(props[d], val, this.propCollection[this.property][0]);
setValue(props[d], val, this.propCollection);
setValue$1(props[parseInt(d.toString(), 10)], val, this.propCollection[this.property][0]);
setValue$1(props[parseInt(d.toString(), 10)], val, this.propCollection);
this.hasChanges = true;

@@ -243,3 +266,3 @@ this.isUpdated = false;

/* istanbul ignore next */
for (let item of this.tagObjects) {
for (const item of this.tagObjects) {
result = result || item.instance.hasChanges;

@@ -256,5 +279,5 @@ }

});
for (let tempName of templateProperties) {
let propName = tempName.replace('Ref', '');
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
for (const tempName of templateProperties) {
const propName = tempName.replace('Ref', '');
setValue$1(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
}

@@ -298,4 +321,4 @@ }

getProperties() {
let onlyProp = [];
for (let item of this.list) {
const onlyProp = [];
for (const item of this.list) {
onlyProp.push(item.getProperties());

@@ -309,4 +332,3 @@ }

let isSourceChanged = false;
// tslint:disable-next-line
let childrenDataSource = this.children.map((child) => {
const childrenDataSource = this.children.map((child) => {
return child;

@@ -317,13 +339,16 @@ });

for (let i = 0; i < this.list.length; i++) {
if (this.list[i].propCollection.dataSource) {
if (this.list[i].dataSource && this.list[i].propCollection.dataSource !== this.list[i].dataSource) {
this.list[i].propCollection.dataSource = this.list[i].dataSource;
this.list[i].hasChanges = true;
if (this.list[parseInt(i.toString(), 10)].propCollection.dataSource) {
if (this.list[parseInt(i.toString(), 10)].dataSource &&
this.list[parseInt(i.toString(), 10)].propCollection.dataSource
!== this.list[parseInt(i.toString(), 10)].dataSource) {
this.list[parseInt(i.toString(), 10)].propCollection.dataSource = this.list[parseInt(i.toString(), 10)].dataSource;
this.list[parseInt(i.toString(), 10)].hasChanges = true;
}
if (this.list[i].property !== "series") {
isSourceChanged = (JSON.stringify(this.list[i].propCollection.dataSource) !==
JSON.stringify(childrenDataSource[i].propCollection.dataSource));
if (this.list[parseInt(i.toString(), 10)].property !== 'series') {
isSourceChanged = (JSON.stringify(this.list[parseInt(i.toString(), 10)].propCollection.dataSource) !==
JSON.stringify(childrenDataSource[parseInt(i.toString(), 10)].propCollection.dataSource));
}
}
isSourceChanged = this.list[i].hasChanges !== childrenDataSource[i].hasChanges;
isSourceChanged = this.list[parseInt(i.toString(), 10)].hasChanges
!== childrenDataSource[parseInt(i.toString(), 10)].hasChanges;
}

@@ -340,3 +365,3 @@ }

/* istanbul ignore end */
for (let item of this.list) {
for (const item of this.list) {
result = result || item.hasChanges;

@@ -348,5 +373,6 @@ }

/* istanbul ignore next */
for (let item of this.list) {
for (const item of this.list) {
item.clearTemplate(templateNames && templateNames.map((val) => {
return new RegExp(this.propertyName).test(val) ? val.replace(this.propertyName + '.', '') : val;
const regExp = RegExp;
return new regExp(this.propertyName).test(val) ? val.replace(this.propertyName + '.', '') : val;
}));

@@ -358,6 +384,6 @@ }

for (let i = 0; i < this.list.length; i++) {
if (getValue('childColumns', this.list[i]) && getValue('property', this.list[i]) === 'columns') {
setValue('columns', getValue('childColumns', this.list[i]).getProperties(), this.list[i].propCollection);
if (getValue('childColumns', this.list[parseInt(i.toString(), 10)]) && getValue('property', this.list[parseInt(i.toString(), 10)]) === 'columns') {
setValue$1('columns', getValue('childColumns', this.list[parseInt(i.toString(), 10)]).getProperties(), this.list[parseInt(i.toString(), 10)].propCollection);
}
this.list[i].isUpdated = true;
this.list[parseInt(i.toString(), 10)].isUpdated = true;
}

@@ -373,5 +399,3 @@ }

/**
* Angular Component Base Module
*/
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
class ComponentBase {

@@ -386,8 +410,7 @@ constructor() {

}
this.oldProperties[key] = oldValue;
this.changedProperties[key] = newValue;
this.oldProperties[`${key}`] = oldValue;
this.changedProperties[`${key}`] = newValue;
this.finalUpdate();
// tslint:disable-next-line:no-any
let changeTime = setTimeout(this.dataBind.bind(this));
let clearUpdate = () => {
const changeTime = setTimeout(this.dataBind.bind(this));
const clearUpdate = () => {
clearTimeout(changeTime);

@@ -397,7 +420,4 @@ };

}
;
// tslint:disable-next-line:no-any
ngOnInit(isTempRef) {
// tslint:disable-next-line:no-any
let tempOnThis = isTempRef || this;
const tempOnThis = isTempRef || this;
tempOnThis.registeredTemplate = {};

@@ -417,4 +437,3 @@ tempOnThis.ngBoundedEvents = {};

tempOnThis.createElement = (tagName, prop) => {
//tslint:disable-next-line
let ele = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);
const ele = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);
if (typeof (prop) === 'undefined') {

@@ -441,4 +460,4 @@ return ele;

};
for (let tag of tempOnThis.tags) {
let tagObject = {
for (const tag of tempOnThis.tags) {
const tagObject = {
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tempOnThis),

@@ -451,10 +470,10 @@ name: tag

for (let i = 0; i < complexTemplates.length; i++) {
var compProp = getValue(complexTemplates[i], tempOnThis);
const compProp = getValue(complexTemplates[parseInt(i.toString(), 10)], tempOnThis);
if (typeof compProp === 'object' && compProp && compProp.elementRef) {
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[i].indexOf('_') !== -1 && complexTemplates[i].indexOf('Ref') === -1) {
setValue(complexTemplates[i] + 'Ref', compProp, tempOnThis);
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[parseInt(i.toString(), 10)].indexOf('_') !== -1 && complexTemplates[parseInt(i.toString(), 10)].indexOf('Ref') === -1) {
setValue$1(complexTemplates[parseInt(i.toString(), 10)] + 'Ref', compProp, tempOnThis);
}
if (tempOnThis.viewContainerRef && !getValue("_viewContainerRef", compProp.elementRef.nativeElement) && !getValue("propName", compProp.elementRef.nativeElement)) {
setValue("_viewContainerRef", tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
setValue("propName", complexTemplates[i].replace("Ref", ''), compProp.elementRef.nativeElement);
if (tempOnThis.viewContainerRef && !getValue('_viewContainerRef', compProp.elementRef.nativeElement) && !getValue('propName', compProp.elementRef.nativeElement)) {
setValue$1('_viewContainerRef', tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
setValue$1('propName', complexTemplates[parseInt(i.toString(), 10)].replace('Ref', ''), compProp.elementRef.nativeElement);
}

@@ -465,8 +484,8 @@ }

complexTemplates = complexTemplates.filter((val) => {
return /Ref$/i.test(val) && /\_/i.test(val);
return /Ref$/i.test(val) && /_/i.test(val);
});
for (let tempName of complexTemplates) {
let propName = tempName.replace('Ref', '');
let val = {};
setValue(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
for (const tempName of complexTemplates) {
const propName = tempName.replace('Ref', '');
const val = {};
setValue$1(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
tempOnThis.setProperties(val, true);

@@ -476,9 +495,9 @@ }

getAngularAttr(ele) {
let attributes$$1 = ele.attributes;
let length = attributes$$1.length;
const attributes = ele.attributes;
const length = attributes.length;
let ngAr;
for (let i = 0; i < length; i++) {
/* istanbul ignore next */
if (/_ngcontent/g.test(attributes$$1[i].name)) {
ngAr = attributes$$1[i].name;
if (/_ngcontent/g.test(attributes[parseInt(i.toString(), 10)].name)) {
ngAr = attributes[parseInt(i.toString(), 10)].name;
}

@@ -488,8 +507,5 @@ }

}
;
// tslint:disable-next-line:no-any
ngAfterViewInit(isTempRef) {
// tslint:disable-next-line:no-any
let tempAfterViewThis = isTempRef || this;
let regExp = /ejs-tab|ejs-accordion/g;
const tempAfterViewThis = isTempRef || this;
const regExp = /ejs-tab|ejs-accordion/g;
/* istanbul ignore next */

@@ -515,6 +531,6 @@ if (regExp.test(tempAfterViewThis.ngEle.nativeElement.outerHTML)) {

});
let ngtempRef = tempAfterViewThis.getModuleName() === 'DocumentEditor';
for (let tempName of templateProperties) {
let propName = tempName.replace('Ref', '');
setValue(propName.replace('_', '.'), getValue(propName + 'Ref', tempAfterViewThis), tempAfterViewThis);
const ngtempRef = tempAfterViewThis.getModuleName() === 'DocumentEditor';
for (const tempName of templateProperties) {
const propName = tempName.replace('Ref', '');
setValue$1(propName.replace('_', '.'), getValue(propName + 'Ref', tempAfterViewThis), tempAfterViewThis);
}

@@ -539,6 +555,4 @@ // Used setTimeout for template binding

}
// tslint:disable-next-line:no-any
ngOnDestroy(isTempRef) {
// tslint:disable-next-line:no-any
let tempOnDestroyThis = isTempRef || this;
const tempOnDestroyThis = isTempRef || this;
/* istanbul ignore else */

@@ -551,10 +565,10 @@ setTimeout(() => {

setTimeout(function () {
for (let key of Object.keys(tempOnDestroyThis)) {
let value = tempOnDestroyThis[key];
for (const key of Object.keys(tempOnDestroyThis)) {
const value = tempOnDestroyThis[`${key}`];
if (value && /object/.test(typeof value) && Object.keys(value).length !== 0) {
if (/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(key)) {
for (let propKey of Object.keys(tempOnDestroyThis[key])) {
let propValue = value[propKey];
for (const propKey of Object.keys(tempOnDestroyThis[`${key}`])) {
const propValue = value[`${propKey}`];
if (propValue && /object/.test(typeof propValue) && Object.keys(propValue).length !== 0 && (propValue.parent || propValue.parentObj)) {
tempOnDestroyThis[key][propKey] = null;
tempOnDestroyThis[`${key}`][`${propKey}`] = null;
}

@@ -565,3 +579,3 @@ }

if (value.parent || value.parentObj) {
tempOnDestroyThis[key] = null;
tempOnDestroyThis[`${key}`] = null;
}

@@ -575,15 +589,11 @@ }

}
//tslint:disable-next-line
clearTemplate(templateNames, index) {
clearTemplate(this, templateNames, index);
}
;
// tslint:disable-next-line:no-any
ngAfterContentChecked(isTempRef) {
// tslint:disable-next-line:no-any
let tempAfterContentThis = isTempRef || this;
for (let tagObject of tempAfterContentThis.tagObjects) {
const tempAfterContentThis = isTempRef || this;
for (const tagObject of tempAfterContentThis.tagObjects) {
if (!isUndefined(tagObject.instance) &&
(tagObject.instance.isInitChanges || tagObject.instance.hasChanges || tagObject.instance.hasNewChildren)) {
let propObj = {};
const propObj = {};
if (tagObject.instance.isInitChanges) {

@@ -594,3 +604,3 @@ // For angular 9 compatibility

let complexDirProps;
let list = getValue('instance.list', tagObject);
const list = getValue('instance.list', tagObject);
if (list && list.length) {

@@ -604,25 +614,26 @@ complexDirProps = list[0].directivePropList;

if (complexDirProps && skip && complexDirProps.indexOf(tagObject.instance.propertyName) === -1) {
let compDirPropList = Object.keys(tagObject.instance.list[0].propCollection);
const compDirPropList = Object.keys(tagObject.instance.list[0].propCollection);
for (let h = 0; h < tagObject.instance.list.length; h++) {
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName] = [];
let obj = {};
tagObject.instance.list[`${h}`].propCollection[tagObject.instance.propertyName] = [];
const obj = {};
for (let k = 0; k < compDirPropList.length; k++) {
let complexPropName = compDirPropList[k];
obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
const complexPropName = compDirPropList[parseInt(k.toString(), 10)];
obj[`${complexPropName}`] = tagObject.instance.list[`${h}`].propCollection[`${complexPropName}`];
}
for (let i = 0; i < tagObject.instance.list[h].tags.length; i++) {
let tag = tagObject.instance.list[h].tags[i];
let childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list[h]);
for (let i = 0; i < tagObject.instance.list[`${h}`].tags.length; i++) {
const tag = tagObject.instance.list[`${h}`].tags[parseInt(i.toString(), 10)];
const childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list[`${h}`]);
if (childObj) {
let innerchildObj = tagObject.instance.list[h]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
const innerchildObj = tagObject.instance.list[`${h}`]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
// Update the inner child tag objects
const updateChildTag = (innerchild) => {
let innerLevelTag = [];
const innerLevelTag = [];
if (innerchild) {
for (let j = 0; j < innerchild.list.length; j++) {
let innerTag = innerchild.list[0].tags[0];
const innerTag = innerchild.list[0].tags[0];
if (innerTag) {
let innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[j]);
const innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[parseInt(j.toString(), 10)]);
if (innerchildTag) {
innerchild.list[j].tagObjects.push({ instance: innerchildTag, name: innerTag });
innerchild.list[parseInt(j.toString(), 10)].tagObjects
.push({ instance: innerchildTag, name: innerTag });
innerLevelTag.push(innerchildTag);

@@ -636,12 +647,11 @@ }

for (let l = 0; l < innerLevelTag.length; l++) {
updateChildTag(innerLevelTag[l]);
updateChildTag(innerLevelTag[parseInt(l.toString(), 10)]);
}
}
};
updateChildTag(innerchildObj);
tagObject.instance.list[h].tagObjects.push({ instance: childObj, name: tag });
tagObject.instance.list[`${h}`].tagObjects.push({ instance: childObj, name: tag });
}
}
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
tagObject.instance.list[`${h}`].propCollection[tagObject.instance.propertyName].push(obj);
}

@@ -660,5 +670,5 @@ }

}
for (let list of tagObject.instance.list) {
let curIndex = tagObject.instance.list.indexOf(list);
let curChild = getValue(tagObject.name, tempAfterContentThis)[curIndex];
for (const list of tagObject.instance.list) {
const curIndex = tagObject.instance.list.indexOf(list);
const curChild = getValue(tagObject.name, tempAfterContentThis)[`${curIndex}`];
let complexTemplates = Object.keys(curChild);

@@ -671,4 +681,4 @@ complexTemplates = complexTemplates.filter((val) => {

complexPropName = complexPropName.replace(/Ref/, '');
curChild.properties[complexPropName] = !curChild.properties[complexPropName] ?
curChild.propCollection[complexPropName] : curChild.properties[complexPropName];
curChild.properties[`${complexPropName}`] = !curChild.properties[`${complexPropName}`] ?
curChild.propCollection[`${complexPropName}`] : curChild.properties[`${complexPropName}`];
}

@@ -698,3 +708,3 @@ }

twoWaySetter(newVal, prop) {
let oldVal = getValue(prop, this.properties);
const oldVal = getValue(prop, this.properties);
if (oldVal === newVal) {

@@ -704,7 +714,7 @@ return;

this.saveChanges(prop, newVal, oldVal);
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
setValue$1(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
getValue(prop + 'Change', this).emit(newVal);
}
addTwoWay(propList) {
for (let prop of propList) {
for (const prop of propList) {
getValue(prop, this);

@@ -717,23 +727,23 @@ Object.defineProperty(this, prop, {

});
setValue(prop + 'Change', new EventEmitter(), this);
setValue$1(prop + 'Change', new EventEmitter(), this);
}
}
addEventListener(eventName, handler) {
let eventObj = getValue(eventName, this);
const eventObj = getValue(eventName, this);
if (!isUndefined(eventObj)) {
if (!this.ngBoundedEvents[eventName]) {
this.ngBoundedEvents[eventName] = new Map();
if (!this.ngBoundedEvents[`${eventName}`]) {
this.ngBoundedEvents[`${eventName}`] = new Map();
}
this.ngBoundedEvents[eventName].set(handler, eventObj.subscribe(handler));
this.ngBoundedEvents[`${eventName}`].set(handler, eventObj.subscribe(handler));
}
}
removeEventListener(eventName, handler) {
let eventObj = getValue(eventName, this);
const eventObj = getValue(eventName, this);
if (!isUndefined(eventObj)) {
this.ngBoundedEvents[eventName].get(handler).unsubscribe();
this.ngBoundedEvents[`${eventName}`].get(handler).unsubscribe();
}
}
trigger(eventName, eventArgs, success) {
let eventObj = getValue(eventName, this);
let prevDetection = this.isProtectedOnChange;
const eventObj = getValue(eventName, this);
const prevDetection = this.isProtectedOnChange;
this.isProtectedOnChange = false;

@@ -746,3 +756,3 @@ if (eventArgs) {

}
let localEventObj = getValue('local' + eventName.charAt(0).toUpperCase() + eventName.slice(1), this);
const localEventObj = getValue('local' + eventName.charAt(0).toUpperCase() + eventName.slice(1), this);
if (!isUndefined(localEventObj)) {

@@ -768,4 +778,3 @@ localEventObj.call(this, eventArgs);

localChange(e) {
//tslint:disable-next-line
let value = (e.checked === undefined ? e.value : e.checked);
const value = (e.checked === undefined ? e.value : e.checked);
this.objCheck = isObject(value);

@@ -793,4 +802,3 @@ if (this.isUpdated === true) {

else {
//tslint:disable-next-line
let optionalValue = value;
const optionalValue = value;
this.propagateChange(optionalValue);

@@ -810,4 +818,4 @@ this.angularValue = value;

twoWaySetter(newVal, prop) {
let oldVal = this.oldValue || getValue(prop, this.properties);
let ele = this.inputElement || this.element;
const oldVal = this.oldValue || getValue(prop, this.properties);
const ele = this.inputElement || this.element;
if (ele && oldVal === newVal && this.value === newVal &&

@@ -818,9 +826,7 @@ (ele.value === undefined || ele.value === '')) {

this.saveChanges(prop, newVal, oldVal);
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
setValue$1(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
getValue(prop + 'Change', this).emit(newVal);
}
// tslint:disable-next-line:no-any
ngAfterViewInit(isTempRef) {
// tslint:disable-next-line:no-any
let tempFormAfterViewThis = isTempRef || this;
const tempFormAfterViewThis = isTempRef || this;
// Used setTimeout for template binding

@@ -839,3 +845,3 @@ // Refer Link: https://github.com/angular/angular/issues/6005

}
let ele = tempFormAfterViewThis.inputElement || tempFormAfterViewThis.element;
const ele = tempFormAfterViewThis.inputElement || tempFormAfterViewThis.element;
ele.addEventListener('focus', tempFormAfterViewThis.ngOnFocus.bind(tempFormAfterViewThis));

@@ -851,3 +857,3 @@ ele.addEventListener('blur', tempFormAfterViewThis.ngOnBlur.bind(tempFormAfterViewThis));

writeValue(value) {
let regExp = /ejs-radiobutton/g;
const regExp = /ejs-radiobutton/g;
//update control value from angular

@@ -902,5 +908,9 @@ if (this.checked === undefined) {

let stringCompiler = getTemplateEngine();
const stringCompiler = getTemplateEngine();
/**
* Angular Template Compiler
*
* @param {AngularElementType} templateEle - The element representing the template.
* @param {Object} [helper] - Optional helper object.
* @returns {Function} A function that compiles the template.
*/

@@ -912,10 +922,9 @@ function compile(templateEle, helper) {

else {
let contRef = templateEle.elementRef.nativeElement._viewContainerRef;
let pName = templateEle.elementRef.nativeElement.propName;
//tslint:disable-next-line
const contRef = templateEle.elementRef.nativeElement._viewContainerRef;
const pName = templateEle.elementRef.nativeElement.propName;
return (data, component, propName) => {
let context = { $implicit: data };
const context = { $implicit: data };
/* istanbul ignore next */
let conRef = contRef ? contRef : component.viewContainerRef;
let viewRef = conRef.createEmbeddedView(templateEle, context);
const conRef = contRef ? contRef : component.viewContainerRef;
const viewRef = conRef.createEmbeddedView(templateEle, context);
if (/EJS-MENTION|EJS-DROPDOWNLIST/.test(getValue('currentInstance.element.nodeName', conRef)) || /E-TABITEM/.test(getValue('element.nativeElement.nodeName', conRef))) {

@@ -928,9 +937,9 @@ viewRef.detectChanges();

/* istanbul ignore next */
let viewCollection = (component && component.registeredTemplate) ?
const viewCollection = (component && component.registeredTemplate) ?
component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);
propName = (propName && component.registeredTemplate) ? propName : pName;
if (typeof viewCollection[propName] === 'undefined') {
viewCollection[propName] = [];
if (typeof viewCollection[`${propName}`] === 'undefined') {
viewCollection[`${propName}`] = [];
}
viewCollection[propName].push(viewRef);
viewCollection[`${propName}`].push(viewRef);
return viewRef.rootNodes;

@@ -942,6 +951,9 @@ };

* Property decorator for angular.
*
* @param {Object} [defaultValue] - Default value for the property.
* @returns {PropertyDecorator} The decorator function.
*/
function Template(defaultValue) {
return (target, key) => {
let propertyDescriptor = {
const propertyDescriptor = {
set: setter(key),

@@ -955,2 +967,8 @@ get: getter(key, defaultValue),

}
/**
* Creates a setter function for a given property key.
*
* @param {string} key - The property key.
* @returns {Function} The setter function.
*/
function setter(key) {

@@ -961,3 +979,3 @@ return function (val) {

}
setValue(key + 'Ref', val, this);
setValue$1(key + 'Ref', val, this);
if (typeof val !== 'string') {

@@ -975,2 +993,9 @@ val.elementRef.nativeElement._viewContainerRef = this.viewContainerRef;

}
/**
* Returns a getter function for the specified key and default value.
*
* @param {string} key - The key for the property.
* @param {Object} defaultValue - The default value for the property.
* @returns {Function} The getter function.
*/
function getter(key, defaultValue) {

@@ -982,10 +1007,5 @@ return function () {

}
//tslint:disable-next-line
setTemplateEngine({ compile: compile });
/**
* Index
*/
export { ComplexBase, ArrayBase, ComponentBase, FormBase, applyMixins, ComponentMixins, registerEvents, clearTemplate, setValue$1 as setValue, compile, Template };
export { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, FormBase, Template, applyMixins, clearTemplate, compile, registerEvents, setValue };
//# sourceMappingURL=ej2-angular-base.es2015.js.map

@@ -1,13 +0,17 @@

import { attributes, createElement, getTemplateEngine, getValue, isNullOrUndefined, isObject, isUndefined, setTemplateEngine, setValue } from '@syncfusion/ej2-base';
import { isNullOrUndefined, getValue, setValue as setValue$1, createElement, attributes, isUndefined, isObject, getTemplateEngine, setTemplateEngine } from '@syncfusion/ej2-base';
import { EventEmitter } from '@angular/core';
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
/**
* Angular Utility Module
*
* @param {Function} derivedClass The derived class to which mixins are applied.
* @param {Function[]} baseClass An array of base classes whose methods are applied as mixins.
* @returns {void}
*/
/* tslint:disable */
function applyMixins(derivedClass, baseClass) {
baseClass.forEach(function (baseClass) {
Object.getOwnPropertyNames(baseClass.prototype).forEach(function (name) {
if (!derivedClass.prototype.hasOwnProperty(name) || (baseClass.isFormBase && name !== 'constructor')) {
derivedClass.prototype[name] = baseClass.prototype[name];
if (!Object.prototype.hasOwnProperty.call(derivedClass.prototype, name) || (baseClass.isFormBase && name !== 'constructor')) {
derivedClass.prototype["".concat(name)] = baseClass.prototype["".concat(name)];
}

@@ -17,3 +21,8 @@ });

}
/* tslint:disable */
/**
* Decorator function to apply mixins to a derived class.
*
* @param {Function[]} baseClass - An array of mixin classes to be applied to the derived class.
* @returns {ClassDecorator} The decorator function.
*/
function ComponentMixins(baseClass) {

@@ -25,3 +34,9 @@ return function (derivedClass) {

/**
* Registers events.
*
* @private
* @param {string[]} eventList - The list of events to register.
* @param {any} obj - The object on which to register the events.
* @param {boolean} [direct] - Whether to register events directly on the object or not.
* @returns {void}
*/

@@ -34,7 +49,7 @@ function registerEvents(eventList, obj, direct) {

if (direct === true) {
obj.propCollection[event_1] = new EventEmitter(false);
obj[event_1] = obj.propCollection[event_1];
obj.propCollection["".concat(event_1)] = new EventEmitter(false);
obj["".concat(event_1)] = obj.propCollection["".concat(event_1)];
}
else {
ngEventsEmitter[event_1] = new EventEmitter(false);
ngEventsEmitter["".concat(event_1)] = new EventEmitter(false);
}

@@ -48,3 +63,9 @@ }

/**
* Clears registered templates.
*
* @private
* @param {any} _this - The context object.
* @param {string[]} [templateNames] - Optional. An array of template names to clear.
* @param {any[]} [index] - Optional. An array of indices specifying templates to clear.
* @returns {void}
*/

@@ -65,7 +86,7 @@ function clearTemplate(_this, templateNames, index) {

if (tabaccordionTemp) {
for (var m = 0; m < _this.registeredTemplate[registeredTemplate].length; m++) {
var value = _this.registeredTemplate[registeredTemplate][m];
if (value && value === index[e]) {
for (var m = 0; m < _this.registeredTemplate["".concat(registeredTemplate)].length; m++) {
var value = _this.registeredTemplate["".concat(registeredTemplate)][parseInt(m.toString(), 10)];
if (value && value === index["".concat(e)]) {
value.destroy();
_this.registeredTemplate[registeredTemplate].splice(m, 1);
_this.registeredTemplate["".concat(registeredTemplate)].splice(m, 1);
}

@@ -76,6 +97,6 @@ }

for (var m = 0; m < _this.registeredTemplate.template.length; m++) {
var value = _this.registeredTemplate.template[m].rootNodes[0];
if (value === index[e]) {
var rt = _this.registeredTemplate[registeredTemplate];
rt[m].destroy();
var value = _this.registeredTemplate.template[parseInt(m.toString(), 10)].rootNodes[0];
if (value === index["".concat(e)]) {
var rt = _this.registeredTemplate["".concat(registeredTemplate)];
rt[parseInt(m.toString(), 10)].destroy();
}

@@ -87,4 +108,4 @@ }

else {
if (_this.registeredTemplate[registeredTemplate]) {
for (var _b = 0, _c = _this.registeredTemplate[registeredTemplate]; _b < _c.length; _b++) {
if (_this.registeredTemplate["".concat(registeredTemplate)]) {
for (var _b = 0, _c = _this.registeredTemplate["".concat(registeredTemplate)]; _b < _c.length; _b++) {
var rt = _c[_b];

@@ -96,3 +117,3 @@ if (!rt.destroyed) {

for (var m = 0; m < rt.rootNodes.length; m++) {
pNode.appendChild(rt.rootNodes[m]);
pNode.appendChild(rt.rootNodes[parseInt(m.toString(), 10)]);
}

@@ -107,3 +128,3 @@ }

if (!tabaccordionTemp || !index) {
delete _this.registeredTemplate[registeredTemplate];
delete _this.registeredTemplate["".concat(registeredTemplate)];
}

@@ -116,3 +137,4 @@ }

tagObject.instance.clearTemplate((templateNames && templateNames.filter(function (val) {
return (new RegExp(tagObject.name).test(val) ? true : false);
var regExp = RegExp;
return (new regExp(tagObject.name).test(val) ? true : false);
})));

@@ -128,9 +150,10 @@ }

* To set value for the nameSpace in desired object.
* @param {string} nameSpace - String value to the get the inner object
*
* @param {string} nameSpace - String value to get the inner object.
* @param {any} value - Value that you need to set.
* @param {any} obj - Object to get the inner object value.
* @return {void}
* @param {any} object - Object to get the inner object value.
* @returns {void}
* @private
*/
function setValue$1(nameSpace, value, object) {
function setValue(nameSpace, value, object) {
var keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');

@@ -140,10 +163,10 @@ /* istanbul ignore next */

for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var key = keys[parseInt(i.toString(), 10)];
if (i + 1 === keys.length) {
fromObj[key] = value === undefined ? {} : value;
fromObj["".concat(key)] = value === undefined ? {} : value;
}
else if (fromObj[key] === undefined) {
fromObj[key] = {};
else if (fromObj["".concat(key)] === undefined) {
fromObj["".concat(key)] = {};
}
fromObj = fromObj[key];
fromObj = fromObj["".concat(key)];
}

@@ -173,10 +196,10 @@ return fromObj;

for (var i = 0; i < templateProperties.length; i++) {
var tempProp = getValue(templateProperties[i], this);
var tempProp = getValue(templateProperties[parseInt(i.toString(), 10)], this);
if (typeof tempProp === 'object' && tempProp && tempProp.elementRef) {
if (!getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)) {
setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
if (!getValue(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', this)) {
setValue$1(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', tempProp, this);
}
if (getValue("viewContainerRef", this) && !getValue("_viewContainerRef", tempProp.elementRef.nativeElement) && !getValue("propName", tempProp.elementRef.nativeElement)) {
setValue("_viewContainerRef", getValue("viewContainerRef", this), tempProp.elementRef.nativeElement);
setValue("propName", templateProperties[i].replace("Ref", ''), tempProp.elementRef.nativeElement);
if (getValue('viewContainerRef', this) && !getValue('_viewContainerRef', tempProp.elementRef.nativeElement) && !getValue('propName', tempProp.elementRef.nativeElement)) {
setValue$1('_viewContainerRef', getValue('viewContainerRef', this), tempProp.elementRef.nativeElement);
setValue$1('propName', templateProperties[parseInt(i.toString(), 10)].replace('Ref', ''), tempProp.elementRef.nativeElement);
}

@@ -192,3 +215,3 @@ }

var propName = tempName.replace('Ref', '');
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
setValue$1(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
}

@@ -201,5 +224,5 @@ // Angular 9 compatibility to overcome ngOnchange not get triggered issue

for (var k = 0; k < this.directivePropList.length; k++) {
var dirPropName = this.directivePropList[k];
var dirPropName = this.directivePropList[parseInt(k.toString(), 10)];
if (propList.indexOf(dirPropName) !== -1 && (getValue(dirPropName, this) === false || getValue(dirPropName, this))) {
setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
setValue$1(dirPropName, getValue(dirPropName, this), this.propCollection);
}

@@ -217,4 +240,4 @@ }

var propName = _a[_i];
var changedVal = changes[propName];
this.propCollection[propName] = changedVal.currentValue;
var changedVal = changes["".concat(propName)];
this.propCollection["".concat(propName)] = changedVal.currentValue;
}

@@ -242,9 +265,9 @@ this.isUpdated = false;

for (var d = 0; d < props.length; d++) {
if (!isNullOrUndefined(this.propCollection[props[d]])) {
var val = getValue(props[d], this);
var propVal = this.propCollection[this.property][0][props[d]];
if (!isNullOrUndefined(val) && this.propCollection[props[d]] !== val
if (!isNullOrUndefined(this.propCollection[props[parseInt(d.toString(), 10)]])) {
var val = getValue(props[parseInt(d.toString(), 10)], this);
var propVal = this.propCollection[this.property][0][props[parseInt(d.toString(), 10)]];
if (!isNullOrUndefined(val) && this.propCollection[props[parseInt(d.toString(), 10)]] !== val
&& propVal !== val) {
setValue(props[d], val, this.propCollection[this.property][0]);
setValue(props[d], val, this.propCollection);
setValue$1(props[parseInt(d.toString(), 10)], val, this.propCollection[this.property][0]);
setValue$1(props[parseInt(d.toString(), 10)], val, this.propCollection);
this.hasChanges = true;

@@ -273,3 +296,3 @@ this.isUpdated = false;

var propName = tempName.replace('Ref', '');
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
setValue$1(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
}

@@ -327,3 +350,2 @@ }

var isSourceChanged = false;
// tslint:disable-next-line
var childrenDataSource = this.children.map(function (child) {

@@ -335,13 +357,16 @@ return child;

for (var i = 0; i < this.list.length; i++) {
if (this.list[i].propCollection.dataSource) {
if (this.list[i].dataSource && this.list[i].propCollection.dataSource !== this.list[i].dataSource) {
this.list[i].propCollection.dataSource = this.list[i].dataSource;
this.list[i].hasChanges = true;
if (this.list[parseInt(i.toString(), 10)].propCollection.dataSource) {
if (this.list[parseInt(i.toString(), 10)].dataSource &&
this.list[parseInt(i.toString(), 10)].propCollection.dataSource
!== this.list[parseInt(i.toString(), 10)].dataSource) {
this.list[parseInt(i.toString(), 10)].propCollection.dataSource = this.list[parseInt(i.toString(), 10)].dataSource;
this.list[parseInt(i.toString(), 10)].hasChanges = true;
}
if (this.list[i].property !== "series") {
isSourceChanged = (JSON.stringify(this.list[i].propCollection.dataSource) !==
JSON.stringify(childrenDataSource[i].propCollection.dataSource));
if (this.list[parseInt(i.toString(), 10)].property !== 'series') {
isSourceChanged = (JSON.stringify(this.list[parseInt(i.toString(), 10)].propCollection.dataSource) !==
JSON.stringify(childrenDataSource[parseInt(i.toString(), 10)].propCollection.dataSource));
}
}
isSourceChanged = this.list[i].hasChanges !== childrenDataSource[i].hasChanges;
isSourceChanged = this.list[parseInt(i.toString(), 10)].hasChanges
!== childrenDataSource[parseInt(i.toString(), 10)].hasChanges;
}

@@ -370,3 +395,4 @@ }

item.clearTemplate(templateNames && templateNames.map(function (val) {
return new RegExp(_this.propertyName).test(val) ? val.replace(_this.propertyName + '.', '') : val;
var regExp = RegExp;
return new regExp(_this.propertyName).test(val) ? val.replace(_this.propertyName + '.', '') : val;
}));

@@ -378,6 +404,6 @@ }

for (var i = 0; i < this.list.length; i++) {
if (getValue('childColumns', this.list[i]) && getValue('property', this.list[i]) === 'columns') {
setValue('columns', getValue('childColumns', this.list[i]).getProperties(), this.list[i].propCollection);
if (getValue('childColumns', this.list[parseInt(i.toString(), 10)]) && getValue('property', this.list[parseInt(i.toString(), 10)]) === 'columns') {
setValue$1('columns', getValue('childColumns', this.list[parseInt(i.toString(), 10)]).getProperties(), this.list[parseInt(i.toString(), 10)].propCollection);
}
this.list[i].isUpdated = true;
this.list[parseInt(i.toString(), 10)].isUpdated = true;
}

@@ -394,5 +420,3 @@ };

/**
* Angular Component Base Module
*/
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
var ComponentBase = /** @__PURE__ @class */ (function () {

@@ -407,6 +431,5 @@ function ComponentBase() {

}
this.oldProperties[key] = oldValue;
this.changedProperties[key] = newValue;
this.oldProperties["".concat(key)] = oldValue;
this.changedProperties["".concat(key)] = newValue;
this.finalUpdate();
// tslint:disable-next-line:no-any
var changeTime = setTimeout(this.dataBind.bind(this));

@@ -418,6 +441,3 @@ var clearUpdate = function () {

};
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngOnInit = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempOnThis = isTempRef || this;

@@ -438,3 +458,2 @@ tempOnThis.registeredTemplate = {};

tempOnThis.createElement = function (tagName, prop) {
//tslint:disable-next-line
var ele = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);

@@ -472,10 +491,10 @@ if (typeof (prop) === 'undefined') {

for (var i = 0; i < complexTemplates.length; i++) {
var compProp = getValue(complexTemplates[i], tempOnThis);
var compProp = getValue(complexTemplates[parseInt(i.toString(), 10)], tempOnThis);
if (typeof compProp === 'object' && compProp && compProp.elementRef) {
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[i].indexOf('_') !== -1 && complexTemplates[i].indexOf('Ref') === -1) {
setValue(complexTemplates[i] + 'Ref', compProp, tempOnThis);
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[parseInt(i.toString(), 10)].indexOf('_') !== -1 && complexTemplates[parseInt(i.toString(), 10)].indexOf('Ref') === -1) {
setValue$1(complexTemplates[parseInt(i.toString(), 10)] + 'Ref', compProp, tempOnThis);
}
if (tempOnThis.viewContainerRef && !getValue("_viewContainerRef", compProp.elementRef.nativeElement) && !getValue("propName", compProp.elementRef.nativeElement)) {
setValue("_viewContainerRef", tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
setValue("propName", complexTemplates[i].replace("Ref", ''), compProp.elementRef.nativeElement);
if (tempOnThis.viewContainerRef && !getValue('_viewContainerRef', compProp.elementRef.nativeElement) && !getValue('propName', compProp.elementRef.nativeElement)) {
setValue$1('_viewContainerRef', tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
setValue$1('propName', complexTemplates[parseInt(i.toString(), 10)].replace('Ref', ''), compProp.elementRef.nativeElement);
}

@@ -486,3 +505,3 @@ }

complexTemplates = complexTemplates.filter(function (val) {
return /Ref$/i.test(val) && /\_/i.test(val);
return /Ref$/i.test(val) && /_/i.test(val);
});

@@ -493,3 +512,3 @@ for (var _b = 0, complexTemplates_1 = complexTemplates; _b < complexTemplates_1.length; _b++) {

var val = {};
setValue(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
setValue$1(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
tempOnThis.setProperties(val, true);

@@ -499,9 +518,9 @@ }

ComponentBase.prototype.getAngularAttr = function (ele) {
var attributes$$1 = ele.attributes;
var length = attributes$$1.length;
var attributes = ele.attributes;
var length = attributes.length;
var ngAr;
for (var i = 0; i < length; i++) {
/* istanbul ignore next */
if (/_ngcontent/g.test(attributes$$1[i].name)) {
ngAr = attributes$$1[i].name;
if (/_ngcontent/g.test(attributes[parseInt(i.toString(), 10)].name)) {
ngAr = attributes[parseInt(i.toString(), 10)].name;
}

@@ -511,6 +530,3 @@ }

};
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngAfterViewInit = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempAfterViewThis = isTempRef || this;

@@ -542,3 +558,3 @@ var regExp = /ejs-tab|ejs-accordion/g;

var propName = tempName.replace('Ref', '');
setValue(propName.replace('_', '.'), getValue(propName + 'Ref', tempAfterViewThis), tempAfterViewThis);
setValue$1(propName.replace('_', '.'), getValue(propName + 'Ref', tempAfterViewThis), tempAfterViewThis);
}

@@ -563,5 +579,3 @@ // Used setTimeout for template binding

};
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngOnDestroy = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempOnDestroyThis = isTempRef || this;

@@ -577,10 +591,10 @@ /* istanbul ignore else */

var key = _a[_i];
var value = tempOnDestroyThis[key];
var value = tempOnDestroyThis["".concat(key)];
if (value && /object/.test(typeof value) && Object.keys(value).length !== 0) {
if (/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(key)) {
for (var _b = 0, _c = Object.keys(tempOnDestroyThis[key]); _b < _c.length; _b++) {
for (var _b = 0, _c = Object.keys(tempOnDestroyThis["".concat(key)]); _b < _c.length; _b++) {
var propKey = _c[_b];
var propValue = value[propKey];
var propValue = value["".concat(propKey)];
if (propValue && /object/.test(typeof propValue) && Object.keys(propValue).length !== 0 && (propValue.parent || propValue.parentObj)) {
tempOnDestroyThis[key][propKey] = null;
tempOnDestroyThis["".concat(key)]["".concat(propKey)] = null;
}

@@ -591,3 +605,3 @@ }

if (value.parent || value.parentObj) {
tempOnDestroyThis[key] = null;
tempOnDestroyThis["".concat(key)] = null;
}

@@ -601,10 +615,6 @@ }

};
//tslint:disable-next-line
ComponentBase.prototype.clearTemplate = function (templateNames, index) {
clearTemplate(this, templateNames, index);
};
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngAfterContentChecked = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempAfterContentThis = isTempRef || this;

@@ -632,13 +642,13 @@ for (var _i = 0, _a = tempAfterContentThis.tagObjects; _i < _a.length; _i++) {

for (var h = 0; h < tagObject.instance.list.length; h++) {
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName] = [];
tagObject.instance.list["".concat(h)].propCollection[tagObject.instance.propertyName] = [];
var obj = {};
for (var k = 0; k < compDirPropList.length; k++) {
var complexPropName = compDirPropList[k];
obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
var complexPropName = compDirPropList[parseInt(k.toString(), 10)];
obj["".concat(complexPropName)] = tagObject.instance.list["".concat(h)].propCollection["".concat(complexPropName)];
}
var _loop_1 = function (i) {
var tag = tagObject.instance.list[h].tags[i];
var childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list[h]);
var tag = tagObject.instance.list["".concat(h)].tags[parseInt(i.toString(), 10)];
var childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list["".concat(h)]);
if (childObj) {
var innerchildObj = tagObject.instance.list[h]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
var innerchildObj = tagObject.instance.list["".concat(h)]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
// Update the inner child tag objects

@@ -651,5 +661,6 @@ var updateChildTag_1 = function (innerchild) {

if (innerTag) {
var innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[j]);
var innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[parseInt(j.toString(), 10)]);
if (innerchildTag) {
innerchild.list[j].tagObjects.push({ instance: innerchildTag, name: innerTag });
innerchild.list[parseInt(j.toString(), 10)].tagObjects
.push({ instance: innerchildTag, name: innerTag });
innerLevelTag.push(innerchildTag);

@@ -663,15 +674,14 @@ }

for (var l = 0; l < innerLevelTag.length; l++) {
updateChildTag_1(innerLevelTag[l]);
updateChildTag_1(innerLevelTag[parseInt(l.toString(), 10)]);
}
}
};
updateChildTag_1(innerchildObj);
tagObject.instance.list[h].tagObjects.push({ instance: childObj, name: tag });
tagObject.instance.list["".concat(h)].tagObjects.push({ instance: childObj, name: tag });
}
};
for (var i = 0; i < tagObject.instance.list[h].tags.length; i++) {
for (var i = 0; i < tagObject.instance.list["".concat(h)].tags.length; i++) {
_loop_1(i);
}
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
tagObject.instance.list["".concat(h)].propCollection[tagObject.instance.propertyName].push(obj);
}

@@ -693,3 +703,3 @@ }

var curIndex = tagObject.instance.list.indexOf(list);
var curChild = getValue(tagObject.name, tempAfterContentThis)[curIndex];
var curChild = getValue(tagObject.name, tempAfterContentThis)["".concat(curIndex)];
var complexTemplates = Object.keys(curChild);

@@ -703,4 +713,4 @@ complexTemplates = complexTemplates.filter(function (val) {

complexPropName = complexPropName.replace(/Ref/, '');
curChild.properties[complexPropName] = !curChild.properties[complexPropName] ?
curChild.propCollection[complexPropName] : curChild.properties[complexPropName];
curChild.properties["".concat(complexPropName)] = !curChild.properties["".concat(complexPropName)] ?
curChild.propCollection["".concat(complexPropName)] : curChild.properties["".concat(complexPropName)];
}

@@ -735,3 +745,3 @@ }

this.saveChanges(prop, newVal, oldVal);
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
setValue$1(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
getValue(prop + 'Change', this).emit(newVal);

@@ -749,3 +759,3 @@ };

});
setValue(prop + 'Change', new EventEmitter(), this_1);
setValue$1(prop + 'Change', new EventEmitter(), this_1);
};

@@ -761,6 +771,6 @@ var this_1 = this;

if (!isUndefined(eventObj)) {
if (!this.ngBoundedEvents[eventName]) {
this.ngBoundedEvents[eventName] = new Map();
if (!this.ngBoundedEvents["".concat(eventName)]) {
this.ngBoundedEvents["".concat(eventName)] = new Map();
}
this.ngBoundedEvents[eventName].set(handler, eventObj.subscribe(handler));
this.ngBoundedEvents["".concat(eventName)].set(handler, eventObj.subscribe(handler));
}

@@ -771,3 +781,3 @@ };

if (!isUndefined(eventObj)) {
this.ngBoundedEvents[eventName].get(handler).unsubscribe();
this.ngBoundedEvents["".concat(eventName)].get(handler).unsubscribe();
}

@@ -809,3 +819,2 @@ };

FormBase.prototype.localChange = function (e) {
//tslint:disable-next-line
var value = (e.checked === undefined ? e.value : e.checked);

@@ -834,3 +843,2 @@ this.objCheck = isObject(value);

else {
//tslint:disable-next-line
var optionalValue = value;

@@ -858,8 +866,6 @@ this.propagateChange(optionalValue);

this.saveChanges(prop, newVal, oldVal);
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
setValue$1(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
getValue(prop + 'Change', this).emit(newVal);
};
// tslint:disable-next-line:no-any
FormBase.prototype.ngAfterViewInit = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempFormAfterViewThis = isTempRef || this;

@@ -944,2 +950,6 @@ // Used setTimeout for template binding

* Angular Template Compiler
*
* @param {AngularElementType} templateEle - The element representing the template.
* @param {Object} [helper] - Optional helper object.
* @returns {Function} A function that compiles the template.
*/

@@ -953,3 +963,2 @@ function compile(templateEle, helper) {

var pName_1 = templateEle.elementRef.nativeElement.propName;
//tslint:disable-next-line
return function (data, component, propName) {

@@ -970,6 +979,6 @@ var context = { $implicit: data };

propName = (propName && component.registeredTemplate) ? propName : pName_1;
if (typeof viewCollection[propName] === 'undefined') {
viewCollection[propName] = [];
if (typeof viewCollection["".concat(propName)] === 'undefined') {
viewCollection["".concat(propName)] = [];
}
viewCollection[propName].push(viewRef);
viewCollection["".concat(propName)].push(viewRef);
return viewRef.rootNodes;

@@ -981,2 +990,5 @@ };

* Property decorator for angular.
*
* @param {Object} [defaultValue] - Default value for the property.
* @returns {PropertyDecorator} The decorator function.
*/

@@ -994,2 +1006,8 @@ function Template(defaultValue) {

}
/**
* Creates a setter function for a given property key.
*
* @param {string} key - The property key.
* @returns {Function} The setter function.
*/
function setter(key) {

@@ -1000,3 +1018,3 @@ return function (val) {

}
setValue(key + 'Ref', val, this);
setValue$1(key + 'Ref', val, this);
if (typeof val !== 'string') {

@@ -1014,2 +1032,9 @@ val.elementRef.nativeElement._viewContainerRef = this.viewContainerRef;

}
/**
* Returns a getter function for the specified key and default value.
*
* @param {string} key - The key for the property.
* @param {Object} defaultValue - The default value for the property.
* @returns {Function} The getter function.
*/
function getter(key, defaultValue) {

@@ -1021,10 +1046,5 @@ return function () {

}
//tslint:disable-next-line
setTemplateEngine({ compile: compile });
/**
* Index
*/
export { ComplexBase, ArrayBase, ComponentBase, FormBase, applyMixins, ComponentMixins, registerEvents, clearTemplate, setValue$1 as setValue, compile, Template };
export { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, FormBase, Template, applyMixins, clearTemplate, compile, registerEvents, setValue };
//# sourceMappingURL=ej2-angular-base.es5.js.map
/*!
* filename: ej2-angular-base.min.js
* version : 25.2.6
* version : 26.1.35
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

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

*/
this.ej=this.ej||{},this.ej.angularbase=function(e,t,n){"use strict";function i(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(n){(!e.prototype.hasOwnProperty(n)||t.isFormBase&&"constructor"!==n)&&(e.prototype[n]=t.prototype[n])})})}function s(e){return function(t){i(t,e)}}function r(e,t,i){var s={};if(e&&e.length){for(var r=0,a=e;r<a.length;r++){var o=a[r];!0===i?(t.propCollection[o]=new n.EventEmitter(!1),t[o]=t.propCollection[o]):s[o]=new n.EventEmitter(!1)}!0!==i&&t.setProperties(s,!0)}}function a(e,n,i){var s=Object.keys(e.registeredTemplate);if(s.length)for(var r=n&&n.filter(function(e){return!/\./g.test(e)}),a=/tab|accordion|toolbar/.test(e.getModuleName()),o=0,l=r&&r||s;o<l.length;o++){var h=l[o];if(i&&i.length)for(var p=0;p<i.length;p++)if(a)for(v=0;v<e.registeredTemplate[h].length;v++)(c=e.registeredTemplate[h][v])&&c===i[p]&&(c.destroy(),e.registeredTemplate[h].splice(v,1));else for(v=0;v<e.registeredTemplate.template.length;v++){var c=e.registeredTemplate.template[v].rootNodes[0];c===i[p]&&(f=e.registeredTemplate[h])[v].destroy()}else if(e.registeredTemplate[h])for(var u=0,g=e.registeredTemplate[h];u<g.length;u++){var f=g[u];if(!f.destroyed){if(f._view){var d=f._view.renderer.parentNode(f.rootNodes[0]);if(!t.isNullOrUndefined(d))for(var v=0;v<f.rootNodes.length;v++)d.appendChild(f.rootNodes[v])}f.destroy()}}a&&i||delete e.registeredTemplate[h]}for(var m=0,C=e.tagObjects;m<C.length;m++)!function(e){e.instance&&e.instance.clearTemplate(n&&n.filter(function(t){return!!new RegExp(e.name).test(t)}))}(C[m])}function o(e,t,n){for(var i=e.replace(/\[/g,".").replace(/\]/g,"").split("."),s=n||{},r=0;r<i.length;r++){var a=i[r];r+1===i.length?s[a]=void 0===t?{}:t:void 0===s[a]&&(s[a]={}),s=s[a]}return s}function l(e,n){if("string"==typeof e||"function"==typeof e&&e.prototype&&e.prototype.CSPTemplate)return m(e,n);var i=e.elementRef.nativeElement._viewContainerRef,s=e.elementRef.nativeElement.propName;return function(n,r,a){var o={$implicit:n},l=i||r.viewContainerRef,h=l.createEmbeddedView(e,o);/EJS-MENTION|EJS-DROPDOWNLIST/.test(t.getValue("currentInstance.element.nodeName",l))||/E-TABITEM/.test(t.getValue("element.nativeElement.nodeName",l))?h.detectChanges():h.markForCheck();var p=r&&r.registeredTemplate?r.registeredTemplate:t.getValue("currentInstance.registeredTemplate",l);return a=a&&r.registeredTemplate?a:s,void 0===p[a]&&(p[a]=[]),p[a].push(h),h.rootNodes}}function h(e){return function(t,n){var i={set:p(n),get:c(n,e),enumerable:!0,configurable:!0};Object.defineProperty(t,n,i)}}function p(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()))}}function c(e,n){return function(){return t.getValue(e+"Ref",this)||n}}var u=/Ref$/,g=function(){function e(){this.hasChanges=!1,this.propCollection={},this.dataSource={},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],s=t.getValue("child"+i.substring(0,1).toUpperCase()+i.substring(1),this);s&&this.tagObjects.push({instance:s,name:i})}for(var r=Object.keys(this),a=0;a<r.length;a++){var o=t.getValue(r[a],this);"object"==typeof o&&o&&o.elementRef&&(t.getValue(-1!==r[a].indexOf("Ref")?r[a]:r[a]+"Ref",this)||t.setValue(-1!==r[a].indexOf("Ref")?r[a]:r[a]+"Ref",o,this),!t.getValue("viewContainerRef",this)||t.getValue("_viewContainerRef",o.elementRef.nativeElement)||t.getValue("propName",o.elementRef.nativeElement)||(t.setValue("_viewContainerRef",t.getValue("viewContainerRef",this),o.elementRef.nativeElement),t.setValue("propName",r[a].replace("Ref",""),o.elementRef.nativeElement)))}for(var l=0,h=r=(r=Object.keys(this)).filter(function(e){return/Ref$/i.test(e)});l<h.length;l++){var p=h[l].replace("Ref","");t.setValue(p.replace("_","."),t.getValue(p,this),this.propCollection)}var c=Object.keys(this);if(this.directivePropList){for(var u=0;u<this.directivePropList.length;u++){var g=this.directivePropList[u];-1===c.indexOf(g)||!1!==t.getValue(g,this)&&!t.getValue(g,this)||t.setValue(g,t.getValue(g,this),this.propCollection)}this.hasChanges=!0}this.isInitChanges=!0},e.prototype.registerEvents=function(e){r(e,this,!0)},e.prototype.ngOnChanges=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t],s=e[i];this.propCollection[i]=s.currentValue}this.isUpdated=!1,this.hasChanges=!0},e.prototype.clearTemplate=function(e){a(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(){var e=this.hasChanges;if(!t.isNullOrUndefined(this.propCollection[this.property]))for(var n=this.propCollection[this.property],i=Object.keys(n[0]),s=0;s<i.length;s++)if(!t.isNullOrUndefined(this.propCollection[i[s]])){var r=t.getValue(i[s],this),a=this.propCollection[this.property][0][i[s]];t.isNullOrUndefined(r)||this.propCollection[i[s]]===r||a===r||(t.setValue(i[s],r,this.propCollection[this.property][0]),t.setValue(i[s],r,this.propCollection),this.hasChanges=!0,this.isUpdated=!1)}for(var o=0,l=this.tagObjects;o<l.length;o++){var h=l[o];e=e||h.instance.hasChanges}return e||this.hasChanges},e.prototype.ngAfterContentChecked=function(){if(this.hasChanges=this.isChanged(),this.isInitChanges||this.hasChanges)for(var e=Object.keys(this),n=0,i=e=e.filter(function(e){return u.test(e)});n<i.length;n++){var s=i[n].replace("Ref","");t.setValue(s.replace("_","."),t.getValue(s,this),this.propCollection)}},e.prototype.ngAfterViewChecked=function(){this.isUpdated&&(this.hasChanges=!1)},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e.prototype.ngOnDestroy=function(){this.directivePropList=[]},e}(),f=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.dirIndex=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(){var e=this,t=!1,n=0,i=!1,s=this.children.map(function(e){return e});if(this.list.length===this.children.length)for(var r=0;r<this.list.length;r++)this.list[r].propCollection.dataSource&&(this.list[r].dataSource&&this.list[r].propCollection.dataSource!==this.list[r].dataSource&&(this.list[r].propCollection.dataSource=this.list[r].dataSource,this.list[r].hasChanges=!0),"series"!==this.list[r].property&&(i=JSON.stringify(this.list[r].propCollection.dataSource)!==JSON.stringify(s[r].propCollection.dataSource))),i=this.list[r].hasChanges!==s[r].hasChanges;this.hasNewChildren=!(this.list.length===this.children.length&&!i)||null,this.hasNewChildren&&(this.list=this.children.map(function(t){return t.dirIndex=n++,t.property=e.propertyName,t}));for(var a=0,o=this.list;a<o.length;a++){var l=o[a];t=t||l.hasChanges}return!!this.list.length&&t},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();for(var e=0;e<this.list.length;e++)t.getValue("childColumns",this.list[e])&&"columns"===t.getValue("property",this.list[e])&&t.setValue("columns",t.getValue("childColumns",this.list[e]).getProperties(),this.list[e].propCollection),this.list[e].isUpdated=!0},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e.prototype.ngOnDestroy=function(){this.list=[]},e}(),d=function(){function e(){this.isProtectedOnChange=!0,this.isFormInit=!0}return e.prototype.saveChanges=function(e,t,n){if(!this.isProtectedOnChange){this.oldProperties[e]=n,this.changedProperties[e]=t,this.finalUpdate();var i=setTimeout(this.dataBind.bind(this)),s=function(){clearTimeout(i)};this.finalUpdate=s}},e.prototype.ngOnInit=function(e){var n=e||this;n.registeredTemplate={},n.ngBoundedEvents={},n.isAngular=!0,n.isFormInit=!0,e&&(this.tags=e.tags),n.tags=this.tags||[],n.complexTemplate=this.complexTemplate||[],n.tagObjects=[],n.ngAttr=this.getAngularAttr(n.element),n.createElement=function(e,i){var s=n.srenderer?n.srenderer.createElement(e):t.createElement(e);return void 0===i?s:(s.innerHTML=i.innerHTML?i.innerHTML:"",void 0!==i.className&&(s.className=i.className),void 0!==i.id&&(s.id=i.id),void 0!==i.styles&&s.setAttribute("style",i.styles),void 0!==n.ngAttr&&s.setAttribute(n.ngAttr,""),void 0!==i.attrs&&t.attributes(s,i.attrs),s)};for(var i=0,s=n.tags;i<s.length;i++){var r=s[i],a={instance:t.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),n),name:r};n.tagObjects.push(a)}for(var o=Object.keys(n),l=0;l<o.length;l++){var h=t.getValue(o[l],n);"object"==typeof h&&h&&h.elementRef&&("object"==typeof h&&h&&h.elementRef&&-1!==o[l].indexOf("_")&&-1===o[l].indexOf("Ref")&&t.setValue(o[l]+"Ref",h,n),!n.viewContainerRef||t.getValue("_viewContainerRef",h.elementRef.nativeElement)||t.getValue("propName",h.elementRef.nativeElement)||(t.setValue("_viewContainerRef",n.viewContainerRef,h.elementRef.nativeElement),t.setValue("propName",o[l].replace("Ref",""),h.elementRef.nativeElement)))}for(var p=0,c=o=(o=Object.keys(n)).filter(function(e){return/Ref$/i.test(e)&&/\_/i.test(e)});p<c.length;p++){var u=c[p].replace("Ref",""),g={};t.setValue(u.replace("_","."),t.getValue(u,n),g),n.setProperties(g,!0)}},e.prototype.getAngularAttr=function(e){for(var t,n=e.attributes,i=n.length,s=0;s<i;s++)/_ngcontent/g.test(n[s].name)&&(t=n[s].name);return t},e.prototype.ngAfterViewInit=function(e){var n=e||this;/ejs-tab|ejs-accordion/g.test(n.ngEle.nativeElement.outerHTML)&&(n.ngEle.nativeElement.style.visibility="hidden");var i=Object.keys(n);i=i.filter(function(e){return/Ref$/i.test(e)});for(var s="DocumentEditor"===n.getModuleName(),r=0,a=i;r<a.length;r++){var o=a[r].replace("Ref","");t.setValue(o.replace("_","."),t.getValue(o+"Ref",n),n)}var l=function(e){("undefined"!=typeof window&&e.element||e.getModuleName().includes("btn"))&&(e.appendTo(e.element),e.ngEle.nativeElement.style.visibility="")};s?l(n):setTimeout(function(){l(n)})},e.prototype.ngOnDestroy=function(e){var t=e||this;setTimeout(function(){"undefined"!=typeof window&&t.element.classList.contains("e-control")&&(t.destroy(),t.clearTemplate(null),setTimeout(function(){for(var e=0,n=Object.keys(t);e<n.length;e++){var i=n[e],s=t[i];if(s&&/object/.test(typeof s)&&0!==Object.keys(s).length)if(/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(i))for(var r=0,a=Object.keys(t[i]);r<a.length;r++){var o=a[r],l=s[o];l&&/object/.test(typeof l)&&0!==Object.keys(l).length&&(l.parent||l.parentObj)&&(t[i][o]=null)}else(s.parent||s.parentObj)&&(t[i]=null)}}))})},e.prototype.clearTemplate=function(e,t){a(this,e,t)},e.prototype.ngAfterContentChecked=function(e){for(var n=e||this,i=0,s=n.tagObjects;i<s.length;i++){var r=s[i];if(!t.isUndefined(r.instance)&&(r.instance.isInitChanges||r.instance.hasChanges||r.instance.hasNewChildren)){var a={};if(r.instance.isInitChanges){var o=void 0;(m=t.getValue("instance.list",r))&&m.length&&(o=m[0].directivePropList);var l=!0;if(n.getModuleName&&"gantt"===n.getModuleName()&&(l=!1),o&&l&&-1===o.indexOf(r.instance.propertyName))for(var h=Object.keys(r.instance.list[0].propCollection),p=0;p<r.instance.list.length;p++){r.instance.list[p].propCollection[r.instance.propertyName]=[];for(var c={},u=0;u<h.length;u++)c[E=h[u]]=r.instance.list[p].propCollection[E];for(var g=0;g<r.instance.list[p].tags.length;g++)!function(e){var n=r.instance.list[p].tags[e],i=t.getValue("child"+n.substring(0,1).toUpperCase()+n.substring(1),r.instance.list[p]);if(i){var s=r.instance.list[p]["child"+n.substring(0,1).toUpperCase()+n.substring(1)],a=function(e){var n=[];if(e)for(var i=0;i<e.list.length;i++){var s=e.list[0].tags[0];if(s){var r=t.getValue("child"+s.substring(0,1).toUpperCase()+s.substring(1),e.list[i]);r&&(e.list[i].tagObjects.push({instance:r,name:s}),n.push(r))}}if(0!==n.length)for(var o=0;o<n.length;o++)a(n[o])};a(s),r.instance.list[p].tagObjects.push({instance:i,name:n})}}(g);r.instance.list[p].propCollection[r.instance.propertyName].push(c)}a[r.name]=r.instance.getProperties(),n.setProperties(a,r.instance.isInitChanges)}else{var f=!1;(n[r.name].length!==r.instance.list.length||/diagram|DashboardLayout/.test(n.getModuleName()))&&(n[r.name]=r.instance.list,f=!0);for(var d=0,v=r.instance.list;d<v.length;d++){var m=v[d],C=r.instance.list.indexOf(m),y=t.getValue(r.name,n)[C],b=Object.keys(y);if(b=b.filter(function(e){return/Ref$/i.test(e)}),y.properties&&0!==Object.keys(y.properties).length)for(var V=0,O=b;V<O.length;V++){var E=O[V];E=E.replace(/Ref/,""),y.properties[E]=y.properties[E]?y.properties[E]:y.propCollection[E]}t.isUndefined(y)||t.isUndefined(y.setProperties)||(/diagram|DashboardLayout/.test(n.getModuleName())?y.setProperties(m.getProperties(),!0):y.setProperties(m.getProperties())),m.isUpdated=!0}(/grid/.test(n.getModuleName())&&f||/chart/.test(n.getModuleName()))&&(a[r.name]=r.instance.getProperties(),n.setProperties(a,r.instance.isInitChanges))}}}},e.prototype.registerEvents=function(e){r(e,this)},e.prototype.twoWaySetter=function(e,n){var i=t.getValue(n,this.properties);i!==e&&(this.saveChanges(n,e,i),t.setValue(n,t.isNullOrUndefined(e)?null:e,this.properties),t.getValue(n+"Change",this).emit(e))},e.prototype.addTwoWay=function(e){for(var i=this,s=this,r=0,a=e;r<a.length;r++)!function(e){t.getValue(e,s),Object.defineProperty(s,e,{get:function(){return t.getValue(e,i.properties)},set:function(t){return i.twoWaySetter(t,e)}}),t.setValue(e+"Change",new n.EventEmitter,s)}(a[r])},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,i){var s=t.getValue(e,this),r=this.isProtectedOnChange;this.isProtectedOnChange=!1,n&&(n.name=e),t.isUndefined(s)||s.next(n);var a=t.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this);t.isUndefined(a)||a.call(this,n),this.isProtectedOnChange=r,i&&(this.preventChange=this.isPreventChange,i.call(this,n)),this.isPreventChange=!1},e}(),v=function(){function e(){}return e.prototype.propagateChange=function(e){},e.prototype.propagateTouch=function(){},e.prototype.localChange=function(e){var n=void 0===e.checked?e.value:e.checked;if(this.objCheck=t.isObject(n),!0===this.isUpdated&&(this.angularValue=this.oldValue),!0===this.objCheck)this.duplicateValue=JSON.stringify(n),this.duplicateAngularValue=JSON.stringify(this.angularValue),this.duplicateValue!==this.duplicateAngularValue&&void 0!==this.propagateChange&&void 0!==n&&(this.propagateChange(n),this.angularValue=n);else if(n!==this.angularValue&&void 0!==this.propagateChange&&void 0!==n)if(""!==n&&null!==n)this.propagateChange(n),this.angularValue=n;else{var i=n;this.propagateChange(i),this.angularValue=n}this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(e){this.propagateTouch=e},e.prototype.twoWaySetter=function(e,n){var i=this.oldValue||t.getValue(n,this.properties),s=this.inputElement||this.element;(!s||i!==e||this.value!==e||void 0!==s.value&&""!==s.value)&&(this.saveChanges(n,e,i),t.setValue(n,t.isNullOrUndefined(e)?null:e,this.properties),t.getValue(n+"Change",this).emit(e))},e.prototype.ngAfterViewInit=function(e){var t=e||this;if("undefined"!=typeof window){t.getModuleName().includes("dropdowntree")?setTimeout(function(){t.appendTo(t.element)}):t.appendTo(t.element);var n=t.inputElement||t.element;n.addEventListener("focus",t.ngOnFocus.bind(t)),n.addEventListener("blur",t.ngOnBlur.bind(t))}this.isFormInit=!1},e.prototype.setDisabledState=function(e){this.enabled=!e,this.disabled=e},e.prototype.writeValue=function(e){var t=/ejs-radiobutton/g;void 0===this.checked?this.value=e:this.ngEle&&("boolean"==typeof e?t.test(this.ngEle.nativeElement.outerHTML)?this.checked=e===this.value:this.checked=e:this.checked=e===this.value),this.angularValue=e,this.isUpdated=!0,this.preventChange=!this.isFormInit,this.cdr.markForCheck()},e.prototype.ngOnFocus=function(e){!0!==this.skipFromEvent&&this.focus.emit(e),this.cdr.markForCheck()},e.prototype.ngOnBlur=function(e){this.propagateTouch(),!0!==this.skipFromEvent&&this.blur.emit(e),this.cdr.markForCheck()},e.isFormBase=!0,e}(),m=t.getTemplateEngine();return t.setTemplateEngine({compile:l}),e.ComplexBase=g,e.ArrayBase=f,e.ComponentBase=d,e.FormBase=v,e.applyMixins=i,e.ComponentMixins=s,e.registerEvents=r,e.clearTemplate=a,e.setValue=o,e.compile=l,e.Template=h,e}({},ej.base,core),this.ejs=ej;
this.ej=this.ej||{},this.ej.angularbase=function(e,t,n){"use strict";function i(e,t){t.forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(n){(!Object.prototype.hasOwnProperty.call(e.prototype,n)||t.isFormBase&&"constructor"!==n)&&(e.prototype["".concat(n)]=t.prototype["".concat(n)])})})}function r(e){return function(t){i(t,e)}}function s(e,t,i){var r={};if(e&&e.length){for(var s=0,a=e;s<a.length;s++){var o=a[s];!0===i?(t.propCollection["".concat(o)]=new n.EventEmitter(!1),t["".concat(o)]=t.propCollection["".concat(o)]):r["".concat(o)]=new n.EventEmitter(!1)}!0!==i&&t.setProperties(r,!0)}}function a(e,n,i){var r=Object.keys(e.registeredTemplate);if(r.length)for(var s=n&&n.filter(function(e){return!/\./g.test(e)}),a=/tab|accordion|toolbar/.test(e.getModuleName()),o=0,l=s&&s||r;o<l.length;o++){var p=l[o];if(i&&i.length)for(var c=0;c<i.length;c++)if(a)for(v=0;v<e.registeredTemplate["".concat(p)].length;v++)(h=e.registeredTemplate["".concat(p)][parseInt(v.toString(),10)])&&h===i["".concat(c)]&&(h.destroy(),e.registeredTemplate["".concat(p)].splice(v,1));else for(v=0;v<e.registeredTemplate.template.length;v++){var h=e.registeredTemplate.template[parseInt(v.toString(),10)].rootNodes[0];h===i["".concat(c)]&&(f=e.registeredTemplate["".concat(p)])[parseInt(v.toString(),10)].destroy()}else if(e.registeredTemplate["".concat(p)])for(var g=0,u=e.registeredTemplate["".concat(p)];g<u.length;g++){var f=u[g];if(!f.destroyed){if(f._view){var d=f._view.renderer.parentNode(f.rootNodes[0]);if(!t.isNullOrUndefined(d))for(var v=0;v<f.rootNodes.length;v++)d.appendChild(f.rootNodes[parseInt(v.toString(),10)])}f.destroy()}}a&&i||delete e.registeredTemplate["".concat(p)]}for(var m=0,C=e.tagObjects;m<C.length;m++)!function(e){e.instance&&e.instance.clearTemplate(n&&n.filter(function(t){return!!new RegExp(e.name).test(t)}))}(C[m])}function o(e,t,n){for(var i=e.replace(/\[/g,".").replace(/\]/g,"").split("."),r=n||{},s=0;s<i.length;s++){var a=i[parseInt(s.toString(),10)];s+1===i.length?r["".concat(a)]=void 0===t?{}:t:void 0===r["".concat(a)]&&(r["".concat(a)]={}),r=r["".concat(a)]}return r}function l(e,n){if("string"==typeof e||"function"==typeof e&&e.prototype&&e.prototype.CSPTemplate)return m(e,n);var i=e.elementRef.nativeElement._viewContainerRef,r=e.elementRef.nativeElement.propName;return function(n,s,a){var o={$implicit:n},l=i||s.viewContainerRef,p=l.createEmbeddedView(e,o);/EJS-MENTION|EJS-DROPDOWNLIST/.test(t.getValue("currentInstance.element.nodeName",l))||/E-TABITEM/.test(t.getValue("element.nativeElement.nodeName",l))?p.detectChanges():p.markForCheck();var c=s&&s.registeredTemplate?s.registeredTemplate:t.getValue("currentInstance.registeredTemplate",l);return a=a&&s.registeredTemplate?a:r,void 0===c["".concat(a)]&&(c["".concat(a)]=[]),c["".concat(a)].push(p),p.rootNodes}}function p(e){return function(t,n){var i={set:c(n),get:h(n,e),enumerable:!0,configurable:!0};Object.defineProperty(t,n,i)}}function c(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()))}}function h(e,n){return function(){return t.getValue(e+"Ref",this)||n}}var g=/Ref$/,u=function(){function e(){this.hasChanges=!1,this.propCollection={},this.dataSource={},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 s=Object.keys(this),a=0;a<s.length;a++){var o=t.getValue(s[parseInt(a.toString(),10)],this);"object"==typeof o&&o&&o.elementRef&&(t.getValue(-1!==s[parseInt(a.toString(),10)].indexOf("Ref")?s[parseInt(a.toString(),10)]:s[parseInt(a.toString(),10)]+"Ref",this)||t.setValue(-1!==s[parseInt(a.toString(),10)].indexOf("Ref")?s[parseInt(a.toString(),10)]:s[parseInt(a.toString(),10)]+"Ref",o,this),!t.getValue("viewContainerRef",this)||t.getValue("_viewContainerRef",o.elementRef.nativeElement)||t.getValue("propName",o.elementRef.nativeElement)||(t.setValue("_viewContainerRef",t.getValue("viewContainerRef",this),o.elementRef.nativeElement),t.setValue("propName",s[parseInt(a.toString(),10)].replace("Ref",""),o.elementRef.nativeElement)))}for(var l=0,p=s=(s=Object.keys(this)).filter(function(e){return/Ref$/i.test(e)});l<p.length;l++){var c=p[l].replace("Ref","");t.setValue(c.replace("_","."),t.getValue(c,this),this.propCollection)}var h=Object.keys(this);if(this.directivePropList){for(var g=0;g<this.directivePropList.length;g++){var u=this.directivePropList[parseInt(g.toString(),10)];-1===h.indexOf(u)||!1!==t.getValue(u,this)&&!t.getValue(u,this)||t.setValue(u,t.getValue(u,this),this.propCollection)}this.hasChanges=!0}this.isInitChanges=!0},e.prototype.registerEvents=function(e){s(e,this,!0)},e.prototype.ngOnChanges=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t],r=e["".concat(i)];this.propCollection["".concat(i)]=r.currentValue}this.isUpdated=!1,this.hasChanges=!0},e.prototype.clearTemplate=function(e){a(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(){var e=this.hasChanges;if(!t.isNullOrUndefined(this.propCollection[this.property]))for(var n=this.propCollection[this.property],i=Object.keys(n[0]),r=0;r<i.length;r++)if(!t.isNullOrUndefined(this.propCollection[i[parseInt(r.toString(),10)]])){var s=t.getValue(i[parseInt(r.toString(),10)],this),a=this.propCollection[this.property][0][i[parseInt(r.toString(),10)]];t.isNullOrUndefined(s)||this.propCollection[i[parseInt(r.toString(),10)]]===s||a===s||(t.setValue(i[parseInt(r.toString(),10)],s,this.propCollection[this.property][0]),t.setValue(i[parseInt(r.toString(),10)],s,this.propCollection),this.hasChanges=!0,this.isUpdated=!1)}for(var o=0,l=this.tagObjects;o<l.length;o++){var p=l[o];e=e||p.instance.hasChanges}return e||this.hasChanges},e.prototype.ngAfterContentChecked=function(){if(this.hasChanges=this.isChanged(),this.isInitChanges||this.hasChanges)for(var e=Object.keys(this),n=0,i=e=e.filter(function(e){return g.test(e)});n<i.length;n++){var r=i[n].replace("Ref","");t.setValue(r.replace("_","."),t.getValue(r,this),this.propCollection)}},e.prototype.ngAfterViewChecked=function(){this.isUpdated&&(this.hasChanges=!1)},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e.prototype.ngOnDestroy=function(){this.directivePropList=[]},e}(),f=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.dirIndex=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(){var e=this,t=!1,n=0,i=!1,r=this.children.map(function(e){return e});if(this.list.length===this.children.length)for(var s=0;s<this.list.length;s++)this.list[parseInt(s.toString(),10)].propCollection.dataSource&&(this.list[parseInt(s.toString(),10)].dataSource&&this.list[parseInt(s.toString(),10)].propCollection.dataSource!==this.list[parseInt(s.toString(),10)].dataSource&&(this.list[parseInt(s.toString(),10)].propCollection.dataSource=this.list[parseInt(s.toString(),10)].dataSource,this.list[parseInt(s.toString(),10)].hasChanges=!0),"series"!==this.list[parseInt(s.toString(),10)].property&&(i=JSON.stringify(this.list[parseInt(s.toString(),10)].propCollection.dataSource)!==JSON.stringify(r[parseInt(s.toString(),10)].propCollection.dataSource))),i=this.list[parseInt(s.toString(),10)].hasChanges!==r[parseInt(s.toString(),10)].hasChanges;this.hasNewChildren=!(this.list.length===this.children.length&&!i)||null,this.hasNewChildren&&(this.list=this.children.map(function(t){return t.dirIndex=n++,t.property=e.propertyName,t}));for(var a=0,o=this.list;a<o.length;a++){var l=o[a];t=t||l.hasChanges}return!!this.list.length&&t},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();for(var e=0;e<this.list.length;e++)t.getValue("childColumns",this.list[parseInt(e.toString(),10)])&&"columns"===t.getValue("property",this.list[parseInt(e.toString(),10)])&&t.setValue("columns",t.getValue("childColumns",this.list[parseInt(e.toString(),10)]).getProperties(),this.list[parseInt(e.toString(),10)].propCollection),this.list[parseInt(e.toString(),10)].isUpdated=!0},e.prototype.ngAfterViewInit=function(){this.isInitChanges=!1},e.prototype.ngOnDestroy=function(){this.list=[]},e}(),d=function(){function e(){this.isProtectedOnChange=!0,this.isFormInit=!0}return e.prototype.saveChanges=function(e,t,n){if(!this.isProtectedOnChange){this.oldProperties["".concat(e)]=n,this.changedProperties["".concat(e)]=t,this.finalUpdate();var i=setTimeout(this.dataBind.bind(this)),r=function(){clearTimeout(i)};this.finalUpdate=r}},e.prototype.ngOnInit=function(e){var n=e||this;n.registeredTemplate={},n.ngBoundedEvents={},n.isAngular=!0,n.isFormInit=!0,e&&(this.tags=e.tags),n.tags=this.tags||[],n.complexTemplate=this.complexTemplate||[],n.tagObjects=[],n.ngAttr=this.getAngularAttr(n.element),n.createElement=function(e,i){var r=n.srenderer?n.srenderer.createElement(e):t.createElement(e);return void 0===i?r:(r.innerHTML=i.innerHTML?i.innerHTML:"",void 0!==i.className&&(r.className=i.className),void 0!==i.id&&(r.id=i.id),void 0!==i.styles&&r.setAttribute("style",i.styles),void 0!==n.ngAttr&&r.setAttribute(n.ngAttr,""),void 0!==i.attrs&&t.attributes(r,i.attrs),r)};for(var i=0,r=n.tags;i<r.length;i++){var s=r[i],a={instance:t.getValue("child"+s.substring(0,1).toUpperCase()+s.substring(1),n),name:s};n.tagObjects.push(a)}for(var o=Object.keys(n),l=0;l<o.length;l++){var p=t.getValue(o[parseInt(l.toString(),10)],n);"object"==typeof p&&p&&p.elementRef&&("object"==typeof p&&p&&p.elementRef&&-1!==o[parseInt(l.toString(),10)].indexOf("_")&&-1===o[parseInt(l.toString(),10)].indexOf("Ref")&&t.setValue(o[parseInt(l.toString(),10)]+"Ref",p,n),!n.viewContainerRef||t.getValue("_viewContainerRef",p.elementRef.nativeElement)||t.getValue("propName",p.elementRef.nativeElement)||(t.setValue("_viewContainerRef",n.viewContainerRef,p.elementRef.nativeElement),t.setValue("propName",o[parseInt(l.toString(),10)].replace("Ref",""),p.elementRef.nativeElement)))}for(var c=0,h=o=(o=Object.keys(n)).filter(function(e){return/Ref$/i.test(e)&&/_/i.test(e)});c<h.length;c++){var g=h[c].replace("Ref",""),u={};t.setValue(g.replace("_","."),t.getValue(g,n),u),n.setProperties(u,!0)}},e.prototype.getAngularAttr=function(e){for(var t,n=e.attributes,i=n.length,r=0;r<i;r++)/_ngcontent/g.test(n[parseInt(r.toString(),10)].name)&&(t=n[parseInt(r.toString(),10)].name);return t},e.prototype.ngAfterViewInit=function(e){var n=e||this;/ejs-tab|ejs-accordion/g.test(n.ngEle.nativeElement.outerHTML)&&(n.ngEle.nativeElement.style.visibility="hidden");var i=Object.keys(n);i=i.filter(function(e){return/Ref$/i.test(e)});for(var r="DocumentEditor"===n.getModuleName(),s=0,a=i;s<a.length;s++){var o=a[s].replace("Ref","");t.setValue(o.replace("_","."),t.getValue(o+"Ref",n),n)}var l=function(e){("undefined"!=typeof window&&e.element||e.getModuleName().includes("btn"))&&(e.appendTo(e.element),e.ngEle.nativeElement.style.visibility="")};r?l(n):setTimeout(function(){l(n)})},e.prototype.ngOnDestroy=function(e){var t=e||this;setTimeout(function(){"undefined"!=typeof window&&t.element.classList.contains("e-control")&&(t.destroy(),t.clearTemplate(null),setTimeout(function(){for(var e=0,n=Object.keys(t);e<n.length;e++){var i=n[e],r=t["".concat(i)];if(r&&/object/.test(typeof r)&&0!==Object.keys(r).length)if(/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(i))for(var s=0,a=Object.keys(t["".concat(i)]);s<a.length;s++){var o=a[s],l=r["".concat(o)];l&&/object/.test(typeof l)&&0!==Object.keys(l).length&&(l.parent||l.parentObj)&&(t["".concat(i)]["".concat(o)]=null)}else(r.parent||r.parentObj)&&(t["".concat(i)]=null)}}))})},e.prototype.clearTemplate=function(e,t){a(this,e,t)},e.prototype.ngAfterContentChecked=function(e){for(var n=e||this,i=0,r=n.tagObjects;i<r.length;i++){var s=r[i];if(!t.isUndefined(s.instance)&&(s.instance.isInitChanges||s.instance.hasChanges||s.instance.hasNewChildren)){var a={};if(s.instance.isInitChanges){var o=void 0;(C=t.getValue("instance.list",s))&&C.length&&(o=C[0].directivePropList);var l=!0;if(n.getModuleName&&"gantt"===n.getModuleName()&&(l=!1),o&&l&&-1===o.indexOf(s.instance.propertyName))for(var p=Object.keys(s.instance.list[0].propCollection),c=0;c<s.instance.list.length;c++){s.instance.list["".concat(c)].propCollection[s.instance.propertyName]=[];for(var h={},g=0;g<p.length;g++){var u=p[parseInt(g.toString(),10)];h["".concat(u)]=s.instance.list["".concat(c)].propCollection["".concat(u)]}for(var f=0;f<s.instance.list["".concat(c)].tags.length;f++)!function(e){var n=s.instance.list["".concat(c)].tags[parseInt(e.toString(),10)],i=t.getValue("child"+n.substring(0,1).toUpperCase()+n.substring(1),s.instance.list["".concat(c)]);if(i){var r=s.instance.list["".concat(c)]["child"+n.substring(0,1).toUpperCase()+n.substring(1)],a=function(e){var n=[];if(e)for(var i=0;i<e.list.length;i++){var r=e.list[0].tags[0];if(r){var s=t.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),e.list[parseInt(i.toString(),10)]);s&&(e.list[parseInt(i.toString(),10)].tagObjects.push({instance:s,name:r}),n.push(s))}}if(0!==n.length)for(var o=0;o<n.length;o++)a(n[parseInt(o.toString(),10)])};a(r),s.instance.list["".concat(c)].tagObjects.push({instance:i,name:n})}}(f);s.instance.list["".concat(c)].propCollection[s.instance.propertyName].push(h)}a[s.name]=s.instance.getProperties(),n.setProperties(a,s.instance.isInitChanges)}else{var d=!1;(n[s.name].length!==s.instance.list.length||/diagram|DashboardLayout/.test(n.getModuleName()))&&(n[s.name]=s.instance.list,d=!0);for(var v=0,m=s.instance.list;v<m.length;v++){var C=m[v],y=s.instance.list.indexOf(C),b=t.getValue(s.name,n)["".concat(y)],V=Object.keys(b);if(V=V.filter(function(e){return/Ref$/i.test(e)}),b.properties&&0!==Object.keys(b.properties).length)for(var I=0,O=V;I<O.length;I++)u=(u=O[I]).replace(/Ref/,""),b.properties["".concat(u)]=b.properties["".concat(u)]?b.properties["".concat(u)]:b.propCollection["".concat(u)];t.isUndefined(b)||t.isUndefined(b.setProperties)||(/diagram|DashboardLayout/.test(n.getModuleName())?b.setProperties(C.getProperties(),!0):b.setProperties(C.getProperties())),C.isUpdated=!0}(/grid/.test(n.getModuleName())&&d||/chart/.test(n.getModuleName()))&&(a[s.name]=s.instance.getProperties(),n.setProperties(a,s.instance.isInitChanges))}}}},e.prototype.registerEvents=function(e){s(e,this)},e.prototype.twoWaySetter=function(e,n){var i=t.getValue(n,this.properties);i!==e&&(this.saveChanges(n,e,i),t.setValue(n,t.isNullOrUndefined(e)?null:e,this.properties),t.getValue(n+"Change",this).emit(e))},e.prototype.addTwoWay=function(e){for(var i=this,r=this,s=0,a=e;s<a.length;s++)!function(e){t.getValue(e,r),Object.defineProperty(r,e,{get:function(){return t.getValue(e,i.properties)},set:function(t){return i.twoWaySetter(t,e)}}),t.setValue(e+"Change",new n.EventEmitter,r)}(a[s])},e.prototype.addEventListener=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||(this.ngBoundedEvents["".concat(e)]||(this.ngBoundedEvents["".concat(e)]=new Map),this.ngBoundedEvents["".concat(e)].set(n,i.subscribe(n)))},e.prototype.removeEventListener=function(e,n){var i=t.getValue(e,this);t.isUndefined(i)||this.ngBoundedEvents["".concat(e)].get(n).unsubscribe()},e.prototype.trigger=function(e,n,i){var r=t.getValue(e,this),s=this.isProtectedOnChange;this.isProtectedOnChange=!1,n&&(n.name=e),t.isUndefined(r)||r.next(n);var a=t.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this);t.isUndefined(a)||a.call(this,n),this.isProtectedOnChange=s,i&&(this.preventChange=this.isPreventChange,i.call(this,n)),this.isPreventChange=!1},e}(),v=function(){function e(){}return e.prototype.propagateChange=function(e){},e.prototype.propagateTouch=function(){},e.prototype.localChange=function(e){var n=void 0===e.checked?e.value:e.checked;if(this.objCheck=t.isObject(n),!0===this.isUpdated&&(this.angularValue=this.oldValue),!0===this.objCheck)this.duplicateValue=JSON.stringify(n),this.duplicateAngularValue=JSON.stringify(this.angularValue),this.duplicateValue!==this.duplicateAngularValue&&void 0!==this.propagateChange&&void 0!==n&&(this.propagateChange(n),this.angularValue=n);else if(n!==this.angularValue&&void 0!==this.propagateChange&&void 0!==n)if(""!==n&&null!==n)this.propagateChange(n),this.angularValue=n;else{var i=n;this.propagateChange(i),this.angularValue=n}this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(e){this.propagateTouch=e},e.prototype.twoWaySetter=function(e,n){var i=this.oldValue||t.getValue(n,this.properties),r=this.inputElement||this.element;(!r||i!==e||this.value!==e||void 0!==r.value&&""!==r.value)&&(this.saveChanges(n,e,i),t.setValue(n,t.isNullOrUndefined(e)?null:e,this.properties),t.getValue(n+"Change",this).emit(e))},e.prototype.ngAfterViewInit=function(e){var t=e||this;if("undefined"!=typeof window){t.getModuleName().includes("dropdowntree")?setTimeout(function(){t.appendTo(t.element)}):t.appendTo(t.element);var n=t.inputElement||t.element;n.addEventListener("focus",t.ngOnFocus.bind(t)),n.addEventListener("blur",t.ngOnBlur.bind(t))}this.isFormInit=!1},e.prototype.setDisabledState=function(e){this.enabled=!e,this.disabled=e},e.prototype.writeValue=function(e){var t=/ejs-radiobutton/g;void 0===this.checked?this.value=e:this.ngEle&&("boolean"==typeof e?t.test(this.ngEle.nativeElement.outerHTML)?this.checked=e===this.value:this.checked=e:this.checked=e===this.value),this.angularValue=e,this.isUpdated=!0,this.preventChange=!this.isFormInit,this.cdr.markForCheck()},e.prototype.ngOnFocus=function(e){!0!==this.skipFromEvent&&this.focus.emit(e),this.cdr.markForCheck()},e.prototype.ngOnBlur=function(e){this.propagateTouch(),!0!==this.skipFromEvent&&this.blur.emit(e),this.cdr.markForCheck()},e.isFormBase=!0,e}(),m=t.getTemplateEngine();return t.setTemplateEngine({compile:l}),e.ArrayBase=f,e.ComplexBase=u,e.ComponentBase=d,e.ComponentMixins=r,e.FormBase=v,e.Template=p,e.applyMixins=i,e.clearTemplate=a,e.compile=l,e.registerEvents=s,e.setValue=o,e}({},ej.base,core),this.ejs=ej;
//# sourceMappingURL=ej2-angular-base.min.js.map
/*!
* filename: index.d.ts
* version : 25.2.6
* version : 26.1.35
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

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

{
"_from": "@syncfusion/ej2-angular-base@*",
"_id": "@syncfusion/ej2-angular-base@25.2.4",
"_id": "@syncfusion/ej2-angular-base@19.17.0",
"_inBundle": false,
"_integrity": "sha512-gQA4/DIAx3i53/fPYlNRsZ9um79FZg63DaDtjpeTFczHKvq/g+RqxUE89PdTMEqaESlGZZbRE+B0LJtj+8Vjrw==",
"_integrity": "sha512-pY7zsL4BtFYm0ff7gnFK518VCqieSj1zO5sYRBfjw/ZEDpH1mhWBzR6yqrb8gor1EyBYTfwaOVI0rb/dZTefYw==",
"_location": "/@syncfusion/ej2-angular-base",

@@ -23,3 +23,6 @@ "_phantomChildren": {},

"/@syncfusion/ej2-angular-buttons",
"/@syncfusion/ej2-angular-calendars",
"/@syncfusion/ej2-angular-charts",
"/@syncfusion/ej2-angular-circulargauge",
"/@syncfusion/ej2-angular-diagrams",
"/@syncfusion/ej2-angular-documenteditor",

@@ -30,16 +33,30 @@ "/@syncfusion/ej2-angular-dropdowns",

"/@syncfusion/ej2-angular-grids",
"/@syncfusion/ej2-angular-heatmap",
"/@syncfusion/ej2-angular-image-editor",
"/@syncfusion/ej2-angular-inplace-editor",
"/@syncfusion/ej2-angular-inputs",
"/@syncfusion/ej2-angular-kanban",
"/@syncfusion/ej2-angular-layouts",
"/@syncfusion/ej2-angular-lineargauge",
"/@syncfusion/ej2-angular-lists",
"/@syncfusion/ej2-angular-maps",
"/@syncfusion/ej2-angular-navigations",
"/@syncfusion/ej2-angular-notifications",
"/@syncfusion/ej2-angular-pdfviewer",
"/@syncfusion/ej2-angular-pivotview",
"/@syncfusion/ej2-angular-popups",
"/@syncfusion/ej2-angular-progressbar",
"/@syncfusion/ej2-angular-querybuilder",
"/@syncfusion/ej2-angular-ribbon",
"/@syncfusion/ej2-angular-richtexteditor",
"/@syncfusion/ej2-angular-schedule",
"/@syncfusion/ej2-angular-treegrid"
"/@syncfusion/ej2-angular-splitbuttons",
"/@syncfusion/ej2-angular-spreadsheet",
"/@syncfusion/ej2-angular-treegrid",
"/@syncfusion/ej2-angular-treemap"
],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-angular-base/-/ej2-angular-base-25.2.4.tgz",
"_shasum": "10488c9fb8185dbd599e0a492bc4815452ae809f",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-angular-base/-/ej2-angular-base-19.17.0.tgz",
"_shasum": "480466679350a029d238501d883963c4e55d80b4",
"_spec": "@syncfusion/ej2-angular-base@*",
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
"author": {

@@ -53,4 +70,4 @@ "name": "Syncfusion Inc."

"dependencies": {
"@syncfusion/ej2-base": "~25.2.5",
"@syncfusion/ej2-icons": "~25.2.3"
"@syncfusion/ej2-base": "~26.1.35",
"@syncfusion/ej2-icons": "~26.1.35"
},

@@ -66,2 +83,3 @@ "deprecated": false,

"ej2-angular-base",
"Angular DevKit",
"angular",

@@ -83,4 +101,4 @@ "ng"

"typings": "index.d.ts",
"version": "25.2.6",
"version": "26.1.35",
"sideEffects": true
}

@@ -0,3 +1,6 @@

import { workspaces } from '@angular-devkit/core';
import { Rule } from "@angular-devkit/schematics";
import { Schema } from "@schematics/angular/component/schema";
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
export type ProjectDefinition = workspaces.ProjectDefinition;
export interface sampleDetails {

@@ -4,0 +7,0 @@ componentName: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.componentBuilder = void 0;
const core_1 = require("@angular-devkit/core");

@@ -12,4 +13,4 @@ const schematics_1 = require("@angular-devkit/schematics");

return (host, context) => {
const workspace = helpers_1.getWorkspace(host);
const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
const workspace = (0, helpers_1.getWorkspace)(host);
const project = (0, get_project_1.getProjectFromWorkspace)(workspace, options.project);
options.selector = options.selector || core_1.strings.dasherize(options.name);

@@ -19,14 +20,14 @@ if (options.path === undefined) {

}
const parsedPath = helpers_2.parseName(options.path, options.name);
const parsedPath = (0, helpers_2.parseName)(options.path, options.name);
options.name = parsedPath.name;
options.path = parsedPath.path;
helpers_2.validateName(options.name);
helpers_2.validateHtmlSelector(options.selector);
(0, helpers_2.validateName)(options.name);
(0, helpers_2.validateHtmlSelector)(options.selector);
options.selector = options.selector || buildSelector(options, project.prefix);
options.module = helpers_2.findModuleFromOptions(host, options);
const templateSource = schematics_1.apply(schematics_1.url('./samples'), [
schematics_1.template(Object.assign({}, core_1.strings, { 'if-flat': (s) => options.flat ? '' : s }, options)),
schematics_1.move(null, parsedPath.path)
options.module = (0, helpers_2.findModuleFromOptions)(host, options);
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./samples'), [
(0, schematics_1.template)(Object.assign(Object.assign(Object.assign({}, core_1.strings), { 'if-flat': (s) => options.flat ? '' : s }), options)),
(0, schematics_1.move)(null, parsedPath.path)
]);
const parsedImagePath = helpers_2.parseName(`/${project.root}/src/assets/${sampleDetails.componentName}`, `${sampleDetails.sampleName}`);
const parsedImagePath = (0, helpers_2.parseName)(`/${project.root}/src/assets/${sampleDetails.componentName}`, `${sampleDetails.sampleName}`);
let imagesExists = host.getDir(`${parsedImagePath.path}/${parsedImagePath.name}`).subfiles.length ?

@@ -37,11 +38,11 @@ true : false, optionsClone = Object.assign({}, options), copyImages;

if (!imagesExists)
copyImages = schematics_1.apply(schematics_1.url('./images'), [
schematics_1.template(Object.assign({}, core_1.strings, optionsClone)),
schematics_1.move(null, parsedImagePath.path)
copyImages = (0, schematics_1.apply)((0, schematics_1.url)('./images'), [
(0, schematics_1.template)(Object.assign({}, core_1.strings, optionsClone)),
(0, schematics_1.move)(null, parsedImagePath.path)
]);
return schematics_1.chain([
schematics_1.branchAndMerge(schematics_1.chain([
return (0, schematics_1.chain)([
(0, schematics_1.branchAndMerge)((0, schematics_1.chain)([
addModuleToRoot(options, sampleDetails),
schematics_1.mergeWith(templateSource),
imagesExists ? schematics_1.noop() : schematics_1.mergeWith(copyImages),
(0, schematics_1.mergeWith)(templateSource),
imagesExists ? (0, schematics_1.noop)() : (0, schematics_1.mergeWith)(copyImages),
]))

@@ -78,5 +79,5 @@ ])(host, context);

+ '.component';
const relativePath = helpers_2.buildRelativePath(modulePath, componentPath);
const relativePath = (0, helpers_2.buildRelativePath)(modulePath, componentPath);
const classifiedName = core_1.strings.classify(`${options.name}Component`);
const declarationChanges = helpers_2.addDeclarationToModule(source, modulePath, classifiedName, relativePath);
const declarationChanges = (0, helpers_2.addDeclarationToModule)(source, modulePath, classifiedName, relativePath);
const declarationRecorder = host.beginUpdate(modulePath);

@@ -89,9 +90,9 @@ for (const change of declarationChanges) {

host.commitUpdate(declarationRecorder);
ast_1.addModuleImportToModule(host, modulePath, sampleDetails.libModules, sampleDetails.packageName);
(0, ast_1.addModuleImportToModule)(host, modulePath, sampleDetails.libModules, sampleDetails.packageName);
const providers = sampleDetails.diModules ? sampleDetails.diModules.split(',') : null;
if (providers)
providers.forEach((provider) => {
if (!helpers_2.isImported(source, provider.trim(), sampleDetails.packageName)) {
if (!(0, helpers_2.isImported)(source, provider.trim(), sampleDetails.packageName)) {
source = readIntoSourceFile(host, modulePath);
const providerChanges = helpers_2.addProviderToModule(source, modulePath, provider, sampleDetails.packageName);
const providerChanges = (0, helpers_2.addProviderToModule)(source, modulePath, provider, sampleDetails.packageName);
const providerRecorder = host.beginUpdate(modulePath);

@@ -98,0 +99,0 @@ for (const change of providerChanges) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.emitSampleFiles = void 0;
const fsExtra = require("fs-extra");

@@ -4,0 +5,0 @@ const glob = require("glob");

export * from './ng-add/index';
export * from './ng-add/schema';
export * from './utils/package';
export * from './utils/get-project';
export * from './utils/ast';
export * from './ng-add/theme';
export * from './generators/component-builder';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./ng-add/index"));
__export(require("./utils/package"));
__export(require("./utils/get-project"));
__export(require("./utils/ast"));
__export(require("./ng-add/theme"));
__export(require("./generators/component-builder"));
__exportStar(require("./ng-add/index"), exports);
__exportStar(require("./ng-add/schema"), exports);
__exportStar(require("./utils/package"), exports);
//export * from './utils/get-project';
// export * from './utils/ast';
// export * from './ng-add/theme';
// export * from './generators/component-builder';
import { Rule } from '@angular-devkit/schematics';
import { workspaces } from '@angular-devkit/core';
import { LibOptionsSchema, OptionsSchema } from './schema';
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
export type ProjectDefinition = workspaces.ProjectDefinition;
export declare function install(options: OptionsSchema, libOptions: LibOptionsSchema): Rule;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.install = void 0;
const core_1 = require("@angular-devkit/core");

@@ -13,3 +14,3 @@ const schematics_1 = require("@angular-devkit/schematics");

return (host) => {
package_1.addEJ2PackageToPackageJson(host, 'dependencies', libOptions.pkgName, libOptions.pkgVer);
(0, package_1.addEJ2PackageToPackageJson)(host, 'dependencies', libOptions.pkgName, libOptions.pkgVer);
return host;

@@ -32,8 +33,8 @@ };

const theme = options.theme || 'material';
return schematics_1.chain([
options && options.skipPackageJson ? schematics_1.noop() : addEJ2ToPackageJson(libOptions),
theme_1.addEJ2ThemeToPackageJson(options, libOptions),
(options && !options.skipPackageJson) ? installNodePackages() : schematics_1.noop(),
return (0, schematics_1.chain)([
options && options.skipPackageJson ? (0, schematics_1.noop)() : addEJ2ToPackageJson(libOptions),
(0, theme_1.addEJ2ThemeToPackageJson)(options, libOptions),
(options && !options.skipPackageJson) ? installNodePackages() : (0, schematics_1.noop)(),
addEJ2PackageRootConfig(options, libOptions),
theme_1.addEJ2Theme(options, theme)
(0, theme_1.addEJ2Theme)(options, theme)
]);

@@ -49,3 +50,3 @@ }

if (host.exists(options.modulePath.toString())) {
ast_1.addModuleImportToModule(host, core_1.normalize(options.modulePath.toString()), validModules, libOptions.pkgName);
(0, ast_1.addModuleImportToModule)(host, (0, core_1.normalize)(options.modulePath.toString()), validModules, libOptions.pkgName);
}

@@ -63,4 +64,5 @@ else {

return (host) => {
const workspace = helpers_1.getWorkspace(host);
const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
const workspace = (0, helpers_1.getWorkspace)(host);
const project = (0, get_project_1.getProjectFromWorkspace)(workspace, options.project);
const architect = project.architect;
let validModules;

@@ -85,9 +87,9 @@ let availableModules = libOptions.moduleName.replace(/Module/g, '').trim();

}
if (project.architect.build.options.main) {
if (architect.build.options.main) {
(options.modulePath !== undefined && options.modulePath !== "") ? addModuleImportToCustomModule(host, options, validModules, libOptions) :
ast_1.addModuleImportToRootModule(host, validModules, libOptions.pkgName, project);
(0, ast_1.addModuleImportToModule)(host, validModules, libOptions.pkgName, options.project);
}
else {
const modulePath = '/src/app/app.component.ts';
ast_1.addModuleImportToModule(host, modulePath, validModules, libOptions.pkgName);
(0, ast_1.addModuleImportToModule)(host, modulePath, validModules, libOptions.pkgName);
}

@@ -94,0 +96,0 @@ return host;

import { Tree } from "@angular-devkit/schematics";
import { workspaces } from '@angular-devkit/core';
import { LibOptionsSchema, OptionsSchema } from "../ng-add/schema";
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
export type ProjectDefinition = workspaces.ProjectDefinition;
export declare function addEJ2ThemeToPackageJson(options: OptionsSchema, libOptions: LibOptionsSchema): (host: Tree) => Tree;
export declare function addEJ2Theme(options: OptionsSchema, theme: string): (host: Tree) => Tree;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addEJ2Theme = exports.addEJ2ThemeToPackageJson = void 0;
const change_1 = require("@schematics/angular/utility/change");

@@ -14,3 +15,3 @@ const helpers_1 = require("../utils/helpers/helpers");

return (host) => {
package_1.addEJ2PackageToPackageJson(host, 'dependencies', `@syncfusion/ej2-${options.theme || 'material'}-theme`, themeVer);
(0, package_1.addEJ2PackageToPackageJson)(host, 'dependencies', `@syncfusion/ej2-${options.theme || 'material'}-theme`, themeVer);
return host;

@@ -27,5 +28,6 @@ };

const strippedThemePath = `./node_modules/@syncfusion/ej2-${theme}-theme/styles/${theme}.css`;
const workspace = helpers_1.getWorkspace(host);
const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
const stylesPath = project_style_file_1.getProjectStyleFile(project);
const workspace = (0, helpers_1.getWorkspace)(host);
const project = (0, get_project_1.getProjectFromWorkspace)(workspace, options.project);
const architect = project.architect;
const stylesPath = (0, project_style_file_1.getProjectStyleFile)(workspace);
const stylesBuffer = host.read(stylesPath);

@@ -35,3 +37,3 @@ themePath += stylesPath.includes("sass") ? `\n` : `;\n`;

// where to generate anything if the project is not using the default config for build and test.
project_style_file_1.assertDefaultBuildersConfigured(project);
(0, project_style_file_1.assertDefaultBuildersConfigured)(project);
options.skipPackageJson ? console.log('\x1b[33m%s\x1b[0m', `WARNING: You skipped the dependency installation. ` +

@@ -53,5 +55,5 @@ `You must manually install the \'@syncfusion/ej2-${theme}-theme\' package. ` +

}
project.architect ? [
addStyleToTarget(project.architect['build'], host, strippedThemePath, workspace),
addStyleToTarget(project.architect['test'], host, strippedThemePath, workspace)
architect ? [
addStyleToTarget(architect['build'], host, strippedThemePath, workspace),
addStyleToTarget(architect['test'], host, strippedThemePath, workspace)
] :

@@ -58,0 +60,0 @@ console.log('\x1b[31m%s\x1b[0m', `The project does not have an architect configuration. `

@@ -11,3 +11,5 @@ /**

import { Change } from '@schematics/angular/utility/change';
import { WorkspaceProject } from '@schematics/angular/utility/config';
import { workspaces } from '@angular-devkit/core';
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
export type ProjectDefinition = workspaces.ProjectDefinition;
/**

@@ -20,3 +22,2 @@ * Reads file given path and returns TypeScript source file.

*/
export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: WorkspaceProject): void;
/**

@@ -23,0 +24,0 @@ * Import and add module to specific module path.

@@ -10,2 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.updateChanges = exports.addModuleImportToModule = exports.getSourceFile = void 0;
const schematics_1 = require("@angular-devkit/schematics");

@@ -15,3 +16,2 @@ const ts = require("typescript");

const change_1 = require("@schematics/angular/utility/change");
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
/**

@@ -32,7 +32,7 @@ * Reads file given path and returns TypeScript source file.

*/
function addModuleImportToRootModule(host, moduleName, src, project) {
const modulePath = ng_ast_utils_1.getAppModulePath(host, project.architect.build.options.main);
addModuleImportToModule(host, modulePath, moduleName, src);
}
exports.addModuleImportToRootModule = addModuleImportToRootModule;
// export function addModuleImportToRootModule(host: Tree, moduleName: string, src: string,
// project: WorkspaceDefinition) {
// const modulePath: string = getAppModulePath(host, project.architect.build.options.main);
// addModuleImportToModule(host, modulePath, moduleName, src);
// }
/**

@@ -52,3 +52,3 @@ * Import and add module to specific module path.

moduleName.split(',').forEach((module) => {
if (!ast_utils_1.isImported(moduleSource, module.trim(), src) && module !== '') {
if (!(0, ast_utils_1.isImported)(moduleSource, module.trim(), src) && module !== '') {
modulesToBeAdded.push(module);

@@ -58,3 +58,3 @@ }

if (modulesToBeAdded.length) {
let changes = ast_utils_1.addImportToModule(moduleSource, modulePath, modulesToBeAdded.toString().trim(), src);
let changes = (0, ast_utils_1.addImportToModule)(moduleSource, modulePath, modulesToBeAdded.toString().trim(), src);
if (!changes[0] && modulePath.includes("component.ts")) {

@@ -61,0 +61,0 @@ changes = updateChanges(changes, modulePath, moduleSource, moduleName, src);

@@ -8,3 +8,5 @@ /**

*/
import { WorkspaceProject, WorkspaceSchema } from '@schematics/angular/utility/config';
export declare function getProjectFromWorkspace(workspace: WorkspaceSchema, projectName?: string): WorkspaceProject;
import { workspaces } from '@angular-devkit/core';
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
export type ProjectDefinition = workspaces.ProjectDefinition;
export declare function getProjectFromWorkspace(workspace: WorkspaceDefinition, projectName?: string): ProjectDefinition;

@@ -10,5 +10,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getProjectFromWorkspace = void 0;
function getProjectFromWorkspace(workspace, projectName) {
let project = workspace.projects[projectName || workspace.defaultProject];
if (workspace.defaultProject === undefined) {
let project = workspace.projects[projectName];
if (projectName === undefined) {
project = workspace.projects[projectName || Object.keys(workspace.projects)[0]];

@@ -15,0 +16,0 @@ }

@@ -10,2 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.validateHtmlSelector = exports.htmlSelectorRe = exports.validateName = exports.insertImport = exports.parseName = exports.getAppModulePath = exports.findBootstrapModulePath = exports.findBootstrapModuleCall = exports.isImported = exports.addBootstrapToModule = exports.addExportToModule = exports.addProviderToModule = exports.addImportToModule = exports.addDeclarationToModule = exports.addSymbolToNgModuleMetadata = exports.getFirstNgModuleName = exports.getDecoratorMetadata = exports.getContentOfKeyLiteral = exports.insertAfterLastOccurrence = exports.findNode = exports.getSourceNodes = exports.findNodes = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = exports.getProjectFromWorkspace = exports.getWorkspace = exports.ANGULAR_CLI_WORKSPACE_PATH = exports.buildRelativePath = exports.findModule = exports.findModuleFromOptions = void 0;
const core_1 = require("@angular-devkit/core");

@@ -29,15 +30,15 @@ const schematics_1 = require("@angular-devkit/schematics");

+ (options.flat ? '' : '/' + core_1.strings.dasherize(options.name));
return core_1.normalize(findModule(host, pathToCheck, moduleExt, routingModuleExt));
return (0, core_1.normalize)(findModule(host, pathToCheck, moduleExt, routingModuleExt));
}
else {
const modulePath = core_1.normalize(`/${options.path}/${options.module}`);
const componentPath = core_1.normalize(`/${options.path}/${options.name}`);
const moduleBaseName = core_1.normalize(modulePath).split('/').pop();
const modulePath = (0, core_1.normalize)(`/${options.path}/${options.module}`);
const componentPath = (0, core_1.normalize)(`/${options.path}/${options.name}`);
const moduleBaseName = (0, core_1.normalize)(modulePath).split('/').pop();
const candidateSet = new Set([
core_1.normalize(options.path || '/'),
(0, core_1.normalize)(options.path || '/'),
]);
for (let dir = modulePath; dir != core_1.NormalizedRoot; dir = core_1.dirname(dir)) {
for (let dir = modulePath; dir != core_1.NormalizedRoot; dir = (0, core_1.dirname)(dir)) {
candidateSet.add(dir);
}
for (let dir = componentPath; dir != core_1.NormalizedRoot; dir = core_1.dirname(dir)) {
for (let dir = componentPath; dir != core_1.NormalizedRoot; dir = (0, core_1.dirname)(dir)) {
candidateSet.add(dir);

@@ -51,6 +52,6 @@ }

`${moduleBaseName}${moduleExt}`,
].map(x => core_1.join(c, x));
].map(x => (0, core_1.join)(c, x));
for (const sc of candidateFiles) {
if (host.exists(sc)) {
return core_1.normalize(sc);
return (0, core_1.normalize)(sc);
}

@@ -75,3 +76,3 @@ }

if (filteredMatches.length == 1) {
return core_1.join(dir.path, filteredMatches[0]);
return (0, core_1.join)(dir.path, filteredMatches[0]);
}

@@ -95,4 +96,4 @@ else if (filteredMatches.length > 1) {

function buildRelativePath(from, to) {
from = core_1.normalize(from);
to = core_1.normalize(to);
from = (0, core_1.normalize)(from);
to = (0, core_1.normalize)(to);
// Convert to arrays.

@@ -104,3 +105,3 @@ const fromParts = from.split('/');

const toFileName = toParts.pop();
const relativePath = core_1.relative(core_1.normalize(fromParts.join('/')), core_1.normalize(toParts.join('/')));
const relativePath = (0, core_1.relative)((0, core_1.normalize)(fromParts.join('/')), (0, core_1.normalize)(toParts.join('/')));
let pathPrefix = '';

@@ -716,4 +717,4 @@ // Set the path prefix for same dir or child dir, parent dir starts with `..`

const moduleRelativePath = findBootstrapModulePath(host, mainPath);
const mainDir = path_1.dirname(mainPath);
const modulePath = core_1.normalize(`/${mainDir}/${moduleRelativePath}.ts`);
const mainDir = (0, path_1.dirname)(mainPath);
const modulePath = (0, core_1.normalize)(`/${mainDir}/${moduleRelativePath}.ts`);
return modulePath;

@@ -723,7 +724,7 @@ }

function parseName(path, name) {
const nameWithoutPath = core_1.basename(name);
const namePath = core_1.dirname((path + '/' + name));
const nameWithoutPath = (0, core_1.basename)(name);
const namePath = (0, core_1.dirname)((path + '/' + name));
return {
name: nameWithoutPath,
path: core_1.normalize('/' + namePath),
path: (0, core_1.normalize)('/' + namePath),
};

@@ -730,0 +731,0 @@ }

@@ -10,2 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.addEJ2PackageToPackageJson = void 0;
/**

@@ -12,0 +13,0 @@ * Adds Essential JS 2 package to the package.json

@@ -8,3 +8,5 @@ /**

*/
import { WorkspaceProject } from '@schematics/angular/utility/config';
import { workspaces } from '@angular-devkit/core';
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
export type ProjectDefinition = workspaces.ProjectDefinition;
/**

@@ -14,4 +16,4 @@ * Gets a style file with the given extension in a project and returns its path. If no

*/
export declare function getProjectStyleFile(project: WorkspaceProject, extension?: string): string | null;
export declare function getProjectStyleFile(project: WorkspaceDefinition, extension?: string): string | null;
/** Throws if the project is not using the default Angular devkit builders. */
export declare function assertDefaultBuildersConfigured(project: WorkspaceProject): void;
export declare function assertDefaultBuildersConfigured(project: any): void;

@@ -10,2 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.assertDefaultBuildersConfigured = exports.getProjectStyleFile = void 0;
const core_1 = require("@angular-devkit/core");

@@ -22,3 +23,3 @@ const schematics_1 = require("@angular-devkit/schematics");

function getProjectStyleFile(project, extension) {
const buildTarget = project.architect['build'];
const buildTarget = project.projects['build'];
if (buildTarget.options && buildTarget.options.styles && buildTarget.options.styles.length) {

@@ -31,3 +32,3 @@ const styles = buildTarget.options.styles.map(s => typeof s === 'string' ? s : s.input);

if (defaultMainStylePath) {
return core_1.normalize(defaultMainStylePath);
return (0, core_1.normalize)(defaultMainStylePath);
}

@@ -40,3 +41,3 @@ // If no default style file could be found, use the first style file that matches the given

if (fallbackStylePath) {
return core_1.normalize(fallbackStylePath);
return (0, core_1.normalize)(fallbackStylePath);
}

@@ -43,0 +44,0 @@ }

@@ -24,2 +24,3 @@ import { QueryList, SimpleChanges } from '@angular/core';

private registeredTemplate;
private componentType;
directivePropList: any;

@@ -26,0 +27,0 @@ ngOnInit(): void;

@@ -23,10 +23,10 @@ import { getValue, setValue, isNullOrUndefined } from '@syncfusion/ej2-base';

for (var i = 0; i < templateProperties.length; i++) {
var tempProp = getValue(templateProperties[i], this);
var tempProp = getValue(templateProperties[parseInt(i.toString(), 10)], this);
if (typeof tempProp === 'object' && tempProp && tempProp.elementRef) {
if (!getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)) {
setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
if (!getValue(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', this)) {
setValue(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', tempProp, this);
}
if (getValue("viewContainerRef", this) && !getValue("_viewContainerRef", tempProp.elementRef.nativeElement) && !getValue("propName", tempProp.elementRef.nativeElement)) {
setValue("_viewContainerRef", getValue("viewContainerRef", this), tempProp.elementRef.nativeElement);
setValue("propName", templateProperties[i].replace("Ref", ''), tempProp.elementRef.nativeElement);
if (getValue('viewContainerRef', this) && !getValue('_viewContainerRef', tempProp.elementRef.nativeElement) && !getValue('propName', tempProp.elementRef.nativeElement)) {
setValue('_viewContainerRef', getValue('viewContainerRef', this), tempProp.elementRef.nativeElement);
setValue('propName', templateProperties[parseInt(i.toString(), 10)].replace('Ref', ''), tempProp.elementRef.nativeElement);
}

@@ -50,3 +50,3 @@ }

for (var k = 0; k < this.directivePropList.length; k++) {
var dirPropName = this.directivePropList[k];
var dirPropName = this.directivePropList[parseInt(k.toString(), 10)];
if (propList.indexOf(dirPropName) !== -1 && (getValue(dirPropName, this) === false || getValue(dirPropName, this))) {

@@ -66,4 +66,4 @@ setValue(dirPropName, getValue(dirPropName, this), this.propCollection);

var propName = _a[_i];
var changedVal = changes[propName];
this.propCollection[propName] = changedVal.currentValue;
var changedVal = changes["".concat(propName)];
this.propCollection["".concat(propName)] = changedVal.currentValue;
}

@@ -91,9 +91,9 @@ this.isUpdated = false;

for (var d = 0; d < props.length; d++) {
if (!isNullOrUndefined(this.propCollection[props[d]])) {
var val = getValue(props[d], this);
var propVal = this.propCollection[this.property][0][props[d]];
if (!isNullOrUndefined(val) && this.propCollection[props[d]] !== val
if (!isNullOrUndefined(this.propCollection[props[parseInt(d.toString(), 10)]])) {
var val = getValue(props[parseInt(d.toString(), 10)], this);
var propVal = this.propCollection[this.property][0][props[parseInt(d.toString(), 10)]];
if (!isNullOrUndefined(val) && this.propCollection[props[parseInt(d.toString(), 10)]] !== val
&& propVal !== val) {
setValue(props[d], val, this.propCollection[this.property][0]);
setValue(props[d], val, this.propCollection);
setValue(props[parseInt(d.toString(), 10)], val, this.propCollection[this.property][0]);
setValue(props[parseInt(d.toString(), 10)], val, this.propCollection);
this.hasChanges = true;

@@ -176,3 +176,2 @@ this.isUpdated = false;

var isSourceChanged = false;
// tslint:disable-next-line
var childrenDataSource = this.children.map(function (child) {

@@ -184,13 +183,16 @@ return child;

for (var i = 0; i < this.list.length; i++) {
if (this.list[i].propCollection.dataSource) {
if (this.list[i].dataSource && this.list[i].propCollection.dataSource !== this.list[i].dataSource) {
this.list[i].propCollection.dataSource = this.list[i].dataSource;
this.list[i].hasChanges = true;
if (this.list[parseInt(i.toString(), 10)].propCollection.dataSource) {
if (this.list[parseInt(i.toString(), 10)].dataSource &&
this.list[parseInt(i.toString(), 10)].propCollection.dataSource
!== this.list[parseInt(i.toString(), 10)].dataSource) {
this.list[parseInt(i.toString(), 10)].propCollection.dataSource = this.list[parseInt(i.toString(), 10)].dataSource;
this.list[parseInt(i.toString(), 10)].hasChanges = true;
}
if (this.list[i].property !== "series") {
isSourceChanged = (JSON.stringify(this.list[i].propCollection.dataSource) !==
JSON.stringify(childrenDataSource[i].propCollection.dataSource));
if (this.list[parseInt(i.toString(), 10)].property !== 'series') {
isSourceChanged = (JSON.stringify(this.list[parseInt(i.toString(), 10)].propCollection.dataSource) !==
JSON.stringify(childrenDataSource[parseInt(i.toString(), 10)].propCollection.dataSource));
}
}
isSourceChanged = this.list[i].hasChanges !== childrenDataSource[i].hasChanges;
isSourceChanged = this.list[parseInt(i.toString(), 10)].hasChanges
!== childrenDataSource[parseInt(i.toString(), 10)].hasChanges;
}

@@ -219,3 +221,4 @@ }

item.clearTemplate(templateNames && templateNames.map(function (val) {
return new RegExp(_this.propertyName).test(val) ? val.replace(_this.propertyName + '.', '') : val;
var regExp = RegExp;
return new regExp(_this.propertyName).test(val) ? val.replace(_this.propertyName + '.', '') : val;
}));

@@ -227,6 +230,6 @@ }

for (var i = 0; i < this.list.length; i++) {
if (getValue('childColumns', this.list[i]) && getValue('property', this.list[i]) === 'columns') {
setValue('columns', getValue('childColumns', this.list[i]).getProperties(), this.list[i].propCollection);
if (getValue('childColumns', this.list[parseInt(i.toString(), 10)]) && getValue('property', this.list[parseInt(i.toString(), 10)]) === 'columns') {
setValue('columns', getValue('childColumns', this.list[parseInt(i.toString(), 10)]).getProperties(), this.list[parseInt(i.toString(), 10)].propCollection);
}
this.list[i].isUpdated = true;
this.list[parseInt(i.toString(), 10)].isUpdated = true;
}

@@ -233,0 +236,0 @@ };

@@ -14,2 +14,3 @@ import { ElementRef } from '@angular/core';

private isFormInit;
private componentType;
preventChange: boolean;

@@ -16,0 +17,0 @@ isPreventChange: boolean;

@@ -0,1 +1,2 @@

/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
/**

@@ -7,3 +8,2 @@ * Angular Component Base Module

import { clearTemplate, registerEvents } from './util';
var SVG_REG = /^svg|^path|^g/;
var ComponentBase = /** @class */ (function () {

@@ -18,6 +18,5 @@ function ComponentBase() {

}
this.oldProperties[key] = oldValue;
this.changedProperties[key] = newValue;
this.oldProperties["".concat(key)] = oldValue;
this.changedProperties["".concat(key)] = newValue;
this.finalUpdate();
// tslint:disable-next-line:no-any
var changeTime = setTimeout(this.dataBind.bind(this));

@@ -29,6 +28,3 @@ var clearUpdate = function () {

};
;
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngOnInit = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempOnThis = isTempRef || this;

@@ -49,3 +45,2 @@ tempOnThis.registeredTemplate = {};

tempOnThis.createElement = function (tagName, prop) {
//tslint:disable-next-line
var ele = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);

@@ -83,10 +78,10 @@ if (typeof (prop) === 'undefined') {

for (var i = 0; i < complexTemplates.length; i++) {
var compProp = getValue(complexTemplates[i], tempOnThis);
var compProp = getValue(complexTemplates[parseInt(i.toString(), 10)], tempOnThis);
if (typeof compProp === 'object' && compProp && compProp.elementRef) {
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[i].indexOf('_') !== -1 && complexTemplates[i].indexOf('Ref') === -1) {
setValue(complexTemplates[i] + 'Ref', compProp, tempOnThis);
if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[parseInt(i.toString(), 10)].indexOf('_') !== -1 && complexTemplates[parseInt(i.toString(), 10)].indexOf('Ref') === -1) {
setValue(complexTemplates[parseInt(i.toString(), 10)] + 'Ref', compProp, tempOnThis);
}
if (tempOnThis.viewContainerRef && !getValue("_viewContainerRef", compProp.elementRef.nativeElement) && !getValue("propName", compProp.elementRef.nativeElement)) {
setValue("_viewContainerRef", tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
setValue("propName", complexTemplates[i].replace("Ref", ''), compProp.elementRef.nativeElement);
if (tempOnThis.viewContainerRef && !getValue('_viewContainerRef', compProp.elementRef.nativeElement) && !getValue('propName', compProp.elementRef.nativeElement)) {
setValue('_viewContainerRef', tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
setValue('propName', complexTemplates[parseInt(i.toString(), 10)].replace('Ref', ''), compProp.elementRef.nativeElement);
}

@@ -97,3 +92,3 @@ }

complexTemplates = complexTemplates.filter(function (val) {
return /Ref$/i.test(val) && /\_/i.test(val);
return /Ref$/i.test(val) && /_/i.test(val);
});

@@ -114,4 +109,4 @@ for (var _b = 0, complexTemplates_1 = complexTemplates; _b < complexTemplates_1.length; _b++) {

/* istanbul ignore next */
if (/_ngcontent/g.test(attributes[i].name)) {
ngAr = attributes[i].name;
if (/_ngcontent/g.test(attributes[parseInt(i.toString(), 10)].name)) {
ngAr = attributes[parseInt(i.toString(), 10)].name;
}

@@ -121,6 +116,3 @@ }

};
;
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngAfterViewInit = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempAfterViewThis = isTempRef || this;

@@ -172,5 +164,3 @@ var regExp = /ejs-tab|ejs-accordion/g;

};
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngOnDestroy = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempOnDestroyThis = isTempRef || this;

@@ -186,10 +176,10 @@ /* istanbul ignore else */

var key = _a[_i];
var value = tempOnDestroyThis[key];
var value = tempOnDestroyThis["".concat(key)];
if (value && /object/.test(typeof value) && Object.keys(value).length !== 0) {
if (/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(key)) {
for (var _b = 0, _c = Object.keys(tempOnDestroyThis[key]); _b < _c.length; _b++) {
for (var _b = 0, _c = Object.keys(tempOnDestroyThis["".concat(key)]); _b < _c.length; _b++) {
var propKey = _c[_b];
var propValue = value[propKey];
var propValue = value["".concat(propKey)];
if (propValue && /object/.test(typeof propValue) && Object.keys(propValue).length !== 0 && (propValue.parent || propValue.parentObj)) {
tempOnDestroyThis[key][propKey] = null;
tempOnDestroyThis["".concat(key)]["".concat(propKey)] = null;
}

@@ -200,3 +190,3 @@ }

if (value.parent || value.parentObj) {
tempOnDestroyThis[key] = null;
tempOnDestroyThis["".concat(key)] = null;
}

@@ -210,10 +200,6 @@ }

};
//tslint:disable-next-line
ComponentBase.prototype.clearTemplate = function (templateNames, index) {
clearTemplate(this, templateNames, index);
};
;
// tslint:disable-next-line:no-any
ComponentBase.prototype.ngAfterContentChecked = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempAfterContentThis = isTempRef || this;

@@ -241,13 +227,13 @@ for (var _i = 0, _a = tempAfterContentThis.tagObjects; _i < _a.length; _i++) {

for (var h = 0; h < tagObject.instance.list.length; h++) {
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName] = [];
tagObject.instance.list["".concat(h)].propCollection[tagObject.instance.propertyName] = [];
var obj = {};
for (var k = 0; k < compDirPropList.length; k++) {
var complexPropName = compDirPropList[k];
obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
var complexPropName = compDirPropList[parseInt(k.toString(), 10)];
obj["".concat(complexPropName)] = tagObject.instance.list["".concat(h)].propCollection["".concat(complexPropName)];
}
var _loop_1 = function (i) {
var tag = tagObject.instance.list[h].tags[i];
var childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list[h]);
var tag = tagObject.instance.list["".concat(h)].tags[parseInt(i.toString(), 10)];
var childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list["".concat(h)]);
if (childObj) {
var innerchildObj = tagObject.instance.list[h]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
var innerchildObj = tagObject.instance.list["".concat(h)]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
// Update the inner child tag objects

@@ -260,5 +246,6 @@ var updateChildTag_1 = function (innerchild) {

if (innerTag) {
var innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[j]);
var innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[parseInt(j.toString(), 10)]);
if (innerchildTag) {
innerchild.list[j].tagObjects.push({ instance: innerchildTag, name: innerTag });
innerchild.list[parseInt(j.toString(), 10)].tagObjects
.push({ instance: innerchildTag, name: innerTag });
innerLevelTag.push(innerchildTag);

@@ -272,15 +259,14 @@ }

for (var l = 0; l < innerLevelTag.length; l++) {
updateChildTag_1(innerLevelTag[l]);
updateChildTag_1(innerLevelTag[parseInt(l.toString(), 10)]);
}
}
;
};
updateChildTag_1(innerchildObj);
tagObject.instance.list[h].tagObjects.push({ instance: childObj, name: tag });
tagObject.instance.list["".concat(h)].tagObjects.push({ instance: childObj, name: tag });
}
};
for (var i = 0; i < tagObject.instance.list[h].tags.length; i++) {
for (var i = 0; i < tagObject.instance.list["".concat(h)].tags.length; i++) {
_loop_1(i);
}
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
tagObject.instance.list["".concat(h)].propCollection[tagObject.instance.propertyName].push(obj);
}

@@ -302,3 +288,3 @@ }

var curIndex = tagObject.instance.list.indexOf(list);
var curChild = getValue(tagObject.name, tempAfterContentThis)[curIndex];
var curChild = getValue(tagObject.name, tempAfterContentThis)["".concat(curIndex)];
var complexTemplates = Object.keys(curChild);

@@ -312,4 +298,4 @@ complexTemplates = complexTemplates.filter(function (val) {

complexPropName = complexPropName.replace(/Ref/, '');
curChild.properties[complexPropName] = !curChild.properties[complexPropName] ?
curChild.propCollection[complexPropName] : curChild.properties[complexPropName];
curChild.properties["".concat(complexPropName)] = !curChild.properties["".concat(complexPropName)] ?
curChild.propCollection["".concat(complexPropName)] : curChild.properties["".concat(complexPropName)];
}

@@ -368,6 +354,6 @@ }

if (!isUndefined(eventObj)) {
if (!this.ngBoundedEvents[eventName]) {
this.ngBoundedEvents[eventName] = new Map();
if (!this.ngBoundedEvents["".concat(eventName)]) {
this.ngBoundedEvents["".concat(eventName)] = new Map();
}
this.ngBoundedEvents[eventName].set(handler, eventObj.subscribe(handler));
this.ngBoundedEvents["".concat(eventName)].set(handler, eventObj.subscribe(handler));
}

@@ -378,3 +364,3 @@ };

if (!isUndefined(eventObj)) {
this.ngBoundedEvents[eventName].get(handler).unsubscribe();
this.ngBoundedEvents["".concat(eventName)].get(handler).unsubscribe();
}

@@ -381,0 +367,0 @@ };

@@ -10,4 +10,4 @@ import { EventEmitter, ChangeDetectorRef } from '@angular/core';

private skipFromEvent;
static readonly isFormBase:any;
propagateChange(_: T): void;
static readonly isFormBase: boolean;
propagateChange(_?: T): void;
propagateTouch(): void;

@@ -18,3 +18,3 @@ enabled: Object;

private isFormInit;
objCheck: Boolean;
objCheck: boolean;
duplicateValue: string;

@@ -21,0 +21,0 @@ duplicateAngularValue: string;

@@ -11,3 +11,2 @@ import { getValue, setValue, isNullOrUndefined, isObject } from '@syncfusion/ej2-base';

FormBase.prototype.localChange = function (e) {
//tslint:disable-next-line
var value = (e.checked === undefined ? e.value : e.checked);

@@ -36,3 +35,2 @@ this.objCheck = isObject(value);

else {
//tslint:disable-next-line
var optionalValue = value;

@@ -63,5 +61,3 @@ this.propagateChange(optionalValue);

};
// tslint:disable-next-line:no-any
FormBase.prototype.ngAfterViewInit = function (isTempRef) {
// tslint:disable-next-line:no-any
var tempFormAfterViewThis = isTempRef || this;

@@ -68,0 +64,0 @@ // Used setTimeout for template binding

import { ElementRef } from '@angular/core';
/**
* Angular Template Compiler
*
* @param {AngularElementType} templateEle - The element representing the template.
* @param {Object} [helper] - Optional helper object.
* @returns {Function} A function that compiles the template.
*/

@@ -8,6 +12,9 @@ export declare function compile(templateEle: AngularElementType, helper?: Object): (data: Object | JSON, component?: any, propName?: any) => Object;

* Property decorator for angular.
*
* @param {Object} [defaultValue] - Default value for the property.
* @returns {PropertyDecorator} The decorator function.
*/
export declare function Template<T>(defaultValue?: Object): PropertyDecorator;
export declare function Template(defaultValue?: Object): PropertyDecorator;
export interface AngularElementType {
elementRef: ElementRef;
}

@@ -6,2 +6,6 @@ import { setTemplateEngine, getTemplateEngine } from '@syncfusion/ej2-base';

* Angular Template Compiler
*
* @param {AngularElementType} templateEle - The element representing the template.
* @param {Object} [helper] - Optional helper object.
* @returns {Function} A function that compiles the template.
*/

@@ -15,3 +19,2 @@ export function compile(templateEle, helper) {

var pName_1 = templateEle.elementRef.nativeElement.propName;
//tslint:disable-next-line
return function (data, component, propName) {

@@ -32,6 +35,6 @@ var context = { $implicit: data };

propName = (propName && component.registeredTemplate) ? propName : pName_1;
if (typeof viewCollection[propName] === 'undefined') {
viewCollection[propName] = [];
if (typeof viewCollection["".concat(propName)] === 'undefined') {
viewCollection["".concat(propName)] = [];
}
viewCollection[propName].push(viewRef);
viewCollection["".concat(propName)].push(viewRef);
return viewRef.rootNodes;

@@ -43,2 +46,5 @@ };

* Property decorator for angular.
*
* @param {Object} [defaultValue] - Default value for the property.
* @returns {PropertyDecorator} The decorator function.
*/

@@ -56,2 +62,8 @@ export function Template(defaultValue) {

}
/**
* Creates a setter function for a given property key.
*
* @param {string} key - The property key.
* @returns {Function} The setter function.
*/
function setter(key) {

@@ -75,2 +87,9 @@ return function (val) {

}
/**
* Returns a getter function for the specified key and default value.
*
* @param {string} key - The key for the property.
* @param {Object} defaultValue - The default value for the property.
* @returns {Function} The getter function.
*/
function getter(key, defaultValue) {

@@ -82,3 +101,2 @@ return function () {

}
//tslint:disable-next-line
setTemplateEngine({ compile: compile });
/**
* Angular Utility Module
*
* @param {Function} derivedClass The derived class to which mixins are applied.
* @param {Function[]} baseClass An array of base classes whose methods are applied as mixins.
* @returns {void}
*/
export declare function applyMixins(derivedClass: any, baseClass: any[]): void;
/**
* Decorator function to apply mixins to a derived class.
*
* @param {Function[]} baseClass - An array of mixin classes to be applied to the derived class.
* @returns {ClassDecorator} The decorator function.
*/
export declare function ComponentMixins(baseClass: Function[]): ClassDecorator;
/**
* Registers events.
*
* @private
* @param {string[]} eventList - The list of events to register.
* @param {any} obj - The object on which to register the events.
* @param {boolean} [direct] - Whether to register events directly on the object or not.
* @returns {void}
*/
export declare function registerEvents(eventList: string[], obj: any, direct?: boolean): void;
/**
* Clears registered templates.
*
* @private
* @param {any} _this - The context object.
* @param {string[]} [templateNames] - Optional. An array of template names to clear.
* @param {any[]} [index] - Optional. An array of indices specifying templates to clear.
* @returns {void}
*/

@@ -16,6 +38,7 @@ export declare function clearTemplate(_this: any, templateNames?: string[], index?: any): void;

* To set value for the nameSpace in desired object.
* @param {string} nameSpace - String value to the get the inner object
*
* @param {string} nameSpace - String value to get the inner object.
* @param {any} value - Value that you need to set.
* @param {any} obj - Object to get the inner object value.
* @return {void}
* @param {any} object - Object to get the inner object value.
* @returns {void}
* @private

@@ -22,0 +45,0 @@ */

@@ -0,1 +1,2 @@

/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
import { EventEmitter } from '@angular/core';

@@ -5,9 +6,12 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

* Angular Utility Module
*
* @param {Function} derivedClass The derived class to which mixins are applied.
* @param {Function[]} baseClass An array of base classes whose methods are applied as mixins.
* @returns {void}
*/
/* tslint:disable */
export function applyMixins(derivedClass, baseClass) {
baseClass.forEach(function (baseClass) {
Object.getOwnPropertyNames(baseClass.prototype).forEach(function (name) {
if (!derivedClass.prototype.hasOwnProperty(name) || (baseClass.isFormBase && name !== 'constructor')) {
derivedClass.prototype[name] = baseClass.prototype[name];
if (!Object.prototype.hasOwnProperty.call(derivedClass.prototype, name) || (baseClass.isFormBase && name !== 'constructor')) {
derivedClass.prototype["".concat(name)] = baseClass.prototype["".concat(name)];
}

@@ -17,3 +21,8 @@ });

}
/* tslint:disable */
/**
* Decorator function to apply mixins to a derived class.
*
* @param {Function[]} baseClass - An array of mixin classes to be applied to the derived class.
* @returns {ClassDecorator} The decorator function.
*/
export function ComponentMixins(baseClass) {

@@ -25,3 +34,9 @@ return function (derivedClass) {

/**
* Registers events.
*
* @private
* @param {string[]} eventList - The list of events to register.
* @param {any} obj - The object on which to register the events.
* @param {boolean} [direct] - Whether to register events directly on the object or not.
* @returns {void}
*/

@@ -34,7 +49,7 @@ export function registerEvents(eventList, obj, direct) {

if (direct === true) {
obj.propCollection[event_1] = new EventEmitter(false);
obj[event_1] = obj.propCollection[event_1];
obj.propCollection["".concat(event_1)] = new EventEmitter(false);
obj["".concat(event_1)] = obj.propCollection["".concat(event_1)];
}
else {
ngEventsEmitter[event_1] = new EventEmitter(false);
ngEventsEmitter["".concat(event_1)] = new EventEmitter(false);
}

@@ -48,3 +63,9 @@ }

/**
* Clears registered templates.
*
* @private
* @param {any} _this - The context object.
* @param {string[]} [templateNames] - Optional. An array of template names to clear.
* @param {any[]} [index] - Optional. An array of indices specifying templates to clear.
* @returns {void}
*/

@@ -65,7 +86,7 @@ export function clearTemplate(_this, templateNames, index) {

if (tabaccordionTemp) {
for (var m = 0; m < _this.registeredTemplate[registeredTemplate].length; m++) {
var value = _this.registeredTemplate[registeredTemplate][m];
if (value && value === index[e]) {
for (var m = 0; m < _this.registeredTemplate["".concat(registeredTemplate)].length; m++) {
var value = _this.registeredTemplate["".concat(registeredTemplate)][parseInt(m.toString(), 10)];
if (value && value === index["".concat(e)]) {
value.destroy();
_this.registeredTemplate[registeredTemplate].splice(m, 1);
_this.registeredTemplate["".concat(registeredTemplate)].splice(m, 1);
}

@@ -76,6 +97,6 @@ }

for (var m = 0; m < _this.registeredTemplate.template.length; m++) {
var value = _this.registeredTemplate.template[m].rootNodes[0];
if (value === index[e]) {
var rt = _this.registeredTemplate[registeredTemplate];
rt[m].destroy();
var value = _this.registeredTemplate.template[parseInt(m.toString(), 10)].rootNodes[0];
if (value === index["".concat(e)]) {
var rt = _this.registeredTemplate["".concat(registeredTemplate)];
rt[parseInt(m.toString(), 10)].destroy();
}

@@ -87,4 +108,4 @@ }

else {
if (_this.registeredTemplate[registeredTemplate]) {
for (var _b = 0, _c = _this.registeredTemplate[registeredTemplate]; _b < _c.length; _b++) {
if (_this.registeredTemplate["".concat(registeredTemplate)]) {
for (var _b = 0, _c = _this.registeredTemplate["".concat(registeredTemplate)]; _b < _c.length; _b++) {
var rt = _c[_b];

@@ -96,3 +117,3 @@ if (!rt.destroyed) {

for (var m = 0; m < rt.rootNodes.length; m++) {
pNode.appendChild(rt.rootNodes[m]);
pNode.appendChild(rt.rootNodes[parseInt(m.toString(), 10)]);
}

@@ -107,3 +128,3 @@ }

if (!tabaccordionTemp || !index) {
delete _this.registeredTemplate[registeredTemplate];
delete _this.registeredTemplate["".concat(registeredTemplate)];
}

@@ -116,3 +137,4 @@ }

tagObject.instance.clearTemplate((templateNames && templateNames.filter(function (val) {
return (new RegExp(tagObject.name).test(val) ? true : false);
var regExp = RegExp;
return (new regExp(tagObject.name).test(val) ? true : false);
})));

@@ -128,6 +150,7 @@ }

* To set value for the nameSpace in desired object.
* @param {string} nameSpace - String value to the get the inner object
*
* @param {string} nameSpace - String value to get the inner object.
* @param {any} value - Value that you need to set.
* @param {any} obj - Object to get the inner object value.
* @return {void}
* @param {any} object - Object to get the inner object value.
* @returns {void}
* @private

@@ -140,12 +163,12 @@ */

for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var key = keys[parseInt(i.toString(), 10)];
if (i + 1 === keys.length) {
fromObj[key] = value === undefined ? {} : value;
fromObj["".concat(key)] = value === undefined ? {} : value;
}
else if (fromObj[key] === undefined) {
fromObj[key] = {};
else if (fromObj["".concat(key)] === undefined) {
fromObj["".concat(key)] = {};
}
fromObj = fromObj[key];
fromObj = fromObj["".concat(key)];
}
return fromObj;
}

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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