@syncfusion/ej2-angular-base 31.2.12 → 32.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/ej2-angular-base.umd.min.js +0 -9
  2. package/dist/global/ej2-angular-base.min.js +0 -9
  3. package/dist/global/index.d.ts +0 -9
  4. package/dist/ts/complex-array-base.d.ts +55 -0
  5. package/dist/ts/complex-array-base.ts +275 -0
  6. package/dist/ts/component-base.d.ts +50 -0
  7. package/dist/ts/component-base.ts +432 -0
  8. package/dist/ts/form-base.d.ts +46 -0
  9. package/dist/ts/form-base.ts +171 -0
  10. package/dist/ts/index.d.ts +8 -0
  11. package/dist/ts/index.ts +8 -0
  12. package/dist/ts/template.d.ts +19 -0
  13. package/dist/ts/template.ts +107 -0
  14. package/dist/ts/util.d.ts +60 -0
  15. package/dist/ts/util.ts +177 -0
  16. package/package.json +82 -14
  17. package/styles/bds.css +0 -2
  18. package/styles/bds.scss +0 -1
  19. package/styles/bootstrap-dark.scss +0 -1
  20. package/styles/bootstrap.scss +0 -1
  21. package/styles/bootstrap4.scss +0 -1
  22. package/styles/bootstrap5-dark.scss +0 -1
  23. package/styles/bootstrap5.3.css +82 -0
  24. package/styles/bootstrap5.3.scss +1 -1
  25. package/styles/bootstrap5.scss +1 -1
  26. package/styles/fabric-dark.scss +1 -1
  27. package/styles/fabric.scss +1 -1
  28. package/styles/fluent-dark.scss +1 -1
  29. package/styles/fluent.scss +1 -1
  30. package/styles/fluent2.css +80 -0
  31. package/styles/fluent2.scss +1 -1
  32. package/styles/highcontrast-light.scss +1 -1
  33. package/styles/highcontrast.scss +1 -1
  34. package/styles/material-dark.scss +1 -1
  35. package/styles/material.scss +0 -1
  36. package/styles/material3-dark.css +82 -0
  37. package/styles/material3-dark.scss +1 -1
  38. package/styles/material3.css +80 -0
  39. package/styles/material3.scss +1 -1
  40. package/styles/tailwind-dark.scss +1 -1
  41. package/styles/tailwind.scss +1 -1
  42. package/styles/tailwind3.css +70 -0
  43. package/styles/tailwind3.scss +1 -1
