datatable-tree 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +251 -2
- package/dist/DataTable.d.ts +583 -0
- package/dist/DataTable.js +620 -0
- package/dist/Draggable.d.ts +35 -0
- package/dist/Draggable.js +91 -0
- package/dist/ListBox.d.ts +132 -0
- package/dist/ListBox.js +243 -0
- package/dist/ListVirtualizer.d.ts +59 -0
- package/dist/ListVirtualizer.js +180 -0
- package/dist/TreeList.d.ts +196 -0
- package/dist/TreeList.js +300 -0
- package/dist/config.d.ts +55 -0
- package/dist/config.js +33 -0
- package/dist/datatable.css +161 -0
- package/dist/hooks.d.ts +27 -0
- package/dist/hooks.js +115 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +15 -0
- package/dist/interfaces.d.ts +269 -0
- package/dist/interfaces.js +3 -0
- package/dist/mobx-adapter.d.ts +12 -0
- package/dist/mobx-adapter.js +21 -0
- package/dist/reactivity.d.ts +112 -0
- package/dist/reactivity.js +155 -0
- package/dist/styles.d.ts +64 -0
- package/dist/styles.js +86 -0
- package/dist/theme.d.ts +160 -0
- package/dist/theme.js +239 -0
- package/dist/util.d.ts +28 -0
- package/dist/util.js +45 -0
- package/package.json +143 -4
- package/src/DataTable.tsx +1332 -0
- package/src/Draggable.tsx +133 -0
- package/src/ListBox.tsx +423 -0
- package/src/ListVirtualizer.ts +234 -0
- package/src/TreeList.tsx +590 -0
- package/src/config.tsx +96 -0
- package/src/css.d.ts +1 -0
- package/src/datatable.css +161 -0
- package/src/hooks.ts +138 -0
- package/src/index.ts +15 -0
- package/src/interfaces.ts +309 -0
- package/src/mobx-adapter.ts +24 -0
- package/src/reactivity.ts +222 -0
- package/src/styles.tsx +102 -0
- package/src/theme.ts +346 -0
- package/src/util.ts +60 -0
package/package.json
CHANGED
|
@@ -1,6 +1,145 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datatable-tree",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
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
|
+
"license": "MIT",
|
|
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",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./mobx": {
|
|
22
|
+
"types": "./dist/mobx-adapter.d.ts",
|
|
23
|
+
"default": "./dist/mobx-adapter.js"
|
|
24
|
+
},
|
|
25
|
+
"./datatable.css": "./dist/datatable.css",
|
|
26
|
+
"./*.js": {
|
|
27
|
+
"types": "./dist/*.d.ts",
|
|
28
|
+
"default": "./dist/*.js"
|
|
29
|
+
},
|
|
30
|
+
"./*": {
|
|
31
|
+
"types": "./dist/*.d.ts",
|
|
32
|
+
"default": "./dist/*.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"src",
|
|
38
|
+
"!src/tests"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc -p tsconfig.build.json && node -e \"require('fs').copyFileSync('src/datatable.css', 'dist/datatable.css')\"",
|
|
42
|
+
"prepack": "npm run build",
|
|
43
|
+
"test": "vitest --reporter=dot --watch=false",
|
|
44
|
+
"test:watch": "vitest",
|
|
45
|
+
"testpack": "testpack \"src/tests/**\" \"scripts/**\" tsconfig.json tsconfig.testpack.json vitest.config.ts",
|
|
46
|
+
"safePublish": "npm run testpack && npm publish",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"dev": "vite",
|
|
49
|
+
"build:docs": "vite build && typedoc && node scripts/postbuild-docs.mjs",
|
|
50
|
+
"serve": "npm run build:docs && vite preview"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"react",
|
|
54
|
+
"datatable",
|
|
55
|
+
"data-grid",
|
|
56
|
+
"treegrid",
|
|
57
|
+
"tree",
|
|
58
|
+
"table",
|
|
59
|
+
"listbox",
|
|
60
|
+
"virtualization",
|
|
61
|
+
"mobx"
|
|
62
|
+
],
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"holders": "^5.0.0"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"mobx": ">=6",
|
|
68
|
+
"mobx-react": ">=7",
|
|
69
|
+
"react": ">=16.14"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"mobx": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"mobx-react": {
|
|
76
|
+
"optional": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@testing-library/dom": "^10.4.1",
|
|
81
|
+
"@testing-library/jest-dom": "^6.4.0",
|
|
82
|
+
"@testing-library/react": "^16.0.0",
|
|
83
|
+
"@types/markdown-it": "^14.2.0",
|
|
84
|
+
"@types/react": "^18.3.0",
|
|
85
|
+
"@types/react-dom": "^18.3.0",
|
|
86
|
+
"jsdom": "^24.0.0",
|
|
87
|
+
"markdown-it": "^15.0.1",
|
|
88
|
+
"mobx": "^6.13.0",
|
|
89
|
+
"mobx-react": "^7.6.0",
|
|
90
|
+
"react": "^18.3.1",
|
|
91
|
+
"react-dom": "^18.3.1",
|
|
92
|
+
"shiki": "^4.4.3",
|
|
93
|
+
"sucrase": "^3.35.1",
|
|
94
|
+
"testpack-cli": "^1.1.4",
|
|
95
|
+
"typedoc": "^0.28.20",
|
|
96
|
+
"typescript": "^5.5.0",
|
|
97
|
+
"vite": "^8.2.2",
|
|
98
|
+
"vitest": "^4.1.11"
|
|
99
|
+
},
|
|
100
|
+
"//testpack": [
|
|
101
|
+
"`npm run testpack` packs the package, installs the tarball into ../datatable-tree-testpack,",
|
|
102
|
+
"copies the unit tests there, rewrites their relative imports into package imports, and runs",
|
|
103
|
+
"the suite. That catches mistakes that `npm test` cannot detect: a module missing from `files`,",
|
|
104
|
+
"an `exports` entry that resolves to a path that does not exist, a runtime import that",
|
|
105
|
+
"`dependencies` never declares, or `.d.ts` files that do not typecheck the way the source does."
|
|
106
|
+
],
|
|
107
|
+
"testpack": {
|
|
108
|
+
"//test-files": [
|
|
109
|
+
"The test file patterns are passed as arguments to the `testpack` script above. Defining them",
|
|
110
|
+
"here instead does not work in testpack 1.1.4, which is the latest release: it fills in its",
|
|
111
|
+
"own defaults for `test-files` on the command line before merging, and the command line wins.",
|
|
112
|
+
"So this needs a fix upstream, not a version bump. `testpack --show-json` prints the key."
|
|
113
|
+
],
|
|
114
|
+
"keep": [
|
|
115
|
+
"@testing-library/*",
|
|
116
|
+
"@types/react",
|
|
117
|
+
"@types/react-dom",
|
|
118
|
+
"jsdom",
|
|
119
|
+
"mobx",
|
|
120
|
+
"mobx-react",
|
|
121
|
+
"react",
|
|
122
|
+
"react-dom",
|
|
123
|
+
"typescript",
|
|
124
|
+
"vitest"
|
|
125
|
+
],
|
|
126
|
+
"packagejson": {
|
|
127
|
+
"scripts": {
|
|
128
|
+
"test": "node scripts/check-package-deps.mjs && node scripts/check-node-loadable.mjs && tsc -p tsconfig.testpack.json && vitest --reporter=dot --watch=false"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"//replace-import": [
|
|
132
|
+
"Applied in order; the first pattern that changes the string wins. Between them the tests",
|
|
133
|
+
"exercise all three ways a consumer can reach this package, so a broken `exports` entry fails",
|
|
134
|
+
"the run: the root entry point, the documented `datatable-tree/mobx` subpath, and a deep",
|
|
135
|
+
"`./*.js` subpath. `$P` expands to the package name."
|
|
136
|
+
],
|
|
137
|
+
"replace-import": [
|
|
138
|
+
"|\\.\\./mobx-adapter\\.js|$P/mobx|",
|
|
139
|
+
"|\\.\\./ListVirtualizer\\.js|$P/ListVirtualizer.js|",
|
|
140
|
+
"|\\.\\.[/\\\\].*|$P|",
|
|
141
|
+
"|\\.\\.|$P|"
|
|
142
|
+
],
|
|
143
|
+
"verbose": true
|
|
144
|
+
}
|
|
145
|
+
}
|