Skip to content

Commit 2c1c840

Browse files
author
pipeline
committed
v18.4.35 is released
1 parent e3253db commit 2c1c840

File tree

279 files changed

+3557
-1428
lines changed

Some content is hidden

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

279 files changed

+3557
-1428
lines changed

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-
## 18.4.34 (2021-01-12)
5+
## 18.4.35 (2021-01-19)
66

77
### CheckBox
88

controls/calendars/dist/ej2-calendars.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/ej2-calendars.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es2015.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,11 @@ let CalendarBase = class CalendarBase extends Component {
675675
let weekEle = this.createElement('td', { className: CELL });
676676
let weekAnchor = this.createElement('span');
677677
if (day % 7 === 0 && this.weekNumber) {
678-
let lastDate = new Date(localDate.getFullYear(), localDate.getMonth(), (localDate.getDate() + 6));
679-
weekAnchor.textContent = '' + this.getWeek(lastDate);
678+
let numberOfDays;
679+
// 6 days are added to get Last day of the week and 3 days are added to get middle day of the week.
680+
numberOfDays = this.weekRule === 'FirstDay' ? 6 : (this.weekRule === 'FirstFourDayWeek' ? 3 : 0);
681+
let finalDate = new Date(localDate.getFullYear(), localDate.getMonth(), (localDate.getDate() + numberOfDays));
682+
weekAnchor.textContent = '' + this.getWeek(finalDate);
680683
weekEle.appendChild(weekAnchor);
681684
addClass([weekEle], '' + WEEKNUMBER);
682685
tdEles.push(weekEle);
@@ -1201,6 +1204,7 @@ let CalendarBase = class CalendarBase extends Component {
12011204
case 'depth':
12021205
case 'weekNumber':
12031206
case 'firstDayOfWeek':
1207+
case 'weekRule':
12041208
this.checkView();
12051209
this.createContentHeader();
12061210
this.createContentBody();
@@ -1887,6 +1891,9 @@ __decorate([
18871891
__decorate([
18881892
Property(false)
18891893
], CalendarBase.prototype, "weekNumber", void 0);
1894+
__decorate([
1895+
Property('FirstDay')
1896+
], CalendarBase.prototype, "weekRule", void 0);
18901897
__decorate([
18911898
Property(true)
18921899
], CalendarBase.prototype, "showTodayButton", void 0);

controls/calendars/dist/es6/ej2-calendars.es2015.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es5.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,11 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
692692
var weekEle = this.createElement('td', { className: CELL });
693693
var weekAnchor = this.createElement('span');
694694
if (day % 7 === 0 && this.weekNumber) {
695-
var lastDate = new Date(localDate.getFullYear(), localDate.getMonth(), (localDate.getDate() + 6));
696-
weekAnchor.textContent = '' + this.getWeek(lastDate);
695+
var numberOfDays = void 0;
696+
// 6 days are added to get Last day of the week and 3 days are added to get middle day of the week.
697+
numberOfDays = this.weekRule === 'FirstDay' ? 6 : (this.weekRule === 'FirstFourDayWeek' ? 3 : 0);
698+
var finalDate = new Date(localDate.getFullYear(), localDate.getMonth(), (localDate.getDate() + numberOfDays));
699+
weekAnchor.textContent = '' + this.getWeek(finalDate);
697700
weekEle.appendChild(weekAnchor);
698701
addClass([weekEle], '' + WEEKNUMBER);
699702
tdEles.push(weekEle);
@@ -1219,6 +1222,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
12191222
case 'depth':
12201223
case 'weekNumber':
12211224
case 'firstDayOfWeek':
1225+
case 'weekRule':
12221226
this.checkView();
12231227
this.createContentHeader();
12241228
this.createContentBody();
@@ -1904,6 +1908,9 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
19041908
__decorate([
19051909
Property(false)
19061910
], CalendarBase.prototype, "weekNumber", void 0);
1911+
__decorate([
1912+
Property('FirstDay')
1913+
], CalendarBase.prototype, "weekRule", void 0);
19071914
__decorate([
19081915
Property(true)
19091916
], CalendarBase.prototype, "showTodayButton", void 0);

controls/calendars/dist/es6/ej2-calendars.es5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/global/blazor/calendar.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,11 @@ var CalendarBase = /** @class */ (function (_super) {
690690
var weekEle = this.createElement('td', { className: CELL });
691691
var weekAnchor = this.createElement('span');
692692
if (day % 7 === 0 && this.weekNumber) {
693-
var lastDate = new Date(localDate.getFullYear(), localDate.getMonth(), (localDate.getDate() + 6));
694-
weekAnchor.textContent = '' + this.getWeek(lastDate);
693+
var numberOfDays = void 0;
694+
// 6 days are added to get Last day of the week and 3 days are added to get middle day of the week.
695+
numberOfDays = this.weekRule === 'FirstDay' ? 6 : (this.weekRule === 'FirstFourDayWeek' ? 3 : 0);
696+
var finalDate = new Date(localDate.getFullYear(), localDate.getMonth(), (localDate.getDate() + numberOfDays));
697+
weekAnchor.textContent = '' + this.getWeek(finalDate);
695698
weekEle.appendChild(weekAnchor);
696699
sf.base.addClass([weekEle], '' + WEEKNUMBER);
697700
tdEles.push(weekEle);
@@ -1217,6 +1220,7 @@ var CalendarBase = /** @class */ (function (_super) {
12171220
case 'depth':
12181221
case 'weekNumber':
12191222
case 'firstDayOfWeek':
1223+
case 'weekRule':
12201224
this.checkView();
12211225
this.createContentHeader();
12221226
this.createContentBody();
@@ -1902,6 +1906,9 @@ var CalendarBase = /** @class */ (function (_super) {
19021906
__decorate([
19031907
sf.base.Property(false)
19041908
], CalendarBase.prototype, "weekNumber", void 0);
1909+
__decorate([
1910+
sf.base.Property('FirstDay')
1911+
], CalendarBase.prototype, "weekRule", void 0);
19051912
__decorate([
19061913
sf.base.Property(true)
19071914
], CalendarBase.prototype, "showTodayButton", void 0);

controls/calendars/dist/global/ej2-calendars.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/global/ej2-calendars.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)