Skip to content

Commit 326a5b3

Browse files
author
pipeline
committed
v17.3.29 is released
1 parent 3d14877 commit 326a5b3

File tree

912 files changed

+8991
-2569
lines changed

Some content is hidden

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

912 files changed

+8991
-2569
lines changed

controls/barcodegenerator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-barcode-generator",
3-
"version": "17.3.19",
3+
"version": "17.3.27",
44
"description": "Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/calendars/CHANGELOG.md

+31-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22

33
## [Unreleased]
44

5+
## 17.3.27 (2019-11-12)
6+
7+
### DateTimePicker
8+
9+
#### New Features
10+
11+
- `#147796` - Now, you can get the cleared event when clear the DateTimePicker's value using clear button.
12+
13+
### DatePicker
14+
15+
#### New Features
16+
17+
- `#147796` - Now, you can get the cleared event when clear the DatePicker's value using clear button.
18+
19+
### TimePicker
20+
21+
#### New Features
22+
23+
- `#147796` - Now, you can get the cleared event when clear the TimePicker's value using clear button.
24+
25+
### DateRangePicker
26+
27+
#### New Features
28+
29+
- `#147796` - Now, you can get the cleared event when clear the DateRangePicker's value using clear button.
30+
531
## 17.3.26 (2019-11-05)
632

733
### DateTimePicker
@@ -524,27 +550,27 @@
524550

525551
#### Bug Fixes
526552

527-
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
553+
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
528554

529555
- Angular form rest for the invalid value in the textbox issue has been fixed.
530556

531557
### DatePicker
532558

533559
#### Bug Fixes
534560

535-
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
561+
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
536562

537563
### DateTimePicker
538564

539565
#### Bug Fixes
540566

541-
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
567+
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
542568

543569
### Calendar
544570

545571
#### Bug Fixes
546572

547-
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
573+
- Now the `firstDayOfWeek` property will be updated based on the culture specific. Also, to get the firstday related information, then it is mandatory to load the `weekData.json` file from the `CLDR` data.
548574

549575
## 16.2.46 (2018-07-30)
550576

@@ -973,4 +999,4 @@ TimePicker component is the pre-filled dropdown list with the time values 12/24
973999

9741000
- **StrictMode** - Allows to entering the only valid time in a textbox.
9751001

976-
- **Accessibility** - Provided with built-in accessibility support which helps to access all the TimePicker component features through the keyboard, screen readers, or other assistive technology devices.
1002+
- **Accessibility** - Provided with built-in accessibility support which helps to access all the TimePicker component features through the keyboard, screen readers, or other assistive technology devices.

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

+1-1
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

+1-1
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