@@ -1,11 +1,2 @@
1
- /*!
2
- * filename: ej2-angular-base.umd.min.js
3
- * version : 31.2.12
4
- * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  !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,E,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,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(null==(i=e.getModuleName)?void 0:i.call(e)),o=0,l=s||r;o<l.length;o++){var p=l[o];if(t&&t.length)for(var c=0;c<t.length;c++)if(a)for(var h=0;h<e.registeredTemplate["".concat(p)].length;h++)(g=e.registeredTemplate["".concat(p)][parseInt(h.toString(),10)])&&g===t["".concat(c)]&&(g.destroy(),e.registeredTemplate["".concat(p)].splice(h,1));else for(var g,h=0;h<e.registeredTemplate.template.length;h++)(g=e.registeredTemplate.template[parseInt(h.toString(),10)].rootNodes[0])===t["".concat(c)]&&(u=e.registeredTemplate["".concat(p)])[parseInt(h.toString(),10)].destroy();else if(e.registeredTemplate["".concat(p)])for(var u,f=0,d=e.registeredTemplate["".concat(p)];f<d.length;f++)if(!(u=d[f]).destroyed){if(u._view){var v=u._view.renderer.parentNode(u.rootNodes[0]);if(!E.isNullOrUndefined(v))for(h=0;h<u.rootNodes.length;h++)v.appendChild(u.rootNodes[parseInt(h.toString(),10)])}u.destroy()}a&&t||delete e.registeredTemplate["".concat(p)]}for(var m=0,y=e.tagObjects;m<y.length;m++)!function(t){t.instance&&t.instance.clearTemplate(n&&n.filter(function(e){return!!new RegExp(t.name).test(e)}))}(y[m])}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=E.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=E.getValue(r[parseInt(s.toString(),10)],this);"object"==typeof a&&a&&a.elementRef&&(E.getValue(-1!==r[parseInt(s.toString(),10)].indexOf("Ref")?r[parseInt(s.toString(),10)]:r[parseInt(s.toString(),10)]+"Ref",this)||E.setValue(-1!==r[parseInt(s.toString(),10)].indexOf("Ref")?r[parseInt(s.toString(),10)]:r[parseInt(s.toString(),10)]+"Ref",a,this),!E.getValue("viewContainerRef",this)||E.getValue("_viewContainerRef",a.elementRef.nativeElement)||E.getValue("propName",a.elementRef.nativeElement)||(E.setValue("_viewContainerRef",E.getValue("viewContainerRef",this),a.elementRef.nativeElement),E.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","");E.setValue(p.replace("_","."),E.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!==E.getValue(g,this)&&!E.getValue(g,this)||E.setValue(g,E.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(!E.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++)E.isNullOrUndefined(this.propCollection[r[parseInt(s.toString(),10)]])||(t=E.getValue(r[parseInt(s.toString(),10)],this),n=this.propCollection[this.property][0][r[parseInt(s.toString(),10)]],E.isNullOrUndefined(t))||this.propCollection[r[parseInt(s.toString(),10)]]===t||n===t||(E.setValue(r[parseInt(s.toString(),10)],t,this.propCollection[this.property][0]),E.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","");E.setValue(n.replace("_","."),E.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++)E.getValue("childColumns",this.list[parseInt(e.toString(),10)])&&"columns"===E.getValue("property",this.list[parseInt(e.toString(),10)])&&E.setValue("columns",E.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||E).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)&&E.attributes(e,t.attrs),e};for(var t=0,i=n.tags;t<i.length;t++){var r=i[t],r={instance:E.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=E.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")&&E.setValue(s[parseInt(a.toString(),10)]+"Ref",o,n),!n.viewContainerRef||E.getValue("_viewContainerRef",o.elementRef.nativeElement)||E.getValue("propName",o.elementRef.nativeElement)||(E.setValue("_viewContainerRef",n.viewContainerRef,o.elementRef.nativeElement),E.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={};E.setValue(c.replace("_","."),E.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","");E.setValue(s.replace("_","."),E.getValue(s+"Ref",t),t)}function a(e){"undefined"!=typeof window&&e.element&&(e.appendTo(e.element),e.ngEle.nativeElement.style.visibility="")}n||t.getModuleName().includes("btn")?a(t):setTimeout(function(){a(t)})},h.prototype.ngOnDestroy=function(e){var l=e||this;setTimeout(function(){var e;"undefined"!=typeof window&&l.element.classList.contains("e-control")&&(void 0!==l.ngOnFocus&&void 0!==l.ngOnBlur&&((e=l.inputElement||l.element).removeEventListener("focus",l.ngOnFocusBound),e.removeEventListener("blur",l.ngOnBlurBound),l.ngOnFocusBound=null,l.ngOnBlurBound=null),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(!E.isUndefined(r.instance)&&(r.instance.isInitChanges||r.instance.hasChanges||r.instance.hasNewChildren)){var s={};if(r.instance.isInitChanges){var a=void 0,o=((f=E.getValue("instance.list",r))&&f.length&&(a=f[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=E.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=E.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,d=0,v=r.instance.list;d<v.length;d++){if((f=v[d]).tags)for(var m=0,y=f.tags;m<y.length;m++){var C=y[m],b=E.getValue("child"+C.substring(0,1).toUpperCase()+C.substring(1),f);b&&f.tagObjects.push({instance:b,name:C})}var O=r.instance.list.indexOf(f),V=E.getValue(r.name,t)["".concat(O)],O=(O=Object.keys(V)).filter(function(e){return/Ref$/i.test(e)});if(V.properties&&0!==Object.keys(V.properties).length)for(var I=0,S=O;I<S.length;I++)g=(g=S[I]).replace(/Ref/,""),V.properties["".concat(g)]=(V.properties["".concat(g)]?V.properties:V.propCollection)["".concat(g)];E.isUndefined(V)||E.isUndefined(V.setProperties)||(/diagram|DashboardLayout/.test(t.getModuleName())?V.setProperties(f.getProperties(),!0):V.setProperties(f.getProperties())),f.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=E.getValue(t,this.properties);n!==e&&(this.saveChanges(t,e,n),E.setValue(t,E.isNullOrUndefined(e)?null:e,this.properties),E.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){E.getValue(t,i),Object.defineProperty(i,t,{get:function(){return E.getValue(t,n.properties)},set:function(e){return n.twoWaySetter(e,t)}}),E.setValue(t+"Change",new o.EventEmitter,i)}(r[t])},h.prototype.addEventListener=function(e,t){var n=E.getValue(e,this);E.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=E.getValue(e,this);E.isUndefined(n)||this.ngBoundedEvents["".concat(e)].get(t).unsubscribe()},h.prototype.trigger=function(e,t,n){var i=E.getValue(e,this),r=this.isProtectedOnChange,i=(this.isProtectedOnChange=!1,t&&(t.name=e),E.isUndefined(i)||i.next(t),E.getValue("local"+e.charAt(0).toUpperCase()+e.slice(1),this));E.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=E.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||E.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),E.setValue(t,E.isNullOrUndefined(e)?null:e,this.properties),E.getValue(t+"Change",this).emit(e))},u.prototype.ngAfterViewInit=function(e){var t=e||this;t.ngOnBlurBound=this.ngOnBlur.bind(this),t.ngOnFocusBound=this.ngOnFocus.bind(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.ngOnFocusBound),e.addEventListener("blur",t.ngOnBlurBound)),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);var t=null==this.angularValue;this.angularValue=e,this.isUpdated=!0,this.preventChange=!this.isFormInit,this.cdr.markForCheck(),null===e&&t&&(this.preventChange=!1)},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=E.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(E.getValue("currentInstance.element.nodeName",i))||/E-TABITEM/.test(E.getValue("element.nativeElement.nodeName",i))&&E.getValue("currentInstance.headerTemplateRef",i)?e.detectChanges():e.markForCheck(),t&&t.registeredTemplate?t.registeredTemplate:E.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})}E.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&&(E.setValue(r+"Ref",e,this),"string"==typeof e||"function"==typeof e&&e.prototype&&e.prototype.CSPTemplate?this.saveChanges&&(this.saveChanges(r,e,void 0),this.dataBind()):(e.elementRef.nativeElement._viewContainerRef=this.viewContainerRef,e.elementRef.nativeElement.propName=r))},get:(n=r=t,i=a,function(){return E.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})});
11
2
  //# sourceMappingURL=ej2-angular-base.umd.min.js.map
@@ -1,11 +1,2 @@
1
- /*!
2
- * filename: ej2-angular-base.min.js
3
- * version : 31.2.12
4
- * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  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,s=Object.keys(e.registeredTemplate);if(s.length)for(var a=n&&n.filter(function(e){return!/\./g.test(e)}),o=/tab|accordion|toolbar/.test(null===(r=e.getModuleName)||void 0===r?void 0:r.call(e)),l=0,p=a&&a||s;l<p.length;l++){var c=p[l];if(i&&i.length)for(var h=0;h<i.length;h++)if(o)for(m=0;m<e.registeredTemplate["".concat(c)].length;m++)(g=e.registeredTemplate["".concat(c)][parseInt(m.toString(),10)])&&g===i["".concat(h)]&&(g.destroy(),e.registeredTemplate["".concat(c)].splice(m,1));else for(m=0;m<e.registeredTemplate.template.length;m++){var g=e.registeredTemplate.template[parseInt(m.toString(),10)].rootNodes[0];g===i["".concat(h)]&&(d=e.registeredTemplate["".concat(c)])[parseInt(m.toString(),10)].destroy()}else if(e.registeredTemplate["".concat(c)])for(var u=0,f=e.registeredTemplate["".concat(c)];u<f.length;u++){var d=f[u];if(!d.destroyed){if(d._view){var v=d._view.renderer.parentNode(d.rootNodes[0]);if(!t.isNullOrUndefined(v))for(var m=0;m<d.rootNodes.length;m++)v.appendChild(d.rootNodes[parseInt(m.toString(),10)])}d.destroy()}}o&&i||delete e.registeredTemplate["".concat(c)]}for(var C=0,y=e.tagObjects;C<y.length;C++)!function(e){e.instance&&e.instance.clearTemplate(n&&n.filter(function(t){return!!new RegExp(e.name).test(t)}))}(y[C])}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))&&t.getValue("currentInstance.headerTemplateRef",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||"function"==typeof n&&n.prototype&&n.prototype.CSPTemplate?this.saveChanges&&(this.saveChanges(e,n,void 0),this.dataBind()):(n.elementRef.nativeElement._viewContainerRef=this.viewContainerRef,n.elementRef.nativeElement.propName=e))}}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.appendTo(e.element),e.ngEle.nativeElement.style.visibility="")};r||n.getModuleName().includes("btn")?l(n):setTimeout(function(){l(n)})},e.prototype.ngOnDestroy=function(e){var t=e||this;setTimeout(function(){if("undefined"!=typeof window&&t.element.classList.contains("e-control")){if(void 0!==t.ngOnFocus&&void 0!==t.ngOnBlur){var e=t.inputElement||t.element;e.removeEventListener("focus",t.ngOnFocusBound),e.removeEventListener("blur",t.ngOnBlurBound),t.ngOnFocusBound=null,t.ngOnBlurBound=null}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];if(C.tags)for(var y=0,b=C.tags;y<b.length;y++){var O=b[y],V=t.getValue("child"+O.substring(0,1).toUpperCase()+O.substring(1),C);V&&C.tagObjects.push({instance:V,name:O})}var I=s.instance.list.indexOf(C),S=t.getValue(s.name,n)["".concat(I)],E=Object.keys(S);if(E=E.filter(function(e){return/Ref$/i.test(e)}),S.properties&&0!==Object.keys(S.properties).length)for(var T=0,N=E;T<N.length;T++)u=(u=N[T]).replace(/Ref/,""),S.properties["".concat(u)]=S.properties["".concat(u)]?S.properties["".concat(u)]:S.propCollection["".concat(u)];t.isUndefined(S)||t.isUndefined(S.setProperties)||(/diagram|DashboardLayout/.test(n.getModuleName())?S.setProperties(C.getProperties(),!0):S.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(t.ngOnBlurBound=this.ngOnBlur.bind(this),t.ngOnFocusBound=this.ngOnFocus.bind(this),"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.ngOnFocusBound),n.addEventListener("blur",t.ngOnBlurBound)}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);var n=null==this.angularValue;if(this.angularValue=e,this.isUpdated=!0,this.preventChange=!this.isFormInit,this.cdr.markForCheck(),null===e)return void(n&&(this.preventChange=!1))},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;
11
2
  //# sourceMappingURL=ej2-angular-base.min.js.map
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 31.2.12
4
- * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _angularbase from '@syncfusion/ej2-angular-base';
11
2
 
12
3
  export declare namespace ej {
@@ -0,0 +1,55 @@
1
+ import { QueryList, SimpleChanges } from '@angular/core';
2
+ /**
3
+ * Complex Array Base module
4
+ */
5
+ export interface IChildChange {
6
+ dirIndex: number;
7
+ change: Object;
8
+ }
9
+ export declare class ComplexBase<T> {
10
+ isUpdated: boolean;
11
+ hasChanges?: boolean;
12
+ dirIndex?: number;
13
+ propCollection?: {
14
+ [key: string]: Object;
15
+ };
16
+ dataSource?: {
17
+ [key: string]: Object;
18
+ };
19
+ property?: string;
20
+ tags?: string[];
21
+ isInitChanges: boolean;
22
+ private tagObjects?;
23
+ private registeredTemplate;
24
+ private componentType;
25
+ directivePropList: any;
26
+ ngOnInit(): void;
27
+ protected registerEvents(eventList: string[]): void;
28
+ ngOnChanges(changes: SimpleChanges): void;
29
+ clearTemplate(templateNames: string[]): void;
30
+ getProperties(): {
31
+ [key: string]: Object;
32
+ };
33
+ isChanged(): boolean;
34
+ ngAfterContentChecked(): void;
35
+ ngAfterViewChecked(): void;
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ }
39
+ export declare class ArrayBase<T> {
40
+ isInitChanges: boolean;
41
+ list: T[] & ComplexBase<T>[];
42
+ children: QueryList<T>;
43
+ hasChanges: boolean;
44
+ private propertyName;
45
+ hasNewChildren: boolean;
46
+ constructor(propertyName: string);
47
+ ngOnInit(): void;
48
+ ngAfterContentInit(): void;
49
+ getProperties(): Object[];
50
+ isChanged(): boolean;
51
+ clearTemplate(templateNames: string[]): void;
52
+ ngAfterContentChecked(): void;
53
+ ngAfterViewInit(): void;
54
+ ngOnDestroy(): void;
55
+ }
@@ -0,0 +1,275 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { QueryList, SimpleChanges, SimpleChange, EmbeddedViewRef } from '@angular/core';
3
+ import { getValue, setValue, isNullOrUndefined } from '@syncfusion/ej2-base';
4
+ import { clearTemplate, registerEvents } from './util';
5
+
6
+ const refRegex: RegExp = /Ref$/;
7
+
8
+ /**
9
+ * Complex Array Base module
10
+ */
11
+
12
+ export interface IChildChange {
13
+ dirIndex: number;
14
+ change: Object;
15
+ }
16
+
17
+ interface Tag {
18
+ hasChanges: boolean;
19
+ getProperties: Function;
20
+ isInitChanges: boolean;
21
+ clearTemplate?: (args: string[]) => void;
22
+ }
23
+
24
+ export class ComplexBase<T> {
25
+ public isUpdated: boolean;
26
+ public hasChanges?: boolean = false;
27
+ public dirIndex?: number;
28
+ public propCollection?: { [key: string]: Object } = {};
29
+ public dataSource?: { [key: string]: Object } = {};
30
+ public property?: string;
31
+ public tags?: string[] = [];
32
+ public isInitChanges: boolean;
33
+ private tagObjects?: { name: string, instance: Tag }[] = [];
34
+ private registeredTemplate: { [key: string]: EmbeddedViewRef<Object>[] };
35
+ private componentType: T;
36
+ public directivePropList: any;
37
+ public ngOnInit(): void {
38
+ this.registeredTemplate = {};
39
+ for (const tag of this.tags) {
40
+ const objInstance: Tag = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), this);
41
+ if (objInstance) {
42
+ this.tagObjects.push({ instance: objInstance, name: tag });
43
+ }
44
+ }
45
+ let templateProperties: string[] = Object.keys(this);
46
+ for (let i: number = 0; i < templateProperties.length; i++) {
47
+ const tempProp: any = getValue(templateProperties[parseInt(i.toString(), 10)], this);
48
+ if (typeof tempProp === 'object' && tempProp && tempProp.elementRef) {
49
+ if (!getValue(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', this)) {
50
+ setValue(templateProperties[parseInt(i.toString(), 10)].indexOf('Ref') !== -1 ? templateProperties[parseInt(i.toString(), 10)] : templateProperties[parseInt(i.toString(), 10)] + 'Ref', tempProp, this);
51
+ }
52
+ if (getValue('viewContainerRef', this) && !getValue('_viewContainerRef', tempProp.elementRef.nativeElement) && !getValue('propName', tempProp.elementRef.nativeElement)) {
53
+ setValue('_viewContainerRef', getValue('viewContainerRef', this), tempProp.elementRef.nativeElement);
54
+ setValue('propName', templateProperties[parseInt(i.toString(), 10)].replace('Ref', ''), tempProp.elementRef.nativeElement);
55
+ }
56
+ }
57
+ }
58
+ templateProperties = Object.keys(this);
59
+ templateProperties = templateProperties.filter((val: string): boolean => {
60
+ return /Ref$/i.test(val);
61
+ });
62
+ for (const tempName of templateProperties) {
63
+ const propName: string = tempName.replace('Ref', '');
64
+ setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
65
+ }
66
+
67
+ // Angular 9 compatibility to overcome ngOnchange not get triggered issue
68
+ // To Update properties to "this.propCollection"
69
+ const propList: string[] = Object.keys(this);
70
+ /* istanbul ignore next */
71
+ if (this.directivePropList) {
72
+ for (let k: number = 0; k < this.directivePropList.length; k++) {
73
+ const dirPropName: string = this.directivePropList[parseInt(k.toString(), 10)];
74
+ if (propList.indexOf(dirPropName) !== -1 && (getValue(dirPropName, this) === false || getValue(dirPropName, this))) {
75
+ setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
76
+ }
77
+ }
78
+ this.hasChanges = true;
79
+ }
80
+ this.isInitChanges = true;
81
+ }
82
+
83
+ protected registerEvents(eventList: string[]): void {
84
+ registerEvents(eventList, this, true);
85
+ }
86
+
87
+ public ngOnChanges(changes: SimpleChanges): void {
88
+ for (const propName of Object.keys(changes)) {
89
+ const changedVal: SimpleChange = changes[`${propName}`];
90
+ this.propCollection[`${propName}`] = changedVal.currentValue;
91
+ }
92
+ this.isUpdated = false;
93
+ this.hasChanges = true;
94
+ }
95
+ /* istanbul ignore next */
96
+ public clearTemplate(templateNames: string[]): void {
97
+ clearTemplate(this, templateNames);
98
+ }
99
+
100
+ public getProperties(): { [key: string]: Object } {
101
+ /* istanbul ignore next */
102
+ for (const tagObject of this.tagObjects) {
103
+ this.propCollection[tagObject.name] = tagObject.instance.getProperties();
104
+ }
105
+ return this.propCollection;
106
+ }
107
+
108
+ public isChanged(): boolean {
109
+ let result: boolean = this.hasChanges;
110
+ if (!isNullOrUndefined(this.propCollection[this.property])) {
111
+ const tempProps: any = this.propCollection[this.property];
112
+ const props: string[] = Object.keys(tempProps[0]);
113
+ for (let d: number = 0; d < props.length; d++) {
114
+ if (!isNullOrUndefined(this.propCollection[props[parseInt(d.toString(), 10)]])) {
115
+ const val: any = getValue(props[parseInt(d.toString(), 10)], this);
116
+ const propVal: any = (this.propCollection[this.property] as any)[0][props[parseInt(d.toString(), 10)]];
117
+ if (!isNullOrUndefined(val) && this.propCollection[props[parseInt(d.toString(), 10)]] !== val
118
+ && propVal !== val) {
119
+ setValue(props[parseInt(d.toString(), 10)], val, (this.propCollection[this.property] as any)[0]);
120
+ setValue(props[parseInt(d.toString(), 10)], val, this.propCollection);
121
+ this.hasChanges = true;
122
+ this.isUpdated = false;
123
+ }
124
+
125
+ }
126
+ }
127
+ }
128
+ /* istanbul ignore next */
129
+ for (const item of this.tagObjects) {
130
+ result = result || item.instance.hasChanges;
131
+ }
132
+ return result || this.hasChanges;
133
+ }
134
+
135
+ public ngAfterContentChecked(): void {
136
+ this.hasChanges = this.isChanged();
137
+ if (this.isInitChanges || this.hasChanges){
138
+ let templateProperties: string[] = Object.keys(this);
139
+ templateProperties = templateProperties.filter((val: string) => {
140
+ return refRegex.test(val);
141
+ });
142
+ for (const tempName of templateProperties) {
143
+ const propName: string = tempName.replace('Ref', '');
144
+ setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
145
+ }
146
+ }
147
+ }
148
+
149
+ public ngAfterViewChecked(): void {
150
+ /* istanbul ignore next */
151
+ if (this.isUpdated) {
152
+ this.hasChanges = false;
153
+ }
154
+ }
155
+
156
+ public ngAfterViewInit(): void {
157
+ /* istanbul ignore next */
158
+ this.isInitChanges = false;
159
+ }
160
+
161
+ public ngOnDestroy(): void {
162
+ /* istanbul ignore next */
163
+ this.directivePropList = [];
164
+ }
165
+
166
+ }
167
+
168
+ export class ArrayBase<T> {
169
+ public isInitChanges: boolean;
170
+ public list: T[] & ComplexBase<T>[] = [];
171
+ public children: QueryList<T>;
172
+ public hasChanges: boolean = false;
173
+ private propertyName: string;
174
+ public hasNewChildren: boolean;
175
+
176
+ constructor(propertyName: string) {
177
+ this.propertyName = propertyName;
178
+ }
179
+
180
+ public ngOnInit(): void {
181
+ this.isInitChanges = true;
182
+ }
183
+
184
+ public ngAfterContentInit(): void {
185
+ let index: number = 0;
186
+ /* istanbul ignore next */
187
+ this.list = this.children.map((child: T & ComplexBase<T>) => {
188
+ child.dirIndex = index++;
189
+ child.property = this.propertyName;
190
+ return child;
191
+ });
192
+ this.hasChanges = true;
193
+ }
194
+
195
+ public getProperties(): Object[] {
196
+ const onlyProp: Object[] = [];
197
+ for (const item of this.list) {
198
+ onlyProp.push((<{ getProperties: Function }>item).getProperties());
199
+ }
200
+ return onlyProp;
201
+ }
202
+
203
+ public isChanged(): boolean {
204
+ let result: boolean = false;
205
+ let index: number = 0;
206
+ let isSourceChanged: boolean = false;
207
+ const childrenDataSource: any = this.children.map(
208
+ (child: T & ComplexBase<T>) => {
209
+ return child;
210
+ }
211
+ );
212
+ /* istanbul ignore next */
213
+ if (this.list.length === this.children.length) {
214
+ for (let i: number = 0; i < this.list.length; i++) {
215
+ if (this.list[parseInt(i.toString(), 10)].propCollection.dataSource) {
216
+ if (this.list[parseInt(i.toString(), 10)].dataSource &&
217
+ this.list[parseInt(i.toString(), 10)].propCollection.dataSource
218
+ !== this.list[parseInt(i.toString(), 10)].dataSource) {
219
+ this.list[parseInt(i.toString(), 10)].propCollection.dataSource = this.list[parseInt(i.toString(), 10)].dataSource;
220
+ this.list[parseInt(i.toString(), 10)].hasChanges = true;
221
+ }
222
+ if (this.list[parseInt(i.toString(), 10)].property !== 'series') {
223
+ isSourceChanged = (JSON.stringify(this.list[parseInt(i.toString(), 10)].propCollection.dataSource) !==
224
+ JSON.stringify(childrenDataSource[parseInt(i.toString(), 10)].propCollection.dataSource));
225
+ }
226
+ }
227
+ isSourceChanged = this.list[parseInt(i.toString(), 10)].hasChanges
228
+ !== childrenDataSource[parseInt(i.toString(), 10)].hasChanges;
229
+ }
230
+ }
231
+
232
+ this.hasNewChildren = (this.list.length !== this.children.length || isSourceChanged) ? true : null;
233
+ if (this.hasNewChildren) {
234
+ this.list = this.children.map((child: T & ComplexBase<T>) => {
235
+ child.dirIndex = index++;
236
+ child.property = this.propertyName;
237
+ return child;
238
+ });
239
+ }
240
+ /* istanbul ignore end */
241
+ for (const item of this.list) {
242
+ result = result || (<{ hasChanges: boolean }>item).hasChanges;
243
+ }
244
+ return !!this.list.length && result;
245
+ }
246
+
247
+ public clearTemplate(templateNames: string[]): void {
248
+ /* istanbul ignore next */
249
+ for (const item of this.list) {
250
+ (<{ clearTemplate: Function }>item).clearTemplate(templateNames && templateNames.map((val: string): string => {
251
+ const regExp: RegExpConstructor = RegExp;
252
+ return new regExp(this.propertyName).test(val) ? val.replace(this.propertyName + '.', '') : val;
253
+ }));
254
+ }
255
+ }
256
+
257
+ public ngAfterContentChecked(): void {
258
+ this.hasChanges = this.isChanged();
259
+ for (let i: number = 0; i < this.list.length; i++) {
260
+ if (getValue('childColumns', this.list[parseInt(i.toString(), 10)]) && getValue('property', this.list[parseInt(i.toString(), 10)]) === 'columns') {
261
+ setValue('columns', getValue('childColumns', this.list[parseInt(i.toString(), 10)]).getProperties(), this.list[parseInt(i.toString(), 10)].propCollection);
262
+ }
263
+ this.list[parseInt(i.toString(), 10)].isUpdated = true;
264
+ }
265
+ }
266
+
267
+ public ngAfterViewInit(): void {
268
+ this.isInitChanges = false;
269
+ }
270
+
271
+ public ngOnDestroy(): void {
272
+ this.list = [];
273
+ }
274
+
275
+ }
@@ -0,0 +1,50 @@
1
+ import { ElementRef } from '@angular/core';
2
+ export interface IComponentBase {
3
+ registerEvents: (eventList: string[]) => void;
4
+ addTwoWay: (propList: string[]) => void;
5
+ }
6
+ export declare class ComponentBase<T> {
7
+ element: HTMLElement;
8
+ tags: string[];
9
+ private ngAttr;
10
+ private srenderer;
11
+ protected isProtectedOnChange: boolean;
12
+ private isAngular;
13
+ private isFormInit;
14
+ private componentType;
15
+ preventChange: boolean;
16
+ isPreventChange: boolean;
17
+ protected oldProperties: {
18
+ [key: string]: Object;
19
+ };
20
+ protected changedProperties: {
21
+ [key: string]: Object;
22
+ };
23
+ protected finalUpdate: Function;
24
+ protected isUpdated: boolean;
25
+ ngEle: ElementRef;
26
+ private tagObjects;
27
+ onPropertyChanged: (newProp: Object, oldProp: Object) => void;
28
+ appendTo: (ele: string | HTMLElement) => void;
29
+ setProperties: (obj: Object, muteOnChange: boolean) => void;
30
+ properties: Object;
31
+ dataBind: Function;
32
+ private createElement;
33
+ protected saveChanges(key: string, newValue: Object, oldValue: Object): void;
34
+ destroy: Function;
35
+ private registeredTemplate;
36
+ private complexTemplate;
37
+ private ngBoundedEvents;
38
+ ngOnInit(isTempRef?: any): void;
39
+ getAngularAttr(ele: Element): string;
40
+ ngAfterViewInit(isTempRef?: any): void;
41
+ ngOnDestroy(isTempRef?: any): void;
42
+ clearTemplate(templateNames?: string[], index?: any): void;
43
+ ngAfterContentChecked(isTempRef?: any): void;
44
+ protected registerEvents(eventList: string[]): void;
45
+ protected twoWaySetter(newVal: Object, prop: string): void;
46
+ protected addTwoWay(propList: string[]): void;
47
+ addEventListener(eventName: string, handler: Function): void;
48
+ removeEventListener(eventName: string, handler: Function): void;
49
+ trigger(eventName: string, eventArgs: Object, success?: Function): void;
50
+ }