@syncfusion/ej2-navigations 27.1.52 → 27.1.53
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 +32 -28
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +36 -32
- 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/stepper/stepper.js +20 -24
- package/src/treeview/treeview.js +16 -8
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.1.
|
|
3
|
+
* version : 27.1.53
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@27.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@27.1.52",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Q/2QcUfOC2QfxaSgmXZj3sJPVR+knDWemSOtDag9Z0k6u/l54A4rLoYeq9rae3z8sHJkuG4vc2h4dzZPi3bOWw==",
|
|
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-27.1.
|
|
44
|
-
"_shasum": "
|
|
43
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-27.1.52.tgz",
|
|
44
|
+
"_shasum": "d97e103b3ed19c71dc76ebf134da2a895f23b8bf",
|
|
45
45
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
46
46
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
47
47
|
"author": {
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
},
|
|
53
53
|
"bundleDependencies": false,
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@syncfusion/ej2-base": "~27.1.
|
|
56
|
-
"@syncfusion/ej2-buttons": "~27.1.
|
|
55
|
+
"@syncfusion/ej2-base": "~27.1.53",
|
|
56
|
+
"@syncfusion/ej2-buttons": "~27.1.53",
|
|
57
57
|
"@syncfusion/ej2-data": "~27.1.52",
|
|
58
58
|
"@syncfusion/ej2-inputs": "~27.1.50",
|
|
59
59
|
"@syncfusion/ej2-lists": "~27.1.50",
|
|
60
|
-
"@syncfusion/ej2-popups": "~27.1.
|
|
60
|
+
"@syncfusion/ej2-popups": "~27.1.53"
|
|
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": "27.1.
|
|
165
|
+
"version": "27.1.53",
|
|
166
166
|
"sideEffects": false
|
|
167
167
|
}
|
package/src/stepper/stepper.js
CHANGED
|
@@ -330,6 +330,8 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
330
330
|
}
|
|
331
331
|
var stepSpan = this.createElement('span', { className: 'e-step' });
|
|
332
332
|
var item = this.steps[parseInt(index.toString(), 10)];
|
|
333
|
+
var isItemLabel = item.label ? true : false;
|
|
334
|
+
var isItemText = item.text ? true : false;
|
|
333
335
|
if (this.renderDefault(index) && (isNullOrUndefined(this.template) || this.template === '')) {
|
|
334
336
|
var isIndicator = (!this.element.classList.contains('e-step-type-default') && this.stepType.toLowerCase() === 'indicator') ? true : false;
|
|
335
337
|
if (isIndicator) {
|
|
@@ -343,7 +345,7 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
343
345
|
}
|
|
344
346
|
else if (isNullOrUndefined(this.template) || this.template === '') {
|
|
345
347
|
var isRender = true;
|
|
346
|
-
if ((item.iconCss || (!item.iconCss &&
|
|
348
|
+
if ((item.iconCss || (!item.iconCss && isItemText && isItemLabel)) && (((!isItemText && !isItemLabel) ||
|
|
347
349
|
!this.element.classList.contains(LABELINDICATOR)))) {
|
|
348
350
|
if (item.iconCss) {
|
|
349
351
|
var itemIcon = item.iconCss.trim().split(' ');
|
|
@@ -353,14 +355,14 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
353
355
|
}
|
|
354
356
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
355
357
|
}
|
|
356
|
-
else if (!item.iconCss &&
|
|
358
|
+
else if (!item.iconCss && isItemText && isItemLabel) {
|
|
357
359
|
stepSpan.classList.add(ICONCSS);
|
|
358
360
|
stepSpan.innerHTML = item.text;
|
|
359
361
|
this.stepperItemContainer.classList.add(STEPICON);
|
|
360
362
|
}
|
|
361
363
|
this.stepperItemContainer.appendChild(stepSpan);
|
|
362
|
-
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') &&
|
|
363
|
-
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') &&
|
|
364
|
+
if ((this.element.classList.contains(HORIZSTEP) && (this.labelPosition.toLowerCase() === 'start' || this.labelPosition.toLowerCase() === 'end') && isItemLabel) ||
|
|
365
|
+
(this.element.classList.contains(VERTICALSTEP) && (this.labelPosition.toLowerCase() === 'top' || this.labelPosition.toLowerCase() === 'bottom') && isItemLabel)) {
|
|
364
366
|
this.element.classList.add('e-label-' + this.labelPosition.toLowerCase());
|
|
365
367
|
var textSpan = this.createElement('span', { className: TEXTCSS + ' ' + TEXT });
|
|
366
368
|
textSpan.innerText = item.label;
|
|
@@ -369,49 +371,43 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
369
371
|
isRender = false;
|
|
370
372
|
}
|
|
371
373
|
}
|
|
372
|
-
if (
|
|
373
|
-
!(item.iconCss &&
|
|
374
|
+
if (isItemText && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender &&
|
|
375
|
+
!(item.iconCss && isItemLabel)) {
|
|
374
376
|
if ((!item.iconCss && this.element.classList.contains(STEPINDICATOR)) ||
|
|
375
|
-
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !
|
|
376
|
-
if (!item.iconCss && !
|
|
377
|
+
((!item.iconCss || this.element.classList.contains(LABELINDICATOR)) && !isItemLabel)) {
|
|
378
|
+
if (!item.iconCss && !isItemLabel) {
|
|
377
379
|
this.element.classList.add('e-step-type-indicator');
|
|
378
380
|
}
|
|
379
381
|
this.checkValidState(item, stepSpan);
|
|
380
|
-
|
|
381
|
-
this.isProtectedOnChange = true;
|
|
382
|
-
item.label = null;
|
|
383
|
-
this.isProtectedOnChange = prevOnChange;
|
|
382
|
+
isItemLabel = null;
|
|
384
383
|
}
|
|
385
384
|
else {
|
|
386
385
|
var textSpan = this.createElement('span', { className: TEXT });
|
|
387
|
-
if (!
|
|
386
|
+
if (!isItemLabel) {
|
|
388
387
|
textSpan.innerText = item.text;
|
|
389
388
|
textSpan.classList.add(TEXTCSS);
|
|
390
389
|
this.stepperItemContainer.appendChild(textSpan);
|
|
391
390
|
this.stepperItemContainer.classList.add(STEPTEXT);
|
|
392
391
|
}
|
|
393
|
-
if (
|
|
392
|
+
if (isItemLabel && this.element.classList.contains(LABELINDICATOR)) {
|
|
394
393
|
textSpan.innerText = item.label;
|
|
395
394
|
}
|
|
396
|
-
|
|
397
|
-
this.isProtectedOnChange = true;
|
|
398
|
-
item.text = item.label ? null : item.text;
|
|
399
|
-
this.isProtectedOnChange = prevOnChange;
|
|
395
|
+
isItemText = item.label ? false : true;
|
|
400
396
|
}
|
|
401
397
|
}
|
|
402
|
-
if (
|
|
403
|
-
if (!item.iconCss && !
|
|
398
|
+
if (isItemLabel && (!item.iconCss || !this.element.classList.contains(STEPINDICATOR)) && isRender) {
|
|
399
|
+
if (!item.iconCss && !isItemText && this.element.classList.contains(STEPINDICATOR)) {
|
|
404
400
|
this.checkValidState(item, stepSpan, true);
|
|
405
401
|
}
|
|
406
|
-
else if ((!((this.element.classList.contains(LABELINDICATOR)) &&
|
|
407
|
-
(this.element.classList.contains(LABELINDICATOR) &&
|
|
402
|
+
else if ((!((this.element.classList.contains(LABELINDICATOR)) && isItemText)) ||
|
|
403
|
+
(this.element.classList.contains(LABELINDICATOR) && isItemLabel)) {
|
|
408
404
|
this.labelContainer = this.createElement('span', { className: STEPLABEL });
|
|
409
405
|
var labelSpan = this.createElement('span', { className: LABEL });
|
|
410
406
|
labelSpan.innerText = item.label;
|
|
411
407
|
this.labelContainer.appendChild(labelSpan);
|
|
412
408
|
this.stepperItemContainer.classList.add(STEPSLABEL);
|
|
413
409
|
this.updateLabelPosition();
|
|
414
|
-
if ((!item.iconCss && !
|
|
410
|
+
if ((!item.iconCss && !isItemText && !this.stepperItemContainer.classList.contains(STEPICON)) ||
|
|
415
411
|
this.element.classList.contains(LABELINDICATOR)) {
|
|
416
412
|
this.stepperItemContainer.classList.add('e-step-label-only');
|
|
417
413
|
if (item.isValid !== null) {
|
|
@@ -427,7 +423,7 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
427
423
|
this.l10n.setLocale(this.locale);
|
|
428
424
|
var optionalContent = this.l10n.getConstant('optional');
|
|
429
425
|
optionalSpan.innerText = optionalContent;
|
|
430
|
-
if (
|
|
426
|
+
if (isItemLabel && (this.labelContainer && ((this.element.classList.contains(LABELAFTER) && !this.stepperItemContainer.classList.contains('e-step-label-only'))
|
|
431
427
|
|| (this.element.classList.contains(HORIZSTEP) && this.element.classList.contains(LABELBEFORE) && !this.stepperItemContainer.classList.contains('e-step-label-only'))))
|
|
432
428
|
|| (this.element.classList.contains(VERTICALSTEP) && this.element.classList.contains(LABELBEFORE))) {
|
|
433
429
|
this.labelContainer.appendChild(optionalSpan);
|
package/src/treeview/treeview.js
CHANGED
|
@@ -998,20 +998,27 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
998
998
|
var checkBoxEle = element.getElementsByClassName(CHECKBOXWRAP)[0];
|
|
999
999
|
var count = nodes.length;
|
|
1000
1000
|
var checkedCount = checkedNodes.length;
|
|
1001
|
-
var
|
|
1001
|
+
var dataUid_1 = element.getAttribute('data-uid');
|
|
1002
1002
|
if (this.element.classList.contains('e-filtering')) {
|
|
1003
|
-
var oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal',
|
|
1003
|
+
var oldCheckedNodes = new DataManager(this.OldCheckedData).executeLocal(new Query().where('parentID', 'equal', dataUid_1, true));
|
|
1004
1004
|
checkedCount = oldCheckedNodes.length;
|
|
1005
|
+
var parentNode = new DataManager(this.OldCheckedData).executeLocal(new Query().where('hasChildren', 'equal', true, true));
|
|
1006
|
+
if ((parentNode.length > 0) && (this.OldCheckedData.some(function (oldNode) { return oldNode.id === dataUid_1; }))) {
|
|
1007
|
+
checkedCount = parentNode.length;
|
|
1008
|
+
}
|
|
1005
1009
|
var childItems = [];
|
|
1006
1010
|
if (this.dataType === 1) {
|
|
1007
|
-
childItems = new DataManager(this.DDTTreeData).executeLocal(new Query().where(this.fields.parentID, 'equal',
|
|
1011
|
+
childItems = new DataManager(this.DDTTreeData).executeLocal(new Query().where(this.fields.parentID, 'equal', dataUid_1, true));
|
|
1008
1012
|
}
|
|
1009
1013
|
else {
|
|
1010
|
-
childItems = this.getChildNodes(this.DDTTreeData,
|
|
1014
|
+
childItems = this.getChildNodes(this.DDTTreeData, dataUid_1);
|
|
1011
1015
|
}
|
|
1012
1016
|
count = childItems.length;
|
|
1013
1017
|
}
|
|
1014
|
-
if (count === checkedCount) {
|
|
1018
|
+
if (count === 0 && checkedCount === 0) {
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
else if (count === checkedCount) {
|
|
1015
1022
|
this.changeState(checkBoxEle, 'check', null, true, true);
|
|
1016
1023
|
}
|
|
1017
1024
|
else if (checkedCount > 0 || indeterminateNodes.length > 0) {
|
|
@@ -3921,16 +3928,17 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3921
3928
|
}
|
|
3922
3929
|
}
|
|
3923
3930
|
};
|
|
3924
|
-
TreeView.prototype.collapseByLevel = function (element, level, excludeHiddenNodes) {
|
|
3931
|
+
TreeView.prototype.collapseByLevel = function (element, level, excludeHiddenNodes, currentLevel) {
|
|
3932
|
+
currentLevel = isNOU(currentLevel) ? 1 : currentLevel;
|
|
3925
3933
|
if (level > 0 && !isNOU(element)) {
|
|
3926
3934
|
var cNodes = this.getVisibleNodes(excludeHiddenNodes, element.childNodes);
|
|
3927
3935
|
for (var i = 0, len = cNodes.length; i < len; i++) {
|
|
3928
3936
|
var liEle = cNodes[parseInt(i.toString(), 10)];
|
|
3929
3937
|
var icon = select('.' + COLLAPSIBLE, select('.' + TEXTWRAP, liEle));
|
|
3930
|
-
if (!isNOU(icon)) {
|
|
3938
|
+
if (currentLevel >= level && !isNOU(icon)) {
|
|
3931
3939
|
this.collapseNode(liEle, icon, null);
|
|
3932
3940
|
}
|
|
3933
|
-
this.collapseByLevel(select('.' + PARENTITEM, liEle), level
|
|
3941
|
+
this.collapseByLevel(select('.' + PARENTITEM, liEle), level, excludeHiddenNodes, currentLevel + 1);
|
|
3934
3942
|
}
|
|
3935
3943
|
}
|
|
3936
3944
|
};
|