+42-2
Original file line numberDiff line numberDiff line change
@@ -2810,6 +2810,7 @@ const ICONS = 'e-icons';
28102810
const OPENDURATION = 300;
28112811
const OFFSETVALUE = 4;
28122812
const SELECTED$2 = 'e-selected';
2813+
const FOCUSEDDATE$2 = 'e-focused-date';
28132814
const NONEDIT = 'e-non-edit';
28142815
const containerAttr = ['title', 'class', 'style'];
28152816
/**
@@ -3215,6 +3216,10 @@ let DatePicker = class DatePicker extends Calendar {
32153216
clear(event) {
32163217
this.setProperties({ value: null }, true);
32173218
Input.setValue('', this.inputElement, this.floatLabelType, this.showClearButton);
3219+
let clearedArgs = {
3220+
event: event
3221+
};
3222+
this.trigger('cleared', clearedArgs);
32183223
this.invalidValueString = '';
32193224
this.updateInput();
32203225
this.popupUpdate();
@@ -3784,6 +3789,12 @@ let DatePicker = class DatePicker extends Calendar {
37843789
this.popupObj.destroy();
37853790
this.popupWrapper = this.popupObj = null;
37863791
}
3792+
if (!isNullOrUndefined(this.inputElement) && this.inputElement.value === '') {
3793+
if (!isNullOrUndefined(this.tableBodyElement) && this.tableBodyElement.querySelectorAll('td.e-selected').length > 0) {
3794+
addClass([this.tableBodyElement.querySelector('td.e-selected')], FOCUSEDDATE$2);
3795+
removeClass(this.tableBodyElement.querySelectorAll('td.e-selected'), SELECTED$2);
3796+
}
3797+
}
37873798
EventHandler.add(document, 'mousedown touchstart', this.documentHandler, this);
37883799
});
37893800
}
@@ -4382,6 +4393,9 @@ __decorate$1([
43824393
__decorate$1([
43834394
Event()
43844395
], DatePicker.prototype, "open", void 0);
4396+
__decorate$1([
4397+
Event()
4398+
], DatePicker.prototype, "cleared", void 0);
43854399
__decorate$1([
43864400
Event()
43874401
], DatePicker.prototype, "close", void 0);
@@ -4906,6 +4920,12 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
49064920
this.valueType = this.value;
49074921
e.preventDefault();
49084922
this.clear();
4923+
let clearedArgs = {
4924+
event: e
4925+
};
4926+
this.setProperties({ endDate: this.checkDateValue(this.endValue) }, true);
4927+
this.setProperties({ startDate: this.checkDateValue(this.startValue) }, true);
4928+
this.trigger('cleared', clearedArgs);
49094929
this.changeTrigger(e);
49104930
this.clearRange();
49114931
this.hide(e);
@@ -7556,8 +7576,8 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
75567576
let target = e.target;
75577577
if (!this.inputWrapper.container.contains(target) ||
75587578
(!isNullOrUndefined(this.popupObj) && !closest(target, this.popupWrapper.id))) {
7559-
if (e.type !== 'touchstart' && (e.type === 'mousedown') ||
7560-
this.closeEventArgs && !this.closeEventArgs.cancel) {
7579+
if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
7580+
this.closeEventArgs && !this.closeEventArgs.cancel)) {
75617581
e.preventDefault();
75627582
}
75637583
}
@@ -8543,6 +8563,9 @@ __decorate$2([
85438563
__decorate$2([
85448564
Event()
85458565
], DateRangePicker.prototype, "change", void 0);
8566+
__decorate$2([
8567+
Event()
8568+
], DateRangePicker.prototype, "cleared", void 0);
85468569
__decorate$2([
85478570
Event()
85488571
], DateRangePicker.prototype, "navigated", void 0);
@@ -9757,11 +9780,21 @@ let TimePicker = class TimePicker extends Component {
97579780
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.clearHandler, this);
97589781
}
97599782
}
9783+
raiseClearedEvent(e) {
9784+
let clearedArgs = {
9785+
event: e
9786+
};
9787+
this.trigger('cleared', clearedArgs);
9788+
}
97609789
clearHandler(e) {
97619790
e.preventDefault();
97629791
if (!isNullOrUndefined(this.value)) {
97639792
this.clear(e);
97649793
}
9794+
else {
9795+
this.resetState();
9796+
this.raiseClearedEvent(e);
9797+
}
97659798
if (this.popupWrapper) {
97669799
this.popupWrapper.scrollTop = 0;
97679800
}
@@ -9770,6 +9803,7 @@ let TimePicker = class TimePicker extends Component {
97709803
this.setProperties({ value: null }, true);
97719804
this.initValue = null;
97729805
this.resetState();
9806+
this.raiseClearedEvent(event);
97739807
this.changeEvent(event);
97749808
}
97759809
setZIndex() {
@@ -10767,6 +10801,9 @@ __decorate$3([
1076710801
__decorate$3([
1076810802
Event()
1076910803
], TimePicker.prototype, "close", void 0);
10804+
__decorate$3([
10805+
Event()
10806+
], TimePicker.prototype, "cleared", void 0);
1077010807
__decorate$3([
1077110808
Event()
1077210809
], TimePicker.prototype, "blur", void 0);
@@ -12175,6 +12212,9 @@ __decorate$4([
1217512212
__decorate$4([
1217612213
Event()
1217712214
], DateTimePicker.prototype, "close", void 0);
12215+
__decorate$4([
12216+
Event()
12217+
], DateTimePicker.prototype, "cleared", void 0);
1217812218
__decorate$4([
1217912219
Event()
1218012220
], DateTimePicker.prototype, "blur", void 0);

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

+1-1
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

+42-2
Original file line numberDiff line numberDiff line change
@@ -2847,6 +2847,7 @@ var ICONS = 'e-icons';
28472847
var OPENDURATION = 300;
28482848
var OFFSETVALUE = 4;
28492849
var SELECTED$2 = 'e-selected';
2850+
var FOCUSEDDATE$2 = 'e-focused-date';
28502851
var NONEDIT = 'e-non-edit';
28512852
var containerAttr = ['title', 'class', 'style'];
28522853
/**
@@ -3254,6 +3255,10 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
32543255
DatePicker.prototype.clear = function (event) {
32553256
this.setProperties({ value: null }, true);
32563257
Input.setValue('', this.inputElement, this.floatLabelType, this.showClearButton);
3258+
var clearedArgs = {
3259+
event: event
3260+
};
3261+
this.trigger('cleared', clearedArgs);
32573262
this.invalidValueString = '';
32583263
this.updateInput();
32593264
this.popupUpdate();
@@ -3827,6 +3832,12 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
38273832
_this.popupObj.destroy();
38283833
_this.popupWrapper = _this.popupObj = null;
38293834
}
3835+
if (!isNullOrUndefined(_this.inputElement) && _this.inputElement.value === '') {
3836+
if (!isNullOrUndefined(_this.tableBodyElement) && _this.tableBodyElement.querySelectorAll('td.e-selected').length > 0) {
3837+
addClass([_this.tableBodyElement.querySelector('td.e-selected')], FOCUSEDDATE$2);
3838+
removeClass(_this.tableBodyElement.querySelectorAll('td.e-selected'), SELECTED$2);
3839+
}
3840+
}
38303841
EventHandler.add(document, 'mousedown touchstart', _this.documentHandler, _this);
38313842
});
38323843
}
@@ -4427,6 +4438,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
44274438
__decorate$1([
44284439
Event()
44294440
], DatePicker.prototype, "open", void 0);
4441+
__decorate$1([
4442+
Event()
4443+
], DatePicker.prototype, "cleared", void 0);
44304444
__decorate$1([
44314445
Event()
44324446
], DatePicker.prototype, "close", void 0);
@@ -4977,6 +4991,12 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
49774991
this.valueType = this.value;
49784992
e.preventDefault();
49794993
this.clear();
4994+
var clearedArgs = {
4995+
event: e
4996+
};
4997+
this.setProperties({ endDate: this.checkDateValue(this.endValue) }, true);
4998+
this.setProperties({ startDate: this.checkDateValue(this.startValue) }, true);
4999+
this.trigger('cleared', clearedArgs);
49805000
this.changeTrigger(e);
49815001
this.clearRange();
49825002
this.hide(e);
@@ -7643,8 +7663,8 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
76437663
var target = e.target;
76447664
if (!this.inputWrapper.container.contains(target) ||
76457665
(!isNullOrUndefined(this.popupObj) && !closest(target, this.popupWrapper.id))) {
7646-
if (e.type !== 'touchstart' && (e.type === 'mousedown') ||
7647-
this.closeEventArgs && !this.closeEventArgs.cancel) {
7666+
if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
7667+
this.closeEventArgs && !this.closeEventArgs.cancel)) {
76487668
e.preventDefault();
76497669
}
76507670
}
@@ -8632,6 +8652,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
86328652
__decorate$2([
86338653
Event()
86348654
], DateRangePicker.prototype, "change", void 0);
8655+
__decorate$2([
8656+
Event()
8657+
], DateRangePicker.prototype, "cleared", void 0);
86358658
__decorate$2([
86368659
Event()
86378660
], DateRangePicker.prototype, "navigated", void 0);
@@ -9867,11 +9890,21 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
98679890
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.clearHandler, this);
98689891
}
98699892
};
9893+
TimePicker.prototype.raiseClearedEvent = function (e) {
9894+
var clearedArgs = {
9895+
event: e
9896+
};
9897+
this.trigger('cleared', clearedArgs);
9898+
};
98709899
TimePicker.prototype.clearHandler = function (e) {
98719900
e.preventDefault();
98729901
if (!isNullOrUndefined(this.value)) {
98739902
this.clear(e);
98749903
}
9904+
else {
9905+
this.resetState();
9906+
this.raiseClearedEvent(e);
9907+
}
98759908
if (this.popupWrapper) {
98769909
this.popupWrapper.scrollTop = 0;
98779910
}
@@ -9880,6 +9913,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
98809913
this.setProperties({ value: null }, true);
98819914
this.initValue = null;
98829915
this.resetState();
9916+
this.raiseClearedEvent(event);
98839917
this.changeEvent(event);
98849918
};
98859919
TimePicker.prototype.setZIndex = function () {
@@ -10880,6 +10914,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
1088010914
__decorate$3([
1088110915
Event()
1088210916
], TimePicker.prototype, "close", void 0);
10917+
__decorate$3([
10918+
Event()
10919+
], TimePicker.prototype, "cleared", void 0);
1088310920
__decorate$3([
1088410921
Event()
1088510922
], TimePicker.prototype, "blur", void 0);
@@ -12309,6 +12346,9 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
1230912346
__decorate$4([
1231012347
Event()
1231112348
], DateTimePicker.prototype, "close", void 0);
12349+
__decorate$4([
12350+
Event()
12351+
], DateTimePicker.prototype, "cleared", void 0);
1231212352
__decorate$4([
1231312353
Event()
1231412354
], DateTimePicker.prototype, "blur", void 0);

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

+1-1
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

+1-1
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "17.3.26",
3+
"version": "17.3.28",
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",

0 commit comments

Comments
 (0)