@jbrowse/plugin-spreadsheet-view 2.10.2 → 2.11.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/components/ColumnMenu.d.ts +1 -1
- package/dist/SpreadsheetView/components/RowCountMessage.d.ts +1 -2
- package/dist/SpreadsheetView/components/RowCountMessage.js +1 -5
- package/dist/SpreadsheetView/models/ColumnDataTypes/LocString.js +1 -1
- package/dist/SpreadsheetView/models/FilterControls.js +2 -1
- package/dist/SpreadsheetView/models/SpreadsheetView.d.ts +3 -1
- package/esm/SpreadsheetView/components/ColumnMenu.d.ts +1 -1
- package/esm/SpreadsheetView/components/RowCountMessage.d.ts +1 -2
- package/esm/SpreadsheetView/components/RowCountMessage.js +1 -2
- package/esm/SpreadsheetView/models/ColumnDataTypes/LocString.js +1 -1
- package/esm/SpreadsheetView/models/FilterControls.js +2 -1
- package/esm/SpreadsheetView/models/SpreadsheetView.d.ts +3 -1
- package/package.json +3 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Instance } from 'mobx-state-tree';
|
|
3
2
|
import SpreadsheetStateModel from '../models/Spreadsheet';
|
|
4
3
|
type SpreadsheetModel = Instance<typeof SpreadsheetStateModel>;
|
|
5
4
|
declare const RowCountMessage: ({ spreadsheet, }: {
|
|
6
5
|
spreadsheet: SpreadsheetModel;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => string | null;
|
|
8
7
|
export default RowCountMessage;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
3
|
const mobx_react_1 = require("mobx-react");
|
|
8
4
|
const RowCountMessage = (0, mobx_react_1.observer)(function ({ spreadsheet, }) {
|
|
9
5
|
if (spreadsheet.rowSet.isLoaded) {
|
|
@@ -25,7 +21,7 @@ const RowCountMessage = (0, mobx_react_1.observer)(function ({ spreadsheet, }) {
|
|
|
25
21
|
rowMessage += `, ${selectedCount} selected`;
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
|
-
return
|
|
24
|
+
return rowMessage;
|
|
29
25
|
}
|
|
30
26
|
return null;
|
|
31
27
|
});
|
|
@@ -172,7 +172,7 @@ const DataCellReactComponent = (0, mobx_react_1.observer)(function ({ cell, colu
|
|
|
172
172
|
}
|
|
173
173
|
catch (e) {
|
|
174
174
|
console.error(e);
|
|
175
|
-
session.
|
|
175
|
+
session.notifyError(`${e}`, e);
|
|
176
176
|
}
|
|
177
177
|
}, title: "open a new linear genome view here", href: "#link" }, cell.text));
|
|
178
178
|
});
|
|
@@ -19,10 +19,11 @@ const RowFullTextFilter = mobx_state_tree_1.types
|
|
|
19
19
|
}
|
|
20
20
|
s = s.toLowerCase();
|
|
21
21
|
return function stringPredicate(_sheet, row) {
|
|
22
|
+
var _a;
|
|
22
23
|
const { cellsWithDerived } = row;
|
|
23
24
|
for (const cell of cellsWithDerived) {
|
|
24
25
|
// note: case insensitive
|
|
25
|
-
if (cell.text
|
|
26
|
+
if ((_a = cell.text) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(s)) {
|
|
26
27
|
return true;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -38,7 +38,9 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
38
38
|
} & {
|
|
39
39
|
addBlankColumnFilter(columnNumber: number): void;
|
|
40
40
|
removeColumnFilter(filter: import("mobx-state-tree").IAnyType): boolean;
|
|
41
|
-
clearAllFilters(): void;
|
|
41
|
+
clearAllFilters(): void; /**
|
|
42
|
+
* #property
|
|
43
|
+
*/
|
|
42
44
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
43
45
|
mode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
44
46
|
importWizard: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Instance } from 'mobx-state-tree';
|
|
3
2
|
import SpreadsheetStateModel from '../models/Spreadsheet';
|
|
4
3
|
type SpreadsheetModel = Instance<typeof SpreadsheetStateModel>;
|
|
5
4
|
declare const RowCountMessage: ({ spreadsheet, }: {
|
|
6
5
|
spreadsheet: SpreadsheetModel;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => string | null;
|
|
8
7
|
export default RowCountMessage;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { observer } from 'mobx-react';
|
|
3
2
|
const RowCountMessage = observer(function ({ spreadsheet, }) {
|
|
4
3
|
if (spreadsheet.rowSet.isLoaded) {
|
|
@@ -20,7 +19,7 @@ const RowCountMessage = observer(function ({ spreadsheet, }) {
|
|
|
20
19
|
rowMessage += `, ${selectedCount} selected`;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
return
|
|
22
|
+
return rowMessage;
|
|
24
23
|
}
|
|
25
24
|
return null;
|
|
26
25
|
});
|
|
@@ -167,7 +167,7 @@ const DataCellReactComponent = observer(function ({ cell, columnNumber, spreadsh
|
|
|
167
167
|
}
|
|
168
168
|
catch (e) {
|
|
169
169
|
console.error(e);
|
|
170
|
-
session.
|
|
170
|
+
session.notifyError(`${e}`, e);
|
|
171
171
|
}
|
|
172
172
|
}, title: "open a new linear genome view here", href: "#link" }, cell.text));
|
|
173
173
|
});
|
|
@@ -17,10 +17,11 @@ const RowFullTextFilter = types
|
|
|
17
17
|
}
|
|
18
18
|
s = s.toLowerCase();
|
|
19
19
|
return function stringPredicate(_sheet, row) {
|
|
20
|
+
var _a;
|
|
20
21
|
const { cellsWithDerived } = row;
|
|
21
22
|
for (const cell of cellsWithDerived) {
|
|
22
23
|
// note: case insensitive
|
|
23
|
-
if (cell.text
|
|
24
|
+
if ((_a = cell.text) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(s)) {
|
|
24
25
|
return true;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -38,7 +38,9 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
38
38
|
} & {
|
|
39
39
|
addBlankColumnFilter(columnNumber: number): void;
|
|
40
40
|
removeColumnFilter(filter: import("mobx-state-tree").IAnyType): boolean;
|
|
41
|
-
clearAllFilters(): void;
|
|
41
|
+
clearAllFilters(): void; /**
|
|
42
|
+
* #property
|
|
43
|
+
*/
|
|
42
44
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
43
45
|
mode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
44
46
|
importWizard: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-spreadsheet-view",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "JBrowse 2 spreadsheet view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@gmod/bgzf-filehandle": "^1.4.3",
|
|
40
40
|
"@gmod/vcf": "^5.0.9",
|
|
41
|
-
"@jbrowse/plugin-variants": "^2.
|
|
41
|
+
"@jbrowse/plugin-variants": "^2.11.0",
|
|
42
42
|
"@mui/icons-material": "^5.0.1",
|
|
43
43
|
"csvtojson": "^2.0.10"
|
|
44
44
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
|
|
64
64
|
}
|