@jbrowse/plugin-data-management 3.7.0 → 4.0.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/esm/AddConnectionWidget/components/AddConnectionWidget.d.ts +1 -1
- package/esm/AddConnectionWidget/components/AddConnectionWidget.js +5 -5
- package/esm/AddConnectionWidget/components/ConfigureConnection.js +1 -1
- package/esm/AddConnectionWidget/index.js +2 -2
- package/esm/AddConnectionWidget/model.d.ts +4 -4
- package/esm/AddConnectionWidget/model.js +1 -1
- package/esm/AddTrackWidget/components/AddTrackStatusMessage.js +2 -2
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +1 -1
- package/esm/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +2 -2
- package/esm/AddTrackWidget/components/AddTrackWidget.d.ts +1 -1
- package/esm/AddTrackWidget/components/AddTrackWidget.js +3 -3
- package/esm/AddTrackWidget/components/ConfirmTrack.d.ts +1 -1
- package/esm/AddTrackWidget/components/ConfirmTrack.js +10 -10
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +1 -1
- package/esm/AddTrackWidget/components/DefaultAddTrackWorkflow.js +6 -9
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.d.ts +2 -2
- package/esm/AddTrackWidget/components/PasteConfigWorkflow.js +2 -2
- package/esm/AddTrackWidget/components/TextIndexingConfig.d.ts +1 -1
- package/esm/AddTrackWidget/components/TextIndexingConfig.js +2 -2
- package/esm/AddTrackWidget/components/TrackAdapterSelector.d.ts +2 -2
- package/esm/AddTrackWidget/components/TrackAdapterSelector.js +4 -4
- package/esm/AddTrackWidget/components/TrackSourceSelect.d.ts +1 -1
- package/esm/AddTrackWidget/components/TrackSourceSelect.js +3 -3
- package/esm/AddTrackWidget/components/TrackTypeSelector.d.ts +1 -1
- package/esm/AddTrackWidget/components/TrackTypeSelector.js +1 -1
- package/esm/AddTrackWidget/components/Unsupported.js +1 -1
- package/esm/AddTrackWidget/components/doSubmit.d.ts +1 -1
- package/esm/AddTrackWidget/components/doSubmit.js +2 -3
- package/esm/AddTrackWidget/components/util.js +1 -2
- package/esm/AddTrackWidget/index.js +2 -2
- package/esm/AddTrackWidget/model.d.ts +8 -11
- package/esm/AddTrackWidget/model.js +10 -25
- package/esm/AssemblyManager/AssemblyAddForm.js +6 -6
- package/esm/AssemblyManager/AssemblyEditor.js +2 -2
- package/esm/AssemblyManager/AssemblyManager.js +4 -4
- package/esm/AssemblyManager/AssemblyTable.js +1 -1
- package/esm/AssemblyManager/index.d.ts +1 -1
- package/esm/AssemblyManager/index.js +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/AutoSizer.d.ts +8 -0
- package/esm/HierarchicalTrackSelectorWidget/components/AutoSizer.js +24 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ClearableSearchField.d.ts +6 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ClearableSearchField.js +27 -0
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +9 -9
- package/esm/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +4 -5
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +1 -2
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +3 -3
- package/esm/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +4 -5
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +5 -6
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +39 -58
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +6 -12
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +7 -7
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/computeInitialWidths.d.ts +6 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/computeInitialWidths.js +18 -0
- package/esm/HierarchicalTrackSelectorWidget/components/faceted/util.js +1 -2
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +3 -3
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +13 -32
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +7 -8
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +11 -22
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +2 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +42 -59
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +13 -29
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +7 -6
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +86 -92
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +8 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +28 -15
- package/{dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts → esm/HierarchicalTrackSelectorWidget/components/tree/TrackSelectorTrackMenu.d.ts} +3 -4
- package/esm/HierarchicalTrackSelectorWidget/components/tree/{TrackLabelMenu.js → TrackSelectorTrackMenu.js} +13 -7
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TreeItem.d.ts +9 -0
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TreeItem.js +49 -0
- package/esm/HierarchicalTrackSelectorWidget/components/tree/trackListStyles.d.ts +21 -0
- package/esm/HierarchicalTrackSelectorWidget/components/tree/trackListStyles.js +29 -0
- package/esm/HierarchicalTrackSelectorWidget/components/util.d.ts +1 -20
- package/esm/HierarchicalTrackSelectorWidget/components/util.js +1 -10
- package/esm/HierarchicalTrackSelectorWidget/configSchema.d.ts +1 -1
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.d.ts +24 -30
- package/esm/HierarchicalTrackSelectorWidget/facetedModel.js +34 -23
- package/esm/HierarchicalTrackSelectorWidget/facetedUtil.js +2 -2
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.d.ts +3 -7
- package/esm/HierarchicalTrackSelectorWidget/filterTracks.js +13 -11
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +2 -28
- package/esm/HierarchicalTrackSelectorWidget/generateHierarchy.js +34 -59
- package/esm/HierarchicalTrackSelectorWidget/index.d.ts +2 -2
- package/esm/HierarchicalTrackSelectorWidget/index.js +5 -5
- package/esm/HierarchicalTrackSelectorWidget/model.d.ts +67 -87
- package/esm/HierarchicalTrackSelectorWidget/model.js +90 -23
- package/esm/HierarchicalTrackSelectorWidget/sortUtils.d.ts +2 -0
- package/esm/HierarchicalTrackSelectorWidget/sortUtils.js +28 -0
- package/esm/HierarchicalTrackSelectorWidget/types.d.ts +23 -0
- package/esm/HierarchicalTrackSelectorWidget/types.js +1 -0
- package/esm/HierarchicalTrackSelectorWidget/util.js +1 -1
- package/esm/JB2TrackHubConnection/configSchema.d.ts +3 -3
- package/esm/JB2TrackHubConnection/doConnect.js +3 -4
- package/esm/JB2TrackHubConnection/index.js +2 -2
- package/esm/JB2TrackHubConnection/model.d.ts +18 -26
- package/esm/JB2TrackHubConnection/model.js +3 -3
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +1 -1
- package/esm/PluginStoreWidget/components/AddCustomPluginDialog.js +3 -3
- package/esm/PluginStoreWidget/components/InstalledPlugin.d.ts +1 -1
- package/esm/PluginStoreWidget/components/InstalledPlugin.js +5 -5
- package/esm/PluginStoreWidget/components/InstalledPluginsList.d.ts +1 -1
- package/esm/PluginStoreWidget/components/InstalledPluginsList.js +2 -2
- package/esm/PluginStoreWidget/components/PluginCard.d.ts +1 -1
- package/esm/PluginStoreWidget/components/PluginCard.js +1 -5
- package/esm/PluginStoreWidget/components/PluginStoreWidget.d.ts +1 -1
- package/esm/PluginStoreWidget/components/PluginStoreWidget.js +22 -10
- package/esm/PluginStoreWidget/components/util.js +1 -1
- package/esm/PluginStoreWidget/index.js +2 -2
- package/esm/PluginStoreWidget/model.d.ts +7 -7
- package/esm/PluginStoreWidget/model.js +1 -1
- package/esm/UCSCTrackHubConnection/configSchema.d.ts +3 -3
- package/esm/UCSCTrackHubConnection/doConnect.js +3 -9
- package/esm/UCSCTrackHubConnection/index.js +2 -2
- package/esm/UCSCTrackHubConnection/model.d.ts +18 -26
- package/esm/UCSCTrackHubConnection/model.js +3 -3
- package/esm/UCSCTrackHubConnection/ucscTrackHub.d.ts +1 -8
- package/esm/UCSCTrackHubConnection/ucscTrackHub.js +6 -10
- package/esm/index.d.ts +2 -2
- package/esm/index.js +11 -14
- package/package.json +28 -37
- package/dist/AddConnectionWidget/components/AddConnectionWidget.d.ts +0 -4
- package/dist/AddConnectionWidget/components/AddConnectionWidget.js +0 -66
- package/dist/AddConnectionWidget/components/ConfigureConnection.d.ts +0 -9
- package/dist/AddConnectionWidget/components/ConfigureConnection.js +0 -12
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +0 -7
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.js +0 -19
- package/dist/AddConnectionWidget/index.d.ts +0 -2
- package/dist/AddConnectionWidget/index.js +0 -55
- package/dist/AddConnectionWidget/model.d.ts +0 -5
- package/dist/AddConnectionWidget/model.js +0 -8
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.d.ts +0 -9
- package/dist/AddTrackWidget/components/AddTrackStatusMessage.js +0 -16
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.d.ts +0 -4
- package/dist/AddTrackWidget/components/AddTrackUnknownAdapterPrompt.js +0 -20
- package/dist/AddTrackWidget/components/AddTrackWidget.d.ts +0 -5
- package/dist/AddTrackWidget/components/AddTrackWidget.js +0 -28
- package/dist/AddTrackWidget/components/ConfirmTrack.d.ts +0 -5
- package/dist/AddTrackWidget/components/ConfirmTrack.js +0 -73
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.d.ts +0 -5
- package/dist/AddTrackWidget/components/DefaultAddTrackWorkflow.js +0 -74
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.d.ts +0 -5
- package/dist/AddTrackWidget/components/PasteConfigWorkflow.js +0 -53
- package/dist/AddTrackWidget/components/TextIndexingConfig.d.ts +0 -5
- package/dist/AddTrackWidget/components/TextIndexingConfig.js +0 -76
- package/dist/AddTrackWidget/components/TrackAdapterSelector.d.ts +0 -5
- package/dist/AddTrackWidget/components/TrackAdapterSelector.js +0 -26
- package/dist/AddTrackWidget/components/TrackSourceSelect.d.ts +0 -5
- package/dist/AddTrackWidget/components/TrackSourceSelect.js +0 -22
- package/dist/AddTrackWidget/components/TrackTypeSelector.d.ts +0 -5
- package/dist/AddTrackWidget/components/TrackTypeSelector.js +0 -21
- package/dist/AddTrackWidget/components/Unsupported.d.ts +0 -1
- package/dist/AddTrackWidget/components/Unsupported.js +0 -16
- package/dist/AddTrackWidget/components/doSubmit.d.ts +0 -4
- package/dist/AddTrackWidget/components/doSubmit.js +0 -55
- package/dist/AddTrackWidget/components/util.d.ts +0 -2
- package/dist/AddTrackWidget/components/util.js +0 -15
- package/dist/AddTrackWidget/index.d.ts +0 -2
- package/dist/AddTrackWidget/index.js +0 -55
- package/dist/AddTrackWidget/model.d.ts +0 -64
- package/dist/AddTrackWidget/model.js +0 -190
- package/dist/AssemblyManager/AssemblyAddForm.d.ts +0 -6
- package/dist/AssemblyManager/AssemblyAddForm.js +0 -94
- package/dist/AssemblyManager/AssemblyEditor.d.ts +0 -6
- package/dist/AssemblyManager/AssemblyEditor.js +0 -20
- package/dist/AssemblyManager/AssemblyManager.d.ts +0 -6
- package/dist/AssemblyManager/AssemblyManager.js +0 -30
- package/dist/AssemblyManager/AssemblyTable.d.ts +0 -9
- package/dist/AssemblyManager/AssemblyTable.js +0 -53
- package/dist/AssemblyManager/index.d.ts +0 -1
- package/dist/AssemblyManager/index.js +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalFab.js +0 -47
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +0 -10
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +0 -26
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/ShoppingCart.js +0 -52
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/CloseConnectionDialog.js +0 -16
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.d.ts +0 -11
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/DeleteConnectionDialog.js +0 -17
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ManageConnectionsDialog.js +0 -34
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/dialogs/ToggleConnectionsDialog.js +0 -47
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilter.js +0 -52
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.d.ts +0 -10
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetFilters.js +0 -51
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDataGrid.js +0 -75
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedDialog.js +0 -15
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.d.ts +0 -4
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedHeader.js +0 -67
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.d.ts +0 -11
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/FacetedSelector.js +0 -75
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/util.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/faceted/util.js +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.d.ts +0 -11
- package/dist/HierarchicalTrackSelectorWidget/components/tree/DropdownTrackSelector.js +0 -34
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/FavoriteTracks.js +0 -45
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HamburgerMenu.js +0 -196
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalHeader.js +0 -38
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.d.ts +0 -8
- package/dist/HierarchicalTrackSelectorWidget/components/tree/HierarchicalTree.js +0 -68
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.d.ts +0 -5
- package/dist/HierarchicalTrackSelectorWidget/components/tree/RecentlyUsedTracks.js +0 -42
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.d.ts +0 -6
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackCategory.js +0 -117
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.d.ts +0 -10
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabel.js +0 -49
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.js +0 -56
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +0 -9
- package/dist/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +0 -42
- package/dist/HierarchicalTrackSelectorWidget/components/util.d.ts +0 -23
- package/dist/HierarchicalTrackSelectorWidget/components/util.js +0 -22
- package/dist/HierarchicalTrackSelectorWidget/configSchema.d.ts +0 -2
- package/dist/HierarchicalTrackSelectorWidget/configSchema.js +0 -5
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.d.ts +0 -82
- package/dist/HierarchicalTrackSelectorWidget/facetedModel.js +0 -114
- package/dist/HierarchicalTrackSelectorWidget/facetedUtil.d.ts +0 -2
- package/dist/HierarchicalTrackSelectorWidget/facetedUtil.js +0 -12
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.d.ts +0 -18
- package/dist/HierarchicalTrackSelectorWidget/filterTracks.js +0 -31
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.d.ts +0 -36
- package/dist/HierarchicalTrackSelectorWidget/generateHierarchy.js +0 -90
- package/dist/HierarchicalTrackSelectorWidget/index.d.ts +0 -4
- package/dist/HierarchicalTrackSelectorWidget/index.js +0 -59
- package/dist/HierarchicalTrackSelectorWidget/model.d.ts +0 -244
- package/dist/HierarchicalTrackSelectorWidget/model.js +0 -339
- package/dist/HierarchicalTrackSelectorWidget/util.d.ts +0 -12
- package/dist/HierarchicalTrackSelectorWidget/util.js +0 -50
- package/dist/JB2TrackHubConnection/addRelativeUris.d.ts +0 -1
- package/dist/JB2TrackHubConnection/addRelativeUris.js +0 -15
- package/dist/JB2TrackHubConnection/configSchema.d.ts +0 -27
- package/dist/JB2TrackHubConnection/configSchema.js +0 -34
- package/dist/JB2TrackHubConnection/doConnect.d.ts +0 -5
- package/dist/JB2TrackHubConnection/doConnect.js +0 -34
- package/dist/JB2TrackHubConnection/index.d.ts +0 -2
- package/dist/JB2TrackHubConnection/index.js +0 -21
- package/dist/JB2TrackHubConnection/model.d.ts +0 -75
- package/dist/JB2TrackHubConnection/model.js +0 -56
- package/dist/JB2TrackHubConnection/util.d.ts +0 -22
- package/dist/JB2TrackHubConnection/util.js +0 -41
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.d.ts +0 -6
- package/dist/PluginStoreWidget/components/AddCustomPluginDialog.js +0 -65
- package/dist/PluginStoreWidget/components/DeletePluginDialog.d.ts +0 -4
- package/dist/PluginStoreWidget/components/DeletePluginDialog.js +0 -17
- package/dist/PluginStoreWidget/components/InstalledPlugin.d.ts +0 -7
- package/dist/PluginStoreWidget/components/InstalledPlugin.js +0 -92
- package/dist/PluginStoreWidget/components/InstalledPluginsList.d.ts +0 -7
- package/dist/PluginStoreWidget/components/InstalledPluginsList.js +0 -18
- package/dist/PluginStoreWidget/components/PluginCard.d.ts +0 -7
- package/dist/PluginStoreWidget/components/PluginCard.js +0 -58
- package/dist/PluginStoreWidget/components/PluginStoreWidget.d.ts +0 -5
- package/dist/PluginStoreWidget/components/PluginStoreWidget.js +0 -104
- package/dist/PluginStoreWidget/components/util.d.ts +0 -6
- package/dist/PluginStoreWidget/components/util.js +0 -35
- package/dist/PluginStoreWidget/index.d.ts +0 -2
- package/dist/PluginStoreWidget/index.js +0 -55
- package/dist/PluginStoreWidget/model.d.ts +0 -13
- package/dist/PluginStoreWidget/model.js +0 -22
- package/dist/UCSCTrackHubConnection/configSchema.d.ts +0 -27
- package/dist/UCSCTrackHubConnection/configSchema.js +0 -34
- package/dist/UCSCTrackHubConnection/doConnect.d.ts +0 -5
- package/dist/UCSCTrackHubConnection/doConnect.js +0 -152
- package/dist/UCSCTrackHubConnection/index.d.ts +0 -2
- package/dist/UCSCTrackHubConnection/index.js +0 -21
- package/dist/UCSCTrackHubConnection/model.d.ts +0 -75
- package/dist/UCSCTrackHubConnection/model.js +0 -56
- package/dist/UCSCTrackHubConnection/ucscAssemblies.d.ts +0 -2
- package/dist/UCSCTrackHubConnection/ucscAssemblies.js +0 -199
- package/dist/UCSCTrackHubConnection/ucscTrackHub.d.ts +0 -182
- package/dist/UCSCTrackHubConnection/ucscTrackHub.js +0 -162
- package/dist/UCSCTrackHubConnection/util.d.ts +0 -22
- package/dist/UCSCTrackHubConnection/util.js +0 -41
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -68
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackLabelMenu.d.ts +0 -11
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.d.ts +0 -9
- package/esm/HierarchicalTrackSelectorWidget/components/tree/TrackListNode.js +0 -36
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doSubmit = doSubmit;
|
|
4
|
-
const util_1 = require("@jbrowse/core/util");
|
|
5
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
-
function doTextIndexTrack({ trackId, model, }) {
|
|
7
|
-
const { textIndexingConf, trackName, assembly } = model;
|
|
8
|
-
const { jobsManager } = (0, mobx_state_tree_1.getRoot)(model);
|
|
9
|
-
const attr = textIndexingConf || {
|
|
10
|
-
attributes: ['Name', 'ID'],
|
|
11
|
-
exclude: ['CDS', 'exon'],
|
|
12
|
-
};
|
|
13
|
-
const indexName = `${trackName}-index`;
|
|
14
|
-
jobsManager.queueJob({
|
|
15
|
-
indexingParams: {
|
|
16
|
-
...attr,
|
|
17
|
-
assemblies: [assembly],
|
|
18
|
-
tracks: [trackId],
|
|
19
|
-
indexType: 'perTrack',
|
|
20
|
-
name: indexName,
|
|
21
|
-
timestamp: new Date().toISOString(),
|
|
22
|
-
},
|
|
23
|
-
name: indexName,
|
|
24
|
-
cancelCallback: () => jobsManager.abortJob(),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function doSubmit({ model }) {
|
|
28
|
-
var _a;
|
|
29
|
-
const { textIndexTrack, trackAdapter, view } = model;
|
|
30
|
-
const session = (0, util_1.getSession)(model);
|
|
31
|
-
const trackConfig = model.getTrackConfig(Date.now());
|
|
32
|
-
if (!(0, util_1.isSessionWithAddTracks)(session)) {
|
|
33
|
-
throw new Error("Can't add tracks to this session");
|
|
34
|
-
}
|
|
35
|
-
else if (trackConfig && trackAdapter) {
|
|
36
|
-
const { trackId } = trackConfig;
|
|
37
|
-
session.addTrackConf(trackConfig);
|
|
38
|
-
(_a = view === null || view === void 0 ? void 0 : view.showTrack) === null || _a === void 0 ? void 0 : _a.call(view, trackId);
|
|
39
|
-
if (util_1.isElectron &&
|
|
40
|
-
textIndexTrack &&
|
|
41
|
-
(0, util_1.isSupportedIndexingAdapter)(trackAdapter.type)) {
|
|
42
|
-
doTextIndexTrack({
|
|
43
|
-
model,
|
|
44
|
-
trackId,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
model.clearData();
|
|
48
|
-
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
49
|
-
session.hideWidget(model);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
throw new Error('Failed to add track.\nThe configuration of this file is not currently supported.');
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.categorizeAdapters = categorizeAdapters;
|
|
4
|
-
function categorizeAdapters(adaptersList) {
|
|
5
|
-
var _a;
|
|
6
|
-
const map = {};
|
|
7
|
-
for (const adapter of adaptersList) {
|
|
8
|
-
const key = ((_a = adapter.adapterMetadata) === null || _a === void 0 ? void 0 : _a.category) || 'Default';
|
|
9
|
-
if (!map[key]) {
|
|
10
|
-
map[key] = [];
|
|
11
|
-
}
|
|
12
|
-
map[key].push(adapter);
|
|
13
|
-
}
|
|
14
|
-
return map;
|
|
15
|
-
}
|
|
@@ -1,55 +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 = AddTrackWidgetF;
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
42
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
43
|
-
const model_1 = __importDefault(require("./model"));
|
|
44
|
-
const configSchema = (0, configuration_1.ConfigurationSchema)('AddTrackWidget', {});
|
|
45
|
-
function AddTrackWidgetF(pluginManager) {
|
|
46
|
-
pluginManager.addWidgetType(() => {
|
|
47
|
-
return new pluggableElementTypes_1.WidgetType({
|
|
48
|
-
name: 'AddTrackWidget',
|
|
49
|
-
heading: 'Add a track',
|
|
50
|
-
configSchema,
|
|
51
|
-
stateModel: (0, model_1.default)(pluginManager),
|
|
52
|
-
ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/AddTrackWidget')))),
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
import type { FileLocation } from '@jbrowse/core/util/types';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
interface IndexingAttr {
|
|
5
|
-
attributes: string[];
|
|
6
|
-
exclude: string[];
|
|
7
|
-
}
|
|
8
|
-
export default function f(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
9
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
|
-
type: import("mobx-state-tree").ISimpleType<"AddTrackWidget">;
|
|
11
|
-
view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
12
|
-
}, {
|
|
13
|
-
trackSource: string;
|
|
14
|
-
trackData: FileLocation | undefined;
|
|
15
|
-
indexTrackData: FileLocation | undefined;
|
|
16
|
-
altAssemblyName: string;
|
|
17
|
-
altTrackName: string;
|
|
18
|
-
altTrackType: string;
|
|
19
|
-
adapterHint: string;
|
|
20
|
-
textIndexTrack: boolean;
|
|
21
|
-
textIndexingConf: IndexingAttr | undefined;
|
|
22
|
-
mixinData: {};
|
|
23
|
-
} & {
|
|
24
|
-
setMixinData(arg: Record<string, unknown>): void;
|
|
25
|
-
setAdapterHint(obj: string): void;
|
|
26
|
-
setTrackSource(str: string): void;
|
|
27
|
-
setTextIndexingConf(conf: IndexingAttr): void;
|
|
28
|
-
setTextIndexTrack(flag: boolean): void;
|
|
29
|
-
setTrackData(obj: FileLocation): void;
|
|
30
|
-
setIndexTrackData(obj: FileLocation): void;
|
|
31
|
-
setAssembly(str: string): void;
|
|
32
|
-
setTrackName(str: string): void;
|
|
33
|
-
setTrackType(str: string): void;
|
|
34
|
-
clearData(): void;
|
|
35
|
-
} & {
|
|
36
|
-
readonly trackAdapter: import("@jbrowse/core/util/tracks").AdapterConfig | undefined;
|
|
37
|
-
readonly trackName: string;
|
|
38
|
-
readonly isFtp: boolean;
|
|
39
|
-
readonly isRelativeTrackUrl: boolean;
|
|
40
|
-
readonly isRelativeIndexUrl: boolean;
|
|
41
|
-
readonly isRelativeUrl: boolean;
|
|
42
|
-
readonly trackHttp: any;
|
|
43
|
-
readonly indexHttp: any;
|
|
44
|
-
readonly wrongProtocol: any;
|
|
45
|
-
readonly unsupported: boolean;
|
|
46
|
-
readonly assembly: any;
|
|
47
|
-
readonly trackAdapterType: string | undefined;
|
|
48
|
-
readonly trackType: string;
|
|
49
|
-
} & {
|
|
50
|
-
getTrackConfig(timestamp: number): {
|
|
51
|
-
trackId: string;
|
|
52
|
-
type: string;
|
|
53
|
-
name: string;
|
|
54
|
-
assemblyNames: any[];
|
|
55
|
-
adapter: {
|
|
56
|
-
sequenceAdapter: any;
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
} | undefined;
|
|
60
|
-
readonly warningMessage: "" | "Warning: JBrowse cannot access files using the ftp protocol" | "Warning: one or more of your files do not provide the protocol e.g.\n https://, please provide an absolute URL unless you are sure a\n relative URL is intended." | "Warning: You entered a http:// resources but we cannot access HTTP\n resources from JBrowse when it is running on https. Please use an\n https URL for your track, or access the JBrowse app from the http\n protocol";
|
|
61
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
62
|
-
export type AddTrackStateModel = ReturnType<typeof f>;
|
|
63
|
-
export type AddTrackModel = Instance<AddTrackStateModel>;
|
|
64
|
-
export {};
|
|
@@ -1,190 +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.default = f;
|
|
7
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
-
const util_1 = require("@jbrowse/core/util");
|
|
9
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
10
|
-
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
11
|
-
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
12
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
13
|
-
function isAbsoluteUrl(url = '') {
|
|
14
|
-
try {
|
|
15
|
-
new URL(url);
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
return url.startsWith('/');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function f(pluginManager) {
|
|
23
|
-
return mobx_state_tree_1.types
|
|
24
|
-
.model('AddTrackModel', {
|
|
25
|
-
id: mst_1.ElementId,
|
|
26
|
-
type: mobx_state_tree_1.types.literal('AddTrackWidget'),
|
|
27
|
-
view: mobx_state_tree_1.types.safeReference(pluginManager.pluggableMstType('view', 'stateModel')),
|
|
28
|
-
})
|
|
29
|
-
.volatile(() => ({
|
|
30
|
-
trackSource: 'fromFile',
|
|
31
|
-
trackData: undefined,
|
|
32
|
-
indexTrackData: undefined,
|
|
33
|
-
altAssemblyName: '',
|
|
34
|
-
altTrackName: '',
|
|
35
|
-
altTrackType: '',
|
|
36
|
-
adapterHint: '',
|
|
37
|
-
textIndexTrack: true,
|
|
38
|
-
textIndexingConf: undefined,
|
|
39
|
-
mixinData: {},
|
|
40
|
-
}))
|
|
41
|
-
.actions(self => ({
|
|
42
|
-
setMixinData(arg) {
|
|
43
|
-
self.mixinData = arg;
|
|
44
|
-
},
|
|
45
|
-
setAdapterHint(obj) {
|
|
46
|
-
self.adapterHint = obj;
|
|
47
|
-
},
|
|
48
|
-
setTrackSource(str) {
|
|
49
|
-
self.trackSource = str;
|
|
50
|
-
},
|
|
51
|
-
setTextIndexingConf(conf) {
|
|
52
|
-
self.textIndexingConf = conf;
|
|
53
|
-
},
|
|
54
|
-
setTextIndexTrack(flag) {
|
|
55
|
-
self.textIndexTrack = flag;
|
|
56
|
-
},
|
|
57
|
-
setTrackData(obj) {
|
|
58
|
-
self.trackData = obj;
|
|
59
|
-
self.adapterHint = '';
|
|
60
|
-
},
|
|
61
|
-
setIndexTrackData(obj) {
|
|
62
|
-
self.indexTrackData = obj;
|
|
63
|
-
},
|
|
64
|
-
setAssembly(str) {
|
|
65
|
-
self.altAssemblyName = str;
|
|
66
|
-
},
|
|
67
|
-
setTrackName(str) {
|
|
68
|
-
self.altTrackName = str;
|
|
69
|
-
},
|
|
70
|
-
setTrackType(str) {
|
|
71
|
-
self.altTrackType = str;
|
|
72
|
-
},
|
|
73
|
-
clearData() {
|
|
74
|
-
self.trackSource = '';
|
|
75
|
-
self.altTrackName = '';
|
|
76
|
-
self.altTrackType = '';
|
|
77
|
-
self.altAssemblyName = '';
|
|
78
|
-
self.adapterHint = '';
|
|
79
|
-
self.indexTrackData = undefined;
|
|
80
|
-
self.trackData = undefined;
|
|
81
|
-
self.textIndexingConf = undefined;
|
|
82
|
-
self.textIndexTrack = true;
|
|
83
|
-
},
|
|
84
|
-
}))
|
|
85
|
-
.views(self => ({
|
|
86
|
-
get trackAdapter() {
|
|
87
|
-
const { trackData, indexTrackData, adapterHint } = self;
|
|
88
|
-
return trackData
|
|
89
|
-
? (0, tracks_1.guessAdapter)(trackData, indexTrackData, adapterHint, self)
|
|
90
|
-
: undefined;
|
|
91
|
-
},
|
|
92
|
-
get trackName() {
|
|
93
|
-
return (self.altTrackName ||
|
|
94
|
-
(self.trackData ? (0, tracks_1.getFileName)(self.trackData) : ''));
|
|
95
|
-
},
|
|
96
|
-
get isFtp() {
|
|
97
|
-
var _a, _b;
|
|
98
|
-
const { trackData: track, indexTrackData: index } = self;
|
|
99
|
-
return !!((((_a = index === null || index === void 0 ? void 0 : index.uri) === null || _a === void 0 ? void 0 : _a.startsWith('ftp://')) || ((_b = track === null || track === void 0 ? void 0 : track.uri) === null || _b === void 0 ? void 0 : _b.startsWith('ftp://'))));
|
|
100
|
-
},
|
|
101
|
-
get isRelativeTrackUrl() {
|
|
102
|
-
var _a;
|
|
103
|
-
const uri = (_a = self.trackData) === null || _a === void 0 ? void 0 : _a.uri;
|
|
104
|
-
return uri ? !isAbsoluteUrl(uri) : false;
|
|
105
|
-
},
|
|
106
|
-
get isRelativeIndexUrl() {
|
|
107
|
-
var _a;
|
|
108
|
-
const uri = (_a = self.indexTrackData) === null || _a === void 0 ? void 0 : _a.uri;
|
|
109
|
-
return uri ? !isAbsoluteUrl(uri) : false;
|
|
110
|
-
},
|
|
111
|
-
get isRelativeUrl() {
|
|
112
|
-
return this.isRelativeIndexUrl || this.isRelativeTrackUrl;
|
|
113
|
-
},
|
|
114
|
-
get trackHttp() {
|
|
115
|
-
var _a, _b;
|
|
116
|
-
return (_b = (_a = self.trackData) === null || _a === void 0 ? void 0 : _a.uri) === null || _b === void 0 ? void 0 : _b.startsWith('http://');
|
|
117
|
-
},
|
|
118
|
-
get indexHttp() {
|
|
119
|
-
var _a, _b;
|
|
120
|
-
return (_b = (_a = self.indexTrackData) === null || _a === void 0 ? void 0 : _a.uri) === null || _b === void 0 ? void 0 : _b.startsWith('http://');
|
|
121
|
-
},
|
|
122
|
-
get wrongProtocol() {
|
|
123
|
-
return (window.location.protocol === 'https:' &&
|
|
124
|
-
(this.trackHttp || this.indexHttp));
|
|
125
|
-
},
|
|
126
|
-
get unsupported() {
|
|
127
|
-
var _a;
|
|
128
|
-
return ((_a = this.trackAdapter) === null || _a === void 0 ? void 0 : _a.type) === tracks_1.UNSUPPORTED;
|
|
129
|
-
},
|
|
130
|
-
get assembly() {
|
|
131
|
-
var _a;
|
|
132
|
-
return self.altAssemblyName || ((_a = self.view.assemblyNames) === null || _a === void 0 ? void 0 : _a[0]);
|
|
133
|
-
},
|
|
134
|
-
get trackAdapterType() {
|
|
135
|
-
var _a;
|
|
136
|
-
return (_a = this.trackAdapter) === null || _a === void 0 ? void 0 : _a.type;
|
|
137
|
-
},
|
|
138
|
-
get trackType() {
|
|
139
|
-
return (self.altTrackType ||
|
|
140
|
-
(this.trackAdapterType
|
|
141
|
-
? (0, tracks_1.guessTrackType)(this.trackAdapterType, self)
|
|
142
|
-
: ''));
|
|
143
|
-
},
|
|
144
|
-
}))
|
|
145
|
-
.views(self => ({
|
|
146
|
-
getTrackConfig(timestamp) {
|
|
147
|
-
const session = (0, util_1.getSession)(self);
|
|
148
|
-
const assemblyInstance = session.assemblyManager.get(self.assembly);
|
|
149
|
-
return assemblyInstance &&
|
|
150
|
-
self.trackAdapter &&
|
|
151
|
-
self.trackAdapter.type !== 'UNKNOWN'
|
|
152
|
-
? (0, deepmerge_1.default)({
|
|
153
|
-
trackId: [
|
|
154
|
-
`${self.trackName.toLowerCase().replaceAll(' ', '_')}-${timestamp}`,
|
|
155
|
-
session.adminMode ? '' : '-sessionTrack',
|
|
156
|
-
].join(''),
|
|
157
|
-
type: self.trackType,
|
|
158
|
-
name: self.trackName,
|
|
159
|
-
assemblyNames: [self.assembly],
|
|
160
|
-
adapter: {
|
|
161
|
-
...self.trackAdapter,
|
|
162
|
-
sequenceAdapter: (0, configuration_1.getConf)(assemblyInstance, [
|
|
163
|
-
'sequence',
|
|
164
|
-
'adapter',
|
|
165
|
-
]),
|
|
166
|
-
},
|
|
167
|
-
}, self.mixinData)
|
|
168
|
-
: undefined;
|
|
169
|
-
},
|
|
170
|
-
get warningMessage() {
|
|
171
|
-
if (self.isFtp) {
|
|
172
|
-
return 'Warning: JBrowse cannot access files using the ftp protocol';
|
|
173
|
-
}
|
|
174
|
-
else if (self.isRelativeUrl) {
|
|
175
|
-
return `Warning: one or more of your files do not provide the protocol e.g.
|
|
176
|
-
https://, please provide an absolute URL unless you are sure a
|
|
177
|
-
relative URL is intended.`;
|
|
178
|
-
}
|
|
179
|
-
else if (self.wrongProtocol) {
|
|
180
|
-
return `Warning: You entered a http:// resources but we cannot access HTTP
|
|
181
|
-
resources from JBrowse when it is running on https. Please use an
|
|
182
|
-
https URL for your track, or access the JBrowse app from the http
|
|
183
|
-
protocol`;
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
return '';
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
}));
|
|
190
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const AdapterSelector = (0, mobx_react_1.observer)(function ({ adapterSelection, setAdapterSelection, adapterTypes, }) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.TextField, { value: adapterSelection, variant: "outlined", select: true, helperText: "Type of adapter to use", fullWidth: true, onChange: event => {
|
|
10
|
-
setAdapterSelection(event.target.value);
|
|
11
|
-
}, children: adapterTypes.map(str => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: str, children: str }, str))) }));
|
|
12
|
-
});
|
|
13
|
-
const UnindexedFastaAdapterInput = (0, mobx_react_1.observer)(function ({ fastaLocation, setFastaLocation, }) {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Alert, { severity: "warning", style: { margin: 8 }, children: "Note: a FASTA index will be generated on submit, might take a couple minutes and if the file is remote, it will be downloaded in full" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "FASTA file", location: fastaLocation, setLocation: setFastaLocation }) })] }));
|
|
15
|
-
});
|
|
16
|
-
const IndexedFastaAdapterInput = (0, mobx_react_1.observer)(function ({ fastaLocation, faiLocation, setFaiLocation, setFastaLocation, }) {
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "FASTA file", location: fastaLocation, setLocation: setFastaLocation }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "FASTA index (.fai) file", location: faiLocation, setLocation: setFaiLocation }) })] }));
|
|
18
|
-
});
|
|
19
|
-
const BgzipFastaAdapterInput = (0, mobx_react_1.observer)(function ({ fastaLocation, faiLocation, gziLocation, setFaiLocation, setGziLocation, setFastaLocation, }) {
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "FASTA file (.fa.gz)", location: fastaLocation, setLocation: setFastaLocation }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "FASTA index (.fai) file", location: faiLocation, setLocation: setFaiLocation }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "FASTA gzip index (.gzi) file", location: gziLocation, setLocation: setGziLocation }) })] }));
|
|
21
|
-
});
|
|
22
|
-
const TwoBitAdapterInput = (0, mobx_react_1.observer)(function ({ twoBitLocation, chromSizesLocation, setTwoBitLocation, setChromSizesLocation, }) {
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: "2bit file", location: twoBitLocation, setLocation: setTwoBitLocation }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.FileSelector, { inline: true, name: ".chrom.sizes (optional, can speed up loading 2bit files with many contigs)", location: chromSizesLocation, setLocation: setChromSizesLocation }) })] }));
|
|
24
|
-
});
|
|
25
|
-
const blank = { uri: '' };
|
|
26
|
-
const adapterTypes = [
|
|
27
|
-
'IndexedFastaAdapter',
|
|
28
|
-
'BgzipFastaAdapter',
|
|
29
|
-
'UnindexedFastaAdapter',
|
|
30
|
-
'TwoBitAdapter',
|
|
31
|
-
];
|
|
32
|
-
const AssemblyAddForm = (0, mobx_react_1.observer)(function ({ session, onClose, }) {
|
|
33
|
-
const [assemblyName, setAssemblyName] = (0, react_1.useState)('');
|
|
34
|
-
const [assemblyDisplayName, setAssemblyDisplayName] = (0, react_1.useState)('');
|
|
35
|
-
const [adapterSelection, setAdapterSelection] = (0, react_1.useState)(adapterTypes[0]);
|
|
36
|
-
const [fastaLocation, setFastaLocation] = (0, react_1.useState)(blank);
|
|
37
|
-
const [faiLocation, setFaiLocation] = (0, react_1.useState)(blank);
|
|
38
|
-
const [gziLocation, setGziLocation] = (0, react_1.useState)(blank);
|
|
39
|
-
const [twoBitLocation, setTwoBitLocation] = (0, react_1.useState)(blank);
|
|
40
|
-
const [chromSizesLocation, setChromSizesLocation] = (0, react_1.useState)(blank);
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { id: "assembly-name", label: "Assembly name", helperText: "The assembly name e.g. hg38", variant: "outlined", value: assemblyName, onChange: event => {
|
|
42
|
-
setAssemblyName(event.target.value);
|
|
43
|
-
}, slotProps: {
|
|
44
|
-
htmlInput: { 'data-testid': 'assembly-name' },
|
|
45
|
-
} }), (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "assembly-display-name", label: "Assembly display name", helperText: '(optional) A human readable display name for the assembly e.g. "Homo sapiens (hg38)"', variant: "outlined", value: assemblyDisplayName, onChange: event => {
|
|
46
|
-
setAssemblyDisplayName(event.target.value);
|
|
47
|
-
}, slotProps: {
|
|
48
|
-
htmlInput: {
|
|
49
|
-
'data-testid': 'assembly-display-name',
|
|
50
|
-
},
|
|
51
|
-
} }), (0, jsx_runtime_1.jsx)(AdapterSelector, { adapterSelection: adapterSelection, adapterTypes: adapterTypes, setAdapterSelection: setAdapterSelection }), adapterSelection === 'IndexedFastaAdapter' ? ((0, jsx_runtime_1.jsx)(IndexedFastaAdapterInput, { fastaLocation: fastaLocation, faiLocation: faiLocation, setFaiLocation: setFaiLocation, setFastaLocation: setFastaLocation })) : adapterSelection === 'UnindexedFastaAdapter' ? ((0, jsx_runtime_1.jsx)(UnindexedFastaAdapterInput, { fastaLocation: fastaLocation, setFastaLocation: setFastaLocation })) : adapterSelection === 'TwoBitAdapter' ? ((0, jsx_runtime_1.jsx)(TwoBitAdapterInput, { twoBitLocation: twoBitLocation, chromSizesLocation: chromSizesLocation, setTwoBitLocation: setTwoBitLocation, setChromSizesLocation: setChromSizesLocation })) : ((0, jsx_runtime_1.jsx)(BgzipFastaAdapterInput, { fastaLocation: fastaLocation, gziLocation: gziLocation, faiLocation: faiLocation, setFaiLocation: setFaiLocation, setGziLocation: setGziLocation, setFastaLocation: setFastaLocation }))] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", onClick: () => {
|
|
52
|
-
if (assemblyName === '') {
|
|
53
|
-
session.notify("Can't create an assembly without a name");
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
onClose();
|
|
57
|
-
session.addAssembly({
|
|
58
|
-
name: assemblyName,
|
|
59
|
-
displayName: assemblyDisplayName,
|
|
60
|
-
sequence: {
|
|
61
|
-
type: 'ReferenceSequenceTrack',
|
|
62
|
-
trackId: `${assemblyName}-${performance.now()}`,
|
|
63
|
-
adapter: adapterSelection === 'IndexedFastaAdapter'
|
|
64
|
-
? {
|
|
65
|
-
type: 'IndexedFastaAdapter',
|
|
66
|
-
fastaLocation,
|
|
67
|
-
faiLocation,
|
|
68
|
-
}
|
|
69
|
-
: adapterSelection === 'BgzipFastaAdapter'
|
|
70
|
-
? {
|
|
71
|
-
type: 'BgzipFastaAdapter',
|
|
72
|
-
fastaLocation,
|
|
73
|
-
faiLocation,
|
|
74
|
-
gziLocation,
|
|
75
|
-
}
|
|
76
|
-
: adapterSelection === 'UnindexedFastaAdapter'
|
|
77
|
-
? {
|
|
78
|
-
type: 'UnindexedFastaAdapter',
|
|
79
|
-
fastaLocation,
|
|
80
|
-
}
|
|
81
|
-
: {
|
|
82
|
-
type: 'TwoBitAdapter',
|
|
83
|
-
twoBitLocation,
|
|
84
|
-
chromSizesLocation,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
session.notify(`Added "${assemblyName}"`, 'success');
|
|
89
|
-
}
|
|
90
|
-
}, children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
91
|
-
onClose();
|
|
92
|
-
}, children: "Cancel" })] })] }));
|
|
93
|
-
});
|
|
94
|
-
exports.default = AssemblyAddForm;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
declare const AssemblyEditor: ({ assembly, onClose, }: {
|
|
3
|
-
assembly?: AnyConfigurationModel;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default AssemblyEditor;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const plugin_config_1 = require("@jbrowse/plugin-config");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const mobx_react_1 = require("mobx-react");
|
|
7
|
-
const mui_1 = require("tss-react/mui");
|
|
8
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
9
|
-
container: {
|
|
10
|
-
overflow: 'auto',
|
|
11
|
-
maxHeight: 600,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
const AssemblyEditor = (0, mobx_react_1.observer)(function ({ assembly, onClose, }) {
|
|
15
|
-
const { classes } = useStyles();
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)("div", { className: classes.container, children: assembly ? ((0, jsx_runtime_1.jsx)(plugin_config_1.ConfigurationEditor, { model: { target: assembly } })) : ((0, jsx_runtime_1.jsx)("div", { children: "No assembly" })) }) }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: () => {
|
|
17
|
-
onClose();
|
|
18
|
-
}, children: "Back" }) })] }));
|
|
19
|
-
});
|
|
20
|
-
exports.default = AssemblyEditor;
|
|
@@ -1,30 +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 mobx_react_1 = require("mobx-react");
|
|
10
|
-
const AssemblyAddForm_1 = __importDefault(require("./AssemblyAddForm"));
|
|
11
|
-
const AssemblyEditor_1 = __importDefault(require("./AssemblyEditor"));
|
|
12
|
-
const AssemblyTable_1 = __importDefault(require("./AssemblyTable"));
|
|
13
|
-
const AssemblyManager = (0, mobx_react_1.observer)(function ({ session, onClose, }) {
|
|
14
|
-
const [isFormOpen, setFormOpen] = (0, react_1.useState)(false);
|
|
15
|
-
const [editingAssembly, setEditingAssembly] = (0, react_1.useState)();
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Dialog, { open: true, title: "Assembly manager", onClose: () => {
|
|
17
|
-
onClose();
|
|
18
|
-
}, children: editingAssembly ? ((0, jsx_runtime_1.jsx)(AssemblyEditor_1.default, { assembly: editingAssembly, onClose: () => {
|
|
19
|
-
setEditingAssembly(undefined);
|
|
20
|
-
} })) : isFormOpen ? ((0, jsx_runtime_1.jsx)(AssemblyAddForm_1.default, { session: session, onClose: () => {
|
|
21
|
-
setFormOpen(false);
|
|
22
|
-
} })) : ((0, jsx_runtime_1.jsx)(AssemblyTable_1.default, { session: session, onClose: () => {
|
|
23
|
-
onClose();
|
|
24
|
-
}, onAddAssembly: () => {
|
|
25
|
-
setFormOpen(true);
|
|
26
|
-
}, onEditAssembly: arg => {
|
|
27
|
-
setEditingAssembly(arg);
|
|
28
|
-
} })) }));
|
|
29
|
-
});
|
|
30
|
-
exports.default = AssemblyManager;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
import type { AbstractSessionModel } from '@jbrowse/core/util';
|
|
3
|
-
declare const AssemblyTable: ({ onEditAssembly, onAddAssembly, onClose, session, }: {
|
|
4
|
-
onEditAssembly: (arg: AnyConfigurationModel) => void;
|
|
5
|
-
onAddAssembly: () => void;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
session: AbstractSessionModel;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default AssemblyTable;
|
|
@@ -1,53 +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 configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
-
const DataGridFlexContainer_1 = __importDefault(require("@jbrowse/core/ui/DataGridFlexContainer"));
|
|
9
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
10
|
-
const Create_1 = __importDefault(require("@mui/icons-material/Create"));
|
|
11
|
-
const Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
12
|
-
const material_1 = require("@mui/material");
|
|
13
|
-
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
14
|
-
const mobx_react_1 = require("mobx-react");
|
|
15
|
-
const AssemblyTable = (0, mobx_react_1.observer)(function ({ onEditAssembly, onAddAssembly, onClose, session, }) {
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(DataGridFlexContainer_1.default, { children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { rowHeight: 25, columnHeaderHeight: 35, hideFooter: session.assemblies.length < 25, rows: session.assemblies.map(assembly => ({
|
|
17
|
-
id: (0, configuration_1.readConfObject)(assembly, 'name'),
|
|
18
|
-
name: (0, configuration_1.readConfObject)(assembly, 'name'),
|
|
19
|
-
displayName: (0, configuration_1.readConfObject)(assembly, 'displayName'),
|
|
20
|
-
aliases: (0, configuration_1.readConfObject)(assembly, 'aliases'),
|
|
21
|
-
assembly,
|
|
22
|
-
})), columns: [
|
|
23
|
-
{ field: 'name' },
|
|
24
|
-
{ field: 'displayName' },
|
|
25
|
-
{ field: 'aliases' },
|
|
26
|
-
{
|
|
27
|
-
field: 'actions',
|
|
28
|
-
renderCell: ({ row }) => {
|
|
29
|
-
const { assembly, name } = row;
|
|
30
|
-
const editable = session.sessionAssemblies.includes(assembly)
|
|
31
|
-
? true
|
|
32
|
-
: session.adminMode;
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { disabled: !editable, onClick: () => {
|
|
34
|
-
onEditAssembly(assembly);
|
|
35
|
-
}, children: (0, jsx_runtime_1.jsx)(Create_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { "data-testid": `${name}-delete`, disabled: !editable, onClick: () => {
|
|
36
|
-
if (editable) {
|
|
37
|
-
if (!session.removeAssembly) {
|
|
38
|
-
session.notify('Unable to find removeAssembly function');
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
session.removeAssembly(name);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}, children: (0, jsx_runtime_1.jsx)(Delete_1.default, {}) })] }));
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
] }) }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { color: "secondary", variant: "contained", onClick: () => {
|
|
48
|
-
onClose();
|
|
49
|
-
}, children: "Close" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", startIcon: (0, jsx_runtime_1.jsx)(Add_1.default, {}), onClick: () => {
|
|
50
|
-
onAddAssembly();
|
|
51
|
-
}, children: "Add new assembly" })] })] }));
|
|
52
|
-
});
|
|
53
|
-
exports.default = AssemblyTable;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './AssemblyManager';
|
|
@@ -1,8 +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.default = void 0;
|
|
7
|
-
var AssemblyManager_1 = require("./AssemblyManager");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AssemblyManager_1).default; } });
|