Skip to content

Commit bc2c527

Browse files
author
pipeline
committed
feature(EJ2-1948): Published samples in github
0 parents  commit bc2c527

File tree

210 files changed

+34472
-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.

210 files changed

+34472
-0
lines changed

ReadMe.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
## Installing
4+
5+
To install all dependent packages, use the below command
6+
7+
```
8+
npm install
9+
```
10+
11+
## Building
12+
13+
To compile the source files, use the below command
14+
15+
```
16+
npm run build
17+
```
18+
19+
## Running
20+
21+
To run the samples, use the below command
22+
23+
```
24+
npm run serve
25+
```

dist/zone.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

favicon.ico

6.42 KB
Binary file not shown.

gulpfile.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
'use strict';
2+
3+
var gulp = require('gulp');
4+
5+
/**
6+
* Compile styles
7+
*/
8+
gulp.task('styles', function() {
9+
var sass = require('gulp-sass');
10+
return gulp.src(['./styles/**/*.scss'], { base: './' })
11+
.pipe(sass({
12+
outputStyle: 'expanded',
13+
includePaths: './node_modules/@syncfusion/'
14+
}))
15+
.pipe(gulp.dest('.'));
16+
});
17+
18+
gulp.task('bundle', function(done) {
19+
var webpack = require('webpack');
20+
var webpackConfig = require('./webpack.config.js');
21+
webpack(webpackConfig, function(err) {
22+
if (err) {
23+
console.log(err);
24+
process.exit(1);
25+
}
26+
done();
27+
});
28+
});
29+
30+
/**
31+
* Run the samples
32+
*/
33+
gulp.task('serve', function(done) {
34+
var browserSync = require('browser-sync');
35+
var bs = browserSync.create('Essential JS 2 for Angular');
36+
var options = {
37+
server: {
38+
baseDir: './'
39+
},
40+
ui: false
41+
};
42+
bs.init(options, done);
43+
});

index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>Essential JS 2 for Angular (Preview)</title>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="description" content="Essential JS 2 for Angular">
9+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
10+
<link rel="shortcut icon" href="favicon.ico" />
11+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
12+
13+
<link href="./styles/material.css" rel="stylesheet" />
14+
<link href="./styles/index.css" rel="stylesheet" />
15+
<link rel="stylesheet" href="./styles/highlight.css">
16+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
17+
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/shim.min.js"></script>
18+
<script src="https://cdnjs.cloudflare.com/ajax/libs/reflect-metadata/0.1.10/Reflect.min.js"></script>
19+
<script src="./dist/zone.min.js"></script>
20+
21+
</head>
22+
23+
<body class="e-view">
24+
<div class="e-view sample-browser">
25+
<div class="sb-loading">
26+
<svg class="circular" height="40" width="40">
27+
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="6" stroke-miterlimit="10" />
28+
</svg>
29+
</div>
30+
<div class="sb-header" role="banner">
31+
<div class="sb-h-content sb-h-left">
32+
<a href="index.html" style="display:block">
33+
<div class="sb-logo" title="Essential JS 2 for Angular"></div>
34+
</a>
35+
</div>
36+
<div class="sb-h-content sb-h-right" role="main"></div>
37+
</div>
38+
<ng-app class="e-view audjust-sb-header animate-sb-header"></ng-app>
39+
</div>
40+
41+
</body>
42+
<script src="dist/main.bundle.js"></script>
43+
44+
</html>

license

Lines changed: 10 additions & 0 deletions
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

