@syncfusion/ej2-base 27.1.54 → 27.1.55
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.
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +155 -146
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +10 -1
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +14 -20
- package/src/draggable-model.d.ts +7 -0
- package/src/draggable.d.ts +6 -0
- package/src/draggable.js +9 -0
- package/src/observer.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.1.
|
|
3
|
+
* version : 27.1.55
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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-base@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-base@27.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-base@27.1.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-V8gtssZUy8haZ85F4yICgOI9AymGipVfh7ardoDTzJi9pznS/YBo3XVUqaa5e04dw1hm0RmxPkMBvX0vJWg9nw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
22
|
"/@syncfusion/ej2-angular-barcode-generator",
|
|
23
23
|
"/@syncfusion/ej2-angular-base",
|
|
24
|
-
"/@syncfusion/ej2-angular-
|
|
24
|
+
"/@syncfusion/ej2-angular-calendars",
|
|
25
25
|
"/@syncfusion/ej2-angular-charts",
|
|
26
26
|
"/@syncfusion/ej2-angular-diagrams",
|
|
27
27
|
"/@syncfusion/ej2-angular-documenteditor",
|
|
@@ -29,15 +29,13 @@
|
|
|
29
29
|
"/@syncfusion/ej2-angular-filemanager",
|
|
30
30
|
"/@syncfusion/ej2-angular-gantt",
|
|
31
31
|
"/@syncfusion/ej2-angular-grids",
|
|
32
|
-
"/@syncfusion/ej2-angular-
|
|
33
|
-
"/@syncfusion/ej2-angular-interactive-chat",
|
|
34
|
-
"/@syncfusion/ej2-angular-kanban",
|
|
35
|
-
"/@syncfusion/ej2-angular-layouts",
|
|
32
|
+
"/@syncfusion/ej2-angular-inputs",
|
|
36
33
|
"/@syncfusion/ej2-angular-navigations",
|
|
37
34
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
38
35
|
"/@syncfusion/ej2-angular-pivotview",
|
|
39
36
|
"/@syncfusion/ej2-angular-popups",
|
|
40
37
|
"/@syncfusion/ej2-angular-querybuilder",
|
|
38
|
+
"/@syncfusion/ej2-angular-richtexteditor",
|
|
41
39
|
"/@syncfusion/ej2-angular-schedule",
|
|
42
40
|
"/@syncfusion/ej2-angular-spreadsheet",
|
|
43
41
|
"/@syncfusion/ej2-angular-treegrid",
|
|
@@ -77,7 +75,7 @@
|
|
|
77
75
|
"/@syncfusion/ej2-querybuilder",
|
|
78
76
|
"/@syncfusion/ej2-react-barcode-generator",
|
|
79
77
|
"/@syncfusion/ej2-react-base",
|
|
80
|
-
"/@syncfusion/ej2-react-
|
|
78
|
+
"/@syncfusion/ej2-react-calendars",
|
|
81
79
|
"/@syncfusion/ej2-react-charts",
|
|
82
80
|
"/@syncfusion/ej2-react-diagrams",
|
|
83
81
|
"/@syncfusion/ej2-react-documenteditor",
|
|
@@ -85,15 +83,13 @@
|
|
|
85
83
|
"/@syncfusion/ej2-react-filemanager",
|
|
86
84
|
"/@syncfusion/ej2-react-gantt",
|
|
87
85
|
"/@syncfusion/ej2-react-grids",
|
|
88
|
-
"/@syncfusion/ej2-react-
|
|
89
|
-
"/@syncfusion/ej2-react-interactive-chat",
|
|
90
|
-
"/@syncfusion/ej2-react-kanban",
|
|
91
|
-
"/@syncfusion/ej2-react-layouts",
|
|
86
|
+
"/@syncfusion/ej2-react-inputs",
|
|
92
87
|
"/@syncfusion/ej2-react-navigations",
|
|
93
88
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
94
89
|
"/@syncfusion/ej2-react-pivotview",
|
|
95
90
|
"/@syncfusion/ej2-react-popups",
|
|
96
91
|
"/@syncfusion/ej2-react-querybuilder",
|
|
92
|
+
"/@syncfusion/ej2-react-richtexteditor",
|
|
97
93
|
"/@syncfusion/ej2-react-schedule",
|
|
98
94
|
"/@syncfusion/ej2-react-spreadsheet",
|
|
99
95
|
"/@syncfusion/ej2-react-treegrid",
|
|
@@ -108,7 +104,7 @@
|
|
|
108
104
|
"/@syncfusion/ej2-treemap",
|
|
109
105
|
"/@syncfusion/ej2-vue-barcode-generator",
|
|
110
106
|
"/@syncfusion/ej2-vue-base",
|
|
111
|
-
"/@syncfusion/ej2-vue-
|
|
107
|
+
"/@syncfusion/ej2-vue-calendars",
|
|
112
108
|
"/@syncfusion/ej2-vue-charts",
|
|
113
109
|
"/@syncfusion/ej2-vue-diagrams",
|
|
114
110
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
@@ -116,22 +112,20 @@
|
|
|
116
112
|
"/@syncfusion/ej2-vue-filemanager",
|
|
117
113
|
"/@syncfusion/ej2-vue-gantt",
|
|
118
114
|
"/@syncfusion/ej2-vue-grids",
|
|
119
|
-
"/@syncfusion/ej2-vue-
|
|
120
|
-
"/@syncfusion/ej2-vue-interactive-chat",
|
|
121
|
-
"/@syncfusion/ej2-vue-kanban",
|
|
122
|
-
"/@syncfusion/ej2-vue-layouts",
|
|
115
|
+
"/@syncfusion/ej2-vue-inputs",
|
|
123
116
|
"/@syncfusion/ej2-vue-navigations",
|
|
124
117
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
125
118
|
"/@syncfusion/ej2-vue-pivotview",
|
|
126
119
|
"/@syncfusion/ej2-vue-popups",
|
|
127
120
|
"/@syncfusion/ej2-vue-querybuilder",
|
|
121
|
+
"/@syncfusion/ej2-vue-richtexteditor",
|
|
128
122
|
"/@syncfusion/ej2-vue-schedule",
|
|
129
123
|
"/@syncfusion/ej2-vue-spreadsheet",
|
|
130
124
|
"/@syncfusion/ej2-vue-treegrid",
|
|
131
125
|
"/@syncfusion/ej2-vue-treemap"
|
|
132
126
|
],
|
|
133
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-27.1.
|
|
134
|
-
"_shasum": "
|
|
127
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-27.1.53.tgz",
|
|
128
|
+
"_shasum": "5440a2b6b8b0a752012bddf8105cef096ca36318",
|
|
135
129
|
"_spec": "@syncfusion/ej2-base@*",
|
|
136
130
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
137
131
|
"author": {
|
|
@@ -186,6 +180,6 @@
|
|
|
186
180
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
187
181
|
},
|
|
188
182
|
"typings": "index.d.ts",
|
|
189
|
-
"version": "27.1.
|
|
183
|
+
"version": "27.1.55",
|
|
190
184
|
"sideEffects": true
|
|
191
185
|
}
|
package/src/draggable-model.d.ts
CHANGED
|
@@ -59,6 +59,13 @@ export interface DraggableModel {
|
|
|
59
59
|
*/
|
|
60
60
|
isPreventSelect?: boolean;
|
|
61
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Defines whether need to prevent scrolling while dragging.
|
|
64
|
+
*
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
isPreventScroll?: boolean;
|
|
68
|
+
|
|
62
69
|
/**
|
|
63
70
|
* Specifies the callback function for drag event.
|
|
64
71
|
*
|
package/src/draggable.d.ts
CHANGED
|
@@ -199,6 +199,12 @@ export declare class Draggable extends Base<HTMLElement> implements INotifyPrope
|
|
|
199
199
|
* @private
|
|
200
200
|
*/
|
|
201
201
|
isPreventSelect: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Defines whether need to prevent scrolling while dragging.
|
|
204
|
+
*
|
|
205
|
+
* @private
|
|
206
|
+
*/
|
|
207
|
+
isPreventScroll: boolean;
|
|
202
208
|
/**
|
|
203
209
|
* Specifies the callback function for drag event.
|
|
204
210
|
*
|
package/src/draggable.js
CHANGED
|
@@ -536,6 +536,12 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
536
536
|
draEleTop += this.dragArea.scrollTop;
|
|
537
537
|
}
|
|
538
538
|
var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
|
|
539
|
+
if (this.isPreventScroll) {
|
|
540
|
+
dragValue = this.getProcessedPositionValue({
|
|
541
|
+
top: (this.position.top - this.parentClientRect.top - 2) + 'px',
|
|
542
|
+
left: (this.position.left - this.parentClientRect.left - 2) + 'px'
|
|
543
|
+
});
|
|
544
|
+
}
|
|
539
545
|
setStyleAttribute(helperElement, this.getDragPosition(dragValue));
|
|
540
546
|
if (!this.elementInViewport(helperElement) && this.enableAutoScroll && !this.helperElement.classList.contains('e-treeview')) {
|
|
541
547
|
this.helperElement.scrollIntoView();
|
|
@@ -860,6 +866,9 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
860
866
|
__decorate([
|
|
861
867
|
Property(true)
|
|
862
868
|
], Draggable.prototype, "isPreventSelect", void 0);
|
|
869
|
+
__decorate([
|
|
870
|
+
Property(false)
|
|
871
|
+
], Draggable.prototype, "isPreventScroll", void 0);
|
|
863
872
|
__decorate([
|
|
864
873
|
Event()
|
|
865
874
|
], Draggable.prototype, "drag", void 0);
|
package/src/observer.js
CHANGED
|
@@ -174,7 +174,7 @@ var Observer = /** @class */ (function () {
|
|
|
174
174
|
if (eventsArr) {
|
|
175
175
|
for (var i = 0; i < eventsArr.length; i++) {
|
|
176
176
|
var curContext = eventsArr[parseInt(i.toString(), 10)].context;
|
|
177
|
-
if (curContext && curContext.detectFunction && curContext.randomId &&
|
|
177
|
+
if (curContext && curContext.detectFunction && curContext.randomId && curContext.isReactMock) {
|
|
178
178
|
this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
|
|
179
179
|
i--;
|
|
180
180
|
}
|