@syncfusion/ej2-navigations 22.2.7 → 22.2.8
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/CHANGELOG.md +2 -0
- package/dist/ej2-navigations.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +54 -26
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +54 -26
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/tab/tab-model.d.ts +6 -0
- package/src/tab/tab.d.ts +5 -0
- package/src/tab/tab.js +6 -0
- package/src/toolbar/toolbar.d.ts +1 -0
- package/src/toolbar/toolbar.js +48 -26
|
@@ -5191,7 +5191,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5191
5191
|
this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
|
|
5192
5192
|
}
|
|
5193
5193
|
if (this.isReact) {
|
|
5194
|
-
this.
|
|
5194
|
+
this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
|
|
5195
5195
|
}
|
|
5196
5196
|
var btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
|
|
5197
5197
|
if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
|
|
@@ -5504,6 +5504,30 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5504
5504
|
nextEle = innerItems[++eleIndex];
|
|
5505
5505
|
}
|
|
5506
5506
|
};
|
|
5507
|
+
Toolbar.prototype.clearToolbarTemplate = function (templateEle) {
|
|
5508
|
+
if (this.registeredTemplate && this.registeredTemplate["" + 'template']) {
|
|
5509
|
+
var registeredTemplates = this.registeredTemplate;
|
|
5510
|
+
for (var index = 0; index < registeredTemplates["" + 'template'].length; index++) {
|
|
5511
|
+
var registeredItem = registeredTemplates["" + 'template'][parseInt(index.toString(), 10)].rootNodes[0];
|
|
5512
|
+
var closestItem = closest(registeredItem, '.' + CLS_ITEM);
|
|
5513
|
+
if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
|
|
5514
|
+
this.clearTemplate(['template'], [registeredTemplates["" + 'template'][parseInt(index.toString(), 10)]]);
|
|
5515
|
+
break;
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
}
|
|
5519
|
+
else if (this.portals && this.portals.length > 0) {
|
|
5520
|
+
var portals = this.portals;
|
|
5521
|
+
for (var index = 0; index < portals.length; index++) {
|
|
5522
|
+
var portalItem = portals[parseInt(index.toString(), 10)];
|
|
5523
|
+
var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
|
|
5524
|
+
if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
|
|
5525
|
+
this.clearTemplate(['template'], index);
|
|
5526
|
+
break;
|
|
5527
|
+
}
|
|
5528
|
+
}
|
|
5529
|
+
}
|
|
5530
|
+
};
|
|
5507
5531
|
/**
|
|
5508
5532
|
* Gets called when the model property changes.The data that describes the old and new values of the property that changed.
|
|
5509
5533
|
*
|
|
@@ -5526,31 +5550,29 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5526
5550
|
var index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
|
|
5527
5551
|
var property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
|
|
5528
5552
|
var newProperty = Object(newProp.items[parseInt(index.toString(), 10)])["" + property];
|
|
5529
|
-
if (
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
this.tbarEle.splice(this.items.length, 1);
|
|
5553
|
-
}
|
|
5553
|
+
if (this.tbarAlign || property === 'align') {
|
|
5554
|
+
this.refresh();
|
|
5555
|
+
this.trigger('created');
|
|
5556
|
+
break;
|
|
5557
|
+
}
|
|
5558
|
+
var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
|
|
5559
|
+
var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
|
|
5560
|
+
if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
|
|
5561
|
+
--this.popupPriCount;
|
|
5562
|
+
}
|
|
5563
|
+
if (isNullOrUndefined(this.scrollModule)) {
|
|
5564
|
+
this.destroyMode();
|
|
5565
|
+
}
|
|
5566
|
+
var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
|
|
5567
|
+
if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
|
|
5568
|
+
this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
|
|
5569
|
+
}
|
|
5570
|
+
detach(itemCol[parseInt(index.toString(), 10)]);
|
|
5571
|
+
this.tbarEle.splice(index, 1);
|
|
5572
|
+
this.addItems([this.items[parseInt(index.toString(), 10)]], index);
|
|
5573
|
+
this.items.splice(index, 1);
|
|
5574
|
+
if (this.items[parseInt(index.toString(), 10)].template) {
|
|
5575
|
+
this.tbarEle.splice(this.items.length, 1);
|
|
5554
5576
|
}
|
|
5555
5577
|
}
|
|
5556
5578
|
}
|
|
@@ -9010,6 +9032,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9010
9032
|
}
|
|
9011
9033
|
};
|
|
9012
9034
|
Tab.prototype.clearTabTemplate = function (templateEle, templateName, className) {
|
|
9035
|
+
if (!this.clearTemplates) {
|
|
9036
|
+
return;
|
|
9037
|
+
}
|
|
9013
9038
|
if (this.registeredTemplate && this.registeredTemplate[templateName]) {
|
|
9014
9039
|
var registeredTemplates = this.registeredTemplate;
|
|
9015
9040
|
for (var index = 0; index < registeredTemplates[templateName].length; index++) {
|
|
@@ -9912,6 +9937,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9912
9937
|
__decorate$7([
|
|
9913
9938
|
Property(false)
|
|
9914
9939
|
], Tab.prototype, "allowDragAndDrop", void 0);
|
|
9940
|
+
__decorate$7([
|
|
9941
|
+
Property(true)
|
|
9942
|
+
], Tab.prototype, "clearTemplates", void 0);
|
|
9915
9943
|
__decorate$7([
|
|
9916
9944
|
Complex({}, TabAnimationSettings)
|
|
9917
9945
|
], Tab.prototype, "animation", void 0);
|