@syncfusion/ej2-angular-base 19.3.55 → 19.3.60

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 (52) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/bug.md +60 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/feature.md +37 -0
  3. package/CHANGELOG.md +80 -11
  4. package/dist/ej2-angular-base.umd.min.js +1 -10
  5. package/dist/ej2-angular-base.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-angular-base.es2015.js +122 -33
  7. package/dist/es6/ej2-angular-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-angular-base.es5.js +130 -36
  9. package/dist/es6/ej2-angular-base.es5.js.map +1 -1
  10. package/dist/global/ej2-angular-base.min.js +1 -10
  11. package/dist/global/ej2-angular-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/package.json +71 -82
  14. package/schematics/generators/component-builder.js +14 -14
  15. package/schematics/generators/template/schema.json +1 -1
  16. package/schematics/ng-add/index.js +2 -2
  17. package/schematics/ng-add/schema.json +1 -1
  18. package/schematics/ng-add/theme.js +5 -4
  19. package/schematics/utils/get-project.js +3 -0
  20. package/schematics/utils/helpers/helpers.d.ts +1 -1
  21. package/schematics/utils/project-style-file.js +2 -2
  22. package/src/complex-array-base.js +14 -5
  23. package/src/component-base.js +76 -19
  24. package/src/form-base.d.ts +2 -1
  25. package/src/form-base.js +12 -3
  26. package/src/template.js +7 -2
  27. package/src/util.js +21 -7
  28. package/styles/bootstrap-dark.scss +1 -1
  29. package/styles/bootstrap.scss +1 -1
  30. package/styles/bootstrap4.scss +1 -1
  31. package/styles/bootstrap5-dark.scss +1 -1
  32. package/styles/bootstrap5.scss +1 -1
  33. package/styles/fabric-dark.scss +1 -1
  34. package/styles/fabric.scss +1 -1
  35. package/styles/fluent-dark.css +0 -0
  36. package/styles/fluent-dark.scss +1 -0
  37. package/styles/fluent.css +0 -0
  38. package/styles/fluent.scss +1 -0
  39. package/styles/highcontrast-light.scss +1 -1
  40. package/styles/highcontrast.scss +1 -1
  41. package/styles/material-dark.css +0 -1
  42. package/styles/material-dark.scss +1 -1
  43. package/styles/material.css +0 -1
  44. package/styles/material.scss +1 -1
  45. package/styles/material3-dark.css +54 -0
  46. package/styles/material3-dark.scss +1 -0
  47. package/styles/material3.css +110 -0
  48. package/styles/material3.scss +1 -0
  49. package/styles/tailwind-dark.css +0 -1
  50. package/styles/tailwind-dark.scss +1 -1
  51. package/styles/tailwind.css +0 -1
  52. package/styles/tailwind.scss +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const change_1 = require("@schematics/angular/utility/change");
4
- const config_1 = require("@schematics/angular/utility/config");
4
+ const helpers_1 = require("../utils/helpers/helpers");
5
5
  const get_project_1 = require("../utils/get-project");
6
6
  const package_1 = require("../utils/package");
7
7
  const project_style_file_1 = require("../utils/project-style-file");
@@ -21,12 +21,13 @@ exports.addEJ2ThemeToPackageJson = addEJ2ThemeToPackageJson;
21
21
  */
