Skip to content

Commit b8d97b3

Browse files
committed
feat: demo application UI changes
1 parent 7cc6a8a commit b8d97b3

23 files changed

+2690
-2133
lines changed

README.md

+50-27
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,50 @@
1-
# AnuglarFlow
2-
3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.4.
4-
5-
## Development server
6-
7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8-
9-
## Code scaffolding
10-
11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12-
13-
## Build
14-
15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24-
25-
## Further help
26-
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1+
# Angular Flow
2+
3+
Angular Flow is a component that allows you to create a flow diagram using Angular.
4+
5+
## Installation
6+
7+
```bash
8+
npm install @ngu/flow
9+
```
10+
11+
## Usage
12+
13+
```ts
14+
import { Component } from "@angular/core";
15+
import { FlowComponent, FlowChildComponent } from "@ngu/flow";
16+
17+
@Component({
18+
selector: "app-root",
19+
standalone: true,
20+
imports: [FlowComponent, FlowChildComponent],
21+
template: `
22+
<ngu-flow class="flow">
23+
@for (item of lists; track item.id; let i = $index) {
24+
<div [flowChild]="item" class="child">{{ i }}</div>
25+
}
26+
</ngu-flow>
27+
`,
28+
styles: `
29+
.flow {
30+
min-height: 90vh;
31+
background: #eee;
32+
}
33+
.child {
34+
border: 1px solid #ccc;
35+
width: 100px;
36+
height: 50px;
37+
background: white;
38+
display: flex;
39+
align-items: center;
40+
justify-content: center;
41+
}
42+
`,
43+
})
44+
export class AppComponent {
45+
lists = [
46+
{ id: "1", x: 0, y: 0, deps: [] },
47+
{ id: "2", x: 0, y: 0, deps: ["1"] },
48+
];
49+
}
50+
```

package.json

+20-17
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,32 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"@angular/animations": "^17.0.2",
14-
"@angular/common": "^17.0.2",
15-
"@angular/compiler": "^17.0.2",
16-
"@angular/core": "^17.0.2",
17-
"@angular/forms": "^17.0.2",
18-
"@angular/platform-browser": "^17.0.2",
19-
"@angular/platform-browser-dynamic": "^17.0.2",
20-
"@angular/router": "^17.0.2",
13+
"@angular/animations": "^17.1.1",
14+
"@angular/common": "^17.1.1",
15+
"@angular/compiler": "^17.1.1",
16+
"@angular/core": "^17.1.1",
17+
"@angular/forms": "^17.1.1",
18+
"@angular/platform-browser": "^17.1.1",
19+
"@angular/platform-browser-dynamic": "^17.1.1",
20+
"@angular/router": "^17.1.1",
21+
"@tiptap/core": "^2.1.16",
22+
"@tiptap/starter-kit": "^2.1.16",
23+
"ngx-tiptap": "^9.1.1",
2124
"rxjs": "~7.8.0",
2225
"tslib": "^2.3.0",
2326
"zone.js": "~0.14.2"
2427
},
2528
"devDependencies": {
26-
"@angular-devkit/build-angular": "^17.0.0",
27-
"@angular/cli": "~17.0.0",
28-
"@angular/compiler-cli": "^17.0.2",
29-
"@types/jest": "^29.5.5",
30-
"autoprefixer": "^10.4.15",
29+
"@angular-devkit/build-angular": "^17.1.1",
30+
"@angular/cli": "~17.1.1",
31+
"@angular/compiler-cli": "^17.1.1",
32+
"@types/jest": "^29.5.11",
33+
"autoprefixer": "^10.4.17",
3134
"jest": "^29.7.0",
32-
"jest-preset-angular": "^13.1.2",
33-
"ng-packagr": "^17.0.0",
34-
"postcss": "^8.4.28",
35-
"tailwindcss": "^3.3.3",
35+
"jest-preset-angular": "^14.0.0",
36+
"ng-packagr": "^17.1.2",
37+
"postcss": "^8.4.33",
38+
"tailwindcss": "^3.4.1",
3639
"typescript": "~5.2.2"
3740
},
3841
"jest": {

0 commit comments

Comments
 (0)