Skip to content

Commit d280885

Browse files
authored
Merge pull request #1 from Saranya13/master
feature(EJ2-18009): move gitlab to github
2 parents 8b5e9e2 + 1717fa6 commit d280885

File tree

828 files changed

+29763
-0
lines changed

Some content is hidden

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

828 files changed

+29763
-0
lines changed

LICENSE

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2+
3+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4+
5+
Customers who do not qualify for the community license can contact [email protected] for commercial licensing options.
6+
7+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8+
9+
The Syncfusion license that contains the terms and conditions can be found at
10+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf

src/base/CHANGELOG.md

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
5+
## 16.3.17 (2018-09-12)
6+
7+
### Common
8+
9+
#### New Features
10+
11+
- Provided Angular [Schematics](https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2) support for our Essential JS 2 Angular suite, which performs the below,
12+
- Installs the specific package.
13+
- Import the required modules in `app.module.ts`.
14+
15+
## 16.2.48 (2018-08-14)
16+
17+
### Common
18+
19+
#### Bug Fixes
20+
21+
- Fixed Angular `attribute` issue.
22+
23+
## 16.2.47 (2018-08-09)
24+
25+
### Common
26+
27+
#### Bug Fixes
28+
29+
- Fixed Form component's reset issue.
30+
31+
## 16.2.46 (2018-07-30)
32+
33+
### Common
34+
35+
#### Bug Fixes
36+
37+
- Resolved view encapsulation issue.
38+
- Resolved `onpropertychange` not triggered issue.
39+
- Resolved issue in `EventArgs` passing.
40+
41+
## 16.2.43 (2018-07-03)
42+
43+
### Common
44+
45+
#### Bug Fixes
46+
47+
- Cleared `peerDependencies` warning.
48+
49+
## 16.2.41 (2018-06-25)
50+
51+
### common
52+
53+
#### New Features
54+
55+
- Provided Angular 6 compatibility support
56+
57+
#### Bug Fixes
58+
59+
- Cleared `peerDependencies` warning.
60+
61+
## 16.1.41 (2018-05-09)
62+
63+
### common
64+
65+
#### Bug Fixes
66+
67+
- Propagate touch on `blur` issue is fixed.
68+
69+
## 16.1.38 (2018-05-02)
70+
71+
### common
72+
73+
#### Bug Fixes
74+
75+
- ng base destroy issue is fixed.
76+
77+
## 16.1.32 (2018-03-29)
78+
79+
### common
80+
81+
#### Bug Fixes
82+
83+
- Skip form event when Focus on `blur`.
84+
85+
## 16.1.24 (2018-02-22)
86+
87+
### common
88+
89+
#### New Features
90+
91+
- Angular Universal support added
92+
93+
#### Bug Fixes
94+
95+
- Resolved `clearTemplate` issue.
96+
97+
#### Breaking Changes
98+
99+
- Tag prefix for Angular components is changed from `ej` to `ejs`. For example, `ej-grid` is changed to `ejs-grid`.
100+
101+
## 15.4.30-preview (2018-02-14)
102+
103+
### common
104+
105+
#### Bug Fixes
106+
107+
- Fixed Form component's expression changed on template issue.
108+
109+
## 15.4.27-preview (2018-01-30)
110+
111+
### common
112+
113+
#### Bug Fixes
114+
115+
- Fixed Form component's disabling issue.
116+
117+
## 15.4.26-preview (2018-01-23)
118+
119+
### common
120+
121+
#### Bug Fixes
122+
123+
- Resolved `reactive form reset` issue.
124+
125+
## 15.4.23-preview (2017-12-27)
126+
127+
### common
128+
129+
#### Bug Fixes
130+
131+
- Resolved `this.propagateTouch is not a function` console error.
132+
133+
## 15.4.22-preview (2017-12-14)
134+
135+
### common
136+
137+
#### Bug Fixes
138+
139+
- Grouped radio button `ngModel` binding.
140+
- `ngFor` directive not working for component child directive.
141+
142+
## 15.4.21-preview (2017-12-08)
143+
144+
### common
145+
146+
#### Bug Fixes
147+
148+
- Form component, form option `updateOn` blur.
149+
150+
## 15.4.20-preview (2017-12-01)
151+
152+
### Common
153+
154+
#### New Features
155+
156+
- Upgraded TypeScript version to 2.6.2
157+
158+
## 15.4.17-preview (2017-11-13)
159+
160+
Base library provide options to enable following Angular functionalities in Essential JS 2 components.
161+
162+
- Input and Output Binding
163+
- Angular Templating
164+
- Ahead-Of-Time (AOT) Compilation
165+
- Defining Injectable Modules

