Skip to content

Commit 527134f

Browse files
authored
Add files via upload
1 parent 4afa9dc commit 527134f

14 files changed

+559
-11
lines changed

angular.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"app": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/app",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": [
20+
"zone.js"
21+
],
22+
"tsConfig": "tsconfig.app.json",
23+
"assets": [
24+
"src/favicon.ico",
25+
"src/assets"
26+
],
27+
"styles": [
28+
"src/styles.css"
29+
],
30+
"scripts": []
31+
},
32+
"configurations": {
33+
"production": {
34+
"budgets": [
35+
{
36+
"type": "initial",
37+
"maximumWarning": "500kb",
38+
"maximumError": "1mb"
39+
},
40+
{
41+
"type": "anyComponentStyle",
42+
"maximumWarning": "2kb",
43+
"maximumError": "4kb"
44+
}
45+
],
46+
"outputHashing": "all"
47+
},
48+
"development": {
49+
"buildOptimizer": false,
50+
"optimization": false,
51+
"vendorChunk": true,
52+
"extractLicenses": false,
53+
"sourceMap": true,
54+
"namedChunks": true
55+
}
56+
},
57+
"defaultConfiguration": "production"
58+
},
59+
"serve": {
60+
"builder": "@angular-devkit/build-angular:dev-server",
61+
"configurations": {
62+
"production": {
63+
"browserTarget": "app:build:production"
64+
},
65+
"development": {
66+
"browserTarget": "app:build:development"
67+
}
68+
},
69+
"defaultConfiguration": "development"
70+
},
71+
"extract-i18n": {
72+
"builder": "@angular-devkit/build-angular:extract-i18n",
73+
"options": {
74+
"browserTarget": "app:build"
75+
}
76+
},
77+
"test": {
78+
"builder": "@angular-devkit/build-angular:karma",
79+
"options": {
80+
"polyfills": [
81+
"zone.js",
82+
"zone.js/testing"
83+
],
84+
"tsConfig": "tsconfig.spec.json",
85+
"assets": [
86+
"src/favicon.ico",
87+
"src/assets"
88+
],
89+
"styles": [
90+
"src/styles.css"
91+
],
92+
"scripts": []
93+
}
94+
}
95+
}
96+
}
97+
}
98+
}

package.json

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
{
2-
"name": "myvueapp",
3-
"private": true,
2+
"name": "app",
43
"version": "0.0.0",
5-
"type": "module",
64
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build",
9-
"preview": "vite preview"
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"watch": "ng build --watch --configuration development",
9+
"test": "ng test"
1010
},
11+
"private": true,
1112
"dependencies": {
12-
"@syncfusion/ej2-vue-layouts": "^23.2.4",
13-
"@syncfusion/ej2-vue-lists": "^23.2.4",
14-
"vue": "^3.3.11"
13+
"@angular/animations": "^16.0.0",
14+
"@angular/common": "^16.0.0",
15+
"@angular/compiler": "^16.0.0",
16+
"@angular/core": "^16.0.0",
17+
"@angular/forms": "^16.0.0",
18+
"@angular/platform-browser": "^16.0.0",
19+
"@angular/platform-browser-dynamic": "^16.0.0",
20+
"@angular/router": "^16.0.0",
21+
"@syncfusion/ej2-angular-dropdowns": "^24.1.43",
22+
"@syncfusion/ej2-angular-inputs": "^24.1.41",
23+
"@syncfusion/ej2-angular-kanban": "^24.1.46",
24+
"rxjs": "~7.8.0",
25+
"tslib": "^2.3.0",
26+
"zone.js": "~0.13.0"
1527
},
1628
"devDependencies": {
17-
"@vitejs/plugin-vue": "^4.5.2",
18-
"vite": "^5.0.8"
29+
"@angular-devkit/build-angular": "^16.0.1",
30+
"@angular/cli": "~16.0.1",
31+
"@angular/compiler-cli": "^16.0.0",
32+
"@types/jasmine": "~4.3.0",
33+
"jasmine-core": "~4.6.0",
34+
"karma": "~6.4.0",
35+
"karma-chrome-launcher": "~3.2.0",
36+
"karma-coverage": "~2.2.0",
37+
"karma-jasmine": "~5.1.0",
38+
"karma-jasmine-html-reporter": "~2.0.0",
39+
"typescript": "~5.0.2"
1940
}
2041
}

