@syncfusion/ej2-navigations 22.1.36 → 22.1.39

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.1.36
3
+ * version : 22.1.39
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@21.1.36",
3
+ "_id": "@syncfusion/ej2-navigations@22.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kuDhJ0tq4OGygx4SRNJ7iPQRmkrWPsn7EQFkjKYQiWCcd+tNz1hRWDYcFiyOD3f1AUXDJm5Gx/aC7imfL7h3ig==",
5
+ "_integrity": "sha512-zsH2lJ0HGE1wAgBEyDF4opp/TybK+eNg7uYrg/YlRM8jObVXT5KJS6fdprP5CYIEHV5YRA3E8cDJCYDWxnDoPw==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -39,8 +39,8 @@
39
39
  "/@syncfusion/ej2-spreadsheet",
40
40
  "/@syncfusion/ej2-vue-navigations"
41
41
  ],
42
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-21.1.36.tgz",
43
- "_shasum": "1bed90328df6d3b9320eaa08b2260f6e886aa348",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.1.38.tgz",
43
+ "_shasum": "ae5865b53c34417c5590b2bc062713bb9d9889e4",
44
44
  "_spec": "@syncfusion/ej2-navigations@*",
45
45
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
46
46
  "author": {
@@ -51,12 +51,12 @@
51
51
  },
52
52
  "bundleDependencies": false,
53
53
  "dependencies": {
54
- "@syncfusion/ej2-base": "~22.1.34",
55
- "@syncfusion/ej2-buttons": "~21.1.36",
56
- "@syncfusion/ej2-data": "~22.1.36",
57
- "@syncfusion/ej2-inputs": "~22.1.34",
54
+ "@syncfusion/ej2-base": "~22.1.38",
55
+ "@syncfusion/ej2-buttons": "~22.1.39",
56
+ "@syncfusion/ej2-data": "~22.1.38",
57
+ "@syncfusion/ej2-inputs": "~22.1.39",
58
58
  "@syncfusion/ej2-lists": "~22.1.34",
59
- "@syncfusion/ej2-popups": "~22.1.36"
59
+ "@syncfusion/ej2-popups": "~22.1.38"
60
60
  },
61
61
  "deprecated": false,
62
62
  "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",
@@ -161,6 +161,6 @@
161
161
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
162
162
  },
163
163
  "typings": "index.d.ts",
164
- "version": "22.1.36",
164
+ "version": "22.1.39",
165
165
  "sideEffects": false
166
166
  }
@@ -1104,6 +1104,7 @@ var Carousel = /** @class */ (function (_super) {
1104
1104
  EventHandler.remove(this.element.firstElementChild, 'animationend', this.onTransitionEnd);
1105
1105
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
1106
1106
  EventHandler.clearEvents(this.element);
1107
+ EventHandler.clearEvents(this.itemsContainer);
1107
1108
  };
1108
1109
  /**
1109
1110
  * Method to transit from the current slide to the previous slide.
@@ -1204,8 +1205,9 @@ var Carousel = /** @class */ (function (_super) {
1204
1205
  this.destroyButtons();
1205
1206
  this.unWireEvents();
1206
1207
  [].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
1207
- removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL]);
1208
+ removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL, CLS_SWIPE]);
1208
1209
  ['tabindex', 'role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
1210
+ this.itemsContainer = null;
1209
1211
  _super.prototype.destroy.call(this);
1210
1212
  };
