Skip to content

Commit 4bc9606

Browse files
author
pipeline
committed
v21.1.41 is released
1 parent 97a1d76 commit 4bc9606

File tree

2,361 files changed

+31079
-48913
lines changed

Some content is hidden

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

2,361 files changed

+31079
-48913
lines changed

controls/base/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
## [Unreleased]
44

5+
## 21.1.39 (2023-04-11)
6+
57
### Common
68

79
#### Bug Fixes
810

911
- `#I445928` - The issue with the "`formatNumber` method on internationalization" has been resolved.
10-
- `#I439133` - The issue with the "Detection of Microsoft Surface Pro device" has been resolved.
1112

1213
## 21.1.38 (2023-04-04)
1314

controls/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-base",
3-
"version": "21.1.38",
3+
"version": "21.1.39",
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/browser.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,8 @@ export class Browser {
159159

160160
private static getValue(key: string, regX: RegExp): Object {
161161
const browserDetails: {} = typeof window !== 'undefined' ? window.browserDetails : {};
162-
const isSurfaceDevice: boolean = typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Windows') > -1 && screen && screen.width < 1360;
163-
if (typeof navigator !== 'undefined' && (navigator.platform === 'MacIntel' || isSurfaceDevice) && navigator.maxTouchPoints > 1 && Browser.isTouch === true) {
164-
browserDetails['isIos'] = navigator.platform === 'MacIntel';
162+
if (typeof navigator !== 'undefined' && navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 && Browser.isTouch === true) {
163+
browserDetails['isIos'] = true;
165164
browserDetails['isDevice'] = true;
166165
browserDetails['isTouch'] = true;
167166
browserDetails['isPointer'] = true;

controls/base/themestudio/styles/dropdowns/multi-select/icons/_material-dark.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
margin-top: -38px;
3131
right: 18px;
3232
top: 100%;
33-
width: 16px;
33+
width: 32px;
3434
}
3535
}
3636

@@ -40,20 +40,20 @@
4040
margin-top: -35px;
4141
right: 18px;
4242
top: 100%;
43-
width: 16px;
43+
width: 32px;
4444
}
4545
}
4646

4747
.e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
4848
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
4949
@if $ddl-multiselect-skin-name == 'material' {
50-
right: 52px;
50+
right: 30px;
5151
}
5252
}
5353

5454
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
5555
@if $ddl-multiselect-skin-name == 'material' {
56-
right: 52px;
56+
right: 30px;
5757
}
5858
}
5959

controls/base/themestudio/styles/dropdowns/multi-select/icons/_material.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
margin-top: -38px;
3131
right: 18px;
3232
top: 100%;
33-
width: 16px;
33+
width: 32px;
3434
}
3535
}
3636

@@ -40,20 +40,20 @@
4040
margin-top: -35px;
4141
right: 18px;
4242
top: 100%;
43-
width: 16px;
43+
width: 32px;
4444
}
4545
}
4646

4747
.e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
4848
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
4949
@if $ddl-multiselect-skin-name == 'material' {
50-
right: 52px;
50+
right: 30px;
5151
}
5252
}
5353

5454
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
5555
@if $ddl-multiselect-skin-name == 'material' {
56-
right: 52px;
56+
right: 30px;
5757
}
5858
}
5959

controls/base/themestudio/styles/lists/list-view/_theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
font-size: $listview-header-font-size;
1212
}
1313

