Skip to content

Commit 7cb4a9a

Browse files
author
pipeline
committed
v19.2.47 is released
1 parent 9be09ef commit 7cb4a9a

File tree

272 files changed

+6819
-2111
lines changed

Some content is hidden

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

272 files changed

+6819
-2111
lines changed

controls/base/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
## 19.2.47 (2021-07-13)
6+
7+
### Common
8+
9+
- `I327143`,`I332883` - Resolved the issue with Template Compilation malfunctions when value have special character apostrophe.
10+
511
## 19.1.64 (2021-05-19)
612

713
### Common

controls/base/src/animation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export interface AnimationOptions extends AnimationModel {
283283
export function rippleEffect(element: HTMLElement, rippleOptions?: RippleOptions, done?: Function): () => void {
284284
let rippleModel: RippleOptions = getRippleModel(rippleOptions);
285285
if (rippleModel.rippleFlag === false || (rippleModel.rippleFlag === undefined && !isRippleEnabled)) {
286-
return Function;
286+
return (() => {});
287287
}
288288
element.setAttribute('data-ripple', 'true');
289289
EventHandler.add(element, 'mousedown', rippleHandler, { parent: element, rippleOptions: rippleModel });

controls/base/src/template.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ 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 fnCode: string = `var str="${evalExpResult}"; return str;`;
63+
let condtion = `if(str.match(/value='([^\/]+)'\\s/g)){
64+
var check = str.match(/value='([^\/]+)'/g)[0].split('=')[1];
65+
var change = check.replace(/^\'/, '\"');
66+
change = change.replace(/.$/,'\"');
67+
str = str.replace(check, change);
68+
}`;
69+
let fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
70+
// let fnCode: string = `var str="${evalExpResult}"; return str;`;
6471

6572
// tslint:disable-next-line:no-function-constructor-with-string-args
6673
let fn: Function = new Function(argName, fnCode);
@@ -234,4 +241,4 @@ function HandleSpecialCharArrObj(str: string, nameSpaceNew: string, keys: string
234241
} else {
235242
return str;
236243
}
237-
}
244+
}

controls/buttons/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+
## 19.2.47 (2021-07-13)
6+
7+
### Checkbox
8+
9+
#### Bug Fixes
10+
11+
- Issue with checkbox icon on Mac OS has been resolved.
12+
513
## 19.2.46 (2021-07-06)
614

715
### Chips

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": "19.1.63",
3+
"version": "19.2.46",
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/styles/check-box/_bootstrap4-definition.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ $cbox-indeterminate-disabled-border-color: $primary-font !default;
5050
$cbox-indeterminate-disabled-color: $primary-font !default;
5151
$cbox-indeterminate-fontsize: 8px !default;
5252
$cbox-indeterminate-hover-color: $white !default;
53-
$cbox-indeterminate-lineheight: 13px !default;
53+
$cbox-indeterminate-lineheight: 1.5 !default;
5454
$cbox-key-focussed-bgcolor: transparent !default;
55-
$cbox-lineheight: 13px !default;
55+
$cbox-lineheight: 1.5 !default;
5656
$cbox-margin: 8px !default;
5757
$cbox-padding: 0 !default;
5858
$cbox-ripple-bgcolor: transparent !default;

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.48",
3+
"version": "19.2.46",
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/charts/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,29 @@
22

33
## [Unreleased]
44

5+
## 19.2.47 (2021-07-13)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#333145` - Point selection is now working properly, when specifying the selection on load.
12+
- `#334269` - Range area series is now rendering properly in stock chart.
13+
514
## 19.2.46 (2021-07-06)
615

716
### Chart
817

918
#### Bug Fixes
1019

20+
- `#332577` - `StepArea` gets truncated while using canvas mode issue has been fixed.
21+
22+
## 19.2.44 (2021-06-30)
23+
24+
### Chart
25+
26+
#### Bug Fixes
27+
1128
- `#331558` - Zooming working fine when the pan element not shown in toolbar.
1229

1330
#### New Features

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.1.65",
3+
"version": "19.2.46",
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/chart/axis/multi-level-labels.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Axis } from '../axis/axis';
1111
import { FontModel } from '../../common/model/base-model';
1212
import { isNullOrUndefined } from '@syncfusion/ej2-base';
1313
import { textWrap, appendClipElement, appendChildElement } from '../../common/utils/helper';
14-
import { valueToCoefficient, textTrim, textElement } from '../../common/utils/helper';
14+
import { valueToCoefficient, textTrim, textElement, withInBounds } from '../../common/utils/helper';
1515
import { Size, measureText, TextOption, PathOption, Rect, SvgRenderer } from '@syncfusion/ej2-svg-base';
1616
import { MultiLevelLabels, MultiLevelCategories } from '../model/chart-base';
1717
import { IAxisMultiLabelRenderEventArgs, IMultiLevelLabelClickEventArgs } from '../../chart/model/chart-interface';
@@ -38,6 +38,10 @@ export class MultiLevelLabel {
3838
public multiElements: Element;
3939
/** @private */
4040
public labelElement: Element;
41+
/** @private */
42+
public multiLevelLabelRectXRegion: Rect[] = [];
43+
/** @private */
44+
public xLabelCollection: TextOption[] = [];
4145
/**
4246
* Constructor for the logerithmic module.
4347
*
@@ -170,6 +174,11 @@ export class MultiLevelLabel {
170174
this.chart.renderer, options, argsData.textStyle, argsData.textStyle.color || this.chart.themeStyle.axisLabel,
171175
this.labelElement, false, this.chart.redraw, true, null, null, null, null, null, this.chart.enableCanvas
172176
);
177+
if (this.chart.enableCanvas) {
178+
let textSize: Size = measureText(argsData.text, argsData.textStyle);
179+
this.multiLevelLabelRectXRegion.push(new Rect(options.x, options.y, textSize.width, textSize.height));
180+
this.xLabelCollection.push(options);
181+
}
173182
if (multiLevel.border.width > 0 && multiLevel.border.type !== 'WithoutBorder') {
174183
pathRect = this.renderXAxisLabelBorder(
175184
level, endX - startX - padding, axis, startX, startY, labelSize, options, axisRect, argsData.alignment,
@@ -511,11 +520,20 @@ export class MultiLevelLabel {
511520
* @private
512521
*/
513522
public click(event: Event): void {
514-
const targetId: string = (<HTMLElement>event.target).id;
523+
let targetId: string = (<HTMLElement>event.target).id;
515524
const multiLevelID: string = '_Axis_MultiLevelLabel_Level_';
516525
let textId: string;
517526
let elementId: string;
518527
let axisIndex: number;
528+
if (this.chart.enableCanvas) {
529+
for (let i: number = 0; i < this.multiLevelLabelRectXRegion.length; i++) {
530+
if (withInBounds(
531+
event['x'], event['y'], this.multiLevelLabelRectXRegion[i],
532+
this.multiLevelLabelRectXRegion[i].width, this.multiLevelLabelRectXRegion[i].height)) {
533+
targetId = this.xLabelCollection[i].id;
534+
}
535+
}
536+
}
519537
if (targetId.indexOf(multiLevelID) > -1) {
520538
textId = targetId.split(multiLevelID)[1];
521539
elementId = targetId.split(multiLevelID)[0];

0 commit comments

Comments
 (0)