@syncfusion/ej2-navigations 20.3.47 → 20.3.48

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 : 20.3.47
3
+ * version : 20.3.48
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@19.60.1",
3
+ "_id": "@syncfusion/ej2-navigations@20.3.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-mnO+XJ2JF8kvnesSRv932kfHNge3XVO4kjdbgSyez+ipbe4yCjoghRDv0/+okKmmdQjArN9yLMZkyqdT5pZV3w==",
5
+ "_integrity": "sha512-8Q1yGMls6TjoqLWvfFtEsRBk8kQmG5kGv4lWgmaWGSpNnWyBs3R8Oll2M8fCR4CuAYQ3MwYjjwVUQCNyhnobdw==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -38,8 +38,8 @@
38
38
  "/@syncfusion/ej2-spreadsheet",
39
39
  "/@syncfusion/ej2-vue-navigations"
40
40
  ],
41
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-navigations/-/ej2-navigations-19.60.1.tgz",
42
- "_shasum": "b484d37710ff0871e9082d7ef103487ec7fcc99c",
41
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.3.47.tgz",
42
+ "_shasum": "b72e95c3f21e9dfcc8a4699887a09cccf791a457",
43
43
  "_spec": "@syncfusion/ej2-navigations@*",
44
44
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
45
45
  "author": {
@@ -50,12 +50,12 @@
50
50
  },
51
51
  "bundleDependencies": false,
52
52
  "dependencies": {
53
- "@syncfusion/ej2-base": "~20.3.47",
54
- "@syncfusion/ej2-buttons": "~20.3.47",
53
+ "@syncfusion/ej2-base": "~20.3.48",
54
+ "@syncfusion/ej2-buttons": "~20.3.48",
55
55
  "@syncfusion/ej2-data": "~20.3.47",
56
56
  "@syncfusion/ej2-inputs": "~20.3.47",
57
57
  "@syncfusion/ej2-lists": "~20.3.47",
58
- "@syncfusion/ej2-popups": "~20.3.47"
58
+ "@syncfusion/ej2-popups": "~20.3.48"
59
59
  },
60
60
  "deprecated": false,
61
61
  "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",
@@ -160,6 +160,6 @@
160
160
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
161
161
  },
162
162
  "typings": "index.d.ts",
163
- "version": "20.3.47",
163
+ "version": "20.3.48",
164
164
  "sideEffects": false
165
165
  }
@@ -1,4 +1,4 @@
1
- import { Component, EventHandler, Property, Event, EmitType, AnimationModel, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';import { KeyboardEventArgs, BaseEventArgs, Effect, getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';import { isVisible, closest, attributes, detach, select, addClass, append } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, Complex } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, formatUnit, selectAll, SanitizeHtmlHelper, isRippleEnabled } from '@syncfusion/ej2-base';
1
+ import { Component, EventHandler, Property, Event, EmitType, AnimationModel, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';import { KeyboardEventArgs, BaseEventArgs, Effect, getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';import { isVisible, closest, attributes, detach, select, addClass, removeClass, append } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, Complex } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, formatUnit, selectAll, SanitizeHtmlHelper, isRippleEnabled } from '@syncfusion/ej2-base';
2
2
  import {ExpandMode,AccordionClickArgs,ExpandEventArgs,ExpandedEventArgs} from "./accordion";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -20,7 +20,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
20
20
  /* eslint-disable @typescript-eslint/no-explicit-any */
