@jbrowse/plugin-wiggle 3.5.0 → 3.5.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.
@@ -203,6 +203,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
203
203
  readonly renderDelay: number;
204
204
  readonly TooltipComponent: AnyReactComponentType;
205
205
  readonly selectedFeatureId: string | undefined;
206
+ copyInfoToClipboard(feature: import("@jbrowse/core/util").Feature): void;
206
207
  } & {
207
208
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
208
209
  readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
@@ -19,6 +19,9 @@ const useStyles = (0, mui_1.makeStyles)()({
19
19
  float: 'right',
20
20
  },
21
21
  });
22
+ function HelpfulTips() {
23
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Helpful tips", (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsx)("li", { children: "You can select rows in the table with the checkboxes" }), (0, jsx_runtime_1.jsx)("li", { children: "Multi-select is enabled with shift-click and control-click" }), (0, jsx_runtime_1.jsx)("li", { children: "The \"Move selected items up/down\" can re-arrange subtracks" }), (0, jsx_runtime_1.jsx)("li", { children: "Sorting the data grid itself can also re-arrange subtracks" }), (0, jsx_runtime_1.jsx)("li", { children: "Changes are applied when you hit Submit" }), (0, jsx_runtime_1.jsx)("li", { children: "You can click and drag the dialog box to move it on the screen" }), (0, jsx_runtime_1.jsx)("li", { children: "Columns in the table can be hidden using a vertical '...' menu on the right side of each column" })] })] }));
24
+ }
22
25
  function SetColorDialog({ model, handleClose, }) {
23
26
  const { classes } = useStyles();
24
27
  const { sources } = model;
@@ -26,7 +29,7 @@ function SetColorDialog({ model, handleClose, }) {
26
29
  const [showTips, setShowTips] = (0, util_1.useLocalStorage)('multiwiggle-showTips', false);
27
30
  return ((0, jsx_runtime_1.jsxs)(DraggableDialog_1.default, { open: true, onClose: handleClose, maxWidth: "xl", title: "Multi-wiggle color/arrangement editor", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.content, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", className: classes.float, onClick: () => {
28
31
  setShowTips(!showTips);
29
- }, children: showTips ? 'Hide tips' : 'Show tips' }), (0, jsx_runtime_1.jsx)("br", {}), showTips ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Helpful tips", (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsx)("li", { children: "You can select rows in the table with the checkboxes" }), (0, jsx_runtime_1.jsx)("li", { children: "Multi-select is enabled with shift-click and control-click" }), (0, jsx_runtime_1.jsx)("li", { children: "The \"Move selected items up/down\" can re-arrange subtracks" }), (0, jsx_runtime_1.jsx)("li", { children: "Sorting the data grid itself can also re-arrange subtracks" }), (0, jsx_runtime_1.jsx)("li", { children: "Changes are applied when you hit Submit" }), (0, jsx_runtime_1.jsx)("li", { children: "You can click and drag the dialog box to move it on the screen" }), (0, jsx_runtime_1.jsx)("li", { children: "Columns in the table can be hidden using a vertical '...' menu on the right side of each column" })] })] })) : null, (0, jsx_runtime_1.jsx)(SourcesGrid_1.default, { rows: currLayout, onChange: setCurrLayout, showTips: showTips })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", type: "submit", color: "inherit", onClick: () => {
32
+ }, children: showTips ? 'Hide tips' : 'Show tips' }), (0, jsx_runtime_1.jsx)("br", {}), showTips ? (0, jsx_runtime_1.jsx)(HelpfulTips, {}) : null, (0, jsx_runtime_1.jsx)(SourcesGrid_1.default, { rows: currLayout, onChange: setCurrLayout, showTips: showTips })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", type: "submit", color: "inherit", onClick: () => {
30
33
  model.clearLayout();
31
34
  setCurrLayout(model.sources || []);
32
35
  }, children: "Clear custom settings" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
@@ -68,15 +68,15 @@ function SourcesGrid({ rows, onChange, showTips, }) {
68
68
  });
