Skip to content

Commit 2bbbf9e

Browse files
author
pipeline
committed
v18.4.48 is released
1 parent 4d362af commit 2bbbf9e

File tree

118 files changed

+1270
-554
lines changed

Some content is hidden

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

118 files changed

+1270
-554
lines changed

controls/calendars/src/datepicker/datepicker.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,7 @@ export class DatePicker extends Calendar implements IInput {
11501150
}
11511151
} else {
11521152
date = this.globalize.parseDate(this.inputElement.value, dateOptions);
1153+
date = (!isNullOrUndefined(date) && isNaN(+date)) ? null : date;
11531154
if (!isNullOrUndefined(this.formatString) && this.inputElement.value !== '' && this.strictMode) {
11541155
if ((this.isPopupClicked || (!this.isPopupClicked && this.inputElement.value === this.previousElementValue))
11551156
&& this.formatString.indexOf('y') === -1) {

controls/charts/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## [Unreleased]
44

5+
## 18.4.48 (2021-03-16)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#304737` - Remove child of null console error thrown while using canvas mode issue has been fixed.
12+
- `#F157327` - Fixed the data labels are overlapped issue in chart.
13+
- `#314894` - Stripline is not working in datetime for core platform issue fixed.
14+
- `#F162046` - Dynamic indicator change using useState issue resolved.
15+
516
## 18.4.47 (2021-03-09)
617

718
### Chart

controls/charts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-charts",
3-
"version": "18.4.46",
3+
"version": "18.4.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/chart/axis/strip-line.ts

+191-132
Large diffs are not rendered by default.

controls/charts/src/chart/chart.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
32603260
blazorTemplatesReset(this);
32613261
if (this.enableCanvas && this.svgObject && (this.svgObject as HTMLElement).tagName === 'CANVAS' ) {
32623262
(this.renderer as CanvasRenderer).clearRect(new Rect(0, 0, this.availableSize.width, this.availableSize.height));
3263-
remove(this.svgObject);
3263+
if (this.svgObject.parentNode) { remove(this.svgObject); }
32643264
return null;
32653265
}
32663266
removeElement(this.element.id + '_Secondary_Element');
@@ -3383,10 +3383,6 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
33833383
public onPropertyChanged(newProp: ChartModel, oldProp: ChartModel): void {
33843384
let renderer: boolean = false;
33853385
let refreshBounds: boolean = false;
3386-
if (Object.keys(newProp).length === 1 && Object.keys(newProp)[0] === 'indicators') {
3387-
//add valid check,it should happen only when property change is triggered for target series
3388-
return;
3389-
}
33903386
this.animateSeries = false;
33913387
if (!this.delayRedraw) {
33923388
for (let prop of Object.keys(newProp)) {
@@ -3480,6 +3476,9 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
34803476
refreshBounds = true;
34813477
}
34823478
break;
3479+
case 'indicators':
3480+
refreshBounds = true;
3481+
break;
34833482
case 'zoomSettings':
34843483
if (newProp.zoomSettings.enableScrollbar || oldProp.zoomSettings.enableScrollbar) {
34853484
refreshBounds = true;

controls/charts/src/chart/model/chart-base-model.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ export interface StripLineSettingsModel {
197197
* @default null
198198
* @aspDefaultValueIgnore
199199
*/
200-
start?: number | Date;
200+
start?: Object | number | Date;
201201

202202
/**
203203
* End value of the strip line.
204204
* @default null
205205
* @aspDefaultValueIgnore
206206
*/
207-
end?: number | Date;
207+
end?: Object | number | Date;
208208

209209
/**
210210
* Size of the strip line, when it starts from the origin.
@@ -244,14 +244,14 @@ export interface StripLineSettingsModel {
244244
* @default null
245245
* @aspDefaultValueIgnore
246246
*/
247-
repeatEvery?: number | Date;
247+
repeatEvery?: Object | number | Date;
248248

249249
/**
250250
* repeatUntil value of the strip line.
251251
* @default null
252252
* @aspDefaultValueIgnore
253253
*/
254-
repeatUntil?: number | Date;
254+
repeatUntil?: Object | number | Date;
255255

256256
/**
257257
* isSegmented value of the strip line
@@ -265,14 +265,14 @@ export interface StripLineSettingsModel {
265265
* @default null
266266
* @aspDefaultValueIgnore
267267
*/
268-
segmentStart?: number | Date;
268+
segmentStart?: Object | number | Date;
269269

270270
/**
271271
* segmentEnd value of the strip line.
272272
* @default null
273273
* @aspDefaultValueIgnore
274274
*/
275-
segmentEnd?: number | Date;
275+
segmentEnd?: Object | number | Date;
276276

277277
/**
278278
* segmentAxisName of the strip line.

controls/charts/src/chart/model/chart-base.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ export class StripLineSettings extends ChildProperty<StripLineSettings> {
219219
* @aspDefaultValueIgnore
220220
*/
221221
@Property(null)
222-
public start: number | Date;
222+
public start: Object | number | Date;
223223

224224
/**
225225
* End value of the strip line.
226226
* @default null
227227
* @aspDefaultValueIgnore
228228
*/
229229
@Property(null)
230-
public end: number | Date;
230+
public end: Object | number | Date;
231231

232232
/**
233233
* Size of the strip line, when it starts from the origin.
@@ -273,15 +273,15 @@ export class StripLineSettings extends ChildProperty<StripLineSettings> {
273273
* @aspDefaultValueIgnore
274274
*/
275275
@Property(null)
276-
public repeatEvery: number | Date;
276+
public repeatEvery: Object | number | Date;
277277

278278
/**
279279
* repeatUntil value of the strip line.
280280
* @default null
281281
* @aspDefaultValueIgnore
282282
*/
283283
@Property(null)
284-
public repeatUntil: number | Date;
284+
public repeatUntil: Object | number | Date;
285285

286286
/**
287287
* isSegmented value of the strip line
@@ -297,15 +297,15 @@ export class StripLineSettings extends ChildProperty<StripLineSettings> {
297297
* @aspDefaultValueIgnore
298298
*/
299299
@Property(null)
300-
public segmentStart: number | Date;
300+
public segmentStart: Object | number | Date;
301301

302302
/**
303303
* segmentEnd value of the strip line.
304304
* @default null
305305
* @aspDefaultValueIgnore
306306
*/
307307
@Property(null)
308-
public segmentEnd: number | Date;
308+
public segmentEnd: Object | number | Date;
309309

310310
/**
311311
* segmentAxisName of the strip line.

controls/charts/src/chart/series/chart-series-model.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Property, ChildProperty, Complex, Collection, DateFormatOptions, getValue } from '@syncfusion/ej2-base';import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';import { StackValues, RectOption, ControlPoints, PolarArc, appendChildElement, appendClipElement } from '../../common/utils/helper';import { firstToLowerCase, ChartLocation, CircleOption, IHistogramValues } from '../../common/utils/helper';import { Rect, SvgRenderer, CanvasRenderer } from '@syncfusion/ej2-svg-base';import { ChartSeriesType, ChartShape, LegendShape, LabelPosition, SeriesValueType, EmptyPointMode, SplineType } from '../utils/enum';import { ChartDrawType } from '../utils/enum';import { BorderModel, FontModel, MarginModel, AnimationModel, EmptyPointSettingsModel, OffsetModel } from '../../common/model/base-model';import { ConnectorModel } from '../../common/model/base-model';import { CornerRadiusModel, DragSettingsModel } from '../../common/model/base-model';import { ErrorBarType, ErrorBarDirection, ErrorBarMode, TrendlineTypes } from '../utils/enum';import { Border, Font, Margin, Animation, EmptyPointSettings, CornerRadius, Connector, DragSettings } from '../../common/model/base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Chart } from '../chart';import { Axis, Column, Row } from '../axis/axis';import { Data } from '../../common/model/data';import { Offset } from '../../common/model/base';import { ISeriesRenderEventArgs } from '../../chart/model/chart-interface';import { seriesRender } from '../../common/model/constants';import { Alignment, SeriesCategories } from '../../common/utils/enum';import { BoxPlotMode, Segment } from '../utils/enum';import { sort, getVisiblePoints, setRange } from '../../common/utils/helper';import { Browser } from '@syncfusion/ej2-base';import { StockSeries } from '../../stock-chart/index';
1+
import { Property, ChildProperty, Complex, Collection, DateFormatOptions, getValue } from '@syncfusion/ej2-base';import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';import { StackValues, RectOption, ControlPoints, PolarArc, appendChildElement, appendClipElement } from '../../common/utils/helper';import { firstToLowerCase, ChartLocation, CircleOption, IHistogramValues } from '../../common/utils/helper';import { Rect, SvgRenderer, CanvasRenderer } from '@syncfusion/ej2-svg-base';import { ChartSeriesType, ChartShape, LegendShape, LabelPosition, SeriesValueType, EmptyPointMode, SplineType } from '../utils/enum';import { ChartDrawType, DataLabelIntersectAction } from '../utils/enum';import { BorderModel, FontModel, MarginModel, AnimationModel, EmptyPointSettingsModel, OffsetModel } from '../../common/model/base-model';import { ConnectorModel } from '../../common/model/base-model';import { CornerRadiusModel, DragSettingsModel } from '../../common/model/base-model';import { ErrorBarType, ErrorBarDirection, ErrorBarMode, TrendlineTypes } from '../utils/enum';import { Border, Font, Margin, Animation, EmptyPointSettings, CornerRadius, Connector, DragSettings } from '../../common/model/base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Chart } from '../chart';import { Axis, Column, Row } from '../axis/axis';import { Data } from '../../common/model/data';import { Offset } from '../../common/model/base';import { ISeriesRenderEventArgs } from '../../chart/model/chart-interface';import { seriesRender } from '../../common/model/constants';import { Alignment, SeriesCategories } from '../../common/utils/enum';import { BoxPlotMode, Segment } from '../utils/enum';import { sort, getVisiblePoints, setRange } from '../../common/utils/helper';import { Browser } from '@syncfusion/ej2-base';import { StockSeries } from '../../stock-chart/index';
22

33
/**
44
* Interface for a class DataLabelSettings
@@ -118,7 +118,7 @@ export interface DataLabelSettingsModel {
118118
* @default 'Hide'
119119
*/
120120

121-
labelIntersectAction?: string;
121+
labelIntersectAction?: DataLabelIntersectAction;
122122

123123
}
124124

controls/charts/src/chart/series/chart-series.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ErrorBarSettingsModel, ErrorBarCapSettingsModel } from '../series/chart
66
import { firstToLowerCase, ChartLocation, CircleOption, IHistogramValues } from '../../common/utils/helper';
77
import { Rect, SvgRenderer, CanvasRenderer } from '@syncfusion/ej2-svg-base';
88
import { ChartSeriesType, ChartShape, LegendShape, LabelPosition, SeriesValueType, EmptyPointMode, SplineType } from '../utils/enum';
9-
import { ChartDrawType } from '../utils/enum';
9+
import { ChartDrawType, DataLabelIntersectAction } from '../utils/enum';
1010
import { BorderModel, FontModel, MarginModel, AnimationModel, EmptyPointSettingsModel, OffsetModel } from '../../common/model/base-model';
1111
import { ConnectorModel } from '../../common/model/base-model';
1212
import { CornerRadiusModel, DragSettingsModel } from '../../common/model/base-model';
@@ -160,7 +160,7 @@ export class DataLabelSettings extends ChildProperty<DataLabelSettings> {
160160
*/
161161

162162
@Property('Hide')
163-
public labelIntersectAction: string;
163+
public labelIntersectAction: DataLabelIntersectAction;
164164

165165
}
166166

controls/charts/src/chart/utils/enum.ts

+12
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,18 @@ export type LabelIntersectAction =
583583
/** Rotate the label to 90 degree when it intersect. */
584584
'Rotate90';
585585

586+
/**
587+
* Defines the Alignment. They are
588+
* * none - Shows all the labels.
589+
* * hide - Hide the label when it intersect.
590+
* *
591+
*/
592+
export type DataLabelIntersectAction =
593+
/** Shows all the labels. */
594+
'None' |
595+
/** Hide the label when it intersect. It is also applicable for polar radar chart */
596+
'Hide';
597+
586598
/**
587599
* Defines the Position. They are
588600
* * inside - Place the ticks or labels inside to the axis line.

controls/charts/src/common/utils/helper.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1115,9 +1115,9 @@ export function createTemplate(
11151115
// tslint:disable-next-line:no-any
11161116
if ((chart as any).isReact) { (chart as any).renderReactTemplates(reactCallback); }
11171117
} else if (chart.getModuleName() === 'chart') {
1118-
reactCallback = chartReactTemplate.bind(
1118+
reactCallback = (point && series) ? chartReactTemplate.bind(
11191119
this, childElement, chart, point, series, labelIndex, redraw
1120-
);
1120+
) : reactCallback;
11211121
// tslint:disable-next-line:no-any
11221122
if ((chart as any).isReact) { (chart as any).renderReactTemplates(reactCallback); }
11231123
}

controls/charts/src/stock-chart/model/base-model.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export interface StockChartStripLineSettingsModel {
150150
* @default null
151151
* @aspDefaultValueIgnore
152152
*/
153-
start?: number | Date;
153+
start?: Object | number | Date;
154154

155155
/**
156156
* Color of the strip line.
@@ -163,7 +163,7 @@ export interface StockChartStripLineSettingsModel {
163163
* @default null
164164
* @aspDefaultValueIgnore
165165
*/
166-
end?: number | Date;
166+
end?: Object | number | Date;
167167

168168
/**
169169
* Size of the strip line, when it starts from the origin.
@@ -197,7 +197,7 @@ export interface StockChartStripLineSettingsModel {
197197
* @default null
198198
* @aspDefaultValueIgnore
199199
*/
200-
repeatEvery?: number | Date;
200+
repeatEvery?: Object | number | Date;
201201

202202
/**
203203
* isSegmented value of the strip line
@@ -211,14 +211,14 @@ export interface StockChartStripLineSettingsModel {
211211
* @default null
212212
* @aspDefaultValueIgnore
213213
*/
214-
repeatUntil?: number | Date;
214+
repeatUntil?: Object | number | Date;
215215

216216
/**
217217
* segmentStart value of the strip line.
218218
* @default null
219219
* @aspDefaultValueIgnore
220220
*/
221-
segmentStart?: number | Date;
221+
segmentStart?: Object | number | Date;
222222

223223
/**
224224
* segmentAxisName of the strip line.
@@ -232,7 +232,7 @@ export interface StockChartStripLineSettingsModel {
232232
* @default null
233233
* @aspDefaultValueIgnore
234234
*/
235-
segmentEnd?: number | Date;
235+
segmentEnd?: Object | number | Date;
236236

237237
/**
238238
* Strip line Opacity

controls/charts/src/stock-chart/model/base.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class StockChartStripLineSettings extends ChildProperty<StockChartStripLi
185185
* @aspDefaultValueIgnore
186186
*/
187187
@Property(null)
188-
public start: number | Date;
188+
public start: Object | number | Date;
189189

190190
/**
191191
* Color of the strip line.
@@ -200,7 +200,7 @@ export class StockChartStripLineSettings extends ChildProperty<StockChartStripLi
200200
* @aspDefaultValueIgnore
201201
*/
202202
@Property(null)
203-
public end: number | Date;
203+
public end: Object | number | Date;
204204

205205
/**
206206
* Size of the strip line, when it starts from the origin.
@@ -239,7 +239,7 @@ export class StockChartStripLineSettings extends ChildProperty<StockChartStripLi
239239
* @aspDefaultValueIgnore
240240
*/
241241
@Property(null)
242-
public repeatEvery: number | Date;
242+
public repeatEvery: Object | number | Date;
243243

244244
/**
245245
* isSegmented value of the strip line
@@ -255,15 +255,15 @@ export class StockChartStripLineSettings extends ChildProperty<StockChartStripLi
255255
* @aspDefaultValueIgnore
256256
*/
257257
@Property(null)
258-
public repeatUntil: number | Date;
258+
public repeatUntil: Object | number | Date;
259259

260260
/**
261261
* segmentStart value of the strip line.
262262
* @default null
263263
* @aspDefaultValueIgnore
264264
*/
265265
@Property(null)
266-
public segmentStart: number | Date;
266+
public segmentStart: Object | number | Date;
267267

268268
/**
269269
* segmentAxisName of the strip line.
@@ -279,7 +279,7 @@ export class StockChartStripLineSettings extends ChildProperty<StockChartStripLi
279279
* @aspDefaultValueIgnore
280280
*/
281281
@Property(null)
282-
public segmentEnd: number | Date;
282+
public segmentEnd: Object | number | Date;
283283

284284
/**
285285
* Strip line Opacity

controls/compression/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 18.4.47 (2021-03-09)
5+
## 18.4.48 (2021-03-16)
66

77
### Compression
88

controls/data/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 18.4.47 (2021-03-09)
5+
## 18.4.48 (2021-03-16)
66

77
### DataManager
88

controls/diagrams/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## [Unreleased]
44

5+
## 18.4.48 (2021-03-16)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#316472` - This issue "Strange snapping behaviors with swimlane " has been fixed.
12+
- `#317149` - This issue "Exception occurs when drag and drop a lane on connector in swimlane " has been fixed.
13+
- `F23048` - This issue "When change style of group at runtime the same is applied to its child too " has been fixed.
14+
515
## 18.4.47 (2021-03-09)
616

717
### Diagram

controls/diagrams/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-diagrams",
3-
"version": "18.4.46",
3+
"version": "18.4.47",
44
"description": "Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/diagrams/spec/diagram/groups/groups.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ describe('Group', () => {
574574
mouseEvents.clickEvent(diagramCanvas, 275, 300);
575575
mouseEvents.dragAndDropEvent(diagramCanvas, 275, 120, 200, 150);
576576

577-
expect(Math.round(diagram.selectedItems.nodes[0].wrapper.children[2].parentTransform) === 331 || Math.ceil(diagram.selectedItems.nodes[0].wrapper.children[2].parentTransform) === 334).toBe(true);
577+
expect(Math.round(diagram.selectedItems.nodes[0].wrapper.children[0].parentTransform) === 331 || Math.ceil(diagram.selectedItems.nodes[0].wrapper.children[0].parentTransform) === 334).toBe(true);
578578
mouseEvents.clickEvent(diagramCanvas, 10, 10);
579579
mouseEvents.clickEvent(diagramCanvas, 100, 300);
580580
expect(diagram.selectedItems.nodes[0].id === 'group2').toBe(true);

0 commit comments

Comments
 (0)