22
22
  function addEJ2Theme(options, theme) {
23
23
  return (host) => {
24
- const themePath = `@import \'..\/node_modules/@syncfusion/ej2-${theme}-theme/styles/${theme}.css\';\n`;
24
+ let themePath = `@import \'..\/node_modules/@syncfusion/ej2-${theme}-theme/styles/${theme}.css\'`;
25
25
  const strippedThemePath = `./node_modules/@syncfusion/ej2-${theme}-theme/styles/${theme}.css`;
26
- const workspace = config_1.getWorkspace(host);
26
+ const workspace = helpers_1.getWorkspace(host);
27
27
  const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
28
- const stylesPath = project_style_file_1.getProjectStyleFile(project, 'css');
28
+ const stylesPath = project_style_file_1.getProjectStyleFile(project);
29
29
  const stylesBuffer = host.read(stylesPath);
30
+ themePath += stylesPath.includes("sass") ? `\n` : `;\n`;
30
31
  // Because the build setup for the Angular CLI can be changed so dramatically, we can't know
31
32
  // where to generate anything if the project is not using the default config for build and test.
32
33
  project_style_file_1.assertDefaultBuildersConfigured(project);
@@ -9,6 +9,9 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  function getProjectFromWorkspace(workspace, projectName) {
11
11
  let project = workspace.projects[projectName || workspace.defaultProject];
12
+ if (workspace.defaultProject === undefined) {
13
+ project = workspace.projects[projectName || Object.keys(workspace.projects)[0]];
14
+ }
12
15
  if (!project) {
13
16
  throw new Error(`Could not find project in workspace: ${projectName}`);
14
17
  }
@@ -93,7 +93,7 @@ export interface ProjectBuildOptions {
93
93
  [k: string]: any;
94
94
  }
95
95
  /** Gets the Angular CLI workspace config (angular.json) */
96
- export declare function getWorkspace(host: Tree): Workspace;
96
+ export declare function getWorkspace(host: Tree): any;
97
97
  /**
98
98
  * Gets a project from the Angular CLI workspace. If no project name is given, the first project
99
99
  * will be retrieved.
@@ -10,9 +10,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const core_1 = require("@angular-devkit/core");
11
11
  const schematics_1 = require("@angular-devkit/schematics");
12
12
  /** Regular expression that matches all possible Angular CLI default style files. */
13
- const defaultStyleFileRegex = /styles\.(c|le|sc)ss/;
13
+ const defaultStyleFileRegex = /styles\.(c|le|sa|sc)ss/;
14
14
  /** Regular expression that matches all files that have a proper stylesheet extension. */
15
- const validStyleFileRegex = /\.(c|le|sc)ss/;
15
+ const validStyleFileRegex = /\.(c|le|sa|sc)ss/;
16
16
  /**
17
17
  * Gets a style file with the given extension in a project and returns its path. If no
18
18
  * extension is specified, any style file with a valid extension will be returned.
@@ -21,8 +21,14 @@ var ComplexBase = /** @class */ (function () {
21
21
  var templateProperties = Object.keys(this);
22
22
  for (var i = 0; i < templateProperties.length; i++) {
23
23
  var tempProp = getValue(templateProperties[i], this);
24
- if (typeof tempProp === 'object' && tempProp.elementRef && !getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)) {
25
- setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
24
+ if (typeof tempProp === 'object' && tempProp && tempProp.elementRef) {
25
+ if (!getValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', this)) {
26
+ setValue(templateProperties[i].indexOf('Ref') !== -1 ? templateProperties[i] : templateProperties[i] + 'Ref', tempProp, this);
27
+ }
28
+ if (getValue("viewContainerRef", this) && !getValue("_viewContainerRef", tempProp.elementRef.nativeElement) && !getValue("propName", tempProp.elementRef.nativeElement)) {
29
+ setValue("_viewContainerRef", getValue("viewContainerRef", this), tempProp.elementRef.nativeElement);
30
+ setValue("propName", templateProperties[i].replace("Ref", ''), tempProp.elementRef.nativeElement);
31
+ }
26
32
  }
27
33
  }
28
34
  templateProperties = Object.keys(this);
@@ -41,7 +47,7 @@ var ComplexBase = /** @class */ (function () {
41
47
  if (this.directivePropList) {
42
48
  for (var k = 0; k < this.directivePropList.length; k++) {
43
49
  var dirPropName = this.directivePropList[k];
44
- if (propList.indexOf(dirPropName) !== -1 && getValue(dirPropName, this)) {
50
+ if (propList.indexOf(dirPropName) !== -1 && (getValue(dirPropName, this) === false || getValue(dirPropName, this))) {
45
51
  setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
46
52
  }
47
53
  }
@@ -175,9 +181,12 @@ var ArrayBase = /** @class */ (function () {
175
181
  this.list[i].propCollection.dataSource = this.list[i].dataSource;
176
182
  this.list[i].hasChanges = true;
177
183
  }
178
- isSourceChanged = (JSON.stringify(this.list[i].propCollection.dataSource) !==
179
- JSON.stringify(childrenDataSource[i].propCollection.dataSource));
184
+ if (this.list[i].property !== "series") {
185
+ isSourceChanged = (JSON.stringify(this.list[i].propCollection.dataSource) !==
186
+ JSON.stringify(childrenDataSource[i].propCollection.dataSource));
187
+ }
180
188
  }
189
+ isSourceChanged = this.list[i].hasChanges !== childrenDataSource[i].hasChanges;
181
190
  }
182
191
  }
183
192
  this.hasNewChildren = (this.list.length !== this.children.length || isSourceChanged) ? true : null;
@@ -75,6 +75,19 @@ var ComponentBase = /** @class */ (function () {
75
75
  tempOnThis.tagObjects.push(tagObject);
76
76
  }
77
77
  var complexTemplates = Object.keys(tempOnThis);
78
+ for (var i = 0; i < complexTemplates.length; i++) {
79
+ var compProp = getValue(complexTemplates[i], tempOnThis);
80
+ if (typeof compProp === 'object' && compProp && compProp.elementRef) {
81
+ if (typeof compProp === 'object' && compProp && compProp.elementRef && complexTemplates[i].indexOf('_') !== -1 && complexTemplates[i].indexOf('Ref') === -1) {
82
+ setValue(complexTemplates[i] + 'Ref', compProp, tempOnThis);
83
+ }
84
+ if (tempOnThis.viewContainerRef && !getValue("_viewContainerRef", compProp.elementRef.nativeElement) && !getValue("propName", compProp.elementRef.nativeElement)) {
85
+ setValue("_viewContainerRef", tempOnThis.viewContainerRef, compProp.elementRef.nativeElement);
86
+ setValue("propName", complexTemplates[i].replace("Ref", ''), compProp.elementRef.nativeElement);
87
+ }
88
+ }
89
+ }
90
+ complexTemplates = Object.keys(tempOnThis);
78
91
  complexTemplates = complexTemplates.filter(function (val) {
79
92
  return /Ref$/i.test(val) && /\_/i.test(val);
80
93
  });
@@ -124,6 +137,7 @@ var ComponentBase = /** @class */ (function () {
124
137
  templateProperties = templateProperties.filter(function (val) {
125
138
  return /Ref$/i.test(val);
126
139
  });
140
+ var ngtempRef = tempAfterViewThis.getModuleName() === 'DocumentEditor';
127
141
  for (var _i = 0, templateProperties_1 = templateProperties; _i < templateProperties_1.length; _i++) {
128
142
  var tempName = templateProperties_1[_i];
129
143
  var propName = tempName.replace('Ref', '');
@@ -131,13 +145,21 @@ var ComponentBase = /** @class */ (function () {
131
145
  }
132
146
  // Used setTimeout for template binding
133
147
  // Refer Link: https://github.com/angular/angular/issues/6005
134
- setTimeout(function () {
148
+ var appendToComponent = function (tempAfterViewThis) {
135
149
  /* istanbul ignore else */
136
- if (typeof window !== 'undefined' && document.body.contains(tempAfterViewThis.element)) {
150
+ if (typeof window !== 'undefined' && tempAfterViewThis.element) {
137
151
  tempAfterViewThis.appendTo(tempAfterViewThis.element);
138
152
  tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
139
153
  }
140
- });
154
+ };
155
+ if (!ngtempRef && !tempAfterViewThis.getModuleName().includes('btn')) {
156
+ setTimeout(function () {
157
+ appendToComponent(tempAfterViewThis);
158
+ });
159
+ }
160
+ else {
161
+ appendToComponent(tempAfterViewThis);
162
+ }
141
163
  };
142
164
  // tslint:disable-next-line:no-any
143
165
  ComponentBase.prototype.ngOnDestroy = function (isTempRef) {
@@ -149,9 +171,28 @@ var ComponentBase = /** @class */ (function () {
149
171
  tempOnDestroyThis.destroy();
150
172
  tempOnDestroyThis.clearTemplate(null);
151
173
  // removing bounded events and tagobjects from component after destroy
152
- tempOnDestroyThis.ngBoundedEvents = {};
153
- tempOnDestroyThis.tagObjects = {};
154
- tempOnDestroyThis.ngEle = null;
174
+ setTimeout(function () {
175
+ for (var _i = 0, _a = Object.keys(tempOnDestroyThis); _i < _a.length; _i++) {
176
+ var key = _a[_i];
177
+ var value = tempOnDestroyThis[key];
178
+ if (value && /object/.test(typeof value) && Object.keys(value).length !== 0) {
179
+ if (/properties|changedProperties|childChangedProperties|oldProperties|moduleLoader/.test(key)) {
180
+ for (var _b = 0, _c = Object.keys(tempOnDestroyThis[key]); _b < _c.length; _b++) {
181
+ var propKey = _c[_b];
182
+ var propValue = value[propKey];
183
+ if (propValue && /object/.test(typeof propValue) && Object.keys(propValue).length !== 0 && (propValue.parent || propValue.parentObj)) {
184
+ tempOnDestroyThis[key][propKey] = null;
185
+ }
186
+ }
187
+ }
188
+ else {
189
+ if (value.parent || value.parentObj) {
190
+ tempOnDestroyThis[key] = null;
191
+ }
192
+ }
193
+ }
194
+ }
195
+ });
155
196
  }
156
197
  });
157
198
  };
@@ -191,24 +232,40 @@ var ComponentBase = /** @class */ (function () {
191
232
  var complexPropName = compDirPropList[k];
192
233
  obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
193
234
  }
194
- for (var i = 0; i < tagObject.instance.list[h].tags.length; i++) {
235
+ var _loop_1 = function (i) {
195
236
  var tag = tagObject.instance.list[h].tags[i];
196
237
  var childObj = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tagObject.instance.list[h]);
197
238
  if (childObj) {
198
239
  var innerchildObj = tagObject.instance.list[h]['child' + tag.substring(0, 1).toUpperCase() + tag.substring(1)];
199
- if (innerchildObj) {
200
- for (var j = 0; j < innerchildObj.list.length; j++) {
201
- var innerTag = innerchildObj.list[0].tags[0];
202
- if (innerTag) {
203
- var innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchildObj.list[j]);
204
- if (innerchildTag) {
205
- innerchildObj.list[j].tagObjects.push({ instance: innerchildTag, name: innerTag });
240
+ // Update the inner child tag objects
241
+ var updateChildTag_1 = function (innerchild) {
242
+ var innerLevelTag = [];
243
+ if (innerchild) {
244
+ for (var j = 0; j < innerchild.list.length; j++) {
245
+ var innerTag = innerchild.list[0].tags[0];
246
+ if (innerTag) {
247
+ var innerchildTag = getValue('child' + innerTag.substring(0, 1).toUpperCase() + innerTag.substring(1), innerchild.list[j]);
248
+ if (innerchildTag) {
249
+ innerchild.list[j].tagObjects.push({ instance: innerchildTag, name: innerTag });
250
+ innerLevelTag.push(innerchildTag);
251
+ }
206
252
  }
207
253
  }
208
254
  }
209
- }
255
+ // check for inner level tag
256
+ if (innerLevelTag.length !== 0) {
257
+ for (var l = 0; l < innerLevelTag.length; l++) {
258
+ updateChildTag_1(innerLevelTag[l]);
259
+ }
260
+ }
261
+ ;
262
+ };
263
+ updateChildTag_1(innerchildObj);
210
264
  tagObject.instance.list[h].tagObjects.push({ instance: childObj, name: tag });
211
265
  }
266
+ };
267
+ for (var i = 0; i < tagObject.instance.list[h].tags.length; i++) {
268
+ _loop_1(i);
212
269
  }
213
270
  tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
214
271
  }
@@ -219,7 +276,7 @@ var ComponentBase = /** @class */ (function () {
219
276
  }
220
277
  else {
221
278
  /* istanbul ignore next */
222
- if ((tempAfterContentThis[tagObject.name].length !== tagObject.instance.list.length) || (tempAfterContentThis.getModuleName() === 'diagram')) {
279
+ if ((tempAfterContentThis[tagObject.name].length !== tagObject.instance.list.length) || (/diagram|DashboardLayout/.test(tempAfterContentThis.getModuleName()))) {
223
280
  tempAfterContentThis[tagObject.name] = tagObject.instance.list;
224
281
  }
225
282
  for (var _b = 0, _c = tagObject.instance.list; _b < _c.length; _b++) {
@@ -230,7 +287,7 @@ var ComponentBase = /** @class */ (function () {
230
287
  complexTemplates = complexTemplates.filter(function (val) {
231
288
  return /Ref$/i.test(val);
232
289
  });
233
- if (curChild.properties && Object.keys(curChild.properties).length !== 0 && /chart/.test(tempAfterContentThis.getModuleName())) {
290
+ if (curChild.properties && Object.keys(curChild.properties).length !== 0) {
234
291
  for (var _d = 0, complexTemplates_2 = complexTemplates; _d < complexTemplates_2.length; _d++) {
235
292
  var complexPropName = complexTemplates_2[_d];
236
293
  complexPropName = complexPropName.replace(/Ref/, '');
@@ -266,7 +323,7 @@ var ComponentBase = /** @class */ (function () {
266
323
  };
267
324
  ComponentBase.prototype.addTwoWay = function (propList) {
268
325
  var _this = this;
269
- var _loop_1 = function (prop) {
326
+ var _loop_2 = function (prop) {
270
327
  getValue(prop, this_1);
271
328
  Object.defineProperty(this_1, prop, {
272
329
  get: function () {
@@ -279,7 +336,7 @@ var ComponentBase = /** @class */ (function () {
279
336
  var this_1 = this;
280
337
  for (var _i = 0, propList_1 = propList; _i < propList_1.length; _i++) {
281
338
  var prop = propList_1[_i];
282
- _loop_1(prop);
339
+ _loop_2(prop);
283
340
  }
284
341
  };
285
342
  ComponentBase.prototype.addEventListener = function (eventName, handler) {
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, ChangeDetectorRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  /**
4
4
  * Angular Form Base Module
@@ -26,6 +26,7 @@ export declare class FormBase<T> implements ControlValueAccessor {
26
26
  preventChange: boolean;
27
27
  isUpdated: boolean;
28
28
  oldValue: any;
29
+ cdr: ChangeDetectorRef;
29
30
  localChange(e: {
30
31
  value?: T;
31
32
  checked?: T;
package/src/form-base.js CHANGED
@@ -39,6 +39,7 @@ var FormBase = /** @class */ (function () {
39
39
  }
40
40
  }
41
41
  }
42
+ // this.cdr.markForCheck();
42
43
  };
43
44
  FormBase.prototype.registerOnChange = function (registerFunction) {
44
45
  this.propagateChange = registerFunction;
@@ -64,16 +65,21 @@ var FormBase = /** @class */ (function () {
64
65
  // Used setTimeout for template binding
65
66
  // Refer Link: https://github.com/angular/angular/issues/6005
66
67
  // Removed setTimeout, Because we have called markForCheck() method in Angular Template Compiler
67
- // setTimeout(() => {
68
68
  /* istanbul ignore else */
69
69
  if (typeof window !== 'undefined') {
70
- tempFormAfterViewThis.appendTo(tempFormAfterViewThis.element);
70
+ if ((tempFormAfterViewThis.getModuleName()).includes('dropdown')) {
71
+ setTimeout(function () {
72
+ tempFormAfterViewThis.appendTo(tempFormAfterViewThis.element);
73
+ });
74
+ }
75
+ else {
76
+ tempFormAfterViewThis.appendTo(tempFormAfterViewThis.element);
77
+ }
71
78
  var ele = tempFormAfterViewThis.inputElement || tempFormAfterViewThis.element;
72
79
  ele.addEventListener('focus', tempFormAfterViewThis.ngOnFocus.bind(tempFormAfterViewThis));
73
80
  ele.addEventListener('blur', tempFormAfterViewThis.ngOnBlur.bind(tempFormAfterViewThis));
74
81
  }
75
82
  this.isFormInit = false;
76
- // });
77
83
  };
78
84
  FormBase.prototype.setDisabledState = function (disabled) {
79
85
  this.enabled = !disabled;
@@ -107,6 +113,7 @@ var FormBase = /** @class */ (function () {
107
113
  // When binding Html textbox value to syncfusion textbox, change event triggered dynamically.
108
114
  // To prevent change event, trigger change in component side based on `preventChange` value
109
115
  this.preventChange = this.isFormInit ? false : true;
116
+ // this.cdr.markForCheck();
110
117
  if (value === null) {
111
118
  return;
112
119
  }
@@ -116,6 +123,7 @@ var FormBase = /** @class */ (function () {
116
123
  if (this.skipFromEvent !== true) {
117
124
  this.focus.emit(e);
118
125
  }
126
+ // this.cdr.markForCheck();
119
127
  };
120
128
  FormBase.prototype.ngOnBlur = function (e) {
121
129
  this.propagateTouch();
@@ -123,6 +131,7 @@ var FormBase = /** @class */ (function () {
123
131
  if (this.skipFromEvent !== true) {
124
132
  this.blur.emit(e);
125
133
  }
134
+ // this.cdr.markForCheck();
126
135
  };
127
136
  FormBase.isFormBase = true;
128
137
  return FormBase;
package/src/template.js CHANGED
@@ -5,7 +5,7 @@ var stringCompiler = getTemplateEngine();
5
5
  * Angular Template Compiler
6
6
  */
7
7
  export function compile(templateEle, helper) {
8
- if (typeof templateEle === 'string') {
8
+ if (typeof templateEle === 'string' || (typeof templateEle === 'function' && templateEle.prototype && templateEle.prototype.CSPTemplate)) {
9
9
  return stringCompiler(templateEle, helper);
10
10
  }
11
11
  else {
@@ -17,7 +17,12 @@ export function compile(templateEle, helper) {
17
17
  /* istanbul ignore next */
18
18
  var conRef = contRef_1 ? contRef_1 : component.viewContainerRef;
19
19
  var viewRef = conRef.createEmbeddedView(templateEle, context);
20
- viewRef.markForCheck();
20
+ if (getValue('currentInstance.element.nodeName', conRef) === 'EJS-MENTION') {
21
+ viewRef.detectChanges();
22
+ }
23
+ else {
24
+ viewRef.markForCheck();
25
+ }
21
26
  /* istanbul ignore next */
22
27
  var viewCollection = (component && component.registeredTemplate) ?
23
28
  component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);
package/src/util.js CHANGED
@@ -7,7 +7,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
7
7
  export function applyMixins(derivedClass, baseClass) {
8
8
  baseClass.forEach(function (baseClass) {
9
9
  Object.getOwnPropertyNames(baseClass.prototype).forEach(function (name) {
10
- if (!derivedClass.prototype.hasOwnProperty(name) || baseClass.isFormBase) {
10
+ if (!derivedClass.prototype.hasOwnProperty(name) || (baseClass.isFormBase && name !== 'constructor')) {
11
11
  derivedClass.prototype[name] = baseClass.prototype[name];
12
12
  }
13
13
  });
@@ -50,16 +50,28 @@ export function clearTemplate(_this, templateNames, index) {
50
50
  var regProperties = templateNames && templateNames.filter(function (val) {
51
51
  return (/\./g.test(val) ? false : true);
52
52
  });
53
+ var tabaccordionTemp = /tab|accordion|toolbar/.test(_this.getModuleName());
53
54
  for (var _i = 0, _a = (regProperties && regProperties || regTemplates); _i < _a.length; _i++) {
54
55
  var registeredTemplate = _a[_i];
55
56
  /* istanbul ignore next */
56
57
  if (index && index.length) {
57
58
  for (var e = 0; e < index.length; e++) {
58
- for (var m = 0; m < _this.registeredTemplate.template.length; m++) {
59
- var value = _this.registeredTemplate.template[m].rootNodes[0];
60
- if (value === index[e]) {
61
- var rt = _this.registeredTemplate[registeredTemplate];
62
- rt[m].destroy();
59
+ if (tabaccordionTemp) {
60
+ for (var m = 0; m < _this.registeredTemplate[registeredTemplate].length; m++) {
61
+ var value = _this.registeredTemplate[registeredTemplate][m];
62
+ if (value && value === index[e]) {
63
+ value.destroy();
64
+ _this.registeredTemplate[registeredTemplate].splice(m, 1);
65
+ }
66
+ }
67
+ }
68
+ else {
69
+ for (var m = 0; m < _this.registeredTemplate.template.length; m++) {
70
+ var value = _this.registeredTemplate.template[m].rootNodes[0];
71
+ if (value === index[e]) {
72
+ var rt = _this.registeredTemplate[registeredTemplate];
73
+ rt[m].destroy();
74
+ }
63
75
  }
64
76
  }
65
77
  }
@@ -82,7 +94,9 @@ export function clearTemplate(_this, templateNames, index) {
82
94
  }
83
95
  }
84
96
  }
85
- delete _this.registeredTemplate[registeredTemplate];
97
+ if (!tabaccordionTemp || !index) {
98
+ delete _this.registeredTemplate[registeredTemplate];
99
+ }
86
100
  }
87
101
  }
88
102
  var _loop_1 = function (tagObject) {
@@ -1 +1 @@
1
- @import 'ej2-base/styles/bootstrap-dark-definition.scss';
1
+ @import 'ej2-base/styles/definition/bootstrap-dark.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/bootstrap-definition.scss';
1
+ @import 'ej2-base/styles/definition/bootstrap.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/bootstrap4-definition.scss';
1
+ @import 'ej2-base/styles/definition/bootstrap4.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/bootstrap5-dark-definition.scss';
1
+ @import 'ej2-base/styles/definition/bootstrap5-dark.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/bootstrap5-definition.scss';
1
+ @import 'ej2-base/styles/definition/bootstrap5.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/fabric-dark-definition.scss';
1
+ @import 'ej2-base/styles/definition/fabric-dark.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/fabric-definition.scss';
1
+ @import 'ej2-base/styles/definition/fabric.scss';
File without changes
@@ -0,0 +1 @@
1
+ @import 'ej2-base/styles/definition/fluent-dark.scss';
File without changes
@@ -0,0 +1 @@
1
+ @import 'ej2-base/styles/definition/fluent.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/highcontrast-light-definition.scss';
1
+ @import 'ej2-base/styles/definition/highcontrast-light.scss';
@@ -1 +1 @@
1
- @import 'ej2-base/styles/highcontrast-definition.scss';
1
+ @import 'ej2-base/styles/definition/highcontrast.scss';
@@ -1 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
@@ -1 +1 @@
1
- @import 'ej2-base/styles/material-dark-definition.scss';
1
+ @import 'ej2-base/styles/definition/material-dark.scss';
@@ -1 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
@@ -1 +1 @@
1
- @import 'ej2-base/styles/material-definition.scss';
1
+ @import 'ej2-base/styles/definition/material.scss';
@@ -0,0 +1,54 @@
1
+ :root {
2
+ --color-sf-black: 0, 0, 0;
3
+ --color-sf-white: 255, 255, 255;
4
+ --color-sf-primary: 208, 188, 255;
5
+ --color-sf-primary-container: 79, 55, 139;
6
+ --color-sf-secondary: 204, 194, 220;
7
+ --color-sf-secondary-container: 74, 68, 88;
8
+ --color-sf-tertiary: 239, 184, 200;
9
+ --color-sf-tertiary-container: 99, 59, 72;
10
+ --color-sf-surface: 28, 27, 31;
11
+ --color-sf-surface-variant: 73, 69, 79;
12
+ --color-sf-background: var(--color-sf-surface);
13
+ --color-sf-on-primary: 55, 30, 115;
14
+ --color-sf-on-primary-container: 234, 221, 255;
15
+ --color-sf-on-secondary: 51, 45, 65;
16
+ --color-sf-on-secondary-container: 232, 222, 248;
17
+ --color-sf-on-tertiary: 73, 37, 50;
18
+ --color-sf-on-tertiary-containe: 255, 216, 228;
19
+ --color-sf-on-surface: 230, 225, 229;
20
+ --color-sf-on-surface-variant: 202, 196, 208;
21
+ --color-sf-on-background: 230, 225, 229;
22
+ --color-sf-outline: 147, 143, 153;
23
+ --color-sf-outline-variant: 68, 71, 70;
24
+ --color-sf-shadow: 0, 0, 0;
25
+ --color-sf-surface-tint-color: 208, 188, 255;
26
+ --color-sf-inverse-surface: 230, 225, 229;
27
+ --color-sf-inverse-on-surface: 49, 48, 51;
28
+ --color-sf-inverse-primary: 103, 80, 164;
29
+ --color-sf-scrim: 0, 0, 0;
30
+ --color-sf-error: 242, 184, 181;
31
+ --color-sf-error-container: 140, 29, 24;
32
+ --color-sf-on-error: 96, 20, 16;
33
+ --color-sf-on-error-container: 249, 222, 220;
34
+ --color-sf-success: 83, 202, 23;
35
+ --color-sf-success-container: 22, 62, 2;
36
+ --color-sf-on-success: 13, 39, 0;
37
+ --color-sf-on-success-container: 183, 250, 150;
38
+ --color-sf-info: 71, 172, 251;
39
+ --color-sf-info-container: 0, 67, 120;
40
+ --color-sf-on-info: 0, 51, 91;
41
+ --color-sf-on-info-container: 173, 219, 255;
42
+ --color-sf-warning: 245, 180, 130;
43
+ --color-sf-warning-container: 123, 65, 0;
44
+ --color-sf-on-warning: 99, 52, 0;
45
+ --color-sf-on-warning-container: 255, 220, 193;
46
+ --color-sf-spreadsheet-gridline: 231, 224, 236;
47
+ --color-sf-shadow-focus-ring1: 0 0 0 1px #000000, 0 0 0 3px #ffffff;
48
+ --color-sf-success-text: 0, 0, 0;
49
+ --color-sf-warning-text: 0, 0, 0;
50
+ --color-sf-info-text: 0, 0, 0;
51
+ --color-sf-danger-text: 0, 0, 0;
52
+ --color-sf-diagram-palette-background: var(--color-sf-inverse-surface);
53
+ --color-sf-content-text-color-alt2: var(--color-sf-on-secondary);
54
+ }
@@ -0,0 +1 @@
1
+ @import 'ej2-base/styles/definition/material3-dark.scss';