Skip to content

Commit b4be869

Browse files
author
pipeline
committed
v16.4.48 is released
1 parent deb6618 commit b4be869

File tree

86 files changed

+449
-116
lines changed

Some content is hidden

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

86 files changed

+449
-116
lines changed

components/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+
## 16.4.48 (2019-01-16)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- Fixed script error throwing issue while using `ngx-translate`.
12+
513
## 16.4.46 (2019-01-08)
614

715
### Common

components/base/dist/ej2-angular-base.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.

components/base/dist/ej2-angular-base.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.

components/base/dist/es6/ej2-angular-base.es2015.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/es6/ej2-angular-base.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.

components/base/dist/es6/ej2-angular-base.es5.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/base/dist/es6/ej2-angular-base.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.

components/base/dist/global/ej2-angular-base.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.

components/base/dist/global/ej2-angular-base.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.

components/base/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-angular-base",
3-
"version": "16.4.46",
3+
"version": "16.4.47",
44
"description": "A common package of Essential JS 2 base Angular libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
@@ -16,18 +16,18 @@
1616
"ng"
1717
],
1818
"peerDependencies": {
19-
"@angular/common": "2.2.1 - 7.1.0",
20-
"@angular/compiler": "2.2.1 - 7.1.0",
21-
"@angular/core": "2.2.1 - 7.1.0",
22-
"@angular/forms": "2.2.1 - 7.1.0",
23-
"@angular/http": "2.2.1 - 7.1.0",
24-
"@angular/platform-browser": "2.2.1 - 7.1.0",
25-
"@angular/platform-browser-dynamic": "2.2.1 - 7.1.0",
26-
"@angular/router": "2.2.1 - 7.1.0"
19+
"@angular/common": "2.2.1 - 7.10.0",
20+
"@angular/compiler": "2.2.1 - 7.10.0",
21+
"@angular/core": "2.2.1 - 7.10.0",
22+
"@angular/forms": "2.2.1 - 7.10.0",
23+
"@angular/http": "2.2.1 - 7.10.0",
24+
"@angular/platform-browser": "2.2.1 - 7.10.0",
25+
"@angular/platform-browser-dynamic": "2.2.1 - 7.10.0",
26+
"@angular/router": "2.2.1 - 7.10.0"
2727
},
2828
"dependencies": {
2929
"@syncfusion/ej2-base": "*",
30-
"zone.js": "^0.7.2",
30+
"zone.js": "0.7.2 - 0.8.28",
3131
"core-js": "^2.4.1",
3232
"reflect-metadata": "^0.1.9",
3333
"rxjs": "^5.0.0"

components/base/spec/app.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class AppComponent {
1515
public dest: string = '';
1616
public text: string = 'EJButton';
1717
public val: string = '';
18+
public check: boolean = false;
1819
public child1: Object = { text: 'Child1', header: true };
1920
public child2: Object = { text: 'Child2', header: false };
2021
public child3: Object = { text: 'Child3', header: true };

components/base/spec/app.pipe.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Pipe, PipeTransform } from '@angular/core';
2+
3+
@Pipe({ name: 'check' })
4+
export class check implements PipeTransform {
5+
transform(value: boolean): boolean {
6+
if (value === true) {
7+
return false;
8+
} else {
9+
return true;
10+
}
11+
}
12+
}

components/base/spec/complex-array-base.spec.ts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { DebugElement } from '@angular/core';
33
import { ComponentBase } from '../src/component-base';
44
import { ControlComponents } from './control.component';
55
import { AppComponent } from './app.module';
6+
import { pipeComponents } from './pipe.component';
7+
import { check } from './app.pipe';
8+
69
/**
710
* Complex Spec
811
*/
@@ -68,6 +71,56 @@ describe('=> Complex Component => ', () => {
6871

6972
});
7073

74+
describe('=> Complex Component for pipe => ', () => {
75+
let comp: AppComponent;
76+
let fixture: ComponentFixture<AppComponent>;
77+
let de: DebugElement;
78+
let el: HTMLElement;
79+
let directives: any[] = pipeComponents;
80+
directives.push(AppComponent);
81+
beforeEach((done) => {
82+
TestBed.configureTestingModule({
83+
declarations: [directives, check],
84+
providers: [ComponentBase]
85+
});
86+
/* tslint:disable */
87+
TestBed.overrideComponent(AppComponent, {
88+
set: {
89+
template: `<ej2-control>
90+
<e-childs>
91+
<e-child [text]='child1.text' header='{{ child1.header | check }}' ></e-child>
92+
<e-child [text]='child2.text' [header]='child2.header' ></e-child>
93+
<e-child [text]='child3.text' [header]='child3.header' ></e-child>
94+
</e-childs>
95+
</ej2-control>`
96+
}
97+
});
98+
/* tslint:enable */
99+
100+
TestBed.compileComponents().then(() => {
101+
fixture = TestBed.createComponent(AppComponent);
102+
comp = fixture.componentInstance;
103+
de = fixture.debugElement;
104+
el = de.nativeElement;
105+
fixture.detectChanges();
106+
setTimeout(() => { done(); }, 100);
107+
});
108+
});
109+
110+
it('complex data binding with pipe', (done: Function) => {
111+
fixture.detectChanges();
112+
setTimeout(() => {
113+
let instance: any = (el.querySelector('.e-control') as any).ej2_instances[0];
114+
expect(JSON.stringify(instance.childs[0].properties.header)).toEqual('"false"');
115+
done();
116+
}, 100);
117+
});
118+
119+
afterAll(() => {
120+
el.remove();
121+
});
122+
123+
});
71124

72125
describe('=> Complex Component => ', () => {
73126
let comp: AppComponent;
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
import { Component, ElementRef, Inject, ContentChild, Directive, ContentChildren, forwardRef, Injector } from '@angular/core';
2+
import { ComponentBase, IComponentBase } from '../src/component-base';
3+
import { ComplexBase, ArrayBase } from '../src/complex-array-base';
4+
import { applyMixins, ComponentMixins } from '../src/util';
5+
import { DemoBase } from './sample.core';
6+
import { check } from './app.pipe';
7+
8+
9+
/**
10+
* Complex Component
11+
*/
12+
@Directive({
13+
selector: 'e-sub-childs>e-sub-child',
14+
inputs: ['header', 'text']
15+
})
16+
export class SubChildDirective extends ComplexBase<ChildDirective> {
17+
constructor() {
18+
super();
19+
}
20+
}
21+
22+
@Directive({
23+
selector: 'e-childs>e-sub-childs',
24+
queries: {
25+
children: new ContentChildren(SubChildDirective)
26+
},
27+
})
28+
export class SubChildsDirective extends ArrayBase<SubChildsDirective> {
29+
constructor() {
30+
super('subChild');
31+
}
32+
}
33+
34+
@Directive({
35+
selector: 'e-child2s>e-child2',
36+
inputs: ['header', 'text'],
37+
})
38+
export class Child2Directive extends ComplexBase<Child2Directive> {
39+
constructor() {
40+
super();
41+
}
42+
}
43+
44+
45+
@Directive({
46+
selector: 'ej2-control>e-child2s',
47+
queries: {
48+
children: new ContentChildren(Child2Directive)
49+
},
50+
})
51+
export class Child2sDirective extends ArrayBase<Child2sDirective> {
52+
constructor() {
53+
super('child2');
54+
}
55+
}
56+
57+
@Directive({
58+
selector: 'e-childs>e-child',
59+
inputs: ['header', 'text', 'subChilds'],
60+
outputs: ['click'],
61+
queries: {
62+
childSubChilds: new ContentChild(SubChildsDirective)
63+
}
64+
})
65+
export class ChildDirective extends ComplexBase<ChildDirective> {
66+
public tags: string[] = ['subChilds'];
67+
constructor() {
68+
super();
69+
this.registerEvents(['click'])
70+
}
71+
}
72+
73+
74+
@Directive({
75+
selector: 'ej2-control>e-childs',
76+
queries: {
77+
children: new ContentChildren(ChildDirective)
78+
},
79+
})
80+
export class ChildsDirective extends ArrayBase<ChildsDirective> {
81+
constructor() {
82+
super('child');
83+
}
84+
}
85+
86+
87+
88+
@Component({
89+
selector: 'ej2-control',
90+
inputs: ['text', 'childs', 'width', 'value'],
91+
outputs: ['textChange'],
92+
template: '',
93+
queries: {
94+
childChilds: new ContentChild(ChildsDirective),
95+
childChild2s: new ContentChild(Child2sDirective)
96+
}
97+
})
98+
@ComponentMixins([ComponentBase])
99+
export class ControlComponent1 extends DemoBase implements IComponentBase {
100+
101+
public tags: string[] = ['childs', 'child2s'];
102+
103+
constructor(@Inject(ElementRef) private ngEle: ElementRef) {
104+
super();
105+
this.element = this.ngEle.nativeElement;
106+
this.registerEvents(['click']);
107+
this.addTwoWay.call(this, ['text']);
108+
this.createElement('div');
109+
}
110+
111+
public registerEvents: (eventList: string[]) => void;
112+
public addTwoWay: (propList: string[]) => void;
113+
114+
}
115+
116+
export const pipeComponents = [check, ControlComponent1, ChildDirective, ChildsDirective, SubChildDirective, SubChildsDirective];

components/base/src/component-base.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ export class ComponentBase<T> {
165165
for (let list of tagObject.instance.list) {
166166
if (list.hasChanges) {
167167
let curIndex: number = tagObject.instance.list.indexOf(list);
168-
getValue(tagObject.name, this)[curIndex].setProperties(list.getProperties());
168+
let curChild: { setProperties: Function } = getValue(tagObject.name, this)[curIndex];
169+
if (curChild !== undefined) {
170+
curChild.setProperties(list.getProperties());
171+
}
169172
}
170173
}
171174
}

components/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-angular-buttons",
3-
"version": "16.4.42",
3+
"version": "16.4.47",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const pkgName = '@syncfusion/ej2-angular-buttons';
2-
export const pkgVer = '^16.4.42';
2+
export const pkgVer = '^16.4.47';
33
export const moduleName = 'ButtonModule, CheckBoxModule, RadioButtonModule, SwitchModule, ChipListModule';
4-
export const themeVer = '~16.4.42';
4+
export const themeVer = '~16.4.47';

components/calendars/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 16.4.47 (2019-01-08)
5+
## 16.4.48 (2019-01-16)
6+
7+
### TimePicker
8+
9+
#### Breaking Changes
10+
11+
- TimePicker pop-up will position at the center of the viewport in mobile resolution.
12+
13+
## 16.4.47 (2019-01-16)
614

715
### TimePicker
816

components/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-angular-calendars",
3-
"version": "16.4.46",
3+
"version": "16.4.47",
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. for Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const pkgName = '@syncfusion/ej2-angular-calendars';
2-
export const pkgVer = '^16.4.46';
2+
export const pkgVer = '^16.4.47';
33
export const moduleName = 'CalendarModule, DatePickerModule, TimePickerModule, DateRangePickerModule, DateTimePickerModule';
4-
export const themeVer = '~16.4.46';
4+
export const themeVer = '~16.4.47';

components/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 16.4.47 (2019-01-08)
5+
## 16.4.48 (2019-01-16)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- Scatter chart's edge position render issue is fixed
12+
- Datalabel did not show properly in Edge browser is fixed
13+
- Trendline not rendering while using NaN as input issue is fixed
14+
- DataSource not refreshed in angular chart has been fixed
15+
16+
## 16.4.47 (2019-01-16)
617

718
### Chart
819

components/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-angular-charts",
3-
"version": "16.4.45",
3+
"version": "16.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. for Angular",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const pkgName = '@syncfusion/ej2-angular-charts';
2-
export const pkgVer = '^16.4.45';
2+
export const pkgVer = '^16.4.47';
33
export const moduleName = 'ChartModule, AccumulationChartModule, RangeNavigatorModule, SparklineModule, SmithchartModule, StockChartModule';
4-
export const themeVer = '~16.4.45';
4+
export const themeVer = '~16.4.47';

components/charts/src/smithchart/series.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class SmithchartSeriesDirective extends ComplexBase<SmithchartSeriesDirec
1919

2020
/**
2121
* perform animation of series based on animation duration.
22-
* @default 2000ms
22+
* @default '2000ms'
2323
*/
2424
public animationDuration: any;
2525
/**
@@ -77,7 +77,7 @@ export class SmithchartSeriesDirective extends ComplexBase<SmithchartSeriesDirec
7777
public tooltip: any;
7878
/**
7979
* visibility for series.
80-
* @default visible
80+
* @default 'visible'
8181
*/
8282
public visibility: any;
8383
/**

0 commit comments

Comments
 (0)