Skip to content

Commit 8f48bde

Browse files
author
pipeline
committed
v20.3.50 is released
1 parent 483d06d commit 8f48bde

File tree

172 files changed

+14667
-450
lines changed

Some content is hidden

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

172 files changed

+14667
-450
lines changed

controls/base/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+
## 20.3.50 (2022-10-18)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `#SF395314` - The issue " incorrect position of the helper element while dragging the `treeview` element" has been resolved.
12+
513
## 20.3.49 (2022-10-11)
614

715
### Common

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": "18.61.0",
3+
"version": "20.3.49",
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/src/draggable.ts

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -737,13 +737,24 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
737737
}
738738
let draEleTop: number;
739739
let draEleLeft: number;
740-
if (this.dragArea) {
741-
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
742-
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - this.borderWidth.top);
743-
draEleLeft = (left - iLeft) < 0 ? this.dragLimit.left : (left - this.borderWidth.left);
740+
if (this.helperElement.classList.contains('e-treeview')){
741+
if (this.dragArea) {
742+
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
743+
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - this.borderWidth.top);
744+
draEleLeft = (left - iLeft) < 0 ? this.dragLimit.left : (left - this.borderWidth.left);
745+
} else {
746+
draEleTop = top - this.borderWidth.top;
747+
draEleLeft = left - this.borderWidth.left;
748+
}
744749
} else {
745-
draEleTop = top - this.borderWidth.top;
746-
draEleLeft = left - this.borderWidth.left;
750+
if (this.dragArea) {
751+
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
752+
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - iTop);
753+
draEleLeft = (left - iLeft) < 0 ? this.dragElePosition.left : (left - iLeft);
754+
} else {
755+
draEleTop = top - iTop;
756+
draEleLeft = left - iLeft;
757+
}
747758
}
748759
let marginTop: number = parseFloat(getComputedStyle(this.element).marginTop);
749760
// when drag-element has margin-top
@@ -774,7 +785,7 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
774785
}
775786
}
776787

777-
if (this.dragArea) {
788+
if (this.dragArea && this.helperElement.classList.contains('e-treeview')) {
778789
let helperHeight: number = helperElement.offsetHeight + (parseFloat(styles.marginTop)
779790
+ parseFloat(styles.marginBottom));
780791
draEleTop = (draEleTop + helperHeight) > this.dragLimit.bottom ? (this.dragLimit.bottom - helperHeight) : draEleTop;
@@ -849,7 +860,7 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
849860
nodeEle.scrollTop -= this.helperElement.clientHeight;
850861
}
851862
}else if (nodeEle && nodeEle !== document.scrollingElement) {
852-
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop - this.borderWidth.top - this.borderWidth.bottom) <= draEleTop) {
863+
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight + document.scrollingElement.scrollTop) < draEleTop) {
853864
nodeEle.scrollTop += this.helperElement.clientHeight;
854865
}else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight - document.scrollingElement.scrollTop)) {
855866
nodeEle.scrollTop -= this.helperElement.clientHeight;
@@ -959,7 +970,7 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
959970
if (ele) {
960971
let elementArea: ClientRect = ele.getBoundingClientRect();
961972
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
962-
eleHeightBound = ele.scrollHeight ? (this.dragArea && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
973+
eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
963974
let keys: string[] = ['Top', 'Left', 'Bottom', 'Right'];
964975
let styles: any = getComputedStyle(ele);
965976
for (let i: number = 0; i < keys.length; i++) {
@@ -970,7 +981,11 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
970981
(<any>this.borderWidth)[lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
971982
(<any>this.padding)[lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
972983
}
973-
top = elementArea.top + document.scrollingElement.scrollTop;
984+
if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
985+
top = elementArea.top + document.scrollingElement.scrollTop;
986+
} else {
987+
top = elementArea.top;
988+
}
974989
left = elementArea.left;
975990
this.dragLimit.left = left + this.borderWidth.left + this.padding.left;
976991
this.dragLimit.top = ele.offsetTop + this.borderWidth.top + this.padding.top;

controls/buttons/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+
## 20.3.50 (2022-10-18)
6+
7+
### Checkbox
8+
9+
#### Bug Fixes
10+
11+
- `#I382543` - The issue with "Checkbox value not update properly while using edit template of grid" has been resolved.
12+
513
## 20.3.49 (2022-10-11)
614

715
### Floating Action Button `Preview`

controls/buttons/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-buttons",
3-
"version": "18.44.0",
3+
"version": "20.3.49",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/buttons/src/check-box/check-box.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
209209

210210
private clickHandler(event: Event): void {
211211
if ((event.target as HTMLElement).tagName === 'INPUT' && this.clickTriggered) {
212+
if(this.isVue) {
213+
this.changeState(this.checked ? 'check' : 'uncheck');
214+
}
212215
this.clickTriggered = false;
213216
return;
214217
}

controls/calendars/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 20.3.50 (2022-10-18)
6+
7+
### Calendar
8+
9+
#### Bug Fixes
10+
11+
- `#I403191` - The issue "selection is not removed properly when we select the already selected date in Calendar multiselection" has been resolved.
12+
13+
### TimePicker
14+
15+
#### Bug Fixes
16+
17+
- `#FB15052` - Issue with "Form Validator wrongly validates while clearing the components value using clear icon" has been resolved.
18+
19+
### DatePicker
20+
21+
#### Bug Fixes
22+
23+
- `#FB15052` - Issue with "Form Validator wrongly validates while clearing the components value using clear icon" has been resolved.
24+
25+
### DateRangePicker
26+
27+
#### Bug Fixes
28+
29+
- `#FB15052` - Issue with "Form Validator wrongly validates while clearing the components value using clear icon" has been resolved.
30+
531
## 19.3.46 (2021-10-19)
632

733
### TimePicker

controls/calendars/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-calendars",
3-
"version": "18.29.7",
3+
"version": "20.3.49",
44
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/calendars/src/calendar/calendar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
10811081
if ((localDateString === tempDateString && this.getDateVal(localDate, values[tempValue]))
10821082
|| (this.getDateVal(localDate, value))) {
10831083
addClass([tdEle], SELECTED);
1084-
} if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && currentTarget.classList.contains(SELECTED)) {
1084+
} if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && tdEle.classList.contains(SELECTED) && currentTarget.classList.contains(SELECTED)) {
10851085
removeClass([tdEle], SELECTED);
10861086
this.previousDates = false;
10871087
const copyValues: Date[] = this.copyValues(values);
@@ -1093,6 +1093,7 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
10931093
if (localDateString === tempDateString) {
10941094
const index: number = copyValues.indexOf(copyValues[i]);
10951095
copyValues.splice(index, 1);
1096+
values.splice(index, 1);
10961097
}
10971098
}
10981099
this.setProperties({ values: copyValues }, true);

controls/calendars/src/datepicker/datepicker.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,12 @@ export class DatePicker extends Calendar implements IInput {
891891
module: "MaskedDateTime"
892892
});
893893
}
894+
if (closest(this.element, 'form')) {
895+
let element: Element = this.element;
896+
let keyupEvent: KeyboardEvent = document.createEvent('KeyboardEvent');
897+
keyupEvent.initEvent('keyup', false, true);
898+
element.dispatchEvent(keyupEvent);
899+
}
894900
}
895901

896902

0 commit comments

Comments
 (0)