21
21
  import { Component, EventHandler, Property, Event, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';
22
22
  import { getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';
23
- import { isVisible, closest, attributes, detach, select, addClass, append } from '@syncfusion/ej2-base';
23
+ import { isVisible, closest, attributes, detach, select, addClass, removeClass, append } from '@syncfusion/ej2-base';
24
24
  import { NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';
25
25
  import { setStyleAttribute as setStyle, Complex } from '@syncfusion/ej2-base';
26
26
  import { isNullOrUndefined as isNOU, formatUnit, selectAll, SanitizeHtmlHelper, isRippleEnabled } from '@syncfusion/ej2-base';
@@ -1252,8 +1252,12 @@ var Accordion = /** @class */ (function (_super) {
1252
1252
  this.updateItem(item, index);
1253
1253
  }
1254
1254
  if (property === 'cssClass' && !isNOU(item)) {
1255
- item.classList.remove(oldVal);
1256
- item.classList.add(newVal);
1255
+ if (oldVal) {
1256
+ removeClass([item], oldVal.split(' '));
1257
+ }
1258
+ if (newVal) {
1259
+ addClass([item], newVal.split(' '));
1260
+ }
1257
1261
  }
1258
1262
  if (property === 'visible' && !isNOU(item)) {
1259
1263
  if (Object(newProp.items[index])[property] === false) {
@@ -516,6 +516,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
516
516
  private firstTap;
517
517
  private hasTemplate;
518
518
  private isFirstRender;
519
+ private isNodeDropped;
519
520
  /**
520
521
  * Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
521
522
  * desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
@@ -210,6 +210,8 @@ var TreeView = /** @class */ (function (_super) {
210
210
  _this.changeDataSource = false;
211
211
  _this.hasTemplate = false;
212
212
  _this.isFirstRender = false;
213
+ // Specifies whether the node is dropped or not
214
+ _this.isNodeDropped = false;
213
215
  _this.mouseDownStatus = false;
214
216
  return _this;
215
217
  }
@@ -1423,11 +1425,12 @@ var TreeView = /** @class */ (function (_super) {
1423
1425
  this.updateCheckedProp();
1424
1426
  this.isAnimate = true;
1425
1427
  this.isInitalExpand = false;
1426
- if (!this.isLoaded || this.isFieldChange) {
1428
+ if ((!this.isLoaded || this.isFieldChange) && !this.isNodeDropped) {
1427
1429
  var eventArgs = { data: this.treeData };
1428
1430
  this.trigger('dataBound', eventArgs);
1429
1431
  }
1430
1432
  this.isLoaded = true;
1433
+ this.isNodeDropped = false;
1431
1434
  };
1432
1435
  TreeView.prototype.doSelectionAction = function () {
1433
1436
  var sNodes = selectAll('.' + SELECTED, this.element);
@@ -2652,8 +2655,9 @@ var TreeView = /** @class */ (function (_super) {
2652
2655
  var expanded = (currLi.getAttribute('aria-expanded') === 'true') ? true : false;
2653
2656
  var hasChildren = currLi.getAttribute('aria-expanded') !== null ? true : (select('.' + EXPANDABLE, currLi) || select('.' + COLLAPSIBLE, currLi)) != null ? true : false;
2654
2657
  var checked = null;
2655
- if (this.showCheckBox) {
2656
- checked = select('.' + CHECKBOXWRAP, currLi).getAttribute('aria-checked');
2658
+ var checkboxElement = select('.' + CHECKBOXWRAP, currLi);
2659
+ if (this.showCheckBox && checkboxElement) {
2660
+ checked = checkboxElement.getAttribute('aria-checked');
2657
2661
  }
2658
2662
  return {
2659
2663
  id: id, text: text, parentID: pid, selected: selected, expanded: expanded,
@@ -3165,6 +3169,8 @@ var TreeView = /** @class */ (function (_super) {
3165
3169
  this.trigger('nodeDropped', this.getDragEvent(e.event, dragObj, dropTarget, e.target, e.dragData.draggedElement, null, level, drop));
3166
3170
  if (dragObj.element.id !== this.element.id) {
3167
3171
  dragObj.triggerEvent();
3172
+ this.isNodeDropped = true;
3173
+ this.fields.dataSource = this.treeData;
3168
3174
  }
3169
3175
  this.triggerEvent();
3170
3176
  };