Skip to content

Commit c1562fc

Browse files
author
pipeline
committed
v17.2.39 is released
1 parent d79812d commit c1562fc

File tree

399 files changed

+16544
-2562
lines changed

Some content is hidden

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

399 files changed

+16544
-2562
lines changed

controls/barcodegenerator/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
### Barcode
88

9-
The Syncfusion Essential JS Barcode widget enables rendering of one dimension and two dimension barcodes in web page. Barcode provides you a simple and inexpensive method of encoding text information that can be easily read by electronic readers
9+
The Syncfusion Essential JS Barcode widget enables rendering of one dimension and two dimension barcodes in the web page. Barcode provides you a simple and inexpensive method of encoding text information that can be easily read by electronic readers
1010

1111
- Supports 2 two-dimensional barcodes such as QR and DataMatrix barcodes.

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

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

controls/barcodegenerator/dist/es6/ej2-barcode-generator.es2015.js.map

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

controls/barcodegenerator/dist/es6/ej2-barcode-generator.es5.js

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

controls/barcodegenerator/dist/es6/ej2-barcode-generator.es5.js.map

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

controls/barcodegenerator/dist/global/ej2-barcode-generator.min.js.map

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

controls/barcodegenerator/src/barcode/enum/enum.ts

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export type DataMatrixEncoding =
111111
* * Size16x36 - will generate 16*36 modules.
112112
* * Size16x48 - will generate 16*48 modules.
113113
* @aspNumberEnum
114+
* @blazorNumberEnum
114115
* @IgnoreSingular
115116
*/
116117

@@ -358,6 +359,7 @@ export type QRInputMode =
358359
* * Version39 - Specifies version 39(173 x 173 modules).
359360
* * Version40 - Specifies version 40(177 x 177 modules).
360361
* @aspNumberEnum
362+
* @blazorNumberEnum
361363
* @IgnoreSingular
362364
*/
363365

