@weng-lab/genomebrowser-ui 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/dist/TrackSelect/Data/modifiedHumanTracks.json.d.ts +37222 -0
- package/dist/TrackSelect/DataGrid/CustomToolbar.d.ts +12 -0
- package/dist/TrackSelect/DataGrid/DataGridWrapper.d.ts +2 -0
- package/dist/TrackSelect/DataGrid/columns.d.ts +4 -0
- package/dist/TrackSelect/DataGrid/dataGridHelpers.d.ts +30 -0
- package/dist/TrackSelect/TrackSelect.d.ts +5 -0
- package/dist/TrackSelect/TreeView/TreeViewWrapper.d.ts +2 -0
- package/dist/TrackSelect/TreeView/treeViewHelpers.d.ts +49 -0
- package/dist/TrackSelect/consts.d.ts +21 -0
- package/dist/TrackSelect/store.d.ts +4 -0
- package/dist/TrackSelect/types.d.ts +123 -0
- package/dist/genomebrowser-ui.es.js +2299 -0
- package/dist/genomebrowser-ui.es.js.map +1 -0
- package/dist/lib.d.ts +4 -0
- package/eslint.config.js +30 -0
- package/index.html +14 -0
- package/package.json +47 -0
- package/src/TrackSelect/Data/humanTracks.json +35711 -0
- package/src/TrackSelect/Data/human_chromhmm_biosamples_with_all_urls.json +35716 -0
- package/src/TrackSelect/Data/modifiedHumanTracks.json +37220 -0
- package/src/TrackSelect/DataGrid/CustomToolbar.tsx +160 -0
- package/src/TrackSelect/DataGrid/DataGridWrapper.tsx +119 -0
- package/src/TrackSelect/DataGrid/columns.tsx +134 -0
- package/src/TrackSelect/DataGrid/dataGridHelpers.tsx +114 -0
- package/src/TrackSelect/TrackSelect.tsx +258 -0
- package/src/TrackSelect/TreeView/TreeViewWrapper.tsx +115 -0
- package/src/TrackSelect/TreeView/treeViewHelpers.tsx +428 -0
- package/src/TrackSelect/bug.md +4 -0
- package/src/TrackSelect/consts.ts +92 -0
- package/src/TrackSelect/store.ts +26 -0
- package/src/TrackSelect/types.ts +139 -0
- package/src/lib.ts +8 -0
- package/test/main.tsx +13 -0
- package/tsconfig.app.json +25 -0
- package/tsconfig.json +4 -0
- package/tsconfig.node.json +25 -0
- package/vite.config.ts +66 -0
package/test/main.tsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import TrackSelect from "../src/TrackSelect/TrackSelect"
|
|
2
|
+
import { createRoot } from "react-dom/client";
|
|
3
|
+
|
|
4
|
+
function Main() {
|
|
5
|
+
return (
|
|
6
|
+
<TrackSelect>
|
|
7
|
+
</TrackSelect>
|
|
8
|
+
)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
createRoot(document.getElementById("root")!).render(
|
|
12
|
+
<Main/>
|
|
13
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.cache/genomebrowser/tsconfig.app.tsbuildinfo",
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
|
|
10
|
+
/* Bundler mode */
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
|
|
18
|
+
/* Linting */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["src"]
|
|
25
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["ES2023"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true,
|
|
22
|
+
"noUncheckedSideEffectImports": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["vite.config.ts"]
|
|
25
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import react from "@vitejs/plugin-react";
|
|
2
|
+
import path, { dirname } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
import { defineConfig } from "vite";
|
|
5
|
+
import dts from "vite-plugin-dts";
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
|
|
9
|
+
// https://vite.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [
|
|
12
|
+
react(),
|
|
13
|
+
dts({
|
|
14
|
+
exclude: ["**/*.stories.tsx", "./test"],
|
|
15
|
+
tsconfigPath: "./tsconfig.app.json",
|
|
16
|
+
}),
|
|
17
|
+
],
|
|
18
|
+
define: {
|
|
19
|
+
global: "globalThis",
|
|
20
|
+
},
|
|
21
|
+
resolve: {
|
|
22
|
+
alias: {
|
|
23
|
+
buffer: "buffer",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
optimizeDeps: {
|
|
27
|
+
esbuildOptions: {
|
|
28
|
+
define: {
|
|
29
|
+
global: "globalThis",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
build: {
|
|
34
|
+
lib: {
|
|
35
|
+
entry: path.resolve(__dirname, "src/lib.ts"),
|
|
36
|
+
name: "genomebrowser-ui",
|
|
37
|
+
fileName: (format) => `genomebrowser-ui.${format}.js`,
|
|
38
|
+
formats: ["es"],
|
|
39
|
+
},
|
|
40
|
+
rollupOptions: {
|
|
41
|
+
external: [
|
|
42
|
+
"react",
|
|
43
|
+
"react-dom",
|
|
44
|
+
"@weng-lab/genomebrowser",
|
|
45
|
+
"@mui/material",
|
|
46
|
+
"@emotion/react",
|
|
47
|
+
"@emotion/styled",
|
|
48
|
+
/^@mui\/.*/,
|
|
49
|
+
/^@emotion\/.*/,
|
|
50
|
+
],
|
|
51
|
+
output: {
|
|
52
|
+
globals: {
|
|
53
|
+
react: "React",
|
|
54
|
+
"react-dom": "ReactDOM",
|
|
55
|
+
"@weng-lab/genomebrowser": "GenomeBrowser",
|
|
56
|
+
"@mui/material": "MaterialUI",
|
|
57
|
+
"@emotion/react": "EmotionReact",
|
|
58
|
+
"@emotion/styled": "EmotionStyled",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
sourcemap: true,
|
|
63
|
+
cssCodeSplit: true,
|
|
64
|
+
cssMinify: true,
|
|
65
|
+
},
|
|
66
|
+
});
|