@rcsb/rcsb-saguaro-app 6.2.2 → 6.2.3

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 (112) hide show
  1. package/build/app.js +1 -1
  2. package/build/constants.js +1 -1
  3. package/build/plot.js +1 -1
  4. package/build/plot.js.LICENSE.txt +2 -2
  5. package/build/worker.js +1 -1
  6. package/lib/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  7. package/lib/RcsbChartWeb/HistogramChartComponent.d.ts +1 -0
  8. package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  9. package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  10. package/lib/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  11. package/lib/RcsbFvExamples/ExternalDataProvider.js +1 -1
  12. package/lib/RcsbFvUI/Components/FilterItemComponent.d.ts +1 -0
  13. package/lib/RcsbFvUI/Components/PaginationItemComponent.d.ts +1 -0
  14. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  15. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  16. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -0
  17. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  18. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  19. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  20. package/lib/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +1 -0
  21. package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +1 -1
  22. package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -2
  23. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  24. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  25. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  26. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  27. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  28. package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  29. package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +3 -3
  30. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  31. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  32. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  33. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  34. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  35. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  36. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  37. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +2 -2
  38. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  39. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  40. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  41. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  42. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  43. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  44. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  45. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
  46. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  47. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  48. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +1 -0
  49. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  50. package/lib/RcsbRequest/RcsbRequestContextManager.js +1 -1
  51. package/lib/RcsbSeacrh/FacetTools.d.ts +15 -15
  52. package/lib/RcsbSeacrh/SearchRequestProperty.js +2 -2
  53. package/lib/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +3 -3
  54. package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +4 -4
  55. package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  56. package/lib/commonjs/RcsbChartWeb/HistogramChartComponent.d.ts +1 -0
  57. package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  58. package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  59. package/lib/commonjs/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  60. package/lib/commonjs/RcsbFvExamples/ExternalDataProvider.js +1 -1
  61. package/lib/commonjs/RcsbFvExamples/utils/events.js +3 -2
  62. package/lib/commonjs/RcsbFvUI/Components/FilterItemComponent.d.ts +1 -0
  63. package/lib/commonjs/RcsbFvUI/Components/PaginationItemComponent.d.ts +1 -0
  64. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  65. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  66. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -0
  67. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  68. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  69. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  70. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +23 -22
  71. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +1 -0
  72. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +1 -1
  73. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -2
  74. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  75. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  76. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  77. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  78. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  79. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  80. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +5 -5
  81. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  82. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  83. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  84. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  85. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  86. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  87. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  88. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +5 -5
  89. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  90. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  91. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  92. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  93. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  94. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  95. package/lib/commonjs/RcsbGroupWeb/RcsbGroupBuilder.js +6 -6
  96. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  97. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
  98. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  99. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.js +2 -2
  100. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  101. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +2 -2
  102. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +1 -0
  103. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  104. package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.js +1 -1
  105. package/lib/commonjs/RcsbSeacrh/FacetTools.d.ts +15 -15
  106. package/lib/commonjs/RcsbSeacrh/SearchRequestProperty.js +2 -2
  107. package/lib/commonjs/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +5 -4
  108. package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.js +3 -2
  109. package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.js +3 -2
  110. package/lib/commonjs/RcsbUtils/TrackGenerators/GroupExternalTrackBuilder.js +2 -1
  111. package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +6 -6
  112. package/package.json +1 -1
@@ -42,8 +42,8 @@ export var ResidueChartTools;
42
42
  });
43
43
  }
