Skip to content

Commit 873c2de

Browse files
author
pipeline
committed
v19.2.49 is released
1 parent c2c125d commit 873c2de

File tree

224 files changed

+5461
-3165
lines changed

Some content is hidden

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

224 files changed

+5461
-3165
lines changed

controls/base/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
## [Unreleased]
44

5-
## 19.2.47 (2021-07-13)
5+
## 19.2.48 (2021-07-20)
66

77
### Common
88

9+
#### Bug Fixes
10+
911
- `I327143`,`I332883` - Resolved the issue with Template Compilation malfunctions when value have special character apostrophe.
1012

1113
## 19.1.64 (2021-05-19)

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": "19.2.47",
3+
"version": "19.2.48",
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.ts

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,33 @@ export function compile(template: string, helper?: Object, ignorePrefix?: boolea
6060
let argName: string = 'data';
6161

6262
let evalExpResult: string = evalExp(template, argName, helper, ignorePrefix);
63-
let condtion = `
64-
var rg = (/(?:value|href)([\\s='"./]+)([\\w-./?=&\\\\#"]+)(.)((['#\\\\&?=/".\\w\\d]+|[\\w)('-."\\s]+)['"]|)/g);
65-
if(str.match(rg)){
66-
var check = str.match(rg);
63+
let condtion = `var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);
64+
var hrefRegex = (/(?:href)([\\s='"./]+)([\\w-./?=&\\\\#"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);
65+
if(str.match(valueRegEx)){
66+
var check = str.match(valueRegEx);
6767
var str1 = str;
6868
for (var i=0; i < check.length; i++) {
69-
var check1 = str.match(rg)[i].split('=')[1];
70-
var change = check1.replace(/^\'/, '\"');
71-
change = change.replace(/.$/,'\"');
69+
var check1 = str.match(valueRegEx)[i].split('value=')[1];
70+
var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
71+
change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
7272
str1 = str1.replace(check1, change);
7373
}
7474
str = str.replace(str, str1);
75-
}`;
76-
let fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
77-
// let fnCode: string = `var str="${evalExpResult}"; return str;`;
75+
}
76+
else if(str.match(hrefRegex)) {
77+
var check = str.match(hrefRegex);
78+
var str1 = str;
79+
for (var i=0; i < check.length; i++) {
80+
var check1 = str.match(hrefRegex)[i].split('href=')[1];
81+
var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
82+
change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
83+
str1 = str1.replace(check1, change);
84+
}
85+
str = str.replace(str, str1);
86+
}
87+
`;
88+
let fnCode: string = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
89+
//let fnCode: string = `var str="${evalExpResult}"; return str;`;
7890

7991
// tslint:disable-next-line:no-function-constructor-with-string-args
8092
let fn: Function = new Function(argName, fnCode);

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-
## 19.2.48 (2021-07-20)
5+
## 19.2.49 (2021-07-27)
66

77
### Checkbox
88

controls/charts/CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,28 @@
22

33
## [Unreleased]
44

5-
## 19.2.48 (2021-07-20)
5+
## 19.2.49 (2021-07-27)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#335336` - Chart series is now rendeirng properly while zooming in canvas mode.
12+
- `#330763` - Tooltip template is now working fine without cropping.
13+
14+
### Accumulation chart
15+
16+
#### Bug Fixes
17+
18+
- `#335151` - Console error while selecting point after cancelling a tooltip has been fixed.
19+
20+
## 19.2.47 (2021-07-13)
21+
22+
### Sparkline
23+
24+
#### Bug Fixes
25+
26+
- Resolved the console script exception while mouseover on the Sparkline.
627

728
### Chart
829

controls/charts/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-charts",
3-
"version": "19.2.46",
3+
"version": "19.2.47",
44
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/charts/src/accumulation-chart/user-interaction/selection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ export class AccumulationSelection extends BaseSelection {
263263
legendShape = document.getElementById(this.control.element.id + '_chart_legend_shape_' + index.point);
264264
this.removeSvgClass(legendShape, this.getSelectionClass(legendShape.id));
265265
}
266-
const opacity: number = accumulationTooltip && (accumulationTooltip.previousPoints[0].point.index === index.point) ?
266+
const opacity: number = accumulationTooltip && accumulationTooltip.previousPoints.length > 0
267+
&& (accumulationTooltip.previousPoints[0].point.index === index.point) ?
267268
accumulationTooltip.svgTooltip.opacity : this.series[index.series].opacity;
268269
element.setAttribute('opacity', opacity.toString());
269270
this.removeSvgClass(element, this.getSelectionClass(element.id));

controls/charts/src/chart/chart.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,11 +1946,11 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
19461946
this.renderCanvasSeries(item);
19471947
}
19481948
item.renderSeries(this);
1949-
if (this.enableCanvas) {
1950-
(this.renderer as CanvasRenderer).canvasRestore();
1951-
}
19521949
}
19531950
}
1951+
if (this.enableCanvas) {
1952+
(this.renderer as CanvasRenderer).canvasRestore();
1953+
}
19541954
this.visible = 0;
19551955
const options: BaseAttibutes = {
19561956
'id': this.element.id + '_ChartAreaClipRect_',

controls/charts/src/common/user-interaction/tooltip.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,14 @@ export class BaseTooltip extends ChartData {
164164
let position: TooltipPlacement = null;
165165
if (this.text.length <= 1) {
166166
let contentSize: Size; let headerSize: Size;
167-
if (chart.tooltip.template && chart.getModuleName() === 'chart' && chart.tooltip.template[0] !== '#' && typeof chart.tooltip.template === 'string') {
167+
let tooltipTemplate: string = !customTemplate ? chart.tooltip.template : customTemplate;
168+
if (tooltipTemplate && chart.getModuleName() === 'chart' && tooltipTemplate[0] !== '#' && typeof tooltipTemplate === 'string') {
168169
const templateDiv: HTMLDivElement = document.createElement('div');
169170
templateDiv.id = 'testing_template'; templateDiv.className = 'ejSVGTooltip';
170171
templateDiv.setAttribute('style', 'pointer-events:none; position:absolute;z-index: 1');
171172
document.getElementById(this.chart.element.id + '_Secondary_Element').appendChild(templateDiv);
172173
const template: string =
173-
((chart.tooltip.template as any).replaceAll('${x}', point.x as string) as any).replaceAll('${y}', point.y as string);
174+
((tooltipTemplate as any).replaceAll('${x}', point.x as string) as any).replaceAll('${y}', point.y as string);
174175
templateDiv.innerHTML = template;
175176
contentSize = new Size(
176177
(templateDiv.firstElementChild as HTMLElement).offsetWidth,

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-
## 19.2.48 (2021-07-20)
7+
## 19.2.47 (2021-07-13)
88

99
### CircularGauge
1010

0 commit comments

Comments
 (0)