@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,339 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = stateTreeFactory;
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
7
|
-
const mobx_1 = require("mobx");
|
|
8
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
-
const facetedModel_1 = require("./facetedModel");
|
|
10
|
-
const filterTracks_1 = require("./filterTracks");
|
|
11
|
-
const generateHierarchy_1 = require("./generateHierarchy");
|
|
12
|
-
const util_2 = require("./util");
|
|
13
|
-
function keyConfigPostFix() {
|
|
14
|
-
return typeof window !== 'undefined'
|
|
15
|
-
? [
|
|
16
|
-
window.location.pathname,
|
|
17
|
-
new URLSearchParams(window.location.search).get('config'),
|
|
18
|
-
]
|
|
19
|
-
.filter(f => !!f)
|
|
20
|
-
.join('-')
|
|
21
|
-
: 'empty';
|
|
22
|
-
}
|
|
23
|
-
function recentlyUsedK(assemblyNames) {
|
|
24
|
-
return ['recentlyUsedTracks', keyConfigPostFix(), assemblyNames.join(',')]
|
|
25
|
-
.filter(f => !!f)
|
|
26
|
-
.join('-');
|
|
27
|
-
}
|
|
28
|
-
function favoritesK() {
|
|
29
|
-
return `favoriteTracks-${keyConfigPostFix()}}`;
|
|
30
|
-
}
|
|
31
|
-
function collapsedK(assemblyNames, viewType) {
|
|
32
|
-
return [
|
|
33
|
-
'collapsedCategories',
|
|
34
|
-
keyConfigPostFix(),
|
|
35
|
-
assemblyNames.join(','),
|
|
36
|
-
viewType,
|
|
37
|
-
].join('-');
|
|
38
|
-
}
|
|
39
|
-
function sortTrackNamesK() {
|
|
40
|
-
return 'sortTrackNames';
|
|
41
|
-
}
|
|
42
|
-
function sortCategoriesK() {
|
|
43
|
-
return 'sortCategories';
|
|
44
|
-
}
|
|
45
|
-
function localStorageGetJSON(key, defaultValue) {
|
|
46
|
-
const val = (0, util_1.localStorageGetItem)(key);
|
|
47
|
-
return val !== undefined && val !== null && val
|
|
48
|
-
? JSON.parse(val)
|
|
49
|
-
: defaultValue;
|
|
50
|
-
}
|
|
51
|
-
function localStorageSetJSON(key, val) {
|
|
52
|
-
if (val !== undefined && val !== null) {
|
|
53
|
-
(0, util_1.localStorageSetItem)(key, JSON.stringify(val));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const MAX_RECENTLY_USED = 10;
|
|
57
|
-
function stateTreeFactory(pluginManager) {
|
|
58
|
-
return mobx_state_tree_1.types
|
|
59
|
-
.model('HierarchicalTrackSelectorWidget', {
|
|
60
|
-
id: mst_1.ElementId,
|
|
61
|
-
type: mobx_state_tree_1.types.literal('HierarchicalTrackSelectorWidget'),
|
|
62
|
-
view: mobx_state_tree_1.types.safeReference(pluginManager.pluggableMstType('view', 'stateModel')),
|
|
63
|
-
faceted: mobx_state_tree_1.types.optional((0, facetedModel_1.facetedStateTreeF)(), {}),
|
|
64
|
-
})
|
|
65
|
-
.volatile(() => ({
|
|
66
|
-
favorites: localStorageGetJSON(favoritesK(), []),
|
|
67
|
-
recentlyUsed: [],
|
|
68
|
-
selection: [],
|
|
69
|
-
sortTrackNames: localStorageGetJSON(sortTrackNamesK(), undefined),
|
|
70
|
-
sortCategories: localStorageGetJSON(sortCategoriesK(), undefined),
|
|
71
|
-
collapsed: mobx_1.observable.map(),
|
|
72
|
-
filterText: '',
|
|
73
|
-
recentlyUsedCounter: 0,
|
|
74
|
-
favoritesCounter: 0,
|
|
75
|
-
}))
|
|
76
|
-
.views(self => ({
|
|
77
|
-
get shownTrackIds() {
|
|
78
|
-
var _a, _b;
|
|
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));
|
|
80
|
-
},
|
|
81
|
-
get selectionSet() {
|
|
82
|
-
return new Set(self.selection);
|
|
83
|
-
},
|
|
84
|
-
get favoritesSet() {
|
|
85
|
-
return new Set(self.favorites);
|
|
86
|
-
},
|
|
87
|
-
get recentlyUsedSet() {
|
|
88
|
-
return new Set(self.recentlyUsed);
|
|
89
|
-
},
|
|
90
|
-
get assemblyNames() {
|
|
91
|
-
var _a;
|
|
92
|
-
return ((_a = self.view) === null || _a === void 0 ? void 0 : _a.assemblyNames) || [];
|
|
93
|
-
},
|
|
94
|
-
}))
|
|
95
|
-
.actions(self => ({
|
|
96
|
-
setSortTrackNames(val) {
|
|
97
|
-
self.sortTrackNames = val;
|
|
98
|
-
},
|
|
99
|
-
setSortCategories(val) {
|
|
100
|
-
self.sortCategories = val;
|
|
101
|
-
},
|
|
102
|
-
setSelection(elt) {
|
|
103
|
-
self.selection = elt;
|
|
104
|
-
},
|
|
105
|
-
addToSelection(elt) {
|
|
106
|
-
self.selection = (0, util_1.dedupe)([...self.selection, ...elt], e => e.trackId);
|
|
107
|
-
},
|
|
108
|
-
removeFromSelection(elt) {
|
|
109
|
-
const s = new Set(elt);
|
|
110
|
-
self.selection = self.selection.filter(f => !s.has(f));
|
|
111
|
-
},
|
|
112
|
-
clearSelection() {
|
|
113
|
-
self.selection = [];
|
|
114
|
-
},
|
|
115
|
-
addToFavorites(trackId) {
|
|
116
|
-
self.favoritesCounter += 1;
|
|
117
|
-
self.favorites = [...self.favorites, trackId];
|
|
118
|
-
},
|
|
119
|
-
removeFromFavorites(trackId) {
|
|
120
|
-
self.favorites = self.favorites.filter(f => f !== trackId);
|
|
121
|
-
},
|
|
122
|
-
clearFavorites() {
|
|
123
|
-
self.favorites = [];
|
|
124
|
-
},
|
|
125
|
-
setRecentlyUsedCounter(val) {
|
|
126
|
-
self.recentlyUsedCounter = val;
|
|
127
|
-
},
|
|
128
|
-
setRecentlyUsed(str) {
|
|
129
|
-
self.recentlyUsed = str;
|
|
130
|
-
},
|
|
131
|
-
setFavorites(str) {
|
|
132
|
-
self.favorites = str;
|
|
133
|
-
},
|
|
134
|
-
setFavoritesCounter(val) {
|
|
135
|
-
self.favoritesCounter = val;
|
|
136
|
-
},
|
|
137
|
-
addToRecentlyUsed(id) {
|
|
138
|
-
if (!self.recentlyUsed.includes(id)) {
|
|
139
|
-
self.recentlyUsedCounter = Math.min(self.recentlyUsedCounter + 1, MAX_RECENTLY_USED);
|
|
140
|
-
self.recentlyUsed =
|
|
141
|
-
self.recentlyUsed.length >= MAX_RECENTLY_USED
|
|
142
|
-
? [...self.recentlyUsed.slice(1), id]
|
|
143
|
-
: [...self.recentlyUsed, id];
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
clearRecentlyUsed() {
|
|
147
|
-
self.recentlyUsed = [];
|
|
148
|
-
},
|
|
149
|
-
setView(view) {
|
|
150
|
-
self.view = view;
|
|
151
|
-
},
|
|
152
|
-
toggleCategory(pathName) {
|
|
153
|
-
self.collapsed.set(pathName, !self.collapsed.get(pathName));
|
|
154
|
-
},
|
|
155
|
-
setCategoryCollapsed(pathName, status) {
|
|
156
|
-
self.collapsed.set(pathName, status);
|
|
157
|
-
},
|
|
158
|
-
expandAllCategories() {
|
|
159
|
-
self.collapsed.clear();
|
|
160
|
-
},
|
|
161
|
-
setCollapsedCategories(str) {
|
|
162
|
-
self.collapsed.replace(str);
|
|
163
|
-
},
|
|
164
|
-
clearFilterText() {
|
|
165
|
-
self.filterText = '';
|
|
166
|
-
},
|
|
167
|
-
setFilterText(newText) {
|
|
168
|
-
self.filterText = newText;
|
|
169
|
-
},
|
|
170
|
-
}))
|
|
171
|
-
.views(self => ({
|
|
172
|
-
isSelected(track) {
|
|
173
|
-
return self.selectionSet.has(track);
|
|
174
|
-
},
|
|
175
|
-
isFavorite(trackId) {
|
|
176
|
-
return self.favoritesSet.has(trackId);
|
|
177
|
-
},
|
|
178
|
-
isRecentlyUsed(trackId) {
|
|
179
|
-
return self.recentlyUsedSet.has(trackId);
|
|
180
|
-
},
|
|
181
|
-
getRefSeqTrackConf(assemblyName) {
|
|
182
|
-
const { assemblyManager } = (0, util_1.getSession)(self);
|
|
183
|
-
const assembly = assemblyManager.get(assemblyName);
|
|
184
|
-
const trackConf = assembly === null || assembly === void 0 ? void 0 : assembly.configuration.sequence;
|
|
185
|
-
const viewType = pluginManager.getViewType(self.view.type);
|
|
186
|
-
if (trackConf) {
|
|
187
|
-
for (const display of trackConf.displays) {
|
|
188
|
-
if (viewType.displayTypes.some(d => d.name === display.type)) {
|
|
189
|
-
return trackConf;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return undefined;
|
|
194
|
-
},
|
|
195
|
-
}))
|
|
196
|
-
.views(self => ({
|
|
197
|
-
get activeSortTrackNames() {
|
|
198
|
-
var _a;
|
|
199
|
-
return ((_a = self.sortTrackNames) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)((0, util_1.getSession)(self), ['hierarchical', 'sort', 'trackNames']));
|
|
200
|
-
},
|
|
201
|
-
get activeSortCategories() {
|
|
202
|
-
var _a;
|
|
203
|
-
return ((_a = self.sortCategories) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)((0, util_1.getSession)(self), ['hierarchical', 'sort', 'categories']));
|
|
204
|
-
},
|
|
205
|
-
get configAndSessionTrackConfigurations() {
|
|
206
|
-
return [
|
|
207
|
-
...self.assemblyNames.map(a => self.getRefSeqTrackConf(a)),
|
|
208
|
-
...(0, filterTracks_1.filterTracks)((0, util_1.getSession)(self).tracks, self),
|
|
209
|
-
].filter(util_1.notEmpty);
|
|
210
|
-
},
|
|
211
|
-
get allTrackConfigurations() {
|
|
212
|
-
const { connectionInstances = [] } = (0, util_1.getSession)(self);
|
|
213
|
-
return [
|
|
214
|
-
...this.configAndSessionTrackConfigurations,
|
|
215
|
-
...connectionInstances.flatMap(c => c.tracks),
|
|
216
|
-
];
|
|
217
|
-
},
|
|
218
|
-
get allTrackConfigurationTrackIdSet() {
|
|
219
|
-
return new Map(this.allTrackConfigurations.map(t => [t.trackId, t]));
|
|
220
|
-
},
|
|
221
|
-
}))
|
|
222
|
-
.views(self => ({
|
|
223
|
-
get favoriteTracks() {
|
|
224
|
-
return self.favorites
|
|
225
|
-
.filter(t => self.allTrackConfigurationTrackIdSet.has(t))
|
|
226
|
-
.map(t => self.allTrackConfigurationTrackIdSet.get(t));
|
|
227
|
-
},
|
|
228
|
-
get recentlyUsedTracks() {
|
|
229
|
-
return self.recentlyUsed
|
|
230
|
-
.filter(t => self.allTrackConfigurationTrackIdSet.has(t))
|
|
231
|
-
.map(t => self.allTrackConfigurationTrackIdSet.get(t));
|
|
232
|
-
},
|
|
233
|
-
}))
|
|
234
|
-
.views(self => ({
|
|
235
|
-
get allTracks() {
|
|
236
|
-
const { connectionInstances = [] } = (0, util_1.getSession)(self);
|
|
237
|
-
return [
|
|
238
|
-
{
|
|
239
|
-
group: 'Tracks',
|
|
240
|
-
tracks: self.configAndSessionTrackConfigurations,
|
|
241
|
-
noCategories: false,
|
|
242
|
-
menuItems: [],
|
|
243
|
-
},
|
|
244
|
-
...connectionInstances.flatMap(c => ({
|
|
245
|
-
group: (0, configuration_1.getConf)(c, 'name'),
|
|
246
|
-
tracks: (0, filterTracks_1.filterTracks)(c.tracks, self),
|
|
247
|
-
noCategories: false,
|
|
248
|
-
menuItems: [],
|
|
249
|
-
})),
|
|
250
|
-
];
|
|
251
|
-
},
|
|
252
|
-
}))
|
|
253
|
-
.views(self => ({
|
|
254
|
-
get hierarchy() {
|
|
255
|
-
return {
|
|
256
|
-
name: 'Root',
|
|
257
|
-
id: 'Root',
|
|
258
|
-
isOpenByDefault: true,
|
|
259
|
-
type: 'category',
|
|
260
|
-
children: self.allTracks.map(s => ({
|
|
261
|
-
name: s.group,
|
|
262
|
-
id: s.group,
|
|
263
|
-
type: 'category',
|
|
264
|
-
isOpenByDefault: !self.collapsed.get(s.group),
|
|
265
|
-
menuItems: s.menuItems,
|
|
266
|
-
children: (0, generateHierarchy_1.generateHierarchy)({
|
|
267
|
-
model: self,
|
|
268
|
-
trackConfs: s.tracks,
|
|
269
|
-
extra: s.group,
|
|
270
|
-
noCategories: s.noCategories,
|
|
271
|
-
}),
|
|
272
|
-
})),
|
|
273
|
-
};
|
|
274
|
-
},
|
|
275
|
-
}))
|
|
276
|
-
.actions(self => ({
|
|
277
|
-
collapseSubCategories() {
|
|
278
|
-
const paths = [];
|
|
279
|
-
(0, util_2.findSubCategories)(self.hierarchy.children, paths);
|
|
280
|
-
for (const path of paths) {
|
|
281
|
-
self.setCategoryCollapsed(path, true);
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
collapseTopLevelCategories() {
|
|
285
|
-
const paths = [];
|
|
286
|
-
for (const trackGroups of self.hierarchy.children) {
|
|
287
|
-
if (trackGroups.children.length) {
|
|
288
|
-
(0, util_2.findTopLevelCategories)(trackGroups.children, paths);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
for (const path of paths) {
|
|
292
|
-
self.setCategoryCollapsed(path, true);
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
}))
|
|
296
|
-
.views(self => ({
|
|
297
|
-
get hasAnySubcategories() {
|
|
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; }));
|
|
299
|
-
},
|
|
300
|
-
}))
|
|
301
|
-
.actions(self => ({
|
|
302
|
-
afterAttach() {
|
|
303
|
-
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
304
|
-
const { assemblyNames, view } = self;
|
|
305
|
-
self.setRecentlyUsed(localStorageGetJSON(recentlyUsedK(assemblyNames), []));
|
|
306
|
-
if (view) {
|
|
307
|
-
const lc = localStorageGetJSON(collapsedK(assemblyNames, view.type), undefined);
|
|
308
|
-
const r = ['hierarchical', 'defaultCollapsed'];
|
|
309
|
-
const session = (0, util_1.getSession)(self);
|
|
310
|
-
if (!lc) {
|
|
311
|
-
self.expandAllCategories();
|
|
312
|
-
if ((0, configuration_1.getConf)(session, [...r, 'topLevelCategories'])) {
|
|
313
|
-
self.collapseTopLevelCategories();
|
|
314
|
-
}
|
|
315
|
-
if ((0, configuration_1.getConf)(session, [...r, 'subCategories'])) {
|
|
316
|
-
self.collapseSubCategories();
|
|
317
|
-
}
|
|
318
|
-
for (const elt of (0, configuration_1.getConf)(session, [...r, 'categoryNames'])) {
|
|
319
|
-
self.setCategoryCollapsed(`Tracks-${elt}`, true);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
self.setCollapsedCategories(lc);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}));
|
|
327
|
-
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
328
|
-
const { sortTrackNames, sortCategories, favorites, recentlyUsed, assemblyNames, collapsed, view, } = self;
|
|
329
|
-
localStorageSetJSON(recentlyUsedK(assemblyNames), recentlyUsed);
|
|
330
|
-
localStorageSetJSON(favoritesK(), favorites);
|
|
331
|
-
localStorageSetJSON(sortTrackNamesK(), sortTrackNames);
|
|
332
|
-
localStorageSetJSON(sortCategoriesK(), sortCategories);
|
|
333
|
-
if (view) {
|
|
334
|
-
localStorageSetJSON(collapsedK(assemblyNames, view.type), collapsed);
|
|
335
|
-
}
|
|
336
|
-
}));
|
|
337
|
-
},
|
|
338
|
-
}));
|
|
339
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
import type { AbstractSessionModel } from '@jbrowse/core/util';
|
|
3
|
-
export declare function hasAnyOverlap<T>(a1?: T[], a2?: T[]): boolean;
|
|
4
|
-
export declare function hasAllOverlap<T>(a1?: T[], a2?: T[]): boolean;
|
|
5
|
-
export declare function matches(query: string, conf: AnyConfigurationModel, session: AbstractSessionModel): boolean;
|
|
6
|
-
interface Node {
|
|
7
|
-
children: Node[];
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function findSubCategories(obj: Node[], paths: string[], depth?: number): boolean;
|
|
11
|
-
export declare function findTopLevelCategories(obj: Node[], paths: string[]): void;
|
|
12
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasAnyOverlap = hasAnyOverlap;
|
|
4
|
-
exports.hasAllOverlap = hasAllOverlap;
|
|
5
|
-
exports.matches = matches;
|
|
6
|
-
exports.findSubCategories = findSubCategories;
|
|
7
|
-
exports.findTopLevelCategories = findTopLevelCategories;
|
|
8
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
9
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
10
|
-
function hasAnyOverlap(a1 = [], a2 = []) {
|
|
11
|
-
if (a1[0] === a2[0]) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
const s1 = new Set(a1);
|
|
16
|
-
return a2.some(a => s1.has(a));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function hasAllOverlap(a1 = [], a2 = []) {
|
|
20
|
-
const s1 = new Set(a1);
|
|
21
|
-
return a2.every(a => s1.has(a));
|
|
22
|
-
}
|
|
23
|
-
function matches(query, conf, session) {
|
|
24
|
-
const categories = ((0, configuration_1.readConfObject)(conf, 'category') || []);
|
|
25
|
-
const queryLower = query.toLowerCase();
|
|
26
|
-
return ((0, tracks_1.getTrackName)(conf, session).toLowerCase().includes(queryLower) ||
|
|
27
|
-
!!categories.filter(c => c.toLowerCase().includes(queryLower)).length);
|
|
28
|
-
}
|
|
29
|
-
function findSubCategories(obj, paths, depth = 0) {
|
|
30
|
-
let hasSubs = false;
|
|
31
|
-
for (const elt of obj) {
|
|
32
|
-
if (elt.children.length) {
|
|
33
|
-
const hasSubCategories = findSubCategories(elt.children, paths, depth + 1);
|
|
34
|
-
if (hasSubCategories && depth > 0) {
|
|
35
|
-
paths.push(elt.id);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
hasSubs = true;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return hasSubs;
|
|
43
|
-
}
|
|
44
|
-
function findTopLevelCategories(obj, paths) {
|
|
45
|
-
for (const elt of obj) {
|
|
46
|
-
if (elt.children.length) {
|
|
47
|
-
paths.push(elt.id);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function addRelativeUris(config: Record<string, unknown> | null, base: URL): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addRelativeUris = addRelativeUris;
|
|
4
|
-
function addRelativeUris(config, base) {
|
|
5
|
-
if (typeof config === 'object' && config !== null) {
|
|
6
|
-
for (const key of Object.keys(config)) {
|
|
7
|
-
if (typeof config[key] === 'object' && config[key] !== null) {
|
|
8
|
-
addRelativeUris(config[key], base);
|
|
9
|
-
}
|
|
10
|
-
else if (key === 'uri') {
|
|
11
|
-
config.baseUri = base.href;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const JB2TrackHubConnection: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
configJsonLocation: {
|
|
3
|
-
type: string;
|
|
4
|
-
defaultValue: {
|
|
5
|
-
uri: string;
|
|
6
|
-
locationType: string;
|
|
7
|
-
};
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
assemblyNames: {
|
|
11
|
-
type: string;
|
|
12
|
-
defaultValue: never[];
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
16
|
-
name: {
|
|
17
|
-
type: string;
|
|
18
|
-
defaultValue: string;
|
|
19
|
-
description: string;
|
|
20
|
-
};
|
|
21
|
-
assemblyNames: {
|
|
22
|
-
type: string;
|
|
23
|
-
defaultValue: never[];
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
|
|
27
|
-
export default JB2TrackHubConnection;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
|
-
function x() { }
|
|
6
|
-
const JB2TrackHubConnection = (0, configuration_1.ConfigurationSchema)('JB2TrackHubConnection', {
|
|
7
|
-
configJsonLocation: {
|
|
8
|
-
type: 'fileLocation',
|
|
9
|
-
defaultValue: {
|
|
10
|
-
uri: 'http://mysite.com/path/to/config.json',
|
|
11
|
-
locationType: 'UriLocation',
|
|
12
|
-
},
|
|
13
|
-
description: 'location of the jb2 config file (usually called config.json)',
|
|
14
|
-
},
|
|
15
|
-
assemblyNames: {
|
|
16
|
-
type: 'stringArray',
|
|
17
|
-
defaultValue: [],
|
|
18
|
-
description: 'optional list of genomes to import from this config.json, if empty all genomes will be imported',
|
|
19
|
-
},
|
|
20
|
-
}, {
|
|
21
|
-
baseConfiguration: models_1.baseConnectionConfig,
|
|
22
|
-
preProcessSnapshot: snap => {
|
|
23
|
-
return snap.uri
|
|
24
|
-
? {
|
|
25
|
-
...snap,
|
|
26
|
-
configJsonLocation: {
|
|
27
|
-
uri: snap.uri,
|
|
28
|
-
baseUri: snap.baseUri,
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
: snap;
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
exports.default = JB2TrackHubConnection;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doConnect = doConnect;
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
const io_1 = require("@jbrowse/core/util/io");
|
|
7
|
-
const addRelativeUris_1 = require("./addRelativeUris");
|
|
8
|
-
const util_2 = require("./util");
|
|
9
|
-
async function doConnect(self) {
|
|
10
|
-
var _a;
|
|
11
|
-
const session = (0, util_1.getSession)(self);
|
|
12
|
-
try {
|
|
13
|
-
const configJsonLocation = (0, configuration_1.getConf)(self, 'configJsonLocation');
|
|
14
|
-
const configJson = JSON.parse(await (0, io_1.openLocation)(configJsonLocation).readFile('utf8'));
|
|
15
|
-
const configUri = (0, util_2.resolve)(configJsonLocation.uri, configJsonLocation.baseUri);
|
|
16
|
-
(0, addRelativeUris_1.addRelativeUris)(configJson, new URL(configUri));
|
|
17
|
-
if (configJson.assemblies) {
|
|
18
|
-
for (const assembly of configJson.assemblies) {
|
|
19
|
-
if (!session.assemblyManager.get(assembly.name)) {
|
|
20
|
-
session.addSessionAssembly(assembly);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (configJson.tracks) {
|
|
25
|
-
self.addTrackConfs(configJson.tracks);
|
|
26
|
-
}
|
|
27
|
-
session.notify('Successfully loaded', 'success');
|
|
28
|
-
}
|
|
29
|
-
catch (e) {
|
|
30
|
-
console.error(e);
|
|
31
|
-
session.notifyError(`${(0, configuration_1.getConf)(self, 'name')}: "${e}"`, e);
|
|
32
|
-
(_a = session.breakConnection) === null || _a === void 0 ? void 0 : _a.call(session, self.configuration);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,21 +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 = JB2TrackHubConnectionF;
|
|
7
|
-
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
8
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
9
|
-
const model_1 = __importDefault(require("./model"));
|
|
10
|
-
function JB2TrackHubConnectionF(pluginManager) {
|
|
11
|
-
pluginManager.addConnectionType(() => {
|
|
12
|
-
return new pluggableElementTypes_1.ConnectionType({
|
|
13
|
-
name: 'JB2TrackHubConnection',
|
|
14
|
-
configSchema: configSchema_1.default,
|
|
15
|
-
stateModel: (0, model_1.default)(pluginManager),
|
|
16
|
-
displayName: 'JB2 Track Hub',
|
|
17
|
-
description: 'A JBrowse 2 config file based trackhub',
|
|
18
|
-
url: 'https://jbrowse.org/jb2/',
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function JB2TrackHubConnection(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
3
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
4
|
-
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
5
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
-
name: {
|
|
7
|
-
type: string;
|
|
8
|
-
defaultValue: string;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
assemblyNames: {
|
|
12
|
-
type: string;
|
|
13
|
-
defaultValue: never[];
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
17
|
-
} & {
|
|
18
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
19
|
-
configJsonLocation: {
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: {
|
|
22
|
-
uri: string;
|
|
23
|
-
locationType: string;
|
|
24
|
-
};
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
assemblyNames: {
|
|
28
|
-
type: string;
|
|
29
|
-
defaultValue: never[];
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
33
|
-
name: {
|
|
34
|
-
type: string;
|
|
35
|
-
defaultValue: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
assemblyNames: {
|
|
39
|
-
type: string;
|
|
40
|
-
defaultValue: never[];
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
|
|
44
|
-
type: import("mobx-state-tree").ISimpleType<"JB2TrackHubConnection">;
|
|
45
|
-
}, {
|
|
46
|
-
connect(_arg: import("@jbrowse/core/configuration").AnyConfigurationModel): void;
|
|
47
|
-
} & {
|
|
48
|
-
afterAttach(): void;
|
|
49
|
-
addTrackConf(trackConf: ({
|
|
50
|
-
[x: string]: any;
|
|
51
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
52
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
55
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
56
|
-
[x: string]: any;
|
|
57
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
58
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
59
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>): any;
|
|
60
|
-
addTrackConfs(trackConfs: (({
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
64
|
-
[x: string]: any;
|
|
65
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
66
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
67
|
-
[x: string]: any;
|
|
68
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
69
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
70
|
-
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | Record<string, unknown>)[]): void;
|
|
71
|
-
setTrackConfs(trackConfs: import("@jbrowse/core/configuration").AnyConfigurationModel[]): void;
|
|
72
|
-
clear(): void;
|
|
73
|
-
} & {
|
|
74
|
-
connect(): Promise<void>;
|
|
75
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|