@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
|
@@ -9552,6 +9552,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9552
9552
|
if (trg.classList.contains(CLS_ACTIVE$1)) {
|
|
9553
9553
|
index = (index > selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_TB_POPUP + ')', _this.element).length - 1) ? index - 1 : index;
|
|
9554
9554
|
_this.enableAnimation = false;
|
|
9555
|
+
_this.tbItem = selectAll('.' + CLS_TB_ITEM, _this.getTabHeader());
|
|
9556
|
+
index = _this.getSelectingTabIndex(index);
|
|
9557
|
+
index = !isNaN(index) && index >= 0 && _this.tbItem.length > index ? index : 0;
|
|
9555
9558
|
_this.selectedItem = index;
|
|
9556
9559
|
_this.select(index);
|
|
9557
9560
|
}
|
|
@@ -9700,20 +9703,24 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
|
|
|
9700
9703
|
}
|
|
9701
9704
|
this.isInteracted = false;
|
|
9702
9705
|
};
|
|
9703
|
-
Tab.prototype.
|
|
9704
|
-
if (
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
args = 0;
|
|
9714
|
-
}
|
|
9706
|
+
Tab.prototype.getSelectingTabIndex = function (args) {
|
|
9707
|
+
if (!isNullOrUndefined(this.tbItem[args]) && (this.tbItem[args].classList.contains(CLS_DISABLE$4) ||
|
|
9708
|
+
this.tbItem[args].classList.contains(CLS_HIDDEN$1))) {
|
|
9709
|
+
for (var i = args + 1; i < this.items.length; i++) {
|
|
9710
|
+
if (this.items[i].disabled === false && this.items[i].visible === true) {
|
|
9711
|
+
args = i;
|
|
9712
|
+
break;
|
|
9713
|
+
}
|
|
9714
|
+
else {
|
|
9715
|
+
args = 0;
|
|
9715
9716
|
}
|
|
9716
9717
|
}
|
|
9718
|
+
}
|
|
9719
|
+
return args;
|
|
9720
|
+
};
|
|
9721
|
+
Tab.prototype.selectingContent = function (args, isInteracted) {
|
|
9722
|
+
if (typeof args === 'number') {
|
|
9723
|
+
args = this.getSelectingTabIndex(args);
|
|
9717
9724
|
if (this.tbItem.length > args && args >= 0 && !isNaN(args)) {
|
|
9718
9725
|
this.prevIndex = this.selectedItem;
|
|
9719
9726
|
this.prevItem = this.tbItem[this.prevIndex];
|
|
@@ -11088,20 +11095,27 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
11088
11095
|
var checkBoxEle = element.getElementsByClassName(CHECKBOXWRAP)[0];
|
|
11089
11096
|
var count = nodes.length;
|
|
11090
11097
|
var checkedCount = checkedNodes.length;
|
|
11091
|
-
var
|
|
11098
|
+
var dataUid_1 = element.getAttribute('data-uid');
|
|
11092
11099
|
if (this.element.classList.contains('e-filtering')) {
|
|
11093
|
-
var oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal',
|
|
11100
|
+
var oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal', dataUid_1, true));
|
|
11094
11101
|
checkedCount = oldCheckedNodes.length;
|
|
11102
|
+
var parentNode = new DataManager(this.OldCheckedData).executeLocal(new Query().where('hasChildren', 'equal', true, true));
|
|
11103
|
+
if ((parentNode.length > 0) && (this.OldCheckedData.some(function (oldNode) { return oldNode.id === dataUid_1; }))) {
|
|
11104
|
+
checkedCount = parentNode.length;
|
|
11105
|
+
}
|
|
11095
11106
|
var childItems = [];
|
|
11096
11107
|
if (this.dataType === 1) {
|
|
11097
|
-
childItems = new DataManager(this.DDTTreeData).executeLocal(new Query().where(this.fields.parentID, 'equal',
|
|
11108
|
+
childItems = new DataManager(this.DDTTreeData).executeLocal(new Query().where(this.fields.parentID, 'equal', dataUid_1, true));
|
|
11098
11109
|
}
|
|
11099
11110
|
else {
|
|
11100
|
-
childItems = this.getChildNodes(this.DDTTreeData,
|
|
11111
|
+
childItems = this.getChildNodes(this.DDTTreeData, dataUid_1);
|
|
11101
11112
|
}
|
|
11102
11113
|
count = childItems.length;
|
|
11103
11114
|
}
|
|
11104
|
-
if (count === checkedCount) {
|
|
11115
|
+
if (count === 0 && checkedCount === 0) {
|
|
11116
|
+
return;
|
|
11117
|
+
}
|
|
11118
|
+
else if (count === checkedCount) {
|
|
11105
11119
|
this.changeState(checkBoxEle, 'check', null, true, true);
|
|
11106
11120
|
}
|
|
11107
11121
|
else if (checkedCount > 0 || indeterminateNodes.length > 0) {
|
|
@@ -14008,16 +14022,17 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
|
|
|
14008
14022
|
}
|
|
14009
14023
|
}
|
|
14010
14024
|
};
|
|
14011
|
-
TreeView.prototype.collapseByLevel = function (element, level, excludeHiddenNodes) {
|
|
14025
|
+
TreeView.prototype.collapseByLevel = function (element, level, excludeHiddenNodes, currentLevel) {
|
|
14026
|
+
currentLevel = isNullOrUndefined(currentLevel) ? 1 : currentLevel;
|
|
14012
14027
|
if (level > 0 && !isNullOrUndefined(element)) {
|
|
14013
14028
|
var cNodes = this.getVisibleNodes(excludeHiddenNodes, element.childNodes);
|
|
14014
14029
|
for (var i = 0, len = cNodes.length; i < len; i++) {
|
|
14015
14030
|
var liEle = cNodes[parseInt(i.toString(), 10)];
|
|
14016
14031
|
var icon = select('.' + COLLAPSIBLE, select('.' + TEXTWRAP, liEle));
|
|
14017
|
-
if (!isNullOrUndefined(icon)) {
|
|
14032
|
+
if (currentLevel >= level && !isNullOrUndefined(icon)) {
|
|
14018
14033
|
this.collapseNode(liEle, icon, null);
|
|
14019
14034
|
}
|
|
14020
|
-
this.collapseByLevel(select('.' + PARENTITEM, liEle), level
|
|
14035
|
+
this.collapseByLevel(select('.' + PARENTITEM, liEle), level, excludeHiddenNodes, currentLevel + 1);
|
|
14021
14036
|
}
|
|
14022
14037
|
}
|
|
14023
14038
|
};
|
|
@@ -19343,6 +19358,8 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19343
19358
|
}
|
|
19344
19359
|
var stepSpan = this.createElement('span', { className: 'e-step' });
|
|
19345
19360
|
var item = this.steps[parseInt(index.toString(), 10)];
|
|
19361
|
+
var isItemLabel = item.label ? true : false;
|
|
19362
|
+
var isItemText = item.text ? true : false;
|
|
19346
19363
|
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
19347
19364
|
var isIndicator = (!this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator') ? true : false;
|
|
19348
19365
|
if (isIndicator) {
|
|
@@ -19356,7 +19373,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19356
19373
|
}
|
|
19357
19374
|
else if (isNullOrUndefined(this.template) || this.template === '') {
|
|
19358
19375
|
var isRender = true;
|
|
19359
|
-
if ((item.iconCss || (!item.iconCss &&
|
|
19376
|
+
if ((item.iconCss || (!item.iconCss && isItemText && isItemLabel)) && (((!isItemText && !isItemLabel) ||
|
|
19360
19377
|
!this.element.classList.contains(LABELINDICATOR)))) {
|
|
19361
19378
|
if (item.iconCss) {
|
|
19362
19379
|
var itemIcon = item.iconCss.trim().split(' ');
|
|
@@ -19366,14 +19383,14 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19366
19383
|
}
|
|
19367
19384
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
19368
19385
|
}
|
|
19369
|
-
else if (!item.iconCss &&
|
|
19386
|
+
else if (!item.iconCss && isItemText && isItemLabel) {
|
|
19370
19387
|
stepSpan.classList.add(ICONCSS);
|
|
19371
19388
|
stepSpan.innerHTML = item.text;
|
|
19372
19389
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
19373
19390
|
}
|
|
19374
19391
|
this.stepperItemContainer.appendChild(stepSpan);
|
|
19375
|
-
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') &&
|
|
19376
|
-
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') &&
|
|
19392
|
+
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') && isItemLabel) ||
|
|
19393
|
+
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') && isItemLabel)) {
|
|
19377
19394
|
this.element.classList.add('e-label-' + this.labelPosition.toLowerCase());
|
|
19378
19395
|
var textSpan = this.createElement('span', { className: TEXTCSS + ' ' + TEXT });
|
|
19379
19396
|
textSpan.innerText = item.label;
|
|
@@ -19382,49 +19399,43 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19382
19399
|
isRender = false;
|
|
19383
19400
|
}
|
|
19384
19401
|
}
|
|
19385
|
-
if (
|
|
19386
|
-
!(item.iconCss &&
|
|
19402
|
+
if (isItemText && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender &&
|
|
19403
|
+
!(item.iconCss && isItemLabel)) {
|
|
19387
19404
|
if ((!item.iconCss && this.element.classList.contains(STEPINDICATOR)) ||
|
|
19388
|
-
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !
|
|
19389
|
-
if (!item.iconCss && !
|
|
19405
|
+
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !isItemLabel)) {
|
|
19406
|
+
if (!item.iconCss && !isItemLabel) {
|
|
19390
19407
|
this.element.classList.add('e-step-type-indicator');
|
|
19391
19408
|
}
|
|
19392
19409
|
this.checkValidState(item, stepSpan);
|
|
19393
|
-
|
|
19394
|
-
this.isProtectedOnChange = true;
|
|
19395
|
-
item.label = null;
|
|
19396
|
-
this.isProtectedOnChange = prevOnChange;
|
|
19410
|
+
isItemLabel = null;
|
|
19397
19411
|
}
|
|
19398
19412
|
else {
|
|
19399
19413
|
var textSpan = this.createElement('span', { className: TEXT });
|
|
19400
|
-
if (!
|
|
19414
|
+
if (!isItemLabel) {
|
|
19401
19415
|
textSpan.innerText = item.text;
|
|
19402
19416
|
textSpan.classList.add(TEXTCSS);
|
|
19403
19417
|
this.stepperItemContainer.appendChild(textSpan);
|
|
19404
19418
|
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
19405
19419
|
}
|
|
19406
|
-
if (
|
|
19420
|
+
if (isItemLabel && this.element.classList.contains(LABELINDICATOR)) {
|
|
19407
19421
|
textSpan.innerText = item.label;
|
|
19408
19422
|
}
|
|
19409
|
-
|
|
19410
|
-
this.isProtectedOnChange = true;
|
|
19411
|
-
item.text = item.label ? null : item.text;
|
|
19412
|
-
this.isProtectedOnChange = prevOnChange;
|
|
19423
|
+
isItemText = item.label ? false : true;
|
|
19413
19424
|
}
|
|
19414
19425
|
}
|
|
19415
|
-
if (
|
|
19416
|
-
if (!item.iconCss && !
|
|
19426
|
+
if (isItemLabel && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender) {
|
|
19427
|
+
if (!item.iconCss && !isItemText && this.element.classList.contains(STEPINDICATOR)) {
|
|
19417
19428
|
this.checkValidState(item, stepSpan, true);
|
|
19418
19429
|
}
|
|
19419
|
-
else if ((!((this.element.classList.contains(LABELINDICATOR)) &&
|
|
19420
|
-
(this.element.classList.contains(LABELINDICATOR) &&
|
|
19430
|
+
else if ((!((this.element.classList.contains(LABELINDICATOR)) && isItemText)) ||
|
|
19431
|
+
(this.element.classList.contains(LABELINDICATOR) && isItemLabel)) {
|
|
19421
19432
|
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
19422
19433
|
var labelSpan = this.createElement('span', { className: LABEL });
|
|
19423
19434
|
labelSpan.innerText = item.label;
|
|
19424
19435
|
this.labelContainer.appendChild(labelSpan);
|
|
19425
19436
|
this.stepperItemContainer.classList.add(STEPSLABEL);
|
|
19426
19437
|
this.updateLabelPosition();
|
|
19427
|
-
if ((!item.iconCss && !
|
|
19438
|
+
if ((!item.iconCss && !isItemText && !this.stepperItemContainer.classList.contains(STEPICON)) ||
|
|
19428
19439
|
this.element.classList.contains(LABELINDICATOR)) {
|
|
19429
19440
|
this.stepperItemContainer.classList.add('e-step-label-only');
|
|
19430
19441
|
if (item.isValid !== null) {
|
|
@@ -19440,7 +19451,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
19440
19451
|
this.l10n.setLocale(this.locale);
|
|
19441
19452
|
var optionalContent = this.l10n.getConstant('optional');
|
|
19442
19453
|
optionalSpan.innerText = optionalContent;
|
|
19443
|
-
if (
|
|
19454
|
+
if (isItemLabel && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
19444
19455
|
|| (this.element.classList.contains(HORIZSTEP) && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
19445
19456
|
|| (this.element.classList.contains(VERTICALSTEP) && this.element.classList.contains(LABELBEFORE))) {
|
|
19446
19457
|
this.labelContainer.appendChild(optionalSpan);
|
|
@@ -20179,6 +20190,11 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
|
|
|
20179
20190
|
this.renderItems();
|
|
20180
20191
|
this.updateStepperStatus();
|
|
20181
20192
|
}
|
|
20193
|
+
if (property === 'label' && (this.steps[index].iconCss || this.steps[index].text) &&
|
|
20194
|
+
this.stepType.toLowerCase() === 'default') {
|
|
20195
|
+
this.refreshProgressbar();
|
|
20196
|
+
}
|
|
20197
|
+
this.updateStepInteractions();
|
|
20182
20198
|
this.checkValidStep();
|
|
20183
20199
|
}
|
|
20184
20200
|
}
|