Skip to content

Commit ca8a395

Browse files
author
pipeline
committed
v16.3.33 is released
1 parent d02e550 commit ca8a395

File tree

374 files changed

+16285
-2791
lines changed

Some content is hidden

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

374 files changed

+16285
-2791
lines changed

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+
## 16.3.33 (2018-11-15)
6+
7+
### CheckBox
8+
9+
#### Bug Fixes
10+
11+
- Add multiple classes dynamically to `cssClass` property issue fixed.
12+
513
## 16.2.49 (2018-08-21)
614

715
### Common

controls/buttons/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Product support is available for through following mediums.
101101

102102
## License
103103

104-
Check the license detail [here](https://github.com/syncfusion/ej2/blob/master/license?utm_source=npm&utm_campaign=button).
104+
Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license?utm_source=npm&utm_campaign=button).
105105

106106
## Changelog
107107

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

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.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/buttons/dist/es6/ej2-buttons.es5.js

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.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/buttons/dist/global/ej2-buttons.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/buttons/dist/global/ej2-buttons.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/buttons/src/check-box/check-box-model.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, INotifyPropertyChanged , NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';import { EmitType, Event, EventHandler, KeyboardEvents } from '@syncfusion/ej2-base';import { addClass, detach, getUniqueID, isRippleEnabled, removeClass, rippleEffect } from '@syncfusion/ej2-base';import { wrapperInitialize, rippleMouseHandler, ChangeEventArgs } from './../common/common';
1+
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';import { EmitType, Event, EventHandler, KeyboardEvents } from '@syncfusion/ej2-base';import { addClass, detach, getUniqueID, isRippleEnabled, removeClass, rippleEffect } from '@syncfusion/ej2-base';import { wrapperInitialize, rippleMouseHandler, ChangeEventArgs } from './../common/common';
22
import {LabelPosition} from "./check-box";
33
import {ComponentModel} from '@syncfusion/ej2-base';
44

controls/buttons/src/check-box/check-box.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, INotifyPropertyChanged , NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';
1+
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';
22
import { EmitType, Event, EventHandler, KeyboardEvents } from '@syncfusion/ej2-base';
33
import { addClass, detach, getUniqueID, isRippleEnabled, removeClass, rippleEffect } from '@syncfusion/ej2-base';
44
import { CheckBoxModel } from './check-box-model';
@@ -273,7 +273,7 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
273273
let rippleSpan: HTMLElement = this.createElement('span', { className: RIPPLE });
274274
if (this.labelPosition === 'Before') {
275275
label.appendChild(rippleSpan);
276-
}else {
276+
} else {
277277
label.insertBefore(rippleSpan, frameSpan);
278278
}
279279
rippleEffect(rippleSpan, { duration: 400, isCenterRipple: true });
@@ -330,9 +330,11 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
330330
break;
331331
case 'cssClass':
332332
if (oldProp.cssClass) {
333-
wrapper.classList.remove(oldProp.cssClass);
333+
removeClass([wrapper], oldProp.cssClass.split(' '));
334+
}
335+
if (newProp.cssClass) {
336+
addClass([wrapper], newProp.cssClass.split(' '));
334337
}
335-
wrapper.classList.add(newProp.cssClass);
336338
break;
337339
case 'enableRtl':
338340
if (newProp.enableRtl) {

controls/buttons/src/radio-button/radio-button.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ export class RadioButton extends Component<HTMLInputElement> implements INotifyP
264264
if (oldProp.cssClass) {
265265
removeClass([label], oldProp.cssClass.split(' '));
266266
}
267-
addClass([label], newProp.cssClass.split(' '));
267+
if (newProp.cssClass) {
268+
addClass([label], newProp.cssClass.split(' '));
269+
}
268270
break;
269271
case 'enableRtl':
270272
if (newProp.enableRtl) {

controls/buttons/src/switch/switch.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,11 @@ export class Switch extends Component<HTMLInputElement> implements INotifyProper
261261
break;
262262
case 'cssClass':
263263
if (oldProp.cssClass) {
264-
wrapper.classList.remove(oldProp.cssClass);
264+
removeClass([wrapper], oldProp.cssClass.split(' '));
265+
}
266+
if (newProp.cssClass) {
267+
addClass([wrapper], newProp.cssClass.split(' '));
265268
}
266-
wrapper.classList.add(newProp.cssClass);
267269
break;
268270
}
269271
}

