@syncfusion/ej2-navigations 25.1.35 → 25.1.37
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 +14 -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 +20 -10
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +20 -10
- 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 +6 -6
- package/src/toolbar/toolbar.d.ts +1 -0
- package/src/toolbar/toolbar.js +10 -6
- package/src/treeview/treeview.js +10 -4
|
@@ -4081,16 +4081,21 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4081
4081
|
popObj.enableRtl = false;
|
|
4082
4082
|
popObj.position = { X: 'right', Y: 'top' };
|
|
4083
4083
|
}
|
|
4084
|
-
popObj.dataBind();
|
|
4085
|
-
popObj.refreshPosition();
|
|
4086
|
-
popObj.element.style.top = this.getElementOffsetY() + 'px';
|
|
4087
4084
|
if (this.overflowMode === 'Extended') {
|
|
4088
4085
|
popObj.element.style.minHeight = '0px';
|
|
4086
|
+
popObj.width = this.getToolbarPopupWidth(this.element);
|
|
4089
4087
|
}
|
|
4088
|
+
popObj.dataBind();
|
|
4089
|
+
popObj.refreshPosition();
|
|
4090
|
+
popObj.element.style.top = this.getElementOffsetY() + 'px';
|
|
4090
4091
|
popupNav.classList.add(CLS_TBARNAVACT);
|
|
4091
4092
|
popObj.show({ name: 'FadeIn', duration: 100 });
|
|
4092
4093
|
}
|
|
4093
4094
|
};
|
|
4095
|
+
Toolbar.prototype.getToolbarPopupWidth = function (ele) {
|
|
4096
|
+
var eleStyles = window.getComputedStyle(ele);
|
|
4097
|
+
return parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
|
|
4098
|
+
};
|
|
4094
4099
|
/**
|
|
4095
4100
|
* To Initialize the control rendering
|
|
4096
4101
|
*
|
|
@@ -4484,7 +4489,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
4484
4489
|
position: this.enableRtl ? { X: 'left', Y: 'top' } : { X: 'right', Y: 'top' }
|
|
4485
4490
|
});
|
|
4486
4491
|
if (this.overflowMode === 'Extended') {
|
|
4487
|
-
popup.width =
|
|
4492
|
+
popup.width = this.getToolbarPopupWidth(this.element);
|
|
4488
4493
|
popup.offsetX = 0;
|
|
4489
4494
|
}
|
|
4490
4495
|
popup.appendTo(ele);
|
|
@@ -5527,8 +5532,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5527
5532
|
}
|
|
5528
5533
|
if (this.popObj) {
|
|
5529
5534
|
if (this.overflowMode === 'Extended') {
|
|
5530
|
-
|
|
5531
|
-
this.popObj.width = parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
|
|
5535
|
+
this.popObj.width = this.getToolbarPopupWidth(this.element);
|
|
5532
5536
|
}
|
|
5533
5537
|
if (this.tbarAlign) {
|
|
5534
5538
|
this.removePositioning();
|
|
@@ -12746,11 +12750,17 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
12746
12750
|
TreeView.prototype.focusIn = function () {
|
|
12747
12751
|
if (!this.mouseDownStatus) {
|
|
12748
12752
|
var focusedElement = this.getFocusedNode();
|
|
12749
|
-
focusedElement.
|
|
12750
|
-
|
|
12751
|
-
|
|
12753
|
+
if (focusedElement.classList.contains('e-disable')) {
|
|
12754
|
+
focusedElement.setAttribute("tabindex", "-1");
|
|
12755
|
+
this.navigateNode(true);
|
|
12756
|
+
}
|
|
12757
|
+
else {
|
|
12758
|
+
focusedElement.setAttribute("tabindex", "0");
|
|
12759
|
+
addClass([focusedElement], FOCUS);
|
|
12760
|
+
EventHandler.add(focusedElement, 'blur', this.focusOut, this);
|
|
12761
|
+
}
|
|
12762
|
+
this.mouseDownStatus = false;
|
|
12752
12763
|
}
|
|
12753
|
-
this.mouseDownStatus = false;
|
|
12754
12764
|
};
|
|
12755
12765
|
TreeView.prototype.focusOut = function (event) {
|
|
12756
12766
|
var focusedElement = this.getFocusedNode();
|