@syncfusion/ej2-navigations 22.1.39 → 22.2.7

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 (79) 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 +50 -11
  6. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es5.js +50 -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 +14 -5
  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 +5 -3
  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 +0 -3
  26. package/src/treeview/treeview.js +18 -4
  27. package/styles/accordion/_theme.scss +5 -1
  28. package/styles/accordion/bootstrap-dark.css +3 -0
  29. package/styles/accordion/bootstrap.css +3 -0
  30. package/styles/accordion/bootstrap4.css +3 -0
  31. package/styles/accordion/bootstrap5-dark.css +3 -0
  32. package/styles/accordion/bootstrap5.css +3 -0
  33. package/styles/accordion/fabric-dark.css +3 -0
  34. package/styles/accordion/fabric.css +3 -0
  35. package/styles/accordion/fluent-dark.css +3 -0
  36. package/styles/accordion/fluent.css +3 -0
  37. package/styles/accordion/highcontrast-light.css +3 -0
  38. package/styles/accordion/highcontrast.css +3 -0
  39. package/styles/accordion/material-dark.css +3 -0
  40. package/styles/accordion/material.css +3 -0
  41. package/styles/accordion/material3-dark.css +3 -0
  42. package/styles/accordion/material3.css +3 -0
  43. package/styles/accordion/tailwind-dark.css +3 -0
  44. package/styles/accordion/tailwind.css +3 -0
  45. package/styles/bootstrap-dark.css +6 -1
  46. package/styles/bootstrap.css +6 -1
  47. package/styles/bootstrap4.css +6 -1
  48. package/styles/bootstrap5-dark.css +6 -1
  49. package/styles/bootstrap5.css +6 -1
  50. package/styles/fabric-dark.css +6 -1
  51. package/styles/fabric.css +6 -1
  52. package/styles/fluent-dark.css +6 -1
  53. package/styles/fluent.css +6 -1
  54. package/styles/highcontrast-light.css +6 -1
  55. package/styles/highcontrast.css +6 -1
  56. package/styles/material-dark.css +6 -1
  57. package/styles/material.css +6 -1
  58. package/styles/material3-dark.css +6 -1
  59. package/styles/material3.css +6 -1
  60. package/styles/pager/_layout.scss +3 -1
  61. package/styles/pager/bootstrap-dark.css +3 -1
  62. package/styles/pager/bootstrap.css +3 -1
  63. package/styles/pager/bootstrap4.css +3 -1
  64. package/styles/pager/bootstrap5-dark.css +3 -1
  65. package/styles/pager/bootstrap5.css +3 -1
  66. package/styles/pager/fabric-dark.css +3 -1
  67. package/styles/pager/fabric.css +3 -1
  68. package/styles/pager/fluent-dark.css +3 -1
  69. package/styles/pager/fluent.css +3 -1
  70. package/styles/pager/highcontrast-light.css +3 -1
  71. package/styles/pager/highcontrast.css +3 -1
  72. package/styles/pager/material-dark.css +3 -1
  73. package/styles/pager/material.css +3 -1
  74. package/styles/pager/material3-dark.css +3 -1
  75. package/styles/pager/material3.css +3 -1
  76. package/styles/pager/tailwind-dark.css +3 -1
  77. package/styles/pager/tailwind.css +3 -1
  78. package/styles/tailwind-dark.css +6 -1
  79. package/styles/tailwind.css +6 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.1.39
3
+ * version : 22.2.7
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.38",
3
+ "_id": "@syncfusion/ej2-navigations@22.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-zsH2lJ0HGE1wAgBEyDF4opp/TybK+eNg7uYrg/YlRM8jObVXT5KJS6fdprP5CYIEHV5YRA3E8cDJCYDWxnDoPw==",
5
+ "_integrity": "sha512-ROhN91xNpqtogxlvW9w3ku1Ho2bKlrMhnEXRn4Xy+sQPN5FjVRsgnTZ0Wbp1tH1XygcVFw1QagQufhFvXT1ERw==",
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.38.tgz",
43
- "_shasum": "ae5865b53c34417c5590b2bc062713bb9d9889e4",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.2.5.tgz",
43
+ "_shasum": "aa9ae780330515fbfda83b0aa3c565b5b349a8d7",
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.39",
56
- "@syncfusion/ej2-data": "~22.1.38",
57
- "@syncfusion/ej2-inputs": "~22.1.39",
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.7",
58
+ "@syncfusion/ej2-lists": "~22.2.5",
59
+ "@syncfusion/ej2-popups": "~22.2.7"
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.39",
164
+ "version": "22.2.7",
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
  }
@@ -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];
@@ -1485,6 +1491,9 @@ var MenuBase = /** @class */ (function (_super) {
1485
1491
  }
1486
1492
  };