controls/calendars/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-
## 16.3.32 (2018-11-15)
5+
## 16.3.31 (2018-11-07)
66

77
### DatePicker
88

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": "16.3.30",
3+
"version": "16.3.31",
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88

99
## [Unreleased]
1010

11+
## 16.3.33 (2018-11-15)
12+
13+
### Chart
14+
15+
#### New Features
16+
17+
- Margin options are added to legend.
18+
19+
#### Bug Fixes
20+
21+
- Series DataSource change chart refresh issue fixed.
22+
- Axis label is now rendering properly, when we have the interval in decimals.
23+
1124
## 16.3.32 (2018-11-13)
1225

1326
### Chart

controls/charts/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Following list of components are available in the package
4242

4343
## Supported frameworks
4444
These components are available in following list of
45-
1. [Angular](https://github.com/syncfusion/ej2-angular-ui-components/?utm_source=npm&utm_campaign=chart)
46-
2. [React](https://github.com/syncfusion/ej2-react-ui-components/?utm_source=npm&utm_campaign=chart)
47-
3. [Vue.js](https://github.com/syncfusion/ej2-vue-ui-components/?utm_source=npm&utm_campaign=chart)
45+
1. [Angular](https://github.com/syncfusion/ej2-angular-ui-components/tree/master/components/charts?utm_source=npm&utm_campaign=chart)
46+
2. [React](https://github.com/syncfusion/ej2-react-ui-components/tree/master/components/charts?utm_source=npm&utm_campaign=chart)
47+
3. [Vue.js](https://github.com/syncfusion/ej2-vue-ui-components/tree/master/components/charts?utm_source=npm&utm_campaign=chart)
4848
4. [ASP.NET Core](https://aspdotnetcore.syncfusion.com/Chart/Line#/material)
4949
5. [ASP.NET MVC](https://aspnetmvc.syncfusion.com/Chart/Line#/material)
5050
6. [JavaScript (ES5)](https://www.syncfusion.com/javascript-ui-controls/charts)

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

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,18 +685,33 @@ class Double {
685685
}
686686
let format = this.getFormat(axis);
687687
let isCustom = format.match('{value}') !== null;
688+
let intervalDigits = 0;
689+
let formatDigits = 0;
690+
if (axis.labelFormat && axis.labelFormat.indexOf('n') > -1) {
691+
formatDigits = parseInt(axis.labelFormat.substring(1, axis.labelFormat.length), 10);
692+
}
688693
axis.format = chart.intl.getNumberFormat({
689694
format: isCustom ? '' : format,
690695
useGrouping: chart.useGroupingSeparator
691696
});
692697
axis.startLabel = axis.format(axis.visibleRange.min);
693698
axis.endLabel = axis.format(axis.visibleRange.max);
699+
if (axis.visibleRange.interval && (axis.visibleRange.interval + '').indexOf('.') >= 0) {
700+
intervalDigits = (axis.visibleRange.interval + '').split('.')[1].length;
701+
}
702+
labelStyle = (extend({}, getValue('properties', axis.labelStyle), null, true));
694703
for (; tempInterval <= axis.visibleRange.max; tempInterval += axis.visibleRange.interval) {
695-
labelStyle = (extend({}, getValue('properties', axis.labelStyle), null, true));
696704
if (withIn(tempInterval, axis.visibleRange)) {
697705
triggerLabelRender(chart, tempInterval, this.formatValue(axis, isCustom, format, tempInterval), labelStyle, axis);
698706
}
699707
}
708+
if (tempInterval && (tempInterval + '').indexOf('.') >= 0 && (tempInterval + '').split('.')[1].length > 10) {
709+
tempInterval = (tempInterval + '').split('.')[1].length > (formatDigits || intervalDigits) ?
710+
+tempInterval.toFixed(formatDigits || intervalDigits) : tempInterval;
711+
if (tempInterval <= axis.visibleRange.max) {
712+
triggerLabelRender(chart, tempInterval, this.formatValue(axis, isCustom, format, tempInterval), labelStyle, axis);
713+
}
714+
}
700715
if (axis.getMaxLabelWidth) {
701716
axis.getMaxLabelWidth(this.chart);
702717
}
@@ -5809,6 +5824,9 @@ __decorate$5([
58095824
__decorate$5([
58105825
Complex({}, Border)
58115826
], LegendSettings.prototype, "border", void 0);
5827+
__decorate$5([
5828+
Complex({ left: 0, right: 0, top: 0, bottom: 0 }, Margin)
5829+
], LegendSettings.prototype, "margin", void 0);
58125830
__decorate$5([
58135831
Property(5)
58145832
], LegendSettings.prototype, "shapePadding", void 0);
@@ -5902,25 +5920,26 @@ class BaseLegend {
59025920
*/
59035921
getLocation(position, alignment, legendBounds, rect, availableSize) {
59045922
let padding = this.legend.border.width;
5905-
let legendHeight = legendBounds.height + padding;
5906-
let legendWidth = legendBounds.width + padding;
5923+
let legendHeight = legendBounds.height + padding + this.legend.margin.top + this.legend.margin.bottom;
5924+
let legendWidth = legendBounds.width + padding + this.legend.margin.left + this.legend.margin.right;
59075925
let marginBottom = this.chart.margin.bottom;
59085926
if (position === 'Bottom') {
59095927
legendBounds.x = this.alignLegend(legendBounds.x, availableSize.width, legendBounds.width, alignment);
5910-
legendBounds.y = rect.y + (rect.height - legendHeight) + padding;
5928+
legendBounds.y = rect.y + (rect.height - legendHeight) + padding + this.legend.margin.top;
59115929
subtractThickness(rect, new Thickness(0, 0, 0, legendHeight));
59125930
}
59135931
else if (position === 'Top') {
59145932
legendBounds.x = this.alignLegend(legendBounds.x, availableSize.width, legendBounds.width, alignment);
5915-
legendBounds.y = rect.y + padding;
5933+
legendBounds.y = rect.y + padding + this.legend.margin.top;
59165934
subtractThickness(rect, new Thickness(0, 0, legendHeight, 0));
59175935
}
59185936
else if (position === 'Right') {
5919-
legendBounds.x = rect.x + (rect.width - legendBounds.width);
5937+
legendBounds.x = rect.x + (rect.width - legendBounds.width) - this.legend.margin.right;
59205938
legendBounds.y = rect.y + this.alignLegend(0, availableSize.height - (rect.y + marginBottom), legendBounds.height, alignment);
59215939
subtractThickness(rect, new Thickness(0, legendWidth, 0, 0));
59225940
}
59235941
else if (position === 'Left') {
5942+
legendBounds.x = legendBounds.x + this.legend.margin.left;
59245943
legendBounds.y = rect.y + this.alignLegend(0, availableSize.height - (rect.y + marginBottom), legendBounds.height, alignment);
59255944
subtractThickness(rect, new Thickness(legendWidth, 0, 0, 0));
59265945
}
@@ -7828,6 +7847,17 @@ let Chart = class Chart extends Component {
78287847
this.processData();
78297848
return true;
78307849
}
7850+
/**
7851+
* Get visible series by index
7852+
*/
7853+
getVisibleSeries(visibleSeries, index) {
7854+
for (let series of visibleSeries) {
7855+
if (index === series.index) {
7856+
return series;
7857+
}
7858+
}
7859+
return null;
7860+
}
78317861
/**
78327862
* Called internally if any of the property value changed.
78337863
* @private
@@ -7910,6 +7940,7 @@ let Chart = class Chart extends Component {
79107940
series = newProp.series[i];
79117941
if (series && (series.dataSource || series.xName || series.yName || series.size ||
79127942
series.high || series.low || series.open || series.close)) {
7943+
extend(this.getVisibleSeries(this.visibleSeries, i), series, null, true);
79137944
seriesRefresh = true;
79147945
}
79157946
}

controls/charts/dist/es6/ej2-charts.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.

0 commit comments

Comments
 (0)