14-
& .e-icons:not(.e-primary .e-icon-btn) {
14+
& .e-icons:not(.e-primary .e-btn-icon) {
1515
color: $listview-icon-color;
1616

1717
@if ($skin-name == 'tailwind') {

controls/base/themestudio/styles/pivotview/pivotfieldlist/_theme.scss

+2-9
Original file line numberDiff line numberDiff line change
@@ -1090,9 +1090,6 @@
10901090
background-color: $field-list-mobile-header-color;
10911091
color: $field-list-mobile-header-font-color;
10921092
font-size: 14px;
1093-
height: 48px;
1094-
padding-bottom: 9px;
1095-
padding-top: 9px;
10961093
@if ($skin-name == 'tailwind') {
10971094
padding-left: 16px;
10981095
padding-right: 16px;
@@ -1114,19 +1111,15 @@
11141111

11151112
.e-title-mobile-header {
11161113
display: flex;
1117-
}
1118-
1119-
.e-title-mobile-content {
1120-
margin-top: $field-list-back-margin;
1114+
align-items: center;
11211115
}
11221116

11231117
.e-field-list-back-icon {
11241118
color: $field-list-back-font-color;
11251119
font-size: 16px;
1126-
height: 24px;
1120+
height: auto;
11271121
margin-left: 0;
11281122
margin-right: 12px;
1129-
padding-top: 7px;
11301123
text-align: center;
11311124
width: 24px;
11321125
}

controls/buttons/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
## 21.1.41 (2023-04-18)
6+
57
### Checkbox
68

79
#### Bug Fixes

controls/calendars/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## [Unreleased]
44

5+
## 21.1.41 (2023-04-18)
6+
7+
### DatePicker
8+
9+
#### Bug Fixes
10+
11+
- `#453318` - Issue with "Placeholder text not get displayed on initial render with strict mode true case of the datepicker component."
12+
13+
## 21.1.38 (2023-04-04)
14+
515
### DatePicker
616

717
#### Bug Fixes

controls/calendars/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-calendars",
3-
"version": "18.30.15",
3+
"version": "21.1.38",
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/spec/daterangepicker/daterangepicker.spec.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -9572,11 +9572,21 @@ describe('DateRangePicker', () => {
95729572
document.body.innerHTML = '';
95739573
});
95749574
it('Browser hangs when difference between start and end date value is high', function () {
9575+
let startWeekDay: Date;
9576+
let endWeekDay: Date;
95759577
daterangepicker = new DateRangePicker({
95769578
renderDayCell: function (args: any): void {
95779579
if (args.date.getDay() === 0 || args.date.getDay() === 6) {
95789580
args.isDisabled = true;
95799581
}
9582+
else
9583+
{
9584+
if(!startWeekDay && args.date.getMonth()== new Date().getMonth())
9585+
{
9586+
startWeekDay = args.date;
9587+
}
9588+
endWeekDay = args.date;
9589+
}
95809590
}
95819591
});
95829592
daterangepicker.appendTo('#date');
@@ -9588,8 +9598,8 @@ describe('DateRangePicker', () => {
95889598
tdElement[tdElement.length-1].dispatchEvent(clickEvent);
95899599
(<HTMLElement>document.getElementsByClassName('e-apply')[0]).click();
95909600
let today = new Date();
9591-
expect(+daterangepicker.startDate).toBe(+new Date(today.getFullYear(), today.getMonth(), 1));
9592-
expect(+daterangepicker.endDate).toBe(+new Date(today.getFullYear(), today.getMonth() + 1, 0));
9601+
expect(+daterangepicker.startDate).toBe(+startWeekDay);
9602+
expect(+daterangepicker.endDate).toBe(+endWeekDay);
95939603
});
95949604
});
95959605
});

controls/calendars/src/calendar/calendar.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
11211121
addClass([tdEle], SELECTED);
11221122
}
11231123
this.updateFocus(otherMnthBool, disabledCls, localDate, tdEle, currentDate);
1124-
if (date.getFullYear() === todayDate.getFullYear() && date.getMonth() === todayDate.getMonth()
1124+
if (!isNullOrUndefined(date) && date.getFullYear() === todayDate.getFullYear() && date.getMonth() === todayDate.getMonth()
11251125
&& date.getDate() === todayDate.getDate()) {
11261126
addClass([tdEle], TODAY);
11271127
}
@@ -1249,7 +1249,10 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
12491249
const type: string = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
12501250
const dateFormatOptions: object = { skeleton: 'full', type: 'dateTime', calendar: type };
12511251
const date: Date = this.globalize.parseDate(this.globalize.formatDate(localDate, dateFormatOptions), dateFormatOptions);
1252-
const value: number = date.valueOf();
1252+
let value: number ;
1253+
if(!isNullOrUndefined(date)){
1254+
value = date.valueOf();
1255+
}
12531256
const attrs: Object = {
12541257
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false'}
12551258
};

controls/calendars/src/datepicker/datepicker.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,13 @@ export class DatePicker extends Calendar implements IInput {
515515
this.createInput();
516516
this.updateHtmlAttributeToWrapper();
517517
this.setAllowEdit();
518-
this.updateInput(true);
519518
if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType === 'Always' || !this.floatLabelType || !this.placeholder)){
519+
this.updateInput(true);
520520
this.updateInputValue(this.maskedDateValue);
521521
}
522+
else if (!this.enableMask) {
523+
this.updateInput(true);
524+
}
522525
this.previousElementValue = this.inputElement.value;
523526
this.previousDate = !isNullOrUndefined(this.value) ? new Date(+this.value) : null;
524527
this.inputElement.setAttribute('value', this.inputElement.value);

controls/calendars/src/datetimepicker/datetimepicker.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,12 @@ export class DateTimePicker extends DatePicker {
17761776
this.checkInvalidValue(newProp.value);
17771777
newProp.value = this.value;
17781778
newProp.value = this.validateValue(newProp.value);
1779-
Input.setValue(this.getFormattedValue(newProp.value), this.inputElement, this.floatLabelType, this.showClearButton);
1779+
if (this.enableMask){
1780+
Input.setValue(this.maskedDateValue, this.inputElement, this.floatLabelType, this.showClearButton);
1781+
}
1782+
else {
1783+
Input.setValue(this.getFormattedValue(newProp.value), this.inputElement, this.floatLabelType, this.showClearButton);
1784+
}
17801785
this.valueWithMinutes = newProp.value;
17811786
this.setProperties({ value: newProp.value }, true);
17821787
if (this.popupObj) {

controls/calendars/src/timepicker/timepicker.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2744,7 +2744,7 @@ export class TimePicker extends Component<HTMLElement> implements IInput {
27442744
this.invalidValueString = null;
27452745
this.checkInvalidValue(newProp.value);
27462746
newProp.value = this.value;
2747-
if (!this.invalidValueString) {
2747+
if (!this.invalidValueString && !this.enableMask) {
27482748
if (typeof newProp.value === 'string') {
27492749
this.setProperties({ value: this.checkDateValue(new Date(newProp.value)) }, true);
27502750
newProp.value = this.value;
@@ -2755,6 +2755,9 @@ export class TimePicker extends Component<HTMLElement> implements IInput {
27552755
}
27562756
this.initValue = newProp.value;
27572757
newProp.value = this.compareFormatChange(this.checkValue(newProp.value));
2758+
} else if (this.enableMask) {
2759+
this.updateInputValue(this.maskedDateValue);
2760+
this.checkErrorState(this.maskedDateValue);
27582761
} else {
27592762
this.updateInputValue(this.invalidValueString);
27602763
this.checkErrorState(this.invalidValueString);

controls/calendars/themestudio/styles/dropdowns/multi-select/icons/_material-dark.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
margin-top: -38px;
3131
right: 18px;
3232
top: 100%;
33-
width: 16px;
33+
width: 32px;
3434
}
3535
}
3636

@@ -40,20 +40,20 @@
4040
margin-top: -35px;
4141
right: 18px;
4242
top: 100%;
43-
width: 16px;
43+
width: 32px;
4444
}
4545
}
4646

4747
.e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
4848
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
4949
@if $ddl-multiselect-skin-name == 'material' {
50-
right: 52px;
50+
right: 30px;
5151
}
5252
}
5353

5454
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
5555
@if $ddl-multiselect-skin-name == 'material' {
56-
right: 52px;
56+
right: 30px;
5757
}
5858
}
5959

controls/calendars/themestudio/styles/dropdowns/multi-select/icons/_material.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
margin-top: -38px;
3131
right: 18px;
3232
top: 100%;
33-
width: 16px;
33+
width: 32px;
3434
}
3535
}
3636

