@syncfusion/ej2-navigations 19.3.46 → 19.3.57
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 +25 -0
- package/README.md +1 -1
- 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 +39 -16
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +39 -16
- 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 +11 -11
- package/src/breadcrumb/breadcrumb.js +10 -2
- package/src/common/menu-base.js +2 -2
- package/src/sidebar/sidebar.js +4 -4
- package/src/tab/tab.js +3 -3
- package/src/treeview/treeview.js +20 -5
- package/styles/bootstrap-dark.css +12 -0
- package/styles/bootstrap.css +12 -0
- package/styles/bootstrap4.css +12 -0
- package/styles/bootstrap5-dark.css +12 -0
- package/styles/bootstrap5.css +12 -0
- package/styles/breadcrumb/_layout.scss +11 -0
- package/styles/breadcrumb/_theme.scss +1 -1
- package/styles/breadcrumb/bootstrap-dark.css +12 -0
- package/styles/breadcrumb/bootstrap.css +12 -0
- package/styles/breadcrumb/bootstrap4.css +12 -0
- package/styles/breadcrumb/bootstrap5-dark.css +12 -0
- package/styles/breadcrumb/bootstrap5.css +12 -0
- package/styles/breadcrumb/fabric-dark.css +12 -0
- package/styles/breadcrumb/fabric.css +12 -0
- package/styles/breadcrumb/highcontrast-light.css +13 -1
- package/styles/breadcrumb/highcontrast.css +13 -1
- package/styles/breadcrumb/material-dark.css +12 -0
- package/styles/breadcrumb/material.css +12 -0
- package/styles/breadcrumb/tailwind-dark.css +12 -0
- package/styles/breadcrumb/tailwind.css +12 -0
- package/styles/fabric-dark.css +12 -0
- package/styles/fabric.css +12 -0
- package/styles/highcontrast-light.css +13 -1
- package/styles/highcontrast.css +13 -1
- package/styles/material-dark.css +12 -0
- package/styles/material.css +12 -0
- package/styles/tailwind-dark.css +12 -0
- package/styles/tailwind.css +12 -0
|
@@ -1926,8 +1926,8 @@ let MenuBase = class MenuBase extends Component {
|
|
|
1926
1926
|
this.setBlankIconStyle(this.popupWrapper);
|
|
1927
1927
|
this.wireKeyboardEvent(this.popupWrapper);
|
|
1928
1928
|
rippleEffect(this.popupWrapper, { selector: '.' + ITEM });
|
|
1929
|
-
this.popupWrapper.style.left = this.left +
|
|
1930
|
-
this.popupWrapper.style.top = this.top +
|
|
1929
|
+
this.popupWrapper.style.left = this.left + 'px';
|
|
1930
|
+
this.popupWrapper.style.top = this.top + 'px';
|
|
1931
1931
|
const animationOptions = this.animationSettings.effect !== 'None' ? {
|
|
1932
1932
|
name: this.animationSettings.effect, duration: this.animationSettings.duration,
|
|
1933
1933
|
timingFunction: this.animationSettings.easing
|
|
@@ -7453,7 +7453,7 @@ let Tab = class Tab extends Component {
|
|
|
7453
7453
|
}
|
|
7454
7454
|
}
|
|
7455
7455
|
parseObject(items, index) {
|
|
7456
|
-
const tbCount = selectAll('.' + CLS_TB_ITEM, this.element).length;
|
|
7456
|
+
const tbCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
7457
7457
|
const tItems = [];
|
|
7458
7458
|
let txtWrapEle;
|
|
7459
7459
|
const spliceArray = [];
|
|
@@ -8356,7 +8356,7 @@ let Tab = class Tab extends Component {
|
|
|
8356
8356
|
const hdr = this.element.querySelectorAll('.' + CLS_TB_ITEM)[index];
|
|
8357
8357
|
let itemIndex;
|
|
8358
8358
|
if (hdr && !isNullOrUndefined(hdr.id) && hdr.id !== '') {
|
|
8359
|
-
const num = (hdr.id.
|
|
8359
|
+
const num = (hdr.id.lastIndexOf('_'));
|
|
8360
8360
|
itemIndex = parseInt(hdr.id.substring(num + 1), 10);
|
|
8361
8361
|
}
|
|
8362
8362
|
else {
|
|
@@ -8715,7 +8715,7 @@ let Tab = class Tab extends Component {
|
|
|
8715
8715
|
this.reRenderItems();
|
|
8716
8716
|
}
|
|
8717
8717
|
else {
|
|
8718
|
-
const itemsCount = selectAll('.' + CLS_TB_ITEM, this.element).length;
|
|
8718
|
+
const itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
8719
8719
|
if (itemsCount !== 0) {
|
|
8720
8720
|
lastEleIndex = this.lastIndex + 1;
|
|
8721
8721
|
}
|
|
@@ -10238,6 +10238,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10238
10238
|
let id = childItems[i][this.fields.id] ? childItems[i][this.fields.id].toString() : null;
|
|
10239
10239
|
if (this.checkedNodes.indexOf(id) !== -1) {
|
|
10240
10240
|
this.checkedNodes.splice(this.checkedNodes.indexOf(id), 1);
|
|
10241
|
+
let ele = this.element.querySelector('[data-uid="' + id + '"]');
|
|
10242
|
+
if (ele) {
|
|
10243
|
+
this.changeState(ele, 'uncheck', null);
|
|
10244
|
+
}
|
|
10241
10245
|
}
|
|
10242
10246
|
}
|
|
10243
10247
|
if (this.parentNodeCheck.indexOf(node) !== -1) {
|
|
@@ -10468,6 +10472,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
10468
10472
|
changeState(wrapper, state, e, isPrevent, isAdd, doCheck) {
|
|
10469
10473
|
let eventArgs;
|
|
10470
10474
|
let currLi = closest(wrapper, '.' + LISTITEM);
|
|
10475
|
+
if (wrapper === currLi) {
|
|
10476
|
+
wrapper = select('.' + CHECKBOXWRAP, currLi);
|
|
10477
|
+
}
|
|
10471
10478
|
if (!isPrevent) {
|
|
10472
10479
|
this.checkActionNodes = [];
|
|
10473
10480
|
eventArgs = this.getCheckEvent(currLi, state, e);
|
|
@@ -11461,8 +11468,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11461
11468
|
nodeCheckingAction(checkWrap, isCheck, li, eventArgs, e) {
|
|
11462
11469
|
if (this.checkedElement.indexOf(li.getAttribute('data-uid')) === -1) {
|
|
11463
11470
|
this.checkedElement.push(li.getAttribute('data-uid'));
|
|
11464
|
-
|
|
11465
|
-
|
|
11471
|
+
if (this.autoCheck) {
|
|
11472
|
+
let child = this.getChildNodes(this.treeData, li.getAttribute('data-uid'));
|
|
11473
|
+
(child !== null) ? this.allCheckNode(child, this.checkedElement, null, null, false) : child = null;
|
|
11474
|
+
}
|
|
11466
11475
|
}
|
|
11467
11476
|
this.changeState(checkWrap, isCheck ? 'uncheck' : 'check', e, true);
|
|
11468
11477
|
if (this.autoCheck) {
|
|
@@ -11628,11 +11637,17 @@ let TreeView = TreeView_1 = class TreeView extends Component {
|
|
|
11628
11637
|
if (newCheck.indexOf(childId.toString()) === -1 && isNullOrUndefined(checked)) {
|
|
11629
11638
|
newCheck.push(childId.toString());
|
|
11630
11639
|
}
|
|
11640
|
+
let hierChildId = getValue(this.fields.child.toString(), child[length]);
|
|
11631
11641
|
//Gets if any next level children are available for child nodes
|
|
11632
|
-
if (getValue(this.fields.hasChildren, child[length]) === true ||
|
|
11633
|
-
getValue(this.fields.child.toString(), child[length])) {
|
|
11642
|
+
if (getValue(this.fields.hasChildren, child[length]) === true || hierChildId) {
|
|
11634
11643
|
let id = getValue(this.fields.id, child[length]);
|
|
11635
|
-
let childId
|
|
11644
|
+
let childId;
|
|
11645
|
+
if (this.dataType === 1) {
|
|
11646
|
+
childId = this.getChildNodes(this.treeData, id.toString());
|
|
11647
|
+
}
|
|
11648
|
+
else {
|
|
11649
|
+
childId = hierChildId;
|
|
11650
|
+
}
|
|
11636
11651
|
if (childId) {
|
|
11637
11652
|
(isNullOrUndefined(validateCheck)) ? this.allCheckNode(childId, newCheck, checked, childCheck) :
|
|
11638
11653
|
this.allCheckNode(childId, newCheck, checked, childCheck, validateCheck);
|
|
@@ -14417,7 +14432,7 @@ let Sidebar = class Sidebar extends Component {
|
|
|
14417
14432
|
setTimeOut() {
|
|
14418
14433
|
const sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
14419
14434
|
const elementWidth = this.element.getBoundingClientRect().width;
|
|
14420
|
-
if (this.element.classList.contains(OPEN) && sibling) {
|
|
14435
|
+
if (this.element.classList.contains(OPEN) && sibling && !(this.type === 'Over' && this.enableDock)) {
|
|
14421
14436
|
if (this.position === 'Left') {
|
|
14422
14437
|
sibling.style.marginLeft = this.setDimension(this.width === 'auto' ? elementWidth : this.width);
|
|
14423
14438
|
}
|
|
@@ -14724,7 +14739,7 @@ let Sidebar = class Sidebar extends Component {
|
|
|
14724
14739
|
const sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
14725
14740
|
if (sibling) {
|
|
14726
14741
|
sibling.style.transform = 'translateX(' + 0 + 'px)';
|
|
14727
|
-
if (!Browser.isDevice && this.type !== 'Auto') {
|
|
14742
|
+
if (!Browser.isDevice && this.type !== 'Auto' && !(this.type === 'Over' && this.enableDock)) {
|
|
14728
14743
|
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = '0px';
|
|
14729
14744
|
}
|
|
14730
14745
|
}
|
|
@@ -14746,9 +14761,9 @@ let Sidebar = class Sidebar extends Component {
|
|
|
14746
14761
|
break;
|
|
14747
14762
|
case 'Over':
|
|
14748
14763
|
addClass([this.element], [OVER]);
|
|
14749
|
-
if (this.enableDock && this.element.classList.contains(CLOSE)) {
|
|
14764
|
+
if (this.enableDock && (this.element.classList.contains(CLOSE) || this.isOpen)) {
|
|
14750
14765
|
if (sibling) {
|
|
14751
|
-
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] =
|
|
14766
|
+
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = this.setDimension(this.dockSize);
|
|
14752
14767
|
}
|
|
14753
14768
|
}
|
|
14754
14769
|
break;
|
|
@@ -14948,6 +14963,9 @@ let Breadcrumb = class Breadcrumb extends Component {
|
|
|
14948
14963
|
if (this.cssClass) {
|
|
14949
14964
|
addClass([this.element], this.cssClass.split(' '));
|
|
14950
14965
|
}
|
|
14966
|
+
if (this.enableRtl) {
|
|
14967
|
+
this.element.classList.add('e-rtl');
|
|
14968
|
+
}
|
|
14951
14969
|
this.setWidth();
|
|
14952
14970
|
this.initItems();
|
|
14953
14971
|
this.initPvtProps();
|
|
@@ -14979,8 +14997,10 @@ let Breadcrumb = class Breadcrumb extends Component {
|
|
|
14979
14997
|
}
|
|
14980
14998
|
items.push({ iconCss: 'e-icons e-home', url: baseUri });
|
|
14981
14999
|
for (let i = 0; i < uri.length; i++) {
|
|
14982
|
-
|
|
14983
|
-
|
|
15000
|
+
if (uri[i]) {
|
|
15001
|
+
items.push({ text: uri[i], url: baseUri + uri[i] });
|
|
15002
|
+
baseUri += uri[i] + '/';
|
|
15003
|
+
}
|
|
14984
15004
|
}
|
|
14985
15005
|
this.setProperties({ items: items }, true);
|
|
14986
15006
|
}
|
|
@@ -15263,6 +15283,9 @@ let Breadcrumb = class Breadcrumb extends Component {
|
|
|
15263
15283
|
this.reRenderItems();
|
|
15264
15284
|
}
|
|
15265
15285
|
break;
|
|
15286
|
+
case 'enableRtl':
|
|
15287
|
+
this.element.classList.toggle('e-rtl');
|
|
15288
|
+
break;
|
|
15266
15289
|
}
|
|
15267
15290
|
}
|
|
15268
15291
|
}
|