Skip to content

Commit 5398848

Browse files
author
pipeline
committed
v22.2.10 is released
1 parent 1cded32 commit 5398848

File tree

126 files changed

+1276
-337
lines changed

Some content is hidden

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

126 files changed

+1276
-337
lines changed

controls/base/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+
## 22.2.10 (2023-08-22)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `#492390` - Resolved the issue with Bold fonts are not included in material theme
12+
513
## 22.2.9 (2023-08-15)
614

715
### Common

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": "22.2.5",
3+
"version": "22.2.9",
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/styles/_material-definition.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@if not variable-exists('is-roboto-loaded') {
55
//sass-lint:disable no-url-protocols,no-url-domains
6-
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500');// stylelint-disable-line no-invalid-position-at-import-rule
6+
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');// stylelint-disable-line no-invalid-position-at-import-rule
77
}
88

99
$is-roboto-loaded: 'true' !default;

controls/buttons/CHANGELOG.md

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

99
#### Bug Fixes
1010

11+
- `#I489450` - The issue with "Indeterminate state changed to unchecked while hovering the checkbox when Tristate is enabled" has been resolved.
12+
13+
### Checkbox
14+
15+
#### Bug Fixes
16+
1117
- `#I488474` - The issue with "Hovering the checkbox checked items of checkbox is unchecked while using RTL mode" in Bigger mode has been resolved.
1218

1319
## 22.2.8 (2023-08-08)

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": "22.2.8",
3+
"version": "22.2.9",
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/_theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
}
6565

6666
&.e-stop {
67+
background-color: $cbox-focussed-checkmark-bgcolor;
68+
border-color: $cbox-focussed-checkmark-border-color;
6769
box-shadow: $cbox-focussed-box-shadow;
6870
color: $cbox-indeterminate-hover-color;
6971
}
@@ -86,6 +88,8 @@
8688
}
8789

8890
&.e-stop {
91+
background-color: $cbox-focussed-checkmark-bgcolor;
92+
border-color: $cbox-focussed-checkmark-border-color;
8993
box-shadow: $cbox-focussed-box-shadow;
9094
color: $cbox-indeterminate-hover-color;
9195
}

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-
## 22.2.9 (2023-08-15)
5+
## 22.2.10 (2023-08-22)
66

77
### TimePicker
88

controls/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 22.2.10 (2023-08-22)
6+
7+
### Accumulation chart
8+
9+
#### Bug Fixes
10+
11+
- `#I490028` - Fixed an issue where the `centerLabel` text was not being displayed in bold formatting.
12+
13+
### Sparkline
14+
15+
#### Bug Fixes
16+
17+
- `#F45948` - Fixed issue with sparkline pie not displaying properly when having single point.
18+
- `#F45935` - Fixed an issue where the chart gets vanished when data updated after resizing the chart.
19+
20+
## 22.2.9 (2023-08-15)
21+
22+
### Accumulation chart
23+
24+
#### Bug Fixes
25+
26+
- `#I486337` - Fixed an issue where the console error thrown when disabling the animation.
27+
- `#I486337` - Now the destroy method is properly working in accumulation chart.
28+
29+
### Chart
30+
31+
#### Bug Fixes
32+
33+
- `#I487053` - Now, `startFromZero` is functioning correctly in stackingColumn.
34+
535
## 22.2.8 (2023-08-08)
636