src/base/ReadMe.md

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
[![coverage](http://ej2.syncfusion.com/badges/ej2-angular-base/coverage.svg)](http://ej2.syncfusion.com/badges/ej2-angular-base)
2+
3+
# ej2-ng-base
4+
5+
A common package of Essential JS 2 for Angular which contains base libraries, methods and class definitions.
6+
7+
> This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials).
8+
>
9+
> A free community license (https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
10+
11+
## Setup
12+
13+
To install `ej2-ng-base` and its dependent packages, use the following command
14+
15+
```sh
16+
npm install @syncfusion/ej2-ng-base
17+
```
18+
19+
## Resources
20+
21+
* [Getting Started](https://ej2.syncfusion.com/angular/documentation/common/getting-started.html?utm_source=npm&utm_campaign=ej2-ng-base)
22+
* [View Online Demos](https://ej2.syncfusion.com/angular/demos?utm_source=npm&utm_campaign=ej2-ng-base)
23+
* [Product Page](https://www.syncfusion.com/products/angular?utm_source=npm&utm_campaign=ej2-ng-base)
24+
25+
## Framework highlights
26+
27+
### Lightweight and user friendly
28+
29+
The entire Essential JS 2 framework is built from scratch to be lightweight and modular. Its footprint can be reduced further by including only the specific components and features your application requires.
30+
31+
### Modular architecture
32+
33+
All components have been built as modules to enable selective referencing, so only the components and features you need are included in your application.
34+
35+
### Built for performance
36+
37+
Performance is critical for delivering a good user experience. We ensure that all our components are designed and built to achieve the best performance possible.
38+
39+
### Responsive and touch friendly
40+
41+
All Essential JS 2 controls are touch friendly and render adaptively based on the device they are on to provide optimal usage experience on phones, tablets and desktops.
42+
43+
### Stunning built-in themes
44+
45+
Pixel-perfect built-in themes are available in material, bootstrap and fabric design. In addition, it comes with Accessible high-contrast theme and an online tool "[Theme Studio](https://ej2.syncfusion.com/themestudio/)" to customize the provided built-in themes.
46+
47+
### Globalization simplified
48+
49+
Easily build applications to be used by a global audience in various language and culture settings.
50+
51+
### Stay current
52+
53+
With our commitment to at least four major updates per year, you receive the most up-to-date functionality and new components in addition to monthly service packs and bug fixes. Custom patches are available as needed.
54+
55+
## Supported Frameworks
56+
57+
The Essential JS 2 is also offered in following list of frameworks.
58+
59+
* [JavaScript](https://www.syncfusion.com/products/javascript?utm_source=npm&utm_campaign=ej2-ng-base)
60+
* [React](https://www.syncfusion.com/products/react?utm_source=npm&utm_campaign=ej2-ng-base)
61+
* [Vue.js](https://www.syncfusion.com/products/vue?utm_source=npm&utm_campaign=ej2-ng-base)
62+
* [ASP.NET Core](https://www.syncfusion.com/products/aspnetcore?utm_source=npm&utm_campaign=ej2-ng-base)
63+
* [ASP.NET MVC](https://www.syncfusion.com/products/aspnetmvc?utm_source=npm&utm_campaign=ej2-ng-base)
64+
65+
## Showcase Applications
66+
67+
* [Diagram Builder](https://ej2.syncfusion.com/showcase/angular/diagrambuilder?utm_source=npm&utm_campaign=ej2-ng-base)
68+
* [Expense Tracker](https://ej2.syncfusion.com/showcase/angular/expensetracker?utm_source=npm&utm_campaign=ej2-ng-base)
69+
* [Loan Calculator](https://ej2.syncfusion.com/showcase/angular/loancalculator?utm_source=npm&utm_campaign=ej2-ng-base)
70+
* [Stock Chart](https://ej2.syncfusion.com/showcase/angular/stockchart?utm_source=npm&utm_campaign=ej2-ng-base)
71+
* [Web Mail](https://ej2.syncfusion.com/showcase/angular/webmail?utm_source=npm&utm_campaign=ej2-ng-base)
72+
73+
## Support
74+
75+
Product support is available for through following mediums.
76+
77+
* Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm&utm_campaign=ej2-ng-base) support system or [Community forum](https://www.syncfusion.com/forums/angular-js2?utm_source=npm&utm_campaign=ej2-ng-base).
78+
* New [GitHub issue](https://github.com/syncfusion/ej2-base/issues/new).
79+
* Ask your query in [Stack Overflow](https://stackoverflow.com/) with tag `syncfusion` and `ej2`.
80+
81+
## License
82+
83+
Check the license detail [here](https://github.com/syncfusion/ej2-ng-base/blob/master/license).
84+
85+
## Changelog
86+
87+
Check the changelog [here](https://ej2.syncfusion.com/angular/documentation/release-notes?utm_source=npm&utm_campaign=ej2-ng-base)
88+
89+
© Copyright 2018 Syncfusion, Inc. All Rights Reserved.
90+
The Syncfusion Essential Studio license and copyright applies to this distribution.

src/base/demo/app/app.component.ts

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
import { Component, Output, EventEmitter, ViewChild } from '@angular/core';
2+
import { DemoBaseComponent } from '../../spec/sample.component';
3+
/**
4+
* App Module
5+
*/
6+
@Component({
7+
selector: 'app-container',
8+
template: `
9+
<input type="text" placeholder="Child1" (blur)='onChild1TextChange($event.target.value)' [value]='child1.text' />
10+
<input type="text" placeholder="Child2" (blur)='onChild2TextChange($event.target.value)' [value]='child2.text'/>
11+
<input type="text" placeholder="Child3" (blur)='onChild3TextChange($event.target.value)' [value]='child3.text'/>
12+
<br/>
13+
<br/>
14+
<ej2-control [(text)]='cusText' [width]='width' (click)='onButtonClick($event)' >
15+
<e-childs>
16+
<e-child [text]='child1.text' [header]='child1.header' ></e-child>
17+
<e-child [text]='child2.text' [header]='child2.header' ></e-child>
18+
<e-child [text]='child3.text' [header]='child3.header' ></e-child>
19+
</e-childs>
20+
</ej2-control>
21+
<ej2-list [dataSource]='data'>
22+
<ng-template #template let-data>
23+
<div class='my-text'> {{ data.name }}</div>
24+
</ng-template>
25+
<ng-template #tooltipTemplate let-data>
26+
<div class='my-text'> {{ data.name }}</div>
27+
</ng-template>
28+
</ej2-list>
29+
<ej2-button #buttonComp [text]='butText' (click)="onButClick()">Button</ej2-button>
30+
<hr/>
31+
{{cusText}}
32+
`
33+
})
34+
export class AppComponent {
35+
public uName: string = '';
36+
public dest: string = '';
37+
public width: number = 100;
38+
public cusText: string = 'Click Add/Remove Header';
39+
public data: Object = [{ name: 'template1' }, { name: 'template2' }];
40+
public child1: ChildType = { text: 'Child1', header: true };
41+
public child2: ChildType = { text: 'Child2', header: true };
42+
public child3: ChildType = { text: 'Child3', header: true };
43+
public butText: string = 'Check';
44+
45+
@Output()
46+
public event: any = new EventEmitter();
47+
48+
@ViewChild('buttonComp')
49+
public buttonComp: DemoBaseComponent;
50+
51+
public onButtonClick(): void {
52+
this.child1.header = !this.child3.header;
53+
this.child2.header = !this.child3.header;
54+
this.child3.header = !this.child3.header;
55+
//alert(this.cusText);
56+
}
57+
58+
public onChild1TextChange(val: string): void {
59+
this.child1.text = val;
60+
}
61+
62+
public onChild2TextChange(val: string): void {
63+
this.child2.text = val;
64+
}
65+
66+
public onChild3TextChange(val: string): void {
67+
this.child3.text = val;
68+
}
69+
70+
public onButClick(){
71+
this.buttonComp.value=new Date().toISOString();
72+
}
73+
74+
ngAfterViewInit(){
75+
this.buttonComp.addEventListener('updated',function(){
76+
alert('Value Updated!!');
77+
})
78+
}
79+
80+
81+
}
82+
83+
export interface ChildType {
84+
text: string;
85+
header: boolean;
86+
}

src/base/demo/app/app.module.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
4+
import { AppComponent } from './app.component';
5+
import { ControlComponent, ChildDirective, ChildsDirective, SubChildDirective, SubChildsDirective } from '../../spec/control.component';
6+
import { TemplateComponent } from '../../spec/template.component';
7+
import { DemoBaseComponent } from '../../spec/sample.component';
8+
9+
/**
10+
* Module
11+
*/
12+
@NgModule({
13+
imports: [
14+
BrowserModule,
15+
],
16+
declarations: [AppComponent,
17+
DemoBaseComponent, ControlComponent, TemplateComponent, ChildDirective,
18+
ChildsDirective, SubChildDirective, SubChildsDirective],
19+
bootstrap: [AppComponent],
20+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
21+
})
22+
export class AppModule { }

src/base/demo/app/main.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
import { enableProdMode } from '@angular/core';
3+
4+
import { AppModule } from './app.module';
5+
6+
//enableProdMode(); //Uncomment for production
7+
platformBrowserDynamic().bootstrapModule(AppModule)
8+
.then((success: any) => console.log('App bootstrapped'))
9+
.catch((err: any) => console.error(err));

0 commit comments

Comments
 (0)