@syncfusion/ej2-angular-base 25.2.4 → 26.1.35

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 (44) hide show
  1. package/.eslintrc.json +261 -0
  2. package/dist/ej2-angular-base.umd.min.js +2 -2
  3. package/dist/ej2-angular-base.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-angular-base.es2015.js +234 -214
  5. package/dist/es6/ej2-angular-base.es2015.js.map +1 -1
  6. package/dist/es6/ej2-angular-base.es5.js +158 -138
  7. package/dist/es6/ej2-angular-base.es5.js.map +1 -1
  8. package/dist/global/ej2-angular-base.min.js +2 -2
  9. package/dist/global/ej2-angular-base.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +24 -9
  12. package/schematics/generators/component-builder.d.ts +3 -0
  13. package/schematics/generators/component-builder.js +23 -22
  14. package/schematics/generators/index.js +1 -0
  15. package/schematics/index.d.ts +0 -4
  16. package/schematics/index.js +21 -9
  17. package/schematics/ng-add/index.d.ts +3 -0
  18. package/schematics/ng-add/index.js +14 -12
  19. package/schematics/ng-add/theme.d.ts +3 -0
  20. package/schematics/ng-add/theme.js +10 -8
  21. package/schematics/utils/ast.d.ts +3 -2
  22. package/schematics/utils/ast.js +8 -8
  23. package/schematics/utils/get-project.d.ts +4 -2
  24. package/schematics/utils/get-project.js +3 -2
  25. package/schematics/utils/helpers/helpers.js +19 -18
  26. package/schematics/utils/package.js +1 -0
  27. package/schematics/utils/project-style-file.d.ts +5 -3
  28. package/schematics/utils/project-style-file.js +4 -3
  29. package/src/complex-array-base.d.ts +1 -0
  30. package/src/complex-array-base.js +31 -28
  31. package/src/component-base.d.ts +1 -0
  32. package/src/component-base.js +39 -53
  33. package/src/form-base.d.ts +3 -3
  34. package/src/form-base.js +0 -4
  35. package/src/template.d.ts +8 -1
  36. package/src/template.js +23 -5
  37. package/src/util.d.ts +26 -3
  38. package/src/util.js +51 -28
  39. package/styles/fluent2.css +1033 -0
  40. package/styles/fluent2.scss +1 -0
  41. package/styles/material3-dark.css +1 -1
  42. package/styles/material3.css +1 -1
  43. package/tslint.json +111 -0
  44. package/CHANGELOG.md +0 -702
