@liedekef/ftable 1.0.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 +77 -0
- package/ftable.esm.js +4749 -0
- package/ftable.js +4749 -0
- package/ftable.min.js +54 -0
- package/ftable.umd.js +4750 -0
- package/localization/ftable.ar.js +35 -0
- package/localization/ftable.bd.js +33 -0
- package/localization/ftable.ca.js +33 -0
- package/localization/ftable.cz.js +33 -0
- package/localization/ftable.de.js +33 -0
- package/localization/ftable.el.js +33 -0
- package/localization/ftable.es.js +33 -0
- package/localization/ftable.fa.js +33 -0
- package/localization/ftable.fr.js +33 -0
- package/localization/ftable.hr.js +33 -0
- package/localization/ftable.hu.js +33 -0
- package/localization/ftable.id.js +34 -0
- package/localization/ftable.it.js +33 -0
- package/localization/ftable.kr.js +33 -0
- package/localization/ftable.lt.js +33 -0
- package/localization/ftable.nl.js +33 -0
- package/localization/ftable.no.js +33 -0
- package/localization/ftable.pl.js +33 -0
- package/localization/ftable.pt-BR.js +33 -0
- package/localization/ftable.pt-PT.js +32 -0
- package/localization/ftable.ro.js +33 -0
- package/localization/ftable.ru.js +34 -0
- package/localization/ftable.se.js +33 -0
- package/localization/ftable.ta.js +33 -0
- package/localization/ftable.tr.js +33 -0
- package/localization/ftable.ua.js +33 -0
- package/localization/ftable.vi.js +33 -0
- package/localization/ftable.zh-CN.js +33 -0
- package/package.json +44 -0
- package/themes/basic/clone.png +0 -0
- package/themes/basic/close.png +0 -0
- package/themes/basic/column-asc.png +0 -0
- package/themes/basic/column-desc.png +0 -0
- package/themes/basic/column-sortable.png +0 -0
- package/themes/basic/delete.png +0 -0
- package/themes/basic/edit.png +0 -0
- package/themes/basic/ftable_basic.css +358 -0
- package/themes/basic/ftable_basic.less +89 -0
- package/themes/basic/ftable_basic.min.css +1 -0
- package/themes/ftable_theme_base.less +594 -0
- package/themes/lightcolor/add.png +0 -0
- package/themes/lightcolor/bg-thead.png +0 -0
- package/themes/lightcolor/blue/ftable.css +597 -0
- package/themes/lightcolor/blue/ftable.less +88 -0
- package/themes/lightcolor/blue/ftable.min.css +1 -0
- package/themes/lightcolor/blue/loading.gif +0 -0
- package/themes/lightcolor/clone.png +0 -0
- package/themes/lightcolor/close.png +0 -0
- package/themes/lightcolor/column-asc.png +0 -0
- package/themes/lightcolor/column-desc.png +0 -0
- package/themes/lightcolor/column-sortable.png +0 -0
- package/themes/lightcolor/delete.png +0 -0
- package/themes/lightcolor/edit.png +0 -0
- package/themes/lightcolor/ftable_lightcolor_base.less +337 -0
- package/themes/lightcolor/gray/ftable.css +597 -0
- package/themes/lightcolor/gray/ftable.less +88 -0
- package/themes/lightcolor/gray/ftable.min.css +1 -0
- package/themes/lightcolor/gray/loading.gif +0 -0
- package/themes/lightcolor/green/ftable.css +597 -0
- package/themes/lightcolor/green/ftable.less +88 -0
- package/themes/lightcolor/green/ftable.min.css +1 -0
- package/themes/lightcolor/green/loading.gif +0 -0
- package/themes/lightcolor/orange/ftable.css +597 -0
- package/themes/lightcolor/orange/ftable.less +88 -0
- package/themes/lightcolor/orange/ftable.min.css +1 -0
- package/themes/lightcolor/orange/loading.gif +0 -0
- package/themes/lightcolor/red/ftable.css +597 -0
- package/themes/lightcolor/red/ftable.less +88 -0
- package/themes/lightcolor/red/ftable.min.css +1 -0
- package/themes/lightcolor/red/loading.gif +0 -0
- package/themes/metro/add.png +0 -0
- package/themes/metro/blue/ftable.css +574 -0
- package/themes/metro/blue/ftable.less +9 -0
- package/themes/metro/blue/ftable.min.css +1 -0
- package/themes/metro/blue/loading.gif +0 -0
- package/themes/metro/brown/ftable.css +574 -0
- package/themes/metro/brown/ftable.less +9 -0
- package/themes/metro/brown/ftable.min.css +1 -0
- package/themes/metro/brown/loading.gif +0 -0
- package/themes/metro/clone.png +0 -0
- package/themes/metro/close.png +0 -0
- package/themes/metro/column-asc.png +0 -0
- package/themes/metro/column-desc.png +0 -0
- package/themes/metro/column-sortable.png +0 -0
- package/themes/metro/crimson/ftable.css +574 -0
- package/themes/metro/crimson/ftable.less +9 -0
- package/themes/metro/crimson/ftable.min.css +1 -0
- package/themes/metro/crimson/loading.gif +0 -0
- package/themes/metro/darkgray/ftable.css +574 -0
- package/themes/metro/darkgray/ftable.less +9 -0
- package/themes/metro/darkgray/ftable.min.css +1 -0
- package/themes/metro/darkgray/loading.gif +0 -0
- package/themes/metro/darkorange/ftable.css +574 -0
- package/themes/metro/darkorange/ftable.less +9 -0
- package/themes/metro/darkorange/ftable.min.css +1 -0
- package/themes/metro/darkorange/loading.gif +0 -0
- package/themes/metro/delete.png +0 -0
- package/themes/metro/edit.png +0 -0
- package/themes/metro/ftable_metro_base.less +450 -0
- package/themes/metro/green/ftable.css +574 -0
- package/themes/metro/green/ftable.less +9 -0
- package/themes/metro/green/ftable.min.css +1 -0
- package/themes/metro/green/loading.gif +0 -0
- package/themes/metro/lightgray/ftable.css +574 -0
- package/themes/metro/lightgray/ftable.less +9 -0
- package/themes/metro/lightgray/ftable.min.css +1 -0
- package/themes/metro/lightgray/loading.gif +0 -0
- package/themes/metro/pink/ftable.css +574 -0
- package/themes/metro/pink/ftable.less +9 -0
- package/themes/metro/pink/ftable.min.css +1 -0
- package/themes/metro/pink/loading.gif +0 -0
- package/themes/metro/purple/ftable.css +574 -0
- package/themes/metro/purple/ftable.less +9 -0
- package/themes/metro/purple/ftable.min.css +1 -0
- package/themes/metro/purple/loading.gif +0 -0
- package/themes/metro/red/ftable.css +574 -0
- package/themes/metro/red/ftable.less +9 -0
- package/themes/metro/red/ftable.min.css +1 -0
- package/themes/metro/red/loading.gif +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Franky Van Liedekerke
|
|
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,77 @@
|
|
|
1
|
+
What is fTable
|
|
2
|
+
==============
|
|
3
|
+
|
|
4
|
+
FTable is a clean, vanilla JavaScript rewrite of the popular `jTable` plugin, designed for modern web apps.
|
|
5
|
+
|
|
6
|
+
✅ No dependencies
|
|
7
|
+
✅ Dynamic forms & async fields
|
|
8
|
+
✅ Localization
|
|
9
|
+
✅ Responsive
|
|
10
|
+
✅ MIT Licensed
|
|
11
|
+
|
|
12
|
+
## Screenshots
|
|
13
|
+
[](https://github.com/liedekef/ftable/)
|
|
14
|
+
[](https://github.com/liedekef/ftable/)
|
|
15
|
+
|
|
16
|
+
FTable is a clean, vanilla JavaScript rewrite of the popular `jTable` plugin, designed for modern web apps.
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
✅ Create, Read, Update, Delete
|
|
20
|
+
✅ Sorting, Paging, Filtering
|
|
21
|
+
✅ Dynamic dependent fields
|
|
22
|
+
✅ Ajax loading for data and options
|
|
23
|
+
✅ Localization via JTable.setMessages(...)
|
|
24
|
+
✅ Modal forms
|
|
25
|
+
✅ CSV export, Print
|
|
26
|
+
✅ User preferences (localStorage)
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm install @liedekef/ftable
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
As a standalone script:
|
|
37
|
+
```JS
|
|
38
|
+
<link href="ftable/themes/lightcolor/gray/ftable.css" rel="stylesheet">
|
|
39
|
+
<script src="js/ftable/ftable.js"></script>
|
|
40
|
+
|
|
41
|
+
const table = new FTable('#table', {
|
|
42
|
+
actions: {
|
|
43
|
+
listAction: '/api/users',
|
|
44
|
+
createAction: '/api/users/add',
|
|
45
|
+
updateAction: '/api/users/update',
|
|
46
|
+
deleteAction: '/api/users/delete'
|
|
47
|
+
},
|
|
48
|
+
fields: {
|
|
49
|
+
id: { key: true, list: false },
|
|
50
|
+
name: { title: 'Name' },
|
|
51
|
+
email: { title: 'Email', type: 'email' }
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
As a module:
|
|
57
|
+
```JS
|
|
58
|
+
import '@liedekef/ftable/ftable.css';
|
|
59
|
+
import FTable from '@liedekef/ftable';
|
|
60
|
+
|
|
61
|
+
const table = new FTable('#table', {
|
|
62
|
+
actions: {
|
|
63
|
+
listAction: '/api/users',
|
|
64
|
+
createAction: '/api/users/add',
|
|
65
|
+
updateAction: '/api/users/update',
|
|
66
|
+
deleteAction: '/api/users/delete'
|
|
67
|
+
},
|
|
68
|
+
fields: {
|
|
69
|
+
id: { key: true, list: false },
|
|
70
|
+
name: { title: 'Name' },
|
|
71
|
+
email: { title: 'Email', type: 'email' }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Notes
|
|
77
|
+
See the wiki for documentation, demos, themes and more...
|