Skip to content

Commit 462102b

Browse files
author
pipeline
committed
v17.1.42 is released
1 parent b51c227 commit 462102b

File tree

226 files changed

+2264
-844
lines changed

Some content is hidden

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

226 files changed

+2264
-844
lines changed

README.md

Lines changed: 62 additions & 78 deletions
Large diffs are not rendered by default.

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+
## 17.1.42 (2019-04-23)
6+
7+
### DateRangePicker
8+
9+
#### Bug Fixes
10+
11+
- #232966 - Now, you can clear daterangepicker input value using keyboard when strict mode is enabled.
12+
513
## 17.1.41 (2019-04-16)
614

715
### DatePicker

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: 4 additions & 0 deletions
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.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5101,6 +5101,10 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
51015101
this.setValue();
51025102
}
51035103
else {
5104+
if (this.inputElement.value === '') {
5105+
this.startValue = null;
5106+
this.endValue = null;
5107+
}
51045108
Input.setValue('', this.inputElement, this.floatLabelType, this.showClearButton);
51055109
this.updateInput();
51065110
}

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/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.

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": "17.1.38",
3+
"version": "17.1.41",
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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,37 @@ describe('DateRangePicker', () => {
859859
expect(+daterangepicker.startDate).toBe(+new Date('1/1/1900'));
860860
});
861861
});
862+
describe('Clear value with strict mode enabled ', () => {
863+
let daterangepicker: any;
864+
beforeEach(() => {
865+
let ele: HTMLElement = <HTMLElement>createElement('input', { id: 'date' });
866+
document.body.appendChild(ele);
867+
});
868+
afterEach(() => {
869+
if (daterangepicker) {
870+
daterangepicker.destroy();
871+
}
872+
document.body.innerHTML = '';
873+
});
874+
it('Clear input with strict mode enabled initially', () => {
875+
daterangepicker = new DateRangePicker({ startDate: new Date('05/24/2017'), endDate: new Date('08/10/2017'), strictMode: true });
876+
daterangepicker.appendTo('#date');
877+
daterangepicker.inputElement.value = '';
878+
daterangepicker.inputBlurHandler();
879+
expect(daterangepicker.inputElement.value).toBe('');
880+
});
881+
it('Clear input with strict mode enabled dynamically', () => {
882+
daterangepicker = new DateRangePicker();
883+
daterangepicker.appendTo('#date');
884+
daterangepicker.startDate = '4/3/2018';
885+
daterangepicker.endDate = '5/1/2018';
886+
daterangepicker.strictMode = true;
887+
daterangepicker.dataBind();
888+
daterangepicker.inputElement.value = '';
889+
daterangepicker.inputBlurHandler();
890+
expect(daterangepicker.inputElement.value).toBe('');
891+
});
892+
});
862893
describe('Input via attribute testing', () => {
863894
let daterangepicker: any;
864895
let ele: HTMLElement;

controls/calendars/src/calendar/calendar-model.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export interface CalendarBaseModel extends ComponentModel{
9797
* Determines whether the week number of the year is to be displayed in the calendar or not.
9898
* @default false
9999
* > For more details about weekNumber refer to
100-
* [`Calendar with week number`](../../calendar/how-to/week-number#render-the-calendar-with-week-numbers)documentation.
100+
* [`Calendar with week number`](../../calendar/how-to/render-the-calendar-with-week-numbers)documentation.
101101
*/
102102
weekNumber?: boolean;
103103

controls/calendars/src/calendar/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
201201
* Determines whether the week number of the year is to be displayed in the calendar or not.
202202
* @default false
203203
* > For more details about weekNumber refer to
204-
* [`Calendar with week number`](../../calendar/how-to/week-number#render-the-calendar-with-week-numbers)documentation.
204+
* [`Calendar with week number`](../../calendar/how-to/render-the-calendar-with-week-numbers)documentation.
205205
*/
206206
@Property(false)
207207
public weekNumber: boolean;

controls/calendars/src/datepicker/datepicker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const OFFSETVALUE: number = 4;
3333
const SELECTED: string = 'e-selected';
3434
const NONEDIT: string = 'e-non-edit';
3535
export interface FormatObject {
36+
/**
37+
* Specifies the format in which the date format will process
38+
*/
3639
skeleton?: string;
3740
}
3841

controls/calendars/src/daterangepicker/daterangepicker-model.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export interface DateRangePickerModel extends CalendarBaseModel{
197197
/**
198198
* Specifies the minimum span of days that can be allowed in date range selection.
199199
* > For more details refer to
200-
* [`Range Span`] (../../daterangepicker/range-restriction#range-span) documentation.
200+
* [`Range Span`] (../../daterangepicker/range-selection/#range-span) documentation.
201201
* @default null
202202
* @aspType int
203203
*/
@@ -206,7 +206,7 @@ export interface DateRangePickerModel extends CalendarBaseModel{
206206
/**
207207
* Specifies the maximum span of days that can be allowed in a date range selection.
208208
* > For more details refer to
209-
* [`Range Span`](../../daterangepicker/range-restriction#range-span) documentation.
209+
* [`Range Span`] (../../daterangepicker/range-selection/#range-span) documentation.
210210
* @default null
211211
* @aspType int
212212
*/
@@ -215,7 +215,7 @@ export interface DateRangePickerModel extends CalendarBaseModel{
215215
/**
216216
* Specifies the component to act as strict which allows entering only a valid date range in a DateRangePicker.
217217
* > For more details refer to
218-
* [`Strict Mode`](../../daterangepicker/range-restriction#strict-mode)documentation.
218+
* [`Strict Mode`](../../daterangepicker/range-selection#strict-mode)documentation.
219219
* @default false
220220
*/
221221
strictMode?: boolean;

controls/calendars/src/daterangepicker/daterangepicker.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ export interface RangePopupEventArgs {
145145
}
146146

147147
export interface RangeFormatObject {
148+
/**
149+
* Specifies the format in which the date format will process
150+
*/
148151
skeleton?: string;
149152
}
150153

@@ -410,7 +413,7 @@ export class DateRangePicker extends CalendarBase {
410413
/**
411414
* Specifies the minimum span of days that can be allowed in date range selection.
412415
* > For more details refer to
413-
* [`Range Span`] (../../daterangepicker/range-restriction#range-span) documentation.
416+
* [`Range Span`] (../../daterangepicker/range-selection/#range-span) documentation.
414417
* @default null
415418
* @aspType int
416419
*/
@@ -419,7 +422,7 @@ export class DateRangePicker extends CalendarBase {
419422
/**
420423
* Specifies the maximum span of days that can be allowed in a date range selection.
421424
* > For more details refer to
422-
* [`Range Span`](../../daterangepicker/range-restriction#range-span) documentation.
425+
* [`Range Span`] (../../daterangepicker/range-selection/#range-span) documentation.
423426
* @default null
424427
* @aspType int
425428
*/
@@ -428,7 +431,7 @@ export class DateRangePicker extends CalendarBase {
428431
/**
429432
* Specifies the component to act as strict which allows entering only a valid date range in a DateRangePicker.
430433
* > For more details refer to
431-
* [`Strict Mode`](../../daterangepicker/range-restriction#strict-mode)documentation.
434+
* [`Strict Mode`](../../daterangepicker/range-selection#strict-mode)documentation.
432435
* @default false
433436
*/
434437
@Property(false)
@@ -1247,6 +1250,10 @@ export class DateRangePicker extends CalendarBase {
12471250
this.endValue = null;
12481251
this.setValue();
12491252
} else {
1253+
if (this.inputElement.value === '') {
1254+
this.startValue = null;
1255+
this.endValue = null;
1256+
}
12501257
Input.setValue('', this.inputElement, this.floatLabelType, this.showClearButton);
12511258
this.updateInput();
12521259
}

controls/calendars/src/timepicker/timepicker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export interface MeridianText {
7777
}
7878

7979
export interface TimeFormatObject {
80+
/**
81+
* Specifies the format in which the date format will process
82+
*/
8083
skeleton?: string;
8184
}
8285

controls/data/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-
## 17.1.41 (2019-04-16)
5+
## 17.1.42 (2019-04-23)
66

77
### DataManager
88

controls/diagrams/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-
## 17.1.41 (2019-04-16)
5+
## 17.1.42 (2019-04-23)
66

77
### Diagram
88

controls/documenteditor/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+
## 17.1.42 (2019-04-23)
6+
7+
### Document Editor
8+
9+
#### Bug Fixes
10+
11+
- #231353 - Text search results are now navigated properly.
12+
513
## 17.1.41 (2019-04-16)
614

715
### Document Editor

controls/documenteditor/dist/ej2-documenteditor.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/documenteditor/dist/ej2-documenteditor.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.

0 commit comments

Comments
 (0)