@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.4
3
+ * version : 28.2.6
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-navigations@*",
3
- "_id": "@syncfusion/ej2-navigations@28.2.3",
3
+ "_id": "@syncfusion/ej2-navigations@28.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-DlOI7XKufanYlLqqzordpatE6lwT6UvhhRjffBMPMgNbvnnfOgp+J53kn21jIVrmaGvHF21Yasve3lJq8YjnHg==",
5
+ "_integrity": "sha512-J51xSgbW1l08g7Z1W35eUBLRvLuhZtHaWfcqaTP70I1WHp5rPGQTZ+x2mZ8bfJnzwUNY9ftYG4Dh3wYDzC8ijQ==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -40,8 +40,8 @@
40
40
  "/@syncfusion/ej2-spreadsheet",
41
41
  "/@syncfusion/ej2-vue-navigations"
42
42
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.2.3.tgz",
44
- "_shasum": "6d5d9f14d88dc9aa2010700a6b1175c2cc2eec76",
43
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.2.5.tgz",
44
+ "_shasum": "0a02933dc258a7fc88bc18f1f15cc35fc845394d",
45
45
  "_spec": "@syncfusion/ej2-navigations@*",
46
46
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
47
47
  "author": {
@@ -52,12 +52,12 @@
52
52
  },
53
53
  "bundleDependencies": false,
54
54
  "dependencies": {
55
- "@syncfusion/ej2-base": "~28.2.3",
56
- "@syncfusion/ej2-buttons": "~28.2.3",
55
+ "@syncfusion/ej2-base": "~28.2.5",
56
+ "@syncfusion/ej2-buttons": "~28.2.6",
57
57
  "@syncfusion/ej2-data": "~28.2.3",
58
58
  "@syncfusion/ej2-inputs": "~28.2.3",
59
59
  "@syncfusion/ej2-lists": "~28.2.3",
60
- "@syncfusion/ej2-popups": "~28.2.3"
60
+ "@syncfusion/ej2-popups": "~28.2.6"
61
61
  },
62
62
  "deprecated": false,
63
63
  "description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
@@ -162,6 +162,6 @@
162
162
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
163
163
  },
164
164
  "typings": "index.d.ts",
165
- "version": "28.2.4",
165
+ "version": "28.2.6",
166
166
  "sideEffects": false
167
167
  }
