@syncfusion/ej2-navigations 20.4.44 → 20.4.48
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 +27 -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 +66 -21
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +75 -30
- 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/common/index.d.ts +1 -1
- package/src/common/index.js +1 -1
- package/src/common/menu-base.js +5 -0
- package/src/menu/menu.js +1 -0
- package/src/sidebar/sidebar.js +1 -1
- package/src/tab/tab.js +8 -4
- package/src/toolbar/toolbar.js +15 -3
- package/src/treeview/treeview.d.ts +13 -0
- package/src/treeview/treeview.js +44 -21
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -41
- package/styles/bootstrap5.css +1 -41
- package/styles/context-menu/_theme-mixin.scss +16 -12
- package/styles/context-menu/bootstrap5-dark.css +0 -24
- package/styles/context-menu/bootstrap5.css +0 -24
- package/styles/menu/bootstrap5-dark.css +0 -16
- package/styles/menu/bootstrap5.css +0 -16
- package/styles/treeview/_bootstrap4-definition.scss +1 -1
- package/styles/treeview/_bootstrap5-definition.scss +1 -1
- package/styles/treeview/bootstrap4.css +1 -1
- package/styles/treeview/bootstrap5-dark.css +1 -1
- package/styles/treeview/bootstrap5.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@20.4.44",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-WBZVEqEUCdzWUNFnD/qGx9OeZ55U7NUCJdnthrTgBQ7JETPKVpwB1xyOlT0NCEFmGvsOONlyJv9qWzzNs4wXTw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"/@syncfusion/ej2-spreadsheet",
|
|
39
39
|
"/@syncfusion/ej2-vue-navigations"
|
|
40
40
|
],
|
|
41
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.
|
|
42
|
-
"_shasum": "
|
|
41
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.44.tgz",
|
|
42
|
+
"_shasum": "47f1f4b77ec688da78a5579c24e16dfb92f9e606",
|
|
43
43
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
44
44
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
45
45
|
"author": {
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
},
|
|
51
51
|
"bundleDependencies": false,
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
54
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
55
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
56
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
57
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
58
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
53
|
+
"@syncfusion/ej2-base": "~20.4.48",
|
|
54
|
+
"@syncfusion/ej2-buttons": "~20.4.48",
|
|
55
|
+
"@syncfusion/ej2-data": "~20.4.48",
|
|
56
|
+
"@syncfusion/ej2-inputs": "~20.4.48",
|
|
57
|
+
"@syncfusion/ej2-lists": "~20.4.48",
|
|
58
|
+
"@syncfusion/ej2-popups": "~20.4.48"
|
|
59
59
|
},
|
|
60
60
|
"deprecated": false,
|
|
61
61
|
"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",
|
|
@@ -160,6 +160,6 @@
|
|
|
160
160
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
161
161
|
},
|
|
162
162
|
"typings": "index.d.ts",
|
|
163
|
-
"version": "20.4.
|
|
163
|
+
"version": "20.4.48",
|
|
164
164
|
"sideEffects": false
|
|
165
165
|
}
|
package/src/common/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export * from './h-scroll';
|
|
|
5
5
|
export * from './v-scroll';
|
|
6
6
|
export * from './menu-scroll';
|
|
7
7
|
export { MenuEventArgs, OpenCloseMenuEventArgs, BeforeOpenCloseMenuEventArgs, MenuAnimationSettings, MenuEffect } from './menu-base';
|
|
8
|
-
export { MenuItem } from './menu-base';
|
|
8
|
+
export { MenuItem, FieldSettings } from './menu-base';
|
|
9
9
|
export { MenuItemModel, FieldSettingsModel, MenuAnimationSettingsModel } from './menu-base-model';
|
package/src/common/index.js
CHANGED
package/src/common/menu-base.js
CHANGED
|
@@ -1684,6 +1684,11 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1684
1684
|
navIdx.length = 0;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1688
|
+
if (this_1.isReact && this_1.template) {
|
|
1689
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1690
|
+
this_1.portals = [];
|
|
1691
|
+
}
|
|
1687
1692
|
break;
|
|
1688
1693
|
}
|
|
1689
1694
|
}
|
package/src/menu/menu.js
CHANGED
package/src/sidebar/sidebar.js
CHANGED
|
@@ -198,7 +198,7 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
198
198
|
};
|
|
199
199
|
Sidebar.prototype.destroyBackDrop = function () {
|
|
200
200
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
201
|
-
if (this.target && this.showBackdrop && sibling) {
|
|
201
|
+
if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
|
|
202
202
|
removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
|
|
203
203
|
}
|
|
204
204
|
else if (this.showBackdrop && this.modal) {
|
package/src/tab/tab.js
CHANGED
|
@@ -427,6 +427,14 @@ var Tab = /** @class */ (function (_super) {
|
|
|
427
427
|
this.tbObj.createElement = this.createElement;
|
|
428
428
|
this.tbObj.appendTo(this.hdrEle);
|
|
429
429
|
attributes(this.hdrEle, { role: 'tablist' });
|
|
430
|
+
if (!isNOU(this.element.getAttribute('aria-label'))) {
|
|
431
|
+
this.hdrEle.setAttribute('aria-label', this.element.getAttribute('aria-label'));
|
|
432
|
+
this.element.removeAttribute('aria-label');
|
|
433
|
+
}
|
|
434
|
+
else if (!isNOU(this.element.getAttribute('aria-labelledby'))) {
|
|
435
|
+
this.hdrEle.setAttribute('aria-labelledby', this.element.getAttribute('aria-labelledby'));
|
|
436
|
+
this.element.removeAttribute('aria-labelledby');
|
|
437
|
+
}
|
|
430
438
|
this.setCloseButton(this.showCloseButton);
|
|
431
439
|
var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
|
|
432
440
|
if (!isNOU(toolbarHeader)) {
|
|
@@ -1100,10 +1108,6 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1100
1108
|
return;
|
|
1101
1109
|
}
|
|
1102
1110
|
if (!this.isTemplate) {
|
|
1103
|
-
var prev = this.tbItem[this.prevIndex];
|
|
1104
|
-
if (!isNOU(prev)) {
|
|
1105
|
-
prev.firstElementChild.removeAttribute('aria-controls');
|
|
1106
|
-
}
|
|
1107
1111
|
attributes(trg.firstElementChild, { 'aria-controls': CLS_CONTENT + this.tabId + '_' + value });
|
|
1108
1112
|
}
|
|
1109
1113
|
var id = trg.id;
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -438,8 +438,11 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
438
438
|
if (popObj && closest(trgt, '.e-popup')) {
|
|
439
439
|
var popEle = popObj.element;
|
|
440
440
|
var popFrstEle = popEle.firstElementChild;
|
|
441
|
-
if ((value === 'previous' && popFrstEle === clst)
|
|
442
|
-
|
|
441
|
+
if ((value === 'previous' && popFrstEle === clst)) {
|
|
442
|
+
popEle.lastElementChild.firstChild.focus();
|
|
443
|
+
}
|
|
444
|
+
else if (value === 'next' && popEle.lastElementChild === clst) {
|
|
445
|
+
popFrstEle.firstChild.focus();
|
|
443
446
|
}
|
|
444
447
|
else {
|
|
445
448
|
this.eleFocus(clst, value);
|
|
@@ -533,7 +536,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
533
536
|
}
|
|
534
537
|
};
|
|
535
538
|
Toolbar.prototype.eleContains = function (el) {
|
|
536
|
-
return el.classList.contains(CLS_SEPARATOR) || el.classList.contains(CLS_DISABLE) || el.getAttribute('disabled') || el.classList.contains(CLS_HIDDEN) || !isVisible(el);
|
|
539
|
+
return el.classList.contains(CLS_SEPARATOR) || el.classList.contains(CLS_DISABLE) || el.getAttribute('disabled') || el.classList.contains(CLS_HIDDEN) || !isVisible(el) || !el.classList.contains(CLS_ITEM);
|
|
537
540
|
};
|
|
538
541
|
Toolbar.prototype.eleFocus = function (closest, pos) {
|
|
539
542
|
var sib = Object(closest)[pos + 'ElementSibling'];
|
|
@@ -572,6 +575,15 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
572
575
|
}
|
|
573
576
|
}
|
|
574
577
|
}
|
|
578
|
+
else if (!isNOU(closest)) {
|
|
579
|
+
var tbrItems = this.element.querySelectorAll('.' + CLS_ITEMS + ' .' + CLS_ITEM + ':not(.' + CLS_SEPARATOR + ')' + ':not(.' + CLS_DISABLE + ')' + ':not(.' + CLS_HIDDEN + ')');
|
|
580
|
+
if (pos === 'next' && tbrItems) {
|
|
581
|
+
this.elementFocus(tbrItems[0]);
|
|
582
|
+
}
|
|
583
|
+
else if (pos === 'previous' && tbrItems) {
|
|
584
|
+
this.elementFocus(tbrItems[tbrItems.length - 1]);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
575
587
|
};
|
|
576
588
|
Toolbar.prototype.clickHandler = function (e) {
|
|
577
589
|
var _this = this;
|
|
@@ -275,6 +275,18 @@ export interface DataSourceChangedEventArgs {
|
|
|
275
275
|
data: {
|
|
276
276
|
[key: string]: Object;
|
|
277
277
|
}[];
|
|
278
|
+
/**
|
|
279
|
+
* Return the action which triggers the event
|
|
280
|
+
*
|
|
281
|
+
*/
|
|
282
|
+
action: string;
|
|
283
|
+
/**
|
|
284
|
+
* Return the new node data of updated data source
|
|
285
|
+
*
|
|
286
|
+
*/
|
|
287
|
+
nodeData: {
|
|
288
|
+
[key: string]: Object;
|
|
289
|
+
}[];
|
|
278
290
|
}
|
|
279
291
|
/**
|
|
280
292
|
* Interface that holds the node details.
|
|
@@ -523,6 +535,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
|
|
|
523
535
|
private isFirstRender;
|
|
524
536
|
private isNodeDropped;
|
|
525
537
|
private isInteracted;
|
|
538
|
+
private isRightClick;
|
|
526
539
|
/**
|
|
527
540
|
* Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
|
|
528
541
|
* desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
|
package/src/treeview/treeview.js
CHANGED
|
@@ -217,6 +217,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
217
217
|
// Specifies whether the node is dropped or not
|
|
218
218
|
_this.isNodeDropped = false;
|
|
219
219
|
_this.isInteracted = false;
|
|
220
|
+
_this.isRightClick = false;
|
|
220
221
|
_this.mouseDownStatus = false;
|
|
221
222
|
return _this;
|
|
222
223
|
}
|
|
@@ -1526,6 +1527,9 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1526
1527
|
}
|
|
1527
1528
|
}
|
|
1528
1529
|
}
|
|
1530
|
+
if (event.originalEvent.which === 3) {
|
|
1531
|
+
this.isRightClick = true;
|
|
1532
|
+
}
|
|
1529
1533
|
this.triggerClickEvent(event.originalEvent, li);
|
|
1530
1534
|
}
|
|
1531
1535
|
};
|
|
@@ -1964,7 +1968,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
1964
1968
|
if (this.isLoaded) {
|
|
1965
1969
|
eventArgs = this.getSelectEvent(li, 'select', e);
|
|
1966
1970
|
this.trigger('nodeSelecting', eventArgs, function (observedArgs) {
|
|
1967
|
-
if (!observedArgs.cancel && !observedArgs.node.classList.contains(PREVENTSELECT)) {
|
|
1971
|
+
if ((!observedArgs.cancel) && !observedArgs.node.classList.contains(PREVENTSELECT)) {
|
|
1968
1972
|
_this.nodeSelectAction(li, e, observedArgs, multiSelect);
|
|
1969
1973
|
}
|
|
1970
1974
|
});
|
|
@@ -2004,6 +2008,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2004
2008
|
eventArgs.nodeData = this.getNodeData(li);
|
|
2005
2009
|
this.trigger('nodeSelected', eventArgs);
|
|
2006
2010
|
}
|
|
2011
|
+
this.isRightClick = false;
|
|
2007
2012
|
};
|
|
2008
2013
|
TreeView.prototype.unselectNode = function (li, e) {
|
|
2009
2014
|
var _this = this;
|
|
@@ -2831,7 +2836,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
2831
2836
|
newText = observedArgs.cancel ? observedArgs.oldText : observedArgs.newText;
|
|
2832
2837
|
_this.updateText(liEle, txtEle, newText, isInput);
|
|
2833
2838
|
if (observedArgs.oldText !== newText) {
|
|
2834
|
-
_this.triggerEvent();
|
|
2839
|
+
_this.triggerEvent('nodeEdited', [_this.getNode(liEle)]);
|
|
2835
2840
|
}
|
|
2836
2841
|
});
|
|
2837
2842
|
};
|
|
@@ -3146,10 +3151,12 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3146
3151
|
var level;
|
|
3147
3152
|
var drop = false;
|
|
3148
3153
|
var dragInstance;
|
|
3154
|
+
var nodeData = [];
|
|
3155
|
+
var liArray = [];
|
|
3149
3156
|
dragInstance = e.dragData.draggable;
|
|
3150
|
-
for (var
|
|
3151
|
-
if (dragInstance.ej2_instances[
|
|
3152
|
-
dragObj = dragInstance.ej2_instances[
|
|
3157
|
+
for (var i_1 = 0; i_1 < dragInstance.ej2_instances.length; i_1++) {
|
|
3158
|
+
if (dragInstance.ej2_instances[i_1] instanceof TreeView_1) {
|
|
3159
|
+
dragObj = dragInstance.ej2_instances[i_1];
|
|
3153
3160
|
break;
|
|
3154
3161
|
}
|
|
3155
3162
|
}
|
|
@@ -3157,6 +3164,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3157
3164
|
var dragTarget = dragObj.dragTarget;
|
|
3158
3165
|
var dragLi = (closest(dragTarget, '.' + LISTITEM));
|
|
3159
3166
|
var dropLi = (closest(dropTarget, '.' + LISTITEM));
|
|
3167
|
+
liArray.push(dragLi);
|
|
3160
3168
|
if (dropLi == null && dropTarget.classList.contains(ROOT)) {
|
|
3161
3169
|
dropLi = dropTarget.firstElementChild;
|
|
3162
3170
|
}
|
|
@@ -3170,20 +3178,21 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3170
3178
|
}
|
|
3171
3179
|
if (dragObj.allowMultiSelection && dragLi.classList.contains(ACTIVE)) {
|
|
3172
3180
|
var sNodes = selectAll('.' + ACTIVE, dragObj.element);
|
|
3181
|
+
liArray = sNodes;
|
|
3173
3182
|
if (e.target.offsetHeight <= 33 && offsetY > e.target.offsetHeight - 10 && offsetY > 6) {
|
|
3174
|
-
for (var
|
|
3175
|
-
if (dropLi.isSameNode(sNodes[
|
|
3183
|
+
for (var i_2 = sNodes.length - 1; i_2 >= 0; i_2--) {
|
|
3184
|
+
if (dropLi.isSameNode(sNodes[i_2]) || this.isDescendant(sNodes[i_2], dropLi)) {
|
|
3176
3185
|
continue;
|
|
3177
3186
|
}
|
|
3178
|
-
this.appendNode(dropTarget, sNodes[
|
|
3187
|
+
this.appendNode(dropTarget, sNodes[i_2], dropLi, e, dragObj, offsetY);
|
|
3179
3188
|
}
|
|
3180
3189
|
}
|
|
3181
3190
|
else {
|
|
3182
|
-
for (var
|
|
3183
|
-
if (dropLi.isSameNode(sNodes[
|
|
3191
|
+
for (var i_3 = 0; i_3 < sNodes.length; i_3++) {
|
|
3192
|
+
if (dropLi.isSameNode(sNodes[i_3]) || this.isDescendant(sNodes[i_3], dropLi)) {
|
|
3184
3193
|
continue;
|
|
3185
3194
|
}
|
|
3186
|
-
this.appendNode(dropTarget, sNodes[
|
|
3195
|
+
this.appendNode(dropTarget, sNodes[i_3], dropLi, e, dragObj, offsetY);
|
|
3187
3196
|
}
|
|
3188
3197
|
}
|
|
3189
3198
|
}
|
|
@@ -3196,13 +3205,16 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
3196
3205
|
if (this.fields.dataSource instanceof DataManager === false) {
|
|
3197
3206
|
this.preventExpand = false;
|
|
3198
3207
|
}
|
|
3208
|
+
for (var i = 0; i < liArray.length; i++) {
|
|
3209
|
+
nodeData.push(this.getNode(liArray[i]));
|
|
3210
|
+
}
|
|
3199
3211
|
this.trigger('nodeDropped', this.getDragEvent(e.event, dragObj, dropTarget, e.target, e.dragData.draggedElement, null, level, drop));
|
|
3200
3212
|
if (dragObj.element.id !== this.element.id) {
|
|
3201
|
-
dragObj.triggerEvent();
|
|
3213
|
+
dragObj.triggerEvent('nodeDropped', nodeData);
|
|
3202
3214
|
this.isNodeDropped = true;
|
|
3203
3215
|
this.fields.dataSource = this.treeData;
|
|
3204
3216
|
}
|
|
3205
|
-
this.triggerEvent();
|
|
3217
|
+
this.triggerEvent('nodeDropped', nodeData);
|
|
3206
3218
|
};
|
|
3207
3219
|
TreeView.prototype.appendNode = function (dropTarget, dragLi, dropLi, e, dragObj, offsetY) {
|
|
3208
3220
|
var checkWrapper = closest(dropTarget, '.' + CHECKBOXWRAP);
|
|
@@ -4025,9 +4037,16 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4025
4037
|
}
|
|
4026
4038
|
return removedData;
|
|
4027
4039
|
};
|
|
4028
|
-
TreeView.prototype.triggerEvent = function () {
|
|
4040
|
+
TreeView.prototype.triggerEvent = function (action, node) {
|
|
4029
4041
|
this.renderReactTemplates();
|
|
4030
|
-
|
|
4042
|
+
if (action === 'addNodes') {
|
|
4043
|
+
var nodeData = [];
|
|
4044
|
+
for (var i = 0; i < node.length; i++) {
|
|
4045
|
+
nodeData.push(this.getNode(this.getElement(isNOU(node[i][this.fields.id]) ? getValue(this.fields.id, node[i]).toString() : null)));
|
|
4046
|
+
}
|
|
4047
|
+
node = nodeData;
|
|
4048
|
+
}
|
|
4049
|
+
var eventArgs = { data: this.treeData, action: action, nodeData: node };
|
|
4031
4050
|
this.trigger('dataSourceChanged', eventArgs);
|
|
4032
4051
|
};
|
|
4033
4052
|
TreeView.prototype.wireInputEvents = function (inpEle) {
|
|
@@ -4405,8 +4424,10 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4405
4424
|
}
|
|
4406
4425
|
};
|
|
4407
4426
|
TreeView.prototype.deleteSuccess = function (nodes) {
|
|
4427
|
+
var nodeData = [];
|
|
4408
4428
|
for (var i = 0, len = nodes.length; i < len; i++) {
|
|
4409
4429
|
var liEle = this.getElement(nodes[i]);
|
|
4430
|
+
nodeData.push(this.getNode(liEle));
|
|
4410
4431
|
if (isNOU(liEle)) {
|
|
4411
4432
|
continue;
|
|
4412
4433
|
}
|
|
@@ -4416,7 +4437,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4416
4437
|
if (this.dataType === 1) {
|
|
4417
4438
|
this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
|
|
4418
4439
|
}
|
|
4419
|
-
this.triggerEvent();
|
|
4440
|
+
this.triggerEvent('removeNode', nodeData);
|
|
4420
4441
|
};
|
|
4421
4442
|
TreeView.prototype.editSucess = function (target, newText, prevent) {
|
|
4422
4443
|
var liEle = this.getElement(target);
|
|
@@ -4432,12 +4453,12 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4432
4453
|
proxy.renderChildNodes(dropLi, null, function () {
|
|
4433
4454
|
dropUl = dropLi.querySelector('.' + PARENTITEM);
|
|
4434
4455
|
proxy.addGivenNodes(nodes, dropLi, index, true, dropUl);
|
|
4435
|
-
proxy.triggerEvent();
|
|
4456
|
+
proxy.triggerEvent('addNodes', nodes);
|
|
4436
4457
|
});
|
|
4437
4458
|
}
|
|
4438
4459
|
else {
|
|
4439
4460
|
this.addGivenNodes(nodes, dropLi, index, true);
|
|
4440
|
-
this.triggerEvent();
|
|
4461
|
+
this.triggerEvent('addNodes', nodes);
|
|
4441
4462
|
}
|
|
4442
4463
|
};
|
|
4443
4464
|
TreeView.prototype.dmFailure = function (e, target, prevent) {
|
|
@@ -4648,7 +4669,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4648
4669
|
}
|
|
4649
4670
|
if ((this.fields.dataSource instanceof DataManager === false)) {
|
|
4650
4671
|
this.preventExpand = false;
|
|
4651
|
-
this.triggerEvent();
|
|
4672
|
+
this.triggerEvent('addNodes', nodes);
|
|
4652
4673
|
}
|
|
4653
4674
|
};
|
|
4654
4675
|
/**
|
|
@@ -4800,11 +4821,13 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4800
4821
|
*/
|
|
4801
4822
|
TreeView.prototype.moveNodes = function (sourceNodes, target, index, preventTargetExpand) {
|
|
4802
4823
|
var dropLi = this.getElement(target);
|
|
4824
|
+
var nodeData = [];
|
|
4803
4825
|
if (isNOU(dropLi)) {
|
|
4804
4826
|
return;
|
|
4805
4827
|
}
|
|
4806
4828
|
for (var i = 0; i < sourceNodes.length; i++) {
|
|
4807
4829
|
var dragLi = this.getElement(sourceNodes[i]);
|
|
4830
|
+
nodeData.push(this.getNode(dragLi));
|
|
4808
4831
|
if (isNOU(dragLi) || dropLi.isSameNode(dragLi) || this.isDescendant(dragLi, dropLi)) {
|
|
4809
4832
|
continue;
|
|
4810
4833
|
}
|
|
@@ -4814,7 +4837,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4814
4837
|
if (this.fields.dataSource instanceof DataManager === false) {
|
|
4815
4838
|
this.preventExpand = false;
|
|
4816
4839
|
}
|
|
4817
|
-
this.triggerEvent();
|
|
4840
|
+
this.triggerEvent('moveNodes', nodeData);
|
|
4818
4841
|
};
|
|
4819
4842
|
/**
|
|
4820
4843
|
* Refreshes a particular node of the TreeView.
|
|
@@ -4918,7 +4941,7 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4918
4941
|
addClass([liEle], ACTIVE);
|
|
4919
4942
|
}
|
|
4920
4943
|
this.isRefreshed = false;
|
|
4921
|
-
this.triggerEvent();
|
|
4944
|
+
this.triggerEvent('refreshNode', [this.getNode(liEle)]);
|
|
4922
4945
|
};
|
|
4923
4946
|
/**
|
|
4924
4947
|
* Removes the collection of TreeView nodes by passing the array of node details as argument to this method.
|
package/styles/bootstrap4.css
CHANGED
|
@@ -3663,14 +3663,6 @@
|
|
|
3663
3663
|
.e-contextmenu-container ul .e-menu-item.e-menu-header {
|
|
3664
3664
|
border-bottom-color: #444c54;
|
|
3665
3665
|
}
|
|
3666
|
-
.e-contextmenu-wrapper ul .e-menu-item .e-caret,
|
|
3667
|
-
.e-contextmenu-container ul .e-menu-item .e-caret {
|
|
3668
|
-
color: #adb5bd;
|
|
3669
|
-
}
|
|
3670
|
-
.e-contextmenu-wrapper ul .e-menu-item .e-menu-icon,
|
|
3671
|
-
.e-contextmenu-container ul .e-menu-item .e-menu-icon {
|
|
3672
|
-
color: #adb5bd;
|
|
3673
|
-
}
|
|
3674
3666
|
.e-contextmenu-wrapper ul .e-menu-item .e-menu-url,
|
|
3675
3667
|
.e-contextmenu-container ul .e-menu-item .e-menu-url {
|
|
3676
3668
|
color: #fff;
|
|
@@ -3682,14 +3674,6 @@
|
|
|
3682
3674
|
outline: 0 solid #444c54;
|
|
3683
3675
|
outline-offset: 0;
|
|
3684
3676
|
}
|
|
3685
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-focused .e-caret,
|
|
3686
|
-
.e-contextmenu-container ul .e-menu-item.e-focused .e-caret {
|
|
3687
|
-
color: #adb5bd;
|
|
3688
|
-
}
|
|
3689
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-focused .e-menu-icon,
|
|
3690
|
-
.e-contextmenu-container ul .e-menu-item.e-focused .e-menu-icon {
|
|
3691
|
-
color: #adb5bd;
|
|
3692
|
-
}
|
|
3693
3677
|
.e-contextmenu-wrapper ul .e-menu-item.e-selected,
|
|
3694
3678
|
.e-contextmenu-container ul .e-menu-item.e-selected {
|
|
3695
3679
|
background-color: #0d6efd;
|
|
@@ -3697,14 +3681,6 @@
|
|
|
3697
3681
|
outline: 0 solid #0d6efd;
|
|
3698
3682
|
outline-offset: 0;
|
|
3699
3683
|
}
|
|
3700
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-selected .e-caret,
|
|
3701
|
-
.e-contextmenu-container ul .e-menu-item.e-selected .e-caret {
|
|
3702
|
-
color: #adb5bd;
|
|
3703
|
-
}
|
|
3704
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-selected .e-menu-icon,
|
|
3705
|
-
.e-contextmenu-container ul .e-menu-item.e-selected .e-menu-icon {
|
|
3706
|
-
color: #adb5bd;
|
|
3707
|
-
}
|
|
3708
3684
|
.e-contextmenu-wrapper ul .e-disabled,
|
|
3709
3685
|
.e-contextmenu-container ul .e-disabled {
|
|
3710
3686
|
color: rgba(255, 255, 255, 0.65);
|
|
@@ -8212,7 +8188,7 @@
|
|
|
8212
8188
|
.e-treeview .e-icon-expandable {
|
|
8213
8189
|
display: inline-block;
|
|
8214
8190
|
height: 20px;
|
|
8215
|
-
margin: 0
|
|
8191
|
+
margin: 0 4px 0 -25px;
|
|
8216
8192
|
vertical-align: middle;
|
|
8217
8193
|
width: 20px;
|
|
8218
8194
|
}
|
|
@@ -9683,14 +9659,6 @@ ejs-sidebar {
|
|
|
9683
9659
|
.e-menu-container .e-menu .e-menu-item.e-menu-header {
|
|
9684
9660
|
border-bottom-color: #444c54;
|
|
9685
9661
|
}
|
|
9686
|
-
.e-menu-wrapper .e-menu .e-menu-item .e-caret,
|
|
9687
|
-
.e-menu-container .e-menu .e-menu-item .e-caret {
|
|
9688
|
-
color: #adb5bd;
|
|
9689
|
-
}
|
|
9690
|
-
.e-menu-wrapper .e-menu .e-menu-item .e-menu-icon,
|
|
9691
|
-
.e-menu-container .e-menu .e-menu-item .e-menu-icon {
|
|
9692
|
-
color: #adb5bd;
|
|
9693
|
-
}
|
|
9694
9662
|
.e-menu-wrapper .e-menu .e-menu-item.e-menu-header,
|
|
9695
9663
|
.e-menu-container .e-menu .e-menu-item.e-menu-header {
|
|
9696
9664
|
border-bottom-color: #444c54;
|
|
@@ -9706,14 +9674,6 @@ ejs-sidebar {
|
|
|
9706
9674
|
outline-offset: 0;
|
|
9707
9675
|
background-color: #495057;
|
|
9708
9676
|
}
|
|
9709
|
-
.e-menu-wrapper .e-menu .e-menu-item.e-focused .e-caret,
|
|
9710
|
-
.e-menu-container .e-menu .e-menu-item.e-focused .e-caret {
|
|
9711
|
-
color: #adb5bd;
|
|
9712
|
-
}
|
|
9713
|
-
.e-menu-wrapper .e-menu .e-menu-item.e-focused .e-menu-icon,
|
|
9714
|
-
.e-menu-container .e-menu .e-menu-item.e-focused .e-menu-icon {
|
|
9715
|
-
color: #adb5bd;
|
|
9716
|
-
}
|
|
9717
9677
|
.e-menu-wrapper .e-menu .e-menu-item.e-selected,
|
|
9718
9678
|
.e-menu-container .e-menu .e-menu-item.e-selected {
|
|
9719
9679
|
color: #fff;
|
package/styles/bootstrap5.css
CHANGED
|
@@ -3663,14 +3663,6 @@
|
|
|
3663
3663
|
.e-contextmenu-container ul .e-menu-item.e-menu-header {
|
|
3664
3664
|
border-bottom-color: #dee2e6;
|
|
3665
3665
|
}
|
|
3666
|
-
.e-contextmenu-wrapper ul .e-menu-item .e-caret,
|
|
3667
|
-
.e-contextmenu-container ul .e-menu-item .e-caret {
|
|
3668
|
-
color: #6c757d;
|
|
3669
|
-
}
|
|
3670
|
-
.e-contextmenu-wrapper ul .e-menu-item .e-menu-icon,
|
|
3671
|
-
.e-contextmenu-container ul .e-menu-item .e-menu-icon {
|
|
3672
|
-
color: #6c757d;
|
|
3673
|
-
}
|
|
3674
3666
|
.e-contextmenu-wrapper ul .e-menu-item .e-menu-url,
|
|
3675
3667
|
.e-contextmenu-container ul .e-menu-item .e-menu-url {
|
|
3676
3668
|
color: #212529;
|
|
@@ -3682,14 +3674,6 @@
|
|
|
3682
3674
|
outline: 0 solid #dee2e6;
|
|
3683
3675
|
outline-offset: 0;
|
|
3684
3676
|
}
|
|
3685
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-focused .e-caret,
|
|
3686
|
-
.e-contextmenu-container ul .e-menu-item.e-focused .e-caret {
|
|
3687
|
-
color: #6c757d;
|
|
3688
|
-
}
|
|
3689
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-focused .e-menu-icon,
|
|
3690
|
-
.e-contextmenu-container ul .e-menu-item.e-focused .e-menu-icon {
|
|
3691
|
-
color: #6c757d;
|
|
3692
|
-
}
|
|
3693
3677
|
.e-contextmenu-wrapper ul .e-menu-item.e-selected,
|
|
3694
3678
|
.e-contextmenu-container ul .e-menu-item.e-selected {
|
|
3695
3679
|
background-color: #0d6efd;
|
|
@@ -3697,14 +3681,6 @@
|
|
|
3697
3681
|
outline: 0 solid #0d6efd;
|
|
3698
3682
|
outline-offset: 0;
|
|
3699
3683
|
}
|
|
3700
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-selected .e-caret,
|
|
3701
|
-
.e-contextmenu-container ul .e-menu-item.e-selected .e-caret {
|
|
3702
|
-
color: #6c757d;
|
|
3703
|
-
}
|
|
3704
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-selected .e-menu-icon,
|
|
3705
|
-
.e-contextmenu-container ul .e-menu-item.e-selected .e-menu-icon {
|
|
3706
|
-
color: #6c757d;
|
|
3707
|
-
}
|
|
3708
3684
|
.e-contextmenu-wrapper ul .e-disabled,
|
|
3709
3685
|
.e-contextmenu-container ul .e-disabled {
|
|
3710
3686
|
color: rgba(33, 37, 41, 0.65);
|
|
@@ -8212,7 +8188,7 @@
|
|
|
8212
8188
|
.e-treeview .e-icon-expandable {
|
|
8213
8189
|
display: inline-block;
|
|
8214
8190
|
height: 20px;
|
|
8215
|
-
margin: 0
|
|
8191
|
+
margin: 0 4px 0 -25px;
|
|
8216
8192
|
vertical-align: middle;
|
|
8217
8193
|
width: 20px;
|
|
8218
8194
|
}
|
|
@@ -9683,14 +9659,6 @@ ejs-sidebar {
|
|
|
9683
9659
|
.e-menu-container .e-menu .e-menu-item.e-menu-header {
|
|
9684
9660
|
border-bottom-color: #dee2e6;
|
|
9685
9661
|
}
|
|
9686
|
-
.e-menu-wrapper .e-menu .e-menu-item .e-caret,
|
|
9687
|
-
.e-menu-container .e-menu .e-menu-item .e-caret {
|
|
9688
|
-
color: #6c757d;
|
|
9689
|
-
}
|
|
9690
|
-
.e-menu-wrapper .e-menu .e-menu-item .e-menu-icon,
|
|
9691
|
-
.e-menu-container .e-menu .e-menu-item .e-menu-icon {
|
|
9692
|
-
color: #6c757d;
|
|
9693
|
-
}
|
|
9694
9662
|
.e-menu-wrapper .e-menu .e-menu-item.e-menu-header,
|
|
9695
9663
|
.e-menu-container .e-menu .e-menu-item.e-menu-header {
|
|
9696
9664
|
border-bottom-color: #dee2e6;
|
|
@@ -9706,14 +9674,6 @@ ejs-sidebar {
|
|
|
9706
9674
|
outline-offset: 0;
|
|
9707
9675
|
background-color: #dee2e6;
|
|
9708
9676
|
}
|
|
9709
|
-
.e-menu-wrapper .e-menu .e-menu-item.e-focused .e-caret,
|
|
9710
|
-
.e-menu-container .e-menu .e-menu-item.e-focused .e-caret {
|
|
9711
|
-
color: #6c757d;
|
|
9712
|
-
}
|
|
9713
|
-
.e-menu-wrapper .e-menu .e-menu-item.e-focused .e-menu-icon,
|
|
9714
|
-
.e-menu-container .e-menu .e-menu-item.e-focused .e-menu-icon {
|
|
9715
|
-
color: #6c757d;
|
|
9716
|
-
}
|
|
9717
9677
|
.e-menu-wrapper .e-menu .e-menu-item.e-selected,
|
|
9718
9678
|
.e-menu-container .e-menu .e-menu-item.e-selected {
|
|
9719
9679
|
color: #212529;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
@mixin focused-icon-color {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
@if $skin-name != 'bootstrap5' {
|
|
3
|
+
& .e-caret {
|
|
4
|
+
color: $cmenu-caret-color;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
& .e-menu-icon {
|
|
8
|
+
color: $cmenu-icon-color;
|
|
9
|
+
}
|
|
8
10
|
}
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
@mixin selected-icon-color {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
@if $skin-name != 'bootstrap5' {
|
|
15
|
+
& .e-caret {
|
|
16
|
+
color: $cmenu-caret-hover-color;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& .e-menu-icon {
|
|
20
|
+
color: $cmenu-hover-icon-color;
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
|
|
@@ -304,14 +304,6 @@
|
|
|
304
304
|
.e-contextmenu-container ul .e-menu-item.e-menu-header {
|
|
305
305
|
border-bottom-color: #444c54;
|
|
306
306
|
}
|
|
307
|
-
.e-contextmenu-wrapper ul .e-menu-item .e-caret,
|
|
308
|
-
.e-contextmenu-container ul .e-menu-item .e-caret {
|
|
309
|
-
color: #adb5bd;
|
|
310
|
-
}
|
|
311
|
-
.e-contextmenu-wrapper ul .e-menu-item .e-menu-icon,
|
|
312
|
-
.e-contextmenu-container ul .e-menu-item .e-menu-icon {
|
|
313
|
-
color: #adb5bd;
|
|
314
|
-
}
|
|
315
307
|
.e-contextmenu-wrapper ul .e-menu-item .e-menu-url,
|
|
316
308
|
.e-contextmenu-container ul .e-menu-item .e-menu-url {
|
|
317
309
|
color: #fff;
|
|
@@ -323,14 +315,6 @@
|
|
|
323
315
|
outline: 0 solid #444c54;
|
|
324
316
|
outline-offset: 0;
|
|
325
317
|
}
|
|
326
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-focused .e-caret,
|
|
327
|
-
.e-contextmenu-container ul .e-menu-item.e-focused .e-caret {
|
|
328
|
-
color: #adb5bd;
|
|
329
|
-
}
|
|
330
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-focused .e-menu-icon,
|
|
331
|
-
.e-contextmenu-container ul .e-menu-item.e-focused .e-menu-icon {
|
|
332
|
-
color: #adb5bd;
|
|
333
|
-
}
|
|
334
318
|
.e-contextmenu-wrapper ul .e-menu-item.e-selected,
|
|
335
319
|
.e-contextmenu-container ul .e-menu-item.e-selected {
|
|
336
320
|
background-color: #0d6efd;
|
|
@@ -338,14 +322,6 @@
|
|
|
338
322
|
outline: 0 solid #0d6efd;
|
|
339
323
|
outline-offset: 0;
|
|
340
324
|
}
|
|
341
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-selected .e-caret,
|
|
342
|
-
.e-contextmenu-container ul .e-menu-item.e-selected .e-caret {
|
|
343
|
-
color: #adb5bd;
|
|
344
|
-
}
|
|
345
|
-
.e-contextmenu-wrapper ul .e-menu-item.e-selected .e-menu-icon,
|
|
346
|
-
.e-contextmenu-container ul .e-menu-item.e-selected .e-menu-icon {
|
|
347
|
-
color: #adb5bd;
|
|
348
|
-
}
|
|
349
325
|
.e-contextmenu-wrapper ul .e-disabled,
|
|
350
326
|
.e-contextmenu-container ul .e-disabled {
|
|
351
327
|
color: rgba(255, 255, 255, 0.65);
|