@jbrowse/plugin-spreadsheet-view 2.12.0 → 2.12.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/LaunchSpreadsheetView/index.js +1 -1
- package/dist/SpreadsheetView/components/SortIndicator.js +1 -1
- package/dist/SpreadsheetView/components/util.js +1 -2
- package/dist/SpreadsheetView/importAdapters/BedImport.d.ts +0 -1
- package/dist/SpreadsheetView/importAdapters/BedImport.js +3 -4
- package/dist/SpreadsheetView/importAdapters/ImportUtils.d.ts +0 -1
- package/dist/SpreadsheetView/importAdapters/ImportUtils.js +3 -4
- package/dist/SpreadsheetView/importAdapters/STARFusionImport.d.ts +0 -1
- package/dist/SpreadsheetView/importAdapters/STARFusionImport.js +1 -2
- package/dist/SpreadsheetView/importAdapters/VcfImport.d.ts +0 -1
- package/dist/SpreadsheetView/importAdapters/VcfImport.js +2 -3
- package/dist/SpreadsheetView/index.js +1 -1
- package/dist/SpreadsheetView/models/ColumnDataTypes/LocEnd.d.ts +0 -1
- package/dist/SpreadsheetView/models/ColumnDataTypes/LocRef.d.ts +0 -1
- package/dist/SpreadsheetView/models/ColumnDataTypes/LocStart.d.ts +0 -1
- package/dist/SpreadsheetView/models/ColumnDataTypes/MakeSpreadsheetColumnType.js +1 -1
- package/dist/SpreadsheetView/models/ColumnDataTypes/index.d.ts +0 -1
- package/dist/SpreadsheetView/models/Spreadsheet.d.ts +10 -6
- package/dist/SpreadsheetView/models/SpreadsheetView.d.ts +21 -20
- package/esm/SpreadsheetView/importAdapters/BedImport.d.ts +0 -1
- package/esm/SpreadsheetView/importAdapters/ImportUtils.d.ts +0 -1
- package/esm/SpreadsheetView/importAdapters/STARFusionImport.d.ts +0 -1
- package/esm/SpreadsheetView/importAdapters/VcfImport.d.ts +0 -1
- package/esm/SpreadsheetView/models/ColumnDataTypes/LocEnd.d.ts +0 -1
- package/esm/SpreadsheetView/models/ColumnDataTypes/LocRef.d.ts +0 -1
- package/esm/SpreadsheetView/models/ColumnDataTypes/LocStart.d.ts +0 -1
- package/esm/SpreadsheetView/models/ColumnDataTypes/index.d.ts +0 -1
- package/esm/SpreadsheetView/models/Spreadsheet.d.ts +10 -6
- package/esm/SpreadsheetView/models/SpreadsheetView.d.ts +21 -20
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = LaunchSpreadsheetViewF;
|
|
3
4
|
function LaunchSpreadsheetViewF(pluginManager) {
|
|
4
5
|
pluginManager.addToExtensionPoint('LaunchView-SpreadsheetView',
|
|
5
6
|
// @ts-expect-error
|
|
@@ -23,4 +24,3 @@ function LaunchSpreadsheetViewF(pluginManager) {
|
|
|
23
24
|
await view.importWizard.import(assembly);
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
|
-
exports.default = LaunchSpreadsheetViewF;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = SortIndicator;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const mui_1 = require("tss-react/mui");
|
|
8
9
|
// icons
|
|
@@ -24,4 +25,3 @@ function SortIndicator({ model, columnNumber, }) {
|
|
|
24
25
|
}
|
|
25
26
|
return null;
|
|
26
27
|
}
|
|
27
|
-
exports.default = SortIndicator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.numToColName =
|
|
3
|
+
exports.numToColName = numToColName;
|
|
4
4
|
function letterFor(n) {
|
|
5
5
|
return String.fromCharCode(n + 65);
|
|
6
6
|
}
|
|
@@ -15,4 +15,3 @@ function numToColName(num) {
|
|
|
15
15
|
}
|
|
16
16
|
throw new RangeError('column number out of range');
|
|
17
17
|
}
|
|
18
|
-
exports.numToColName = numToColName;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.removeBedHeaders = removeBedHeaders;
|
|
4
|
+
exports.parseBedBuffer = parseBedBuffer;
|
|
5
|
+
exports.parseBedPEBuffer = parseBedPEBuffer;
|
|
4
6
|
const ImportUtils_1 = require("./ImportUtils");
|
|
5
7
|
const browserBytes = 'browser '.split('').map(c => c.charCodeAt(0));
|
|
6
8
|
const trackBytes = 'track '.split('').map(c => c.charCodeAt(0));
|
|
@@ -37,7 +39,6 @@ function removeBedHeaders(buffer) {
|
|
|
37
39
|
}
|
|
38
40
|
return buffer;
|
|
39
41
|
}
|
|
40
|
-
exports.removeBedHeaders = removeBedHeaders;
|
|
41
42
|
async function parseBedBuffer(buffer, options) {
|
|
42
43
|
const b = removeBedHeaders(buffer);
|
|
43
44
|
const data = await (0, ImportUtils_1.parseTsvBuffer)(b);
|
|
@@ -68,7 +69,6 @@ async function parseBedBuffer(buffer, options) {
|
|
|
68
69
|
});
|
|
69
70
|
return data;
|
|
70
71
|
}
|
|
71
|
-
exports.parseBedBuffer = parseBedBuffer;
|
|
72
72
|
async function parseBedPEBuffer(buffer, options) {
|
|
73
73
|
const b = removeBedHeaders(buffer);
|
|
74
74
|
const data = await (0, ImportUtils_1.parseTsvBuffer)(b);
|
|
@@ -143,4 +143,3 @@ async function parseBedPEBuffer(buffer, options) {
|
|
|
143
143
|
data.assemblyName = options.selectedAssemblyName;
|
|
144
144
|
return data;
|
|
145
145
|
}
|
|
146
|
-
exports.parseBedPEBuffer = parseBedPEBuffer;
|
|
@@ -23,12 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.bufferToString = bufferToString;
|
|
27
|
+
exports.parseCsvBuffer = parseCsvBuffer;
|
|
28
|
+
exports.parseTsvBuffer = parseTsvBuffer;
|
|
27
29
|
const util_1 = require("@jbrowse/core/util");
|
|
28
30
|
function bufferToString(buffer) {
|
|
29
31
|
return new TextDecoder('utf8', { fatal: true }).decode(buffer);
|
|
30
32
|
}
|
|
31
|
-
exports.bufferToString = bufferToString;
|
|
32
33
|
async function parseWith(buffer, options = {}) {
|
|
33
34
|
const csv = await Promise.resolve().then(() => __importStar(require('csvtojson'))).then(module => module.default);
|
|
34
35
|
return csv({ noheader: true, output: 'csv', ...options }).fromString(bufferToString(buffer));
|
|
@@ -115,9 +116,7 @@ async function parseCsvBuffer(buffer, options) {
|
|
|
115
116
|
const rows = await parseWith(buffer);
|
|
116
117
|
return dataToSpreadsheetSnapshot(rows, options);
|
|
117
118
|
}
|
|
118
|
-
exports.parseCsvBuffer = parseCsvBuffer;
|
|
119
119
|
async function parseTsvBuffer(buffer, options) {
|
|
120
120
|
const rows = await parseWith(buffer, { delimiter: '\t' });
|
|
121
121
|
return dataToSpreadsheetSnapshot(rows, options);
|
|
122
122
|
}
|
|
123
|
-
exports.parseTsvBuffer = parseTsvBuffer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseSTARFusionBuffer =
|
|
3
|
+
exports.parseSTARFusionBuffer = parseSTARFusionBuffer;
|
|
4
4
|
const ImportUtils_1 = require("./ImportUtils");
|
|
5
5
|
function parseSTARFusionBreakpointString(str) {
|
|
6
6
|
const fields = str.split(':');
|
|
@@ -69,4 +69,3 @@ async function parseSTARFusionBuffer(buffer, options) {
|
|
|
69
69
|
});
|
|
70
70
|
return data;
|
|
71
71
|
}
|
|
72
|
-
exports.parseSTARFusionBuffer = parseSTARFusionBuffer;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.parseVcfBuffer = parseVcfBuffer;
|
|
7
|
+
exports.splitVcfFileHeaderAndBody = splitVcfFileHeaderAndBody;
|
|
7
8
|
const vcf_1 = __importDefault(require("@gmod/vcf"));
|
|
8
9
|
const plugin_variants_1 = require("@jbrowse/plugin-variants");
|
|
9
10
|
const ImportUtils_1 = require("./ImportUtils");
|
|
@@ -90,7 +91,6 @@ function parseVcfBuffer(buffer, options = {}) {
|
|
|
90
91
|
assemblyName: selectedAssemblyName,
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
|
-
exports.parseVcfBuffer = parseVcfBuffer;
|
|
94
94
|
function splitVcfFileHeaderAndBody(wholeFile) {
|
|
95
95
|
// split into header and the rest of the file
|
|
96
96
|
let headerEndIndex = 0;
|
|
@@ -107,4 +107,3 @@ function splitVcfFileHeaderAndBody(wholeFile) {
|
|
|
107
107
|
body: wholeFile.slice(headerEndIndex),
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
exports.splitVcfFileHeaderAndBody = splitVcfFileHeaderAndBody;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = SpreadsheetViewF;
|
|
29
30
|
const react_1 = require("react");
|
|
30
31
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
31
32
|
const SpreadsheetView_1 = __importDefault(require("./models/SpreadsheetView"));
|
|
@@ -39,4 +40,3 @@ function SpreadsheetViewF(pluginManager) {
|
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
|
-
exports.default = SpreadsheetViewF;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = MakeSpreadsheetColumnType;
|
|
3
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
5
|
/** utility function for assembling the MST model of a column data type */
|
|
5
6
|
function MakeSpreadsheetColumnType(name, { DataCellReactComponent = null, FilterModelType = null, compare, displayName = undefined, categoryName = undefined, }) {
|
|
@@ -20,4 +21,3 @@ function MakeSpreadsheetColumnType(name, { DataCellReactComponent = null, Filter
|
|
|
20
21
|
},
|
|
21
22
|
}));
|
|
22
23
|
}
|
|
23
|
-
exports.default = MakeSpreadsheetColumnType;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SnapshotIn, Instance } from 'mobx-state-tree';
|
|
3
2
|
import RowModel from './Row';
|
|
4
3
|
type Row = Instance<typeof RowModel>;
|
|
@@ -165,9 +164,7 @@ declare const Spreadsheet: import("mobx-state-tree").IModelType<{
|
|
|
165
164
|
setExtendedData(data: unknown): void;
|
|
166
165
|
} & {
|
|
167
166
|
readonly cellsWithDerived: any;
|
|
168
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
169
|
-
* #property
|
|
170
|
-
*/
|
|
167
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
171
168
|
} & {
|
|
172
169
|
unselectAll(): void;
|
|
173
170
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
@@ -238,10 +235,17 @@ declare const Spreadsheet: import("mobx-state-tree").IModelType<{
|
|
|
238
235
|
/**
|
|
239
236
|
* #action
|
|
240
237
|
*/
|
|
241
|
-
setSortColumns(newSort:
|
|
238
|
+
setSortColumns(newSort: NonNullable<SnapshotIn<import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
242
239
|
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
243
240
|
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
244
|
-
}
|
|
241
|
+
}, {
|
|
242
|
+
switchDirection(): void;
|
|
243
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
244
|
+
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
245
|
+
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
246
|
+
}, {
|
|
247
|
+
switchDirection(): void;
|
|
248
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>>>): void;
|
|
245
249
|
/**
|
|
246
250
|
* #action
|
|
247
251
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SnapshotIn, Instance } from 'mobx-state-tree';
|
|
3
2
|
import { MenuItem } from '@jbrowse/core/ui';
|
|
4
3
|
import SpreadsheetModel from './Spreadsheet';
|
|
@@ -38,9 +37,7 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
38
37
|
} & {
|
|
39
38
|
addBlankColumnFilter(columnNumber: number): void;
|
|
40
39
|
removeColumnFilter(filter: import("mobx-state-tree").IAnyType): boolean;
|
|
41
|
-
clearAllFilters(): void;
|
|
42
|
-
* #property
|
|
43
|
-
*/
|
|
40
|
+
clearAllFilters(): void;
|
|
44
41
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
45
42
|
mode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
46
43
|
importWizard: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
@@ -49,23 +46,16 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
49
46
|
columnNameLineNumber: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
50
47
|
selectedAssemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
51
48
|
}, {
|
|
52
|
-
fileTypes: string[];
|
|
53
|
-
* #property
|
|
54
|
-
*/
|
|
49
|
+
fileTypes: string[];
|
|
55
50
|
fileSource: any;
|
|
56
51
|
error: unknown;
|
|
57
52
|
loading: boolean;
|
|
58
53
|
} & {
|
|
59
|
-
readonly isReadyToOpen: any;
|
|
60
|
-
* #property
|
|
61
|
-
*/
|
|
54
|
+
readonly isReadyToOpen: any;
|
|
62
55
|
readonly canCancel: any;
|
|
63
56
|
readonly fileName: any;
|
|
64
57
|
readonly requiresUnzip: any;
|
|
65
|
-
|
|
66
|
-
* #property
|
|
67
|
-
*/
|
|
68
|
-
isValidRefName(refName: string, assemblyName?: string | undefined): boolean;
|
|
58
|
+
isValidRefName(refName: string, assemblyName?: string): boolean;
|
|
69
59
|
} & {
|
|
70
60
|
setSelectedAssemblyName(s: string): void;
|
|
71
61
|
setFileSource(newSource: unknown): void;
|
|
@@ -279,9 +269,7 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
279
269
|
readonly hideRowSelection: any;
|
|
280
270
|
readonly dataTypeChoices: {
|
|
281
271
|
typeName: "LocString" | "Text" | "LocRef" | "Number" | "LocStart" | "LocEnd";
|
|
282
|
-
displayName: string;
|
|
283
|
-
* #getter
|
|
284
|
-
*/
|
|
272
|
+
displayName: string;
|
|
285
273
|
categoryName: string | undefined;
|
|
286
274
|
}[];
|
|
287
275
|
rowSortingComparisonFunction(rowA: {
|
|
@@ -358,10 +346,17 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
358
346
|
anchorEl: Element;
|
|
359
347
|
rowNumber: string;
|
|
360
348
|
} | null): void;
|
|
361
|
-
setSortColumns(newSort:
|
|
349
|
+
setSortColumns(newSort: NonNullable<SnapshotIn<import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
350
|
+
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
351
|
+
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
352
|
+
}, {
|
|
353
|
+
switchDirection(): void;
|
|
354
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
362
355
|
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
363
356
|
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
364
|
-
}
|
|
357
|
+
}, {
|
|
358
|
+
switchDirection(): void;
|
|
359
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>>>): void;
|
|
365
360
|
setColumnType(columnNumber: number, newTypeName: string): void;
|
|
366
361
|
unselectAll(): void;
|
|
367
362
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -428,7 +423,13 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
428
423
|
readonly assembly: ({
|
|
429
424
|
[x: string]: any;
|
|
430
425
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
431
|
-
setSubschema(slotName: string, data: unknown):
|
|
426
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
427
|
+
[x: string]: any;
|
|
428
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
429
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
430
|
+
[x: string]: any;
|
|
431
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
432
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
432
433
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
|
|
433
434
|
} & {
|
|
434
435
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SnapshotIn, Instance } from 'mobx-state-tree';
|
|
3
2
|
import RowModel from './Row';
|
|
4
3
|
type Row = Instance<typeof RowModel>;
|
|
@@ -165,9 +164,7 @@ declare const Spreadsheet: import("mobx-state-tree").IModelType<{
|
|
|
165
164
|
setExtendedData(data: unknown): void;
|
|
166
165
|
} & {
|
|
167
166
|
readonly cellsWithDerived: any;
|
|
168
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
169
|
-
* #property
|
|
170
|
-
*/
|
|
167
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
171
168
|
} & {
|
|
172
169
|
unselectAll(): void;
|
|
173
170
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
@@ -238,10 +235,17 @@ declare const Spreadsheet: import("mobx-state-tree").IModelType<{
|
|
|
238
235
|
/**
|
|
239
236
|
* #action
|
|
240
237
|
*/
|
|
241
|
-
setSortColumns(newSort:
|
|
238
|
+
setSortColumns(newSort: NonNullable<SnapshotIn<import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
242
239
|
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
243
240
|
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
244
|
-
}
|
|
241
|
+
}, {
|
|
242
|
+
switchDirection(): void;
|
|
243
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
244
|
+
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
245
|
+
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
246
|
+
}, {
|
|
247
|
+
switchDirection(): void;
|
|
248
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>>>): void;
|
|
245
249
|
/**
|
|
246
250
|
* #action
|
|
247
251
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SnapshotIn, Instance } from 'mobx-state-tree';
|
|
3
2
|
import { MenuItem } from '@jbrowse/core/ui';
|
|
4
3
|
import SpreadsheetModel from './Spreadsheet';
|
|
@@ -38,9 +37,7 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
38
37
|
} & {
|
|
39
38
|
addBlankColumnFilter(columnNumber: number): void;
|
|
40
39
|
removeColumnFilter(filter: import("mobx-state-tree").IAnyType): boolean;
|
|
41
|
-
clearAllFilters(): void;
|
|
42
|
-
* #property
|
|
43
|
-
*/
|
|
40
|
+
clearAllFilters(): void;
|
|
44
41
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
45
42
|
mode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
46
43
|
importWizard: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
@@ -49,23 +46,16 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
49
46
|
columnNameLineNumber: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
50
47
|
selectedAssemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
51
48
|
}, {
|
|
52
|
-
fileTypes: string[];
|
|
53
|
-
* #property
|
|
54
|
-
*/
|
|
49
|
+
fileTypes: string[];
|
|
55
50
|
fileSource: any;
|
|
56
51
|
error: unknown;
|
|
57
52
|
loading: boolean;
|
|
58
53
|
} & {
|
|
59
|
-
readonly isReadyToOpen: any;
|
|
60
|
-
* #property
|
|
61
|
-
*/
|
|
54
|
+
readonly isReadyToOpen: any;
|
|
62
55
|
readonly canCancel: any;
|
|
63
56
|
readonly fileName: any;
|
|
64
57
|
readonly requiresUnzip: any;
|
|
65
|
-
|
|
66
|
-
* #property
|
|
67
|
-
*/
|
|
68
|
-
isValidRefName(refName: string, assemblyName?: string | undefined): boolean;
|
|
58
|
+
isValidRefName(refName: string, assemblyName?: string): boolean;
|
|
69
59
|
} & {
|
|
70
60
|
setSelectedAssemblyName(s: string): void;
|
|
71
61
|
setFileSource(newSource: unknown): void;
|
|
@@ -279,9 +269,7 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
279
269
|
readonly hideRowSelection: any;
|
|
280
270
|
readonly dataTypeChoices: {
|
|
281
271
|
typeName: "LocString" | "Text" | "LocRef" | "Number" | "LocStart" | "LocEnd";
|
|
282
|
-
displayName: string;
|
|
283
|
-
* #getter
|
|
284
|
-
*/
|
|
272
|
+
displayName: string;
|
|
285
273
|
categoryName: string | undefined;
|
|
286
274
|
}[];
|
|
287
275
|
rowSortingComparisonFunction(rowA: {
|
|
@@ -358,10 +346,17 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
358
346
|
anchorEl: Element;
|
|
359
347
|
rowNumber: string;
|
|
360
348
|
} | null): void;
|
|
361
|
-
setSortColumns(newSort:
|
|
349
|
+
setSortColumns(newSort: NonNullable<SnapshotIn<import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
350
|
+
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
351
|
+
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
352
|
+
}, {
|
|
353
|
+
switchDirection(): void;
|
|
354
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
362
355
|
columnNumber: import("mobx-state-tree").ISimpleType<number>;
|
|
363
356
|
descending: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
364
|
-
}
|
|
357
|
+
}, {
|
|
358
|
+
switchDirection(): void;
|
|
359
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>>>): void;
|
|
365
360
|
setColumnType(columnNumber: number, newTypeName: string): void;
|
|
366
361
|
unselectAll(): void;
|
|
367
362
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -428,7 +423,13 @@ declare const SpreadsheetView: import("mobx-state-tree").IModelType<{
|
|
|
428
423
|
readonly assembly: ({
|
|
429
424
|
[x: string]: any;
|
|
430
425
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
431
|
-
setSubschema(slotName: string, data: unknown):
|
|
426
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
427
|
+
[x: string]: any;
|
|
428
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
429
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
430
|
+
[x: string]: any;
|
|
431
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
432
|
+
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
432
433
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
|
|
433
434
|
} & {
|
|
434
435
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-spreadsheet-view",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
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.12.
|
|
41
|
+
"@jbrowse/plugin-variants": "^2.12.1",
|
|
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": "20f16ae5a56ae5e4806aaa373131e540b0b5b0fd"
|
|
64
64
|
}
|