@@ -536,6 +538,7 @@ export enum QRCodeVersion {
536538
* * Quartile -The Recovery capacity is 25%(approx.)
537539
* * High -The Recovery capacity is 30%(approx.)
538540
* @aspNumberEnum
541+
* @blazorNumberEnum
539542
* @IgnoreSingular
540543
*/
541544
export enum ErrorCorrectionLevel {

controls/barcodegenerator/src/qrcode/qrcode-model.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ export interface QRCodeGeneratorModel extends ComponentModel{
3333

3434
/**
3535
* Defines the error correction level of the QR code.
36+
* @blazorDefaultValueIgnore
3637
* @aspDefaultValueIgnore
3738
* @aspNumberEnum
39+
* @blazorNumberEnum
3840
* @default undefined
3941
*/
4042
errorCorrectionLevel?: ErrorCorrectionLevel;
@@ -72,6 +74,8 @@ export interface QRCodeGeneratorModel extends ComponentModel{
7274
/**
7375
* * Defines the version of the QR code.
7476
* @aspDefaultValueIgnore
77+
* @blazorNumberEnum
78+
* @blazorDefaultValueIgnore
7579
* @aspNumberEnum
7680
* @default undefined
7781
*/

controls/barcodegenerator/src/qrcode/qrcode.ts

+4
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ export class QRCodeGenerator extends Component<HTMLElement> implements INotifyPr
5353

5454
/**
5555
* Defines the error correction level of the QR code.
56+
* @blazorDefaultValueIgnore
5657
* @aspDefaultValueIgnore
5758
* @aspNumberEnum
59+
* @blazorNumberEnum
5860
* @default undefined
5961
*/
6062
@Property()
@@ -99,6 +101,8 @@ export class QRCodeGenerator extends Component<HTMLElement> implements INotifyPr
99101
/**
100102
* * Defines the version of the QR code.
101103
* @aspDefaultValueIgnore
104+
* @blazorNumberEnum
105+
* @blazorDefaultValueIgnore
102106
* @aspNumberEnum
103107
* @default undefined
104108
*/

controls/base/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 17.2.39 (2019-07-30)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `#I242062` - Resolved Special characters `(@)` are not working for template Engine support.
12+
513
## 17.1.49 (2019-05-29)
614

715
### Common

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

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

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

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

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

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

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

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

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

controls/base/spec/template.spec.ts

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createElement} from '../src/dom';
44
* Template Engine Spec
55
*/
66

7+
let specialCharValue = [{'@ShipCountry': 'France'}];
78
let dsJSONArray: any = [{ name: 'one', info: { id: '01' } }, { name: 'two', info: { id: '02' } }];
89
let dsSubArray: any = [{ name: 'one', items: ['AR Item1', 'AR Item2'] }, { name: 'two', items: ['AR Item1', 'AR Item2'] }];
910
let dsJSONSubArray: any = [{ name: 'one', info: { id: '01', items: ['AR Item1', 'AR Item2'] } }, { name: 'two', info: { id: '02', items: ['AR Item1', 'AR Item2'] } }];
@@ -42,6 +43,13 @@ describe('Template', () => {
4243
expect(outDOM(template.compile(templateStr), dsJSONArray)).toEqual(result);
4344
});
4445

46+
it('JSON Array Input With Template Stringn which has special charactor', () => {
47+
let templateStr: string = '<div>${@ShipCountry}</div>';
48+
let result: Element[] = [];
49+
result.push(createElement('div', { innerHTML: 'France' }));
50+
expect(outDOM(template.compile(templateStr), specialCharValue)).toEqual(result);
51+
});
52+
4553
it('JSON Array Input With two space between class Names', () => {
4654
let templateStr: string = '<div class="class1 class2 class3">${name}</div>';
4755
let result: Element[] = [];

controls/base/src/template.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const CALL_FUNCTION: RegExp = new RegExp('\\((.*)\\)', '');
1313
const NOT_NUMBER: RegExp = new RegExp('^[0-9]+$', 'g');
1414
const WORD: RegExp = new RegExp('[\\w"\'.\\s+]+', 'g');
1515
const DBL_QUOTED_STR: RegExp = new RegExp('"(.*?)"', 'g');
16-
16+
const SPECIAL_CHAR: RegExp = /\@|\#|\$/g;
1717
let exp: RegExp = new RegExp('\\${([^}]*)}', 'g');
1818
// let cachedTemplate: Object = {};
1919

@@ -147,6 +147,9 @@ function evalExp(str: string, nameSpace: string, helper?: Object): string {
147147
} else if (!!cnt.match(IF_OR_FOR)) {
148148
// close condition
149149
cnt = cnt.replace(IF_OR_FOR, '"; \n } \n str = str + "');
150+
} else if (SPECIAL_CHAR.test(cnt)) {
151+
// evaluate normal expression with special character
152+
cnt = '"+' + NameSpaceForspecialChar(cnt, (localKeys.indexOf(cnt) === -1), nameSpace, localKeys) + '"]+"';
150153
} else {
151154
// evaluate normal expression
152155
cnt = '"+' + addNameSpace(
@@ -165,3 +168,7 @@ function addNameSpace(str: string, addNS: Boolean, nameSpace: string, ignoreList
165168
// function hashCode(str: string): string {
166169
// return str.split('').reduce((a: number, b: string) => { a = ((a << 5) - a) + b.charCodeAt(0); return a & a; }, 0).toString();
167170
// }
171+
172+
function NameSpaceForspecialChar(str: string, addNS: Boolean, nameSpace: string, ignoreList: string[]): string {
173+
return ((addNS && !(NOT_NUMBER.test(str)) && ignoreList.indexOf(str.split('.')[0]) === -1) ? nameSpace + '["' + str : str);
174+
}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ let CalendarBase = class CalendarBase extends Component {
320320
}
321321
updateFooter() {
322322
this.todayElement.textContent = this.l10.getConstant('today');
323+
this.todayElement.setAttribute('aria-label', this.l10.getConstant('today'));
323324
}
324325
createContentFooter() {
325326
if (this.showTodayButton) {
@@ -328,7 +329,7 @@ let CalendarBase = class CalendarBase extends Component {
328329
let l10nLocale = { today: 'Today' };
329330
this.globalize = new Internationalization(this.locale);
330331
this.l10 = new L10n(this.getModuleName(), l10nLocale, this.locale);
331-
this.todayElement = this.createElement('button');
332+
this.todayElement = this.createElement('button', { attrs: { role: 'button' } });
332333
rippleEffect(this.todayElement);
333334
this.updateFooter();
334335
addClass([this.todayElement], [BTN, TODAY, FLAT, PRIMARY, CSS]);

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
336336
};
337337
CalendarBase.prototype.updateFooter = function () {
338338
this.todayElement.textContent = this.l10.getConstant('today');
339+
this.todayElement.setAttribute('aria-label', this.l10.getConstant('today'));
339340
};
340341
CalendarBase.prototype.createContentFooter = function () {
341342
if (this.showTodayButton) {
@@ -344,7 +345,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
344345
var l10nLocale = { today: 'Today' };
345346
this.globalize = new Internationalization(this.locale);
346347
this.l10 = new L10n(this.getModuleName(), l10nLocale, this.locale);
347-
this.todayElement = this.createElement('button');
348+
this.todayElement = this.createElement('button', { attrs: { role: 'button' } });
348349
rippleEffect(this.todayElement);
349350
this.updateFooter();
350351
addClass([this.todayElement], [BTN, TODAY, FLAT, PRIMARY, CSS]);

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.2.35",
3+
"version": "17.2.36",
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

+50-5
Original file line numberDiff line numberDiff line change
@@ -2383,14 +2383,15 @@ describe('Calendar', () => {
23832383

23842384
describe('Keyboard interaction ', () => {
23852385
let calendar: any;
2386-
let keyEventArgs: any = {
2386+
let keyEventArgs: any;
2387+
beforeEach(() => {
2388+
let ele: HTMLElement = createElement('div', { id: 'calendar' });
2389+
document.body.appendChild(ele);
2390+
keyEventArgs = {
23872391
preventDefault: (): void => { /** NO Code */ },
23882392
target: null,
23892393
action: 'controlUp'
2390-
};
2391-
beforeEach(() => {
2392-
let ele: HTMLElement = createElement('div', { id: 'calendar' });
2393-
document.body.appendChild(ele);
2394+
};
23942395
});
23952396
afterEach(() => {
23962397
if (calendar) {
@@ -2421,6 +2422,50 @@ describe('Calendar', () => {
24212422
expect(calendar.currentView()).toBe("Decade");
24222423
expect(document.querySelector('.e-title').textContent).toBe('2010 - 2019');
24232424
});
2425+
it('keyConfigs as null test case', () => {
2426+
calendar = new Calendar({ value: new Date('3/3/2017'), keyConfigs:null });
2427+
calendar.appendTo('#calendar');
2428+
expect(document.querySelector('.e-title').textContent).toBe('March 2017');
2429+
calendar.keyActionHandle(keyEventArgs);
2430+
expect(calendar.currentView()).toBe("Year");
2431+
keyEventArgs.action = 'home';
2432+
calendar.keyActionHandle(keyEventArgs);
2433+
expect(document.querySelector('.e-focused-date').textContent).toBe('Jan');
2434+
keyEventArgs.action = 'end';
2435+
calendar.keyActionHandle(keyEventArgs);
2436+
expect(document.querySelector('.e-focused-date').textContent).toBe('Dec');
2437+
keyEventArgs.action = 'controlUp';
2438+
calendar.keyActionHandle(keyEventArgs);
2439+
expect(calendar.currentView()).toBe("Decade");
2440+
keyEventArgs.action = 'home';
2441+
calendar.keyActionHandle(keyEventArgs);
2442+
expect(document.querySelector('.e-focused-date').textContent).toBe('2010');
2443+
keyEventArgs.action = 'end';
2444+
calendar.keyActionHandle(keyEventArgs);
2445+
expect(document.querySelector('.e-focused-date').textContent).toBe('2019');
2446+
});
2447+
it('keyConfigs as undefined test case', () => {
2448+
calendar = new Calendar({ value: new Date('3/3/2017'), keyConfigs:undefined });
2449+
calendar.appendTo('#calendar');
2450+
expect(document.querySelector('.e-title').textContent).toBe('March 2017');
2451+
calendar.keyActionHandle(keyEventArgs);
2452+
expect(calendar.currentView()).toBe("Year");
2453+
keyEventArgs.action = 'home';
2454+
calendar.keyActionHandle(keyEventArgs);
2455+
expect(document.querySelector('.e-focused-date').textContent).toBe('Jan');
2456+
keyEventArgs.action = 'end';
2457+
calendar.keyActionHandle(keyEventArgs);
2458+
expect(document.querySelector('.e-focused-date').textContent).toBe('Dec');
2459+
keyEventArgs.action = 'controlUp';
2460+
calendar.keyActionHandle(keyEventArgs);
2461+
expect(calendar.currentView()).toBe("Decade");
2462+
keyEventArgs.action = 'home';
2463+
calendar.keyActionHandle(keyEventArgs);
2464+
expect(document.querySelector('.e-focused-date').textContent).toBe('2010');
2465+
keyEventArgs.action = 'end';
2466+
calendar.keyActionHandle(keyEventArgs);
2467+
expect(document.querySelector('.e-focused-date').textContent).toBe('2019');
2468+
});
24242469
it(' home and end button testing on year and decade view ', () => {
24252470
calendar = new Calendar({ value: new Date('3/3/2017') });
24262471
calendar.appendTo('#calendar');

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ export interface CalendarBaseModel extends ComponentModel{
131131
/**
132132
* Customizes the key actions in Calendar.
133133
* For example, when using German keyboard, the key actions can be customized using these shortcuts.
134-
* @default null
135-
* @blazorType object
136134
*
137135
* <table>
138136
* <tr>
@@ -216,6 +214,9 @@ export interface CalendarBaseModel extends ComponentModel{
216214
* moveRight<br/></td><td colSpan=1 rowSpan=1>
217215
* rightarrow<br/></td></tr>
218216
* </table>
217+
*
218+
* @default null
219+
* @blazorType object
219220
*/
220221
keyConfigs?: { [key: string]: string };
221222

0 commit comments

Comments
 (0)