@guiexpert/angular-table 19.0.38 → 19.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -0
- package/angular.json +40 -0
- package/package.json +30 -17
- package/projects/angular-table/README.md +119 -0
- package/projects/angular-table/dist/index.mjs +21485 -0
- package/projects/angular-table/ng-package.json +7 -0
- package/projects/angular-table/package.json +16 -0
- package/projects/angular-table/src/lib/angular-table.component.spec.ts +23 -0
- package/projects/angular-table/src/lib/angular-table.service.spec.ts +16 -0
- package/projects/angular-table/src/lib/component-renderer.if.ts +12 -0
- package/projects/angular-table/src/lib/service/dom-service.ts +63 -0
- package/projects/angular-table/src/lib/service/render-wrapper-factory.ts +24 -0
- package/projects/angular-table/src/lib/service/renderer-wrapper.ts +86 -0
- package/projects/angular-table/src/lib/table.component.css +350 -0
- package/projects/angular-table/src/lib/table.component.ts +167 -0
- package/{public-api.d.ts → projects/angular-table/src/public-api.ts} +4 -0
- package/projects/angular-table/tsconfig.lib.json +14 -0
- package/projects/angular-table/tsconfig.lib.prod.json +10 -0
- package/projects/angular-table/tsconfig.spec.json +14 -0
- package/tsconfig.json +38 -0
- package/fesm2022/guiexpert-angular-table.mjs +0 -237
- package/fesm2022/guiexpert-angular-table.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/component-renderer.if.d.ts +0 -4
- package/lib/service/dom-service.d.ts +0 -17
- package/lib/service/render-wrapper-factory.d.ts +0 -13
- package/lib/service/renderer-wrapper.d.ts +0 -14
- package/lib/table.component.d.ts +0 -43
package/.editorconfig
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
max_line_length = off
|
|
16
|
+
trim_trailing_whitespace = false
|
package/angular.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"angular-table": {
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"root": "projects/angular-table",
|
|
9
|
+
"sourceRoot": "projects/angular-table/src",
|
|
10
|
+
"prefix": "lib",
|
|
11
|
+
"architect": {
|
|
12
|
+
"build": {
|
|
13
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
14
|
+
"options": {
|
|
15
|
+
"project": "projects/angular-table/ng-package.json"
|
|
16
|
+
},
|
|
17
|
+
"configurations": {
|
|
18
|
+
"production": {
|
|
19
|
+
"tsConfig": "projects/angular-table/tsconfig.lib.prod.json"
|
|
20
|
+
},
|
|
21
|
+
"development": {
|
|
22
|
+
"tsConfig": "projects/angular-table/tsconfig.lib.json"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"defaultConfiguration": "production"
|
|
26
|
+
},
|
|
27
|
+
"test": {
|
|
28
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
29
|
+
"options": {
|
|
30
|
+
"tsConfig": "projects/angular-table/tsconfig.spec.json",
|
|
31
|
+
"polyfills": [
|
|
32
|
+
"zone.js",
|
|
33
|
+
"zone.js/testing"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guiexpert/angular-table",
|
|
3
|
-
"version": "19.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "19.1.51",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"inst": "pnpm install -f",
|
|
6
|
+
"ng": "ng",
|
|
7
|
+
"start": "ng serve",
|
|
8
|
+
"build": "ng build",
|
|
9
|
+
"watch": "ng build --watch --configuration development",
|
|
10
|
+
"test": "ng test",
|
|
11
|
+
"npm-update-table": "pnpm update @guiexpert/table",
|
|
12
|
+
"npm-pub": "npm publish"
|
|
7
13
|
},
|
|
14
|
+
"private": false,
|
|
8
15
|
"dependencies": {
|
|
9
|
-
"
|
|
16
|
+
"@angular/animations": "^19.0.0",
|
|
17
|
+
"@angular/common": "^19.0.0",
|
|
18
|
+
"@angular/compiler": "^19.0.0",
|
|
19
|
+
"@angular/core": "^19.0.0",
|
|
20
|
+
"@angular/forms": "^19.0.0",
|
|
21
|
+
"@angular/platform-browser": "^19.0.0",
|
|
22
|
+
"@angular/platform-browser-dynamic": "^19.0.0",
|
|
23
|
+
"@angular/router": "^19.0.0",
|
|
24
|
+
"@guiexpert/table": "^1.1.51",
|
|
25
|
+
"rxjs": "~7.8.0",
|
|
26
|
+
"tslib": "^2.3.0",
|
|
27
|
+
"zone.js": "~0.15.0"
|
|
10
28
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./index.d.ts",
|
|
20
|
-
"default": "./fesm2022/guiexpert-angular-table.mjs"
|
|
21
|
-
}
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@angular-devkit/build-angular": "^19.0.0",
|
|
31
|
+
"@angular/cli": "^19.0.0",
|
|
32
|
+
"@angular/compiler-cli": "^19.0.0",
|
|
33
|
+
"ng-packagr": "^19.0.0",
|
|
34
|
+
"typescript": "~5.6.3"
|
|
22
35
|
}
|
|
23
|
-
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# @guiexpert/angular-table
|
|
2
|
+
|
|
3
|
+
This is the angular component of the GuiExpert Table Project.
|
|
4
|
+
|
|
5
|
+
## Become a master at creating web applications with large tables
|
|
6
|
+
|
|
7
|
+
This is the UI-agnostic table component for your next web app. 😊
|
|
8
|
+
|
|
9
|
+
<img src="https://raw.githubusercontent.com/guiexperttable/website-astro/main/src/assets/screens/heatmap.png" width="50%">
|
|
10
|
+
|
|
11
|
+
### Version compatibility
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
| Angular | @guiexpert/angular-table |
|
|
15
|
+
|:--------|:-------------------------|
|
|
16
|
+
| 19.x.x | ^19.0.0 |
|
|
17
|
+
| 18.x.x | ^18.0.0 |
|
|
18
|
+
| 17.x.x | ^17.0.0 |
|
|
19
|
+
| 16.x.x | ^16.0.7 |
|
|
20
|
+
| 15.x.x | ^15.0.2 |
|
|
21
|
+
| 14.x.x | ^14.0.3 |
|
|
22
|
+
|
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
- Handle large datasets easily
|
|
27
|
+
- Excellent performance for large tables by vertical and horizontal virtual scrolling
|
|
28
|
+
- Fully-featured (advanced sorting and filtering)
|
|
29
|
+
- Highly customizable orderData grid
|
|
30
|
+
- Outstanding performance
|
|
31
|
+
- No third-party dependencies
|
|
32
|
+
- UI-agnostic
|
|
33
|
+
- Column Interactions (resize, reorder)
|
|
34
|
+
- Sorting Rows
|
|
35
|
+
- Row, Column, and Range Selection
|
|
36
|
+
- Single and Multi Selection
|
|
37
|
+
- UI-agnostic
|
|
38
|
+
- Row and Column Spanning
|
|
39
|
+
- Fixed Columns (Left and Right)
|
|
40
|
+
- Tree table (Hierarchical View)
|
|
41
|
+
- Accessibility support: Keyboard Shortcuts
|
|
42
|
+
- Custom Filtering
|
|
43
|
+
- In-place Cell Editing
|
|
44
|
+
- Userdefined Key and Mouse Events
|
|
45
|
+
- Customizable Look & Feel (via CSS variables)
|
|
46
|
+
- Row sorting
|
|
47
|
+
- Column Reordering (Drag and Drop)
|
|
48
|
+
- State Persistence (Row Sorting, Column Order, Selection)
|
|
49
|
+
- Customizable Cell Contents via Renderer for Header, Body and Footer
|
|
50
|
+
- Full control over the HTML structure and style
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Links
|
|
54
|
+
|
|
55
|
+
- [Demos](https://gui.expert/demos)
|
|
56
|
+
- [Documentation](https://gui.expert/doc)
|
|
57
|
+
- [API](https://gui.expert/api)
|
|
58
|
+
|
|
59
|
+
## Get Started
|
|
60
|
+
|
|
61
|
+
Add the following two NPM packages to your existing angular project (run this in your project root directory):
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
npm install --save @guiexpert/table @guiexpert/angular-table
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Import the (standalone) TableComponent in your angular module:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
@NgModule({
|
|
71
|
+
imports: [
|
|
72
|
+
CommonModule,
|
|
73
|
+
TableComponent, ...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Add guiexpert-table component to a template:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
<guiexpert-table
|
|
80
|
+
[tableModel]="tableModel"
|
|
81
|
+
[tableOptions]="tableOptions"
|
|
82
|
+
class="table-div"
|
|
83
|
+
></guiexpert-table>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Add two properties (tableModel and tableOptions) to the component:
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
import {
|
|
91
|
+
TableFactory,
|
|
92
|
+
TableModelIf,
|
|
93
|
+
TableOptions,
|
|
94
|
+
TableOptionsIf
|
|
95
|
+
} from "@guiexpert/table";
|
|
96
|
+
|
|
97
|
+
tableModel: TableModelIf = TableFactory.createTableModel({
|
|
98
|
+
headerData: [
|
|
99
|
+
['Header 1', 'Header 2']
|
|
100
|
+
],
|
|
101
|
+
bodyData: [
|
|
102
|
+
['Text 1a', 'Text 2a'],
|
|
103
|
+
['Text 1b', 'Text 2b'],
|
|
104
|
+
]
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
tableOptions = {
|
|
108
|
+
...new TableOptions(),
|
|
109
|
+
hoverColumnVisible: false,
|
|
110
|
+
defaultRowHeights: {
|
|
111
|
+
header: 40,
|
|
112
|
+
body: 34,
|
|
113
|
+
footer: 0
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
There are numerous possibilities to create table models.
|
|
119
|
+
Please refer to the [Documentation](https://gui.expert/doc) for further information or the [Demo](https://gui.expert/demos) section for examples.
|