1211
1213
  __decorate([
@@ -483,7 +483,7 @@ var MenuBase = /** @class */ (function (_super) {
483
483
  var popups_1 = [];
484
484
  var allPopup = selectAll('.' + POPUP);
485
485
  allPopup.forEach(function (elem) {
486
- if (_this.element.id === elem.id.split('-')[2]) {
486
+ if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
487
487
  popups_1.push(elem);
488
488
  }
489
489
  });
@@ -251,6 +251,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
251
251
  private tempId;
252
252
  private isExtendedOpen;
253
253
  private resizeContext;
254
+ private orientationChangeContext;
254
255
  /**
255
256
  * Contains the keyboard configuration of the Toolbar.
256
257
  */
@@ -495,6 +496,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
495
496
  protected getModuleName(): string;
496
497
  private itemsRerender;
497
498
  private resize;
499
+ private orientationChange;
498
500
  private extendedOpen;
499
501
  private updateHideEleTabIndex;
500
502
  /**
@@ -154,6 +154,7 @@ var Toolbar = /** @class */ (function (_super) {
154
154
  function Toolbar(options, element) {
155
155
  var _this = _super.call(this, options, element) || this;
156
156
  _this.resizeContext = _this.resize.bind(_this);
157
+ _this.orientationChangeContext = _this.orientationChange.bind(_this);
157
158
  /**
158
159
  * Contains the keyboard configuration of the Toolbar.
159
160
  */
@@ -246,6 +247,7 @@ var Toolbar = /** @class */ (function (_super) {
246
247
  Toolbar.prototype.wireEvents = function () {
247
248
  EventHandler.add(this.element, 'click', this.clickHandler, this);
248
249
  window.addEventListener('resize', this.resizeContext);
250
+ window.addEventListener('orientationchange', this.orientationChangeContext);
249
251
  if (this.allowKeyboard) {
250
252
  this.wireKeyboardEvent();
251
253
  }
@@ -292,6 +294,7 @@ var Toolbar = /** @class */ (function (_super) {
292
294
  this.destroyScroll();
293
295
  this.unwireKeyboardEvent();
294
296
  window.removeEventListener('resize', this.resizeContext);
297
+ window.removeEventListener('orientationchange', this.orientationChangeContext);
295
298
  EventHandler.remove(document, 'scroll', this.docEvent);
296
299
  EventHandler.remove(document, 'click', this.docEvent);
297
300
  };
@@ -2092,6 +2095,12 @@ var Toolbar = /** @class */ (function (_super) {
2092
2095
  this.tbResize = false;
2093
2096
  this.separator();
2094
2097
  };
2098
+ Toolbar.prototype.orientationChange = function () {
2099
+ var _this = this;
2100
+ setTimeout(function () {
2101
+ _this.resize();
2102
+ }, 500);
2103
+ };
2095
2104
  Toolbar.prototype.extendedOpen = function () {
2096
2105
  var sib = this.element.querySelector('.' + CLS_EXTENDABLECLASS);
2097
2106
  if (this.overflowMode === 'Extended' && sib) {
@@ -398,6 +398,7 @@ export interface TreeViewModel extends ComponentModel{
398
398
  * @angularType string | object
399
399
  * @reactType string | function | JSX.Element
400
400
  * @vueType string | function
401
+ * @aspType string
401
402
  */
402
403
  nodeTemplate?: string | Function;
403
404
 
@@ -325,7 +325,7 @@ export interface NodeData {
325
325
  * Interface for Failure event arguments
326
326
  */
327
327
  export interface FailureEventArgs {
328
- /** Defines the error information. */
328
+ /** Represents the Error object that contains information about the error that occurred. This property allows you to access details such as the error message, stack trace, error code, or any additional information associated with the error. */
329
329
  error?: Error;
330
330
  }
331
331
  /**
@@ -772,6 +772,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
772
772
  * @angularType string | object
773
773
  * @reactType string | function | JSX.Element
774
774
  * @vueType string | function
775
+ * @aspType string
775
776
  */
776
777
  nodeTemplate: string | Function;
777
778
  /**
@@ -1180,7 +1180,7 @@
1180
1180
  .e-toolbar.e-bigger .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control:focus,
1181
1181
  .e-toolbar.e-bigger .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
1182
1182
  .e-toolbar.e-bigger .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control:active {
1183
- padding: 0 6px;
1183
+ padding: 0 7px;
1184
1184
  }
1185
1185
  .e-bigger .e-toolbar .e-toolbar-item,
1186
1186
  .e-toolbar.e-bigger .e-toolbar-item {
@@ -1335,7 +1335,7 @@
1335
1335
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
1336
1336
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:focus,
1337
1337
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:active {
1338
- padding: 0 6px;
1338
+ padding: 0 7px;
1339
1339
  }
1340
1340
  .e-bigger .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item:not(.e-separator),
1341
1341
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item:not(.e-separator) {
@@ -1554,7 +1554,7 @@
1554
1554
  line-height: 25px;
1555
1555
  }
1556
1556
  .e-toolbar .e-toolbar-item .e-tbar-btn:hover, .e-toolbar .e-toolbar-item .e-tbar-btn:focus, .e-toolbar .e-toolbar-item .e-tbar-btn:active {
1557
- padding: 0 1.5px;
1557
+ padding: 0 2.5px;
1558
1558
  }
1559
1559
  .e-toolbar .e-toolbar-item .e-tbar-btn:focus {
1560
1560
  outline: 0;
@@ -1807,7 +1807,7 @@
1807
1807
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
1808
1808
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:focus,
1809
1809
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:active {
1810
- padding: 0 1.5px;
1810
+ padding: 0 2.5px;
1811
1811
  }
1812
1812
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item:not(.e-separator) {
1813
1813
  min-width: 30px;
@@ -1973,7 +1973,7 @@
1973
1973
  color: #333;
1974
1974
  border-color: #8c8c8c;
1975
1975
  border-style: solid;
1976
- border-width: 1px;
1976
+ border-width: 0;
1977
1977
  box-shadow: none;
1978
1978
  }
1979
1979
  .e-toolbar .e-toolbar-item .e-tbar-btn:focus .e-icons {
@@ -1986,7 +1986,7 @@
1986
1986
  background: #e6e6e6;
1987
1987
  border-color: #adadad;
1988
1988
  border-style: solid;
1989
- border-width: 1px;
1989
+ border-width: 0;
1990
1990
  border-radius: 4px;
1991
1991
  color: #333;
1992
1992
  }
@@ -2006,7 +2006,7 @@
2006
2006
  background: #e6e6e6;
2007
2007
  border-color: #adadad;
2008
2008
  border-style: solid;
2009
- border-width: 1px;
2009
+ border-width: 0;
2010
2010
  border-radius: 4px;
2011
2011
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
2012
2012
  color: #333;
@@ -2162,7 +2162,7 @@
2162
2162
  border-radius: 4px;
2163
2163
  border-color: #8c8c8c;
2164
2164
  border-style: solid;
2165
- border-width: 1px;
2165
+ border-width: 0;
2166
2166
  box-shadow: none;
2167
2167
  }
2168
2168
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover {
@@ -2170,7 +2170,7 @@
2170
2170
  border-radius: 4px;
2171
2171
  border-color: #adadad;
2172
2172
  border-style: solid;
2173
- border-width: 1px;
2173
+ border-width: 0;
2174
2174
  }
2175
2175
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:active {
2176
2176
  background: #e6e6e6;
@@ -2178,7 +2178,7 @@
2178
2178
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
2179
2179
  border-color: #adadad;
2180
2180
  border-style: solid;
2181
- border-width: 1px;
2181
+ border-width: 0;
2182
2182
  }
2183
2183
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item.e-separator {
2184
2184
  border: solid #ccc;
@@ -120,7 +120,7 @@ $tbar-separator-nrml-mrgn: 5.5px 6px !default;
120
120
  $tbar-separator-vertical-bgr-mrgn: 6px !default;
121
121
  $tbar-separator-vertical-nrml-mrgn: 6px 5.5px !default;
122
122
  $tbar-btn-bgr-padding: 1px 7px !default;
123
- $tbar-btn-bgr-focus-padding: 0 6px !default;
123
+ $tbar-btn-bgr-focus-padding: 0 7px !default;
124
124
  $tbar-btn-nrml-padding: 1px 2.5px !default;
125
125
  $tbar-icons-bgr-font-size: 14px !default;
126
126
  $tbar-multirow-items-mrgn-bigger: 15px !default;
@@ -130,16 +130,16 @@ $tbar-multirow-item-top-btm-mrgn-small: 0 !default;
130
130
 
131
131
  $tbar-bgr-btn-text-font-size: 14px !default;
132
132
  $tbar-bgr-btn-icon-font-size: 16px !default;
133
- $tbar-bgr-btn-focus-padding: 0 6px !default;
133
+ $tbar-bgr-btn-focus-padding: 0 7px !default;
134
134
 
135
135
  $tbar-nrml-btn-border-radius: 4px !default;
136
- $tbar-nrml-btn-focus-padding: 0 1.5px !default;
136
+ $tbar-nrml-btn-focus-padding: 0 2.5px !default;
137
137
  $tbar-nrml-btn-focus-outline: 0 !default;
138
138
 
139
139
  $tbar-btn-icons-focus-color: $tbar-press-font !default;
140
140
  $tbar-btn-text-focus-color: $tbar-press-font !default;
141
141
  $tbar-btn-focus-border-color: $tbar-focus-border-color !default;
142
- $tbar-btn-hover-border-size: $tbar-border-size !default;
142
+ $tbar-btn-hover-border-size: 0 !default;
143
143
  $tbar-btn-hover-active-icons-color: $tbar-press-font !default;
144
144
  $tbar-btn-hover-active-text-color: $tbar-press-font !default;
145
145
  $tbar-btn-overlay-opacity: .5 !default;
@@ -152,7 +152,7 @@ $tbar-btn-pressed-focus-box-shadow: inset 0 3px 5px rgba($grey-base, .125) !defa
152
152
  $tbar-btn-pressed-bg: $grey-e6 !default;
153
153
  $tbar-flat-btn-active-box-shadow: inset 0 3px 5px rgba($grey-base, .125) !default;
154
154
 
155
- $tbar-ext-btn-focus-padding: 0 1.5px !default;
155
+ $tbar-ext-btn-focus-padding: 0 2.5px !default;
156
156
  $tbar-ext-btn-icon-padding: 0 !default;
157
157
  $tbar-ext-btn-icon-font-size: 14px !default;
158
158
  $tbar-ext-btn-focus-box-shadow: none !default;
@@ -55,7 +55,7 @@
55
55
  .e-toolbar.e-bigger .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control:focus,
56
56
  .e-toolbar.e-bigger .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
57
57
  .e-toolbar.e-bigger .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control:active {
58
- padding: 0 6px;
58
+ padding: 0 7px;
59
59
  }
60
60
  .e-bigger .e-toolbar .e-toolbar-item,
61
61
  .e-toolbar.e-bigger .e-toolbar-item {
@@ -210,7 +210,7 @@
210
210
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
211
211
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:focus,
212
212
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:active {
213
- padding: 0 6px;
213
+ padding: 0 7px;
214
214
  }
215
215
  .e-bigger .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item:not(.e-separator),
216
216
  .e-toolbar.e-bigger.e-extended-toolbar .e-toolbar-extended .e-toolbar-item:not(.e-separator) {
@@ -429,7 +429,7 @@
429
429
  line-height: 25px;
430
430
  }
431
431
  .e-toolbar .e-toolbar-item .e-tbar-btn:hover, .e-toolbar .e-toolbar-item .e-tbar-btn:focus, .e-toolbar .e-toolbar-item .e-tbar-btn:active {
432
- padding: 0 1.5px;
432
+ padding: 0 2.5px;
433
433
  }
434
434
  .e-toolbar .e-toolbar-item .e-tbar-btn:focus {
435
435
  outline: 0;
@@ -682,7 +682,7 @@
682
682
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:hover,
683
683
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:focus,
684
684
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control:active {
685
- padding: 0 1.5px;
685
+ padding: 0 2.5px;
686
686
  }
687
687
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item:not(.e-separator) {
688
688
  min-width: 30px;
@@ -848,7 +848,7 @@
848
848
  color: #333;
849
849
  border-color: #8c8c8c;
850
850
  border-style: solid;
851
- border-width: 1px;
851
+ border-width: 0;
852
852
  box-shadow: none;
853
853
  }
854
854
  .e-toolbar .e-toolbar-item .e-tbar-btn:focus .e-icons {
@@ -861,7 +861,7 @@
861
861
  background: #e6e6e6;
862
862
  border-color: #adadad;
863
863
  border-style: solid;
864
- border-width: 1px;
864
+ border-width: 0;
865
865
  border-radius: 4px;
866
866
  color: #333;
867
867
  }
@@ -881,7 +881,7 @@
881
881
  background: #e6e6e6;
882
882
  border-color: #adadad;
883
883
  border-style: solid;
884
- border-width: 1px;
884
+ border-width: 0;
885
885
  border-radius: 4px;
886
886
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
887
887
  color: #333;
@@ -1037,7 +1037,7 @@
1037
1037
  border-radius: 4px;
1038
1038
  border-color: #8c8c8c;
1039
1039
  border-style: solid;
1040
- border-width: 1px;
1040
+ border-width: 0;
1041
1041
  box-shadow: none;
1042
1042
  }
1043
1043
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:hover {
@@ -1045,7 +1045,7 @@
1045
1045
  border-radius: 4px;
1046
1046
  border-color: #adadad;
1047
1047
  border-style: solid;
1048
- border-width: 1px;
1048
+ border-width: 0;
1049
1049
  }
1050
1050
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn:active {
1051
1051
  background: #e6e6e6;
@@ -1053,7 +1053,7 @@
1053
1053
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
1054
1054
  border-color: #adadad;
1055
1055
  border-style: solid;
1056
- border-width: 1px;
1056
+ border-width: 0;
1057
1057
  }
1058
1058
  .e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item.e-separator {
1059
1059
  border: solid #ccc;