1487
1493
  MenuBase.prototype.afterCloseMenu = function (e) {
1494
+ if (isNullOrUndefined(e)) {
1495
+ return;
1496
+ }
1488
1497
  var isHeader;
1489
1498
  if (this.showSubMenu) {
1490
1499
  if (this.showItemOnClick && this.navIdx.length === 0) {
@@ -1822,10 +1831,10 @@ var MenuBase = /** @class */ (function (_super) {
1822
1831
  }
1823
1832
  }
1824
1833
  if (!this.isMenu) {
1825
- EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
1834
+ EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
1826
1835
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
1827
1836
  var parent_2 = _a[_i];
1828
- EventHandler.remove(parent_2, 'mousewheel DOMMouseScroll', this.scrollHandler);
1837
+ EventHandler.remove(parent_2, 'scroll', this.scrollHandler);
1829
1838
  }
1830
1839
  }
1831
1840
  }
@@ -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
  });
@@ -1968,7 +1968,9 @@ var Tab = /** @class */ (function (_super) {
1968
1968
  }
1969
1969
  }
1970
1970
  this.setActiveBorder();
1971
- item.setAttribute('aria-hidden', '' + value);
1971
+ if (!isNullOrUndefined(item.firstElementChild)) {
1972
+ item.firstElementChild.setAttribute('aria-hidden', '' + value);
1973
+ }
1972
1974
  if (this.overflowMode === 'Popup' && this.tbObj) {
1973
1975
  this.tbObj.refreshOverflow();
1974
1976
  }
@@ -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
 
@@ -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
  /**
@@ -189,7 +189,11 @@
189
189
  color: $acrdn-icon-color;
190
190
  }
191
191
  }
192
-
192
+ &.e-select.e-selected > .e-acrdn-header {
193
+ &:focus {
194
+ border: $acrdn-item-exp-not-selected-hdr-focus-border;
195
+ }
196
+ }
193
197
  &.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header {
194
198
 
195
199
  &:focus {
@@ -398,6 +398,9 @@
398
398
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
399
399
  color: #3e98ff;
400
400
  }
401
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
402
+ border: 0;
403
+ }
401
404
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
402
405
  background: transparent;
403
406
  border: 0;
@@ -399,6 +399,9 @@
399
399
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
400
400
  color: #333;
401
401
  }
402
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
403
+ border: 0;
404
+ }
402
405
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
403
406
  background: transparent;
404
407
  border: 0;
@@ -398,6 +398,9 @@
398
398
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
399
399
  color: #007bff;
400
400
  }
401
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
402
+ border: 0;
403
+ }
401
404
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
402
405
  background: #f8f9fa;
403
406
  border: 0;
@@ -400,6 +400,9 @@
400
400
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
401
401
  color: #adb5bd;
402
402
  }
403
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
404
+ border: 0;
405
+ }
403
406
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
404
407
  background: none;
405
408
  border: 0;
@@ -400,6 +400,9 @@
400
400
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
401
401
  color: #6c757d;
402
402
  }
403
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
404
+ border: 0;
405
+ }
403
406
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
404
407
  background: none;
405
408
  border: 0;
@@ -398,6 +398,9 @@
398
398
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
399
399
  color: #dadada;
400
400
  }
401
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
402
+ border: 1px solid #dadada;
403
+ }
401
404
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
402
405
  background: #514f4f;
403
406
  border: 1px solid #dadada;
@@ -399,6 +399,9 @@
399
399
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
400
400
  color: #333;
401
401
  }
402
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
403
+ border: 1px solid #666;
404
+ }
402
405
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
403
406
  background: #d1ebff;
404
407
  border: 1px solid #666;
@@ -399,6 +399,9 @@
399
399
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
400
400
  color: #a19f9d;
401
401
  }
402
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
403
+ border: 1px solid #f3f2f1;
404
+ }
402
405
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
403
406
  background: #252423;
404
407
  border: 1px solid #f3f2f1;
@@ -399,6 +399,9 @@
399
399
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
400
400
  color: #605e5c;
401
401
  }
402
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
403
+ border: 1px solid #201f1e;
404
+ }
402
405
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
403
406
  background: #f3f2f1;
404
407
  border: 1px solid #201f1e;
@@ -398,6 +398,9 @@
398
398
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
399
399
  color: #000;
400
400
  }
401
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
402
+ border: 2px dashed #000;
403
+ }
401
404
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
402
405
  background: #400074;
403
406
  border: 2px dashed #000;
@@ -399,6 +399,9 @@
399
399
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
400
400
  color: #fff;
401
401
  }
402
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
403
+ border: 2px dashed #fff;
404
+ }
402
405
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
403
406
  background: #ffd939;
404
407
  border: 2px dashed #fff;
@@ -399,6 +399,9 @@
399
399
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
400
400
  color: rgba(255, 255, 255, 0.7);
401
401
  }
402
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
403
+ border: 0;
404
+ }
402
405
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
403
406
  background: rgba(255, 255, 255, 0.05);
404
407
  border: 0;
@@ -400,6 +400,9 @@
400
400
  .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
401
401
  color: rgba(0, 0, 0, 0.54);
402
402
  }
403
+ .e-accordion .e-acrdn-item.e-select.e-selected > .e-acrdn-header:focus {
404
+ border: 0;
405
+ }
403
406
  .e-accordion .e-acrdn-item.e-expand-state.e-select:not(.e-selected) > .e-acrdn-header:focus {
404
407
  background: #eee;
405
408
  border: 0;