Skip to content

Commit d9f7719

Browse files
committed
kanban new dmeos
1 parent f91d88f commit d9f7719

30 files changed

+3626
-0
lines changed
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"demo": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/demo",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "src/tsconfig.app.json",
21+
"assets": [
22+
"src/assets"
23+
],
24+
"styles": [
25+
"./node_modules/@smart-webcomponents-angular/kanban/styles/smart.base.css",
26+
"./node_modules/@smart-webcomponents-angular/kanban/styles/smart.kanban.css",
27+
"./node_modules/@smart-webcomponents-angular/kanban/styles/smart.common.css",
28+
"src/assets/fonts.css",
29+
"src/assets/styles.css"
30+
],
31+
"scripts": []
32+
},
33+
"configurations": {
34+
"production": {
35+
"fileReplacements": [
36+
{
37+
"replace": "src/environments/environment.ts",
38+
"with": "src/environments/environment.prod.ts"
39+
}
40+
],
41+
"optimization": false,
42+
"outputHashing": "all",
43+
"sourceMap": false,
44+
"extractCss": true,
45+
"namedChunks": false,
46+
"aot": true,
47+
"extractLicenses": true,
48+
"vendorChunk": false,
49+
"buildOptimizer": false
50+
}
51+
}
52+
},
53+
"serve": {
54+
"builder": "@angular-devkit/build-angular:dev-server",
55+
"options": {
56+
"browserTarget": "demo:build"
57+
},
58+
"configurations": {
59+
"production": {
60+
"browserTarget": "demo:build:production"
61+
}
62+
}
63+
},
64+
"extract-i18n": {
65+
"builder": "@angular-devkit/build-angular:extract-i18n",
66+
"options": {
67+
"browserTarget": "demo:build"
68+
}
69+
},
70+
"test": {
71+
"builder": "@angular-devkit/build-angular:karma",
72+
"options": {
73+
"main": "src/test.ts",
74+
"polyfills": "src/polyfills.ts",
75+
"tsConfig": "src/tsconfig.spec.json",
76+
"karmaConfig": "src/karma.conf.js",
77+
"styles": [
78+
"styles.css"
79+
],
80+
"scripts": [],
81+
"assets": [
82+
"src/favicon.ico",
83+
"src/assets"
84+
]
85+
}
86+
},
87+
"lint": {
88+
"builder": "@angular-devkit/build-angular:tslint",
89+
"options": {
90+
"tsConfig": [
91+
"src/tsconfig.app.json",
92+
"src/tsconfig.spec.json"
93+
],
94+
"exclude": [
95+
"**/node_modules/**"
96+
]
97+
}
98+
}
99+
}
100+
},
101+
"demo-e2e": {
102+
"root": "e2e/",
103+
"projectType": "application",
104+
"architect": {
105+
"e2e": {
106+
"builder": "@angular-devkit/build-angular:protractor",
107+
"options": {
108+
"protractorConfig": "e2e/protractor.conf.js",
109+
"devServerTarget": "demo:serve"
110+
}
111+
},
112+
"lint": {
113+
"builder": "@angular-devkit/build-angular:tslint",
114+
"options": {
115+
"tsConfig": "e2e/tsconfig.e2e.json",
116+
"exclude": [
117+
"**/node_modules/**"
118+
]
119+
}
120+
}
121+
}
122+
}
123+
},
124+
"defaultProject": "demo"
125+
}
126+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "angular-kanban-kanban-column-width",
3+
"description": "Angular kanban kanban-column-width example. This example demonstrates commercial components by jQWidgets(https://www.jqwidgets.com/license/)",
4+
"version": "1.0.1",
5+
"homepage": "https://www.htmlelements.com/",
6+
"dependencies": {
7+
"@angular/animations": "~13.3.0",
8+
"@angular/common": "~13.3.0",
9+
"@angular/compiler": "~13.3.0",
10+
"@angular/core": "~13.3.0",
11+
"@angular/elements": "^13.3.2",
12+
"@angular/forms": "~13.3.0",
13+
"@angular/platform-browser": "~13.3.0",
14+
"@angular/platform-browser-dynamic": "~13.3.0",
15+
"@angular/router": "~13.3.0",
16+
"@smart-webcomponents-angular/kanban": "13.1.70",
17+
"rxjs": "~7.5.0",
18+
"tslib": "^2.3.0",
19+
"zone.js": "~0.11.4"
20+
},
21+
"scripts": {
22+
"ng": "ng",
23+
"start": "ng serve",
24+
"build": "ng build",
25+
"test": "ng test",
26+
"lint": "ng lint",
27+
"e2e": "ng e2e"
28+
},
29+
"devDependencies": {
30+
"@angular-devkit/build-angular": "~13.3.0",
31+
"@angular/cli": "~13.3.0",
32+
"@angular/compiler-cli": "~13.3.0",
33+
"@types/jasmine": "~3.10.0",
34+
"@types/node": "^12.11.1",
35+
"jasmine-core": "~4.0.0",
36+
"karma": "~6.3.0",
37+
"karma-chrome-launcher": "~3.1.0",
38+
"karma-coverage": "~2.1.0",
39+
"karma-jasmine": "~4.0.0",
40+
"karma-jasmine-html-reporter": "~1.7.0",
41+
"typescript": "~4.6.2"
42+
}
43+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
html,
2+
body,
3+
app-root,
4+
#kanban {
5+
width: 100%;
6+
height: 100%;
7+
}
8+
9+
html,
10+
body {
11+
margin: 0;
12+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<smart-kanban [addNewColumnWidth]="150" [columnWidth]="350" #kanban id="kanban" [collapsible]="collapsible" [dataSource]="dataSource" [columns]="columns">
2+
</smart-kanban>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { Component, ViewChild, OnInit, AfterViewInit, ViewEncapsulation } from '@angular/core';
2+
import { KanbanComponent } from '@smart-webcomponents-angular/kanban';
3+
import { GetKanbanData } from '../assets/data';
4+
5+
6+
@Component({
7+
selector: 'app-root',
8+
templateUrl: './app.component.html',
9+
styleUrls: ['./app.component.css'],
10+
encapsulation: ViewEncapsulation.None
11+
})
12+
13+
export class AppComponent implements AfterViewInit, OnInit {
14+
@ViewChild('kanban', { read: KanbanComponent, static: false }) kanban: KanbanComponent;
15+
16+
collapsible = true;
17+
dataSource = GetKanbanData();
18+
columns = [
19+
{ label: 'To do', dataField: 'toDo' },
20+
{ label: 'In progress', dataField: 'inProgress' },
21+
{ label: 'Testing', dataField: 'testing' },
22+
{ label: 'Done', dataField: 'done' }
23+
];
24+
25+
ngOnInit(): void {
26+
// onInit code.
27+
}
28+
29+
ngAfterViewInit(): void {
30+
// afterViewInit code.
31+
this.init();
32+
}
33+
34+
init(): void {
35+
// init code.
36+
37+
38+
39+
}
40+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
4+
import { KanbanModule } from '@smart-webcomponents-angular/kanban';
5+
6+
import { AppComponent } from './app.component';
7+
8+
@NgModule({
9+
declarations: [ AppComponent ],
10+
imports: [ BrowserModule, KanbanModule ],
11+
bootstrap: [ AppComponent ],
12+
entryComponents: [ AppComponent ]
13+
})
14+
15+
export class AppModule { }
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
import { enableProdMode } from '@angular/core';
3+
import { AppModule } from './app.module';
4+
5+
enableProdMode();
6+
platformBrowserDynamic().bootstrapModule(AppModule);

0 commit comments

Comments
 (0)