src/app/app.component.css

Whitespace-only changes.

src/app/app.component.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<div style="padding: 10px;">
2+
<button class="e-btn" (click)="addNewCard()">Add new card</button>
3+
</div>
4+
<ejs-kanban #kanbanObj keyField='Status' [dataSource]='localData' [cardSettings]='cardSettings'>
5+
<e-columns>
6+
<e-column headerText='To Do' keyField='Open'></e-column>
7+
<e-column headerText='In Progress' keyField='InProgress'></e-column>
8+
<e-column headerText='Testing' keyField='Testing' ></e-column>
9+
<e-column headerText='Done' keyField='Close'></e-column>
10+
</e-columns>
11+
<ng-template #dialogSettingsTemplate let-localData>
12+
<table>
13+
<tbody>
14+
<tr>
15+
<td class="e-label">ID</td>
16+
<td>
17+
<div class="e-float-input e-control-wrapper">
18+
<input class="e-field" name="ID" type="text" value="{{localData.Id}}" disabled/>
19+
</div>
20+
</td>
21+
</tr>
22+
<tr>
23+
<td class="e-label">Status</td>
24+
<td>
25+
<ejs-dropdownlist class="e-field" name="Status" [dataSource]="statusData"
26+
value="{{localData.Status}}"></ejs-dropdownlist>
27+
</td>
28+
</tr>
29+
<tr>
30+
<td class="e-label">Assignee</td>
31+
<td>
32+
<ejs-dropdownlist class="e-field" name="Assignee" [dataSource]="assigneeData"
33+
value="{{localData.Assignee}}"></ejs-dropdownlist>
34+
</td>
35+
</tr>
36+
<tr>
37+
<td class="e-label">Priority</td>
38+
<td>
39+
<ejs-dropdownlist class="e-field" name="Priority" [dataSource]="priorityData"
40+
value="{{localData.Priority}}"></ejs-dropdownlist>
41+
</td>
42+
</tr>
43+
<tr>
44+
<td class="e-label">Summary</td>
45+
<td>
46+
<div class="e-float-input e-control-wrapper">
47+
<textarea class="e-field" type="text" name="Summary" value="{{localData.Summary}}"></textarea>
48+
</div>
49+
</td>
50+
</tr>
51+
</tbody>
52+
</table>
53+
</ng-template>
54+
</ejs-kanban>

src/app/app.component.spec.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { TestBed } from '@angular/core/testing';
2+
import { AppComponent } from './app.component';
3+
4+
describe('AppComponent', () => {
5+
beforeEach(() => TestBed.configureTestingModule({
6+
declarations: [AppComponent]
7+
}));
8+
9+
it('should create the app', () => {
10+
const fixture = TestBed.createComponent(AppComponent);
11+
const app = fixture.componentInstance;
12+
expect(app).toBeTruthy();
13+
});
14+
15+
it(`should have as title 'app'`, () => {
16+
const fixture = TestBed.createComponent(AppComponent);
17+
const app = fixture.componentInstance;
18+
expect(app.title).toEqual('app');
19+
});
20+
21+
it('should render title', () => {
22+
const fixture = TestBed.createComponent(AppComponent);
23+
fixture.detectChanges();
24+
const compiled = fixture.nativeElement as HTMLElement;
25+
expect(compiled.querySelector('.content span')?.textContent).toContain('app app is running!');
26+
});
27+
});

0 commit comments

Comments
 (0)