datatable-tree 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +15 -4
  2. package/package.json +7 -1
package/README.md CHANGED
@@ -1,12 +1,11 @@
1
1
  # datatable-tree
2
2
 
3
- I built this component for a real commercial app in response to my frustrations with other options
4
- that were available in 2022. I let AI write the rest of this but haven't unslopped it yet...
3
+ I built [this npm package](https://www.npmjs.com/package/datatable-tree) for a real commercial
4
+ app in response to my frustrations with other options that were available in 2022.
5
5
 
6
6
  ![Screenshot](docs/nestable.gif)
7
7
 
8
- React `DataTable` / `TreeList` / `ListBox` widget stack: sortable, user-resizable, virtualizable
9
- tables and tree grids, with
8
+ Features:
10
9
 
11
10
  - User can **sort & resize columns** (your code can constrain this)
12
11
  - Supports **selections** (single-select, multi-select or no select)
@@ -19,6 +18,18 @@ tables and tree grids, with
19
18
  - **No hard UI-framework or state-library dependencies**
20
19
  - **CSS-variable theming**
21
20
 
21
+ The library provides:
22
+
23
+ | Component | Functionality | Core variant (no wrapper element) |
24
+ |---|---|---|
25
+ | `ListBox` | selection, multiselect, virtualization | `ListCore` |
26
+ | `TreeList` | nesting, expand/collapse | `TreeListCore` |
27
+ | `DataTable` | columns, headings, sorting, resizing | `DataTableCore` |
28
+
29
+ `DataTable` is built upon `DataTableCore` which is built on `TreeListCore` which is built upon `ListBoxCore`.
30
+
31
+ I let AI write the rest of this, sorry.
32
+
22
33
  The library is a layered stack — `ListBox`/`ListCore` (selection) → `TreeList`/`TreeListCore`
23
34
  (nesting) → `DataTable`/`DataTableCore` (columns) — and every layer is exported and usable on
24
35
  its own. Start with the big doc comment in [`src/DataTable.tsx`](src/DataTable.tsx), which
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "datatable-tree",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "React DataTable/TreeList/ListBox widget stack: sortable, resizable, virtualizable tables and tree grids with pluggable reactivity (plain React or MobX) and CSS-variable theming",
5
5
  "license": "MIT",
6
6
  "author": "David Piepgrass",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/qwertie/datatable-tree.git"
10
+ },
11
+ "homepage": "https://qwertie.github.io/datatable-tree/",
12
+ "bugs": "https://github.com/qwertie/datatable-tree/issues",
7
13
  "type": "module",
8
14
  "main": "./dist/index.js",
9
15
  "types": "./dist/index.d.ts",