vanilla-table 0.1.0
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 +55 -0
- package/index.js +20 -0
- package/package.json +32 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 MatΔj Kadlec
|
|
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,55 @@
|
|
|
1
|
+
# π vanilla-table
|
|
2
|
+
|
|
3
|
+
> Lightweight vanilla JavaScript table library with sorting, pagination, filtering, and export capabilities
|
|
4
|
+
|
|
5
|
+
## π§ Under Active Development
|
|
6
|
+
|
|
7
|
+
This package is currently under active development. The full implementation is being refactored and will be available soon.
|
|
8
|
+
|
|
9
|
+
## β¨ Planned Features
|
|
10
|
+
|
|
11
|
+
- **Zero Dependencies** - Pure vanilla JavaScript, no jQuery or other libraries required
|
|
12
|
+
- **Sorting** - Multi-column sorting with customizable sort functions
|
|
13
|
+
- **Pagination** - Client-side pagination with configurable page sizes
|
|
14
|
+
- **Filtering** - Column-based filtering with multiple filter types
|
|
15
|
+
- **Search** - Global search across all columns
|
|
16
|
+
- **Export** - Export to CSV, JSON, and Excel formats
|
|
17
|
+
- **Zebra Striping** - Alternating row colors for better readability
|
|
18
|
+
- **Responsive** - Mobile-friendly table design
|
|
19
|
+
- **Lightweight** - Minimal footprint, inspired by DataTables but much lighter
|
|
20
|
+
|
|
21
|
+
## π¦ Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install vanilla-table
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## π Usage
|
|
28
|
+
|
|
29
|
+
```javascript
|
|
30
|
+
const VanillaTable = require('vanilla-table');
|
|
31
|
+
|
|
32
|
+
// Full implementation coming soon
|
|
33
|
+
const table = new VanillaTable('#my-table', {
|
|
34
|
+
pagination: true,
|
|
35
|
+
pageSize: 10,
|
|
36
|
+
sorting: true,
|
|
37
|
+
filtering: true,
|
|
38
|
+
search: true,
|
|
39
|
+
export: ['csv', 'json', 'excel']
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
table.init();
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## π License
|
|
46
|
+
|
|
47
|
+
MIT Β© matejkadlec
|
|
48
|
+
|
|
49
|
+
## π€ Contributing
|
|
50
|
+
|
|
51
|
+
Contributions, issues, and feature requests are welcome once the initial implementation is complete.
|
|
52
|
+
|
|
53
|
+
## π§ Contact
|
|
54
|
+
|
|
55
|
+
For questions or suggestions, please open an issue on GitHub.
|
package/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vanilla-table
|
|
3
|
+
* Lightweight vanilla JavaScript table library
|
|
4
|
+
*
|
|
5
|
+
* π§ Full implementation coming soon
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
class VanillaTable {
|
|
9
|
+
constructor(selector, options = {}) {
|
|
10
|
+
this.selector = selector;
|
|
11
|
+
this.options = options;
|
|
12
|
+
console.warn('vanilla-table: Full implementation coming soon. This is a placeholder release.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
init() {
|
|
16
|
+
throw new Error('vanilla-table: Full implementation coming soon');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = VanillaTable;
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vanilla-table",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Lightweight vanilla JavaScript table library with sorting, pagination, filtering, and export capabilities",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"table",
|
|
11
|
+
"datatable",
|
|
12
|
+
"vanilla",
|
|
13
|
+
"javascript",
|
|
14
|
+
"sorting",
|
|
15
|
+
"pagination",
|
|
16
|
+
"export",
|
|
17
|
+
"filtering",
|
|
18
|
+
"csv",
|
|
19
|
+
"excel",
|
|
20
|
+
"json"
|
|
21
|
+
],
|
|
22
|
+
"author": "matejkadlec",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/matejkadlec/vanilla-table.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/matejkadlec/vanilla-table/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/matejkadlec/vanilla-table#readme"
|
|
32
|
+
}
|