Skip to content

Commit d79812d

Browse files
author
pipeline
committed
v17.2.36 is released
1 parent 27059a5 commit d79812d

File tree

396 files changed

+12342
-2366
lines changed

Some content is hidden

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

396 files changed

+12342
-2366
lines changed

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

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

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

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

controls/base/dist/es6/ej2-base.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/base/dist/global/ej2-base.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/base/dist/global/ej2-base.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/base/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-base",
3-
"version": "17.2.34",
3+
"version": "17.2.35",
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/template-engine.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ export function compile(templateString: string, helper?: Object): (data: Object
5656
blazorTemplates[templateId].push(data);
5757
}
5858
// tslint:disable-next-line:no-any
59-
return propName === 'rowTemplate' ? [createElement('tr', { id: blazorId })] as any :
59+
return propName === 'rowTemplate' ? [createElement('tr', { id: blazorId, className: 'e-blazor-template' })] as any :
6060
// tslint:disable-next-line:no-any
61-
[createElement('div', { id: blazorId })] as any;
61+
[createElement('div', { id: blazorId, className: 'e-blazor-template' })] as any;
62+
6263
}
6364
if (typeof result === 'string') {
6465
if (HAS_SVG.test(result)) {

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": "17.2.28",
3+
"version": "17.2.35",
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/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.2.36 (2019-07-24)
6+
7+
### DatePicker
8+
9+
#### Bug Fixes
10+
11+
- `#236828` - Resolved the `accessibility` related issue in DatePicker.
12+
513
## 17.2.35 (2019-07-17)
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: 81 additions & 35 deletions
Large diffs are not rendered by default.

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: 81 additions & 35 deletions
Large diffs are not rendered by default.

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.2.34",
3+
"version": "17.2.35",
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/calendar/calendar.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,17 @@ describe('Calendar', () => {
24102410
expect(calendar.currentView()).toBe("Decade");
24112411
expect(document.querySelector('.e-title').textContent).toBe('2010 - 2019');
24122412
});
2413+
it(' control +up arrow changed to shift+up test case ', () => {
2414+
calendar = new Calendar({ value: new Date('3/3/2017'), keyConfigs:{controlUp: 'shift+38'} });
2415+
calendar.appendTo('#calendar');
2416+
expect(document.querySelector('.e-title').textContent).toBe('March 2017');
2417+
calendar.keyActionHandle(keyEventArgs);
2418+
expect(calendar.currentView()).toBe("Year");
2419+
expect(document.querySelector('.e-title').textContent).toBe('2017');
2420+
calendar.keyActionHandle(keyEventArgs);
2421+
expect(calendar.currentView()).toBe("Decade");
2422+
expect(document.querySelector('.e-title').textContent).toBe('2010 - 2019');
2423+
});
24132424
it(' home and end button testing on year and decade view ', () => {
24142425
calendar = new Calendar({ value: new Date('3/3/2017') });
24152426
calendar.appendTo('#calendar');

controls/calendars/spec/datepicker/datepicker.spec.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,6 +2502,21 @@ describe('Datepicker', () => {
25022502
datePicker.inputKeyActionHandle(keyEventArgs);
25032503
expect(datePicker.currentView()).toBe("Month");
25042504
});
2505+
it('alt + down arrow key changed shift + down arrow test case ', () => {
2506+
datePicker = new DatePicker({
2507+
start: 'Decade',
2508+
keyConfigs: {altDownArrow: 'shift+downarrow'}
2509+
});
2510+
datePicker.appendTo('#date');
2511+
datePicker.element.focus();
2512+
keyEventArgs.action = 'altDownArrow';
2513+
datePicker.inputKeyActionHandle(keyEventArgs);
2514+
keyEventArgs.action = 'controlDown';
2515+
datePicker.inputKeyActionHandle(keyEventArgs);
2516+
expect(datePicker.currentView()).toBe("Year");
2517+
datePicker.inputKeyActionHandle(keyEventArgs);
2518+
expect(datePicker.currentView()).toBe("Month");
2519+
});
25052520
it('keyboard action with mouse click on next icon test case ', () => {
25062521
datePicker = new DatePicker({
25072522
value: new Date('2/2/2017')

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

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,97 @@ export interface CalendarBaseModel extends ComponentModel{
128128
     */
129129
enablePersistence?: boolean;
130130

131+
/**
132+
* Customizes the key actions in Calendar.
133+
* For example, when using German keyboard, the key actions can be customized using these shortcuts.
134+
* @default null
135+
* @blazorType object
136+
*
137+
* <table>
138+
* <tr>
139+
* <td colSpan=1 rowSpan=1>
140+
* Key action<br/></td><td colSpan=1 rowSpan=1>
141+
* Key<br/></td></tr>
142+
* <tr>
143+
* <td colSpan=1 rowSpan=1>
144+
* controlUp<br/></td><td colSpan=1 rowSpan=1>
145+
* ctrl+38<br/></td></tr>
146+
* <tr>
147+
* <td colSpan=1 rowSpan=1>
148+
* controlDown<br/></td><td colSpan=1 rowSpan=1>
149+
* ctrl+40<br/></td></tr>
150+
* <tr>
151+
* <td colSpan=1 rowSpan=1>
152+
* select<br/></td><td colSpan=1 rowSpan=1>
153+
* enter<br/></td></tr>
154+
* <tr>
155+
* <td colSpan=1 rowSpan=1>
156+
* home<br/></td><td colSpan=1 rowSpan=1>
157+
* home<br/></td></tr>
158+
* <tr>
159+
* <td colSpan=1 rowSpan=1>
160+
* end<br/></td><td colSpan=1 rowSpan=1>
161+
* end<br/></td></tr>
162+
* <tr>
163+
* <td colSpan=1 rowSpan=1>
164+
* pageUp<br/></td><td colSpan=1 rowSpan=1>
165+
* pageup<br/></td></tr>
166+
* <tr>
167+
* <td colSpan=1 rowSpan=1>
168+
* pageDown<br/></td><td colSpan=1 rowSpan=1>
169+
* pagedown<br/></td></tr>
170+
* <tr>
171+
* <td colSpan=1 rowSpan=1>
172+
* shiftPageUp<br/></td><td colSpan=1 rowSpan=1>
173+
* shift+pageup<br/></td></tr>
174+
* <tr>
175+
* <td colSpan=1 rowSpan=1>
176+
* shiftPageDown<br/></td><td colSpan=1 rowSpan=1>
177+
* shift+pagedown<br/></td></tr>
178+
* <tr>
179+
* <td colSpan=1 rowSpan=1>
180+
* controlHome<br/></td><td colSpan=1 rowSpan=1>
181+
* ctrl+home<br/></td></tr>
182+
* <tr>
183+
* <td colSpan=1 rowSpan=1>
184+
* controlEnd<br/></td><td colSpan=1 rowSpan=1>
185+
* ctrl+end<br/></td></tr>
186+
* <tr>
187+
* <td colSpan=1 rowSpan=1>
188+
* altUpArrow<br/></td><td colSpan=1 rowSpan=1>
189+
* alt+uparrow<br/></td></tr>
190+
* <tr>
191+
* <td colSpan=1 rowSpan=1>
192+
* spacebar<br/></td><td colSpan=1 rowSpan=1>
193+
* space<br/></td></tr>
194+
* <tr>
195+
* <td colSpan=1 rowSpan=1>
196+
* altRightArrow<br/></td><td colSpan=1 rowSpan=1>
197+
* alt+rightarrow<br/></td></tr>
198+
* <tr>
199+
* <td colSpan=1 rowSpan=1>
200+
* altLeftArrow<br/></td><td colSpan=1 rowSpan=1>
201+
* alt+leftarrow<br/></td></tr>
202+
* <tr>
203+
* <td colSpan=1 rowSpan=1>
204+
* moveDown<br/></td><td colSpan=1 rowSpan=1>
205+
* downarrow<br/></td></tr>
206+
* <tr>
207+
* <td colSpan=1 rowSpan=1>
208+
* moveUp<br/></td><td colSpan=1 rowSpan=1>
209+
* uparrow<br/></td></tr>
210+
* <tr>
211+
* <td colSpan=1 rowSpan=1>
212+
* moveLeft<br/></td><td colSpan=1 rowSpan=1>
213+
* leftarrow<br/></td></tr>
214+
* <tr>
215+
* <td colSpan=1 rowSpan=1>
216+
* moveRight<br/></td><td colSpan=1 rowSpan=1>
217+
* rightarrow<br/></td></tr>
218+
* </table>
219+
*/
220+
keyConfigs?: { [key: string]: string };
221+
131222
/**
132223
* Triggers when Calendar is created.
133224
* @event

controls/calendars/src/calendar/calendar.ts

Lines changed: 112 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
9595
protected calendarElement: HTMLElement;
9696
protected isPopupClicked: boolean = false;
9797
protected isDateSelected: boolean = true;
98-
protected keyConfigs: { [key: string]: string } = {
98+
protected defaultKeyConfigs: { [key: string]: string } = {
9999
controlUp: 'ctrl+38',
100100
controlDown: 'ctrl+40',
101101
moveDown: 'downarrow',
@@ -237,6 +237,97 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
237237
     */
238238
@Property(false)
239239
public enablePersistence: boolean;
240+
/**    
241+
* Customizes the key actions in Calendar.
242+
* For example, when using German keyboard, the key actions can be customized using these shortcuts.
243+
* @default null
244+
* @blazorType object
245+
*
246+
* <table>
247+
* <tr>
248+
* <td colSpan=1 rowSpan=1>
249+
* Key action<br/></td><td colSpan=1 rowSpan=1>
250+
* Key<br/></td></tr>
251+
* <tr>
252+
* <td colSpan=1 rowSpan=1>
253+
* controlUp<br/></td><td colSpan=1 rowSpan=1>
254+
* ctrl+38<br/></td></tr>
255+
* <tr>
256+
* <td colSpan=1 rowSpan=1>
257+
* controlDown<br/></td><td colSpan=1 rowSpan=1>
258+
* ctrl+40<br/></td></tr>
259+
* <tr>
260+
* <td colSpan=1 rowSpan=1>
261+
* select<br/></td><td colSpan=1 rowSpan=1>
262+
* enter<br/></td></tr>
263+
* <tr>
264+
* <td colSpan=1 rowSpan=1>
265+
* home<br/></td><td colSpan=1 rowSpan=1>
266+
* home<br/></td></tr>
267+
* <tr>
268+
* <td colSpan=1 rowSpan=1>
269+
* end<br/></td><td colSpan=1 rowSpan=1>
270+
* end<br/></td></tr>
271+
* <tr>
272+
* <td colSpan=1 rowSpan=1>
273+
* pageUp<br/></td><td colSpan=1 rowSpan=1>
274+
* pageup<br/></td></tr>
275+
* <tr>
276+
* <td colSpan=1 rowSpan=1>
277+
* pageDown<br/></td><td colSpan=1 rowSpan=1>
278+
* pagedown<br/></td></tr>
279+
* <tr>
280+
* <td colSpan=1 rowSpan=1>
281+
* shiftPageUp<br/></td><td colSpan=1 rowSpan=1>
282+
* shift+pageup<br/></td></tr>
283+
* <tr>
284+
* <td colSpan=1 rowSpan=1>
285+
* shiftPageDown<br/></td><td colSpan=1 rowSpan=1>
286+
* shift+pagedown<br/></td></tr>
287+
* <tr>
288+
* <td colSpan=1 rowSpan=1>
289+
* controlHome<br/></td><td colSpan=1 rowSpan=1>
290+
* ctrl+home<br/></td></tr>
291+
* <tr>
292+
* <td colSpan=1 rowSpan=1>
293+
* controlEnd<br/></td><td colSpan=1 rowSpan=1>
294+
* ctrl+end<br/></td></tr>
295+
* <tr>
296+
* <td colSpan=1 rowSpan=1>
297+
* altUpArrow<br/></td><td colSpan=1 rowSpan=1>
298+
* alt+uparrow<br/></td></tr>
299+
* <tr>
300+
* <td colSpan=1 rowSpan=1>
301+
* spacebar<br/></td><td colSpan=1 rowSpan=1>
302+
* space<br/></td></tr>
303+
* <tr>
304+
* <td colSpan=1 rowSpan=1>
305+
* altRightArrow<br/></td><td colSpan=1 rowSpan=1>
306+
* alt+rightarrow<br/></td></tr>
307+
* <tr>
308+
* <td colSpan=1 rowSpan=1>
309+
* altLeftArrow<br/></td><td colSpan=1 rowSpan=1>
310+
* alt+leftarrow<br/></td></tr>
311+
* <tr>
312+
* <td colSpan=1 rowSpan=1>
313+
* moveDown<br/></td><td colSpan=1 rowSpan=1>
314+
* downarrow<br/></td></tr>
315+
* <tr>
316+
* <td colSpan=1 rowSpan=1>
317+
* moveUp<br/></td><td colSpan=1 rowSpan=1>
318+
* uparrow<br/></td></tr>
319+
* <tr>
320+
* <td colSpan=1 rowSpan=1>
321+
* moveLeft<br/></td><td colSpan=1 rowSpan=1>
322+
* leftarrow<br/></td></tr>
323+
* <tr>
324+
* <td colSpan=1 rowSpan=1>
325+
* moveRight<br/></td><td colSpan=1 rowSpan=1>
326+
* rightarrow<br/></td></tr>
327+
* </table>
328+
*/
329+
@Property(null)
330+
public keyConfigs: { [key: string]: string };
240331
/**
241332
* Triggers when Calendar is created.
242333
* @event
@@ -540,21 +631,22 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
540631
}
541632
protected wireEvents(): void {
542633
EventHandler.add(this.headerTitleElement, 'click', this.navigateTitle, this);
634+
this.defaultKeyConfigs = (extend(this.defaultKeyConfigs, this.keyConfigs) as { [key: string]: string });
543635
if (this.getModuleName() === 'calendar') {
544636
this.keyboardModule = new KeyboardEvents(
545637
<HTMLElement>this.element,
546638
{
547639
eventName: 'keydown',
548640
keyAction: this.keyActionHandle.bind(this),
549-
keyConfigs: this.keyConfigs
641+
keyConfigs: this.defaultKeyConfigs
550642
});
551643
} else {
552644
this.keyboardModule = new KeyboardEvents(
553645
<HTMLElement>this.calendarElement,
554646
{
555647
eventName: 'keydown',
556648
keyAction: this.keyActionHandle.bind(this),
557-
keyConfigs: this.keyConfigs
649+
keyConfigs: this.defaultKeyConfigs
558650
});
559651
}
560652
}
@@ -1385,10 +1477,24 @@ export class CalendarBase extends Component<HTMLElement> implements INotifyPrope
13851477
let focusedEle: Element = this.tableBodyElement.querySelector('tr td.e-focused-date');
13861478
let selectedEle: Element = this.tableBodyElement.querySelector('tr td.e-selected');
13871479
let type: string = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1388-
let title: string = this.globalize.formatDate(this.currentDate, { type: 'dateTime', skeleton: 'full', calendar: type });
1480+
let title: string;
1481+
let view: String = this.currentView();
1482+
if (view === 'Month') {
1483+
title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'full', calendar: type });
1484+
} else if (view === 'Year') {
1485+
if (type !== 'islamic') {
1486+
title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'yMMMM', calendar: type });
1487+
} else {
1488+
title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'GyMMM', calendar: type });
1489+
}
1490+
} else {
1491+
title = this.globalize.formatDate(this.currentDate, { type: 'date', skeleton: 'y', calendar: type });
1492+
}
13891493
if (selectedEle || focusedEle) {
1390-
(focusedEle || selectedEle).setAttribute('aria-selected', 'true');
1391-
(focusedEle || selectedEle).setAttribute('aria-label', 'The current focused date is ' + '' + title);
1494+
if (!isNullOrUndefined(selectedEle)) {
1495+
selectedEle.setAttribute('aria-selected', 'true');
1496+
}
1497+
(focusedEle || selectedEle).setAttribute('aria-label', title);
13921498
id = (focusedEle || selectedEle).getAttribute('id');
13931499

13941500
}

0 commit comments

Comments
 (0)