69
69
  return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { disabled: !selected.length, onClick: event => {
70
70
  setAnchorEl(event.currentTarget);
71
- }, children: "Change color of selected items" }), (0, jsx_runtime_1.jsxs)(material_1.Button, { onClick: () => {
71
+ }, children: "Change color of selected items" }), (0, jsx_runtime_1.jsxs)(material_1.Button, { disabled: !selected.length, onClick: () => {
72
72
  onChange((0, util_2.moveUp)([...rows], selected));
73
- }, disabled: !selected.length, children: [(0, jsx_runtime_1.jsx)(KeyboardArrowUp_1.default, {}), showTips ? 'Move selected items up' : null] }), (0, jsx_runtime_1.jsxs)(material_1.Button, { onClick: () => {
73
+ }, children: [(0, jsx_runtime_1.jsx)(KeyboardArrowUp_1.default, {}), showTips ? 'Move selected items up' : null] }), (0, jsx_runtime_1.jsxs)(material_1.Button, { disabled: !selected.length, onClick: () => {
74
74
  onChange((0, util_2.moveDown)([...rows], selected));
75
- }, disabled: !selected.length, children: [(0, jsx_runtime_1.jsx)(KeyboardArrowDown_1.default, {}), showTips ? 'Move selected items down' : null] }), (0, jsx_runtime_1.jsxs)(material_1.Button, { onClick: () => {
75
+ }, children: [(0, jsx_runtime_1.jsx)(KeyboardArrowDown_1.default, {}), showTips ? 'Move selected items down' : null] }), (0, jsx_runtime_1.jsxs)(material_1.Button, { disabled: !selected.length, onClick: () => {
76
76
  onChange((0, util_2.moveUp)([...rows], selected, rows.length));
77
- }, disabled: !selected.length, children: [(0, jsx_runtime_1.jsx)(KeyboardDoubleArrowUp_1.default, {}), showTips ? 'Move selected items to top' : null] }), (0, jsx_runtime_1.jsxs)(material_1.Button, { onClick: () => {
77
+ }, children: [(0, jsx_runtime_1.jsx)(KeyboardDoubleArrowUp_1.default, {}), showTips ? 'Move selected items to top' : null] }), (0, jsx_runtime_1.jsxs)(material_1.Button, { disabled: !selected.length, onClick: () => {
78
78
  onChange((0, util_2.moveDown)([...rows], selected, rows.length));
79
- }, disabled: !selected.length, children: [(0, jsx_runtime_1.jsx)(KeyboardDoubleArrowDown_1.default, {}), showTips ? 'Move selected items to bottom' : null] }), (0, jsx_runtime_1.jsx)(ColorPicker_1.ColorPopover, { anchorEl: anchorEl, color: widgetColor, onChange: c => {
79
+ }, children: [(0, jsx_runtime_1.jsx)(KeyboardDoubleArrowDown_1.default, {}), showTips ? 'Move selected items to bottom' : null] }), (0, jsx_runtime_1.jsx)(ColorPicker_1.ColorPopover, { anchorEl: anchorEl, color: widgetColor, onChange: c => {
80
80
  setWidgetColor(c);
81
81
  for (const id of selected) {
82
82
  const elt = rows.find(f => f.name === id);
@@ -87,7 +87,7 @@ function SourcesGrid({ rows, onChange, showTips, }) {
87
87
  onChange([...rows]);
88
88
  }, onClose: () => {
89
89
  setAnchorEl(null);
90
- } }), (0, jsx_runtime_1.jsx)("div", { style: { height: 400, width: '100%' }, children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { getRowId: row => row.name, checkboxSelection: true, onRowSelectionModelChange: arg => {
90
+ } }), (0, jsx_runtime_1.jsx)("div", { style: { height: 400, width: '100%' }, children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { disableRowSelectionOnClick: true, getRowId: row => row.name, checkboxSelection: true, onRowSelectionModelChange: arg => {
91
91
  setSelected([...arg.ids]);
92
92
  }, rows: rows, rowHeight: 25, columnHeaderHeight: 33, columns: [
93
93
  {
@@ -205,6 +205,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager, configS
205
205
  readonly renderDelay: number;
206
206
  readonly TooltipComponent: AnyReactComponentType;
207
207
  readonly selectedFeatureId: string | undefined;
208
+ copyInfoToClipboard(feature: Feature): void;
208
209
  } & {
209
210
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
210
211
  readonly featureUnderMouse: Feature | undefined;
@@ -197,6 +197,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
197
197
  readonly renderDelay: number;
198
198
  readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
199
199
  readonly selectedFeatureId: string | undefined;
200
+ copyInfoToClipboard(feature: Feature): void;
200
201
  } & {
201
202
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
202
203
  readonly featureUnderMouse: Feature | undefined;
@@ -203,6 +203,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
203
203
  readonly renderDelay: number;
204
204
  readonly TooltipComponent: AnyReactComponentType;
205
205
  readonly selectedFeatureId: string | undefined;
206
+ copyInfoToClipboard(feature: import("@jbrowse/core/util").Feature): void;
206
207
  } & {
207
208
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
208
209
  readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
@@ -13,6 +13,9 @@ const useStyles = makeStyles()({
13
13
  float: 'right',
14
14
  },
15
15
  });
16
+ function HelpfulTips() {
17
+ return (_jsxs(_Fragment, { children: ["Helpful tips", _jsxs("ul", { children: [_jsx("li", { children: "You can select rows in the table with the checkboxes" }), _jsx("li", { children: "Multi-select is enabled with shift-click and control-click" }), _jsx("li", { children: "The \"Move selected items up/down\" can re-arrange subtracks" }), _jsx("li", { children: "Sorting the data grid itself can also re-arrange subtracks" }), _jsx("li", { children: "Changes are applied when you hit Submit" }), _jsx("li", { children: "You can click and drag the dialog box to move it on the screen" }), _jsx("li", { children: "Columns in the table can be hidden using a vertical '...' menu on the right side of each column" })] })] }));
18
+ }
16
19
  export default function SetColorDialog({ model, handleClose, }) {
17
20
  const { classes } = useStyles();
18
21
  const { sources } = model;
@@ -20,7 +23,7 @@ export default function SetColorDialog({ model, handleClose, }) {
20
23
  const [showTips, setShowTips] = useLocalStorage('multiwiggle-showTips', false);
21
24
  return (_jsxs(DraggableDialog, { open: true, onClose: handleClose, maxWidth: "xl", title: "Multi-wiggle color/arrangement editor", children: [_jsxs(DialogContent, { className: classes.content, children: [_jsx(Button, { variant: "contained", className: classes.float, onClick: () => {
22
25
  setShowTips(!showTips);
23
- }, children: showTips ? 'Hide tips' : 'Show tips' }), _jsx("br", {}), showTips ? (_jsxs(_Fragment, { children: ["Helpful tips", _jsxs("ul", { children: [_jsx("li", { children: "You can select rows in the table with the checkboxes" }), _jsx("li", { children: "Multi-select is enabled with shift-click and control-click" }), _jsx("li", { children: "The \"Move selected items up/down\" can re-arrange subtracks" }), _jsx("li", { children: "Sorting the data grid itself can also re-arrange subtracks" }), _jsx("li", { children: "Changes are applied when you hit Submit" }), _jsx("li", { children: "You can click and drag the dialog box to move it on the screen" }), _jsx("li", { children: "Columns in the table can be hidden using a vertical '...' menu on the right side of each column" })] })] })) : null, _jsx(SourcesGrid, { rows: currLayout, onChange: setCurrLayout, showTips: showTips })] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", type: "submit", color: "inherit", onClick: () => {
26
+ }, children: showTips ? 'Hide tips' : 'Show tips' }), _jsx("br", {}), showTips ? _jsx(HelpfulTips, {}) : null, _jsx(SourcesGrid, { rows: currLayout, onChange: setCurrLayout, showTips: showTips })] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", type: "submit", color: "inherit", onClick: () => {
24
27
  model.clearLayout();
25
28
  setCurrLayout(model.sources || []);
26
29
  }, children: "Clear custom settings" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
@@ -30,15 +30,15 @@ function SourcesGrid({ rows, onChange, showTips, }) {
30
30
  });
31
31
  return (_jsxs("div", { children: [_jsx(Button, { disabled: !selected.length, onClick: event => {
32
32
  setAnchorEl(event.currentTarget);
33
- }, children: "Change color of selected items" }), _jsxs(Button, { onClick: () => {
33
+ }, children: "Change color of selected items" }), _jsxs(Button, { disabled: !selected.length, onClick: () => {
34
34
  onChange(moveUp([...rows], selected));
35
- }, disabled: !selected.length, children: [_jsx(KeyboardArrowUpIcon, {}), showTips ? 'Move selected items up' : null] }), _jsxs(Button, { onClick: () => {
35
+ }, children: [_jsx(KeyboardArrowUpIcon, {}), showTips ? 'Move selected items up' : null] }), _jsxs(Button, { disabled: !selected.length, onClick: () => {
36
36
  onChange(moveDown([...rows], selected));
37
- }, disabled: !selected.length, children: [_jsx(KeyboardArrowDownIcon, {}), showTips ? 'Move selected items down' : null] }), _jsxs(Button, { onClick: () => {
37
+ }, children: [_jsx(KeyboardArrowDownIcon, {}), showTips ? 'Move selected items down' : null] }), _jsxs(Button, { disabled: !selected.length, onClick: () => {
38
38
  onChange(moveUp([...rows], selected, rows.length));
39
- }, disabled: !selected.length, children: [_jsx(KeyboardDoubleArrowUpIcon, {}), showTips ? 'Move selected items to top' : null] }), _jsxs(Button, { onClick: () => {
39
+ }, children: [_jsx(KeyboardDoubleArrowUpIcon, {}), showTips ? 'Move selected items to top' : null] }), _jsxs(Button, { disabled: !selected.length, onClick: () => {
40
40
  onChange(moveDown([...rows], selected, rows.length));
41
- }, disabled: !selected.length, children: [_jsx(KeyboardDoubleArrowDownIcon, {}), showTips ? 'Move selected items to bottom' : null] }), _jsx(ColorPopover, { anchorEl: anchorEl, color: widgetColor, onChange: c => {
41
+ }, children: [_jsx(KeyboardDoubleArrowDownIcon, {}), showTips ? 'Move selected items to bottom' : null] }), _jsx(ColorPopover, { anchorEl: anchorEl, color: widgetColor, onChange: c => {
42
42
  setWidgetColor(c);
43
43
  for (const id of selected) {
44
44
  const elt = rows.find(f => f.name === id);
@@ -49,7 +49,7 @@ function SourcesGrid({ rows, onChange, showTips, }) {
49
49
  onChange([...rows]);
50
50
  }, onClose: () => {
51
51
  setAnchorEl(null);
52
- } }), _jsx("div", { style: { height: 400, width: '100%' }, children: _jsx(DataGrid, { getRowId: row => row.name, checkboxSelection: true, onRowSelectionModelChange: arg => {
52
+ } }), _jsx("div", { style: { height: 400, width: '100%' }, children: _jsx(DataGrid, { disableRowSelectionOnClick: true, getRowId: row => row.name, checkboxSelection: true, onRowSelectionModelChange: arg => {
53
53
  setSelected([...arg.ids]);
54
54
  }, rows: rows, rowHeight: 25, columnHeaderHeight: 33, columns: [
55
55
  {
@@ -205,6 +205,7 @@ export declare function stateModelFactory(_pluginManager: PluginManager, configS
205
205
  readonly renderDelay: number;
206
206
  readonly TooltipComponent: AnyReactComponentType;
207
207
  readonly selectedFeatureId: string | undefined;
208
+ copyInfoToClipboard(feature: Feature): void;
208
209
  } & {
209
210
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
210
211
  readonly featureUnderMouse: Feature | undefined;
@@ -197,6 +197,7 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
197
197
  readonly renderDelay: number;
198
198
  readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
199
199
  readonly selectedFeatureId: string | undefined;
200
+ copyInfoToClipboard(feature: Feature): void;
200
201
  } & {
201
202
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
202
203
  readonly featureUnderMouse: Feature | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-wiggle",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "JBrowse 2 wiggle adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@gmod/bbi": "^7.0.0",
40
- "@jbrowse/core": "^3.5.0",
41
- "@jbrowse/plugin-data-management": "^3.5.0",
42
- "@jbrowse/plugin-linear-genome-view": "^3.5.0",
40
+ "@jbrowse/core": "^3.5.1",
41
+ "@jbrowse/plugin-data-management": "^3.5.1",
42
+ "@jbrowse/plugin-linear-genome-view": "^3.5.1",
43
43
  "@mui/icons-material": "^7.0.0",
44
44
  "@mui/material": "^7.0.0",
45
45
  "@mui/x-charts-vendor": "^8.0.0",
@@ -62,5 +62,5 @@
62
62
  "distModule": "esm/index.js",
63
63
  "srcModule": "src/index.ts",
64
64
  "module": "esm/index.js",
65
- "gitHead": "8a8aa0aab2229dece106a5715a767e649e2fe92b"
65
+ "gitHead": "cb8859da9d838ad2594964777c5c54f385d98f5e"
66
66
  }