package/.eslintrc.json ADDED
@@ -0,0 +1,261 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "plugin:jsdoc/recommended",
10
+ "plugin:security/recommended"
11
+ ],
12
+ "parser": "@typescript-eslint/parser",
13
+ "parserOptions": {
14
+ "ecmaFeatures": { "js": true },
15
+ "ecmaVersion": 2018,
16
+ "project": "./tsconfig.json",
17
+ "sourceType": "module"
18
+ },
19
+ "ignorePatterns": ["*.d.ts", "*.js"],
20
+ "plugins": [
21
+ "@typescript-eslint",
22
+ "@typescript-eslint/tslint",
23
+ "eslint-plugin-security",
24
+ "jsdoc"
25
+ ],
26
+ "rules": {
27
+ "use-isnan": "error",
28
+ "security/detect-unsafe-regex":"error",
29
+ "security/detect-buffer-noassert":"error",
30
+ "security/detect-child-process":"error",
31
+ "security/detect-disable-mustache-escape":"error",
32
+ "security/detect-eval-with-expression":"error",
33
+ "security/detect-no-csrf-before-method-override":"error",
34
+ "security/detect-non-literal-fs-filename":"error",
35
+ "security/detect-non-literal-regexp":"error",
36
+ "security/detect-non-literal-require":"error",
37
+ "security/detect-object-injection":"error",
38
+ "security/detect-possible-timing-attacks":"error",
39
+ "security/detect-pseudoRandomBytes":"error",
40
+ "security/detect-new-buffer":"error",
41
+ "security/detect-bidi-characters":"error",
42
+ "@typescript-eslint/no-inferrable-types": "off",
43
+ "@typescript-eslint/ban-types": ["warn", {
44
+ "types": {
45
+ "Object": false,
46
+ "object": false,
47
+ "{}": false,
48
+ "Function": false
49
+ }
50
+ }],
51
+ "jsdoc/check-tag-names": 0,
52
+ "@typescript-eslint/tslint/config": [
53
+ "error",
54
+ {
55
+ "rules": {
56
+ "ban": true,
57
+ "chai-vague-errors": true,
58
+ "max-func-body-length": [
59
+ true,
60
+ 120,
61
+ {
62
+ "ignore-parameters-to-function-regex": "describe"
63
+ }
64
+ ],
65
+ "missing-jsdoc": true,
66
+ "no-backbone-get-set-outside-model": false,
67
+ "no-cookies": false,
68
+ "no-delete-expression": false,
69
+ "no-disable-auto-sanitization": true,
70
+ "no-duplicate-case": true,
71
+ "no-duplicate-parameter-names": true,
72
+ "no-empty-interfaces": false,
73
+ "no-exec-script": true,
74
+ "no-function-expression": false,
75
+ "no-multiple-var-decl": false,
76
+ "no-string-based-set-immediate": false,
77
+ "no-string-based-set-interval": false,
78
+ "no-unnecessary-bind": false,
79
+ "no-unused-imports": true,
80
+ "no-with-statement": false,
81
+ "prefer-array-literal": false,
82
+ "typedef": [
83
+ true,
84
+ "call-signature",
85
+ "parameter",
86
+ "property-declaration",
87
+ "variable-declaration",
88
+ "arrow-parameter",
89
+ "member-variable-declaration"
90
+ ],
91
+ "use-named-parameter": false,
92
+ "valid-typeof": true,
93
+ "whitespace": [
94
+ true,
95
+ "check-branch",
96
+ "check-decl",
97
+ "check-operator",
98
+ "check-separator",
99
+ "check-type"
100
+ ]
101
+ }
102
+ }
103
+ ],
104
+ "no-control-regex": "error",
105
+ "no-constant-condition": "error",
106
+ "no-invalid-regexp": "error",
107
+ "curly": "error",
108
+ "eol-last": [
109
+ "error",
110
+ "always"
111
+ ],
112
+ "guard-for-in": "error",
113
+ "no-labels": "error",
114
+ "max-len": [
115
+ "error",
116
+ {
117
+ "code": 140,
118
+ "tabWidth": 4,
119
+ "ignoreComments": true,
120
+ "ignoreStrings": true,
121
+ "ignoreTemplateLiterals": true,
122
+ "ignoreRegExpLiterals": true
123
+ }
124
+ ],
125
+ "no-console": [
126
+ "error",
127
+ {
128
+ "allow": [
129
+ "warn",
130
+ "dir",
131
+ "timeLog",
132
+ "assert",
133
+ "clear",
134
+ "count",
135
+ "countReset",
136
+ "group",
137
+ "groupEnd",
138
+ "table",
139
+ "dirxml",
140
+ "error",
141
+ "groupCollapsed",
142
+ "Console",
143
+ "profile",
144
+ "profileEnd",
145
+ "timeStamp",
146
+ "context"
147
+ ]
148
+ }
149
+ ],
150
+ "no-redeclare": [
151
+ "error",
152
+ {
153
+ "builtinGlobals": true
154
+ }
155
+ ],
156
+ "@typescript-eslint/no-parameter-properties": "error",
157
+ "@typescript-eslint/indent": [
158
+ "error",
159
+ 4,
160
+ {
161
+ "CallExpression": {
162
+ "arguments": "first"
163
+ },
164
+ "FunctionDeclaration": {
165
+ "parameters": "first"
166
+ },
167
+ "FunctionExpression": {
168
+ "parameters": "first"
169
+ }
170
+ }
171
+ ],
172
+ "no-debugger": "error",
173
+ "no-eval": "error",
174
+ "no-extra-semi": "error",
175
+ "no-throw-literal": "error",
176
+ "no-fallthrough": "error",
177
+ "comma-dangle": [
178
+ "error",
179
+ "never"
180
+ ],
181
+ "no-trailing-spaces": "error",
182
+ "@typescript-eslint/no-unused-expressions": "error",
183
+ "@typescript-eslint/no-var-requires": "error",
184
+ "one-var": [
185
+ "error",
186
+ "never"
187
+ ],
188
+ "@typescript-eslint/no-explicit-any": "warn",
189
+ "no-cond-assign": [
190
+ "error",
191
+ "always"
192
+ ],
193
+ "@typescript-eslint/consistent-type-assertions": "off",
194
+ "jsdoc/check-alignment": "error",
195
+ "no-empty": "error",
196
+ "quotes": [
197
+ "error",
198
+ "single"
199
+ ],
200
+ "semi": [
201
+ "error",
202
+ "always"
203
+ ],
204
+ "eqeqeq": [
205
+ "error",
206
+ "smart"
207
+ ],
208
+ "valid-typeof": [
209
+ "error",
210
+ {
211
+ "requireStringLiterals": true
212
+ }
213
+ ],
214
+ "camelcase": [
215
+ "error",
216
+ {
217
+ "properties": "always",
218
+ "ignoreDestructuring": true,
219
+ "ignoreImports": true
220
+ }
221
+ ],
222
+ "no-irregular-whitespace": [
223
+ "error",
224
+ {
225
+ "skipStrings": true,
226
+ "skipComments": true,
227
+ "skipRegExps": true,
228
+ "skipTemplates": true
229
+ }
230
+ ],
231
+ "valid-jsdoc": [
232
+ "error",
233
+ {
234
+ "prefer": {
235
+ "arg": "param",
236
+ "argument": "param",
237
+ "class": "constructor",
238
+ "return": "returns",
239
+ "virtual": "abstract"
240
+ }
241
+ }
242
+ ],
243
+ "no-var": "error",
244
+ "radix": "error"
245
+ },
246
+ "reportUnusedDisableDirectives": true,
247
+ "overrides": [
248
+ {
249
+ "files": [
250
+ "node_modules",
251
+ "dist",
252
+ "public",
253
+ "coverage",
254
+ "test-report"
255
+ ],
256
+ "rules": {
257
+ "no-unused-expressions": "off"
258
+ }
259
+ }
260
+ ]
261
+ }
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * filename: ej2-angular-base.umd.min.js
3
- * version : 25.2.4
3
+ * version : 26.1.35
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !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 r(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[o]=new n.EventEmitter(!1),t[o]=t.propCollection[o]):r[o]=new n.EventEmitter(!1)}!0!==i&&t.setProperties(r,!0)}}function s(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 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,r=e.elementRef.nativeElement.propName;return function(n,s,a){var o={$implicit:n},l=i||s.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=s&&s.registeredTemplate?s.registeredTemplate:t.getValue("currentInstance.registeredTemplate",l);return a=a&&s.registeredTemplate?a:r,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],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[a],this);"object"==typeof o&&o&&o.elementRef&&(t.getValue(-1!==s[a].indexOf("Ref")?s[a]:s[a]+"Ref",this)||t.setValue(-1!==s[a].indexOf("Ref")?s[a]:s[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",s[a].replace("Ref",""),o.elementRef.nativeElement)))}for(var l=0,h=s=(s=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],r=e[i];this.propCollection[i]=r.currentValue}this.isUpdated=!1,this.hasChanges=!0},e.prototype.clearTemplate=function(e){s(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[r]])){var s=t.getValue(i[r],this),a=this.propCollection[this.property][0][i[r]];t.isNullOrUndefined(s)||this.propCollection[i[r]]===s||a===s||(t.setValue(i[r],s,this.propCollection[this.property][0]),t.setValue(i[r],s,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 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}(),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,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[s].propCollection.dataSource&&(this.list[s].dataSource&&this.list[s].propCollection.dataSource!==this.list[s].dataSource&&(this.list[s].propCollection.dataSource=this.list[s].dataSource,this.list[s].hasChanges=!0),"series"!==this.list[s].property&&(i=JSON.stringify(this.list[s].propCollection.dataSource)!==JSON.stringify(r[s].propCollection.dataSource))),i=this.list[s].hasChanges!==r[s].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 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 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,r=0;r<i;r++)/_ngcontent/g.test(n[r].name)&&(t=n[r].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[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[i]);s<a.length;s++){var o=a[s],l=r[o];l&&/object/.test(typeof l)&&0!==Object.keys(l).length&&(l.parent||l.parentObj)&&(t[i][o]=null)}else(r.parent||r.parentObj)&&(t[i]=null)}}))})},e.prototype.clearTemplate=function(e,t){s(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;(y=t.getValue("instance.list",s))&&y.length&&(o=y[0].directivePropList);var l=!0;if(n.getModuleName&&"gantt"===n.getModuleName()&&(l=!1),o&&l&&-1===o.indexOf(s.instance.propertyName))for(var h=Object.keys(s.instance.list[0].propCollection),p=0;p<s.instance.list.length;p++){s.instance.list[p].propCollection[s.instance.propertyName]=[];for(var c={},u=0;u<h.length;u++){c[T=h[u]]=s.instance.list[p].propCollection[T]}for(var g=function(e){var n=s.instance.list[p].tags[e],i=t.getValue("child"+n.substring(0,1).toUpperCase()+n.substring(1),s.instance.list[p]);if(i){var r=s.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 r=e.list[0].tags[0];if(r){var s=t.getValue("child"+r.substring(0,1).toUpperCase()+r.substring(1),e.list[i]);s&&(e.list[i].tagObjects.push({instance:s,name:r}),n.push(s))}}if(0!==n.length)for(var o=0;o<n.length;o++)a(n[o])};a(r),s.instance.list[p].tagObjects.push({instance:i,name:n})}},f=0;f<s.instance.list[p].tags.length;f++)g(f);s.instance.list[p].propCollection[s.instance.propertyName].push(c)}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|chart/.test(n.getModuleName()))&&(n[s.name]=s.instance.list,d=!0);for(var v=0,m=s.instance.list;v<m.length;v++){var y=m[v],C=s.instance.list.indexOf(y),b=t.getValue(s.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 T;T=(T=E[O]).replace(/Ref/,""),b.properties[T]=b.properties[T]?b.properties[T]:b.propCollection[T]}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&&(a[s.name]=s.instance.getProperties(),n.setProperties(a,s.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,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)},s=this,a=0,o=e;a<o.length;a++){r(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 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}(),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),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){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=r,e.clearTemplate=s,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[s];s+1===i.length?r[a]=void 0===t?{}:t:void 0===r[a]&&(r[a]={}),r=r[a]}return r},e.compile=a,e.Template=function(e){return function(n,i){var r={set:function(e){return function(n){void 0!==n&&(t.setValue(e+"Ref",n,this),"string"!=typeof n?(n.elementRef.nativeElement._viewContainerRef=this.viewContainerRef,n.elementRef.nativeElement.propName=e):this.saveChanges&&(this.saveChanges(e,n,void 0),this.dataBind()))}}(i),get:function(e,n){return function(){return t.getValue(e+"Ref",this)||n}}(i,e),enumerable:!0,configurable:!0};Object.defineProperty(n,i,r)}},Object.defineProperty(e,"__esModule",{value:!0})});
10
+ !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})});
11
11
  //# sourceMappingURL=ej2-angular-base.umd.min.js.map