@jbrowse/plugin-spreadsheet-view 3.6.4 → 3.7.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/dist/SpreadsheetView/ImportWizard.js +1 -1
- package/dist/SpreadsheetView/SpreadsheetModel.js +1 -1
- package/dist/SpreadsheetView/components/SpreadsheetDataGrid.js +1 -1
- package/esm/SpreadsheetView/ImportWizard.js +1 -1
- package/esm/SpreadsheetView/SpreadsheetModel.js +1 -1
- package/esm/SpreadsheetView/components/SpreadsheetDataGrid.js +1 -1
- package/package.json +5 -5
|
@@ -68,7 +68,7 @@ function getAdapterLoc(adapter) {
|
|
|
68
68
|
adapter.bedGzLocation ||
|
|
69
69
|
adapter.bedpeLocation);
|
|
70
70
|
}
|
|
71
|
-
const fileTypesRegexp = new RegExp(
|
|
71
|
+
const fileTypesRegexp = new RegExp(String.raw `\.(${fileTypes.join('|')})(\.gz)?$`, 'i');
|
|
72
72
|
function x() { }
|
|
73
73
|
function stateModelFactory() {
|
|
74
74
|
return mobx_state_tree_1.types
|
|
@@ -84,7 +84,7 @@ function stateModelFactory() {
|
|
|
84
84
|
var _a;
|
|
85
85
|
const { visibleRowFlags } = self;
|
|
86
86
|
return visibleRowFlags
|
|
87
|
-
? (_a = self.rows) === null || _a === void 0 ? void 0 : _a.filter((_f, idx) =>
|
|
87
|
+
? (_a = self.rows) === null || _a === void 0 ? void 0 : _a.filter((_f, idx) => visibleRowFlags[idx] !== false)
|
|
88
88
|
: self.rows;
|
|
89
89
|
},
|
|
90
90
|
}))
|
|
@@ -6,7 +6,7 @@ const mobx_react_1 = require("mobx-react");
|
|
|
6
6
|
const SpreadsheetDataGrid = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
7
7
|
const { rows, dataGridColumns, visibleColumns } = model;
|
|
8
8
|
const apiRef = (0, x_data_grid_1.useGridApiRef)();
|
|
9
|
-
return rows && dataGridColumns ? ((0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { apiRef: apiRef, checkboxSelection: true, disableRowSelectionOnClick: true, columnHeaderHeight: 35, columnVisibilityModel: visibleColumns, onFilterModelChange: () => {
|
|
9
|
+
return rows && dataGridColumns ? ((0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { "data-testid": "spreadsheet-view-data-grid", apiRef: apiRef, checkboxSelection: true, disableRowSelectionOnClick: true, columnHeaderHeight: 35, columnVisibilityModel: visibleColumns, onFilterModelChange: () => {
|
|
10
10
|
setTimeout(() => {
|
|
11
11
|
if (apiRef.current) {
|
|
12
12
|
model.setVisibleRows(apiRef.current.state.visibleRowsLookup);
|
|
@@ -32,7 +32,7 @@ function getAdapterLoc(adapter) {
|
|
|
32
32
|
adapter.bedGzLocation ||
|
|
33
33
|
adapter.bedpeLocation);
|
|
34
34
|
}
|
|
35
|
-
const fileTypesRegexp = new RegExp(
|
|
35
|
+
const fileTypesRegexp = new RegExp(String.raw `\.(${fileTypes.join('|')})(\.gz)?$`, 'i');
|
|
36
36
|
function x() { }
|
|
37
37
|
export default function stateModelFactory() {
|
|
38
38
|
return types
|
|
@@ -78,7 +78,7 @@ export default function stateModelFactory() {
|
|
|
78
78
|
var _a;
|
|
79
79
|
const { visibleRowFlags } = self;
|
|
80
80
|
return visibleRowFlags
|
|
81
|
-
? (_a = self.rows) === null || _a === void 0 ? void 0 : _a.filter((_f, idx) =>
|
|
81
|
+
? (_a = self.rows) === null || _a === void 0 ? void 0 : _a.filter((_f, idx) => visibleRowFlags[idx] !== false)
|
|
82
82
|
: self.rows;
|
|
83
83
|
},
|
|
84
84
|
}))
|
|
@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
|
|
|
4
4
|
const SpreadsheetDataGrid = observer(function ({ model, }) {
|
|
5
5
|
const { rows, dataGridColumns, visibleColumns } = model;
|
|
6
6
|
const apiRef = useGridApiRef();
|
|
7
|
-
return rows && dataGridColumns ? (_jsx(DataGrid, { apiRef: apiRef, checkboxSelection: true, disableRowSelectionOnClick: true, columnHeaderHeight: 35, columnVisibilityModel: visibleColumns, onFilterModelChange: () => {
|
|
7
|
+
return rows && dataGridColumns ? (_jsx(DataGrid, { "data-testid": "spreadsheet-view-data-grid", apiRef: apiRef, checkboxSelection: true, disableRowSelectionOnClick: true, columnHeaderHeight: 35, columnVisibilityModel: visibleColumns, onFilterModelChange: () => {
|
|
8
8
|
setTimeout(() => {
|
|
9
9
|
if (apiRef.current) {
|
|
10
10
|
model.setVisibleRows(apiRef.current.state.visibleRowsLookup);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-spreadsheet-view",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "JBrowse 2 spreadsheet view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@gmod/bgzf-filehandle": "^4.0.0",
|
|
40
40
|
"@gmod/vcf": "^6.0.8",
|
|
41
|
-
"@jbrowse/core": "^3.
|
|
42
|
-
"@jbrowse/plugin-linear-genome-view": "^3.
|
|
43
|
-
"@jbrowse/plugin-variants": "^3.
|
|
41
|
+
"@jbrowse/core": "^3.7.0",
|
|
42
|
+
"@jbrowse/plugin-linear-genome-view": "^3.7.0",
|
|
43
|
+
"@jbrowse/plugin-variants": "^3.7.0",
|
|
44
44
|
"@mui/icons-material": "^7.0.0",
|
|
45
45
|
"@mui/material": "^7.0.0",
|
|
46
46
|
"@mui/x-data-grid": "^8.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "85bdd0d58286b7adbfd408146b15847676317635"
|
|
64
64
|
}
|