@syncfusion/ej2-angular-base 28.2.4 → 29.1.33
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.
- package/README.md +1 -1
- package/dist/ej2-angular-base.umd.min.js +10 -1
- package/dist/ej2-angular-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-angular-base.es2015.js +11 -2
- package/dist/es6/ej2-angular-base.es2015.js.map +1 -1
- package/dist/es6/ej2-angular-base.es5.js +20 -10
- package/dist/es6/ej2-angular-base.es5.js.map +1 -1
- package/dist/global/ej2-angular-base.min.js +10 -1
- package/dist/global/ej2-angular-base.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +100 -100
- package/src/component-base.js +12 -3
- package/src/util.js +8 -7
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
package/src/component-base.js
CHANGED
|
@@ -144,7 +144,7 @@ var ComponentBase = /** @class */ (function () {
|
|
|
144
144
|
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
if (!ngtempRef
|
|
147
|
+
if (!ngtempRef && !tempAfterViewThis.getModuleName().includes('btn')) {
|
|
148
148
|
setTimeout(function () {
|
|
149
149
|
appendToComponent(tempAfterViewThis);
|
|
150
150
|
});
|
|
@@ -276,6 +276,15 @@ var ComponentBase = /** @class */ (function () {
|
|
|
276
276
|
}
|
|
277
277
|
for (var _b = 0, _c = tagObject.instance.list; _b < _c.length; _b++) {
|
|
278
278
|
var list = _c[_b];
|
|
279
|
+
if (list.tags) {
|
|
280
|
+
for (var _d = 0, _e = list.tags; _d < _e.length; _d++) {
|
|
281
|
+
var tag = _e[_d];
|
|
282
|
+
var innerChild = getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), list);
|
|
283
|
+
if (innerChild) {
|
|
284
|
+
list.tagObjects.push({ instance: innerChild, name: tag });
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
279
288
|
var curIndex = tagObject.instance.list.indexOf(list);
|
|
280
289
|
var curChild = getValue(tagObject.name, tempAfterContentThis)["".concat(curIndex)];
|
|
281
290
|
var complexTemplates = Object.keys(curChild);
|
|
@@ -283,8 +292,8 @@ var ComponentBase = /** @class */ (function () {
|
|
|
283
292
|
return /Ref$/i.test(val);
|
|
284
293
|
});
|
|
285
294
|
if (curChild.properties && Object.keys(curChild.properties).length !== 0) {
|
|
286
|
-
for (var
|
|
287
|
-
var complexPropName = complexTemplates_2[
|
|
295
|
+
for (var _f = 0, complexTemplates_2 = complexTemplates; _f < complexTemplates_2.length; _f++) {
|
|
296
|
+
var complexPropName = complexTemplates_2[_f];
|
|
288
297
|
complexPropName = complexPropName.replace(/Ref/, '');
|
|
289
298
|
curChild.properties["".concat(complexPropName)] = !curChild.properties["".concat(complexPropName)] ?
|
|
290
299
|
curChild.propCollection["".concat(complexPropName)] : curChild.properties["".concat(complexPropName)];
|
package/src/util.js
CHANGED
|
@@ -65,15 +65,16 @@ export function registerEvents(eventList, obj, direct) {
|
|
|
65
65
|
* @returns {void}
|
|
66
66
|
*/
|
|
67
67
|
export function clearTemplate(_this, templateNames, index) {
|
|
68
|
+
var _a;
|
|
68
69
|
var regTemplates = Object.keys(_this.registeredTemplate);
|
|
69
70
|
if (regTemplates.length) {
|
|
70
71
|
/* istanbul ignore next */
|
|
71
72
|
var regProperties = templateNames && templateNames.filter(function (val) {
|
|
72
73
|
return (/\./g.test(val) ? false : true);
|
|
73
74
|
});
|
|
74
|
-
var tabaccordionTemp = /tab|accordion|toolbar/.test(_this.getModuleName());
|
|
75
|
-
for (var _i = 0,
|
|
76
|
-
var registeredTemplate =
|
|
75
|
+
var tabaccordionTemp = /tab|accordion|toolbar/.test((_a = _this.getModuleName) === null || _a === void 0 ? void 0 : _a.call(_this));
|
|
76
|
+
for (var _i = 0, _b = (regProperties && regProperties || regTemplates); _i < _b.length; _i++) {
|
|
77
|
+
var registeredTemplate = _b[_i];
|
|
77
78
|
/* istanbul ignore next */
|
|
78
79
|
if (index && index.length) {
|
|
79
80
|
for (var e = 0; e < index.length; e++) {
|
|
@@ -99,8 +100,8 @@ export function clearTemplate(_this, templateNames, index) {
|
|
|
99
100
|
}
|
|
100
101
|
else {
|
|
101
102
|
if (_this.registeredTemplate["".concat(registeredTemplate)]) {
|
|
102
|
-
for (var
|
|
103
|
-
var rt = _c
|
|
103
|
+
for (var _c = 0, _d = _this.registeredTemplate["".concat(registeredTemplate)]; _c < _d.length; _c++) {
|
|
104
|
+
var rt = _d[_c];
|
|
104
105
|
if (!rt.destroyed) {
|
|
105
106
|
if (rt._view) {
|
|
106
107
|
var pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
|
@@ -129,8 +130,8 @@ export function clearTemplate(_this, templateNames, index) {
|
|
|
129
130
|
})));
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
|
-
for (var
|
|
133
|
-
var tagObject = _e
|
|
133
|
+
for (var _e = 0, _f = _this.tagObjects; _e < _f.length; _e++) {
|
|
134
|
+
var tagObject = _f[_e];
|
|
134
135
|
_loop_1(tagObject);
|
|
135
136
|
}
|
|
136
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/styles/material3.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|