Skip to content

Commit c1482cc

Browse files
author
pipeline
committed
v27.1.55 is released
1 parent 2309f6d commit c1482cc

File tree

214 files changed

+10639
-8117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+10639
-8117
lines changed

controls/barcodegenerator/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 27.1.53 (2024-10-15)
5+
## 27.1.55 (2024-10-22)
66

77
### Barcode
88

controls/base/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,24 @@
22

33
## [Unreleased]
44

5+
## 27.1.55 (2024-10-22)
6+
7+
### Common
8+
9+
#### New Features
10+
11+
- Provided `isPreventScroll` API for `drag` and `drop`.
12+
513
## 27.1.53 (2024-10-15)
614

715
### Common
816

17+
#### Bug Fixes
18+
19+
- `#I642700` - The issue with "the `webpack external` files missing from CDN and NPM packages" has been resolved.
20+
21+
### Common
22+
923
#### New Features
1024

1125
- Provided support for handling license key validation in CI services.

controls/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-base",
3-
"version": "27.1.52",
3+
"version": "27.1.53",
44
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/base/spec/observer.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ describe('Observable', () => {
1010
let evtName: string[] = ['event1'];
1111
let obj: Object = { test: 'context' };
1212
let obj2: Object = { dynamicContext: 'dynamic' };
13-
let context1: any = { isRendered: false, detectFunction: function (arg: string) { return console.log(arg); }, randomId: [1253, 1232, 6443] };
14-
let context2: any = { isRendered: false, detectFunction: function (arg: string) { return console.log(arg); }, randomId: [4652, 3465, 7643] };
13+
let context1: any = { isReactMock: true, detectFunction: function (arg: string) { return console.log(arg); }, randomId: [1253, 1232, 6443] };
14+
let context2: any = { isReactMock: true, detectFunction: function (arg: string) { return console.log(arg); }, randomId: [4652, 3465, 7643] };
1515
beforeEach(() => {
1616
instance = new Observer(obj);
1717
event1Spy = jasmine.createSpy('event1');

controls/base/src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class Browser {
164164
browserDetails['isTouch'] = true;
165165
browserDetails['isPointer'] = true;
166166
}
167-
if (window && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
167+
if (typeof window !== 'undefined' && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
168168
browserDetails['isPointer'] = false;
169169
}
170170
if ('undefined' === typeof (<{ [key: string]: Object }>browserDetails)[`${key}`]) {

controls/base/src/draggable-model.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ export interface DraggableModel {
5959
*/
6060
isPreventSelect?: boolean;
6161

62+
/**
63+
* Defines whether need to prevent scrolling while dragging.
64+
*
65+
* @private
66+
*/
67+
isPreventScroll?: boolean;
68+
6269
/**
6370
* Specifies the callback function for drag event.
6471
*

controls/base/src/draggable.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
233233
*/
234234
@Property(true)
235235
public isPreventSelect: boolean;
236+
/**
237+
* Defines whether need to prevent scrolling while dragging.
238+
*
239+
* @private
240+
*/
241+
@Property(false)
242+
public isPreventScroll: boolean;
236243
/**
237244
* Specifies the callback function for drag event.
238245
*
@@ -828,7 +835,13 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
828835
if (this.dragArea && typeof this.dragArea !== 'string' && this.dragArea.classList.contains('e-kanban-content') && this.dragArea.style.position === 'relative') {
829836
draEleTop += this.dragArea.scrollTop;
830837
}
831-
const dragValue: DragPosition = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
838+
let dragValue: DragPosition = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
839+
if (this.isPreventScroll) {
840+
dragValue = this.getProcessedPositionValue({
841+
top: (this.position.top - this.parentClientRect.top - 2) + 'px',
842+
left: (this.position.left - this.parentClientRect.left - 2) + 'px'
843+
});
844+
}
832845
setStyleAttribute(helperElement, this.getDragPosition(dragValue));
833846
if (!this.elementInViewport(helperElement) && this.enableAutoScroll && !this.helperElement.classList.contains('e-treeview')) {
834847
this.helperElement.scrollIntoView();

controls/base/src/observer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class Observer {
195195
if (eventsArr) {
196196
for (let i: number = 0; i < eventsArr.length; i++) {
197197
const curContext: any = eventsArr[parseInt(i.toString(), 10)].context;
198-
if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
198+
if (curContext && curContext.detectFunction && curContext.randomId && curContext.isReactMock) {
199199
this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
200200
i--;
201201
}

controls/buttons/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 27.1.53 (2024-10-15)
5+
## 27.1.55 (2024-10-22)
66

77
### Checkbox
88

controls/calendars/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 27.1.55 (2024-10-22)
6+
7+
### DateTimePicker
8+
9+
#### Bug Fixes
10+
11+
- `#I632734` - Fixed an issue where the page automatically scrolled to the top when users began typing in the masked datetime picker on iPad.
12+
513
## 27.1.51 (2024-09-30)
614

715
### DateTimePicker

0 commit comments

Comments
 (0)