@rcsb/rcsb-saguaro-app 4.4.0-models.3 → 4.4.0-models.6

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.
@@ -1,6 +1,7 @@
1
- import { Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
- import { RcsbFvDisplayTypes, RcsbFvTrackDataElementInterface } from '@rcsb/rcsb-saguaro';
1
+ import { AnnotationFeatures, Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
+ import { RcsbFvDisplayTypes } from '@rcsb/rcsb-saguaro';
3
3
  import { AnnotationConfigInterface, RcsbAnnotationConfigInterface } from "./AnnotationConfigInterface";
4
+ import { AnnotationRequestContext } from "../RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface";
4
5
  export interface RcsbMergedTypesInterface {
5
6
  merged_types: Array<string>;
6
7
  title: string;
@@ -10,28 +11,21 @@ export interface RcsbMergedTypesInterface {
10
11
  export declare class RcsbAnnotationConfig {
11
12
  private readonly annotationConfigMap;
12
13
  private readonly annotationMap;
13
- private readonly externalAnnotationsOrder;
14
- private readonly instanceAnnotationsOrder;
15
- private readonly entityAnnotationsOrder;
14
+ private readonly annotationTypes;
16
15
  private readonly mergedTypes;
17
- private readonly addedTypes;
18
16
  constructor(acm?: AnnotationConfigInterface);
19
17
  getConfig(type: string): RcsbAnnotationConfigInterface;
20
18
  allTypes(): Set<string>;
21
19
  uniprotOrder(): Array<string>;
22
20
  instanceOrder(): Array<string>;
23
21
  entityOrder(): Array<string>;
24
- buildAndAddType(d: Feature, trackTitle?: string, titleSuffix?: string, typeSuffix?: string): string;
25
- private addNewType;
26
- sortAndIncludeNewTypes(): void;
27
- private checkAndIncludeNewType;
28
- private cleanAddedTypes;
22
+ getAnnotationType(requestConfig: AnnotationRequestContext, ann: AnnotationFeatures, feature: Feature): Promise<string>;
29
23
  isMergedType(type: string): boolean;
30
24
  getMergeConfig(type: string): RcsbMergedTypesInterface;
31
- annotationMergedPreference(type: string, a: RcsbFvTrackDataElementInterface, b: RcsbFvTrackDataElementInterface): boolean;
25
+ private addNewType;
26
+ private checkAndIncludeNewType;
32
27
  static randomRgba(str?: string): string;
33
- addProvenance(type: string, provenanceName: string): void;
28
+ private addProvenance;
34
29
  addMultipleProvenance(type: string, provenanceList: Array<string>): void;
35
- getProvenanceList(type: string): Array<string>;
36
- isTransformedToNumerical(type: string): boolean;
30
+ private initTypes;
37
31
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { RcsbFv, RcsbFvBoardConfigInterface } from "@rcsb/rcsb-saguaro";
2
2
  declare class RcsbFvContextManager {
3
- private rcsbFvManager;
4
- private rcsbButtonManager;
3
+ private readonly rcsbFvManager;
4
+ private readonly rcsbButtonManager;
5
5
  getFv(elementFvId: string, boardConfig?: Partial<RcsbFvBoardConfigInterface>): RcsbFv;
6
6
  hasFv(elementFvId: string): boolean;
7
7
  private setFv;
@@ -17,6 +17,5 @@ export declare class AnnotationBlockManager implements BlockManagerInterface<[An
17
17
  private orderedTypes;
18
18
  private processAnnotations;
19
19
  private addFeature;
20
- private buildType;
21
20
  private mergeTracks;
22
21
  }
@@ -7,7 +7,7 @@ export interface TrackManagerFactoryInterface<T extends any[]> {
7
7
  }
8
8
  export interface TrackManagerInterface {
9
9
  getId(): string;
10
- getConfig(): RcsbAnnotationConfigInterface;
10
+ getConfig(): RcsbAnnotationConfigInterface | undefined;
11
11
  getRange(): {
12
12
  min: number;
13
13
  max: number;
@@ -9,9 +9,10 @@ export interface SelectButtonConfigInterface {
9
9
  isAdditionalButton?: boolean;
10
10
  }
11
11
  export declare class WebToolsManager {
12
- private static suffix;
13
- private static suffixAdditionalButton;
14
- private static loaderSpinner;
12
+ private static readonly suffix;
13
+ private static readonly suffixAdditionalButton;
14
+ private static readonly loaderSpinner;
15
+ private static readonly nodeMap;
15
16
  static buildSelectButton(elementId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
16
17
  static addSelectButton(elementId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
17
18
  private static innerBuildSelectButton;
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { ReactNode } from "react";
2
3
  export declare type SlideAction = "next" | "prev";
3
4
  export interface SliderInterface {
4
5
  slide(action: SlideAction): void;
5
6
  pages: number;
6
7
  currentPage: number;
8
+ children: ReactNode;
7
9
  }
8
10
  export declare class Slider extends React.Component<SliderInterface, null> {
9
11
  render(): JSX.Element;
@@ -11,6 +11,7 @@ import { SearchQueryType } from "../RcsbSeacrh/SearchRequestProperty";
11
11
  import { FacetType } from "../RcsbSeacrh/FacetStore/FacetMemberInterface";
12
12
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
13
13
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
14
+ import { RequestInit as GraphqlRequestInit } from "graphql-request/src/types.dom";
14
15
  declare class RcsbRequestContextManager {
15
16
  private readonly polymerEntityToInstanceMap;
16
17
  private readonly entryToAssemblyMap;
@@ -40,11 +41,11 @@ declare class RcsbRequestContextManager {
40
41
  private getAssemblyInterfaces;
41
42
  initializeBorregoClient(config: {
42
43
  api?: string;
43
- requestConfig?: RequestInit;
44
+ requestConfig?: GraphqlRequestInit;
44
45
  }): void;
45
46
  initializeYosemiteClient(config: {
46
47
  api?: string;
47
- requestConfig?: RequestInit;
48
+ requestConfig?: GraphqlRequestInit;
48
49
  }): void;
49
50
  initializeArchesClient(config: {
50
51
  uri?: string;
@@ -5,6 +5,8 @@ export declare class TagDelimiter {
5
5
  static readonly alignmentTitle: string;
6
6
  static readonly operatorComposition: string;
7
7
  static readonly assembly: string;
8
+ private static rcsbEntityRegExp;
9
+ private static rcsbInstanceRegExp;
8
10
  static parseEntity(rcsbId: string): {
9
11
  entryId: string;
10
12
  entityId: string;
@@ -13,4 +15,5 @@ export declare class TagDelimiter {
13
15
  instanceId: string;
14
16
  entryId: string;
15
17
  };
18
+ static isEntityOrInstanceId(rcsb: string): boolean;
16
19
  }