@@ -40,20 +40,20 @@
4040
margin-top: -35px;
4141
right: 18px;
4242
top: 100%;
43-
width: 16px;
43+
width: 32px;
4444
}
4545
}
4646

4747
.e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
4848
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
4949
@if $ddl-multiselect-skin-name == 'material' {
50-
right: 52px;
50+
right: 30px;
5151
}
5252
}
5353

5454
.e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
5555
@if $ddl-multiselect-skin-name == 'material' {
56-
right: 52px;
56+
right: 30px;
5757
}
5858
}
5959

controls/calendars/themestudio/styles/gantt/gantt/_layout.scss

-8
Original file line numberDiff line numberDiff line change
@@ -1320,14 +1320,6 @@
13201320
outline-offset: 2px;
13211321
}
13221322
}
1323-
.e-dialog.e-filter-popup {
1324-
.e-footer-content {
1325-
1326-
@if ($skin-name =='FluentUI') {
1327-
padding-top: 0;
1328-
}
1329-
}
1330-
}
13311323
}
13321324

13331325
.e-gantt-dialog .e-tab .e-tab-header {

controls/calendars/themestudio/styles/grids/grid/_layout.scss

+3-6
Original file line numberDiff line numberDiff line change
@@ -3602,11 +3602,6 @@
36023602
}
36033603

36043604
&.sf-grid {
3605-
3606-
.e-table {
3607-
border-spacing: .25px;
3608-
}
3609-
36103605
span.e-ungroupbutton.e-icons {
36113606
margin-left: $grid-group-ungroupicon-margin-left;
36123607
}
@@ -3791,7 +3786,9 @@
37913786
}
37923787

37933788
#{&}.e-grid-min-height {
3794-
.e-rowcell {
3789+
.e-rowcell,
3790+
.e-icon-grightarrow,
3791+
.e-icon-gdownarrow {
37953792
line-height: 0;
37963793
padding-bottom: 0;
37973794
padding-top: 0;

0 commit comments

Comments
 (0)