nitgrid 0.0.1
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/LICENSE +21 -0
- package/README.md +61 -0
- package/index.js +2 -0
- package/package.json +15 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 [Dein Name]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# NITGrid (Native Interface Toolkit)
|
|
2
|
+
|
|
3
|
+
NITGrid is a highly optimized, dynamic, and responsive wrapper component for AG-Grid in Angular applications. It provides a standardized, enterprise-ready interface for data presentation, filtering, and view management.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 📱 **Fully Responsive Toolbar:** Adaptive layouts for desktop and mobile devices.
|
|
8
|
+
- 💾 **View Management:** Users can customize column order, visibility, and pinning, and save these configurations locally.
|
|
9
|
+
- 📊 **Advanced Context Menus:** Integrated column management directly via right-click.
|
|
10
|
+
- 📥 **Native Excel Export:** Seamlessly export current grid states (including active filters and overrides) to `.xlsx` using SheetJS.
|
|
11
|
+
- 🔍 **Dynamic Filtering:** Built-in support for dates, numbers, text, and set filters with an intuitive breadcrumb navigation.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install NITGrid via npm:
|
|
16
|
+
|
|
17
|
+
\`\`\`bash
|
|
18
|
+
npm install nitgrid
|
|
19
|
+
\`\`\`
|
|
20
|
+
|
|
21
|
+
_Note: NITGrid requires `ag-grid-community`, `ag-grid-angular`, and `xlsx` as peer dependencies._
|
|
22
|
+
|
|
23
|
+
## Basic Usage
|
|
24
|
+
|
|
25
|
+
Import the component into your standalone Angular component:
|
|
26
|
+
|
|
27
|
+
\`\`\`typescript
|
|
28
|
+
import { Component } from '@angular/core';
|
|
29
|
+
import { NITGridComponent } from 'nitgrid';
|
|
30
|
+
|
|
31
|
+
@Component({
|
|
32
|
+
selector: 'app-data-view',
|
|
33
|
+
standalone: true,
|
|
34
|
+
imports: [NITGridComponent],
|
|
35
|
+
template: \`
|
|
36
|
+
<wg-nitgrid
|
|
37
|
+
[rowData]="data"
|
|
38
|
+
[columnDefs]="columns"
|
|
39
|
+
title="Employee Directory"
|
|
40
|
+
gridName="emp_dir_grid"
|
|
41
|
+
userName="current_user"
|
|
42
|
+
[excelExport]="true">
|
|
43
|
+
</wg-nitgrid>
|
|
44
|
+
\`
|
|
45
|
+
})
|
|
46
|
+
export class DataViewComponent {
|
|
47
|
+
data = [
|
|
48
|
+
{ id: 1, name: 'John Doe', role: 'Developer' },
|
|
49
|
+
// ...
|
|
50
|
+
];
|
|
51
|
+
columns = [
|
|
52
|
+
{ field: 'id', headerName: 'ID' },
|
|
53
|
+
{ field: 'name', headerName: 'Name' },
|
|
54
|
+
{ field: 'role', headerName: 'Role' }
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
\`\`\`
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nitgrid",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Native Interface Toolkit - Optimized grid architecture for Angular",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"angular",
|
|
8
|
+
"grid",
|
|
9
|
+
"table",
|
|
10
|
+
"toolkit",
|
|
11
|
+
"data"
|
|
12
|
+
],
|
|
13
|
+
"author": "JE",
|
|
14
|
+
"license": "MIT"
|
|
15
|
+
}
|