@jbrowse/plugin-data-management 2.17.0 → 3.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/dist/AddConnectionWidget/components/AddConnectionWidget.d.ts +1 -2
- package/dist/AddConnectionWidget/components/AddConnectionWidget.js +31 -62
- package/dist/AddConnectionWidget/components/ConfigureConnection.d.ts +4 -5
- package/dist/AddConnectionWidget/components/ConfigureConnection.js +5 -28
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +2 -3
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.js +6 -32
- package/dist/AddConnectionWidget/index.d.ts +1 -1
- package/dist/AddConnectionWidget/index.js +18 -8
- package/dist/AddConnectionWidget/model.js +1 -1
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.d.ts +9 -0
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.js +16 -0
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +4 -0
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +19 -0
- package/dist/AddTrackWidget/components/AddTrackWidget.d.ts +2 -3
- package/dist/AddTrackWidget/components/AddTrackWidget.js +7 -35
- package/dist/AddTrackWidget/components/ConfirmTrack.d.ts +2 -3
- package/dist/AddTrackWidget/components/ConfirmTrack.js +38 -97
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +2 -3
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.js +24 -107
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.d.ts +2 -3
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.js +31 -51
- package/dist/AddTrackWidget/components/TextIndexingConfig.d.ts +2 -3
- package/dist/AddTrackWidget/components/TextIndexingConfig.js +38 -76
- package/dist/AddTrackWidget/components/TrackAdapterSelector.d.ts +2 -3
- package/dist/AddTrackWidget/components/TrackAdapterSelector.js +13 -40
- package/dist/AddTrackWidget/components/TrackSourceSelect.d.ts +2 -3
- package/dist/AddTrackWidget/components/TrackSourceSelect.js +4 -10
- package/dist/AddTrackWidget/components/TrackTypeSelector.d.ts +3 -4
- package/dist/AddTrackWidget/components/TrackTypeSelector.js +8 -17
- package/dist/AddTrackWidget/components/Unsupported.d.ts +1 -0
- package/dist/AddTrackWidget/components/Unsupported.js +15 -0
- package/dist/AddTrackWidget/components/doSubmit.d.ts +4 -0
- package/dist/AddTrackWidget/components/doSubmit.js +50 -0
- package/dist/AddTrackWidget/components/util.d.ts +2 -0
- package/dist/AddTrackWidget/components/util.js +15 -0
- package/dist/AddTrackWidget/index.d.ts +1 -1
- package/dist/AddTrackWidget/index.js +18 -8
- package/dist/AddTrackWidget/model.d.ts +16 -84
- package/dist/AddTrackWidget/model.js +46 -94
- package/dist/AssemblyManager/AssemblyAddForm.d.ts +5 -6
- package/dist/AssemblyManager/AssemblyAddForm.js +82 -128
- package/dist/AssemblyManager/AssemblyEditor.d.ts +4 -4
- package/dist/AssemblyManager/AssemblyEditor.js +7 -7
- package/dist/AssemblyManager/AssemblyManager.d.ts +5 -5
- package/dist/AssemblyManager/AssemblyManager.js +19 -55
- package/dist/AssemblyManager/AssemblyTable.d.ts +8 -12
- package/dist/AssemblyManager/AssemblyTable.js +42 -35
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +22 -50
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +7 -35
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +21 -11
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.d.ts +1 -2
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +8 -19
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +9 -17
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +14 -27
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +10 -19
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +21 -58
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +22 -26
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +9 -0
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +71 -0
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +3 -5
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +47 -82
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +17 -112
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +4 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +7 -32
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +5 -9
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +124 -124
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +8 -17
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +5 -40
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +6 -10
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +46 -78
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +19 -15
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts +3 -4
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.js +6 -8
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +2 -3
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +6 -19
- package/dist/HierarchicalTrackSelectorWidget/components/util.d.ts +4 -4
- package/dist/HierarchicalTrackSelectorWidget/components/util.js +1 -4
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.d.ts +2 -61
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.js +14 -76
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.d.ts +1 -1
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +2 -2
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.js +0 -13
- package/dist/HierarchicalTrackSelectorWidget/index.d.ts +1 -1
- package/dist/HierarchicalTrackSelectorWidget/index.js +20 -10
- package/dist/HierarchicalTrackSelectorWidget/model.d.ts +3 -177
- package/dist/HierarchicalTrackSelectorWidget/model.js +3 -183
- package/dist/HierarchicalTrackSelectorWidget/util.d.ts +2 -2
- package/dist/HierarchicalTrackSelectorWidget/util.js +0 -3
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +2 -3
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.js +19 -59
- package/dist/PluginStoreWidget/components/DeletePluginDialog.d.ts +1 -2
- package/dist/PluginStoreWidget/components/DeletePluginDialog.js +10 -23
- package/dist/PluginStoreWidget/components/InstalledPlugin.d.ts +3 -4
- package/dist/PluginStoreWidget/components/InstalledPlugin.js +45 -37
- package/dist/PluginStoreWidget/components/InstalledPluginsList.d.ts +3 -4
- package/dist/PluginStoreWidget/components/InstalledPluginsList.js +5 -5
- package/dist/PluginStoreWidget/components/PluginCard.d.ts +4 -6
- package/dist/PluginStoreWidget/components/PluginCard.js +25 -55
- package/dist/PluginStoreWidget/components/PluginStoreWidget.d.ts +2 -3
- package/dist/PluginStoreWidget/components/PluginStoreWidget.js +53 -61
- package/dist/PluginStoreWidget/components/util.d.ts +1 -1
- package/dist/PluginStoreWidget/components/util.js +0 -1
- package/dist/PluginStoreWidget/index.d.ts +1 -1
- package/dist/PluginStoreWidget/index.js +18 -8
- package/dist/PluginStoreWidget/model.d.ts +2 -8
- package/dist/PluginStoreWidget/model.js +1 -19
- package/dist/{ucsc-trackhub → UCSCTrackHub}/configSchema.d.ts +0 -6
- package/dist/{ucsc-trackhub → UCSCTrackHub}/configSchema.js +2 -14
- package/{esm/ucsc-trackhub → dist/UCSCTrackHub}/doConnect.d.ts +1 -1
- package/dist/{ucsc-trackhub → UCSCTrackHub}/doConnect.js +19 -15
- package/dist/{ucsc-trackhub → UCSCTrackHub}/index.d.ts +1 -1
- package/dist/{ucsc-trackhub → UCSCTrackHub}/index.js +11 -9
- package/dist/{ucsc-trackhub → UCSCTrackHub}/model.d.ts +1 -14
- package/dist/{ucsc-trackhub → UCSCTrackHub}/model.js +18 -23
- package/dist/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.js +0 -3
- package/dist/{ucsc-trackhub → UCSCTrackHub}/ucscTrackHub.d.ts +54 -37
- package/dist/UCSCTrackHub/ucscTrackHub.js +170 -0
- package/dist/UCSCTrackHub/util.d.ts +22 -0
- package/dist/UCSCTrackHub/util.js +41 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +21 -11
- package/esm/AddConnectionWidget/components/AddConnectionWidget.d.ts +1 -2
- package/esm/AddConnectionWidget/components/AddConnectionWidget.js +31 -39
- package/esm/AddConnectionWidget/components/ConfigureConnection.d.ts +4 -5
- package/esm/AddConnectionWidget/components/ConfigureConnection.js +5 -5
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +2 -3
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.js +6 -9
- package/esm/AddConnectionWidget/index.d.ts +1 -1
- package/esm/AddConnectionWidget/index.js +1 -1
- package/esm/AddConnectionWidget/model.js +1 -1
- package/esm/AddTrackWidget/components/AddTrackStatusMessage.d.ts +9 -0
- package/esm/AddTrackWidget/components/AddTrackStatusMessage.js +13 -0
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +4 -0
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +13 -0
- package/esm/AddTrackWidget/components/AddTrackWidget.d.ts +2 -3
- package/esm/AddTrackWidget/components/AddTrackWidget.js +7 -12
- package/esm/AddTrackWidget/components/ConfirmTrack.d.ts +2 -3
- package/esm/AddTrackWidget/components/ConfirmTrack.js +39 -75
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +2 -3
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.js +25 -85
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.d.ts +2 -3
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.js +31 -28
- package/esm/AddTrackWidget/components/TextIndexingConfig.d.ts +2 -3
- package/esm/AddTrackWidget/components/TextIndexingConfig.js +39 -54
- package/esm/AddTrackWidget/components/TrackAdapterSelector.d.ts +2 -3
- package/esm/AddTrackWidget/components/TrackAdapterSelector.js +13 -37
- package/esm/AddTrackWidget/components/TrackSourceSelect.d.ts +2 -3
- package/esm/AddTrackWidget/components/TrackSourceSelect.js +4 -7
- package/esm/AddTrackWidget/components/TrackTypeSelector.d.ts +3 -4
- package/esm/AddTrackWidget/components/TrackTypeSelector.js +8 -14
- package/esm/AddTrackWidget/components/Unsupported.d.ts +1 -0
- package/esm/AddTrackWidget/components/Unsupported.js +12 -0
- package/esm/AddTrackWidget/components/doSubmit.d.ts +4 -0
- package/esm/AddTrackWidget/components/doSubmit.js +47 -0
- package/esm/AddTrackWidget/components/util.d.ts +2 -0
- package/esm/AddTrackWidget/components/util.js +12 -0
- package/esm/AddTrackWidget/index.d.ts +1 -1
- package/esm/AddTrackWidget/index.js +1 -1
- package/esm/AddTrackWidget/model.d.ts +16 -84
- package/esm/AddTrackWidget/model.js +43 -94
- package/esm/AssemblyManager/AssemblyAddForm.d.ts +5 -6
- package/esm/AssemblyManager/AssemblyAddForm.js +82 -102
- package/esm/AssemblyManager/AssemblyEditor.d.ts +4 -4
- package/esm/AssemblyManager/AssemblyEditor.js +7 -4
- package/esm/AssemblyManager/AssemblyManager.d.ts +5 -5
- package/esm/AssemblyManager/AssemblyManager.js +19 -32
- package/esm/AssemblyManager/AssemblyTable.d.ts +8 -12
- package/esm/AssemblyManager/AssemblyTable.js +43 -36
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +22 -27
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +7 -12
- package/esm/HierarchicalTrackSelectorWidget/components/ShoppingCart.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +21 -11
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.d.ts +1 -2
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +8 -16
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +9 -14
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +14 -27
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +10 -16
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +21 -35
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +22 -26
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +9 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +69 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +3 -5
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +47 -59
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +17 -89
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +4 -5
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +7 -9
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +5 -9
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +108 -118
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +8 -17
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +5 -17
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +6 -10
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +46 -55
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +19 -15
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.js +6 -8
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +2 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +6 -19
- package/esm/HierarchicalTrackSelectorWidget/components/util.d.ts +4 -4
- package/esm/HierarchicalTrackSelectorWidget/components/util.js +1 -4
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.d.ts +2 -61
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.js +12 -74
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.js +1 -1
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.js +1 -14
- package/esm/HierarchicalTrackSelectorWidget/index.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/index.js +3 -3
- package/esm/HierarchicalTrackSelectorWidget/model.d.ts +3 -177
- package/esm/HierarchicalTrackSelectorWidget/model.js +4 -184
- package/esm/HierarchicalTrackSelectorWidget/util.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/util.js +1 -4
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +2 -3
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.js +19 -36
- package/esm/PluginStoreWidget/components/DeletePluginDialog.d.ts +1 -2
- package/esm/PluginStoreWidget/components/DeletePluginDialog.js +10 -20
- package/esm/PluginStoreWidget/components/InstalledPlugin.d.ts +3 -4
- package/esm/PluginStoreWidget/components/InstalledPlugin.js +28 -30
- package/esm/PluginStoreWidget/components/InstalledPluginsList.d.ts +3 -4
- package/esm/PluginStoreWidget/components/InstalledPluginsList.js +5 -5
- package/esm/PluginStoreWidget/components/PluginCard.d.ts +4 -6
- package/esm/PluginStoreWidget/components/PluginCard.js +27 -34
- package/esm/PluginStoreWidget/components/PluginStoreWidget.d.ts +2 -3
- package/esm/PluginStoreWidget/components/PluginStoreWidget.js +36 -54
- package/esm/PluginStoreWidget/components/util.d.ts +1 -1
- package/esm/PluginStoreWidget/components/util.js +1 -2
- package/esm/PluginStoreWidget/index.d.ts +1 -1
- package/esm/PluginStoreWidget/index.js +1 -1
- package/esm/PluginStoreWidget/model.d.ts +2 -8
- package/esm/PluginStoreWidget/model.js +1 -19
- package/esm/{ucsc-trackhub → UCSCTrackHub}/configSchema.d.ts +0 -6
- package/esm/{ucsc-trackhub → UCSCTrackHub}/configSchema.js +2 -14
- package/{dist/ucsc-trackhub → esm/UCSCTrackHub}/doConnect.d.ts +1 -1
- package/esm/{ucsc-trackhub → UCSCTrackHub}/doConnect.js +12 -8
- package/esm/{ucsc-trackhub → UCSCTrackHub}/index.d.ts +1 -1
- package/esm/UCSCTrackHub/index.js +15 -0
- package/esm/{ucsc-trackhub → UCSCTrackHub}/model.d.ts +1 -14
- package/esm/{ucsc-trackhub → UCSCTrackHub}/model.js +1 -16
- package/esm/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.js +0 -3
- package/esm/{ucsc-trackhub → UCSCTrackHub}/ucscTrackHub.d.ts +54 -37
- package/esm/UCSCTrackHub/ucscTrackHub.js +162 -0
- package/esm/UCSCTrackHub/util.d.ts +22 -0
- package/esm/UCSCTrackHub/util.js +33 -0
- package/esm/index.d.ts +11 -11
- package/esm/index.js +3 -3
- package/package.json +4 -3
- package/dist/ucsc-trackhub/ucscTrackHub.js +0 -208
- package/esm/ucsc-trackhub/index.js +0 -13
- package/esm/ucsc-trackhub/ucscTrackHub.js +0 -195
- /package/dist/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.d.ts +0 -0
- /package/esm/{ucsc-trackhub → UCSCTrackHub}/ucscAssemblies.d.ts +0 -0
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = stateTreeFactory;
|
|
4
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
-
const mobx_1 = require("mobx");
|
|
6
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
7
5
|
const util_1 = require("@jbrowse/core/util");
|
|
8
6
|
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
9
|
-
|
|
7
|
+
const mobx_1 = require("mobx");
|
|
8
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
+
const facetedModel_1 = require("./facetedModel");
|
|
10
10
|
const filterTracks_1 = require("./filterTracks");
|
|
11
11
|
const generateHierarchy_1 = require("./generateHierarchy");
|
|
12
12
|
const util_2 = require("./util");
|
|
13
|
-
const facetedModel_1 = require("./facetedModel");
|
|
14
|
-
// for settings that are config dependent
|
|
15
13
|
function keyConfigPostFix() {
|
|
16
14
|
return typeof window !== 'undefined'
|
|
17
15
|
? [
|
|
@@ -27,8 +25,6 @@ function recentlyUsedK(assemblyNames) {
|
|
|
27
25
|
.filter(f => !!f)
|
|
28
26
|
.join('-');
|
|
29
27
|
}
|
|
30
|
-
// this has a extra } at the end because that's how it was initially
|
|
31
|
-
// released
|
|
32
28
|
function favoritesK() {
|
|
33
29
|
return `favoriteTracks-${keyConfigPostFix()}}`;
|
|
34
30
|
}
|
|
@@ -58,185 +54,86 @@ function localStorageSetJSON(key, val) {
|
|
|
58
54
|
}
|
|
59
55
|
}
|
|
60
56
|
const MAX_RECENTLY_USED = 10;
|
|
61
|
-
/**
|
|
62
|
-
* #stateModel HierarchicalTrackSelectorWidget
|
|
63
|
-
*/
|
|
64
57
|
function stateTreeFactory(pluginManager) {
|
|
65
58
|
return mobx_state_tree_1.types
|
|
66
59
|
.model('HierarchicalTrackSelectorWidget', {
|
|
67
|
-
/**
|
|
68
|
-
* #property
|
|
69
|
-
*/
|
|
70
60
|
id: mst_1.ElementId,
|
|
71
|
-
/**
|
|
72
|
-
* #property
|
|
73
|
-
*/
|
|
74
61
|
type: mobx_state_tree_1.types.literal('HierarchicalTrackSelectorWidget'),
|
|
75
|
-
/**
|
|
76
|
-
* #property
|
|
77
|
-
*/
|
|
78
62
|
view: mobx_state_tree_1.types.safeReference(pluginManager.pluggableMstType('view', 'stateModel')),
|
|
79
|
-
/**
|
|
80
|
-
* #property
|
|
81
|
-
*/
|
|
82
63
|
faceted: mobx_state_tree_1.types.optional((0, facetedModel_1.facetedStateTreeF)(), {}),
|
|
83
64
|
})
|
|
84
65
|
.volatile(() => ({
|
|
85
|
-
/**
|
|
86
|
-
* #volatile
|
|
87
|
-
*/
|
|
88
66
|
favorites: localStorageGetJSON(favoritesK(), []),
|
|
89
|
-
/**
|
|
90
|
-
* #volatile
|
|
91
|
-
*/
|
|
92
67
|
recentlyUsed: [],
|
|
93
|
-
/**
|
|
94
|
-
* #volatile
|
|
95
|
-
*/
|
|
96
68
|
selection: [],
|
|
97
|
-
/**
|
|
98
|
-
* #volatile
|
|
99
|
-
*/
|
|
100
69
|
sortTrackNames: localStorageGetJSON(sortTrackNamesK(), undefined),
|
|
101
|
-
/**
|
|
102
|
-
* #volatile
|
|
103
|
-
*/
|
|
104
70
|
sortCategories: localStorageGetJSON(sortCategoriesK(), undefined),
|
|
105
|
-
/**
|
|
106
|
-
* #volatile
|
|
107
|
-
*/
|
|
108
71
|
collapsed: mobx_1.observable.map(),
|
|
109
|
-
/**
|
|
110
|
-
* #volatile
|
|
111
|
-
*/
|
|
112
72
|
filterText: '',
|
|
113
|
-
/**
|
|
114
|
-
* #volatile
|
|
115
|
-
*/
|
|
116
73
|
recentlyUsedCounter: 0,
|
|
117
|
-
/**
|
|
118
|
-
* #volatile
|
|
119
|
-
*/
|
|
120
74
|
favoritesCounter: 0,
|
|
121
75
|
}))
|
|
122
76
|
.views(self => ({
|
|
123
|
-
/**
|
|
124
|
-
* #getter
|
|
125
|
-
*/
|
|
126
77
|
get shownTrackIds() {
|
|
127
78
|
var _a, _b;
|
|
128
79
|
return new Set((_b = (_a = self.view) === null || _a === void 0 ? void 0 : _a.tracks) === null || _b === void 0 ? void 0 : _b.map((t) => t.configuration.trackId));
|
|
129
80
|
},
|
|
130
|
-
/**
|
|
131
|
-
* #getter
|
|
132
|
-
*/
|
|
133
81
|
get selectionSet() {
|
|
134
82
|
return new Set(self.selection);
|
|
135
83
|
},
|
|
136
|
-
/**
|
|
137
|
-
* #getter
|
|
138
|
-
*/
|
|
139
84
|
get favoritesSet() {
|
|
140
85
|
return new Set(self.favorites);
|
|
141
86
|
},
|
|
142
|
-
/**
|
|
143
|
-
* #getter
|
|
144
|
-
*/
|
|
145
87
|
get recentlyUsedSet() {
|
|
146
88
|
return new Set(self.recentlyUsed);
|
|
147
89
|
},
|
|
148
|
-
/**
|
|
149
|
-
* #getter
|
|
150
|
-
*/
|
|
151
90
|
get assemblyNames() {
|
|
152
91
|
var _a;
|
|
153
92
|
return ((_a = self.view) === null || _a === void 0 ? void 0 : _a.assemblyNames) || [];
|
|
154
93
|
},
|
|
155
94
|
}))
|
|
156
95
|
.actions(self => ({
|
|
157
|
-
/**
|
|
158
|
-
* #action
|
|
159
|
-
*/
|
|
160
96
|
setSortTrackNames(val) {
|
|
161
97
|
self.sortTrackNames = val;
|
|
162
98
|
},
|
|
163
|
-
/**
|
|
164
|
-
* #action
|
|
165
|
-
*/
|
|
166
99
|
setSortCategories(val) {
|
|
167
100
|
self.sortCategories = val;
|
|
168
101
|
},
|
|
169
|
-
/**
|
|
170
|
-
* #action
|
|
171
|
-
*/
|
|
172
102
|
setSelection(elt) {
|
|
173
103
|
self.selection = elt;
|
|
174
104
|
},
|
|
175
|
-
/**
|
|
176
|
-
* #action
|
|
177
|
-
*/
|
|
178
105
|
addToSelection(elt) {
|
|
179
106
|
self.selection = (0, util_1.dedupe)([...self.selection, ...elt], e => e.trackId);
|
|
180
107
|
},
|
|
181
|
-
/**
|
|
182
|
-
* #action
|
|
183
|
-
*/
|
|
184
108
|
removeFromSelection(elt) {
|
|
185
109
|
const s = new Set(elt);
|
|
186
110
|
self.selection = self.selection.filter(f => !s.has(f));
|
|
187
111
|
},
|
|
188
|
-
/**
|
|
189
|
-
* #action
|
|
190
|
-
*/
|
|
191
112
|
clearSelection() {
|
|
192
113
|
self.selection = [];
|
|
193
114
|
},
|
|
194
|
-
/**
|
|
195
|
-
* #action
|
|
196
|
-
*/
|
|
197
115
|
addToFavorites(trackId) {
|
|
198
116
|
self.favoritesCounter += 1;
|
|
199
117
|
self.favorites = [...self.favorites, trackId];
|
|
200
118
|
},
|
|
201
|
-
/**
|
|
202
|
-
* #action
|
|
203
|
-
*/
|
|
204
119
|
removeFromFavorites(trackId) {
|
|
205
120
|
self.favorites = self.favorites.filter(f => f !== trackId);
|
|
206
121
|
},
|
|
207
|
-
/**
|
|
208
|
-
* #action
|
|
209
|
-
*/
|
|
210
122
|
clearFavorites() {
|
|
211
123
|
self.favorites = [];
|
|
212
124
|
},
|
|
213
|
-
/**
|
|
214
|
-
* #action
|
|
215
|
-
*/
|
|
216
125
|
setRecentlyUsedCounter(val) {
|
|
217
126
|
self.recentlyUsedCounter = val;
|
|
218
127
|
},
|
|
219
|
-
/**
|
|
220
|
-
* #action
|
|
221
|
-
*/
|
|
222
128
|
setRecentlyUsed(str) {
|
|
223
129
|
self.recentlyUsed = str;
|
|
224
130
|
},
|
|
225
|
-
/**
|
|
226
|
-
* #action
|
|
227
|
-
*/
|
|
228
131
|
setFavorites(str) {
|
|
229
132
|
self.favorites = str;
|
|
230
133
|
},
|
|
231
|
-
/**
|
|
232
|
-
* #action
|
|
233
|
-
*/
|
|
234
134
|
setFavoritesCounter(val) {
|
|
235
135
|
self.favoritesCounter = val;
|
|
236
136
|
},
|
|
237
|
-
/**
|
|
238
|
-
* #action
|
|
239
|
-
*/
|
|
240
137
|
addToRecentlyUsed(id) {
|
|
241
138
|
if (!self.recentlyUsed.includes(id)) {
|
|
242
139
|
self.recentlyUsedCounter = Math.min(self.recentlyUsedCounter + 1, MAX_RECENTLY_USED);
|
|
@@ -246,77 +143,41 @@ function stateTreeFactory(pluginManager) {
|
|
|
246
143
|
: [...self.recentlyUsed, id];
|
|
247
144
|
}
|
|
248
145
|
},
|
|
249
|
-
/**
|
|
250
|
-
* #action
|
|
251
|
-
*/
|
|
252
146
|
clearRecentlyUsed() {
|
|
253
147
|
self.recentlyUsed = [];
|
|
254
148
|
},
|
|
255
|
-
/**
|
|
256
|
-
* #action
|
|
257
|
-
*/
|
|
258
149
|
setView(view) {
|
|
259
150
|
self.view = view;
|
|
260
151
|
},
|
|
261
|
-
/**
|
|
262
|
-
* #action
|
|
263
|
-
*/
|
|
264
152
|
toggleCategory(pathName) {
|
|
265
153
|
self.collapsed.set(pathName, !self.collapsed.get(pathName));
|
|
266
154
|
},
|
|
267
|
-
/**
|
|
268
|
-
* #action
|
|
269
|
-
*/
|
|
270
155
|
setCategoryCollapsed(pathName, status) {
|
|
271
156
|
self.collapsed.set(pathName, status);
|
|
272
157
|
},
|
|
273
|
-
/**
|
|
274
|
-
* #action
|
|
275
|
-
*/
|
|
276
158
|
expandAllCategories() {
|
|
277
159
|
self.collapsed.clear();
|
|
278
160
|
},
|
|
279
|
-
/**
|
|
280
|
-
* #action
|
|
281
|
-
*/
|
|
282
161
|
setCollapsedCategories(str) {
|
|
283
162
|
self.collapsed.replace(str);
|
|
284
163
|
},
|
|
285
|
-
/**
|
|
286
|
-
* #action
|
|
287
|
-
*/
|
|
288
164
|
clearFilterText() {
|
|
289
165
|
self.filterText = '';
|
|
290
166
|
},
|
|
291
|
-
/**
|
|
292
|
-
* #action
|
|
293
|
-
*/
|
|
294
167
|
setFilterText(newText) {
|
|
295
168
|
self.filterText = newText;
|
|
296
169
|
},
|
|
297
170
|
}))
|
|
298
171
|
.views(self => ({
|
|
299
|
-
/**
|
|
300
|
-
* #method
|
|
301
|
-
*/
|
|
302
172
|
isSelected(track) {
|
|
303
173
|
return self.selectionSet.has(track);
|
|
304
174
|
},
|
|
305
|
-
/**
|
|
306
|
-
* #method
|
|
307
|
-
*/
|
|
308
175
|
isFavorite(trackId) {
|
|
309
176
|
return self.favoritesSet.has(trackId);
|
|
310
177
|
},
|
|
311
|
-
/**
|
|
312
|
-
* #method
|
|
313
|
-
*/
|
|
314
178
|
isRecentlyUsed(trackId) {
|
|
315
179
|
return self.recentlyUsedSet.has(trackId);
|
|
316
180
|
},
|
|
317
|
-
/**
|
|
318
|
-
* #method
|
|
319
|
-
*/
|
|
320
181
|
getRefSeqTrackConf(assemblyName) {
|
|
321
182
|
const { assemblyManager } = (0, util_1.getSession)(self);
|
|
322
183
|
const assembly = assemblyManager.get(assemblyName);
|
|
@@ -333,33 +194,20 @@ function stateTreeFactory(pluginManager) {
|
|
|
333
194
|
},
|
|
334
195
|
}))
|
|
335
196
|
.views(self => ({
|
|
336
|
-
/**
|
|
337
|
-
* #getter
|
|
338
|
-
*/
|
|
339
197
|
get activeSortTrackNames() {
|
|
340
198
|
var _a;
|
|
341
199
|
return ((_a = self.sortTrackNames) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)((0, util_1.getSession)(self), ['hierarchical', 'sort', 'trackNames']));
|
|
342
200
|
},
|
|
343
|
-
/**
|
|
344
|
-
* #getter
|
|
345
|
-
*/
|
|
346
201
|
get activeSortCategories() {
|
|
347
202
|
var _a;
|
|
348
203
|
return ((_a = self.sortCategories) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)((0, util_1.getSession)(self), ['hierarchical', 'sort', 'categories']));
|
|
349
204
|
},
|
|
350
|
-
/**
|
|
351
|
-
* #getter
|
|
352
|
-
* filter out tracks that don't match the current assembly/display types
|
|
353
|
-
*/
|
|
354
205
|
get configAndSessionTrackConfigurations() {
|
|
355
206
|
return [
|
|
356
207
|
...self.assemblyNames.map(a => self.getRefSeqTrackConf(a)),
|
|
357
208
|
...(0, filterTracks_1.filterTracks)((0, util_1.getSession)(self).tracks, self),
|
|
358
209
|
].filter(util_1.notEmpty);
|
|
359
210
|
},
|
|
360
|
-
/**
|
|
361
|
-
* #getter
|
|
362
|
-
*/
|
|
363
211
|
get allTrackConfigurations() {
|
|
364
212
|
const { connectionInstances = [] } = (0, util_1.getSession)(self);
|
|
365
213
|
return [
|
|
@@ -367,27 +215,16 @@ function stateTreeFactory(pluginManager) {
|
|
|
367
215
|
...connectionInstances.flatMap(c => c.tracks),
|
|
368
216
|
];
|
|
369
217
|
},
|
|
370
|
-
/**
|
|
371
|
-
* #getter
|
|
372
|
-
*/
|
|
373
218
|
get allTrackConfigurationTrackIdSet() {
|
|
374
219
|
return new Map(this.allTrackConfigurations.map(t => [t.trackId, t]));
|
|
375
220
|
},
|
|
376
221
|
}))
|
|
377
222
|
.views(self => ({
|
|
378
|
-
/**
|
|
379
|
-
* #getter
|
|
380
|
-
* filters out tracks that are not in the favorites group
|
|
381
|
-
*/
|
|
382
223
|
get favoriteTracks() {
|
|
383
224
|
return self.favorites
|
|
384
225
|
.filter(t => self.allTrackConfigurationTrackIdSet.has(t))
|
|
385
226
|
.map(t => self.allTrackConfigurationTrackIdSet.get(t));
|
|
386
227
|
},
|
|
387
|
-
/**
|
|
388
|
-
* #getter
|
|
389
|
-
* filters out tracks that are not in the recently used group
|
|
390
|
-
*/
|
|
391
228
|
get recentlyUsedTracks() {
|
|
392
229
|
return self.recentlyUsed
|
|
393
230
|
.filter(t => self.allTrackConfigurationTrackIdSet.has(t))
|
|
@@ -395,9 +232,6 @@ function stateTreeFactory(pluginManager) {
|
|
|
395
232
|
},
|
|
396
233
|
}))
|
|
397
234
|
.views(self => ({
|
|
398
|
-
/**
|
|
399
|
-
* #getter
|
|
400
|
-
*/
|
|
401
235
|
get allTracks() {
|
|
402
236
|
const { connectionInstances = [] } = (0, util_1.getSession)(self);
|
|
403
237
|
return [
|
|
@@ -417,9 +251,6 @@ function stateTreeFactory(pluginManager) {
|
|
|
417
251
|
},
|
|
418
252
|
}))
|
|
419
253
|
.views(self => ({
|
|
420
|
-
/**
|
|
421
|
-
* #getter
|
|
422
|
-
*/
|
|
423
254
|
get hierarchy() {
|
|
424
255
|
return {
|
|
425
256
|
name: 'Root',
|
|
@@ -443,9 +274,6 @@ function stateTreeFactory(pluginManager) {
|
|
|
443
274
|
},
|
|
444
275
|
}))
|
|
445
276
|
.actions(self => ({
|
|
446
|
-
/**
|
|
447
|
-
* #action
|
|
448
|
-
*/
|
|
449
277
|
collapseSubCategories() {
|
|
450
278
|
const paths = [];
|
|
451
279
|
(0, util_2.findSubCategories)(self.hierarchy.children, paths);
|
|
@@ -453,9 +281,6 @@ function stateTreeFactory(pluginManager) {
|
|
|
453
281
|
self.setCategoryCollapsed(path, true);
|
|
454
282
|
}
|
|
455
283
|
},
|
|
456
|
-
/**
|
|
457
|
-
* #action
|
|
458
|
-
*/
|
|
459
284
|
collapseTopLevelCategories() {
|
|
460
285
|
const paths = [];
|
|
461
286
|
for (const trackGroups of self.hierarchy.children) {
|
|
@@ -469,16 +294,12 @@ function stateTreeFactory(pluginManager) {
|
|
|
469
294
|
},
|
|
470
295
|
}))
|
|
471
296
|
.views(self => ({
|
|
472
|
-
/**
|
|
473
|
-
* #getter
|
|
474
|
-
*/
|
|
475
297
|
get hasAnySubcategories() {
|
|
476
298
|
return self.allTracks.some(group => group.tracks.some(t => { var _a; return ((_a = (0, configuration_1.readConfObject)(t, 'category')) === null || _a === void 0 ? void 0 : _a.length) > 1; }));
|
|
477
299
|
},
|
|
478
300
|
}))
|
|
479
301
|
.actions(self => ({
|
|
480
302
|
afterAttach() {
|
|
481
|
-
// this should be the first autorun to properly initialize
|
|
482
303
|
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
483
304
|
const { assemblyNames, view } = self;
|
|
484
305
|
self.setRecentlyUsed(localStorageGetJSON(recentlyUsedK(assemblyNames), []));
|
|
@@ -503,7 +324,6 @@ function stateTreeFactory(pluginManager) {
|
|
|
503
324
|
}
|
|
504
325
|
}
|
|
505
326
|
}));
|
|
506
|
-
// this should be the second autorun
|
|
507
327
|
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
508
328
|
const { sortTrackNames, sortCategories, favorites, recentlyUsed, assemblyNames, collapsed, view, } = self;
|
|
509
329
|
localStorageSetJSON(recentlyUsedK(assemblyNames), recentlyUsed);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
import { AbstractSessionModel } from '@jbrowse/core/util';
|
|
1
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { AbstractSessionModel } from '@jbrowse/core/util';
|
|
3
3
|
export declare function hasAnyOverlap<T>(a1?: T[], a2?: T[]): boolean;
|
|
4
4
|
export declare function hasAllOverlap<T>(a1?: T[], a2?: T[]): boolean;
|
|
5
5
|
export declare function matches(query: string, conf: AnyConfigurationModel, session: AbstractSessionModel): boolean;
|
|
@@ -8,8 +8,6 @@ exports.findTopLevelCategories = findTopLevelCategories;
|
|
|
8
8
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
9
9
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
10
10
|
function hasAnyOverlap(a1 = [], a2 = []) {
|
|
11
|
-
// shortcut case is that arrays are single entries, and are equal
|
|
12
|
-
// long case is that we use a set
|
|
13
11
|
if (a1[0] === a2[0]) {
|
|
14
12
|
return true;
|
|
15
13
|
}
|
|
@@ -33,7 +31,6 @@ function findSubCategories(obj, paths, depth = 0) {
|
|
|
33
31
|
for (const elt of obj) {
|
|
34
32
|
if (elt.children.length) {
|
|
35
33
|
const hasSubCategories = findSubCategories(elt.children, paths, depth + 1);
|
|
36
|
-
// avoid pushing the root "Tracks" node by checking depth>0
|
|
37
34
|
if (hasSubCategories && depth > 0) {
|
|
38
35
|
paths.push(elt.id);
|
|
39
36
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PluginStoreModel } from '../model';
|
|
1
|
+
import type { PluginStoreModel } from '../model';
|
|
3
2
|
declare const AddCustomPluginDialog: ({ onClose, model, }: {
|
|
4
3
|
onClose: () => void;
|
|
5
4
|
model: PluginStoreModel;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default AddCustomPluginDialog;
|
|
@@ -1,40 +1,17 @@
|
|
|
1
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
31
8
|
const ui_1 = require("@jbrowse/core/ui");
|
|
32
|
-
const material_1 = require("@mui/material");
|
|
33
|
-
const mui_1 = require("tss-react/mui");
|
|
34
9
|
const util_1 = require("@jbrowse/core/util");
|
|
35
|
-
// icons
|
|
36
|
-
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
37
10
|
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
11
|
+
const material_1 = require("@mui/material");
|
|
12
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
13
|
+
const mobx_react_1 = require("mobx-react");
|
|
14
|
+
const mui_1 = require("tss-react/mui");
|
|
38
15
|
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
39
16
|
dialogContent: {
|
|
40
17
|
display: 'flex',
|
|
@@ -71,35 +48,18 @@ const AddCustomPluginDialog = (0, mobx_react_1.observer)(function ({ onClose, mo
|
|
|
71
48
|
jbrowse.addPlugin({ cjsUrl: cjsPluginUrl });
|
|
72
49
|
}
|
|
73
50
|
}
|
|
74
|
-
return (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
react_1.default.createElement(IconButton_1.default, { className: cx(classes.expand, {
|
|
88
|
-
[classes.expandOpen]: advancedOptionsOpen,
|
|
89
|
-
}), "aria-expanded": advancedOptionsOpen, "aria-label": "show more" },
|
|
90
|
-
react_1.default.createElement(ExpandMore_1.default, null)),
|
|
91
|
-
"Advanced options"),
|
|
92
|
-
react_1.default.createElement(material_1.Collapse, { in: advancedOptionsOpen },
|
|
93
|
-
react_1.default.createElement("div", { className: classes.dialogContent },
|
|
94
|
-
react_1.default.createElement(material_1.DialogContentText, null, "The above fields assume that the plugin is built in UMD format. If your plugin is in another format, or you have additional builds you want to add (such as a CJS build for using NodeJS APIs in desktop), you can enter the URLs for those builds below."),
|
|
95
|
-
react_1.default.createElement(material_1.TextField, { label: "ESM build URL", variant: "outlined", value: esmPluginUrl, onChange: event => {
|
|
96
|
-
setESMPluginUrl(event.target.value);
|
|
97
|
-
} }),
|
|
98
|
-
react_1.default.createElement(material_1.TextField, { label: "CJS build URL", variant: "outlined", value: cjsPluginUrl, onChange: event => {
|
|
99
|
-
setCJSPluginUrl(event.target.value);
|
|
100
|
-
} })))),
|
|
101
|
-
react_1.default.createElement(material_1.DialogActions, null,
|
|
102
|
-
react_1.default.createElement(material_1.Button, { variant: "contained", onClick: onClose }, "Cancel"),
|
|
103
|
-
react_1.default.createElement(material_1.Button, { variant: "contained", color: "primary", onClick: handleSubmit, disabled: !ready }, "Submit")))));
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Dialog, { open: true, onClose: onClose, title: "Add custom plugin", children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: handleSubmit, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.dialogContent, children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "Enter the name of the plugin and its URL. The name should match what is defined in the plugin's build." }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Plugin name", variant: "outlined", value: umdPluginName, onChange: event => {
|
|
52
|
+
setUMDPluginName(event.target.value);
|
|
53
|
+
} }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Plugin URL", variant: "outlined", value: umdPluginUrl, onChange: event => {
|
|
54
|
+
setUMDPluginUrl(event.target.value);
|
|
55
|
+
} }), (0, jsx_runtime_1.jsxs)(material_1.DialogContentText, { onClick: () => {
|
|
56
|
+
setAdvancedOptionsOpen(!advancedOptionsOpen);
|
|
57
|
+
}, children: [(0, jsx_runtime_1.jsx)(IconButton_1.default, { className: cx(classes.expand, {
|
|
58
|
+
[classes.expandOpen]: advancedOptionsOpen,
|
|
59
|
+
}), "aria-expanded": advancedOptionsOpen, "aria-label": "show more", children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }), "Advanced options"] }), (0, jsx_runtime_1.jsx)(material_1.Collapse, { in: advancedOptionsOpen, children: (0, jsx_runtime_1.jsxs)("div", { className: classes.dialogContent, children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: "The above fields assume that the plugin is built in UMD format. If your plugin is in another format, or you have additional builds you want to add (such as a CJS build for using NodeJS APIs in desktop), you can enter the URLs for those builds below." }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "ESM build URL", variant: "outlined", value: esmPluginUrl, onChange: event => {
|
|
60
|
+
setESMPluginUrl(event.target.value);
|
|
61
|
+
} }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "CJS build URL", variant: "outlined", value: cjsPluginUrl, onChange: event => {
|
|
62
|
+
setCJSPluginUrl(event.target.value);
|
|
63
|
+
} })] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: onClose, children: "Cancel" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", onClick: handleSubmit, disabled: !ready, children: "Submit" })] })] }) }));
|
|
104
64
|
});
|
|
105
65
|
exports.default = AddCustomPluginDialog;
|
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = DeletePluginDialog;
|
|
7
|
-
const
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
5
|
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
10
7
|
function DeletePluginDialog({ onClose, plugin, }) {
|
|
11
|
-
return (
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, title: `Remove ${plugin}`, onClose: () => {
|
|
12
9
|
onClose();
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
react_1.default.createElement(material_1.DialogActions, null,
|
|
21
|
-
react_1.default.createElement(material_1.Button, { variant: "contained", color: "primary", onClick: () => {
|
|
22
|
-
// avoid showing runtime plugin warning
|
|
23
|
-
window.setTimeout(() => {
|
|
24
|
-
onClose(plugin);
|
|
25
|
-
}, 500);
|
|
26
|
-
} }, "Confirm"),
|
|
27
|
-
react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
28
|
-
onClose();
|
|
29
|
-
} }, "Cancel"))));
|
|
10
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["Please confirm that you want to remove ", plugin, "."] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { color: "error", children: "Note: if any resources in this session still use this plugin, it may cause your session to crash" })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", onClick: () => {
|
|
11
|
+
window.setTimeout(() => {
|
|
12
|
+
onClose(plugin);
|
|
13
|
+
}, 500);
|
|
14
|
+
}, children: "Confirm" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
15
|
+
onClose();
|
|
16
|
+
}, children: "Cancel" })] })] }));
|
|
30
17
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BasePlugin } from '@jbrowse/core/util/types';
|
|
3
|
-
import { PluginStoreModel } from '../model';
|
|
1
|
+
import type { PluginStoreModel } from '../model';
|
|
2
|
+
import type { BasePlugin } from '@jbrowse/core/util/types';
|
|
4
3
|
declare const InstalledPlugin: ({ plugin, model, }: {
|
|
5
4
|
plugin: BasePlugin;
|
|
6
5
|
model: PluginStoreModel;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default InstalledPlugin;
|