@@ -403,6 +403,9 @@ var Carousel = /** @class */ (function (_super) {
403
403
  if (isClone) {
404
404
  itemEle.classList.add(CLS_CLONED);
405
405
  }
406
+ if (!(this.selectedIndex === index && !isClone)) {
407
+ itemEle.setAttribute('inert', 'true');
408
+ }
406
409
  if (!isNullOrUndefined(item.htmlAttributes)) {
407
410
  this.setHtmlAttributes(item.htmlAttributes, itemEle);
408
411
  }
@@ -683,7 +686,9 @@ var Carousel = /** @class */ (function (_super) {
683
686
  }
684
687
  _this.setProperties({ selectedIndex: currentIndex }, true);
685
688
  attributes(args.currentSlide, { 'aria-hidden': 'true' });
689
+ args.currentSlide.setAttribute('inert', 'true');
686
690
  attributes(args.nextSlide, { 'aria-hidden': 'false' });
691
+ args.nextSlide.removeAttribute('inert');
687
692
  _this.refreshIndicators(activeIndex, currentIndex);
688
693
  _this.slideChangedEventArgs = {
689
694
  currentIndex: args.nextIndex,
package/src/tab/tab.js CHANGED
@@ -1011,9 +1011,6 @@ var Tab = /** @class */ (function (_super) {
1011
1011
  }
1012
1012
  }
1013
1013
  }
1014
- if (this.prevIndex !== this.selectedItem) {
1015
- ele.classList.remove(CLS_ACTIVE);
1016
- }
1017
1014
  };
1018
1015
  Tab.prototype.loadContentElement = function () {
1019
1016
  if (!this.isTemplate) {
@@ -1077,6 +1074,9 @@ var Tab = /** @class */ (function (_super) {
1077
1074
  this.getContent(ele, this.items[0].content, 'render', 0);
1078
1075
  }
1079
1076
  this.loadContentInitMode(ele);
1077
+ if (this.prevIndex !== this.selectedItem) {
1078
+ ele.classList.remove(CLS_ACTIVE);
1079
+ }
1080
1080
  }
1081
1081
  setStyle(this.cntEle, { 'height': this.maxHeight + 'px' });
1082
1082
  }
@@ -851,7 +851,10 @@ var Toolbar = /** @class */ (function (_super) {
851
851
  else if (scrollNav) {
852
852
  navEleWidth = this.isVertical ? (scrollNav.offsetHeight * (2)) : (scrollNav.offsetWidth * 2);
853
853
  }
854
- if (itemWidth > eleWidth - navEleWidth) {
854
+ if (eleWidth >= itemWidth && scrollNav) {
855
+ return false;
856
+ }
857
+ else if (itemWidth > eleWidth - navEleWidth) {
855
858
  return true;
856
859
  }
857
860
  else {
@@ -1064,16 +1064,27 @@ var TreeView = /** @class */ (function (_super) {
1064
1064
  };
1065
1065
  TreeView.prototype.getSelectedChildNodeDetails = function (dataUid) {
1066
1066
  var _this = this;
1067
+ var childKey = typeof this.fields.child === 'string' ? this.fields.child : null;
1068
+ var dataId = this.fields.id;
1069
+ var parentKey = this.fields.parentID;
1067
1070
  return this.checkedNodes
1068
1071
  .map(function (checkedNodeId) {
1069
1072
  return new DataManager(_this.DDTTreeData)
1070
1073
  .executeLocal(new Query().where('id', 'equal', checkedNodeId, true))[0];
1071
1074
  })
1072
1075
  .filter(function (childNode) {
1073
- if (childNode && typeof childNode === 'object' && 'pid' in childNode) {
1074
- var childNodePid = childNode.pid;
1075
- if (!isNOU(childNodePid)) {
1076
- return childNodePid.toString() === dataUid;
1076
+ if (childNode && typeof childNode === 'object' && (parentKey in childNode || childKey in childNode)) {
1077
+ if (!isNOU(childKey) && childKey in childNode && Array.isArray(childNode[childKey])) {
1078
+ var matchNode = childNode[dataId];
1079
+ if (!isNOU(matchNode)) {
1080
+ return matchNode.toString() === dataUid;
1081
+ }
1082
+ }
1083
+ else {
1084
+ var childNodePid = childNode[parentKey];
1085
+ if (!isNOU(childNodePid)) {
1086
+ return childNodePid.toString() === dataUid;
1087
+ }
1077
1088
  }
1078
1089
  }
1079
1090
  return false;
@@ -1203,14 +1214,18 @@ var TreeView = /** @class */ (function (_super) {
1203
1214
  var checkBoxes = selectAll('.' + CHECKBOXWRAP, this.element);
1204
1215
  if (this.loadOnDemand) {
1205
1216
  for (var index = 0; index < checkBoxes.length; index++) {
1217
+ var liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
1206
1218
  this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
1207
1219
  this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck', null, null, null, doCheck);
1220
+ this.updateOldCheckedData([this.getNodeData(liEle)]);
1208
1221
  }
1209
1222
  }
1210
1223
  else {
1211
1224
  for (var index = 0; index < checkBoxes.length; index++) {
1225
+ var liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
1212
1226
  this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
1213
1227
  this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck');
1228
+ this.updateOldCheckedData([this.getNodeData(liEle)]);
1214
1229
  }
1215
1230
  }
1216
1231
  }
@@ -1944,6 +1959,9 @@ var TreeView = /** @class */ (function (_super) {
1944
1959
  ul.style.visibility = '';
1945
1960
  };
1946
1961
  TreeView.prototype.animateHeight = function (args, start, end) {
1962
+ if (isNullOrUndefined(args.element.parentElement)) {
1963
+ return;
1964
+ }
1947
1965
  var remaining = (args.duration - args.timeStamp) / args.duration;
1948
1966
  var currentHeight = (end - start) * remaining + start;
1949
1967
  args.element.parentElement.style.height = currentHeight + 'px';
@@ -5031,9 +5049,11 @@ var TreeView = /** @class */ (function (_super) {
5031
5049
  this.updateWrap();
5032
5050
  break;
5033
5051
  case 'checkedNodes':
5034
- if (this.showCheckBox) {
5035
- this.checkedNodes = oldProp.checkedNodes;
5036
- this.setCheckedNodes(newProp.checkedNodes);
5052
+ if (JSON.stringify(oldProp.checkedNodes) !== JSON.stringify(newProp.checkedNodes)) {
5053
+ if (this.showCheckBox) {
5054
+ this.checkedNodes = oldProp.checkedNodes;
5055
+ this.setCheckedNodes(newProp.checkedNodes);
5056
+ }
5037
5057
  }
5038
5058
  break;
5039
5059
  case 'autoCheck':
@@ -1923,6 +1923,10 @@
1923
1923
  -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-secondary-shadow), 0.5);
1924
1924
  box-shadow: 0 0 0 4px rgba(var(--color-sf-secondary-shadow), 0.5);
1925
1925
  }
1926
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:focus .e-tbar-btn-text,
1927
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:focus .e-icons.e-btn-icon {
1928
+ color: var(--color-sf-icon-color);
1929
+ }
1926
1930
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover {
1927
1931
  background: var(--color-sf-secondary-bg-color-hover);
1928
1932
  border-radius: 4px;
@@ -1930,6 +1934,10 @@
1930
1934
  border-style: solid;
1931
1935
  border-width: 0;
1932
1936
  }
1937
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover .e-tbar-btn-text,
1938
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover .e-icons.e-btn-icon {
1939
+ color: var(--color-sf-primary-text-color);
1940
+ }
1933
1941
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:active {
1934
1942
  background: var(--color-sf-secondary-bg-color-pressed);
1935
1943
  border-radius: 4px;
@@ -2198,6 +2198,10 @@
2198
2198
  -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-secondary-shadow), 0.5);
2199
2199
  box-shadow: 0 0 0 4px rgba(var(--color-sf-secondary-shadow), 0.5);
2200
2200
  }
2201
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:focus .e-tbar-btn-text,
2202
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:focus .e-icons.e-btn-icon {
2203
+ color: var(--color-sf-icon-color);
2204
+ }
2201
2205
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover {
2202
2206
  background: var(--color-sf-secondary-bg-color-hover);
2203
2207
  border-radius: 4px;
@@ -2205,6 +2209,10 @@
2205
2209
  border-style: solid;
2206
2210
  border-width: 0;
2207
2211
  }
2212
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover .e-tbar-btn-text,
2213
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover .e-icons.e-btn-icon {
2214
+ color: var(--color-sf-primary-text-color);
2215
+ }
2208
2216
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:active {
2209
2217
  background: var(--color-sf-secondary-bg-color-pressed);
2210
2218
  border-radius: 4px;
@@ -369,6 +369,12 @@
369
369
  @else {
370
370
  box-shadow: $tbar-ext-btn-focus-box-shadow;
371
371
  }
372
+ @if $skin-name == 'bootstrap5.3' {
373
+ .e-tbar-btn-text,
374
+ .e-icons.e-btn-icon {
375
+ color: $tbar-default-icon-color;
376
+ }
377
+ }
372
378
  }
373
379
 
374
380
  @if ($skin-name == 'fluent2' or $skin-name == 'tailwind3') {
@@ -392,6 +398,13 @@
392
398
  border-color: $tbar-ext-btn-hover-border-color;
393
399
  border-style: $tbar-border-nav-type;
394
400
  border-width: $tbar-btn-hover-border-size;
401
+
402
+ @if $skin-name == 'bootstrap5.3' {
403
+ .e-tbar-btn-text,
404
+ .e-icons.e-btn-icon {
405
+ color: $tbar-btn-text-focus-color;
406
+ }
407
+ }
395
408
  }
396
409
 
397
410
  &:active {
@@ -870,6 +870,10 @@
870
870
  -webkit-box-shadow: 0 0 0 4px rgba(var(--color-sf-secondary-shadow), 0.5);
871
871
  box-shadow: 0 0 0 4px rgba(var(--color-sf-secondary-shadow), 0.5);
872
872
  }
873
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:focus .e-tbar-btn-text,
874
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:focus .e-icons.e-btn-icon {
875
+ color: var(--color-sf-icon-color);
876
+ }
873
877
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover {
874
878
  background: var(--color-sf-secondary-bg-color-hover);
875
879
  border-radius: 4px;
@@ -877,6 +881,10 @@
877
881
  border-style: solid;
878
882
  border-width: 0;
879
883
  }
884
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover .e-tbar-btn-text,
885
+ .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover .e-icons.e-btn-icon {
886
+ color: var(--color-sf-primary-text-color);
887
+ }
880
888
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:active {
881
889
  background: var(--color-sf-secondary-bg-color-pressed);
882
890
  border-radius: 4px;