@syncfusion/ej2-navigations 22.1.38 → 22.2.5

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/ej2-navigations.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js +2 -2
  4. package/dist/ej2-navigations.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-navigations.es2015.js +45 -11
  6. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es5.js +45 -11
  8. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  9. package/dist/global/ej2-navigations.min.js +2 -2
  10. package/dist/global/ej2-navigations.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +11 -11
  13. package/src/accordion/accordion-model.d.ts +6 -0
  14. package/src/accordion/accordion.d.ts +6 -0
  15. package/src/carousel/carousel-model.d.ts +18 -0
  16. package/src/carousel/carousel.d.ts +19 -0
  17. package/src/carousel/carousel.js +14 -0
  18. package/src/common/menu-base.js +12 -6
  19. package/src/tab/tab-model.d.ts +7 -0
  20. package/src/tab/tab.d.ts +7 -0
  21. package/src/tab/tab.js +2 -2
  22. package/src/toolbar/toolbar-model.d.ts +3 -0
  23. package/src/toolbar/toolbar.d.ts +3 -0
  24. package/src/treeview/treeview-model.d.ts +1 -1
  25. package/src/treeview/treeview.d.ts +1 -4
  26. package/src/treeview/treeview.js +18 -4
  27. package/styles/bootstrap-dark.css +3 -1
  28. package/styles/bootstrap.css +3 -1
  29. package/styles/bootstrap4.css +3 -1
  30. package/styles/bootstrap5-dark.css +3 -1
  31. package/styles/bootstrap5.css +3 -1
  32. package/styles/fabric-dark.css +3 -1
  33. package/styles/fabric.css +3 -1
  34. package/styles/fluent-dark.css +3 -1
  35. package/styles/fluent.css +3 -1
  36. package/styles/highcontrast-light.css +3 -1
  37. package/styles/highcontrast.css +3 -1
  38. package/styles/material-dark.css +3 -1
  39. package/styles/material.css +3 -1
  40. package/styles/material3-dark.css +3 -1
  41. package/styles/material3.css +3 -1
  42. package/styles/pager/_layout.scss +3 -1
  43. package/styles/pager/bootstrap-dark.css +3 -1
  44. package/styles/pager/bootstrap.css +3 -1
  45. package/styles/pager/bootstrap4.css +3 -1
  46. package/styles/pager/bootstrap5-dark.css +3 -1
  47. package/styles/pager/bootstrap5.css +3 -1
  48. package/styles/pager/fabric-dark.css +3 -1
  49. package/styles/pager/fabric.css +3 -1
  50. package/styles/pager/fluent-dark.css +3 -1
  51. package/styles/pager/fluent.css +3 -1
  52. package/styles/pager/highcontrast-light.css +3 -1
  53. package/styles/pager/highcontrast.css +3 -1
  54. package/styles/pager/material-dark.css +3 -1
  55. package/styles/pager/material.css +3 -1
  56. package/styles/pager/material3-dark.css +3 -1
  57. package/styles/pager/material3.css +3 -1
  58. package/styles/pager/tailwind-dark.css +3 -1
  59. package/styles/pager/tailwind.css +3 -1
  60. package/styles/tailwind-dark.css +3 -1
  61. package/styles/tailwind.css +3 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.1.38
3
+ * version : 22.2.5
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@22.1.36",
3
+ "_id": "@syncfusion/ej2-navigations@22.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-iwyGdFKhNWT87685f3EXNa1Sd6Y7FwwsPQVYZXSiw4R7B4cF4HjOVKls5HIL55eNwk4b/jHvMv0lRJAjGGsU/Q==",
5
+ "_integrity": "sha512-K4OYPZQuHbKY4odT9j1dRVDIs0R25jo3xR/NTCKfwamdcJqWCnHIxEg3c6ELK7mIgn6C9fzHmXsns39xueDKew==",
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-22.1.36.tgz",
43
- "_shasum": "fcc4a08271c57a350afa32a3db3c70996e600732",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.1.39.tgz",
43
+ "_shasum": "a1bae66925958586e35fc5b8a9892a6e64072f88",
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.38",
55
- "@syncfusion/ej2-buttons": "~22.1.38",
56
- "@syncfusion/ej2-data": "~22.1.38",
57
- "@syncfusion/ej2-inputs": "~22.1.38",
58
- "@syncfusion/ej2-lists": "~22.1.34",
59
- "@syncfusion/ej2-popups": "~22.1.38"
54
+ "@syncfusion/ej2-base": "~22.2.5",
55
+ "@syncfusion/ej2-buttons": "~22.2.5",
56
+ "@syncfusion/ej2-data": "~22.2.5",
57
+ "@syncfusion/ej2-inputs": "~22.2.5",
58
+ "@syncfusion/ej2-lists": "~22.2.5",
59
+ "@syncfusion/ej2-popups": "~22.2.5"
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.38",
164
+ "version": "22.2.5",
165
165
  "sideEffects": false
