@jbrowse/plugin-config 3.7.0 → 4.0.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/esm/ConfigurationEditorWidget/components/BooleanEditor.js +1 -1
- package/esm/ConfigurationEditorWidget/components/CallbackEditor.js +25 -25
- package/esm/ConfigurationEditorWidget/components/ColorEditor.js +2 -2
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +12 -9
- package/esm/ConfigurationEditorWidget/components/HeadingComponent.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/HeadingComponent.js +8 -7
- package/esm/ConfigurationEditorWidget/components/JsonEditor.js +1 -1
- package/esm/ConfigurationEditorWidget/components/NumberEditor.js +3 -4
- package/esm/ConfigurationEditorWidget/components/NumberMapEditor.js +3 -3
- package/esm/ConfigurationEditorWidget/components/SlotEditor.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/SlotEditor.js +18 -19
- package/esm/ConfigurationEditorWidget/components/StringArrayEditor.js +1 -1
- package/esm/ConfigurationEditorWidget/components/StringArrayMapEditor.js +3 -3
- package/esm/ConfigurationEditorWidget/components/TypeSelector.js +2 -2
- package/esm/ConfigurationEditorWidget/components/useSlotEditorStyles.d.ts +6 -5
- package/esm/ConfigurationEditorWidget/components/useSlotEditorStyles.js +1 -1
- package/esm/ConfigurationEditorWidget/index.js +3 -3
- package/esm/ConfigurationEditorWidget/model.d.ts +9 -6
- package/esm/ConfigurationEditorWidget/model.js +20 -3
- package/esm/FromConfigAdapter/FromConfigAdapter.js +1 -0
- package/esm/FromConfigAdapter/configSchema.d.ts +2 -2
- package/esm/FromConfigAdapter/index.js +2 -2
- package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +2 -1
- package/esm/FromConfigRegionsAdapter/configSchema.d.ts +2 -2
- package/esm/FromConfigRegionsAdapter/index.js +2 -2
- package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +1 -1
- package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +1 -1
- package/esm/FromConfigSequenceAdapter/configSchema.d.ts +2 -2
- package/esm/FromConfigSequenceAdapter/index.js +2 -2
- package/esm/NcbiSequenceReportAliasAdapter/configSchema.d.ts +2 -2
- package/esm/NcbiSequenceReportAliasAdapter/index.js +2 -2
- package/esm/RefNameAliasAdapter/configSchema.d.ts +2 -2
- package/esm/RefNameAliasAdapter/index.js +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.js +8 -11
- package/package.json +25 -31
- package/dist/ConfigurationEditorWidget/components/BooleanEditor.d.ts +0 -9
- package/dist/ConfigurationEditorWidget/components/BooleanEditor.js +0 -11
- package/dist/ConfigurationEditorWidget/components/CallbackEditor.d.ts +0 -10
- package/dist/ConfigurationEditorWidget/components/CallbackEditor.js +0 -73
- package/dist/ConfigurationEditorWidget/components/ColorEditor.d.ts +0 -18
- package/dist/ConfigurationEditorWidget/components/ColorEditor.js +0 -33
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +0 -9
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js +0 -72
- package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +0 -4
- package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.js +0 -14
- package/dist/ConfigurationEditorWidget/components/HeadingComponent.d.ts +0 -8
- package/dist/ConfigurationEditorWidget/components/HeadingComponent.js +0 -20
- package/dist/ConfigurationEditorWidget/components/JsonEditor.d.ts +0 -9
- package/dist/ConfigurationEditorWidget/components/JsonEditor.js +0 -55
- package/dist/ConfigurationEditorWidget/components/NumberEditor.d.ts +0 -10
- package/dist/ConfigurationEditorWidget/components/NumberEditor.js +0 -26
- package/dist/ConfigurationEditorWidget/components/NumberMapEditor.d.ts +0 -10
- package/dist/ConfigurationEditorWidget/components/NumberMapEditor.js +0 -40
- package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +0 -6
- package/dist/ConfigurationEditorWidget/components/SlotEditor.js +0 -92
- package/dist/ConfigurationEditorWidget/components/StringArrayEditor.d.ts +0 -11
- package/dist/ConfigurationEditorWidget/components/StringArrayEditor.js +0 -39
- package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.d.ts +0 -13
- package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.js +0 -48
- package/dist/ConfigurationEditorWidget/components/TypeSelector.d.ts +0 -8
- package/dist/ConfigurationEditorWidget/components/TypeSelector.js +0 -11
- package/dist/ConfigurationEditorWidget/components/useSlotEditorStyles.d.ts +0 -9
- package/dist/ConfigurationEditorWidget/components/useSlotEditorStyles.js +0 -21
- package/dist/ConfigurationEditorWidget/index.d.ts +0 -2
- package/dist/ConfigurationEditorWidget/index.js +0 -57
- package/dist/ConfigurationEditorWidget/model.d.ts +0 -8
- package/dist/ConfigurationEditorWidget/model.js +0 -18
- package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +0 -17
- package/dist/FromConfigAdapter/FromConfigAdapter.js +0 -56
- package/dist/FromConfigAdapter/configSchema.d.ts +0 -7
- package/dist/FromConfigAdapter/configSchema.js +0 -11
- package/dist/FromConfigAdapter/index.d.ts +0 -2
- package/dist/FromConfigAdapter/index.js +0 -51
- package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +0 -14
- package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +0 -41
- package/dist/FromConfigRegionsAdapter/configSchema.d.ts +0 -7
- package/dist/FromConfigRegionsAdapter/configSchema.js +0 -14
- package/dist/FromConfigRegionsAdapter/index.d.ts +0 -2
- package/dist/FromConfigRegionsAdapter/index.js +0 -51
- package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +0 -12
- package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +0 -56
- package/dist/FromConfigSequenceAdapter/configSchema.d.ts +0 -7
- package/dist/FromConfigSequenceAdapter/configSchema.js +0 -14
- package/dist/FromConfigSequenceAdapter/index.d.ts +0 -2
- package/dist/FromConfigSequenceAdapter/index.js +0 -51
- package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +0 -9
- package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.js +0 -41
- package/dist/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -15
- package/dist/NcbiSequenceReportAliasAdapter/configSchema.js +0 -32
- package/dist/NcbiSequenceReportAliasAdapter/index.d.ts +0 -2
- package/dist/NcbiSequenceReportAliasAdapter/index.js +0 -53
- package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +0 -8
- package/dist/RefNameAliasAdapter/RefNameAliasAdapter.js +0 -39
- package/dist/RefNameAliasAdapter/configSchema.d.ts +0 -19
- package/dist/RefNameAliasAdapter/configSchema.js +0 -36
- package/dist/RefNameAliasAdapter/index.d.ts +0 -2
- package/dist/RefNameAliasAdapter/index.js +0 -51
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -64
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const util_1 = require("@jbrowse/core/util");
|
|
10
|
-
const mst_reflection_1 = require("@jbrowse/core/util/mst-reflection");
|
|
11
|
-
const RadioButtonUnchecked_1 = __importDefault(require("@mui/icons-material/RadioButtonUnchecked"));
|
|
12
|
-
const material_1 = require("@mui/material");
|
|
13
|
-
const mobx_react_1 = require("mobx-react");
|
|
14
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
15
|
-
const BooleanEditor_1 = __importDefault(require("./BooleanEditor"));
|
|
16
|
-
const CallbackEditor_1 = __importDefault(require("./CallbackEditor"));
|
|
17
|
-
const ColorEditor_1 = __importDefault(require("./ColorEditor"));
|
|
18
|
-
const ConfigurationTextField_1 = __importDefault(require("./ConfigurationTextField"));
|
|
19
|
-
const JsonEditor_1 = __importDefault(require("./JsonEditor"));
|
|
20
|
-
const NumberEditor_1 = __importDefault(require("./NumberEditor"));
|
|
21
|
-
const NumberMapEditor_1 = __importDefault(require("./NumberMapEditor"));
|
|
22
|
-
const StringArrayEditor_1 = __importDefault(require("./StringArrayEditor"));
|
|
23
|
-
const StringArrayMapEditor_1 = __importDefault(require("./StringArrayMapEditor"));
|
|
24
|
-
const useSlotEditorStyles_1 = require("./useSlotEditorStyles");
|
|
25
|
-
const StringEditor = (0, mobx_react_1.observer)(function ({ slot, }) {
|
|
26
|
-
return ((0, jsx_runtime_1.jsx)(ConfigurationTextField_1.default, { label: slot.name, helperText: slot.description, value: slot.value, onChange: evt => {
|
|
27
|
-
slot.set(evt.target.value);
|
|
28
|
-
} }));
|
|
29
|
-
});
|
|
30
|
-
const TextEditor = (0, mobx_react_1.observer)(function ({ slot, }) {
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)(material_1.TextField, { label: slot.name, helperText: slot.description, multiline: true, value: slot.value, onChange: evt => {
|
|
32
|
-
slot.set(evt.target.value);
|
|
33
|
-
} }));
|
|
34
|
-
});
|
|
35
|
-
const SvgCheckbox = () => ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, { children: (0, jsx_runtime_1.jsx)("path", { d: "M20.41,3C21.8,5.71 22.35,8.84 22,12C21.8,15.16 20.7,18.29 18.83,21L17.3,20C18.91,17.57 19.85,14.8 20,12C20.34,9.2 19.89,6.43 18.7,4L20.41,3M5.17,3L6.7,4C5.09,6.43 4.15,9.2 4,12C3.66,14.8 4.12,17.57 5.3,20L3.61,21C2.21,18.29 1.65,15.17 2,12C2.2,8.84 3.3,5.71 5.17,3M12.08,10.68L14.4,7.45H16.93L13.15,12.45L15.35,17.37H13.09L11.71,14L9.28,17.33H6.76L10.66,12.21L8.53,7.45H10.8L12.08,10.68Z" }) }));
|
|
36
|
-
const IntegerEditor = (0, mobx_react_1.observer)(function ({ slot, }) {
|
|
37
|
-
const [val, setVal] = (0, react_1.useState)(slot.value);
|
|
38
|
-
(0, react_1.useEffect)(() => {
|
|
39
|
-
const num = Number.parseInt(val, 10);
|
|
40
|
-
if (!Number.isNaN(num)) {
|
|
41
|
-
slot.set(num);
|
|
42
|
-
}
|
|
43
|
-
}, [slot, val]);
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(ConfigurationTextField_1.default, { label: slot.name, helperText: slot.description, value: val, type: "number", onChange: evt => {
|
|
45
|
-
setVal(evt.target.value);
|
|
46
|
-
} }));
|
|
47
|
-
});
|
|
48
|
-
const StringEnumEditor = (0, mobx_react_1.observer)(function ({ slot, slotSchema, }) {
|
|
49
|
-
const p = (0, mobx_state_tree_1.getPropertyMembers)((0, mst_reflection_1.getSubType)(slotSchema));
|
|
50
|
-
const choices = (0, mst_reflection_1.getUnionSubTypes)((0, mst_reflection_1.getUnionSubTypes)((0, mst_reflection_1.getSubType)(p.properties.value))[1]).map(t => t.value);
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)(ConfigurationTextField_1.default, { value: slot.value, label: slot.name, select: true, helperText: slot.description, onChange: evt => {
|
|
52
|
-
slot.set(evt.target.value);
|
|
53
|
-
}, children: choices.map(str => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: str, children: str }, str))) }));
|
|
54
|
-
});
|
|
55
|
-
const FileSelectorWrapper = (0, mobx_react_1.observer)(function ({ slot, }) {
|
|
56
|
-
var _a;
|
|
57
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.FileSelector, { location: slot.value, setLocation: location => {
|
|
58
|
-
slot.set(location);
|
|
59
|
-
}, name: slot.name, description: slot.description, rootModel: (_a = (0, util_1.getEnv)(slot).pluginManager) === null || _a === void 0 ? void 0 : _a.rootModel }));
|
|
60
|
-
});
|
|
61
|
-
const valueComponents = {
|
|
62
|
-
string: StringEditor,
|
|
63
|
-
text: TextEditor,
|
|
64
|
-
fileLocation: FileSelectorWrapper,
|
|
65
|
-
stringArray: StringArrayEditor_1.default,
|
|
66
|
-
stringArrayMap: StringArrayMapEditor_1.default,
|
|
67
|
-
numberMap: NumberMapEditor_1.default,
|
|
68
|
-
number: NumberEditor_1.default,
|
|
69
|
-
integer: IntegerEditor,
|
|
70
|
-
color: ColorEditor_1.default,
|
|
71
|
-
stringEnum: StringEnumEditor,
|
|
72
|
-
boolean: BooleanEditor_1.default,
|
|
73
|
-
frozen: JsonEditor_1.default,
|
|
74
|
-
configRelationships: JsonEditor_1.default,
|
|
75
|
-
};
|
|
76
|
-
const SlotEditor = (0, mobx_react_1.observer)(function ({ slot, slotSchema, }) {
|
|
77
|
-
const { classes } = (0, useSlotEditorStyles_1.useSlotEditorStyles)();
|
|
78
|
-
const { type } = slot;
|
|
79
|
-
let ValueComponent = slot.isCallback
|
|
80
|
-
? CallbackEditor_1.default
|
|
81
|
-
:
|
|
82
|
-
valueComponents[type];
|
|
83
|
-
if (!ValueComponent) {
|
|
84
|
-
console.warn(`no slot editor defined for ${type}, editing as string`);
|
|
85
|
-
ValueComponent = StringEditor;
|
|
86
|
-
}
|
|
87
|
-
if (!(type in valueComponents)) {
|
|
88
|
-
console.warn(`SlotEditor needs to implement ${type}`);
|
|
89
|
-
}
|
|
90
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Paper, { className: classes.paper, children: [(0, jsx_runtime_1.jsx)("div", { className: classes.paperContent, children: (0, jsx_runtime_1.jsx)(ValueComponent, { slot: slot, slotSchema: slotSchema }) }), (0, jsx_runtime_1.jsx)("div", { className: classes.slotModeSwitch, children: slot.contextVariable.length ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => slot.isCallback ? slot.convertToValue() : slot.convertToCallback(), title: `convert to ${slot.isCallback ? 'regular value' : 'callback'}`, children: slot.isCallback ? (0, jsx_runtime_1.jsx)(SvgCheckbox, {}) : (0, jsx_runtime_1.jsx)(RadioButtonUnchecked_1.default, {}) })) : null })] }));
|
|
91
|
-
});
|
|
92
|
-
exports.default = SlotEditor;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const StringArrayEditor: ({ slot, }: {
|
|
2
|
-
slot: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string[];
|
|
5
|
-
setAtIndex: (arg: number, arg2: string) => void;
|
|
6
|
-
removeAtIndex: (arg: number) => void;
|
|
7
|
-
add: (arg: string) => void;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default StringArrayEditor;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
|
-
const mobx_react_1 = require("mobx-react");
|
|
11
|
-
const StringArrayEditor = (0, mobx_react_1.observer)(function ({ slot, }) {
|
|
12
|
-
const [value, setValue] = (0, react_1.useState)('');
|
|
13
|
-
const [addNew, setAddNew] = (0, react_1.useState)(false);
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [slot.name ? (0, jsx_runtime_1.jsx)(material_1.InputLabel, { children: slot.name }) : null, (0, jsx_runtime_1.jsxs)(material_1.List, { disablePadding: true, children: [slot.value.map((val, idx) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { disableGutters: true, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { value: val, onChange: evt => {
|
|
15
|
-
slot.setAtIndex(idx, evt.target.value);
|
|
16
|
-
}, slotProps: {
|
|
17
|
-
input: {
|
|
18
|
-
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
19
|
-
slot.removeAtIndex(idx);
|
|
20
|
-
}, children: (0, jsx_runtime_1.jsx)(Delete_1.default, {}) }) })),
|
|
21
|
-
},
|
|
22
|
-
} }) }, `${JSON.stringify(val)}-${idx}`))), addNew ? ((0, jsx_runtime_1.jsx)(material_1.ListItem, { disableGutters: true, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { value: value, placeholder: "add new", onChange: event => {
|
|
23
|
-
setValue(event.target.value);
|
|
24
|
-
}, slotProps: {
|
|
25
|
-
input: {
|
|
26
|
-
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", variant: "contained", style: { margin: 2 }, "data-testid": `stringArrayAdd-${slot.name}`, onClick: () => {
|
|
27
|
-
setAddNew(false);
|
|
28
|
-
slot.add(value);
|
|
29
|
-
setValue('');
|
|
30
|
-
}, children: "OK" }), (0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", variant: "contained", style: { margin: 2 }, onClick: () => {
|
|
31
|
-
setAddNew(false);
|
|
32
|
-
setValue('');
|
|
33
|
-
}, children: "Cancel" })] }) })),
|
|
34
|
-
},
|
|
35
|
-
} }) })) : null, (0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", variant: "contained", style: { margin: 4 }, disabled: addNew, onClick: () => {
|
|
36
|
-
setAddNew(true);
|
|
37
|
-
}, children: "Add item" })] }), (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { children: slot.description })] }));
|
|
38
|
-
});
|
|
39
|
-
exports.default = StringArrayEditor;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const StringArrayMapEditor: ({ slot, }: {
|
|
2
|
-
slot: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: Map<string, string[]>;
|
|
5
|
-
remove: (key: string) => void;
|
|
6
|
-
add: (key: string, val: string[]) => void;
|
|
7
|
-
description: string;
|
|
8
|
-
setAtKeyIndex: (key: string, idx: number, val: string) => void;
|
|
9
|
-
removeAtKeyIndex: (key: string, idx: number) => void;
|
|
10
|
-
addToKey: (key: string, val: string) => void;
|
|
11
|
-
};
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default StringArrayMapEditor;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
9
|
-
const Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
|
-
const mobx_react_1 = require("mobx-react");
|
|
12
|
-
const mui_1 = require("tss-react/mui");
|
|
13
|
-
const StringArrayEditor_1 = __importDefault(require("./StringArrayEditor"));
|
|
14
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
15
|
-
card: {
|
|
16
|
-
marginTop: theme.spacing(1),
|
|
17
|
-
},
|
|
18
|
-
}));
|
|
19
|
-
const StringArrayMapEditor = (0, mobx_react_1.observer)(function ({ slot, }) {
|
|
20
|
-
const { classes } = useStyles();
|
|
21
|
-
const [value, setValue] = (0, react_1.useState)('');
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, { children: slot.name }), [...slot.value].map(([key, val]) => ((0, jsx_runtime_1.jsxs)(material_1.Card, { raised: true, className: classes.card, children: [(0, jsx_runtime_1.jsx)(material_1.CardHeader, { title: key, action: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
23
|
-
slot.remove(key);
|
|
24
|
-
}, children: (0, jsx_runtime_1.jsx)(Delete_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(StringArrayEditor_1.default, { slot: {
|
|
25
|
-
name: slot.name,
|
|
26
|
-
value: val,
|
|
27
|
-
description: `Values associated with entry ${key}`,
|
|
28
|
-
setAtIndex: (idx, val) => {
|
|
29
|
-
slot.setAtKeyIndex(key, idx, val);
|
|
30
|
-
},
|
|
31
|
-
removeAtIndex: (idx) => {
|
|
32
|
-
slot.removeAtKeyIndex(key, idx);
|
|
33
|
-
},
|
|
34
|
-
add: (val) => {
|
|
35
|
-
slot.addToKey(key, val);
|
|
36
|
-
},
|
|
37
|
-
} }) })] }, key))), (0, jsx_runtime_1.jsx)(material_1.Card, { raised: true, className: classes.card, children: (0, jsx_runtime_1.jsx)(material_1.CardHeader, { disableTypography: true, title: (0, jsx_runtime_1.jsx)(material_1.TextField, { fullWidth: true, value: value, placeholder: "add new", onChange: event => {
|
|
38
|
-
setValue(event.target.value);
|
|
39
|
-
}, slotProps: {
|
|
40
|
-
input: {
|
|
41
|
-
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { disabled: value === '', onClick: () => {
|
|
42
|
-
slot.add(value, []);
|
|
43
|
-
setValue('');
|
|
44
|
-
}, children: (0, jsx_runtime_1.jsx)(Add_1.default, {}) }) })),
|
|
45
|
-
},
|
|
46
|
-
} }) }) }), (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { children: slot.description })] }));
|
|
47
|
-
});
|
|
48
|
-
exports.default = StringArrayMapEditor;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
declare const TypeSelector: ({ typeNameChoices, slot, slotName, onChange, }: {
|
|
3
|
-
typeNameChoices: string[];
|
|
4
|
-
slot: AnyConfigurationModel;
|
|
5
|
-
slotName: string;
|
|
6
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default TypeSelector;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
const mobx_react_1 = require("mobx-react");
|
|
6
|
-
const useSlotEditorStyles_1 = require("./useSlotEditorStyles");
|
|
7
|
-
const TypeSelector = (0, mobx_react_1.observer)(function ({ typeNameChoices, slot, slotName, onChange, }) {
|
|
8
|
-
const { classes } = (0, useSlotEditorStyles_1.useSlotEditorStyles)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Paper, { className: classes.paper, children: (0, jsx_runtime_1.jsx)("div", { className: classes.paperContent, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { value: slot.type, label: "Type", select: true, helperText: `Type of ${slotName} to use`, fullWidth: true, onChange: onChange, children: typeNameChoices.map(str => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: str, children: str }, str))) }) }) }));
|
|
10
|
-
});
|
|
11
|
-
exports.default = TypeSelector;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const useSlotEditorStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
-
props: Record<string, unknown>;
|
|
3
|
-
ownerState?: Record<string, unknown> | undefined;
|
|
4
|
-
} | undefined) => {
|
|
5
|
-
classes: Record<"paper" | "paperContent" | "slotModeSwitch", string>;
|
|
6
|
-
theme: import("@mui/material").Theme;
|
|
7
|
-
css: import("tss-react/types").Css;
|
|
8
|
-
cx: import("tss-react/types").Cx;
|
|
9
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSlotEditorStyles = void 0;
|
|
4
|
-
const mui_1 = require("tss-react/mui");
|
|
5
|
-
exports.useSlotEditorStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
6
|
-
paper: {
|
|
7
|
-
display: 'flex',
|
|
8
|
-
marginBottom: theme.spacing(2),
|
|
9
|
-
position: 'relative',
|
|
10
|
-
},
|
|
11
|
-
paperContent: {
|
|
12
|
-
width: '100%',
|
|
13
|
-
},
|
|
14
|
-
slotModeSwitch: {
|
|
15
|
-
width: 24,
|
|
16
|
-
background: theme.palette.secondary.light,
|
|
17
|
-
display: 'flex',
|
|
18
|
-
justifyContent: 'center',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
},
|
|
21
|
-
}));
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.default = registerConfigurationEditorWidget;
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
42
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
43
|
-
const HeadingComponent_1 = __importDefault(require("./components/HeadingComponent"));
|
|
44
|
-
const model_1 = __importDefault(require("./model"));
|
|
45
|
-
const configSchema = (0, configuration_1.ConfigurationSchema)('ConfigurationEditorWidget', {});
|
|
46
|
-
const LazyConfigurationEditorComponent = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ConfigurationEditor'))));
|
|
47
|
-
function registerConfigurationEditorWidget(pluginManager) {
|
|
48
|
-
pluginManager.addWidgetType(() => {
|
|
49
|
-
return new pluggableElementTypes_1.WidgetType({
|
|
50
|
-
name: 'ConfigurationEditorWidget',
|
|
51
|
-
HeadingComponent: HeadingComponent_1.default,
|
|
52
|
-
configSchema,
|
|
53
|
-
stateModel: (0, model_1.default)(pluginManager),
|
|
54
|
-
ReactComponent: LazyConfigurationEditorComponent,
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
3
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
4
|
-
type: import("mobx-state-tree").ISimpleType<"ConfigurationEditorWidget">;
|
|
5
|
-
target: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyModelType>>;
|
|
6
|
-
}, {
|
|
7
|
-
setTarget(newTarget: any): void;
|
|
8
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = stateModelFactory;
|
|
4
|
-
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
5
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
-
function stateModelFactory(pluginManager) {
|
|
7
|
-
return mobx_state_tree_1.types
|
|
8
|
-
.model('ConfigurationEditorWidget', {
|
|
9
|
-
id: mst_1.ElementId,
|
|
10
|
-
type: mobx_state_tree_1.types.literal('ConfigurationEditorWidget'),
|
|
11
|
-
target: mobx_state_tree_1.types.safeReference(pluginManager.pluggableConfigSchemaType('track')),
|
|
12
|
-
})
|
|
13
|
-
.actions(self => ({
|
|
14
|
-
setTarget(newTarget) {
|
|
15
|
-
self.target = newTarget;
|
|
16
|
-
},
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
-
import type { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
5
|
-
import type { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
|
|
6
|
-
import type { NoAssemblyRegion } from '@jbrowse/core/util/types';
|
|
7
|
-
export declare function makeFeatures(fdata: SimpleFeatureSerialized[]): Map<string, Feature[]>;
|
|
8
|
-
export default class FromConfigAdapter extends BaseFeatureDataAdapter {
|
|
9
|
-
protected features: Map<string, Feature[]>;
|
|
10
|
-
constructor(conf: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
11
|
-
getRefNames(): Promise<string[]>;
|
|
12
|
-
getRefNameAliases(): Promise<{
|
|
13
|
-
refName: string;
|
|
14
|
-
aliases: any;
|
|
15
|
-
}[]>;
|
|
16
|
-
getFeatures(region: NoAssemblyRegion): import("rxjs").Observable<Feature>;
|
|
17
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.makeFeatures = makeFeatures;
|
|
7
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
-
const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
|
|
9
|
-
const rxjs_1 = require("@jbrowse/core/util/rxjs");
|
|
10
|
-
const simpleFeature_1 = __importDefault(require("@jbrowse/core/util/simpleFeature"));
|
|
11
|
-
function makeFeatures(fdata) {
|
|
12
|
-
const features = new Map();
|
|
13
|
-
for (const entry of fdata) {
|
|
14
|
-
const f = new simpleFeature_1.default(entry);
|
|
15
|
-
const refName = f.get('refName');
|
|
16
|
-
let bucket = features.get(refName);
|
|
17
|
-
if (!bucket) {
|
|
18
|
-
bucket = [];
|
|
19
|
-
features.set(refName, bucket);
|
|
20
|
-
}
|
|
21
|
-
bucket.push(f);
|
|
22
|
-
}
|
|
23
|
-
for (const refFeatures of features.values()) {
|
|
24
|
-
refFeatures.sort((a, b) => a.get('start') - b.get('start'));
|
|
25
|
-
}
|
|
26
|
-
return features;
|
|
27
|
-
}
|
|
28
|
-
class FromConfigAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
29
|
-
constructor(conf, getSubAdapter, pluginManager) {
|
|
30
|
-
super(conf, getSubAdapter, pluginManager);
|
|
31
|
-
const feats = (0, configuration_1.readConfObject)(conf, 'features');
|
|
32
|
-
this.features = makeFeatures(feats);
|
|
33
|
-
}
|
|
34
|
-
async getRefNames() {
|
|
35
|
-
return [...this.features.keys()];
|
|
36
|
-
}
|
|
37
|
-
async getRefNameAliases() {
|
|
38
|
-
return [...this.features.values()].map(featureArray => ({
|
|
39
|
-
refName: featureArray[0].get('refName'),
|
|
40
|
-
aliases: featureArray[0].get('aliases'),
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
getFeatures(region) {
|
|
44
|
-
const { refName, start, end } = region;
|
|
45
|
-
return (0, rxjs_1.ObservableCreate)(async (observer) => {
|
|
46
|
-
const features = this.features.get(refName) || [];
|
|
47
|
-
for (const f of features) {
|
|
48
|
-
if (f.get('end') > start && f.get('start') < end) {
|
|
49
|
-
observer.next(f);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
observer.complete();
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.default = FromConfigAdapter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
features: {
|
|
3
|
-
type: string;
|
|
4
|
-
defaultValue: never[];
|
|
5
|
-
};
|
|
6
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
7
|
-
export default configSchema;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
function x() { }
|
|
5
|
-
const configSchema = (0, configuration_1.ConfigurationSchema)('FromConfigAdapter', {
|
|
6
|
-
features: {
|
|
7
|
-
type: 'frozen',
|
|
8
|
-
defaultValue: [],
|
|
9
|
-
},
|
|
10
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
11
|
-
exports.default = configSchema;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.default = FromConfigAdapterF;
|
|
40
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
41
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
42
|
-
function FromConfigAdapterF(pluginManager) {
|
|
43
|
-
pluginManager.addAdapterType(() => new pluggableElementTypes_1.AdapterType({
|
|
44
|
-
name: 'FromConfigAdapter',
|
|
45
|
-
configSchema: configSchema_1.default,
|
|
46
|
-
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./FromConfigAdapter'))).then(r => r.default),
|
|
47
|
-
adapterMetadata: {
|
|
48
|
-
hiddenFromGUI: true,
|
|
49
|
-
},
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
-
import type { RegionsAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
5
|
-
import type { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
6
|
-
export default class FromConfigRegionsAdapter extends BaseAdapter implements RegionsAdapter {
|
|
7
|
-
private features;
|
|
8
|
-
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
9
|
-
getRegions(): Promise<{
|
|
10
|
-
refName: string;
|
|
11
|
-
start: number;
|
|
12
|
-
end: number;
|
|
13
|
-
}[]>;
|
|
14
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
|
|
5
|
-
const FromConfigAdapter_1 = require("../FromConfigAdapter/FromConfigAdapter");
|
|
6
|
-
class FromConfigRegionsAdapter extends BaseAdapter_1.BaseAdapter {
|
|
7
|
-
constructor(config, getSubAdapter, pluginManager) {
|
|
8
|
-
super(config, getSubAdapter, pluginManager);
|
|
9
|
-
const f = (0, configuration_1.readConfObject)(config, 'features');
|
|
10
|
-
this.features = (0, FromConfigAdapter_1.makeFeatures)(f);
|
|
11
|
-
}
|
|
12
|
-
async getRegions() {
|
|
13
|
-
const regions = [];
|
|
14
|
-
for (const [refName, features] of this.features) {
|
|
15
|
-
let currentRegion;
|
|
16
|
-
for (const feature of features) {
|
|
17
|
-
if (currentRegion &&
|
|
18
|
-
currentRegion.end >= feature.get('start') &&
|
|
19
|
-
currentRegion.start <= feature.get('end')) {
|
|
20
|
-
currentRegion.end = feature.get('end');
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
if (currentRegion) {
|
|
24
|
-
regions.push(currentRegion);
|
|
25
|
-
}
|
|
26
|
-
currentRegion = {
|
|
27
|
-
refName,
|
|
28
|
-
start: feature.get('start'),
|
|
29
|
-
end: feature.get('end'),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (currentRegion) {
|
|
34
|
-
regions.push(currentRegion);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
regions.sort((a, b) => a.refName.localeCompare(b.refName));
|
|
38
|
-
return regions;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.default = FromConfigRegionsAdapter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const regionsConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
features: {
|
|
3
|
-
type: string;
|
|
4
|
-
defaultValue: never[];
|
|
5
|
-
};
|
|
6
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
7
|
-
export default regionsConfigSchema;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
function x() { }
|
|
5
|
-
const regionsConfigSchema = (0, configuration_1.ConfigurationSchema)('FromConfigRegionsAdapter', {
|
|
6
|
-
features: {
|
|
7
|
-
type: 'frozen',
|
|
8
|
-
defaultValue: [],
|
|
9
|
-
},
|
|
10
|
-
}, {
|
|
11
|
-
explicitlyTyped: true,
|
|
12
|
-
implicitIdentifier: 'adapterId',
|
|
13
|
-
});
|
|
14
|
-
exports.default = regionsConfigSchema;
|