737
### Chart

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": "22.2.8",
3+
"version": "22.2.9",
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/spec/chart/series/stacking-step-area-series.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ describe('Chart Control', () => {
498498
it('Checking with log axis with dataTime axis', (done: Function) => {
499499
loaded = (args: Object): void => {
500500
let axisLabelLast: Element = document.getElementById('container1_AxisLabel_3');
501-
expect(axisLabelLast.textContent == '1000').toBe(true);
501+
expect(axisLabelLast.textContent == '10000').toBe(true);
502502
done();
503503
};
504504
chartObj.loaded = loaded;

controls/charts/spec/pie/base/accumulation.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ describe('Checking RTL Behaviour for Title', () => {
612612
it('Cheking CenterLabel text', (done: Function) => {
613613
accumulation.loaded = (args: IAccLoadedEventArgs) => {
614614
let centerLabel: HTMLElement = document.getElementById('ej2-container_centerLabel');
615-
expect(centerLabel.innerHTML === 'Syncfusion').toBe(true);
615+
expect(centerLabel.children[0].innerHTML === 'Syncfusion').toBe(true);
616616
done();
617617
};
618618
accumulation.refresh();
@@ -622,7 +622,7 @@ describe('Checking RTL Behaviour for Title', () => {
622622
segement = getElement(sliceid + 0);
623623
trigger.mousemoveEvent(segement, 0, 0, 200, 200);
624624
let centerLabel: HTMLElement = document.getElementById('ej2-container_centerLabel');
625-
expect(centerLabel.innerHTML === '1').toBe(true);
625+
expect(centerLabel.children[0].innerHTML === '1').toBe(true);
626626
trigger.mouseleavetEvent(element, 1000, 1000);
627627
done();
628628
};

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,12 +1971,22 @@ export class AccumulationChart extends Component<HTMLElement> implements INotify
19711971
this.element.id + '_centerLabel',
19721972
(this.series[0].animation.enable && isanimate) ? this.pieSeriesModule.center.x - 1 : this.pieSeriesModule.center.x,
19731973
ypos,
1974-
getAnchor, labelCollection, '', 'auto'
1974+
getAnchor, '', '', 'auto'
19751975
);
19761976
const element: Element = textElement(
19771977
this.renderer, options, this.centerLabel.textStyle, this.centerLabel.textStyle.color ||
19781978
this.themeStyle.chartTitleFont.color, this.svgObject, false, this.redraw, null, null, null, null, null, null, null, null, this.themeStyle.chartTitleFont
19791979
);
1980+
for (let i: number = 0; i < labelCollection.length; i++) {
1981+
const tspanOption: Object = { x: options.x, y: options.y + (i * centerLabelSize.height), fill: '', };
1982+
const tspanElement: HTMLElement = <HTMLElement>(this.renderer as SvgRenderer).createTSpan(tspanOption, '');
1983+
tspanElement.style.fontFamily = 'inherit';
1984+
tspanElement.style.fontStyle = 'inherit';
1985+
tspanElement.style.fontSize = 'inherit';
1986+
tspanElement.style.fontWeight = (labelCollection[i as number].indexOf('<b>') > -1 || labelCollection[i as number].indexOf('</b>') > -1) ? 'bold' : 'inherit';
1987+
tspanElement.textContent = labelCollection[i as number].replace(/<\/?b>/g, '');
1988+
element.appendChild(tspanElement);
1989+
}
19801990
if (isanimate && this.series[0].animation.enable && this.animateSeries) {
19811991
this.centerLabelDelay(element);
19821992
}
@@ -2075,6 +2085,7 @@ export class AccumulationChart extends Component<HTMLElement> implements INotify
20752085
this.element.classList.remove('e-accumulationchart-focused');
20762086
let element: HTMLElement = document.getElementById(this.element.id + 'Keyboard_accumulationchart_focus');
20772087
if (element) { element.remove(); }
2088+
removeElement('chartmeasuretext');
20782089
this.removeSvg();
20792090
this.svgObject = null;
20802091
}

controls/charts/src/accumulation-chart/renderer/pie-base.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ export class PieBase extends AccumulationBase {
232232
this.accumulation.trigger(animationComplete, this.accumulation.isBlazor ? {} :
233233
{ series: series, accumulation: this.accumulation, chart: this.accumulation });
234234
const datalabelGroup: Element = getElement(this.accumulation.element.id + '_datalabel_Series_' + series.index);
235-
(datalabelGroup as HTMLElement).style.visibility = this.accumulation.isDestroyed ? 'hidden' : 'visible';
235+
if (datalabelGroup) {
236+
(datalabelGroup as HTMLElement).style.visibility = this.accumulation.isDestroyed ? 'hidden' : 'visible';
237+
}
236238
}
237239
});
238240
}

controls/charts/src/chart/axis/double-axis.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class Double {
2929
private interval: number;
3030
private paddingInterval: number;
3131
private isColumn: number = 0;
32+
private isStacking: boolean = false;
3233
/**
3334
* Constructor for the dateTime module.
3435
*
@@ -85,7 +86,7 @@ export class Double {
8586
if ((axis.doubleRange.start - axis.actualRange.interval < 0 && axis.doubleRange.start > 0)) {
8687
axis.actualRange.min = 0;
8788
} else {
88-
axis.actualRange.min = axis.doubleRange.start - axis.actualRange.interval;
89+
axis.actualRange.min = axis.doubleRange.start - (this.isStacking ? 0 : axis.actualRange.interval);
8990
}
9091
} else {
9192
axis.actualRange.interval = axis.interval || this.calculateNumericNiceInterval(axis, axis.doubleRange.delta, size);
@@ -174,7 +175,8 @@ export class Double {
174175
}
175176
// For yRange
176177
if (axis.orientation === 'Vertical') {
177-
this.isColumn += (series.type === 'Column' || series.type === 'Bar' || series.drawType === 'Column') ? 1 : 0;
178+
this.isColumn += (series.type.indexOf('Column') !== -1 || series.type.indexOf('Bar') !== -1 || series.drawType === 'Column') ? 1 : 0;
179+
this.isStacking = series.type.indexOf('Stacking') !== -1;
178180
if (this.chart.requireInvertedAxis) {
179181
this.findMinMax(<number>series.xMin - this.paddingInterval, <number>series.xMax + this.paddingInterval);
180182
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,7 @@ export class Series extends SeriesBase {
22022202
series.stackedValues = new StackValues(startValues, endValues);
22032203
const isLogAxis: boolean = series.yAxis.valueType === 'Logarithmic';
22042204
const isColumnBarType: boolean = (series.type.indexOf('Column') !== -1 || series.type.indexOf('Bar') !== -1);
2205-
series.yMin = isLogAxis && isColumnBarType && series.yMin < 1 ? series.yMin : Math.min.apply(0, startValues);
2205+
series.yMin = isLogAxis && isColumnBarType && series.yMin < 1 ? series.yMin : Math.min.apply(0, isStacking100 ? startValues : endValues);
22062206
series.yMax = Math.max.apply(0, endValues);
22072207
if (series.yMin > Math.min.apply(0, endValues)) {
22082208
series.yMin = (isStacking100) ? -100 :

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export class Selection extends BaseSelection {
475475
const args: ISelectionCompleteEventArgs = {
476476
name: selectionComplete,
477477
selectedDataValues: selectedPointValues,
478-
cancel: false
478+
cancel: false,
479479
};
480480
chart.trigger(selectionComplete, args);
481481
}

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ export type ValueType =
322322
'DateTimeCategory';
323323
/**
324324
* Defines the type of error bar. They are
325-
* * fixed - Renders a fixed type error bar.
326-
* * percentage - Renders a percentage type error bar.
327-
* * standardDeviation - Renders a standard deviation type error bar.
328-
* * standardError -Renders a standard error type error bar.
329-
* * custom -Renders a custom type error bar.
325+
* * fixed - This type of error bar renders a fixed value type error bar. The error value is fixed and does not change.
326+
* * percentage - This type of error bar renders a percentage value type error bar. The error value is calculated as a percentage of the data value.
327+
* * standardDeviation - This type of error bar renders a standard deviation type error bar. The error value is based on the standard deviation of the data points.
328+
* * standardError - This type of error bar renders a standard error type error bar. The error value is based on the standard error of the data points.
329+
* * custom - Renders a custom type error bar. This type of error bar allows for custom calculations or representations of the error or uncertainty in the data.
330330
*/
331331
export type ErrorBarType =
332332
/** Define the Fixed type. */
@@ -342,9 +342,9 @@ export type ErrorBarType =
342342

343343
/**
344344
* Defines the direction of error bar. They are
345-
* * both - Renders both direction of error bar.
346-
* * minus - Renders minus direction of error bar.
347-
* * plus - Renders plus direction error bar.
345+
* * both - This option renders error bars in both directions. It means that the error bars will extend in both the positive and negative directions from the data point.
346+
* * minus - This option renders error bars in the minus direction only. It means that the error bars will extend in the negative direction from the data point.
347+
* * plus - This option renders error bars in the plus direction only. It means that the error bars will extend in the positive direction from the data point.
348348
*/
349349
export type ErrorBarDirection =
350350
/** Define the Both direction. */
@@ -356,9 +356,9 @@ export type ErrorBarDirection =
356356

357357
/**
358358
* Defines the modes of error bar. They are
359-
* * vertical - Renders a vertical error bar.
360-
* * horizontal - Renders a horizontal error bar.
361-
* * both - Renders both side error bar.
359+
* * vertical - This mode renders a vertical error bar for each data point. The vertical error bar extends from the top to the bottom of the data point.
360+
* * horizontal - This mode renders a horizontal error bar for each data point. The horizontal error bar extends from the left to the right of the data point.
361+
* * both - This mode renders both vertical and horizontal error bars for each data point. The error bars extend in both the vertical and horizontal directions.
362362
*/
363363
export type ErrorBarMode =
364364
/** Define the Vertical mode. */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ export function getMinPointsDelta(axis: Axis, seriesCollection: Series[]): numbe
729729
});
730730
xValues.sort((first: Object, second: Object) => { return <number>first - <number>second; });
731731
if (xValues.length === 1) {
732-
seriesMin = (axis.valueType === 'DateTime' && series.xMin === series.xMax) ? (series.xMin - 25920000) : (series.xMin === series.xMax ? null : series.xMin);
732+
seriesMin = (axis.valueType === 'DateTime' && series.xMin === series.xMax) ? (series.xMin - 25920000) : series.xMin;
733733
minVal = <number>xValues[0] - (!isNullOrUndefined(seriesMin) ?
734734
seriesMin : axis.visibleRange.min);
735735
if (minVal !== 0) {

controls/charts/src/sparkline/rendering/sparkline-renderer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export class SparklineRenderer {
263263
for (let i: number = 0, stDeg: number = 90, edDeg: number, flag: string; i < points.length; i++) {
264264
stDeg += deg;
265265
deg = points[i as number]['degree'];
266+
deg = (deg === 360 ? deg - 0.001 : deg);
266267
edDeg = stDeg + deg;
267268
stRad = (stDeg - 90) * Math.PI / 180.0;
268269
edRad = (edDeg - 90) * Math.PI / 180.0;

controls/charts/src/sparkline/sparkline.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ export class Sparkline extends Component<HTMLElement> implements INotifyProperty
594594
args.currentSize = this.availableSize;
595595
this.trigger('resize', args);
596596
this.render();
597+
this.refreshing = false;
597598
},
598599
500);
599600
return false;

controls/diagrams/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
- `#I486118` - Now, the orthogonal connector routing works properly when we drag connector segment.
1212
- `#I484774` - Now, Double click on node annotation will open the edit of invisible annotation is resolved.
13-
- `#I484563` - The DOM Exception will no longer thrown while removing connector with Virtualization Enabled..
13+
- `#I484563` - The DOM Exception will no longer thrown while removing connector with Virtualization Enabled.
14+
- `#I484335` - Now, highlighter rendered properly on hovering ports and nodes.
1415

1516
## 22.2.8 (2023-08-08)
1617

controls/diagrams/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-diagrams",
3-
"version": "22.2.8",
3+
"version": "22.2.9",
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",

0 commit comments

Comments
 (0)