44
44
  function getInstanceCharts(instanceId) {
45
+ var _a, _b;
45
46
  return __awaiter(this, void 0, void 0, function* () {
46
- var _a, _b;
47
47
  const alignmentRequestContext = {
48
48
  queryId: instanceId,
49
49
  from: SequenceReference.PdbInstance,
@@ -107,8 +107,8 @@ class RcsbRequestContextManager {
107
107
  });
108
108
  }
109
109
  getInterfaceToInstance(interfaceId) {
110
+ var _a, _b;
110
111
  return __awaiter(this, void 0, void 0, function* () {
111
- var _a, _b;
112
112
  const key = interfaceId;
113
113
  const assemblyId = interfaceId.split(TagDelimiter.instance)[0];
114
114
  if (this.interfaceToInstanceMap.get(key)) {
@@ -21,32 +21,32 @@ export declare class FacetTools {
21
21
  static addChartDisplayConfig(chart: RcsbChartInterface, chartDisplayConfig: Partial<ChartDisplayConfigInterface>): {
22
22
  chartConfig: {
23
23
  chartDisplayConfig: Partial<ChartDisplayConfigInterface>;
24
- mostPopulatedGroups?: number;
25
- domainMinValue?: number;
26
- domainMaxValue?: number;
27
- domainEmptyBins?: boolean;
28
- histogramBinIncrement?: number;
24
+ mostPopulatedGroups?: number | undefined;
25
+ domainMinValue?: number | undefined;
26
+ domainMaxValue?: number | undefined;
27
+ domainEmptyBins?: boolean | undefined;
28
+ histogramBinIncrement?: number | undefined;
29
29
  tickIncrement?: {
30
30
  origin: number;
31
31
  increment: number;
32
- };
32
+ } | undefined;
33
33
  tickFormat?: {
34
- domAxis?: (x: string | number) => string;
35
- imgAxis?: (x: string | number) => string;
36
- };
37
- axisLabel?: string;
38
- barClickCallback?: import("@rcsb/rcsb-charts/lib/RcsbChartComponent/ChartConfigInterface").BarClickCallbackType;
39
- sort?: (b: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface, a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface) => number;
40
- tooltipText?: (a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataValueInterface) => string | string[] | undefined;
34
+ domAxis?: ((x: string | number) => string) | undefined;
35
+ imgAxis?: ((x: string | number) => string) | undefined;
36
+ } | undefined;
37
+ axisLabel?: string | undefined;
38
+ barClickCallback?: import("@rcsb/rcsb-charts/lib/RcsbChartComponent/ChartConfigInterface").BarClickCallbackType | undefined;
39
+ sort?: ((b: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface<any>, a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface<any>) => number) | undefined;
40
+ tooltipText?: ((a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataValueInterface<any>) => string | string[] | undefined) | undefined;
41
41
  };
42
42
  data: ChartObjectInterface<any>[];
43
- filters?: SearchFilter[];
43
+ filters?: SearchFilter[] | undefined;
44
44
  title?: string | undefined;
45
45
  attribute: RcsbSearchAttributeType;
46
46
  attributeName: string;
47
47
  chartType: import("@rcsb/rcsb-charts/lib/RcsbChartComponent/ChartConfigInterface").ChartType;
48
48
  facetConfig?: import("./FacetStore/FacetMemberInterface").FacetConfigInterface | undefined;
49
- contentType: "date" | "number" | "string";
49
+ contentType: "string" | "number" | "date";
50
50
  };
51
51
  private static includeMissingFacets;
52
52
  private static getFacetChartTypeFromAttribute;
@@ -35,8 +35,8 @@ class SearchRequestProperty {
35
35
  }
36
36
  //TODO this should be part of `SearchQueryTools`
37
37
  requestMembers(query) {
38
+ var _a, _b, _c;
38
39
  return __awaiter(this, void 0, void 0, function* () {
39
- var _a, _b, _c;
40
40
  return (_c = (_b = (_a = (yield this.getClient().request({
41
41
  query: query.query,
42
42
  request_options: {
@@ -49,8 +49,8 @@ class SearchRequestProperty {
49
49
  }
50
50
  //TODO this should be part of `SearchQueryTools`
51
51
  requestCount(query) {
52
+ var _a, _b;
52
53
  return __awaiter(this, void 0, void 0, function* () {
53
- var _a, _b;
54
54
  return (_b = (_a = (yield this.getClient().request({
55
55
  query: query.query,
56
56
  request_options: {
@@ -10,8 +10,8 @@ export function alignmentGlobalLigandBindingSite() {
10
10
  const groupTrackBuilder = groupExternalTrackBuilder();
11
11
  return {
12
12
  addTo(tracks) {
13
+ var _a;
13
14
  return __awaiter(this, void 0, void 0, function* () {
14
- var _a;
15
15
  if (Array.from(bindingSiteMap.values()).length > 0)
16
16
  tracks.annotationTracks.unshift({
17
17
  trackId: "annotationTrack_GLOBAL_BINDINGS",
@@ -30,15 +30,15 @@ export function alignmentGlobalLigandBindingSite() {
30
30
  });
31
31
  },
32
32
  processAlignmentAndFeatures(data) {
33
+ var _a;
33
34
  return __awaiter(this, void 0, void 0, function* () {
34
- var _a;
35
35
  yield ((_a = groupTrackBuilder.processAlignmentAndFeatures) === null || _a === void 0 ? void 0 : _a.call(groupTrackBuilder, data));
36
36
  processFeatures(data.annotations);
37
37
  });
38
38
  },
39
39
  filterFeatures(data) {
40
+ var _a, _b;
40
41
  return __awaiter(this, void 0, void 0, function* () {
41
- var _a, _b;
42
42
  const annotations = (_b = yield ((_a = groupTrackBuilder.filterFeatures) === null || _a === void 0 ? void 0 : _a.call(groupTrackBuilder, data))) !== null && _b !== void 0 ? _b : [];
43
43
  annotations.forEach(ann => {
44
44
  var _a;
@@ -12,10 +12,10 @@ export function addUnmodeledTrackBuilder(unmodeledTrackBuilder, externalTrackBui
12
12
  ];
13
13
  });
14
14
  return Object.assign(Object.assign({}, externalTrackBuilder), { filterFeatures: (data) => __awaiter(this, void 0, void 0, function* () {
15
- var _a, _b, _c;
16
- (_a = externalTrackBuilder === null || externalTrackBuilder === void 0 ? void 0 : externalTrackBuilder.filterFeatures) === null || _a === void 0 ? void 0 : _a.call(externalTrackBuilder, data);
15
+ var _c, _d, _e;
16
+ (_c = externalTrackBuilder === null || externalTrackBuilder === void 0 ? void 0 : externalTrackBuilder.filterFeatures) === null || _c === void 0 ? void 0 : _c.call(externalTrackBuilder, data);
17
17
  return trackBuilder({
18
- annotations: (_c = yield ((_b = externalTrackBuilder === null || externalTrackBuilder === void 0 ? void 0 : externalTrackBuilder.filterFeatures) === null || _b === void 0 ? void 0 : _b.call(externalTrackBuilder, data))) !== null && _c !== void 0 ? _c : data.annotations,
18
+ annotations: (_e = yield ((_d = externalTrackBuilder === null || externalTrackBuilder === void 0 ? void 0 : externalTrackBuilder.filterFeatures) === null || _d === void 0 ? void 0 : _d.call(externalTrackBuilder, data))) !== null && _e !== void 0 ? _e : data.annotations,
19
19
  rcsbContext: data.rcsbContext
20
20
  });
21
21
  }) });
@@ -38,8 +38,8 @@ export class UnmodeledTrackBuilder {
38
38
  return new UnobservedToolTip(this.unmodeledDescription);
39
39
  }
40
40
  buildUnobserved(annotations, rcsbContext) {
41
+ var _a;
41
42
  return __awaiter(this, void 0, void 0, function* () {
42
- var _a;
43
43
  const nInstances = (yield rcsbRequestCtxManager.getEntityProperties((_a = rcsbContext.entityId) !== null && _a !== void 0 ? _a : "none"))[0].instances.length;
44
44
  const featurePositions = Array.from(annotations.filter(ann => {
45
45
  var _a, _b, _c;
@@ -43,8 +43,8 @@ class RcsbAnnotationConfig {
43
43
  }
44
44
  //TODO refactor how title and type are defined. Can this be split in two different methods ?
45
45
  getAnnotationType(requestConfig, ann, feature) {
46
+ var _a, _b, _c;
46
47
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
- var _a, _b, _c;
48
48
  const trackTitle = typeof requestConfig.trackTitle === "function" ? (yield requestConfig.trackTitle(ann, feature)) : undefined;
49
49
  const titleSuffix = typeof requestConfig.titleSuffix === "function" ? (yield requestConfig.titleSuffix(ann, feature)) : undefined;
50
50
  const typeSuffix = typeof requestConfig.typeSuffix === "function" ? (yield requestConfig.typeSuffix(ann, feature)) : undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AbstractChartComponent } from "./AbsractChartComponent";
2
3
  export declare class HistogramChartComponent extends AbstractChartComponent {
3
4
  render(): JSX.Element;
@@ -16,8 +16,8 @@ class AlignmentCollector {
16
16
  this.alignmentLengthSubject = new rxjs_1.Subject();
17
17
  }
18
18
  collect(requestConfig, filter) {
19
+ var _a, _b, _c, _d, _e, _f;
19
20
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
- var _a, _b, _c, _d, _e, _f;
21
21
  this.requestStatus = "pending";
22
22
  this.alignmentResponse = yield this.requestAlignment(requestConfig);
23
23
  const targetAlignment = (_b = (_a = this.alignmentResponse) === null || _a === void 0 ? void 0 : _a.target_alignment) !== null && _b !== void 0 ? _b : (_e = (_d = (_c = this.alignmentResponse) === null || _c === void 0 ? void 0 : _c.target_alignment_subset) === null || _d === void 0 ? void 0 : _d.edges) === null || _e === void 0 ? void 0 : _e.map(e => e === null || e === void 0 ? void 0 : e.node);
@@ -13,8 +13,8 @@ class AnnotationCollector {
13
13
  this.annotationFeaturesSubject = new rxjs_1.Subject();
14
14
  }
15
15
  collect(requestConfig) {
16
+ var _a;
16
17
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
- var _a;
18
18
  this.requestStatus = "pending";
19
19
  this.annotationFeatures = yield this.requestAnnotations(requestConfig);
20
20
  if (typeof (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.annotationGenerator) === "function") {
@@ -47,15 +47,15 @@ class FeatureTools {
47
47
  static mergeTrackBuilders(builderA, builderB) {
48
48
  return {
49
49
  addTo(tracks) {
50
+ var _a, _b;
50
51
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
51
- var _a, _b;
52
52
  yield ((_a = builderA.addTo) === null || _a === void 0 ? void 0 : _a.call(builderA, tracks));
53
53
  yield ((_b = builderB === null || builderB === void 0 ? void 0 : builderB.addTo) === null || _b === void 0 ? void 0 : _b.call(builderB, tracks));
54
54
  });
55
55
  },
56
56
  processAlignmentAndFeatures(data) {
57
+ var _a, _b;
57
58
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
- var _a, _b;
59
59
  yield ((_a = builderA.processAlignmentAndFeatures) === null || _a === void 0 ? void 0 : _a.call(builderA, data));
60
60
  yield ((_b = builderB === null || builderB === void 0 ? void 0 : builderB.processAlignmentAndFeatures) === null || _b === void 0 ? void 0 : _b.call(builderB, data));
61
61
  });
@@ -884,8 +884,8 @@ class RcsbStructuralAlignmentProvider {
884
884
  }
885
885
  }
886
886
  function alignmentTransform(alignment) {
887
+ var _a, _b;
887
888
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
888
- var _a, _b;
889
889
  const alignmentRef = mergeAlignments(alignment.results);
890
890
  const out = alignmentRef.buildAlignments();
891
891
  const instance_ids = (_a = out.target_alignment) === null || _a === void 0 ? void 0 : _a.map(ta => ta === null || ta === void 0 ? void 0 : ta.target_id);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getJsonFromUrl = getJsonFromUrl;
4
- exports.onLoad = onLoad;
3
+ exports.onLoad = exports.getJsonFromUrl = void 0;
5
4
  function getJsonFromUrl() {
6
5
  const url = location.search;
7
6
  var query = url.substring(1);
@@ -12,8 +11,10 @@ function getJsonFromUrl() {
12
11
  });
13
12
  return result;
14
13
  }
14
+ exports.getJsonFromUrl = getJsonFromUrl;
15
15
  function onLoad(f) {
16
16
  document.addEventListener("DOMContentLoaded", function (event) {
17
17
  f();
18
18
  });
19
19
  }
20
+ exports.onLoad = onLoad;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AbstractMenuItemComponent } from "../AbstractMenuItemComponent";
2
3
  interface FilterItemProps {
3
4
  elements: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AbstractMenuItemComponent } from "../AbstractMenuItemComponent";
2
3
  export interface PaginationItemState {
3
4
  after: number;
@@ -38,8 +38,8 @@ class RcsbFvCoreBuilder {
38
38
  * @description This method implements a centralized point where PFVs are created. All PFV should be created using this method directly or through <CreateFvInterface.getPolymerEntityInstanceMapAndBuildFv>. In any case PFV should be built using a custom implementation.
39
39
  * */
40
40
  static createFv(createFvI) {
41
+ var _a;
41
42
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
- var _a;
43
43
  const elementId = createFvI.elementId;
44
44
  const fvModuleI = createFvI.fvModuleI;
45
45
  const config = createFvI.config;
@@ -26,8 +26,8 @@ class RcsbFvGroupAlignmentBuilder {
26
26
  });
27
27
  }
28
28
  static buildGroupAlignmentFv(elementId, groupProvenance, groupId, query, additionalConfig) {
29
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
29
30
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
31
31
  let entityCount = -1;
32
32
  let filterEntities = undefined;
33
33
  if (query && query.query) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
2
3
  import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector";
3
4
  import { SelectOptionProps } from "../RcsbFvComponents/SelectButton";
@@ -9,8 +9,8 @@ const RcsbRequestContextManager_1 = require("../../RcsbRequest/RcsbRequestContex
9
9
  const TagDelimiter_1 = require("@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimiter");
10
10
  //TODO Find a better structure for change callbacks
11
11
  class RcsbFvInstanceBuilder {
12
- static buildMultipleInstanceSequenceFv(elementFvId_1, elementEntrySelectId_1, elementInstanceSelectId_1, entryIdList_1) {
13
- return tslib_1.__awaiter(this, arguments, void 0, function* (elementFvId, elementEntrySelectId, elementInstanceSelectId, entryIdList, config = {}, additionalConfig) {
12
+ static buildMultipleInstanceSequenceFv(elementFvId, elementEntrySelectId, elementInstanceSelectId, entryIdList, config = {}, additionalConfig) {
13
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
14
  RcsbFvCoreBuilder_1.RcsbFvCoreBuilder.buildSelectButton(elementFvId, elementEntrySelectId, entryIdList.map(entryId => {
15
15
  return {
16
16
  label: entryId,
@@ -38,8 +38,8 @@ class RcsbFvInstanceBuilder {
38
38
  });
39
39
  }
40
40
  static buildSelectorInstanceFv(instanceList, elementFvId, elementSelectId, entryId, config, additionalConfig) {
41
+ var _a;
41
42
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
- var _a;
43
43
  const filteredInstanceList = instanceList.filter(i => (config.filterInstances == null || config.filterInstances.has(i.asymId)));
44
44
  const groupedInstances = new Map();
45
45
  filteredInstanceList.forEach((instance) => {
@@ -7,8 +7,8 @@ const RcsbFvProteinSequence_1 = require("../RcsbFvModule/RcsbFvProteinSequence")
7
7
  const RcsbFvCoreBuilder_1 = require("./RcsbFvCoreBuilder");
8
8
  class RcsbFvProteinSequenceBuilder {
9
9
  static buildPfv(elementId, config) {
10
+ var _a;
10
11
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
- var _a;
12
12
  const alignmentSource = (_a = config.alignmentSource) !== null && _a !== void 0 ? _a : config.reference;
13
13
  const sources = [GqlTypes_1.Source.Uniprot];
14
14
  if (config.reference == GqlTypes_1.SequenceReference.PdbEntity)
@@ -12,8 +12,8 @@ const TagDelimiter_1 = require("@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimite
12
12
  const ALL = "ALL";
13
13
  //TODO Find a better structure for change callbacks
14
14
  class RcsbFvUniprotBuilder {
15
- static buildUniprotMultipleEntitySequenceFv(elementFvId_1, elementSelectId_1, upAcc_1) {
16
- return tslib_1.__awaiter(this, arguments, void 0, function* (elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
15
+ static buildUniprotMultipleEntitySequenceFv(elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
16
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
17
  return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
18
18
  let externalContext;
19
19
  if (typeof config.beforeChangeCallback === "function")
@@ -1,27 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unmount = unmount;
4
- exports.buildMultipleAlignmentSequenceFv = buildMultipleAlignmentSequenceFv;
5
- exports.buildEntitySummaryFv = buildEntitySummaryFv;
6
- exports.buildSingleEntitySummaryFv = buildSingleEntitySummaryFv;
7
- exports.buildInstanceSequenceFv = buildInstanceSequenceFv;
8
- exports.buildMultipleInstanceSequenceFv = buildMultipleInstanceSequenceFv;
9
- exports.buildAssemblySequenceFv = buildAssemblySequenceFv;
10
- exports.buildUniprotFv = buildUniprotFv;
11
- exports.buildEntityFv = buildEntityFv;
12
- exports.buildInstanceFv = buildInstanceFv;
13
- exports.buildUniprotEntityFv = buildUniprotEntityFv;
14
- exports.buildUniprotEntityInstanceFv = buildUniprotEntityInstanceFv;
15
- exports.buildPfv = buildPfv;
16
- exports.buildPairwiseAlignment = buildPairwiseAlignment;
17
- exports.buildFullChromosome = buildFullChromosome;
18
- exports.buildEntryChromosome = buildEntryChromosome;
19
- exports.buildEntityChromosome = buildEntityChromosome;
20
- exports.buildChromosome = buildChromosome;
21
- exports.buildGroupFv = buildGroupFv;
22
- exports.buildSequenceIdentityAlignmentFv = buildSequenceIdentityAlignmentFv;
23
- exports.buildUniprotAlignmentFv = buildUniprotAlignmentFv;
24
- exports.buildDataProviderFv = buildDataProviderFv;
3
+ exports.buildDataProviderFv = exports.buildUniprotAlignmentFv = exports.buildSequenceIdentityAlignmentFv = exports.buildGroupFv = exports.buildChromosome = exports.buildEntityChromosome = exports.buildEntryChromosome = exports.buildFullChromosome = exports.buildPairwiseAlignment = exports.buildPfv = exports.buildUniprotEntityInstanceFv = exports.buildUniprotEntityFv = exports.buildInstanceFv = exports.buildEntityFv = exports.buildUniprotFv = exports.buildAssemblySequenceFv = exports.buildMultipleInstanceSequenceFv = exports.buildInstanceSequenceFv = exports.buildSingleEntitySummaryFv = exports.buildEntitySummaryFv = exports.buildMultipleAlignmentSequenceFv = exports.unmount = void 0;
25
4
  const RcsbFvCoreBuilder_1 = require("./RcsbFvBuilder/RcsbFvCoreBuilder");
26
5
  const RcsbFvChromosomeBuilder_1 = require("./RcsbFvBuilder/RcsbFvChromosomeBuilder");
27
6
  const RcsbFvPairwiseAligmentBuilder_1 = require("./RcsbFvBuilder/RcsbFvPairwiseAligmentBuilder");
@@ -37,66 +16,88 @@ const RcsbFvDataProviderBuilder_1 = require("./RcsbFvBuilder/RcsbFvDataProviderB
37
16
  function unmount(elementId) {
38
17
  RcsbFvCoreBuilder_1.RcsbFvCoreBuilder.unmount(elementId);
39
18
  }
19
+ exports.unmount = unmount;
40
20
  function buildMultipleAlignmentSequenceFv(elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
41
21
  return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(elementFvId, elementSelectId, upAcc, config, additionalConfig);
42
22
  }
23
+ exports.buildMultipleAlignmentSequenceFv = buildMultipleAlignmentSequenceFv;
43
24
  function buildEntitySummaryFv(elementFvId, elementSelectId, entityId) {
44
25
  return RcsbFvEntityBuilder_1.RcsbFvEntityBuilder.buildEntitySummaryFv(elementFvId, elementSelectId, entityId);
45
26
  }
27
+ exports.buildEntitySummaryFv = buildEntitySummaryFv;
46
28
  function buildSingleEntitySummaryFv(elementId, entityId) {
47
29
  return RcsbFvEntityBuilder_1.RcsbFvEntityBuilder.buildSingleEntitySummaryFv(elementId, entityId);
48
30
  }
31
+ exports.buildSingleEntitySummaryFv = buildSingleEntitySummaryFv;
49
32
  function buildInstanceSequenceFv(elementFvId, elementSelectId, entryId, config = {}, additionalConfig) {
50
33
  return RcsbFvInstanceBuilder_1.RcsbFvInstanceBuilder.buildInstanceSequenceFv(elementFvId, elementSelectId, entryId, config, additionalConfig);
51
34
  }
35
+ exports.buildInstanceSequenceFv = buildInstanceSequenceFv;
52
36
  function buildMultipleInstanceSequenceFv(elementFvId, elementEntrySelectId, elementInstanceSelectId, entryIdList, config = {}, additionalConfig) {
53
37
  return RcsbFvInstanceBuilder_1.RcsbFvInstanceBuilder.buildMultipleInstanceSequenceFv(elementFvId, elementEntrySelectId, elementInstanceSelectId, entryIdList, config, additionalConfig);
54
38
  }
39
+ exports.buildMultipleInstanceSequenceFv = buildMultipleInstanceSequenceFv;
55
40
  function buildAssemblySequenceFv(elementFvId, elementSelectAssemblyId, elementSelectInstanceId, entryId, onAsseblyChangeCallback, onInstanceChangeCallback) {
56
41
  return RcsbFvAssemblyBuilder_1.RcsbFvAssemblyBuilder.buildAssemblySequenceFv(elementFvId, elementSelectAssemblyId, elementSelectInstanceId, entryId, onAsseblyChangeCallback, onInstanceChangeCallback);
57
42
  }
43
+ exports.buildAssemblySequenceFv = buildAssemblySequenceFv;
58
44
  function buildUniprotFv(elementId, upAcc, additionalConfig) {
59
45
  return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotFv(elementId, upAcc, additionalConfig);
60
46
  }
47
+ exports.buildUniprotFv = buildUniprotFv;
61
48
  function buildEntityFv(elementId, entityId, additionalConfig) {
62
49
  return RcsbFvEntityBuilder_1.RcsbFvEntityBuilder.buildEntityFv(elementId, entityId, additionalConfig);
63
50
  }
51
+ exports.buildEntityFv = buildEntityFv;
64
52
  function buildInstanceFv(elementId, instanceId, additionalConfig) {
65
53
  return RcsbFvInstanceBuilder_1.RcsbFvInstanceBuilder.buildInstanceFv(elementId, instanceId, additionalConfig);
66
54
  }
55
+ exports.buildInstanceFv = buildInstanceFv;
67
56
  function buildUniprotEntityFv(elementId, upAcc, entityId, additionalConfig) {
68
57
  return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotEntityFv(elementId, upAcc, entityId, additionalConfig);
69
58
  }
59
+ exports.buildUniprotEntityFv = buildUniprotEntityFv;
70
60
  function buildUniprotEntityInstanceFv(elementId, upAcc, entityId, instanceId, additionalConfig) {
71
61
  return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotEntityInstanceFv(elementId, upAcc, entityId, instanceId, additionalConfig);
72
62
  }
63
+ exports.buildUniprotEntityInstanceFv = buildUniprotEntityInstanceFv;
73
64
  function buildPfv(elementId, config) {
74
65
  return RcsbFvProteinSequenceBuilder_1.RcsbFvProteinSequenceBuilder.buildPfv(elementId, config);
75
66
  }
67
+ exports.buildPfv = buildPfv;
76
68
  function buildPairwiseAlignment(elementId, psa, additionalConfig) {
77
69
  return RcsbFvPairwiseAligmentBuilder_1.RcsbFvPairwiseAligmentBuilder.buildPairwiseAlignment(elementId, psa, additionalConfig);
78
70
  }
71
+ exports.buildPairwiseAlignment = buildPairwiseAlignment;
79
72
  function buildFullChromosome(elementFvId, chrId) {
80
73
  return RcsbFvChromosomeBuilder_1.RcsbFvChromosomeBuilder.buildFullChromosome(elementFvId, chrId);
81
74
  }
75
+ exports.buildFullChromosome = buildFullChromosome;
82
76
  function buildEntryChromosome(elementFvId, entitySelectId, chromosomeSelectId, entryId) {
83
77
  return RcsbFvChromosomeBuilder_1.RcsbFvChromosomeBuilder.buildEntryChromosome(elementFvId, entitySelectId, chromosomeSelectId, entryId);
84
78
  }
79
+ exports.buildEntryChromosome = buildEntryChromosome;
85
80
  function buildEntityChromosome(elementFvId, elementSelectId, entityId) {
86
81
  return RcsbFvChromosomeBuilder_1.RcsbFvChromosomeBuilder.buildEntityChromosome(elementFvId, elementSelectId, entityId);
87
82
  }
83
+ exports.buildEntityChromosome = buildEntityChromosome;
88
84
  function buildChromosome(elementFvId, entityId, chrId, elementSelectId) {
89
85
  return RcsbFvChromosomeBuilder_1.RcsbFvChromosomeBuilder.buildChromosome(elementFvId, chrId, elementSelectId);
90
86
  }
87
+ exports.buildChromosome = buildChromosome;
91
88
  function buildGroupFv(elementId, groupProvenanceId, groupId, query, additionalConfig) {
92
89
  RcsbFvGroupTabsBuilder_1.RcsbFvGroupTabsBuilder.buildGroupTabs(elementId, groupProvenanceId, groupId, query, additionalConfig);
93
90
  }
91
+ exports.buildGroupFv = buildGroupFv;
94
92
  function buildSequenceIdentityAlignmentFv(elementId, groupId, query, additionalConfig) {
95
93
  return RcsbFvGroupAlignmentBuilder_1.RcsbFvGroupAlignmentBuilder.buildGroupAlignmentFv(elementId, DwEnums_1.GroupProvenanceId.ProvenanceSequenceIdentity, groupId, query, additionalConfig);
96
94
  }
95
+ exports.buildSequenceIdentityAlignmentFv = buildSequenceIdentityAlignmentFv;
97
96
  function buildUniprotAlignmentFv(elementId, upAcc, query, additionalConfig) {
98
97
  return RcsbFvGroupAlignmentBuilder_1.RcsbFvGroupAlignmentBuilder.buildGroupAlignmentFv(elementId, DwEnums_1.GroupProvenanceId.ProvenanceMatchingUniprotAccession, upAcc, query, additionalConfig);
99
98
  }
99
+ exports.buildUniprotAlignmentFv = buildUniprotAlignmentFv;
100
100
  function buildDataProviderFv(elementId, dataProvider, additionalConfig) {
101
101
  return RcsbFvDataProviderBuilder_1.RcsbFvDataProviderBuilder.buildFv(elementId, Object.assign(Object.assign({}, additionalConfig), { dataProvider: Object.assign({}, dataProvider) }));
102
102
  }
103
+ exports.buildDataProviderFv = buildDataProviderFv;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupedOptionsInterface, SelectOptionInterface, SelectOptionProps } from "./SelectButton";
2
3
  export interface SelectButtonConfigInterface {
3
4
  addTitle?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  export declare class MountableComponent {
3
- private readonly element;
3
+ private static readonly ROOT;
4
4
  private root;
5
5
  constructor(element: HTMLElement);
6
6
  render(node: ReactNode): void;
@@ -4,8 +4,10 @@ exports.MountableComponent = void 0;
4
4
  const client_1 = require("react-dom/client");
5
5
  class MountableComponent {
6
6
  constructor(element) {
7
- this.element = element;
8
- this.root = (0, client_1.createRoot)(this.element);
7
+ var _a;
8
+ if (!MountableComponent.ROOT.has(element.id))
9
+ MountableComponent.ROOT.set(element.id, (0, client_1.createRoot)(element));
10
+ this.root = (_a = MountableComponent.ROOT.get(element.id)) !== null && _a !== void 0 ? _a : (0, client_1.createRoot)(element);
9
11
  }
10
12
  render(node) {
11
13
  this.unmount();
@@ -16,3 +18,4 @@ class MountableComponent {
16
18
  }
17
19
  }
18
20
  exports.MountableComponent = MountableComponent;
21
+ MountableComponent.ROOT = new Map();
@@ -8,18 +8,18 @@ class AlignmentBlockFactory {
8
8
  this.trackConfigModifier = trackModifier;
9
9
  }
10
10
  getBlock(alignmentRequestContext, alignmentData) {
11
+ var _a;
11
12
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
- var _a;
13
13
  alignmentRequestContext = Object.assign(Object.assign({}, alignmentRequestContext), { querySequence: (_a = alignmentData.query_sequence) !== null && _a !== void 0 ? _a : undefined });
14
14
  if (!alignmentData.target_alignment)
15
15
  return [];
16
16
  return (yield Promise.all(alignmentData.target_alignment.map((alignment, index) => tslib_1.__awaiter(this, void 0, void 0, function* () {
17
- var _a, _b;
18
- if (alignmentRequestContext.filterByTargetContains != null && !((_a = alignment === null || alignment === void 0 ? void 0 : alignment.target_id) === null || _a === void 0 ? void 0 : _a.includes(alignmentRequestContext.filterByTargetContains)))
17
+ var _b, _c;
18
+ if (alignmentRequestContext.filterByTargetContains != null && !((_b = alignment === null || alignment === void 0 ? void 0 : alignment.target_id) === null || _b === void 0 ? void 0 : _b.includes(alignmentRequestContext.filterByTargetContains)))
19
19
  return;
20
20
  if ((alignment === null || alignment === void 0 ? void 0 : alignment.target_sequence) == null)
21
21
  return;
22
- return Object.assign(Object.assign({}, yield this.trackFactory.getTrack(alignmentRequestContext, alignment)), yield ((_b = this.trackConfigModifier) === null || _b === void 0 ? void 0 : _b.call(this, alignmentRequestContext, alignment, alignmentData, index)));
22
+ return Object.assign(Object.assign({}, yield this.trackFactory.getTrack(alignmentRequestContext, alignment)), yield ((_c = this.trackConfigModifier) === null || _c === void 0 ? void 0 : _c.call(this, alignmentRequestContext, alignment, alignmentData, index)));
23
23
  })))).filter((x) => x != undefined);
24
24
  });
25
25
  }
@@ -36,8 +36,8 @@ class AnnotationBlockManager {
36
36
  ].flat();
37
37
  }
38
38
  processAnnotations(requestConfig, data) {
39
+ var _a, _b;
39
40
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
40
- var _a, _b;
41
41
  yield Promise.all(data.map(ann => {
42
42
  var _a, _b;
43
43
  return (_b = (_a = ann.features) === null || _a === void 0 ? void 0 : _a.map((feature) => tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -49,8 +49,8 @@ class AnnotationBlockManager {
49
49
  });
50
50
  }
51
51
  addFeature(requestConfig, ann, feature) {
52
+ var _a, _b, _c, _d, _e;
52
53
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
53
- var _a, _b, _c, _d, _e;
54
54
  if (feature.type && ((_a = this.rcsbAnnotationConfig.getConfig(feature.type)) === null || _a === void 0 ? void 0 : _a.ignore))
55
55
  return;
56
56
  const type = yield this.rcsbAnnotationConfig.getAnnotationType(requestConfig, ann, feature);
@@ -15,8 +15,8 @@ class SequenceTrackFactory {
15
15
  this.trackTitleFactory = trackTitleFactory !== null && trackTitleFactory !== void 0 ? trackTitleFactory : new SequenceTrackTitleFactory_1.SequenceTrackTitleFactory(entityInstanceTranslator);
16
16
  }
17
17
  getTrack(alignmentQueryContext, querySequence) {
18
+ var _a, _b;
18
19
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
19
- var _a, _b;
20
20
  const queryId = (_a = alignmentQueryContext.queryId) !== null && _a !== void 0 ? _a : alignmentQueryContext.groupId;
21
21
  assertDefined(queryId);
22
22
  return {
@@ -12,8 +12,8 @@ class AnnotationsTrackTitleFactory {
12
12
  });
13
13
  }
14
14
  getTrackTitleFlagColor(trackManager) {
15
+ var _a, _b;
15
16
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
- var _a, _b;
17
17
  const provenance = Array.from((_b = (_a = trackManager.getConfig()) === null || _a === void 0 ? void 0 : _a.provenanceList) !== null && _b !== void 0 ? _b : []);
18
18
  if (provenance.length == 1
19
19
  &&
@@ -26,8 +26,8 @@ class AnnotationsTrackTitleFactory {
26
26
  });
27
27
  }
28
28
  getTrackTitlePrefix(trackManager) {
29
+ var _a, _b;
29
30
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
- var _a, _b;
31
31
  return (_b = (_a = trackManager.getConfig()) === null || _a === void 0 ? void 0 : _a.prefix) !== null && _b !== void 0 ? _b : "";
32
32
  });
33
33
  }
@@ -15,8 +15,8 @@ class SequenceTrackTitleFactory {
15
15
  this.entityInstanceTranslator = entityInstanceTranslator;
16
16
  }
17
17
  getTrackTitle(alignmentQueryContext) {
18
+ var _a, _b, _c;
18
19
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
19
- var _a, _b, _c;
20
20
  let rowTitle;
21
21
  if (!alignmentQueryContext.excludeFirstRowLink && alignmentQueryContext.from === GqlTypes_1.SequenceReference.Uniprot) {
22
22
  rowTitle = {
@@ -48,14 +48,14 @@ class SequenceTrackTitleFactory {
48
48
  });
49
49
  }
50
50
  getTrackTitlePrefix(alignmentQueryContext) {
51
+ var _a;
51
52
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
- var _a;
53
53
  return (alignmentQueryContext.from && !alignmentQueryContext.from.includes("PDB")) ? alignmentQueryContext.from.replace("_", " ") + " " + TagDelimiter_1.TagDelimiter.sequenceTitle : ((_a = alignmentQueryContext.sequencePrefix) !== null && _a !== void 0 ? _a : "");
54
54
  });
55
55
  }
56
56
  getTrackTitleFlagColor(alignmentQueryContext) {
57
+ var _a;
57
58
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
- var _a;
59
59
  const queryId = (_a = alignmentQueryContext.queryId) !== null && _a !== void 0 ? _a : alignmentQueryContext.groupId;
60
60
  assertDefined(queryId), assertDefined(alignmentQueryContext.from);
61
61
  return TrackUtils_1.TrackUtils.getProvenanceConfigFormTarget(queryId, alignmentQueryContext.from).color;
@@ -79,8 +79,8 @@ class GroupPfvTabs extends react_1.default.Component {
79
79
  });
80
80
  }
81
81
  renderPositionalFeatureViewer(tabKey) {
82
+ var _a, _b, _c, _d, _e;
82
83
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
83
- var _a, _b, _c, _d, _e;
84
84
  switch (tabKey) {
85
85
  case ALIGNMENT:
86
86
  this.featureViewers.set(tabKey, yield GroupPfvApp_1.GroupPfvApp.alignment(tabKey.toString(), this.props.groupProvenanceId, this.props.groupId, (_a = this.entityCount) !== null && _a !== void 0 ? _a : 0, Object.assign(Object.assign({ page: { first: 50, after: "0" } }, this.props.additionalConfig), { alignmentFilter: this.filterEntities })));