@syncfusion/ej2-navigations 22.1.36 → 22.1.38
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 +14 -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 +11 -1
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +12 -1
- 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 +10 -10
- package/src/carousel/carousel.js +3 -1
- package/src/toolbar/toolbar.d.ts +2 -0
- package/src/toolbar/toolbar.js +9 -0
- package/src/treeview/treeview-model.d.ts +1 -0
- package/src/treeview/treeview.d.ts +1 -0
- package/styles/bootstrap.css +10 -10
- package/styles/toolbar/_bootstrap-definition.scss +5 -5
- package/styles/toolbar/bootstrap.css +10 -10
|
@@ -3522,6 +3522,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
3522
3522
|
function Toolbar(options, element) {
|
|
3523
3523
|
var _this = _super.call(this, options, element) || this;
|
|
3524
3524
|
_this.resizeContext = _this.resize.bind(_this);
|
|
3525
|
+
_this.orientationChangeContext = _this.orientationChange.bind(_this);
|
|
3525
3526
|
/**
|
|
3526
3527
|
* Contains the keyboard configuration of the Toolbar.
|
|
3527
3528
|
*/
|
|
@@ -3614,6 +3615,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
3614
3615
|
Toolbar.prototype.wireEvents = function () {
|
|
3615
3616
|
EventHandler.add(this.element, 'click', this.clickHandler, this);
|
|
3616
3617
|
window.addEventListener('resize', this.resizeContext);
|
|
3618
|
+
window.addEventListener('orientationchange', this.orientationChangeContext);
|
|
3617
3619
|
if (this.allowKeyboard) {
|
|
3618
3620
|
this.wireKeyboardEvent();
|
|
3619
3621
|
}
|
|
@@ -3660,6 +3662,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
3660
3662
|
this.destroyScroll();
|
|
3661
3663
|
this.unwireKeyboardEvent();
|
|
3662
3664
|
window.removeEventListener('resize', this.resizeContext);
|
|
3665
|
+
window.removeEventListener('orientationchange', this.orientationChangeContext);
|
|
3663
3666
|
EventHandler.remove(document, 'scroll', this.docEvent);
|
|
3664
3667
|
EventHandler.remove(document, 'click', this.docEvent);
|
|
3665
3668
|
};
|
|
@@ -5460,6 +5463,12 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
|
|
|
5460
5463
|
this.tbResize = false;
|
|
5461
5464
|
this.separator();
|
|
5462
5465
|
};
|
|
5466
|
+
Toolbar.prototype.orientationChange = function () {
|
|
5467
|
+
var _this = this;
|
|
5468
|
+
setTimeout(function () {
|
|
5469
|
+
_this.resize();
|
|
5470
|
+
}, 500);
|
|
5471
|
+
};
|
|
5463
5472
|
Toolbar.prototype.extendedOpen = function () {
|
|
5464
5473
|
var sib = this.element.querySelector('.' + CLS_EXTENDABLECLASS);
|
|
5465
5474
|
if (this.overflowMode === 'Extended' && sib) {
|
|
@@ -17737,6 +17746,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17737
17746
|
EventHandler.remove(this.element.firstElementChild, 'animationend', this.onTransitionEnd);
|
|
17738
17747
|
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
17739
17748
|
EventHandler.clearEvents(this.element);
|
|
17749
|
+
EventHandler.clearEvents(this.itemsContainer);
|
|
17740
17750
|
};
|
|
17741
17751
|
/**
|
|
17742
17752
|
* Method to transit from the current slide to the previous slide.
|
|
@@ -17837,8 +17847,9 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
|
|
|
17837
17847
|
this.destroyButtons();
|
|
17838
17848
|
this.unWireEvents();
|
|
17839
17849
|
[].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
|
|
17840
|
-
removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5]);
|
|
17850
|
+
removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5, CLS_SWIPE]);
|
|
17841
17851
|
['tabindex', 'role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
|
|
17852
|
+
this.itemsContainer = null;
|
|
17842
17853
|
_super.prototype.destroy.call(this);
|
|
17843
17854
|
};
|
|
17844
17855
|
__decorate$11([
|