Skip to content

Commit 3714112

Browse files
author
pipeline
committed
v16.4.55 is released
1 parent 9b9a7b2 commit 3714112

File tree

217 files changed

+4278
-2852
lines changed

Some content is hidden

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

217 files changed

+4278
-2852
lines changed

controls/base/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-
## 16.4.54 (2019-02-19)
5+
## 16.4.55 (2019-02-27)
66

77
### Common
88

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-
## 16.4.54 (2019-02-19)
5+
## 16.4.53 (2019-02-13)
66

77
### Button
88

controls/buttons/dist/ej2-buttons.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/buttons/dist/ej2-buttons.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/buttons/dist/es6/ej2-buttons.es2015.js

Lines changed: 8 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.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/buttons/dist/es6/ej2-buttons.es5.js

Lines changed: 8 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.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/buttons/dist/global/ej2-buttons.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/buttons/dist/global/ej2-buttons.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/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": "16.4.52",
3+
"version": "16.4.53",
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/spec/check-box.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,11 @@ describe('CheckBox', () => {
307307
it('Keyboard Event', () => {
308308
checkbox = new CheckBox({}, '#checkbox');
309309
element.parentElement.parentElement.focus();
310-
checkbox.keyDownHandler();
311310
checkbox.focusHandler();
311+
checkbox.keyUpHandler();
312312
expect(element.parentElement.parentElement.classList.contains('e-focus')).toEqual(true);
313-
checkbox.mouseDownHandler();
314-
checkbox.clickHandler();
315313
checkbox.focusHandler();
314+
checkbox.clickHandler();
316315
expect(element.parentElement.parentElement.classList.contains('e-focus')).toEqual(false);
317316
});
318317

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

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const WRAPPER: string = 'e-checkbox-wrapper';
3131
@NotifyPropertyChanges
3232
export class CheckBox extends Component<HTMLInputElement> implements INotifyPropertyChanged {
3333
private tagName: string;
34-
private isKeyPressed: boolean = false;
34+
private isFocused: boolean = false;
3535
private keyboardModule: KeyboardEvents;
3636
private formElement: HTMLElement;
3737
private initialCheckedValue: boolean;
@@ -205,9 +205,7 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
205205
}
206206

207207
private focusHandler(): void {
208-
if (this.isKeyPressed) {
209-
this.getWrapper().classList.add('e-focus');
210-
}
208+
this.isFocused = true;
211209
}
212210

213211
private focusOutHandler(): void {
@@ -288,19 +286,17 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
288286
}
289287
}
290288

291-
private keyDownHandler(): void {
292-
this.isKeyPressed = true;
289+
private keyUpHandler(): void {
290+
if (this.isFocused) {
291+
this.getWrapper().classList.add('e-focus');
292+
}
293293
}
294294

295295
private labelMouseHandler(e: MouseEvent): void {
296296
let rippleSpan: Element = this.getWrapper().getElementsByClassName(RIPPLE)[0];
297297
rippleMouseHandler(e, rippleSpan);
298298
}
299299

300-
private mouseDownHandler(): void {
301-
this.isKeyPressed = false;
302-
}
303-
304300
/**
305301
* Called internally if any of the property value changes.
306302
* @private
@@ -435,8 +431,7 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
435431
protected unWireEvents(): void {
436432
let wrapper: Element = this.getWrapper();
437433
EventHandler.remove(this.element, 'click', this.clickHandler);
438-
EventHandler.remove(document, 'keydown', this.keyDownHandler);
439-
EventHandler.remove(wrapper, 'mousedown', this.mouseDownHandler);
434+
EventHandler.remove(this.element, 'keyup', this.keyUpHandler);
440435
EventHandler.remove(this.element, 'focus', this.focusHandler);
441436
EventHandler.remove(this.element, 'focusout', this.focusOutHandler);
442437
let label: Element = wrapper.getElementsByTagName('label')[0];
@@ -454,8 +449,7 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
454449
protected wireEvents(): void {
455450
let wrapper: Element = this.getWrapper();
456451
EventHandler.add(this.element, 'click', this.clickHandler, this);
457-
EventHandler.add(document, 'keydown', this.keyDownHandler, this);
458-
EventHandler.add(wrapper, 'mousedown', this.mouseDownHandler, this);
452+
EventHandler.add(this.element, 'keyup', this.keyUpHandler, this);
459453
EventHandler.add(this.element, 'focus', this.focusHandler, this);
460454
EventHandler.add(this.element, 'focusout', this.focusOutHandler, this);
461455
let label: Element = wrapper.getElementsByTagName('label')[0];

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+
## 16.4.55 (2019-02-27)
6+
7+
### DatePicker
8+
9+
#### Bug Fixes
10+
11+
- Resolved the issue with today button text not updated when dynamically change the localization of the page.
12+
513
## 16.4.54 (2019-02-19)
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: 3 additions & 3 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: 3 additions & 3 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.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": "16.4.53",
3+
"version": "16.4.54",
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/datepicker/datepicker.spec.ts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ function loadCultureFiles(name: string, base?: boolean): void {
5151
}
5252
L10n.load({
5353
'en': {
54-
'datepicker': { placeholder: 'Enter Date' }
54+
'datepicker': { placeholder: 'Enter Date', today: "Today" }
5555
},
5656
'de': {
57-
'datepicker': { placeholder: 'Datum eingeben' }
57+
'datepicker': { placeholder: 'Datum eingeben', today: "heute" }
5858
},
5959
'zh': {
60-
'datepicker': { placeholder: '输入日期' }
60+
'datepicker': { placeholder: '输入日期', today: "今天" }
6161
},
6262
'vi': {
6363
'datepicker': { placeholder: 'Nhập ngày' }
@@ -2315,6 +2315,27 @@ describe('Datepicker', () => {
23152315
expect(datepicker.tableHeadElement.querySelector('th').textContent).toBe('Mo.');
23162316
});
23172317

2318+
it('today text changing test cases based on the dynamic culture "de" test case ', () => {
2319+
datepicker = new DatePicker({
2320+
value: new Date('4/4/2017')
2321+
});
2322+
datepicker.appendTo('#date');
2323+
datepicker.locale = 'en-US';
2324+
datepicker.dataBind();
2325+
expect(datepicker.locale).toBe('en-US');
2326+
datepicker.show();
2327+
expect(datepicker.popupWrapper.getElementsByClassName('e-today')[0].textContent).toBe('Today')
2328+
datepicker.hide()
2329+
loadCultureFiles('de', true);
2330+
loadCultureFiles('de');
2331+
datepicker.locale = 'de';
2332+
datepicker.dataBind();
2333+
expect(datepicker.locale).toBe('de');
2334+
datepicker.show();
2335+
expect(datepicker.popupWrapper.getElementsByClassName('e-today')[0].textContent).toBe('heute')
2336+
datepicker.hide()
2337+
});
2338+
23182339
it('firstDayOfWeek based on the culture "ar" test case', () => {
23192340
loadCultureFiles('ar', true);
23202341
loadCultureFiles('ar');

controls/calendars/src/calendar/calendar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
473473
if (this.showTodayButton) {
474474
let minimum: Date = new Date(+this.min);
475475
let maximum: Date = new Date(+this.max);
476+
let l10nLocale: object = { today: 'Today' };
477+
this.globalize = new Internationalization(this.locale);
478+
this.l10 = new L10n(this.getModuleName(), l10nLocale, this.locale);
476479
this.todayElement = this.createElement('button');
477480
rippleEffect(this.todayElement);
478481
this.updateFooter();
@@ -689,9 +692,6 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
689692
* @private
690693
*/
691694
protected preRender(value?: Date): void {
692-
this.globalize = new Internationalization(this.locale);
693-
let l10nLocale: object = { today: 'Today' };
694-
this.l10 = new L10n(this.getModuleName(), l10nLocale, this.locale);
695695
this.navigatePreviousHandler = this.navigatePrevious.bind(this);
696696
this.navigateNextHandler = this.navigateNext.bind(this);
697697
this.navigateHandler = (e: MouseEvent): void => {

controls/charts/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-
## 16.4.54 (2019-02-19)
5+
## 16.4.55 (2019-02-27)
66

77
### Chart
88

controls/circulargauge/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## [Unreleased]
66

7-
## 16.4.54 (2019-02-19)
7+
## 16.4.55 (2019-02-27)
88

99
### CircularGauge
1010

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-
## 16.4.54 (2019-02-19)
5+
## 16.4.55 (2019-02-27)
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-
## 16.4.54 (2019-02-19)
5+
## 16.4.55 (2019-02-27)
66

77
### Diagram
88

controls/documenteditor/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-
## 16.4.54 (2019-02-19)
5+
## 16.4.55 (2019-02-27)
66

77
### Document Editor
88

0 commit comments

Comments
 (0)