166
166
  }
@@ -182,6 +182,9 @@ export interface AccordionModel extends ComponentModel{
182
182
  * Specifies the template option for accordion items.
183
183
  *
184
184
  * @default null
185
+ * @angularType string | object
186
+ * @reactType string | function | JSX.Element
187
+ * @vueType string | function
185
188
  * @aspType string
186
189
  */
187
190
  itemTemplate?: string | Function;
@@ -190,6 +193,9 @@ export interface AccordionModel extends ComponentModel{
190
193
  * Specifies the header title template option for accordion items.
191
194
  *
192
195
  * @default null
196
+ * @angularType string | object
197
+ * @reactType string | function | JSX.Element
198
+ * @vueType string | function
193
199
  * @aspType string
194
200
  */
195
201
  headerTemplate?: string | Function;
@@ -228,6 +228,9 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
228
228
  * Specifies the template option for accordion items.
229
229
  *
230
230
  * @default null
231
+ * @angularType string | object
232
+ * @reactType string | function | JSX.Element
233
+ * @vueType string | function
231
234
  * @aspType string
232
235
  */
233
236
  itemTemplate: string | Function;
@@ -235,6 +238,9 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
235
238
  * Specifies the header title template option for accordion items.
236
239
  *
237
240
  * @default null
241
+ * @angularType string | object
242
+ * @reactType string | function | JSX.Element
243
+ * @vueType string | function
238
244
  * @aspType string
239
245
  */
240
246
  headerTemplate: string | Function;
@@ -25,6 +25,9 @@ export interface CarouselItemModel {
25
25
  * Accepts the template for individual carousel item.
26
26
  *
27
27
  * @default null
28
+ * @angularType string | object
29
+ * @reactType string | function | JSX.Element
30
+ * @vueType string | function
28
31
  * @aspType string
29
32
  */
30
33
  template?: string | Function;
@@ -65,6 +68,9 @@ export interface CarouselModel extends ComponentModel{
65
68
  * Accepts the template for previous navigation button.
66
69
  *
67
70
  * @default null
71
+ * @angularType string | object
72
+ * @reactType string | function | JSX.Element
73
+ * @vueType string | function
68
74
  * @aspType string
69
75
  */
70
76
  previousButtonTemplate?: string | Function;
@@ -73,6 +79,9 @@ export interface CarouselModel extends ComponentModel{
73
79
  * Accepts the template for next navigation button.
74
80
  *
75
81
  * @default null
82
+ * @angularType string | object
83
+ * @reactType string | function | JSX.Element
84
+ * @vueType string | function
76
85
  * @aspType string
77
86
  */
78
87
  nextButtonTemplate?: string | Function;
@@ -81,6 +90,9 @@ export interface CarouselModel extends ComponentModel{
81
90
  * Accepts the template for indicator buttons.
82
91
  *
83
92
  * @default null
93
+ * @angularType string | object
94
+ * @reactType string | function | JSX.Element
95
+ * @vueType string | function
84
96
  * @aspType string
85
97
  */
86
98
  indicatorsTemplate?: string | Function;
@@ -89,6 +101,9 @@ export interface CarouselModel extends ComponentModel{
89
101
  * Accepts the template for play/pause button.
90
102
  *
91
103
  * @default null
104
+ * @angularType string | object
105
+ * @reactType string | function | JSX.Element
106
+ * @vueType string | function
92
107
  * @aspType string
93
108
  */
94
109
  playButtonTemplate?: string | Function;
@@ -112,6 +127,9 @@ export interface CarouselModel extends ComponentModel{
112
127
  * Specifies the template option for carousel items.
113
128
  *
114
129
  * @default null
130
+ * @angularType string | object
131
+ * @reactType string | function | JSX.Element
132
+ * @vueType string | function
115
133
  * @aspType string
116
134
  */
117
135
  itemTemplate?: string | Function;
@@ -101,6 +101,9 @@ export declare class CarouselItem extends ChildProperty<CarouselItem> {
101
101
  * Accepts the template for individual carousel item.
102
102
  *
103
103
  * @default null
104
+ * @angularType string | object
105
+ * @reactType string | function | JSX.Element
106
+ * @vueType string | function
104
107
  * @aspType string
105
108
  */
106
109
  template: string | Function;
@@ -144,6 +147,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
144
147
  * Accepts the template for previous navigation button.
145
148
  *
146
149
  * @default null
150
+ * @angularType string | object
151
+ * @reactType string | function | JSX.Element
152
+ * @vueType string | function
147
153
  * @aspType string
148
154
  */
149
155
  previousButtonTemplate: string | Function;
@@ -151,6 +157,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
151
157
  * Accepts the template for next navigation button.
152
158
  *
153
159
  * @default null
160
+ * @angularType string | object
161
+ * @reactType string | function | JSX.Element
162
+ * @vueType string | function
154
163
  * @aspType string
155
164
  */
156
165
  nextButtonTemplate: string | Function;
@@ -158,6 +167,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
158
167
  * Accepts the template for indicator buttons.
159
168
  *
160
169
  * @default null
170
+ * @angularType string | object
171
+ * @reactType string | function | JSX.Element
172
+ * @vueType string | function
161
173
  * @aspType string
162
174
  */
163
175
  indicatorsTemplate: string | Function;
@@ -165,6 +177,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
165
177
  * Accepts the template for play/pause button.
166
178
  *
167
179
  * @default null
180
+ * @angularType string | object
181
+ * @reactType string | function | JSX.Element
182
+ * @vueType string | function
168
183
  * @aspType string
169
184
  */
170
185
  playButtonTemplate: string | Function;
@@ -185,6 +200,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
185
200
  * Specifies the template option for carousel items.
186
201
  *
187
202
  * @default null
203
+ * @angularType string | object
204
+ * @reactType string | function | JSX.Element
205
+ * @vueType string | function
188
206
  * @aspType string
189
207
  */
190
208
  itemTemplate: string | Function;
@@ -317,6 +335,7 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
317
335
  protected render(): void;
318
336
  onPropertyChanged(newProp: CarouselModel, oldProp: CarouselModel): void;
319
337
  private reRenderSlides;
338
+ private reRenderIndicators;
320
339
  private initialize;
321
340
  private renderSlides;
322
341
  private getTranslateX;
@@ -252,7 +252,13 @@ var Carousel = /** @class */ (function (_super) {
252
252
  break;
253
253
  case 'items':
254
254
  case 'dataSource':
255
+ var selectedData = prop === 'dataSource' ? this.dataSource : this.items;
256
+ if (selectedData.length > 0 && this.selectedIndex >= selectedData.length) {
257
+ this.setActiveSlide(selectedData.length - 1, 'Previous');
258
+ this.autoSlide();
259
+ }
255
260
  this.reRenderSlides();
261
+ this.reRenderIndicators();
256
262
  break;
257
263
  case 'partialVisible':
258
264
  if (this.partialVisible) {
@@ -281,6 +287,14 @@ var Carousel = /** @class */ (function (_super) {
281
287
  }
282
288
  this.renderSlides();
283
289
  };
290
+ Carousel.prototype.reRenderIndicators = function () {
291
+ var target = this.element.querySelector("." + CLS_INDICATORS);
292
+ if (target) {
293
+ this.resetTemplates(['indicatorsTemplate']);
294
+ remove(target);
295
+ }
296
+ this.renderIndicators();
297
+ };
284
298
  Carousel.prototype.initialize = function () {
285
299
  var carouselClasses = [];
286
300
  if (this.cssClass) {
@@ -302,10 +302,10 @@ var MenuBase = /** @class */ (function (_super) {
302
302
  }
303
303
  this.targetElement = target;
304
304
  if (!this.isMenu) {
305
- EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
305
+ EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);
306
306
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
307
307
  var parent_1 = _a[_i];
308
- EventHandler.add(parent_1, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
308
+ EventHandler.add(parent_1, 'scroll', this.scrollHandler, this);
309
309
  }
310
310
  }
311
311
  }
@@ -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
  });
@@ -1207,7 +1207,13 @@ var MenuBase = /** @class */ (function (_super) {
1207
1207
  if (isNullOrUndefined(args.curData.htmlAttributes)) {
1208
1208
  args.curData.htmlAttributes = {};
1209
1209
  }
1210
- Object.assign(args.curData.htmlAttributes, { role: 'menuitem', tabindex: '-1' });
1210
+ if (Browser.isIE) {
1211
+ args.curData.htmlAttributes.role = 'menuitem';
1212
+ args.curData.htmlAttributes.tabindex = '-1';
1213
+ }
1214
+ else {
1215
+ Object.assign(args.curData.htmlAttributes, { role: 'menuitem', tabindex: '-1' });
1216
+ }
1211
1217
  if (_this.isMenu && !args.curData[_this.getField('separator', level)]) {
1212
1218
  args.curData.htmlAttributes['aria-label'] = args.curData[args.fields.text] ?
1213
1219
  args.curData[args.fields.text] : args.curData[args.fields.id];
@@ -1822,10 +1828,10 @@ var MenuBase = /** @class */ (function (_super) {
1822
1828
  }
1823
1829
  }
1824
1830
  if (!this.isMenu) {
1825
- EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
1831
+ EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
1826
1832
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
1827
1833
  var parent_2 = _a[_i];
1828
- EventHandler.remove(parent_2, 'mousewheel DOMMouseScroll', this.scrollHandler);
1834
+ EventHandler.remove(parent_2, 'scroll', this.scrollHandler);
1829
1835
  }
1830
1836
  }
1831
1837
  }
@@ -101,6 +101,9 @@ export interface TabItemModel {
101
101
  * Specifies the header text of Tab item.
102
102
  *
103
103
  * @default null
104
+ * @angularType string | object
105
+ * @reactType string | function | JSX.Element
106
+ * @vueType string | function
104
107
  * @aspType string
105
108
  */
106
109
  headerTemplate?: string | Function;
@@ -109,6 +112,10 @@ export interface TabItemModel {
109
112
  * Specifies the content of Tab item, that is displayed when concern item header is selected.
110
113
  *
111
114
  * @default ''
115
+ * @angularType string | object
116
+ * @reactType string | function | JSX.Element
117
+ * @vueType string | function
118
+ * @aspType string
112
119
  */
113
120
  content?: string | HTMLElement | Function;
114
121
 
package/src/tab/tab.d.ts CHANGED
@@ -182,6 +182,9 @@ export declare class TabItem extends ChildProperty<TabItem> {
182
182
  * Specifies the header text of Tab item.
183
183
  *
184
184
  * @default null
185
+ * @angularType string | object
186
+ * @reactType string | function | JSX.Element
187
+ * @vueType string | function
185
188
  * @aspType string
186
189
  */
187
190
  headerTemplate: string | Function;
@@ -189,6 +192,10 @@ export declare class TabItem extends ChildProperty<TabItem> {
189
192
  * Specifies the content of Tab item, that is displayed when concern item header is selected.
190
193
  *
191
194
  * @default ''
195
+ * @angularType string | object
196
+ * @reactType string | function | JSX.Element
197
+ * @vueType string | function
198
+ * @aspType string
192
199
  */
193
200
  content: string | HTMLElement | Function;
194
201
  /**
package/src/tab/tab.js CHANGED
@@ -455,7 +455,7 @@ var Tab = /** @class */ (function (_super) {
455
455
  };
456
456
  Tab.prototype.parseObject = function (items, index) {
457
457
  var _this = this;
458
- var tbItems = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element);
458
+ var tbItems = Array.prototype.slice.call(selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element));
459
459
  var maxId = this.lastIndex;
460
460
  if (!this.isReplace && tbItems.length > 0) {
461
461
  var idList_1 = [];
@@ -1186,7 +1186,7 @@ var Tab = /** @class */ (function (_super) {
1186
1186
  if (this.allowDragAndDrop) {
1187
1187
  var tabHeader = this.element.querySelector('.' + CLS_HEADER);
1188
1188
  if (tabHeader) {
1189
- var items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
1189
+ var items = Array.prototype.slice.call(tabHeader.querySelectorAll('.' + CLS_TB_ITEM));
1190
1190
  items.forEach(function (element) {
1191
1191
  _this.initializeDrag(element);
1192
1192
  });
@@ -91,6 +91,9 @@ export interface ItemModel {
91
91
  * ```
92
92
  *
93
93
  * @default ""
94
+ * @angularType string | object
95
+ * @reactType string | function | JSX.Element
96
+ * @vueType string | function
94
97
  * @aspType string
95
98
  */
96
99
  template?: string | Object | Function;
@@ -143,6 +143,9 @@ export declare class Item extends ChildProperty<Item> {
143
143
  * ```
144
144
  *
145
145
  * @default ""
146
+ * @angularType string | object
147
+ * @reactType string | function | JSX.Element
148
+ * @vueType string | function
146
149
  * @aspType string
147
150
  */
148
151
  template: string | Object | Function;
@@ -1,4 +1,4 @@
1
- import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Event, EventHandler, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { rippleEffect, Effect, Animation, AnimationOptions, RippleOptions, remove } from '@syncfusion/ej2-base';import { Draggable, DragEventArgs, Droppable, DropEventArgs } from '@syncfusion/ej2-base';import { getElement } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, matches, detach, select, selectAll, isVisible, append } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { isNullOrUndefined as isNOU, Touch, TapEventArgs, getValue, setValue, extend, merge, attributes } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions, AriaAttributesMapping, FieldsMapping } from '@syncfusion/ej2-lists';import { createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';import { Input, InputObject } from '@syncfusion/ej2-inputs';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
1
+ import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Event, EventHandler, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { rippleEffect, Effect, Animation, AnimationOptions, RippleOptions, remove } from '@syncfusion/ej2-base';import { Draggable, DragEventArgs, Droppable, DropEventArgs } from '@syncfusion/ej2-base';import { getElement } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, matches, detach, select, selectAll, isVisible, append } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { isNullOrUndefined as isNOU, Touch, TapEventArgs, getValue, setValue, extend, merge, attributes } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions, AriaAttributesMapping, FieldsMapping } from '@syncfusion/ej2-lists';import { createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';import { Input, InputObject } from '@syncfusion/ej2-inputs';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
2
2
  import {ExpandOnSettings,SortOrder,FailureEventArgs,DataBoundEventArgs,DataSourceChangedEventArgs,DrawNodeEventArgs,NodeKeyPressEventArgs,NodeCheckEventArgs,NodeClickEventArgs,NodeExpandEventArgs,DragAndDropEventArgs,NodeEditEventArgs,NodeSelectEventArgs} from "./treeview";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -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
  /**
@@ -482,7 +482,6 @@ export declare class NodeAnimationSettings extends ChildProperty<NodeAnimationSe
482
482
  * ```
483
483
  */
484
484
  export declare class TreeView extends Component<HTMLElement> implements INotifyPropertyChanged {
485
- private cloneElement;
486
485
  private initialRender;
487
486
  private treeData;
488
487
  private rootData;
@@ -516,12 +515,10 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
516
515
  private touchExpandObj;
517
516
  private inputObj;
518
517
  private isAnimate;
519
- private spinnerElement;
520
518
  private touchClass;
521
519
  private editData;
522
520
  private editFields;
523
521
  private refreshData;
524
- private refreshFields;
525
522
  private isRefreshed;
526
523
  private keyConfigs;
527
524
  private isInitalExpand;
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Component, isUndefined, Browser, compile, isNullOrUndefined } from '@syncfusion/ej2-base';
20
+ import { Component, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
21
21
  import { Property, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';
22
22
  import { Event, EventHandler, KeyboardEvents } from '@syncfusion/ej2-base';
23
23
  import { rippleEffect, Animation, remove } from '@syncfusion/ej2-base';
@@ -1887,14 +1887,14 @@ var TreeView = /** @class */ (function (_super) {
1887
1887
  }
1888
1888
  else {
1889
1889
  if (typeof this.fields.child === 'string') {
1890
- var index = obj.findIndex(function (data) { return data[_this.fields.id] && data[_this.fields.id].toString() === parentId; });
1890
+ var index = obj.findIndex(function (data) { return getValue(_this.fields.id, data) && getValue(_this.fields.id, data).toString() === parentId; });
1891
1891
  if (index !== -1) {
1892
1892
  return getValue(this.fields.child, obj[index]);
1893
1893
  }
1894
1894
  if (index === -1) {
1895
1895
  for (var i = 0, objlen = obj.length; i < objlen; i++) {
1896
1896
  var tempArray = getValue(this.fields.child, obj[i]);
1897
- var childIndex = !isNOU(tempArray) ? tempArray.findIndex(function (data) { return data[_this.fields.id] && data[_this.fields.id].toString() === parentId; }) : -1;
1897
+ var childIndex = !isNOU(tempArray) ? tempArray.findIndex(function (data) { return getValue(_this.fields.id, data) && getValue(_this.fields.id, data).toString() === parentId; }) : -1;
1898
1898
  if (childIndex !== -1) {
1899
1899
  return getValue(this.fields.child, tempArray[childIndex]);
1900
1900
  }
@@ -2860,7 +2860,7 @@ var TreeView = /** @class */ (function (_super) {
2860
2860
  this.renderReactTemplates();
2861
2861
  }
2862
2862
  else {
2863
- this.enableHtmlSanitizer ? txtEle.innerText = newText : txtEle.innerHTML = newText;
2863
+ this.enableHtmlSanitizer ? txtEle.innerText = SanitizeHtmlHelper.sanitize(newText) : txtEle.innerHTML = newText;
2864
2864
  }
2865
2865
  if (isInput) {
2866
2866
  removeClass([liEle], EDITING);
@@ -4670,6 +4670,20 @@ var TreeView = /** @class */ (function (_super) {
4670
4670
  if (this.ulElement && this.ulElement.parentElement) {
4671
4671
  this.ulElement.parentElement.removeChild(this.ulElement);
4672
4672
  }
4673
+ this.ulElement = null;
4674
+ this.liList = null;
4675
+ this.startNode = null;
4676
+ this.firstTap = null;
4677
+ this.expandArgs = null;
4678
+ this.dragLi = null;
4679
+ this.dragTarget = null;
4680
+ this.dragParent = null;
4681
+ this.dragObj = null;
4682
+ this.dropObj = null;
4683
+ this.inputObj = null;
4684
+ this.touchEditObj = null;
4685
+ this.touchExpandObj = null;
4686
+ this.touchClickObj = null;
4673
4687
  _super.prototype.destroy.call(this);
4674
4688
  };
4675
4689
  /**
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -225,7 +225,9 @@
225
225
  .e-pager [class^=e-] {
226
226
  box-sizing: border-box;
227
227
  }
228
- .e-pager .e-pager-default.e-hide {
228
+ .e-pager .e-pager-default.e-hide,
229
+ .e-pager .e-pagesizes.e-hide,
230
+ .e-pager .e-hide {
229
231
  display: none;
230
232
  }
231
233
  .e-pager div.e-parentmsgbar {
@@ -225,7 +225,9 @@
225
225
  .e-pager [class^=e-] {
226
226
  box-sizing: border-box;
227
227
  }
228
- .e-pager .e-pager-default.e-hide {
228
+ .e-pager .e-pager-default.e-hide,
229
+ .e-pager .e-pagesizes.e-hide,
230
+ .e-pager .e-hide {
229
231
  display: none;
230
232
  }
231
233
  .e-pager div.e-parentmsgbar {
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
package/styles/fabric.css CHANGED
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
package/styles/fluent.css CHANGED
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -208,7 +208,9 @@
208
208
  .e-pager [class^=e-] {
209
209
  box-sizing: border-box;
210
210
  }
211
- .e-pager .e-pager-default.e-hide {
211
+ .e-pager .e-pager-default.e-hide,
212
+ .e-pager .e-pagesizes.e-hide,
213
+ .e-pager .e-hide {
212
214
  display: none;
213
215
  }
214
216
  .e-pager div.e-parentmsgbar {
@@ -209,7 +209,9 @@
209
209
  .e-pager [class^=e-] {
210
210
  box-sizing: border-box;
211
211
  }
212
- .e-pager .e-pager-default.e-hide {
212
+ .e-pager .e-pager-default.e-hide,
213
+ .e-pager .e-pagesizes.e-hide,
214
+ .e-pager .e-hide {
213
215
  display: none;
214
216
  }
215
217
  .e-pager div.e-parentmsgbar {
@@ -209,7 +209,9 @@
209
209
  .e-pager [class^=e-] {
210
210
  box-sizing: border-box;
211
211
  }
212
- .e-pager .e-pager-default.e-hide {
212
+ .e-pager .e-pager-default.e-hide,
213
+ .e-pager .e-pagesizes.e-hide,
214
+ .e-pager .e-hide {
213
215
  display: none;
214
216
  }
215
217
  .e-pager div.e-parentmsgbar {
@@ -295,7 +295,9 @@
295
295
  .e-pager [class^=e-] {
296
296
  box-sizing: border-box;
297
297
  }
298
- .e-pager .e-pager-default.e-hide {
298
+ .e-pager .e-pager-default.e-hide,
299
+ .e-pager .e-pagesizes.e-hide,
300
+ .e-pager .e-hide {
299
301
  display: none;
300
302
  }
301
303
  .e-pager div.e-parentmsgbar {