package.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "@syncfusion/ej2-ng-samples",
3+
"version": "0.0.1",
4+
"description": "Essential JS 2 Sample Browser for Angular",
5+
"author": "Syncfusion Inc.",
6+
"license": "SEE LICENSE IN license",
7+
"dependencies": {
8+
"@angular/common": "^2.2.0",
9+
"@angular/compiler": "^2.2.0",
10+
"@angular/core": "^2.2.0",
11+
"@angular/forms": "^2.2.0",
12+
"@angular/http": "^2.2.0",
13+
"@angular/upgrade": "^2.2.0",
14+
"@angular/platform-browser": "^2.2.0",
15+
"@angular/platform-browser-dynamic": "^2.2.0",
16+
"@angular/router": "^3.2.0",
17+
"zone.js": "^0.7.2",
18+
"core-js": "^2.4.1",
19+
"rxjs": "^5.0.0",
20+
"@syncfusion/ej2": "*",
21+
"@syncfusion/ej2-ng-base": "*",
22+
"@syncfusion/ej2-ng-buttons": "*",
23+
"@syncfusion/ej2-ng-lists": "*",
24+
"@syncfusion/ej2-ng-grids": "*",
25+
"@syncfusion/ej2-ng-charts": "*",
26+
"@syncfusion/ej2-ng-calendars": "*",
27+
"@syncfusion/ej2-ng-navigations": "*",
28+
"@syncfusion/ej2-ng-inputs": "*",
29+
"@syncfusion/ej2-ng-popups": "*",
30+
"systemjs": "^0.19.40",
31+
"reflect-metadata": "^0.1.9"
32+
},
33+
"devDependencies": {
34+
"@angular/compiler-cli": "^2.2.0",
35+
"@angular/platform-server": "^2.2.0",
36+
"@types/jasmine": "^2.2.29",
37+
"@types/requirejs": "^2.1.26",
38+
"@types/node": "^6.0.46",
39+
"es6-module-loader": "^0.17.11",
40+
"gulp-clean": "^0.3.2",
41+
"karma-systemjs": "^0.16.0",
42+
"systemjs-plugin-babel": "0.0.17",
43+
"es6-promise": "^3.2.1",
44+
"gulp": "^3.9.1",
45+
"gulp-sass": "^3.1.0",
46+
"gulp-typescript": "^3.1.6",
47+
"requirejs": "^2.3.3",
48+
"typescript": "2.2.2",
49+
"browser-sync": "2.11.2",
50+
"webpack": "2.5.1"
51+
},
52+
"scripts": {
53+
"build": "gulp styles && ngc -p tsconfig-aot.json && gulp bundle",
54+
"serve": "npm run build && gulp serve"
55+
}
56+
}

src/app.module.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ReflectiveInjector } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
4+
import { HttpModule, JsonpModule } from '@angular/http';
5+
import { SBRoutingModule } from './common/sb.router';
6+
7+
import { SBController } from './common/sb.component';
8+
import { LPController } from './common/lp.component';
9+
10+
11+
@NgModule({
12+
imports: [
13+
BrowserModule,
14+
SBRoutingModule,
15+
HttpModule,
16+
JsonpModule
17+
],
18+
declarations: [
19+
SBController,
20+
LPController
21+
],
22+
bootstrap: [SBController],
23+
providers: [
24+
{ provide: LocationStrategy, useClass: HashLocationStrategy },
25+
{ provide: 'sourceFiles', useValue: {files: []} }
26+
27+
],
28+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
29+
})
30+
export class AppModule { }

src/button/button.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#button-control {
2+
width: 100%;
3+
margin-top: 10%;
4+
text-align: center;
5+
}
6+
7+
@media only screen and (max-width: 500px) {
8+
#button-control {
9+
margin-left: -3%;
10+
}
11+
}
12+
13+
.button-section {
14+
width: 80%;
15+
margin: auto;
16+
}
17+
18+
#button-control .col-xs-12 {
19+
margin-bottom: 30px;
20+
}
21+
22+
#button-control .e-btn-icon::before {
23+
position: relative;
24+
top: 1px;
25+
}
26+
27+
.e-play-icon::before {
28+
content: '\e798';
29+
}
30+
31+
.e-pause-icon::before {
32+
content: '\e753';
33+
}
34+
35+
.e-open-icon::before {
36+
content: '\e782';
37+
}
38+
39+
.e-prev-icon::before {
40+
content: '\e797';
41+
}

src/button/button.module.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { NgModule, ModuleWithProviders } from '@angular/core';
2+
import { RouterModule } from '@angular/router';
3+
import { DefaultButtonController } from './default.component';
4+
import { SharedModule } from '../common/shared.module';
5+
6+
export const buttonAppRoutes: Object[] = [
7+
{ path: 'button/default', component: DefaultButtonController, name: 'Default Functionalities', category: 'Button' }
8+
];
9+
10+
export const buttonRouter: ModuleWithProviders = RouterModule.forChild(buttonAppRoutes);
11+
12+
@NgModule({
13+
imports: [buttonRouter, SharedModule],
14+
declarations: [
15+
DefaultButtonController
16+
]
17+
})
18+
export class ButtonModule { }

0 commit comments

Comments
 (0)