Skip to content

Commit 27059a5

Browse files
author
pipeline
committed
v17.2.35 is released
1 parent ffeea1f commit 27059a5

File tree

331 files changed

+6502
-2071
lines changed

Some content is hidden

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

331 files changed

+6502
-2071
lines changed

controls/barcodegenerator/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-barcode-generator",
3-
"version": "17.2.28",
3+
"version": "17.2.34",
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/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: 31 additions & 10 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: 32 additions & 10 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/spec/template-engine.spec.ts

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ window.getName = function () {
2020
return "TestName";
2121
}
2222

23-
let outDOM: Function = (tempFunction: Function, data: Object[], templateID?: string, propName?: string) => {
23+
let outDOM: Function = (tempFunction: Function, data: Object[], templateID?: string, propName?: string, index?: number) => {
2424
let output: any[] = [];
2525
for (let item of data) {
26-
let htmlEle: HTMLCollection = tempFunction(item, templateID, propName);
26+
let htmlEle: HTMLCollection = tempFunction(item, null,propName, templateID, false , index);
2727
output = output.concat(Array.prototype.slice.call(htmlEle));
2828
}
2929
return output.concat([]);
@@ -66,7 +66,7 @@ describe('Template Engine', () => {
6666
let templateStr: string = '<div> Blazor template</div>';
6767
let Blazor: string = 'Blazor';
6868
window[Blazor] = 'template';
69-
let result: any = outDOM(template.compile(templateStr), [dsJSONArray[0]], '', 'Template')
69+
let result: any = outDOM(template.compile(templateStr), [dsJSONArray[0]], '', 'Template');
7070
window[Blazor] = null;
7171
expect(result[0].tagName).toEqual('DIV');
7272
});
@@ -84,14 +84,30 @@ describe('Template Engine', () => {
8484
expect(result).toBeUndefined();
8585
});
8686

87+
it('Check index blazor template', () => {
88+
let templateStr: string = '<div class=" class1">blazor</div>';
89+
let result: any = [];
90+
let blazor: string = 'Blazor';
91+
let ejsIntrop: string = 'ejsInterop';
92+
let tempID: string = 'template';
93+
window[blazor] = 'Template';
94+
window[ejsIntrop] = { updateTemplate: function () { } };
95+
template.blazorTemplates[tempID][0] = {text: '0', info: {id: '03'}, name: 'new first name', BlazorTemplateId: 'id1' };
96+
template.blazorTemplates[tempID][1] = {text: '1', info: {id: '03'}, name: 'new second name', BlazorTemplateId: 'id2' };
97+
result = outDOM(template.compile(templateStr), [dsJSONArray[0]], 'template', 'templateprop', 1);
98+
window[blazor] = null;
99+
window[ejsIntrop] = null;
100+
expect(result[0].tagName).toEqual('DIV');
101+
});
102+
87103
it('Check blazor row template', () => {
88104
let templateStr: string = '<div class=" class1">blazor</div>';
89105
let result: any = [];
90106
let blazor: string = 'Blazor';
91107
let ejsIntrop: string = 'ejsInterop';
92108
window[blazor] = 'Template';
93109
window[ejsIntrop] = { updateTemplate: function () { } };
94-
result = (template.updateBlazorTemplate('rowtemplate', 'RowTemplate'));
110+
result = (template.updateBlazorTemplate('rowtemplate', 'RowTemplate', null, false));
95111
window[blazor] = null;
96112
window[ejsIntrop] = null;
97113
expect(result).toBeUndefined();
@@ -120,6 +136,45 @@ describe('Template Engine', () => {
120136
expect(result).toBeUndefined();
121137
});
122138

139+
it('Check index reset blazor template to the body', () => {
140+
let elem: HTMLElement = document.createElement('div');
141+
elem.setAttribute('id', 'template');
142+
let newElement: HTMLElement = document.createElement('div');
143+
newElement.setAttribute('class', 'blazor-inner-template');
144+
newElement.setAttribute('data-templateId', 'tempID');
145+
elem.appendChild(newElement);
146+
let elem2: HTMLElement = document.createElement('div');
147+
elem2.setAttribute('id', 'tempID');
148+
elem2.setAttribute('data-templateId', 'tempID');
149+
let elem3: HTMLElement = document.createElement('tr');
150+
elem2.appendChild(elem3);
151+
document.activeElement.appendChild(elem2);
152+
document.activeElement.appendChild(elem);
153+
document.getElementById('tempID').appendChild(elem3);
154+
let result: any = [];
155+
result = (template.resetBlazorTemplate('template', 'Template', 0));
156+
expect(result).toBeUndefined();
157+
});
158+
it('Check reset blazor template without index', () => {
159+
let elem: HTMLElement = document.createElement('div');
160+
elem.setAttribute('id', 'template');
161+
let newElement: HTMLElement = document.createElement('div');
162+
newElement.setAttribute('class', 'blazor-inner-template');
163+
newElement.setAttribute('data-templateId', 'tempID');
164+
elem.appendChild(newElement);
165+
let elem2: HTMLElement = document.createElement('div');
166+
elem2.setAttribute('id', 'tempID');
167+
elem2.setAttribute('data-templateId', 'tempID');
168+
let elem3: HTMLElement = document.createElement('tr');
169+
elem2.appendChild(elem3);
170+
document.activeElement.appendChild(elem2);
171+
document.activeElement.appendChild(elem);
172+
document.getElementById('tempID').appendChild(elem3);
173+
let result: any = [];
174+
result = (template.resetBlazorTemplate('template', 'Template'));
175+
expect(result).toBeUndefined();
176+
});
177+
123178
it('Testing for blazor Row template', () => {
124179
let templateStr: string = '<tr> Blazor template</tr>';
125180
let Blazor: string = 'Blazor';
@@ -170,4 +225,4 @@ describe('Template Engine', () => {
170225
});
171226

172227

173-
});
228+
});

0 commit comments

Comments
 (0)