@syncfusion/ej2-base 20.3.49 → 20.3.56

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.49
3
+ * version : 20.3.56
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
@@ -8,6 +8,7 @@ var RepalceRegex = /"/g;
8
8
  var isDashBoardReport = config['dashBoardReport'];
9
9
  var timeCal = {};
10
10
  var fs = require('fs');
11
+ var enableW3c = '{W3cdisabled}';
11
12
  isDashBoardReport = isDashBoardReport === undefined ? true : isDashBoardReport;
12
13
  if (isDashBoardReport) {
13
14
  var currentRepo = shell.exec('git config --get remote.origin.url', {
@@ -252,9 +253,18 @@ exports.config = {
252
253
  if (config.browsers && config.browsers.length) {
253
254
  for (var i = 0; i < config.browsers.length; i++) {
254
255
  var browserName = config.browsers[i];
255
- exports.config.multiCapabilities.push({
256
- 'browserName': browserName
257
- });
256
+ if (browserName === 'chrome' && enableW3c === '{W3cenabled}') {
257
+ exports.config.multiCapabilities.push({
258
+ 'browserName': browserName,
259
+ 'goog:chromeOptions': { //disable w3c here
260
+ w3c: false,
261
+ }
262
+ });
263
+ } else {
264
+ exports.config.multiCapabilities.push({
265
+ 'browserName': browserName
266
+ });
267
+ }
258
268
  }
259
269
  } else {
260
270
  if (os.platform() === 'win32') {
@@ -270,12 +280,21 @@ if (config.browsers && config.browsers.length) {
270
280
  exports.config.multiCapabilities.push({
271
281
  'browserName': 'firefox'
272
282
  });
273
- exports.config.multiCapabilities.push({
274
- 'browserName': 'chrome',
275
- 'chromeOptions': {
276
- 'args': ['no-sandbox']
277
- }
278
- });
283
+ if (enableW3c === '{W3cenabled}') {
284
+ exports.config.multiCapabilities.push({
285
+ 'browserName': 'chrome',
286
+ 'goog:chromeOptions': { //disable w3c here
287
+ w3c: false,
288
+ }
289
+ });
290
+ } else {
291
+ exports.config.multiCapabilities.push({
292
+ 'browserName': 'chrome',
293
+ 'chromeOptions': {
294
+ 'args': ['no-sandbox']
295
+ }
296
+ });
297
+ }
279
298
  }
280
299
  exports.config.seleniumAddress = config.seleniumAddress || 'http://localhost:4444/wd/hub/';
281
300
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@18.61.0",
3
+ "_id": "@syncfusion/ej2-base@20.3.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-WMTTtB07Yjxz1n2rt3gmdkiK/KNcaflW2TnEkIycIiAH4Obts9Yjmw6wqPQlQ7T7uIZWSUmwE4sATiqopMld7Q==",
5
+ "_integrity": "sha512-bIuQE+PoeRiT8S5bdA/3+m9jbaXK/IB8ycAwIz+Zw1wRuZRXJZgCATSgLpZgCV2Cb+5Z8m7dGuQhKVV13HElIg==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,6 +19,7 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-barcode-generator",
22
23
  "/@syncfusion/ej2-angular-base",
23
24
  "/@syncfusion/ej2-angular-buttons",
24
25
  "/@syncfusion/ej2-angular-calendars",
@@ -31,17 +32,27 @@
31
32
  "/@syncfusion/ej2-angular-gantt",
32
33
  "/@syncfusion/ej2-angular-grids",
33
34
  "/@syncfusion/ej2-angular-heatmap",
35
+ "/@syncfusion/ej2-angular-image-editor",
36
+ "/@syncfusion/ej2-angular-inplace-editor",
34
37
  "/@syncfusion/ej2-angular-inputs",
35
38
  "/@syncfusion/ej2-angular-kanban",
39
+ "/@syncfusion/ej2-angular-layouts",
40
+ "/@syncfusion/ej2-angular-lineargauge",
41
+ "/@syncfusion/ej2-angular-lists",
36
42
  "/@syncfusion/ej2-angular-maps",
37
43
  "/@syncfusion/ej2-angular-navigations",
44
+ "/@syncfusion/ej2-angular-notifications",
38
45
  "/@syncfusion/ej2-angular-pdfviewer",
39
46
  "/@syncfusion/ej2-angular-pivotview",
40
47
  "/@syncfusion/ej2-angular-popups",
48
+ "/@syncfusion/ej2-angular-progressbar",
41
49
  "/@syncfusion/ej2-angular-querybuilder",
50
+ "/@syncfusion/ej2-angular-richtexteditor",
42
51
  "/@syncfusion/ej2-angular-schedule",
52
+ "/@syncfusion/ej2-angular-splitbuttons",
43
53
  "/@syncfusion/ej2-angular-spreadsheet",
44
54
  "/@syncfusion/ej2-angular-treegrid",
55
+ "/@syncfusion/ej2-angular-treemap",
45
56
  "/@syncfusion/ej2-barcode-generator",
46
57
  "/@syncfusion/ej2-buttons",
47
58
  "/@syncfusion/ej2-calendars",
@@ -72,6 +83,7 @@
72
83
  "/@syncfusion/ej2-popups",
73
84
  "/@syncfusion/ej2-progressbar",
74
85
  "/@syncfusion/ej2-querybuilder",
86
+ "/@syncfusion/ej2-react-barcode-generator",
75
87
  "/@syncfusion/ej2-react-base",
76
88
  "/@syncfusion/ej2-react-buttons",
77
89
  "/@syncfusion/ej2-react-calendars",
@@ -84,17 +96,27 @@
84
96
  "/@syncfusion/ej2-react-gantt",
85
97
  "/@syncfusion/ej2-react-grids",
86
98
  "/@syncfusion/ej2-react-heatmap",
99
+ "/@syncfusion/ej2-react-image-editor",
100
+ "/@syncfusion/ej2-react-inplace-editor",
87
101
  "/@syncfusion/ej2-react-inputs",
88
102
  "/@syncfusion/ej2-react-kanban",
103
+ "/@syncfusion/ej2-react-layouts",
104
+ "/@syncfusion/ej2-react-lineargauge",
105
+ "/@syncfusion/ej2-react-lists",
89
106
  "/@syncfusion/ej2-react-maps",
90
107
  "/@syncfusion/ej2-react-navigations",
108
+ "/@syncfusion/ej2-react-notifications",
91
109
  "/@syncfusion/ej2-react-pdfviewer",
92
110
  "/@syncfusion/ej2-react-pivotview",
93
111
  "/@syncfusion/ej2-react-popups",
112
+ "/@syncfusion/ej2-react-progressbar",
94
113
  "/@syncfusion/ej2-react-querybuilder",
114
+ "/@syncfusion/ej2-react-richtexteditor",
95
115
  "/@syncfusion/ej2-react-schedule",
116
+ "/@syncfusion/ej2-react-splitbuttons",
96
117
  "/@syncfusion/ej2-react-spreadsheet",
97
118
  "/@syncfusion/ej2-react-treegrid",
119
+ "/@syncfusion/ej2-react-treemap",
98
120
  "/@syncfusion/ej2-richtexteditor",
99
121
  "/@syncfusion/ej2-schedule",
100
122
  "/@syncfusion/ej2-splitbuttons",
@@ -102,6 +124,7 @@
102
124
  "/@syncfusion/ej2-svg-base",
103
125
  "/@syncfusion/ej2-treegrid",
104
126
  "/@syncfusion/ej2-treemap",
127
+ "/@syncfusion/ej2-vue-barcode-generator",
105
128
  "/@syncfusion/ej2-vue-base",
106
129
  "/@syncfusion/ej2-vue-buttons",
107
130
  "/@syncfusion/ej2-vue-calendars",
@@ -114,22 +137,32 @@
114
137
  "/@syncfusion/ej2-vue-gantt",
115
138
  "/@syncfusion/ej2-vue-grids",
116
139
  "/@syncfusion/ej2-vue-heatmap",
140
+ "/@syncfusion/ej2-vue-image-editor",
141
+ "/@syncfusion/ej2-vue-inplace-editor",
117
142
  "/@syncfusion/ej2-vue-inputs",
118
143
  "/@syncfusion/ej2-vue-kanban",
144
+ "/@syncfusion/ej2-vue-layouts",
145
+ "/@syncfusion/ej2-vue-lineargauge",
146
+ "/@syncfusion/ej2-vue-lists",
119
147
  "/@syncfusion/ej2-vue-maps",
120
148
  "/@syncfusion/ej2-vue-navigations",
149
+ "/@syncfusion/ej2-vue-notifications",
121
150
  "/@syncfusion/ej2-vue-pdfviewer",
122
151
  "/@syncfusion/ej2-vue-pivotview",
123
152
  "/@syncfusion/ej2-vue-popups",
153
+ "/@syncfusion/ej2-vue-progressbar",
124
154
  "/@syncfusion/ej2-vue-querybuilder",
155
+ "/@syncfusion/ej2-vue-richtexteditor",
125
156
  "/@syncfusion/ej2-vue-schedule",
157
+ "/@syncfusion/ej2-vue-splitbuttons",
126
158
  "/@syncfusion/ej2-vue-spreadsheet",
127
- "/@syncfusion/ej2-vue-treegrid"
159
+ "/@syncfusion/ej2-vue-treegrid",
160
+ "/@syncfusion/ej2-vue-treemap"
128
161
  ],
129
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-18.61.0.tgz",
130
- "_shasum": "99e7aee23d5cec67e8c4e0b10cea775e11290851",
162
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.3.50.tgz",
163
+ "_shasum": "8f1e29ca93f6a7cc082cf5fd0a9bd3336cb97d36",
131
164
  "_spec": "@syncfusion/ej2-base@*",
132
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
165
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
133
166
  "author": {
134
167
  "name": "Syncfusion Inc."
135
168
  },
@@ -141,7 +174,7 @@
141
174
  },
142
175
  "bundleDependencies": false,
143
176
  "dependencies": {
144
- "@syncfusion/ej2-icons": "~20.3.47"
177
+ "@syncfusion/ej2-icons": "~20.3.56"
145
178
  },
146
179
  "deprecated": false,
147
180
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
@@ -182,6 +215,6 @@
182
215
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
183
216
  },
184
217
  "typings": "index.d.ts",
185
- "version": "20.3.49",
218
+ "version": "20.3.56",
186
219
  "sideEffects": true
187
220
  }
package/src/component.js CHANGED
@@ -361,7 +361,9 @@ var Component = /** @class */ (function (_super) {
361
361
  };
362
362
  //tslint:disable-next-line
363
363
  Component.prototype.renderReactTemplates = function (callback) {
364
- //No Code
364
+ if (!isNullOrUndefined(callback)) {
365
+ callback();
366
+ }
365
367
  };
366
368
  // eslint-disable-next-line
367
369
  Component.prototype.clearTemplate = function (templateName, index) {
package/src/draggable.js CHANGED
@@ -462,14 +462,27 @@ var Draggable = /** @class */ (function (_super) {
462
462
  }
463
463
  var draEleTop;
464
464
  var draEleLeft;
465
- if (this.dragArea) {
466
- this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
467
- draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - this.borderWidth.top);
468
- draEleLeft = (left - iLeft) < 0 ? this.dragLimit.left : (left - this.borderWidth.left);
465
+ if (this.helperElement.classList.contains('e-treeview')) {
466
+ if (this.dragArea) {
467
+ this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
468
+ draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - this.borderWidth.top);
469
+ draEleLeft = (left - iLeft) < 0 ? this.dragLimit.left : (left - this.borderWidth.left);
470
+ }
471
+ else {
472
+ draEleTop = top - this.borderWidth.top;
473
+ draEleLeft = left - this.borderWidth.left;
474
+ }
469
475
  }
470
476
  else {
471
- draEleTop = top - this.borderWidth.top;
472
- draEleLeft = left - this.borderWidth.left;
477
+ if (this.dragArea) {
478
+ this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
479
+ draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - iTop);
480
+ draEleLeft = (left - iLeft) < 0 ? this.dragElePosition.left : (left - iLeft);
481
+ }
482
+ else {
483
+ draEleTop = top - iTop;
484
+ draEleLeft = left - iLeft;
485
+ }
473
486
  }
474
487
  var marginTop = parseFloat(getComputedStyle(this.element).marginTop);
475
488
  // when drag-element has margin-top
@@ -502,7 +515,7 @@ var Draggable = /** @class */ (function (_super) {
502
515
  }
503
516
  }
504
517
  }
505
- if (this.dragArea) {
518
+ if (this.dragArea && this.helperElement.classList.contains('e-treeview')) {
506
519
  var helperHeight = helperElement.offsetHeight + (parseFloat(styles.marginTop)
507
520
  + parseFloat(styles.marginBottom));
508
521
  draEleTop = (draEleTop + helperHeight) > this.dragLimit.bottom ? (this.dragLimit.bottom - helperHeight) : draEleTop;
@@ -576,7 +589,7 @@ var Draggable = /** @class */ (function (_super) {
576
589
  }
577
590
  }
578
591
  else if (nodeEle && nodeEle !== document.scrollingElement) {
579
- if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop - this.borderWidth.top - this.borderWidth.bottom) <= draEleTop) {
592
+ if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop) < draEleTop) {
580
593
  nodeEle.scrollTop += this.helperElement.clientHeight;
581
594
  }
582
595
  else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight - document.scrollingElement.scrollTop)) {
@@ -682,7 +695,7 @@ var Draggable = /** @class */ (function (_super) {
682
695
  if (ele) {
683
696
  var elementArea = ele.getBoundingClientRect();
684
697
  eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
685
- eleHeightBound = ele.scrollHeight ? (this.dragArea && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
698
+ eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
686
699
  var keys = ['Top', 'Left', 'Bottom', 'Right'];
687
700
  var styles = getComputedStyle(ele);
688
701
  for (var i = 0; i < keys.length; i++) {
@@ -693,7 +706,12 @@ var Draggable = /** @class */ (function (_super) {
693
706
  this.borderWidth[lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
694
707
  this.padding[lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
695
708
  }
696
- top = elementArea.top + document.scrollingElement.scrollTop;
709
+ if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
710
+ top = elementArea.top + document.scrollingElement.scrollTop;
711
+ }
712
+ else {
713
+ top = elementArea.top;
714
+ }
697
715
  left = elementArea.left;
698
716
  this.dragLimit.left = left + this.borderWidth.left + this.padding.left;
699
717
  this.dragLimit.top = ele.offsetTop + this.borderWidth.top + this.padding.top;