@syncfusion/ej2-navigations 27.1.52 → 27.1.55
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 +56 -40
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +60 -44
- 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 +9 -9
- package/src/stepper/stepper.js +25 -24
- package/src/tab/tab.d.ts +1 -0
- package/src/tab/tab.js +19 -12
- package/src/treeview/treeview.js +16 -8
- package/styles/bootstrap-dark-lite.css +2 -1
- package/styles/bootstrap-dark.css +2 -1
- package/styles/bootstrap-lite.css +2 -1
- package/styles/bootstrap.css +2 -1
- package/styles/bootstrap4-lite.css +2 -1
- package/styles/bootstrap4.css +2 -1
- package/styles/bootstrap5-dark-lite.css +2 -1
- package/styles/bootstrap5-dark.css +2 -1
- package/styles/bootstrap5-lite.css +2 -1
- package/styles/bootstrap5.3-lite.css +2 -1
- package/styles/bootstrap5.3.css +2 -1
- package/styles/bootstrap5.css +2 -1
- package/styles/fabric-dark-lite.css +2 -1
- package/styles/fabric-dark.css +2 -1
- package/styles/fabric-lite.css +2 -1
- package/styles/fabric.css +2 -1
- package/styles/fluent-dark-lite.css +2 -1
- package/styles/fluent-dark.css +2 -1
- package/styles/fluent-lite.css +2 -1
- package/styles/fluent.css +2 -1
- package/styles/fluent2-lite.css +2 -1
- package/styles/fluent2.css +2 -1
- package/styles/highcontrast-light-lite.css +2 -1
- package/styles/highcontrast-light.css +2 -1
- package/styles/highcontrast-lite.css +2 -1
- package/styles/highcontrast.css +2 -1
- package/styles/material-dark-lite.css +2 -1
- package/styles/material-dark.css +2 -1
- package/styles/material-lite.css +2 -1
- package/styles/material.css +2 -1
- package/styles/material3-dark-lite.css +2 -1
- package/styles/material3-dark.css +2 -1
- package/styles/material3-lite.css +2 -1
- package/styles/material3.css +2 -1
- package/styles/stepper/_layout.scss +2 -1
- package/styles/stepper/bootstrap-dark.css +2 -1
- package/styles/stepper/bootstrap.css +2 -1
- package/styles/stepper/bootstrap4.css +2 -1
- package/styles/stepper/bootstrap5-dark.css +2 -1
- package/styles/stepper/bootstrap5.3.css +2 -1
- package/styles/stepper/bootstrap5.css +2 -1
- package/styles/stepper/fabric-dark.css +2 -1
- package/styles/stepper/fabric.css +2 -1
- package/styles/stepper/fluent-dark.css +2 -1
- package/styles/stepper/fluent.css +2 -1
- package/styles/stepper/fluent2.css +2 -1
- package/styles/stepper/highcontrast-light.css +2 -1
- package/styles/stepper/highcontrast.css +2 -1
- package/styles/stepper/material-dark.css +2 -1
- package/styles/stepper/material.css +2 -1
- package/styles/stepper/material3-dark.css +2 -1
- package/styles/stepper/material3.css +2 -1
- package/styles/stepper/tailwind-dark.css +2 -1
- package/styles/stepper/tailwind.css +2 -1
- package/styles/tailwind-dark-lite.css +2 -1
- package/styles/tailwind-dark.css +2 -1
- package/styles/tailwind-lite.css +2 -1
- package/styles/tailwind.css +2 -1
|
@@ -9266,6 +9266,9 @@ let Tab = class Tab extends Component {
|
|
|
9266
9266
|
if (trg.classList.contains(CLS_ACTIVE$1)) {
|
|
9267
9267
|
index = (index > selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_TB_POPUP + ')', this.element).length - 1) ? index - 1 : index;
|
|
9268
9268
|
this.enableAnimation = false;
|
|
9269
|
+
this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());
|
|
9270
|
+
index = this.getSelectingTabIndex(index);
|
|
9271
|
+
index = !isNaN(index) && index >= 0 && this.tbItem.length > index ? index : 0;
|
|
9269
9272
|
this.selectedItem = index;
|
|
9270
9273
|
this.select(index);
|
|
9271
9274
|
}
|
|
@@ -9411,20 +9414,24 @@ let Tab = class Tab extends Component {
|
|
|
9411
9414
|
}
|
|
9412
9415
|
this.isInteracted = false;
|
|
9413
9416
|
}
|
|
9414
|
-
|
|
9415
|
-
if (
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
args = 0;
|
|
9425
|
-
}
|
|
9417
|
+
getSelectingTabIndex(args) {
|
|
9418
|
+
if (!isNullOrUndefined(this.tbItem[args]) && (this.tbItem[args].classList.contains(CLS_DISABLE$4) ||
|
|
9419
|
+
this.tbItem[args].classList.contains(CLS_HIDDEN$1))) {
|
|
9420
|
+
for (let i = args + 1; i < this.items.length; i++) {
|
|
9421
|
+
if (this.items[i].disabled === false && this.items[i].visible === true) {
|
|
9422
|
+
args = i;
|
|
9423
|
+
break;
|
|
9424
|
+
}
|
|
9425
|
+
else {
|
|
9426
|
+
args = 0;
|
|
9426
9427
|
}
|
|
9427
9428
|
}
|
|
9429
|
+
}
|
|
9430
|
+
return args;
|
|
9431
|
+
}
|
|
9432
|
+
selectingContent(args, isInteracted) {
|
|
9433
|
+
if (typeof args === 'number') {
|
|
9434
|
+
args = this.getSelectingTabIndex(args);
|
|
9428
9435
|
if (this.tbItem.length > args && args >= 0 && !isNaN(args)) {
|
|
9429
9436
|
this.prevIndex = this.selectedItem;
|
|
9430
9437
|
this.prevItem = this.tbItem[this.prevIndex];
|
|
@@ -10761,6 +10768,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10761
10768
|
if (this.element.classList.contains('e-filtering')) {
|
|
10762
10769
|
const oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal', dataUid, true));
|
|
10763
10770
|
checkedCount = oldCheckedNodes.length;
|
|
10771
|
+
const parentNode = new DataManager(this.OldCheckedData).executeLocal(new Query().where('hasChildren', 'equal', true, true));
|
|
10772
|
+
if ((parentNode.length > 0) && (this.OldCheckedData.some((oldNode) => oldNode.id === dataUid))) {
|
|
10773
|
+
checkedCount = parentNode.length;
|
|
10774
|
+
}
|
|
10764
10775
|
let childItems = [];
|
|
10765
10776
|
if (this.dataType === 1) {
|
|
10766
10777
|
childItems = new DataManager(this.DDTTreeData).executeLocal(new Query().where(this.fields.parentID, 'equal', dataUid, true));
|
|
@@ -10770,7 +10781,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10770
10781
|
}
|
|
10771
10782
|
count = childItems.length;
|
|
10772
10783
|
}
|
|
10773
|
-
if (count === checkedCount) {
|
|
10784
|
+
if (count === 0 && checkedCount === 0) {
|
|
10785
|
+
return;
|
|
10786
|
+
}
|
|
10787
|
+
else if (count === checkedCount) {
|
|
10774
10788
|
this.changeState(checkBoxEle, 'check', null, true, true);
|
|
10775
10789
|
}
|
|
10776
10790
|
else if (checkedCount > 0 || indeterminateNodes.length > 0) {
|
|
@@ -13652,16 +13666,17 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13652
13666
|
}
|
|
13653
13667
|
}
|
|
13654
13668
|
}
|
|
13655
|
-
collapseByLevel(element, level, excludeHiddenNodes) {
|
|
13669
|
+
collapseByLevel(element, level, excludeHiddenNodes, currentLevel) {
|
|
13670
|
+
currentLevel = isNullOrUndefined(currentLevel) ? 1 : currentLevel;
|
|
13656
13671
|
if (level > 0 && !isNullOrUndefined(element)) {
|
|
13657
13672
|
const cNodes = this.getVisibleNodes(excludeHiddenNodes, element.childNodes);
|
|
13658
13673
|
for (let i = 0, len = cNodes.length; i < len; i++) {
|
|
13659
13674
|
const liEle = cNodes[parseInt(i.toString(), 10)];
|
|
13660
13675
|
const icon = select('.' + COLLAPSIBLE, select('.' + TEXTWRAP, liEle));
|
|
13661
|
-
if (!isNullOrUndefined(icon)) {
|
|
13676
|
+
if (currentLevel >= level && !isNullOrUndefined(icon)) {
|
|
13662
13677
|
this.collapseNode(liEle, icon, null);
|
|
13663
13678
|
}
|
|
13664
|
-
this.collapseByLevel(select('.' + PARENTITEM, liEle), level
|
|
13679
|
+
this.collapseByLevel(select('.' + PARENTITEM, liEle), level, excludeHiddenNodes, currentLevel + 1);
|
|
13665
13680
|
}
|
|
13666
13681
|
}
|
|
13667
13682
|
}
|
|
@@ -18830,6 +18845,8 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
18830
18845
|
}
|
|
18831
18846
|
const stepSpan = this.createElement('span', { className: 'e-step' });
|
|
18832
18847
|
const item = this.steps[parseInt(index.toString(), 10)];
|
|
18848
|
+
let isItemLabel = item.label ? true : false;
|
|
18849
|
+
let isItemText = item.text ? true : false;
|
|
18833
18850
|
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
18834
18851
|
const isIndicator = (!this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator') ? true : false;
|
|
18835
18852
|
if (isIndicator) {
|
|
@@ -18843,7 +18860,7 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
18843
18860
|
}
|
|
18844
18861
|
else if (isNullOrUndefined(this.template) || this.template === '') {
|
|
18845
18862
|
let isRender = true;
|
|
18846
|
-
if ((item.iconCss || (!item.iconCss &&
|
|
18863
|
+
if ((item.iconCss || (!item.iconCss && isItemText && isItemLabel)) && (((!isItemText && !isItemLabel) ||
|
|
18847
18864
|
!this.element.classList.contains(LABELINDICATOR)))) {
|
|
18848
18865
|
if (item.iconCss) {
|
|
18849
18866
|
const itemIcon = item.iconCss.trim().split(' ');
|
|
@@ -18853,14 +18870,14 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
18853
18870
|
}
|
|
18854
18871
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
18855
18872
|
}
|
|
18856
|
-
else if (!item.iconCss &&
|
|
18873
|
+
else if (!item.iconCss && isItemText && isItemLabel) {
|
|
18857
18874
|
stepSpan.classList.add(ICONCSS);
|
|
18858
18875
|
stepSpan.innerHTML = item.text;
|
|
18859
18876
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
18860
18877
|
}
|
|
18861
18878
|
this.stepperItemContainer.appendChild(stepSpan);
|
|
18862
|
-
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') &&
|
|
18863
|
-
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') &&
|
|
18879
|
+
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') && isItemLabel) ||
|
|
18880
|
+
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') && isItemLabel)) {
|
|
18864
18881
|
this.element.classList.add('e-label-' + this.labelPosition.toLowerCase());
|
|
18865
18882
|
const textSpan = this.createElement('span', { className: TEXTCSS + ' ' + TEXT });
|
|
18866
18883
|
textSpan.innerText = item.label;
|
|
@@ -18869,49 +18886,43 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
18869
18886
|
isRender = false;
|
|
18870
18887
|
}
|
|
18871
18888
|
}
|
|
18872
|
-
if (
|
|
18873
|
-
!(item.iconCss &&
|
|
18889
|
+
if (isItemText && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender &&
|
|
18890
|
+
!(item.iconCss && isItemLabel)) {
|
|
18874
18891
|
if ((!item.iconCss && this.element.classList.contains(STEPINDICATOR)) ||
|
|
18875
|
-
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !
|
|
18876
|
-
if (!item.iconCss && !
|
|
18892
|
+
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !isItemLabel)) {
|
|
18893
|
+
if (!item.iconCss && !isItemLabel) {
|
|
18877
18894
|
this.element.classList.add('e-step-type-indicator');
|
|
18878
18895
|
}
|
|
18879
18896
|
this.checkValidState(item, stepSpan);
|
|
18880
|
-
|
|
18881
|
-
this.isProtectedOnChange = true;
|
|
18882
|
-
item.label = null;
|
|
18883
|
-
this.isProtectedOnChange = prevOnChange;
|
|
18897
|
+
isItemLabel = null;
|
|
18884
18898
|
}
|
|
18885
18899
|
else {
|
|
18886
18900
|
const textSpan = this.createElement('span', { className: TEXT });
|
|
18887
|
-
if (!
|
|
18901
|
+
if (!isItemLabel) {
|
|
18888
18902
|
textSpan.innerText = item.text;
|
|
18889
18903
|
textSpan.classList.add(TEXTCSS);
|
|
18890
18904
|
this.stepperItemContainer.appendChild(textSpan);
|
|
18891
18905
|
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
18892
18906
|
}
|
|
18893
|
-
if (
|
|
18907
|
+
if (isItemLabel && this.element.classList.contains(LABELINDICATOR)) {
|
|
18894
18908
|
textSpan.innerText = item.label;
|
|
18895
18909
|
}
|
|
18896
|
-
|
|
18897
|
-
this.isProtectedOnChange = true;
|
|
18898
|
-
item.text = item.label ? null : item.text;
|
|
18899
|
-
this.isProtectedOnChange = prevOnChange;
|
|
18910
|
+
isItemText = item.label ? false : true;
|
|
18900
18911
|
}
|
|
18901
18912
|
}
|
|
18902
|
-
if (
|
|
18903
|
-
if (!item.iconCss && !
|
|
18913
|
+
if (isItemLabel && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender) {
|
|
18914
|
+
if (!item.iconCss && !isItemText && this.element.classList.contains(STEPINDICATOR)) {
|
|
18904
18915
|
this.checkValidState(item, stepSpan, true);
|
|
18905
18916
|
}
|
|
18906
|
-
else if ((!((this.element.classList.contains(LABELINDICATOR)) &&
|
|
18907
|
-
(this.element.classList.contains(LABELINDICATOR) &&
|
|
18917
|
+
else if ((!((this.element.classList.contains(LABELINDICATOR)) && isItemText)) ||
|
|
18918
|
+
(this.element.classList.contains(LABELINDICATOR) && isItemLabel)) {
|
|
18908
18919
|
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
18909
18920
|
const labelSpan = this.createElement('span', { className: LABEL });
|
|
18910
18921
|
labelSpan.innerText = item.label;
|
|
18911
18922
|
this.labelContainer.appendChild(labelSpan);
|
|
18912
18923
|
this.stepperItemContainer.classList.add(STEPSLABEL);
|
|
18913
18924
|
this.updateLabelPosition();
|
|
18914
|
-
if ((!item.iconCss && !
|
|
18925
|
+
if ((!item.iconCss && !isItemText && !this.stepperItemContainer.classList.contains(STEPICON)) ||
|
|
18915
18926
|
this.element.classList.contains(LABELINDICATOR)) {
|
|
18916
18927
|
this.stepperItemContainer.classList.add('e-step-label-only');
|
|
18917
18928
|
if (item.isValid !== null) {
|
|
@@ -18927,7 +18938,7 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
18927
18938
|
this.l10n.setLocale(this.locale);
|
|
18928
18939
|
const optionalContent = this.l10n.getConstant('optional');
|
|
18929
18940
|
optionalSpan.innerText = optionalContent;
|
|
18930
|
-
if (
|
|
18941
|
+
if (isItemLabel && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
18931
18942
|
|| (this.element.classList.contains(HORIZSTEP) && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
18932
18943
|
|| (this.element.classList.contains(VERTICALSTEP) && this.element.classList.contains(LABELBEFORE))) {
|
|
18933
18944
|
this.labelContainer.appendChild(optionalSpan);
|
|
@@ -19662,6 +19673,11 @@ let Stepper = class Stepper extends StepperBase {
|
|
|
19662
19673
|
this.renderItems();
|
|
19663
19674
|
this.updateStepperStatus();
|
|
19664
19675
|
}
|
|
19676
|
+
if (property === 'label' && (this.steps[index].iconCss || this.steps[index].text) &&
|
|
19677
|
+
this.stepType.toLowerCase() === 'default') {
|
|
19678
|
+
this.refreshProgressbar();
|
|
19679
|
+
}
|
|
19680
|
+
this.updateStepInteractions();
|
|
19665
19681
|
this.checkValidStep();
|
|
19666
19682
|
}
|
|
19667
19683
|
}
|