@syncfusion/ej2-navigations 20.3.56 → 20.3.58
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/CHANGELOG.md +18 -0
- 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 +46 -22
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +46 -22
- 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 +8 -3
- package/src/treeview/treeview.js +38 -19
- package/styles/bootstrap-dark.css +97 -102
- package/styles/bootstrap.css +97 -102
- package/styles/bootstrap4.css +97 -102
- package/styles/bootstrap5-dark.css +97 -102
- package/styles/bootstrap5.css +97 -102
- package/styles/fabric-dark.css +108 -108
- package/styles/fabric.css +108 -108
- package/styles/fluent-dark.css +97 -101
- package/styles/fluent.css +97 -101
- package/styles/highcontrast-light.css +108 -108
- package/styles/highcontrast.css +108 -108
- package/styles/material-dark.css +95 -95
- package/styles/material.css +95 -95
- package/styles/pager/bootstrap-dark.css +9 -9
- package/styles/pager/bootstrap.css +9 -9
- package/styles/pager/bootstrap4.css +9 -9
- package/styles/pager/bootstrap5-dark.css +9 -9
- package/styles/pager/bootstrap5.css +9 -9
- package/styles/pager/fabric-dark.css +9 -9
- package/styles/pager/fabric.css +9 -9
- package/styles/pager/fluent-dark.css +9 -9
- package/styles/pager/fluent.css +9 -9
- package/styles/pager/highcontrast-light.css +9 -9
- package/styles/pager/highcontrast.css +9 -9
- package/styles/pager/material-dark.css +9 -9
- package/styles/pager/material.css +9 -9
- package/styles/pager/tailwind-dark.css +9 -9
- package/styles/pager/tailwind.css +9 -9
- package/styles/tab/_layout.scss +6 -19
- package/styles/tab/bootstrap-dark.css +88 -93
- package/styles/tab/bootstrap.css +88 -93
- package/styles/tab/bootstrap4.css +88 -93
- package/styles/tab/bootstrap5-dark.css +88 -93
- package/styles/tab/bootstrap5.css +88 -93
- package/styles/tab/fabric-dark.css +99 -99
- package/styles/tab/fabric.css +99 -99
- package/styles/tab/fluent-dark.css +88 -92
- package/styles/tab/fluent.css +88 -92
- package/styles/tab/highcontrast-light.css +99 -99
- package/styles/tab/highcontrast.css +99 -99
- package/styles/tab/material-dark.css +86 -86
- package/styles/tab/material.css +86 -86
- package/styles/tab/tailwind-dark.css +86 -86
- package/styles/tab/tailwind.css +86 -86
- package/styles/tailwind-dark.css +95 -95
- package/styles/tailwind.css +95 -95
|
@@ -9526,7 +9526,7 @@ const CHILD = 'e-has-child';
|
|
|
9526
9526
|
const ITEM_ANIMATION_ACTIVE = 'e-animation-active';
|
|
9527
9527
|
const DISABLED$1 = 'e-disabled';
|
|
9528
9528
|
const treeAriaAttr = {
|
|
9529
|
-
treeRole: '
|
|
9529
|
+
treeRole: 'group',
|
|
9530
9530
|
itemRole: 'treeitem',
|
|
9531
9531
|
listRole: 'group',
|
|
9532
9532
|
itemText: '',
|
|
@@ -10161,6 +10161,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10161
10161
|
if (this.showCheckBox) {
|
|
10162
10162
|
let checkboxEle = createCheckBox(this.createElement, true, { cssClass: this.touchClass });
|
|
10163
10163
|
checkboxEle.setAttribute('role', 'checkbox');
|
|
10164
|
+
checkboxEle.setAttribute('aria-label', 'checkbox');
|
|
10164
10165
|
let icon = select('div.' + ICON, e.item);
|
|
10165
10166
|
let id = e.item.getAttribute('data-uid');
|
|
10166
10167
|
e.item.childNodes[0].insertBefore(checkboxEle, e.item.childNodes[0].childNodes[isNullOrUndefined(icon) ? 0 : 1]);
|
|
@@ -13068,6 +13069,19 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13068
13069
|
this.updateMapper(level);
|
|
13069
13070
|
}
|
|
13070
13071
|
let li = ListBase.createListItemFromJson(this.createElement, sNodes, this.listBaseOption, level);
|
|
13072
|
+
let id = this.getId(dropLi);
|
|
13073
|
+
let refNode;
|
|
13074
|
+
let dropIcon1;
|
|
13075
|
+
if (!isNullOrUndefined(dropLi)) {
|
|
13076
|
+
dropIcon1 = select('div.' + ICON, dropLi);
|
|
13077
|
+
}
|
|
13078
|
+
if (this.dataType === 1 && dropIcon1 && dropIcon1.classList.contains(EXPANDABLE)) {
|
|
13079
|
+
this.preventExpand = true;
|
|
13080
|
+
}
|
|
13081
|
+
if (this.dataType !== 1) {
|
|
13082
|
+
this.addChildData(this.treeData, this.fields, id, nodes, index);
|
|
13083
|
+
this.isFirstRender = false;
|
|
13084
|
+
}
|
|
13071
13085
|
let dropUl;
|
|
13072
13086
|
if (!dropEle) {
|
|
13073
13087
|
dropUl = dropLi ? this.expandParent(dropLi) : select('.' + PARENTITEM, this.element);
|
|
@@ -13075,26 +13089,34 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13075
13089
|
else {
|
|
13076
13090
|
dropUl = dropEle;
|
|
13077
13091
|
}
|
|
13078
|
-
|
|
13079
|
-
if (
|
|
13080
|
-
|
|
13081
|
-
|
|
13092
|
+
refNode = dropUl.childNodes[index];
|
|
13093
|
+
if (!this.isFirstRender || (this.dataType === 1)) {
|
|
13094
|
+
if (refNode || this.sortOrder === 'None') {
|
|
13095
|
+
for (let i = 0; i < li.length; i++) {
|
|
13096
|
+
dropUl.insertBefore(li[i], refNode);
|
|
13097
|
+
}
|
|
13098
|
+
if (this.dataType === 1 && !isNullOrUndefined(dropLi)) {
|
|
13099
|
+
this.preventExpand = false;
|
|
13100
|
+
let dropIcon = select('div.' + ICON, dropLi);
|
|
13101
|
+
if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
|
|
13102
|
+
this.expandAction(dropLi, dropIcon, null);
|
|
13103
|
+
}
|
|
13104
|
+
}
|
|
13082
13105
|
}
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13106
|
+
if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
|
|
13107
|
+
let cNodes = dropUl.childNodes;
|
|
13108
|
+
for (let i = 0; i < li.length; i++) {
|
|
13109
|
+
for (let j = 0; j < cNodes.length; j++) {
|
|
13110
|
+
let returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
|
|
13111
|
+
if (returnValue) {
|
|
13112
|
+
dropUl.insertBefore(li[i], cNodes[j]);
|
|
13113
|
+
break;
|
|
13114
|
+
}
|
|
13115
|
+
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13092
13116
|
}
|
|
13093
|
-
dropUl.insertBefore(li[i], cNodes[cNodes.length]);
|
|
13094
13117
|
}
|
|
13095
13118
|
}
|
|
13096
13119
|
}
|
|
13097
|
-
let id = this.getId(dropLi);
|
|
13098
13120
|
if (this.dataType === 1) {
|
|
13099
13121
|
this.updateField(this.treeData, this.fields, id, 'hasChildren', true);
|
|
13100
13122
|
let refId = this.getId(refNode);
|
|
@@ -13108,9 +13130,6 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
13108
13130
|
pos++;
|
|
13109
13131
|
}
|
|
13110
13132
|
}
|
|
13111
|
-
else {
|
|
13112
|
-
this.addChildData(this.treeData, this.fields, id, nodes, index);
|
|
13113
|
-
}
|
|
13114
13133
|
this.finalizeNode(dropUl);
|
|
13115
13134
|
}
|
|
13116
13135
|
updateMapper(level) {
|
|
@@ -16214,8 +16233,10 @@ let Carousel = class Carousel extends Component {
|
|
|
16214
16233
|
const navigators = this.createElement('div', { className: CLS_NAVIGATORS });
|
|
16215
16234
|
const itemsContainer = this.element.querySelector(`.${CLS_SLIDE_CONTAINER}`);
|
|
16216
16235
|
itemsContainer.insertAdjacentElement('afterend', navigators);
|
|
16217
|
-
this.
|
|
16218
|
-
|
|
16236
|
+
if (!isNullOrUndefined(this.slideItems) && this.slideItems.length > 1) {
|
|
16237
|
+
this.renderNavigatorButton('Previous');
|
|
16238
|
+
this.renderNavigatorButton('Next');
|
|
16239
|
+
}
|
|
16219
16240
|
this.renderTemplates();
|
|
16220
16241
|
}
|
|
16221
16242
|
renderNavigatorButton(direction) {
|
|
@@ -16251,7 +16272,7 @@ let Carousel = class Carousel extends Component {
|
|
|
16251
16272
|
EventHandler.add(buttonContainer, 'click', this.navigatorClickHandler, this);
|
|
16252
16273
|
}
|
|
16253
16274
|
renderPlayButton() {
|
|
16254
|
-
if (this.buttonsVisibility === 'Hidden' || !this.showPlayButton) {
|
|
16275
|
+
if (isNullOrUndefined(this.slideItems) || this.buttonsVisibility === 'Hidden' || !this.showPlayButton || this.slideItems.length <= 1) {
|
|
16255
16276
|
return;
|
|
16256
16277
|
}
|
|
16257
16278
|
const playPauseWrap = this.createElement('div', {
|
|
@@ -16351,6 +16372,9 @@ let Carousel = class Carousel extends Component {
|
|
|
16351
16372
|
}
|
|
16352
16373
|
}
|
|
16353
16374
|
autoSlide() {
|
|
16375
|
+
if (isNullOrUndefined(this.slideItems) || this.slideItems.length <= 1) {
|
|
16376
|
+
return;
|
|
16377
|
+
}
|
|
16354
16378
|
this.resetSlideInterval();
|
|
16355
16379
|
this.applySlideInterval();
|
|
16356
16380
|
}
|