@syncfusion/ej2-navigations 28.2.4 → 28.2.6
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/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 +39 -11
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +39 -11
- 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 +8 -8
- package/src/carousel/carousel.js +5 -0
- package/src/tab/tab.js +3 -3
- package/src/toolbar/toolbar.js +4 -1
- package/src/treeview/treeview.js +27 -7
- package/styles/bootstrap5.3-lite.css +8 -0
- package/styles/bootstrap5.3.css +8 -0
- package/styles/toolbar/_theme.scss +13 -0
- package/styles/toolbar/bootstrap5.3.css +8 -0
|
@@ -4249,7 +4249,10 @@ let Toolbar = class Toolbar extends Component {
|
|
|
4249
4249
|
else if (scrollNav) {
|
|
4250
4250
|
navEleWidth = this.isVertical ? (scrollNav.offsetHeight * (2)) : (scrollNav.offsetWidth * 2);
|
|
4251
4251
|
}
|
|
4252
|
-
if (
|
|
4252
|
+
if (eleWidth >= itemWidth && scrollNav) {
|
|
4253
|
+
return false;
|
|
4254
|
+
}
|
|
4255
|
+
else if (itemWidth > eleWidth - navEleWidth) {
|
|
4253
4256
|
return true;
|
|
4254
4257
|
}
|
|
4255
4258
|
else {
|
|
@@ -8493,9 +8496,6 @@ let Tab = class Tab extends Component {
|
|
|
8493
8496
|
}
|
|
8494
8497
|
}
|
|
8495
8498
|
}
|
|
8496
|
-
if (this.prevIndex !== this.selectedItem) {
|
|
8497
|
-
ele.classList.remove(CLS_ACTIVE$1);
|
|
8498
|
-
}
|
|
8499
8499
|
}
|
|
8500
8500
|
loadContentElement() {
|
|
8501
8501
|
if (!this.isTemplate) {
|
|
@@ -8559,6 +8559,9 @@ let Tab = class Tab extends Component {
|
|
|
8559
8559
|
this.getContent(ele, this.items[0].content, 'render', 0);
|
|
8560
8560
|
}
|
|
8561
8561
|
this.loadContentInitMode(ele);
|
|
8562
|
+
if (this.prevIndex !== this.selectedItem) {
|
|
8563
|
+
ele.classList.remove(CLS_ACTIVE$1);
|
|
8564
|
+
}
|
|
8562
8565
|
}
|
|
8563
8566
|
setStyleAttribute(this.cntEle, { 'height': this.maxHeight + 'px' });
|
|
8564
8567
|
}
|
|
@@ -11037,16 +11040,27 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11037
11040
|
}
|
|
11038
11041
|
}
|
|
11039
11042
|
getSelectedChildNodeDetails(dataUid) {
|
|
11043
|
+
const childKey = typeof this.fields.child === 'string' ? this.fields.child : null;
|
|
11044
|
+
const dataId = this.fields.id;
|
|
11045
|
+
const parentKey = this.fields.parentID;
|
|
11040
11046
|
return this.checkedNodes
|
|
11041
11047
|
.map((checkedNodeId) => {
|
|
11042
11048
|
return new DataManager(this.DDTTreeData)
|
|
11043
11049
|
.executeLocal(new Query().where('id', 'equal', checkedNodeId, true))[0];
|
|
11044
11050
|
})
|
|
11045
11051
|
.filter((childNode) => {
|
|
11046
|
-
if (childNode && typeof childNode === 'object' &&
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11052
|
+
if (childNode && typeof childNode === 'object' && (parentKey in childNode || childKey in childNode)) {
|
|
11053
|
+
if (!isNullOrUndefined(childKey) && childKey in childNode && Array.isArray(childNode[childKey])) {
|
|
11054
|
+
const matchNode = childNode[dataId];
|
|
11055
|
+
if (!isNullOrUndefined(matchNode)) {
|
|
11056
|
+
return matchNode.toString() === dataUid;
|
|
11057
|
+
}
|
|
11058
|
+
}
|
|
11059
|
+
else {
|
|
11060
|
+
const childNodePid = childNode[parentKey];
|
|
11061
|
+
if (!isNullOrUndefined(childNodePid)) {
|
|
11062
|
+
return childNodePid.toString() === dataUid;
|
|
11063
|
+
}
|
|
11050
11064
|
}
|
|
11051
11065
|
}
|
|
11052
11066
|
return false;
|
|
@@ -11175,14 +11189,18 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11175
11189
|
const checkBoxes = selectAll('.' + CHECKBOXWRAP, this.element);
|
|
11176
11190
|
if (this.loadOnDemand) {
|
|
11177
11191
|
for (let index = 0; index < checkBoxes.length; index++) {
|
|
11192
|
+
const liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
|
|
11178
11193
|
this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
|
|
11179
11194
|
this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck', null, null, null, doCheck);
|
|
11195
|
+
this.updateOldCheckedData([this.getNodeData(liEle)]);
|
|
11180
11196
|
}
|
|
11181
11197
|
}
|
|
11182
11198
|
else {
|
|
11183
11199
|
for (let index = 0; index < checkBoxes.length; index++) {
|
|
11200
|
+
const liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
|
|
11184
11201
|
this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
|
|
11185
11202
|
this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck');
|
|
11203
|
+
this.updateOldCheckedData([this.getNodeData(liEle)]);
|
|
11186
11204
|
}
|
|
11187
11205
|
}
|
|
11188
11206
|
}
|
|
@@ -11909,6 +11927,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11909
11927
|
ul.style.visibility = '';
|
|
11910
11928
|
}
|
|
11911
11929
|
animateHeight(args, start, end) {
|
|
11930
|
+
if (isNullOrUndefined(args.element.parentElement)) {
|
|
11931
|
+
return;
|
|
11932
|
+
}
|
|
11912
11933
|
const remaining = (args.duration - args.timeStamp) / args.duration;
|
|
11913
11934
|
const currentHeight = (end - start) * remaining + start;
|
|
11914
11935
|
args.element.parentElement.style.height = currentHeight + 'px';
|
|
@@ -14958,9 +14979,11 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
14958
14979
|
this.updateWrap();
|
|
14959
14980
|
break;
|
|
14960
14981
|
case 'checkedNodes':
|
|
14961
|
-
if (
|
|
14962
|
-
this.
|
|
14963
|
-
|
|
14982
|
+
if (JSON.stringify(oldProp.checkedNodes) !== JSON.stringify(newProp.checkedNodes)) {
|
|
14983
|
+
if (this.showCheckBox) {
|
|
14984
|
+
this.checkedNodes = oldProp.checkedNodes;
|
|
14985
|
+
this.setCheckedNodes(newProp.checkedNodes);
|
|
14986
|
+
}
|
|
14964
14987
|
}
|
|
14965
14988
|
break;
|
|
14966
14989
|
case 'autoCheck':
|
|
@@ -17576,6 +17599,9 @@ let Carousel = class Carousel extends Component {
|
|
|
17576
17599
|
if (isClone) {
|
|
17577
17600
|
itemEle.classList.add(CLS_CLONED);
|
|
17578
17601
|
}
|
|
17602
|
+
if (!(this.selectedIndex === index && !isClone)) {
|
|
17603
|
+
itemEle.setAttribute('inert', 'true');
|
|
17604
|
+
}
|
|
17579
17605
|
if (!isNullOrUndefined(item.htmlAttributes)) {
|
|
17580
17606
|
this.setHtmlAttributes(item.htmlAttributes, itemEle);
|
|
17581
17607
|
}
|
|
@@ -17851,7 +17877,9 @@ let Carousel = class Carousel extends Component {
|
|
|
17851
17877
|
}
|
|
17852
17878
|
this.setProperties({ selectedIndex: currentIndex }, true);
|
|
17853
17879
|
attributes(args.currentSlide, { 'aria-hidden': 'true' });
|
|
17880
|
+
args.currentSlide.setAttribute('inert', 'true');
|
|
17854
17881
|
attributes(args.nextSlide, { 'aria-hidden': 'false' });
|
|
17882
|
+
args.nextSlide.removeAttribute('inert');
|
|
17855
17883
|
this.refreshIndicators(activeIndex, currentIndex);
|
|
17856
17884
|
this.slideChangedEventArgs = {
|
|
17857
17885
|
currentIndex: args.nextIndex,
|