@jbrowse/plugin-grid-bookmark 2.9.0 → 2.10.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/GridBookmarkWidget/components/BookmarkGrid.js +57 -48
- package/dist/GridBookmarkWidget/components/GridBookmarkWidget.js +110 -15
- package/dist/GridBookmarkWidget/components/Highlight/Highlight.d.ts +7 -0
- package/dist/GridBookmarkWidget/components/Highlight/Highlight.js +92 -0
- package/dist/GridBookmarkWidget/components/Highlight/index.d.ts +2 -0
- package/dist/GridBookmarkWidget/components/Highlight/index.js +19 -0
- package/dist/GridBookmarkWidget/components/{DeleteBookmarksDialog.d.ts → dialogs/DeleteBookmarksDialog.d.ts} +1 -1
- package/{esm/GridBookmarkWidget/components → dist/GridBookmarkWidget/components/dialogs}/EditBookmarkLabelDialog.d.ts +1 -1
- package/dist/GridBookmarkWidget/components/dialogs/EditHighlightColorDialog.d.ts +7 -0
- package/dist/GridBookmarkWidget/components/dialogs/EditHighlightColorDialog.js +48 -0
- package/dist/GridBookmarkWidget/components/{ExportBookmarksDialog.d.ts → dialogs/ExportBookmarksDialog.d.ts} +1 -1
- package/dist/GridBookmarkWidget/components/{ExportBookmarksDialog.js → dialogs/ExportBookmarksDialog.js} +12 -6
- package/dist/GridBookmarkWidget/components/dialogs/HighlightSettingsDialog.d.ts +7 -0
- package/dist/GridBookmarkWidget/components/dialogs/HighlightSettingsDialog.js +27 -0
- package/{esm/GridBookmarkWidget/components → dist/GridBookmarkWidget/components/dialogs}/ImportBookmarksDialog.d.ts +1 -1
- package/dist/GridBookmarkWidget/components/{ImportBookmarksDialog.js → dialogs/ImportBookmarksDialog.js} +2 -2
- package/dist/GridBookmarkWidget/components/{ShareBookmarksDialog.d.ts → dialogs/ShareBookmarksDialog.d.ts} +1 -1
- package/dist/GridBookmarkWidget/components/{ShareBookmarksDialog.js → dialogs/ShareBookmarksDialog.js} +1 -1
- package/dist/GridBookmarkWidget/index.js +3 -0
- package/dist/GridBookmarkWidget/model.d.ts +101 -0
- package/dist/GridBookmarkWidget/model.js +109 -5
- package/dist/index.js +55 -7
- package/esm/GridBookmarkWidget/components/BookmarkGrid.js +58 -49
- package/esm/GridBookmarkWidget/components/GridBookmarkWidget.js +87 -15
- package/esm/GridBookmarkWidget/components/Highlight/Highlight.d.ts +7 -0
- package/esm/GridBookmarkWidget/components/Highlight/Highlight.js +64 -0
- package/esm/GridBookmarkWidget/components/Highlight/index.d.ts +2 -0
- package/esm/GridBookmarkWidget/components/Highlight/index.js +13 -0
- package/esm/GridBookmarkWidget/components/{DeleteBookmarksDialog.d.ts → dialogs/DeleteBookmarksDialog.d.ts} +1 -1
- package/{dist/GridBookmarkWidget/components → esm/GridBookmarkWidget/components/dialogs}/EditBookmarkLabelDialog.d.ts +1 -1
- package/esm/GridBookmarkWidget/components/dialogs/EditHighlightColorDialog.d.ts +7 -0
- package/esm/GridBookmarkWidget/components/dialogs/EditHighlightColorDialog.js +23 -0
- package/esm/GridBookmarkWidget/components/{ExportBookmarksDialog.d.ts → dialogs/ExportBookmarksDialog.d.ts} +1 -1
- package/esm/GridBookmarkWidget/components/{ExportBookmarksDialog.js → dialogs/ExportBookmarksDialog.js} +12 -6
- package/esm/GridBookmarkWidget/components/dialogs/HighlightSettingsDialog.d.ts +7 -0
- package/esm/GridBookmarkWidget/components/dialogs/HighlightSettingsDialog.js +22 -0
- package/{dist/GridBookmarkWidget/components → esm/GridBookmarkWidget/components/dialogs}/ImportBookmarksDialog.d.ts +1 -1
- package/esm/GridBookmarkWidget/components/{ImportBookmarksDialog.js → dialogs/ImportBookmarksDialog.js} +2 -2
- package/esm/GridBookmarkWidget/components/{ShareBookmarksDialog.d.ts → dialogs/ShareBookmarksDialog.d.ts} +1 -1
- package/esm/GridBookmarkWidget/components/{ShareBookmarksDialog.js → dialogs/ShareBookmarksDialog.js} +1 -1
- package/esm/GridBookmarkWidget/index.js +3 -0
- package/esm/GridBookmarkWidget/model.d.ts +101 -0
- package/esm/GridBookmarkWidget/model.js +109 -5
- package/esm/index.js +55 -7
- package/package.json +2 -2
- package/dist/GridBookmarkWidget/components/DeleteBookmarks.d.ts +0 -6
- package/dist/GridBookmarkWidget/components/DeleteBookmarks.js +0 -41
- package/dist/GridBookmarkWidget/components/ExportBookmarks.d.ts +0 -6
- package/dist/GridBookmarkWidget/components/ExportBookmarks.js +0 -41
- package/dist/GridBookmarkWidget/components/ImportBookmarks.d.ts +0 -6
- package/dist/GridBookmarkWidget/components/ImportBookmarks.js +0 -42
- package/dist/GridBookmarkWidget/components/ShareBookmarks.d.ts +0 -6
- package/dist/GridBookmarkWidget/components/ShareBookmarks.js +0 -37
- package/esm/GridBookmarkWidget/components/DeleteBookmarks.d.ts +0 -6
- package/esm/GridBookmarkWidget/components/DeleteBookmarks.js +0 -13
- package/esm/GridBookmarkWidget/components/ExportBookmarks.d.ts +0 -6
- package/esm/GridBookmarkWidget/components/ExportBookmarks.js +0 -13
- package/esm/GridBookmarkWidget/components/ImportBookmarks.d.ts +0 -6
- package/esm/GridBookmarkWidget/components/ImportBookmarks.js +0 -14
- package/esm/GridBookmarkWidget/components/ShareBookmarks.d.ts +0 -6
- package/esm/GridBookmarkWidget/components/ShareBookmarks.js +0 -12
- /package/dist/GridBookmarkWidget/components/{DeleteBookmarksDialog.js → dialogs/DeleteBookmarksDialog.js} +0 -0
- /package/dist/GridBookmarkWidget/components/{EditBookmarkLabelDialog.js → dialogs/EditBookmarkLabelDialog.js} +0 -0
- /package/esm/GridBookmarkWidget/components/{DeleteBookmarksDialog.js → dialogs/DeleteBookmarksDialog.js} +0 -0
- /package/esm/GridBookmarkWidget/components/{EditBookmarkLabelDialog.js → dialogs/EditBookmarkLabelDialog.js} +0 -0
|
@@ -1,42 +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 (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const react_1 = __importStar(require("react"));
|
|
30
|
-
const mobx_react_1 = require("mobx-react");
|
|
31
|
-
const material_1 = require("@mui/material");
|
|
32
|
-
// icons
|
|
33
|
-
const Publish_1 = __importDefault(require("@mui/icons-material/Publish"));
|
|
34
|
-
const ImportBookmarksDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./ImportBookmarksDialog'))));
|
|
35
|
-
const ImportBookmarks = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
36
|
-
const [open, setOpen] = (0, react_1.useState)(false);
|
|
37
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
38
|
-
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(Publish_1.default, null), onClick: () => setOpen(true) }, "Import"),
|
|
39
|
-
open ? (react_1.default.createElement(react_1.Suspense, { fallback: react_1.default.createElement(react_1.default.Fragment, null) },
|
|
40
|
-
react_1.default.createElement(ImportBookmarksDialog, { onClose: () => setOpen(false), model: model }))) : null));
|
|
41
|
-
});
|
|
42
|
-
exports.default = ImportBookmarks;
|
|
@@ -1,37 +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 (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const react_1 = __importStar(require("react"));
|
|
27
|
-
const material_1 = require("@mui/material");
|
|
28
|
-
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
29
|
-
const ShareBookmarksDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./ShareBookmarksDialog'))));
|
|
30
|
-
function ShareBookmarks({ model }) {
|
|
31
|
-
const [open, setOpen] = (0, react_1.useState)(false);
|
|
32
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
33
|
-
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(Icons_1.ContentCopy, null), onClick: () => setOpen(true) }, "Share"),
|
|
34
|
-
open ? (react_1.default.createElement(react_1.Suspense, { fallback: react_1.default.createElement(react_1.default.Fragment, null) },
|
|
35
|
-
react_1.default.createElement(ShareBookmarksDialog, { onClose: () => setOpen(false), model: model }))) : null));
|
|
36
|
-
}
|
|
37
|
-
exports.default = ShareBookmarks;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { Suspense, lazy, useState } from 'react';
|
|
2
|
-
import { Button } from '@mui/material';
|
|
3
|
-
// icons
|
|
4
|
-
import DeleteIcon from '@mui/icons-material/Delete';
|
|
5
|
-
const DeleteBookmarksDialog = lazy(() => import('./DeleteBookmarksDialog'));
|
|
6
|
-
function DeleteBookmarks({ model }) {
|
|
7
|
-
const [open, setOpen] = useState(false);
|
|
8
|
-
return (React.createElement(React.Fragment, null,
|
|
9
|
-
React.createElement(Button, { startIcon: React.createElement(DeleteIcon, null), "aria-label": "clear bookmarks", onClick: () => setOpen(true) }, "Delete"),
|
|
10
|
-
open ? (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) },
|
|
11
|
-
React.createElement(DeleteBookmarksDialog, { model: model, onClose: () => setOpen(false) }))) : null));
|
|
12
|
-
}
|
|
13
|
-
export default DeleteBookmarks;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { Suspense, lazy, useState } from 'react';
|
|
2
|
-
import { observer } from 'mobx-react';
|
|
3
|
-
import { Button } from '@mui/material';
|
|
4
|
-
import GetAppIcon from '@mui/icons-material/GetApp';
|
|
5
|
-
const ExportBookmarksDialog = lazy(() => import('./ExportBookmarksDialog'));
|
|
6
|
-
const ExportBookmarks = observer(function ExportBookmarks({ model, }) {
|
|
7
|
-
const [open, setOpen] = useState(false);
|
|
8
|
-
return (React.createElement(React.Fragment, null,
|
|
9
|
-
React.createElement(Button, { startIcon: React.createElement(GetAppIcon, null), onClick: () => setOpen(true), "data-testid": "export_button" }, "Export"),
|
|
10
|
-
open ? (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) },
|
|
11
|
-
React.createElement(ExportBookmarksDialog, { onClose: () => setOpen(false), model: model }))) : null));
|
|
12
|
-
});
|
|
13
|
-
export default ExportBookmarks;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { useState, Suspense, lazy } from 'react';
|
|
2
|
-
import { observer } from 'mobx-react';
|
|
3
|
-
import { Button } from '@mui/material';
|
|
4
|
-
// icons
|
|
5
|
-
import ImportIcon from '@mui/icons-material/Publish';
|
|
6
|
-
const ImportBookmarksDialog = lazy(() => import('./ImportBookmarksDialog'));
|
|
7
|
-
const ImportBookmarks = observer(function ({ model, }) {
|
|
8
|
-
const [open, setOpen] = useState(false);
|
|
9
|
-
return (React.createElement(React.Fragment, null,
|
|
10
|
-
React.createElement(Button, { startIcon: React.createElement(ImportIcon, null), onClick: () => setOpen(true) }, "Import"),
|
|
11
|
-
open ? (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) },
|
|
12
|
-
React.createElement(ImportBookmarksDialog, { onClose: () => setOpen(false), model: model }))) : null));
|
|
13
|
-
});
|
|
14
|
-
export default ImportBookmarks;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { Suspense, lazy, useState } from 'react';
|
|
2
|
-
import { Button } from '@mui/material';
|
|
3
|
-
import { ContentCopy as ContentCopyIcon } from '@jbrowse/core/ui/Icons';
|
|
4
|
-
const ShareBookmarksDialog = lazy(() => import('./ShareBookmarksDialog'));
|
|
5
|
-
function ShareBookmarks({ model }) {
|
|
6
|
-
const [open, setOpen] = useState(false);
|
|
7
|
-
return (React.createElement(React.Fragment, null,
|
|
8
|
-
React.createElement(Button, { startIcon: React.createElement(ContentCopyIcon, null), onClick: () => setOpen(true) }, "Share"),
|
|
9
|
-
open ? (React.createElement(Suspense, { fallback: React.createElement(React.Fragment, null) },
|
|
10
|
-
React.createElement(ShareBookmarksDialog, { onClose: () => setOpen(false), model: model }))) : null));
|
|
11
|
-
}
|
|
12
|
-
export default ShareBookmarks;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|