@rcsb/rcsb-saguaro-app 3.3.0 → 4.0.0-groups.13

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/README.md +2 -2
  3. package/build/dist/RcsbChartWeb/RcsbChartTools/ChartTools.d.ts +32 -0
  4. package/build/dist/RcsbChartWeb/RcsbChartView/BarChartView.d.ts +9 -0
  5. package/build/dist/RcsbChartWeb/RcsbChartView/ChartViewInterface.d.ts +26 -0
  6. package/build/dist/RcsbChartWeb/RcsbChartView/HistogramChartView.d.ts +11 -0
  7. package/build/dist/RcsbChartWeb/RcsbChartView/PieChartView.d.ts +9 -0
  8. package/build/dist/RcsbChartWeb/RcsbChartView/RcsbChartLayout.d.ts +13 -0
  9. package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface.d.ts +5 -3
  10. package/build/dist/RcsbCollectTools/FeatureTools/ExternalTrackBuilderInterface.d.ts +4 -4
  11. package/build/dist/RcsbCollectTools/PropertyCollector/GroupPropertyCollector.d.ts +9 -0
  12. package/build/dist/RcsbCollectTools/SequenceCollector/SequenceCollectorHelper.d.ts +1 -1
  13. package/build/dist/RcsbCollectTools/SequenceCollector/SequenceCollectorInterface.d.ts +6 -2
  14. package/build/dist/RcsbCollectTools/Translators/GroupMemberCollector.d.ts +6 -0
  15. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvContextManager.d.ts +12 -0
  16. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.d.ts +3 -0
  17. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupBuilder.d.ts +6 -0
  18. package/build/dist/RcsbFvWeb/RcsbFvBuilder.d.ts +4 -2
  19. package/build/dist/RcsbFvWeb/RcsbFvGroup/GroupSequenceTabs.d.ts +20 -0
  20. package/build/dist/RcsbFvWeb/RcsbFvGroup/Logo.d.ts +15 -0
  21. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.d.ts +12 -0
  22. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.d.ts +12 -0
  23. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface.d.ts +7 -1
  24. package/build/dist/RcsbFvWeb/WebTools/RcsbTabs.d.ts +16 -0
  25. package/build/dist/RcsbFvWeb/WebTools/SelectButton.d.ts +4 -0
  26. package/build/dist/RcsbFvWeb/WebTools/WebToolsManager.d.ts +4 -0
  27. package/build/dist/RcsbGraphQL/RcsbClient.d.ts +8 -2
  28. package/build/dist/RcsbGraphQL/RcsbQueryAlignment.d.ts +11 -1
  29. package/build/dist/RcsbGraphQL/RcsbQueryAnnotations.d.ts +5 -1
  30. package/build/dist/RcsbGraphQL/RcsbQueryGroup.d.ts +7 -0
  31. package/build/dist/RcsbGroupWeb/RcsbGroupBuilder.d.ts +7 -0
  32. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupDisplay.d.ts +9 -0
  33. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupHeader.d.ts +9 -0
  34. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.d.ts +30 -0
  35. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers.d.ts +28 -0
  36. package/build/dist/RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore.d.ts +15 -0
  37. package/build/dist/RcsbSeacrh/FacetStore/EntityGroupFacetStore.d.ts +15 -0
  38. package/build/dist/RcsbSeacrh/FacetStore/EntryGroupFacetStore.d.ts +15 -0
  39. package/build/dist/RcsbSeacrh/FacetStore/FacetMemberInterface.d.ts +11 -0
  40. package/build/dist/RcsbSeacrh/FacetStore/FacetStoreInterface.d.ts +8 -0
  41. package/build/dist/RcsbSeacrh/FacetTools.d.ts +20 -0
  42. package/build/dist/RcsbSeacrh/QueryStore/SearchGroupQuery.d.ts +13 -0
  43. package/build/dist/RcsbSeacrh/SearchRequestProperty.d.ts +11 -0
  44. package/build/dist/app.d.ts +8 -1
  45. package/build/dist/app.js +19 -14
  46. package/build/dist/app.js.map +1 -1
  47. package/build/dist/plot.d.ts +1 -0
  48. package/build/dist/plot.js +95 -0
  49. package/build/dist/plot.js.map +1 -0
  50. package/build/dist/worker.js +1 -1
  51. package/build/dist/worker.js.map +1 -1
  52. package/package.json +12 -8
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
3
+ import { GroupGranularityType } from "../../RcsbSeacrh/QueryStore/SearchGroupQuery";
4
+ export declare class RcsbGroupMembers extends React.Component<{
5
+ groupGranularity: GroupGranularityType;
6
+ groupId: string;
7
+ searchQuery?: SearchQuery;
8
+ nMembers: number;
9
+ }, {
10
+ start: number;
11
+ rows: number;
12
+ selectedIndex: number;
13
+ }> {
14
+ readonly state: {
15
+ start: number;
16
+ rows: number;
17
+ selectedIndex: number;
18
+ };
19
+ readonly groupMembersDiv: string;
20
+ constructor(props: {
21
+ groupGranularity: GroupGranularityType;
22
+ groupId: string;
23
+ searchQuery?: SearchQuery;
24
+ nMembers: number;
25
+ });
26
+ render(): JSX.Element;
27
+ private select;
28
+ }
@@ -0,0 +1,15 @@
1
+ import { ReturnType, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
2
+ import { FacetMemberInterface } from "./FacetMemberInterface";
3
+ import { FacetStoreInterface } from "./FacetStoreInterface";
4
+ declare class EntityGranularitySearchFacetStore implements FacetStoreInterface {
5
+ private readonly entryFacet;
6
+ private readonly instanceFacet;
7
+ private readonly entityFacet;
8
+ private readonly nonPolymerFacet;
9
+ getServices(): Service[];
10
+ getFacetService(service: Service | "all"): FacetMemberInterface[];
11
+ readonly facetLayoutGrid: [string, string?][];
12
+ readonly returnType: ReturnType;
13
+ }
14
+ export declare const entityGranularityGroupFacetStore: EntityGranularitySearchFacetStore;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ReturnType, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
2
+ import { FacetMemberInterface } from "./FacetMemberInterface";
3
+ import { FacetStoreInterface } from "./FacetStoreInterface";
4
+ declare class EntityGroupFacetStore implements FacetStoreInterface {
5
+ private readonly entryFacet;
6
+ private readonly instanceFacet;
7
+ private readonly entityFacet;
8
+ private readonly nonPolymerFacet;
9
+ getServices(): Service[];
10
+ getFacetService(service: Service | "all"): FacetMemberInterface[];
11
+ readonly facetLayoutGrid: [string, string?][];
12
+ readonly returnType: ReturnType;
13
+ }
14
+ export declare const entityGroupFacetStore: EntityGroupFacetStore;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ReturnType, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
2
+ import { FacetMemberInterface } from "./FacetMemberInterface";
3
+ import { FacetStoreInterface } from "./FacetStoreInterface";
4
+ declare class EntryGroupFacetStore implements FacetStoreInterface {
5
+ private readonly entryFacet;
6
+ private readonly instanceFacet;
7
+ private readonly entityFacet;
8
+ private readonly nonPolymerFacet;
9
+ getServices(): Service[];
10
+ getFacetService(service: Service | "all"): FacetMemberInterface[];
11
+ readonly facetLayoutGrid: [string, string?][];
12
+ readonly returnType: ReturnType;
13
+ }
14
+ export declare const entryGroupFacetStore: EntryGroupFacetStore;
15
+ export {};
@@ -0,0 +1,11 @@
1
+ import { CardinalityFacet, DateHistogramFacet, DateRangeFacet, FilterFacet, HistogramFacet, RangeFacet, TermsFacet } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
2
+ import { ChartConfigInterface, ChartType } from "../../RcsbChartWeb/RcsbChartView/ChartViewInterface";
3
+ export declare type FacetType = TermsFacet | HistogramFacet | DateHistogramFacet | RangeFacet | DateRangeFacet | CardinalityFacet | FilterFacet;
4
+ export interface FacetMemberInterface {
5
+ id: string;
6
+ title: string;
7
+ attribute: string;
8
+ chartType: ChartType;
9
+ chartConfig?: ChartConfigInterface;
10
+ facet: FacetType;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { FacetMemberInterface } from "./FacetMemberInterface";
2
+ import { ReturnType, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
3
+ export interface FacetStoreInterface {
4
+ getServices(): Service[];
5
+ getFacetService(service: Service | "all"): FacetMemberInterface[];
6
+ readonly facetLayoutGrid: [string, string?][];
7
+ readonly returnType: ReturnType;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { Facet } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchResultInterface";
2
+ import { ChartConfigInterface, ChartType } from "../RcsbChartWeb/RcsbChartView/ChartViewInterface";
3
+ import { FacetMemberInterface } from "./FacetStore/FacetMemberInterface";
4
+ export interface RcsbChartDataInterface {
5
+ label: string | number;
6
+ population: number;
7
+ }
8
+ export interface RcsbChartInterface {
9
+ chartType: ChartType;
10
+ labelList?: string[];
11
+ attribute: string;
12
+ chartConfig?: ChartConfigInterface;
13
+ title: string;
14
+ data: RcsbChartDataInterface[];
15
+ }
16
+ export declare class FacetTools {
17
+ static getResultDrilldowns(facetMembers: FacetMemberInterface[], facets: Array<Facet>, labelList?: string[], recursiveOut?: Array<RcsbChartInterface>): Array<RcsbChartInterface>;
18
+ static subtractDrilldowns(partial: Array<RcsbChartInterface>, full: Array<RcsbChartInterface>): Array<RcsbChartInterface>;
19
+ private static getFacetChartTypeByAttribute;
20
+ }
@@ -0,0 +1,13 @@
1
+ import { SearchQueryType } from "../SearchRequestProperty";
2
+ import { Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
3
+ import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
4
+ import { GroupReference } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
5
+ import { FacetStoreInterface } from "../FacetStore/FacetStoreInterface";
6
+ export declare function searchGroupQuery(groupGranularity: GroupGranularityType, groupId: string, service?: Service): SearchQueryType;
7
+ export declare function addGroupNodeToSearchQuery(groupGranularityType: GroupGranularityType, groupId: string, searchQuery: SearchQuery, service?: Service): SearchQueryType;
8
+ declare enum ExtendedGroupReference {
9
+ MatchingDepositionGroupId = "matching_deposit_group_id"
10
+ }
11
+ export declare type GroupGranularityType = GroupReference | ExtendedGroupReference;
12
+ export declare function getFacetStoreFromGroupType(groupGranularity: GroupGranularityType): FacetStoreInterface;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ import { QueryResult } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchResultInterface";
2
+ import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
3
+ import { GroupNode, SearchQuery, TerminalNode } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
4
+ import { FacetType } from "./FacetStore/FacetMemberInterface";
5
+ export declare type SearchQueryType = GroupNode | TerminalNode;
6
+ export declare class SearchRequestProperty {
7
+ private searchRequest;
8
+ private _request;
9
+ request(query: SearchQueryType, facets: FacetType[], returnType: ReturnType): Promise<QueryResult | null>;
10
+ requestMembers(query: SearchQuery): Promise<Array<string>>;
11
+ }
@@ -1 +1,8 @@
1
- export { buildEntryChromosome, buildFullChromosome, buildEntityChromosome, buildChromosome, buildEntityFv, buildEntitySummaryFv, buildSingleEntitySummaryFv, buildInstanceFv, buildInstanceSequenceFv, buildMultipleInstanceSequenceFv, buildAssemblySequenceFv, buildPairwiseAlignment, buildPfv, buildMultipleAlignmentSequenceFv, buildUniprotEntityFv, buildUniprotEntityInstanceFv, buildUniprotFv, unmount } from "./RcsbFvWeb/RcsbFvBuilder";
1
+ import { GroupedOptionsInterface, SelectOptionInterface } from "./RcsbFvWeb/WebTools/SelectButton";
2
+ export { buildEntryChromosome, buildFullChromosome, buildEntityChromosome, buildChromosome, buildEntityFv, buildEntitySummaryFv, buildSingleEntitySummaryFv, buildInstanceFv, buildInstanceSequenceFv, buildMultipleInstanceSequenceFv, buildAssemblySequenceFv, buildPairwiseAlignment, buildPfv, buildMultipleAlignmentSequenceFv, buildUniprotEntityFv, buildUniprotEntityInstanceFv, buildUniprotFv, buildGroupFv, unmount } from "./RcsbFvWeb/RcsbFvBuilder";
3
+ import { SelectButtonConfigInterface } from "./RcsbFvWeb/WebTools/WebToolsManager";
4
+ export declare class RcsbFvUI {
5
+ static clearSelectButton(elementFvId: string, selectButtonId: string): void;
6
+ static createSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
7
+ static addSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
8
+ }