@syncfusion/ej2-navigations 33.1.45 → 33.1.47
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 +157 -38
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +160 -38
- 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 +3 -3
- package/src/accordion/accordion.js +9 -0
- package/src/breadcrumb/breadcrumb.d.ts +1 -0
- package/src/breadcrumb/breadcrumb.js +5 -3
- package/src/common/h-scroll.d.ts +6 -0
- package/src/common/h-scroll.js +69 -14
- package/src/common/menu-base.d.ts +3 -0
- package/src/common/menu-base.js +30 -9
- package/src/sidebar/sidebar.d.ts +1 -0
- package/src/sidebar/sidebar.js +4 -2
- package/src/stepper/stepper.d.ts +1 -0
- package/src/stepper/stepper.js +12 -4
- package/src/tab/tab.js +12 -4
- package/src/toolbar/toolbar.js +7 -2
- package/src/treeview/treeview.js +12 -0
- package/styles/appbar/bds.css +2 -2
- package/styles/bds-lite.css +2 -2
- package/styles/bds.css +2 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.1.
|
|
3
|
+
* version : 33.1.47
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-navigations",
|
|
3
|
-
"version": "33.1.
|
|
3
|
+
"version": "33.1.47",
|
|
4
4
|
"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",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@syncfusion/ej2-base": "~33.1.45",
|
|
12
12
|
"@syncfusion/ej2-buttons": "~33.1.44",
|
|
13
13
|
"@syncfusion/ej2-data": "~33.1.45",
|
|
14
|
-
"@syncfusion/ej2-inputs": "~33.1.
|
|
15
|
-
"@syncfusion/ej2-lists": "~33.1.
|
|
14
|
+
"@syncfusion/ej2-inputs": "~33.1.47",
|
|
15
|
+
"@syncfusion/ej2-lists": "~33.1.47",
|
|
16
16
|
"@syncfusion/ej2-popups": "~33.1.44"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {},
|
|
@@ -257,6 +257,11 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
257
257
|
if (!isNOU(this.keyModule)) {
|
|
258
258
|
this.keyModule.destroy();
|
|
259
259
|
}
|
|
260
|
+
var headerEles = [].slice.call(this.element.querySelectorAll('.' + CLS_HEADER));
|
|
261
|
+
for (var _i = 0, headerEles_1 = headerEles; _i < headerEles_1.length; _i++) {
|
|
262
|
+
var hdr = headerEles_1[_i];
|
|
263
|
+
EventHandler.clearEvents(hdr);
|
|
264
|
+
}
|
|
260
265
|
};
|
|
261
266
|
Accordion.prototype.wireEvents = function () {
|
|
262
267
|
EventHandler.add(this.element, 'click', this.clickHandler, this);
|
|
@@ -1178,6 +1183,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1178
1183
|
this.clearTemplate();
|
|
1179
1184
|
}
|
|
1180
1185
|
[].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) {
|
|
1186
|
+
var hdr = select('.' + CLS_HEADER, el);
|
|
1187
|
+
if (hdr) {
|
|
1188
|
+
EventHandler.clearEvents(hdr);
|
|
1189
|
+
}
|
|
1181
1190
|
detach(el);
|
|
1182
1191
|
});
|
|
1183
1192
|
};
|
|
@@ -620,7 +620,7 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
620
620
|
detach(this.popupObj.element);
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
Breadcrumb.prototype.resize = function () {
|
|
623
|
+
Breadcrumb.prototype.resize = function (e) {
|
|
624
624
|
this._maxItems = this.maxItems;
|
|
625
625
|
this.initPvtProps();
|
|
626
626
|
this.reRenderItems();
|
|
@@ -711,7 +711,8 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
711
711
|
this.delegateClickHanlder = this.documentClickHandler.bind(this);
|
|
712
712
|
EventHandler.add(document, 'click', this.delegateClickHanlder, this);
|
|
713
713
|
EventHandler.add(this.element, 'click', this.clickHandler, this);
|
|
714
|
-
|
|
714
|
+
this.resizeHandler = this.resize.bind(this);
|
|
715
|
+
window.addEventListener('resize', this.resizeHandler);
|
|
715
716
|
};
|
|
716
717
|
Breadcrumb.prototype.popupWireEvents = function () {
|
|
717
718
|
EventHandler.add(this.popupObj.element, 'click', this.clickHandler, this);
|
|
@@ -720,7 +721,8 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
720
721
|
Breadcrumb.prototype.unWireEvents = function () {
|
|
721
722
|
EventHandler.remove(document, 'click', this.delegateClickHanlder);
|
|
722
723
|
EventHandler.remove(this.element, 'click', this.clickHandler);
|
|
723
|
-
window.removeEventListener('resize', this.
|
|
724
|
+
window.removeEventListener('resize', this.resizeHandler);
|
|
725
|
+
this.resizeHandler = null;
|
|
724
726
|
if (this.popupObj) {
|
|
725
727
|
EventHandler.remove(this.popupObj.element, 'click', this.clickHandler);
|
|
726
728
|
EventHandler.remove(this.popupObj.element, 'keydown', this.popupKeyDownHandler);
|
package/src/common/h-scroll.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ export declare class HScroll extends Component<HTMLElement> implements INotifyPr
|
|
|
22
22
|
private timeout;
|
|
23
23
|
private keyTimeout;
|
|
24
24
|
private keyTimer;
|
|
25
|
+
private onKeyPressBound;
|
|
26
|
+
private onKeyUpBound;
|
|
27
|
+
private repeatScrollBound;
|
|
28
|
+
private contextMenuBound;
|
|
29
|
+
private navTouchCollection;
|
|
25
30
|
private browser;
|
|
26
31
|
private browserCheck;
|
|
27
32
|
private ieCheck;
|
|
@@ -82,6 +87,7 @@ export declare class HScroll extends Component<HTMLElement> implements INotifyPr
|
|
|
82
87
|
private onKeyPress;
|
|
83
88
|
private onKeyUp;
|
|
84
89
|
private eventBinding;
|
|
90
|
+
private contextMenuHandler;
|
|
85
91
|
private repeatScroll;
|
|
86
92
|
private tabHoldHandler;
|
|
87
93
|
private contains;
|
package/src/common/h-scroll.js
CHANGED
|
@@ -144,6 +144,7 @@ var HScroll = /** @class */ (function (_super) {
|
|
|
144
144
|
* @returns {void}
|
|
145
145
|
*/
|
|
146
146
|
HScroll.prototype.destroy = function () {
|
|
147
|
+
var _this = this;
|
|
147
148
|
var ele = this.element;
|
|
148
149
|
ele.style.display = '';
|
|
149
150
|
ele.classList.remove(CLS_ROOT);
|
|
@@ -151,8 +152,22 @@ var HScroll = /** @class */ (function (_super) {
|
|
|
151
152
|
ele.classList.remove(CLS_RTL);
|
|
152
153
|
var nav = selectAll('.e-' + ele.id + '_nav.' + CLS_HSCROLLNAV, ele);
|
|
153
154
|
var overlay = selectAll('.' + CLS_OVERLAY, ele);
|
|
154
|
-
[].slice.call(overlay).forEach(function (
|
|
155
|
-
|
|
155
|
+
[].slice.call(overlay).forEach(function (oElem) {
|
|
156
|
+
if (_this.onKeyPressBound) {
|
|
157
|
+
oElem.removeEventListener('keydown', _this.onKeyPressBound);
|
|
158
|
+
}
|
|
159
|
+
if (_this.onKeyUpBound) {
|
|
160
|
+
oElem.removeEventListener('keyup', _this.onKeyUpBound);
|
|
161
|
+
}
|
|
162
|
+
if (_this.repeatScrollBound) {
|
|
163
|
+
oElem.removeEventListener('mouseup', _this.repeatScrollBound);
|
|
164
|
+
oElem.removeEventListener('touchend', _this.repeatScrollBound);
|
|
165
|
+
}
|
|
166
|
+
if (_this.contextMenuBound) {
|
|
167
|
+
oElem.removeEventListener('contextmenu', _this.contextMenuBound);
|
|
168
|
+
}
|
|
169
|
+
EventHandler.remove(oElem, 'click', _this.clickEventHandler);
|
|
170
|
+
detach(oElem);
|
|
156
171
|
});
|
|
157
172
|
for (var _i = 0, _a = [].slice.call(this.scrollItems.children); _i < _a.length; _i++) {
|
|
158
173
|
var elem = _a[_i];
|
|
@@ -163,14 +178,37 @@ var HScroll = /** @class */ (function (_super) {
|
|
|
163
178
|
}
|
|
164
179
|
detach(this.scrollEle);
|
|
165
180
|
if (nav.length > 0) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
181
|
+
[].slice.call(nav).forEach(function (nElem) {
|
|
182
|
+
if (_this.onKeyPressBound) {
|
|
183
|
+
nElem.removeEventListener('keydown', _this.onKeyPressBound);
|
|
184
|
+
}
|
|
185
|
+
if (_this.onKeyUpBound) {
|
|
186
|
+
nElem.removeEventListener('keyup', _this.onKeyUpBound);
|
|
187
|
+
}
|
|
188
|
+
if (_this.repeatScrollBound) {
|
|
189
|
+
nElem.removeEventListener('mouseup', _this.repeatScrollBound);
|
|
190
|
+
nElem.removeEventListener('touchend', _this.repeatScrollBound);
|
|
191
|
+
}
|
|
192
|
+
if (_this.contextMenuBound) {
|
|
193
|
+
nElem.removeEventListener('contextmenu', _this.contextMenuBound);
|
|
194
|
+
}
|
|
195
|
+
EventHandler.remove(nElem, 'click', _this.clickEventHandler);
|
|
196
|
+
detach(nElem);
|
|
197
|
+
});
|
|
170
198
|
}
|
|
171
199
|
EventHandler.remove(this.scrollEle, 'scroll', this.scrollHandler);
|
|
172
200
|
this.touchModule.destroy();
|
|
173
201
|
this.touchModule = null;
|
|
202
|
+
if (this.navTouchCollection) {
|
|
203
|
+
this.navTouchCollection.forEach(function (t) { if (t && typeof t.destroy === 'function') {
|
|
204
|
+
t.destroy();
|
|
205
|
+
} });
|
|
206
|
+
this.navTouchCollection = null;
|
|
207
|
+
}
|
|
208
|
+
this.onKeyPressBound = null;
|
|
209
|
+
this.onKeyUpBound = null;
|
|
210
|
+
this.repeatScrollBound = null;
|
|
211
|
+
this.contextMenuBound = null;
|
|
174
212
|
_super.prototype.destroy.call(this);
|
|
175
213
|
};
|
|
176
214
|
/**
|
|
@@ -257,17 +295,34 @@ var HScroll = /** @class */ (function (_super) {
|
|
|
257
295
|
HScroll.prototype.eventBinding = function (ele) {
|
|
258
296
|
var _this = this;
|
|
259
297
|
[].slice.call(ele).forEach(function (el) {
|
|
260
|
-
new Touch(el, { tapHold: _this.tabHoldHandler.bind(_this), tapHoldThreshold: 500 });
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
298
|
+
var navTouch = new Touch(el, { tapHold: _this.tabHoldHandler.bind(_this), tapHoldThreshold: 500 });
|
|
299
|
+
if (!_this.navTouchCollection) {
|
|
300
|
+
_this.navTouchCollection = [];
|
|
301
|
+
}
|
|
302
|
+
_this.navTouchCollection.push(navTouch);
|
|
303
|
+
if (!_this.onKeyPressBound) {
|
|
304
|
+
_this.onKeyPressBound = _this.onKeyPress.bind(_this);
|
|
305
|
+
}
|
|
306
|
+
if (!_this.onKeyUpBound) {
|
|
307
|
+
_this.onKeyUpBound = _this.onKeyUp.bind(_this);
|
|
308
|
+
}
|
|
309
|
+
if (!_this.repeatScrollBound) {
|
|
310
|
+
_this.repeatScrollBound = _this.repeatScroll.bind(_this);
|
|
311
|
+
}
|
|
312
|
+
if (!_this.contextMenuBound) {
|
|
313
|
+
_this.contextMenuBound = _this.contextMenuHandler.bind(_this);
|
|
314
|
+
}
|
|
315
|
+
el.addEventListener('keydown', _this.onKeyPressBound);
|
|
316
|
+
el.addEventListener('keyup', _this.onKeyUpBound);
|
|
317
|
+
el.addEventListener('mouseup', _this.repeatScrollBound);
|
|
318
|
+
el.addEventListener('touchend', _this.repeatScrollBound);
|
|
319
|
+
el.addEventListener('contextmenu', _this.contextMenuBound);
|
|
268
320
|
EventHandler.add(el, 'click', _this.clickEventHandler, _this);
|
|
269
321
|
});
|
|
270
322
|
};
|
|
323
|
+
HScroll.prototype.contextMenuHandler = function (e) {
|
|
324
|
+
e.preventDefault();
|
|
325
|
+
};
|
|
271
326
|
HScroll.prototype.repeatScroll = function () {
|
|
272
327
|
clearInterval(this.timeout);
|
|
273
328
|
};
|
|
@@ -156,7 +156,10 @@ export declare abstract class MenuBase extends Component<HTMLUListElement> imple
|
|
|
156
156
|
private targetElement;
|
|
157
157
|
private delegateClickHandler;
|
|
158
158
|
private delegateMoverHandler;
|
|
159
|
+
private delegateDomKeyHandler;
|
|
160
|
+
private delegateScrollHandler;
|
|
159
161
|
private delegateMouseDownHandler;
|
|
162
|
+
private delegateTouchOutsideHandler;
|
|
160
163
|
private navIdx;
|
|
161
164
|
private animation;
|
|
162
165
|
private isTapHold;
|
package/src/common/menu-base.js
CHANGED
|
@@ -348,11 +348,13 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
348
348
|
if (!Browser.isDevice) {
|
|
349
349
|
this.delegateMoverHandler = this.moverHandler.bind(this);
|
|
350
350
|
this.delegateMouseDownHandler = this.mouseDownHandler.bind(this);
|
|
351
|
+
this.delegateDomKeyHandler = this.domKeyHandler.bind(this);
|
|
351
352
|
EventHandler.add(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler, this);
|
|
352
353
|
EventHandler.add(document, 'mousedown', this.delegateMouseDownHandler, this);
|
|
353
|
-
EventHandler.add(document, 'keydown', this.
|
|
354
|
+
EventHandler.add(document, 'keydown', this.delegateDomKeyHandler, this);
|
|
354
355
|
if (!this.isMenu && !this.target) {
|
|
355
|
-
|
|
356
|
+
this.delegateScrollHandler = this.scrollHandler.bind(this);
|
|
357
|
+
EventHandler.add(document, 'scroll', this.delegateScrollHandler, this);
|
|
356
358
|
}
|
|
357
359
|
}
|
|
358
360
|
this.delegateClickHandler = this.clickHandler.bind(this);
|
|
@@ -361,7 +363,8 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
361
363
|
this.rippleFn = rippleEffect(wrapper, { selector: '.' + ITEM });
|
|
362
364
|
if (!this.isMenu && this.enableScrolling) {
|
|
363
365
|
this.enableTouchScroll(wrapper);
|
|
364
|
-
|
|
366
|
+
this.delegateTouchOutsideHandler = this.touchOutsideHandler.bind(this);
|
|
367
|
+
document.addEventListener('touchstart', this.delegateTouchOutsideHandler, { passive: true });
|
|
365
368
|
}
|
|
366
369
|
};
|
|
367
370
|
MenuBase.prototype.wireKeyboardEvent = function (element) {
|
|
@@ -2085,20 +2088,38 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
2085
2088
|
}
|
|
2086
2089
|
}
|
|
2087
2090
|
if (!Browser.isDevice) {
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
+
if (this.delegateMoverHandler) {
|
|
2092
|
+
EventHandler.remove(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler);
|
|
2093
|
+
this.delegateMoverHandler = null;
|
|
2094
|
+
}
|
|
2095
|
+
if (this.delegateMouseDownHandler) {
|
|
2096
|
+
EventHandler.remove(document, 'mousedown', this.delegateMouseDownHandler);
|
|
2097
|
+
this.delegateMouseDownHandler = null;
|
|
2098
|
+
}
|
|
2099
|
+
if (this.delegateDomKeyHandler) {
|
|
2100
|
+
EventHandler.remove(document, 'keydown', this.delegateDomKeyHandler);
|
|
2101
|
+
this.delegateDomKeyHandler = null;
|
|
2102
|
+
}
|
|
2091
2103
|
if (!this.isMenu && !this.target) {
|
|
2092
|
-
|
|
2104
|
+
if (this.delegateScrollHandler) {
|
|
2105
|
+
EventHandler.remove(document, 'scroll', this.delegateScrollHandler);
|
|
2106
|
+
this.delegateScrollHandler = null;
|
|
2107
|
+
}
|
|
2093
2108
|
}
|
|
2094
2109
|
}
|
|
2095
|
-
|
|
2110
|
+
if (this.delegateClickHandler) {
|
|
2111
|
+
EventHandler.remove(document, 'click', this.delegateClickHandler);
|
|
2112
|
+
this.delegateClickHandler = null;
|
|
2113
|
+
}
|
|
2096
2114
|
this.unWireKeyboardEvent(wrapper);
|
|
2097
2115
|
this.rippleFn();
|
|
2098
2116
|
if (!this.isMenu && this.enableScrolling) {
|
|
2099
2117
|
wrapper.removeEventListener('touchstart', this.touchStartFn);
|
|
2100
2118
|
wrapper.removeEventListener('touchmove', this.touchMoveFn);
|
|
2101
|
-
|
|
2119
|
+
if (this.delegateTouchOutsideHandler) {
|
|
2120
|
+
document.removeEventListener('touchstart', this.delegateTouchOutsideHandler);
|
|
2121
|
+
this.delegateTouchOutsideHandler = null;
|
|
2122
|
+
}
|
|
2102
2123
|
}
|
|
2103
2124
|
};
|
|
2104
2125
|
MenuBase.prototype.unWireKeyboardEvent = function (element) {
|
package/src/sidebar/sidebar.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare class Sidebar extends Component<HTMLElement> implements INotifyPr
|
|
|
43
43
|
private targetEle;
|
|
44
44
|
private firstRender;
|
|
45
45
|
private documentClickContext;
|
|
46
|
+
private resizeHandler;
|
|
46
47
|
/**
|
|
47
48
|
* Specifies the size of the Sidebar in dock state.
|
|
48
49
|
* > For more details about dockSize refer to
|
package/src/sidebar/sidebar.js
CHANGED
|
@@ -58,6 +58,7 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
58
58
|
function Sidebar(options, element) {
|
|
59
59
|
var _this = _super.call(this, options, element) || this;
|
|
60
60
|
_this.documentClickContext = _this.documentclickHandler.bind(_this);
|
|
61
|
+
_this.resizeHandler = _this.resize.bind(_this);
|
|
61
62
|
return _this;
|
|
62
63
|
}
|
|
63
64
|
Sidebar.prototype.preRender = function () {
|
|
@@ -463,11 +464,12 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
463
464
|
};
|
|
464
465
|
Sidebar.prototype.wireEvents = function () {
|
|
465
466
|
this.setEnableGestures();
|
|
466
|
-
EventHandler.add(window, 'resize', this.
|
|
467
|
+
EventHandler.add(window, 'resize', this.resizeHandler);
|
|
467
468
|
};
|
|
468
469
|
Sidebar.prototype.unWireEvents = function () {
|
|
469
|
-
EventHandler.remove(window, 'resize', this.
|
|
470
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
470
471
|
EventHandler.remove(document, 'mousedown touchstart', this.documentclickHandler);
|
|
472
|
+
EventHandler.remove(this.element, 'transitionend', this.transitionEnd);
|
|
471
473
|
if (this.mainContentEle) {
|
|
472
474
|
this.mainContentEle.destroy();
|
|
473
475
|
}
|
package/src/stepper/stepper.d.ts
CHANGED
package/src/stepper/stepper.js
CHANGED
|
@@ -253,12 +253,20 @@ var Stepper = /** @class */ (function (_super) {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
Stepper.prototype.wireEvents = function () {
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
this.windowEventHandlers = {};
|
|
257
|
+
this.windowEventHandlers.resize = this.updateResize.bind(this);
|
|
258
|
+
this.windowEventHandlers.click = this.updateStepFocus.bind(this);
|
|
259
|
+
EventHandler.add(window, 'resize', this.windowEventHandlers.resize);
|
|
260
|
+
EventHandler.add(window, 'click', this.windowEventHandlers.click);
|
|
258
261
|
};
|
|
259
262
|
Stepper.prototype.unWireEvents = function () {
|
|
260
|
-
EventHandler.remove(window, 'resize', this.
|
|
261
|
-
EventHandler.remove(window, 'click', this.
|
|
263
|
+
EventHandler.remove(window, 'resize', this.windowEventHandlers && this.windowEventHandlers.resize);
|
|
264
|
+
EventHandler.remove(window, 'click', this.windowEventHandlers && this.windowEventHandlers.click);
|
|
265
|
+
if (this.windowEventHandlers) {
|
|
266
|
+
this.windowEventHandlers.resize = null;
|
|
267
|
+
this.windowEventHandlers.click = null;
|
|
268
|
+
this.windowEventHandlers = null;
|
|
269
|
+
}
|
|
262
270
|
};
|
|
263
271
|
Stepper.prototype.updateResize = function () {
|
|
264
272
|
if (this.stepperItemList && this.progressbar && this.element.classList.contains(HORIZSTEP)) {
|
package/src/tab/tab.js
CHANGED
|
@@ -1540,12 +1540,20 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
if (properties[j] === 'cssClass') {
|
|
1542
1542
|
if (!isNOU(hdrItem)) {
|
|
1543
|
-
|
|
1544
|
-
|
|
1543
|
+
if (!isNOU(oldVal) && oldVal !== '') {
|
|
1544
|
+
hdrItem.classList.remove(oldVal);
|
|
1545
|
+
}
|
|
1546
|
+
if (!isNOU(newVal) && newVal !== '') {
|
|
1547
|
+
hdrItem.classList.add(newVal);
|
|
1548
|
+
}
|
|
1545
1549
|
}
|
|
1546
1550
|
if (!isNOU(cntItem)) {
|
|
1547
|
-
|
|
1548
|
-
|
|
1551
|
+
if (!isNOU(oldVal) && oldVal !== '') {
|
|
1552
|
+
cntItem.classList.remove(oldVal);
|
|
1553
|
+
}
|
|
1554
|
+
if (!isNOU(newVal) && newVal !== '') {
|
|
1555
|
+
cntItem.classList.add(newVal);
|
|
1556
|
+
}
|
|
1549
1557
|
}
|
|
1550
1558
|
}
|
|
1551
1559
|
if (properties[j] === 'disabled') {
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -324,14 +324,19 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
Toolbar.prototype.destroyItems = function () {
|
|
327
|
+
var _this = this;
|
|
327
328
|
if (this.element) {
|
|
328
|
-
[].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) {
|
|
329
|
+
[].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) {
|
|
330
|
+
EventHandler.remove(el, 'click', _this.itemClick);
|
|
331
|
+
detach(el);
|
|
332
|
+
});
|
|
329
333
|
}
|
|
330
334
|
if (this.tbarAlign) {
|
|
331
335
|
var tbarItems = this.element.querySelector('.' + CLS_ITEMS);
|
|
332
336
|
if (tbarItems) {
|
|
333
337
|
if (tbarItems.children) {
|
|
334
338
|
[].slice.call(tbarItems.children).forEach(function (el) {
|
|
339
|
+
EventHandler.remove(el, 'click', _this.itemClick);
|
|
335
340
|
detach(el);
|
|
336
341
|
});
|
|
337
342
|
}
|
|
@@ -2076,7 +2081,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
2076
2081
|
dom.setAttribute('aria-label', (item.text || item.tooltipText));
|
|
2077
2082
|
dom.setAttribute('aria-disabled', 'false');
|
|
2078
2083
|
innerEle.appendChild(dom);
|
|
2079
|
-
|
|
2084
|
+
EventHandler.add(innerEle, 'click', this.itemClick, this);
|
|
2080
2085
|
break;
|
|
2081
2086
|
case 'Separator':
|
|
2082
2087
|
this.add(innerEle, CLS_SEPARATOR);
|
package/src/treeview/treeview.js
CHANGED
|
@@ -4766,6 +4766,18 @@ var TreeView = /** @class */ (function (_super) {
|
|
|
4766
4766
|
this.wireExpandOnEvent(false);
|
|
4767
4767
|
EventHandler.remove(this.element, 'mouseover', this.onMouseOver);
|
|
4768
4768
|
EventHandler.remove(this.element, 'mouseout', this.onMouseLeave);
|
|
4769
|
+
var liElements = selectAll('.' + LISTITEM, this.element);
|
|
4770
|
+
for (var i = 0; i < liElements.length; i++) {
|
|
4771
|
+
var li = liElements[parseInt(i.toString(), 10)];
|
|
4772
|
+
EventHandler.remove(li, 'focus', this.focusIn);
|
|
4773
|
+
EventHandler.remove(li, 'blur', this.focusOut);
|
|
4774
|
+
var frame = select('.' + CHECKBOXFRAME, li);
|
|
4775
|
+
if (frame) {
|
|
4776
|
+
EventHandler.remove(frame, 'mousedown', this.frameMouseHandler);
|
|
4777
|
+
EventHandler.remove(frame, 'mouseup', this.frameMouseHandler);
|
|
4778
|
+
EventHandler.remove(frame, 'mouseleave', this.frameMouseHandler);
|
|
4779
|
+
}
|
|
4780
|
+
}
|
|
4769
4781
|
if (!this.disabled) {
|
|
4770
4782
|
this.keyboardModule.destroy();
|
|
4771
4783
|
}
|
package/styles/appbar/bds.css
CHANGED
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit:focus,
|
|
176
176
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit:active,
|
|
177
177
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit.e-active {
|
|
178
|
-
background: var(--color-sf-utility-appbar-
|
|
178
|
+
background: var(--color-sf-utility-appbar-hover-bg-color-alt1);
|
|
179
179
|
}
|
|
180
180
|
.e-appbar.e-light .e-menu-wrapper.e-inherit,
|
|
181
181
|
.e-appbar.e-light .e-menu-container.e-inherit {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
.e-appbar.e-light .e-menu-wrapper.e-inherit .e-menu .e-menu-item.e-selected, .e-appbar.e-light .e-menu-wrapper.e-inherit .e-menu .e-menu-item.e-focused,
|
|
189
189
|
.e-appbar.e-light .e-menu-container.e-inherit .e-menu .e-menu-item.e-selected,
|
|
190
190
|
.e-appbar.e-light .e-menu-container.e-inherit .e-menu .e-menu-item.e-focused {
|
|
191
|
-
background: var(--color-sf-utility-appbar-
|
|
191
|
+
background: var(--color-sf-utility-appbar-hover-bg-color-alt1);
|
|
192
192
|
}
|
|
193
193
|
.e-appbar.e-dark {
|
|
194
194
|
background: var(--color-sf-utility-appbar-bg-color-alt2);
|
package/styles/bds-lite.css
CHANGED
|
@@ -8820,7 +8820,7 @@ ejs-sidebar {
|
|
|
8820
8820
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit:focus,
|
|
8821
8821
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit:active,
|
|
8822
8822
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit.e-active {
|
|
8823
|
-
background: var(--color-sf-utility-appbar-
|
|
8823
|
+
background: var(--color-sf-utility-appbar-hover-bg-color-alt1);
|
|
8824
8824
|
}
|
|
8825
8825
|
.e-appbar.e-light .e-menu-wrapper.e-inherit,
|
|
8826
8826
|
.e-appbar.e-light .e-menu-container.e-inherit {
|
|
@@ -8833,7 +8833,7 @@ ejs-sidebar {
|
|
|
8833
8833
|
.e-appbar.e-light .e-menu-wrapper.e-inherit .e-menu .e-menu-item.e-selected, .e-appbar.e-light .e-menu-wrapper.e-inherit .e-menu .e-menu-item.e-focused,
|
|
8834
8834
|
.e-appbar.e-light .e-menu-container.e-inherit .e-menu .e-menu-item.e-selected,
|
|
8835
8835
|
.e-appbar.e-light .e-menu-container.e-inherit .e-menu .e-menu-item.e-focused {
|
|
8836
|
-
background: var(--color-sf-utility-appbar-
|
|
8836
|
+
background: var(--color-sf-utility-appbar-hover-bg-color-alt1);
|
|
8837
8837
|
}
|
|
8838
8838
|
.e-appbar.e-dark {
|
|
8839
8839
|
background: var(--color-sf-utility-appbar-bg-color-alt2);
|
package/styles/bds.css
CHANGED
|
@@ -11535,7 +11535,7 @@ ejs-sidebar {
|
|
|
11535
11535
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit:focus,
|
|
11536
11536
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit:active,
|
|
11537
11537
|
.e-appbar.e-light .e-dropdown-btn.e-btn.e-inherit.e-active {
|
|
11538
|
-
background: var(--color-sf-utility-appbar-
|
|
11538
|
+
background: var(--color-sf-utility-appbar-hover-bg-color-alt1);
|
|
11539
11539
|
}
|
|
11540
11540
|
.e-appbar.e-light .e-menu-wrapper.e-inherit,
|
|
11541
11541
|
.e-appbar.e-light .e-menu-container.e-inherit {
|
|
@@ -11548,7 +11548,7 @@ ejs-sidebar {
|
|
|
11548
11548
|
.e-appbar.e-light .e-menu-wrapper.e-inherit .e-menu .e-menu-item.e-selected, .e-appbar.e-light .e-menu-wrapper.e-inherit .e-menu .e-menu-item.e-focused,
|
|
11549
11549
|
.e-appbar.e-light .e-menu-container.e-inherit .e-menu .e-menu-item.e-selected,
|
|
11550
11550
|
.e-appbar.e-light .e-menu-container.e-inherit .e-menu .e-menu-item.e-focused {
|
|
11551
|
-
background: var(--color-sf-utility-appbar-
|
|
11551
|
+
background: var(--color-sf-utility-appbar-hover-bg-color-alt1);
|
|
11552
11552
|
}
|
|
11553
11553
|
.e-appbar.e-dark {
|
|
11554
11554
|
background: var(--color-sf-utility-appbar-bg-color-alt2);
|