@rcsb/rcsb-saguaro-app 6.2.0 → 6.2.2

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 (123) 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.ac.json +25 -1
  7. package/lib/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  8. package/lib/RcsbChartWeb/HistogramChartComponent.d.ts +0 -1
  9. package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  10. package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  11. package/lib/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  12. package/lib/RcsbFvExamples/ExternalDataProvider.js +1 -1
  13. package/lib/RcsbFvExamples/GroupHistogram.js +3 -6
  14. package/lib/RcsbFvUI/Components/FilterItemComponent.d.ts +0 -1
  15. package/lib/RcsbFvUI/Components/PaginationItemComponent.d.ts +0 -1
  16. package/lib/RcsbFvUI/GroupPfvUI.js +1 -1
  17. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  18. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  19. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +0 -1
  20. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  21. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  22. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  23. package/lib/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +0 -1
  24. package/lib/RcsbFvWeb/RcsbFvComponents/LoaderSpinner.js +1 -1
  25. package/lib/RcsbFvWeb/RcsbFvComponents/RcsbTabs.js +1 -1
  26. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  27. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  28. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  29. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  30. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  31. package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  32. package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +3 -3
  33. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  34. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  35. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  36. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  37. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  38. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  39. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  40. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +2 -2
  41. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  42. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  43. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  44. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  45. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  46. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  47. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  48. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +2 -2
  49. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbStatsChartComponent.js +2 -2
  50. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  51. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  52. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +1 -1
  53. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +0 -1
  54. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/RcsbResidueChartComponent.js +2 -2
  55. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  56. package/lib/RcsbRequest/RcsbRequestContextManager.js +1 -1
  57. package/lib/RcsbSeacrh/FacetTools.d.ts +15 -15
  58. package/lib/RcsbSeacrh/SearchRequestProperty.js +2 -2
  59. package/lib/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +3 -3
  60. package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +4 -4
  61. package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.ac.json +25 -1
  62. package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  63. package/lib/commonjs/RcsbChartWeb/HistogramChartComponent.d.ts +0 -1
  64. package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  65. package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  66. package/lib/commonjs/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  67. package/lib/commonjs/RcsbFvExamples/ExternalDataProvider.js +1 -1
  68. package/lib/commonjs/RcsbFvExamples/GroupHistogram.js +3 -6
  69. package/lib/commonjs/RcsbFvExamples/utils/events.js +2 -3
  70. package/lib/commonjs/RcsbFvUI/Components/FilterItemComponent.d.ts +0 -1
  71. package/lib/commonjs/RcsbFvUI/Components/PaginationItemComponent.d.ts +0 -1
  72. package/lib/commonjs/RcsbFvUI/GroupPfvUI.js +2 -2
  73. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  74. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  75. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +0 -1
  76. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  77. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  78. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  79. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +22 -23
  80. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +0 -1
  81. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/LoaderSpinner.js +2 -2
  82. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/RcsbTabs.js +2 -2
  83. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  84. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  85. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  86. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  87. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  88. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  89. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +5 -5
  90. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  91. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  92. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  93. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  94. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  95. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  96. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  97. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +5 -5
  98. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  99. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  100. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  101. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  102. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  103. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  104. package/lib/commonjs/RcsbGroupWeb/RcsbGroupBuilder.js +6 -6
  105. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  106. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +3 -3
  107. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbStatsChartComponent.js +2 -2
  108. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  109. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.js +2 -2
  110. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  111. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +4 -4
  112. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +0 -1
  113. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/RcsbResidueChartComponent.js +2 -2
  114. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  115. package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.js +1 -1
  116. package/lib/commonjs/RcsbSeacrh/FacetTools.d.ts +15 -15
  117. package/lib/commonjs/RcsbSeacrh/SearchRequestProperty.js +2 -2
  118. package/lib/commonjs/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +4 -5
  119. package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.js +2 -3
  120. package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.js +2 -3
  121. package/lib/commonjs/RcsbUtils/TrackGenerators/GroupExternalTrackBuilder.js +1 -2
  122. package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +6 -6
  123. package/package.json +25 -26
@@ -8,8 +8,8 @@ import { rcsbRequestCtxManager } from "../../../RcsbRequest/RcsbRequestContextMa
8
8
  export var GroupChartMap;
9
9
  (function (GroupChartMap) {
10
10
  function getChartMap(groupProvenanceId, groupId, searchQuery) {
11
- var _a;
12
11
  return __awaiter(this, void 0, void 0, function* () {
12
+ var _a;
13
13
  const facetStore = SQT.getFacetStoreFromGroupProvenance(groupProvenanceId);
14
14
  let facets = [];
15
15
  for (const service of facetStore.getServices()) {
@@ -45,8 +45,8 @@ export var GroupChartMap;
45
45
  }
46
46
  GroupChartMap.getChartMap = getChartMap;
47
47
  function subtractSearchQuery(chartData, groupProvenanceId, groupId, searchQuery) {
48
- var _a, _b;
49
48
  return __awaiter(this, void 0, void 0, function* () {
49
+ var _a, _b;
50
50
  const facetStore = SQT.getFacetStoreFromGroupProvenance(groupProvenanceId);
51
51
  let subData;
52
52
  let partialFacets = [];
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import { GroupChartLayout } from "./GroupChartLayout";
5
5
  import { SearchQueryTools as SQT } from "../../../RcsbSeacrh/SearchQueryTools";
6
6
  import { GroupChartMap as GDCM } from "./GroupChartTools";
7
- import classes from "../../../scss/bootstrap-group-display.module.scss";
7
+ import * as classes from "../../../scss/bootstrap-group-display.module.scss";
8
8
  import { SearchQueryComponentFactory } from "../RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent";
9
9
  //TODO include chartDisplayConfig?: Partial<ChartDisplayConfigInterface> in props and propagate it
10
10
  export class RcsbGroupChartComponent extends React.Component {
@@ -23,8 +23,8 @@ export class RcsbGroupChartComponent extends React.Component {
23
23
  }
24
24
  }
25
25
  updateState() {
26
- var _a, _b, _c;
27
26
  return __awaiter(this, void 0, void 0, function* () {
27
+ var _a, _b, _c;
28
28
  const layout = (_a = this.props.facetLayoutGrid) !== null && _a !== void 0 ? _a : SQT.getFacetStoreFromGroupProvenance(this.props.groupProvenanceId).facetLayoutGrid;
29
29
  const chartMap = yield GDCM.getChartMap(this.props.groupProvenanceId, this.props.groupId, this.props.searchQuery);
30
30
  if ((_b = this.props.additionalProperties) === null || _b === void 0 ? void 0 : _b.layoutConfig)
@@ -1,7 +1,7 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import classes from "../../../scss/bootstrap-group-display.module.scss";
4
+ import * as classes from "../../../scss/bootstrap-group-display.module.scss";
5
5
  import { GroupChartLayout } from "./GroupChartLayout";
6
6
  import { FacetTools } from "../../../RcsbSeacrh/FacetTools";
7
7
  import { rcsbRequestCtxManager } from "../../../RcsbRequest/RcsbRequestContextManager";
@@ -15,7 +15,7 @@ export class RcsbStatsChartComponent extends React.Component {
15
15
  render() {
16
16
  var _a;
17
17
  if ((_a = this.state) === null || _a === void 0 ? void 0 : _a.facets)
18
- return (_jsx("div", { className: classes.bootstrapComponentScope, children: _jsx(GroupChartLayout, { layout: this.props.facetStore.facetLayoutGrid, chartMap: FacetTools.getResultDrilldowns(this.props.facetStore.getFacetService("all"), this.state.facets).reduce((prev, current) => {
18
+ return (_jsx("div", { className: classes.bootstrapGroupComponentScope, children: _jsx(GroupChartLayout, { layout: this.props.facetStore.facetLayoutGrid, chartMap: FacetTools.getResultDrilldowns(this.props.facetStore.getFacetService("all"), this.state.facets).reduce((prev, current) => {
19
19
  return prev.set(current.attribute, [current]);
20
20
  }, new Map()) }) }));
21
21
  return _jsx(_Fragment, {});
@@ -18,8 +18,8 @@ export class RcsbGroupContentComponent extends React.Component {
18
18
  };
19
19
  }
20
20
  componentDidMount() {
21
- var _a, _b;
22
21
  return __awaiter(this, void 0, void 0, function* () {
22
+ var _a, _b;
23
23
  this.subscribe();
24
24
  const fullGroupMembers = (_a = (yield searchRequest(this.props.groupProvenanceId, this.props.groupId))) === null || _a === void 0 ? void 0 : _a.total_count;
25
25
  const subGroupMembers = (_b = (yield searchRequest(this.props.groupProvenanceId, this.props.groupId, this.props.searchQuery))) === null || _b === void 0 ? void 0 : _b.total_count;
@@ -44,8 +44,8 @@ export class RcsbGroupContentComponent extends React.Component {
44
44
  return ((_a = this.props.displayNumber) !== null && _a !== void 0 ? _a : Operator.digitGrouping)(x);
45
45
  }
46
46
  updateGroupContent(o) {
47
- var _a;
48
47
  return __awaiter(this, void 0, void 0, function* () {
48
+ var _a;
49
49
  const subGroupMembers = (_a = (yield searchRequest(this.props.groupProvenanceId, this.props.groupId, o.searchQuery))) === null || _a === void 0 ? void 0 : _a.total_count;
50
50
  if (subGroupMembers)
51
51
  this.setState({ subGroupMembers, searchQuery: o.searchQuery });
@@ -71,8 +71,8 @@ export class GroupMembersGrid extends React.Component {
71
71
  }
72
72
  }
73
73
  function searchRequest(groupProvenanceId, groupId, start, rows, searchQuery) {
74
- var _a, _b, _c, _d, _e, _f, _g, _h;
75
74
  return __awaiter(this, void 0, void 0, function* () {
75
+ var _a, _b, _c, _d, _e, _f, _g, _h;
76
76
  return yield rcsbRequestCtxManager.getSearchQuery({
77
77
  query: (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.query) ? SQT.addGroupNodeToSearchQuery(groupProvenanceId, groupId, searchQuery.query) : SQT.searchGroupQuery(groupProvenanceId, groupId),
78
78
  request_options: {
@@ -1,7 +1,7 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
- import classes from "../../../scss/bootstrap-group-display.module.scss";
4
+ import * as classes from "../../../scss/bootstrap-group-display.module.scss";
5
5
  import { GroupMembersGrid } from "./GroupMembersGrid";
6
6
  import { SearchQueryTools as SQT } from "../../../RcsbSeacrh/SearchQueryTools";
7
7
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
3
2
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
4
3
  export declare class SearchQueryComponentFactory {
@@ -3,13 +3,13 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import { GroupChartLayout } from "../RcsbGroupChart/GroupChartLayout";
5
5
  import { ResidueChartTools as RCT } from "./ResidueChartTools/ResidueChartTools";
6
- import classes from "../../../scss/bootstrap-group-display.module.scss";
6
+ import * as classes from "../../../scss/bootstrap-group-display.module.scss";
7
7
  import { FacetTools } from "../../../RcsbSeacrh/FacetTools";
8
8
  export class RcsbResidueChartComponent extends React.Component {
9
9
  render() {
10
10
  var _a, _b;
11
11
  if ((_b = (_a = this.state) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.flat().filter((e) => { var _a, _b; return ((_b = (_a = this.state) === null || _a === void 0 ? void 0 : _a.chartMap) === null || _b === void 0 ? void 0 : _b.get(e)); })) {
12
- return (_jsx("div", { className: classes.bootstrapComponentScope, children: _jsx(GroupChartLayout, { layout: this.state.layout, chartMap: this.state.chartMap }) }));
12
+ return (_jsx("div", { className: classes.bootstrapGroupComponentScope, children: _jsx(GroupChartLayout, { layout: this.state.layout, chartMap: this.state.chartMap }) }));
13
13
  }
14
14
  return _jsx(_Fragment, {});
15
15
  }
@@ -42,8 +42,8 @@ export var ResidueChartTools;
42
42
  });
43
43
  }
44
44
  function getInstanceCharts(instanceId) {
45
- var _a, _b;
46
45
  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;
111
110
  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 | undefined;
25
- domainMinValue?: number | undefined;
26
- domainMaxValue?: number | undefined;
27
- domainEmptyBins?: boolean | undefined;
28
- histogramBinIncrement?: number | undefined;
24
+ mostPopulatedGroups?: number;
25
+ domainMinValue?: number;
26
+ domainMaxValue?: number;
27
+ domainEmptyBins?: boolean;
28
+ histogramBinIncrement?: number;
29
29
  tickIncrement?: {
30
30
  origin: number;
31
31
  increment: number;
32
- } | undefined;
32
+ };
33
33
  tickFormat?: {
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;
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;
41
41
  };
42
42
  data: ChartObjectInterface<any>[];
43
- filters?: SearchFilter[] | undefined;
43
+ filters?: SearchFilter[];
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: "string" | "number" | "date";
49
+ contentType: "date" | "number" | "string";
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;
39
38
  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;
53
52
  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;
14
13
  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;
34
33
  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;
41
40
  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 _c, _d, _e;
16
- (_c = externalTrackBuilder === null || externalTrackBuilder === void 0 ? void 0 : externalTrackBuilder.filterFeatures) === null || _c === void 0 ? void 0 : _c.call(externalTrackBuilder, data);
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);
17
17
  return trackBuilder({
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,
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,
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;
42
41
  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;
@@ -104,7 +104,9 @@
104
104
  "MOGUL_BOND_OUTLIER",
105
105
  "STEREO_OUTLIER",
106
106
  "CIS_PEPTIDE",
107
- "BINDING_SITE",
107
+ "LIGAND_INTERACTION",
108
+ "LIGAND_COVALENT_LINKAGE",
109
+ "LIGAND_METAL_COORDINATION_LINKAGE",
108
110
  "ASA_UNBOUND",
109
111
  "ASA_BOUND",
110
112
  "BURIAL_FRACTION",
@@ -292,6 +294,28 @@
292
294
  "color": "#984657",
293
295
  "title": "BINDING SITE",
294
296
  "key": "name",
297
+ "addToType": ["feature_id"],
298
+ "ignore": true
299
+ }, {
300
+ "type": "LIGAND_INTERACTION",
301
+ "display": "pin",
302
+ "color": "#984657",
303
+ "title": "BINDING SITE",
304
+ "key": "name",
305
+ "addToType": ["feature_id"]
306
+ }, {
307
+ "type": "LIGAND_COVALENT_LINKAGE",
308
+ "display": "pin",
309
+ "color": "#984657",
310
+ "title": "COVALENT LINKAGE",
311
+ "key": "name",
312
+ "addToType": ["feature_id"]
313
+ }, {
314
+ "type": "LIGAND_METAL_COORDINATION_LINKAGE",
315
+ "display": "pin",
316
+ "color": "#984657",
317
+ "title": "METAL COORDINATION",
318
+ "key": "name",
295
319
  "addToType": ["feature_id"]
296
320
  }, {
297
321
  "type": "MUTAGENESIS_SITE",
@@ -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;
47
46
  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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AbstractChartComponent } from "./AbsractChartComponent";
3
2
  export declare class HistogramChartComponent extends AbstractChartComponent {
4
3
  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;
20
19
  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;
17
16
  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;
51
50
  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;
58
57
  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;
888
887
  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);
@@ -2,12 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const RcsbGroupBuilder_1 = require("../RcsbGroupWeb/RcsbGroupBuilder");
4
4
  const DwEnums_1 = require("@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums");
5
- const RcsbRequestContextManager_1 = require("../RcsbRequest/RcsbRequestContextManager");
6
5
  const SingleFacets_1 = require("../RcsbSeacrh/FacetStore/SingleFacets");
7
- const groupId = "O14744";
8
- RcsbRequestContextManager_1.rcsbRequestCtxManager.initializeArchesClient({
9
- uri: "http://132.249.213.75/rcsbsearch/v2/query"
10
- });
6
+ const groupId = "P01112";
11
7
  // buildGroupContent("select", GroupProvenanceId.ProvenanceSequenceIdentity, groupId);
12
8
  // buildGroupMembers("carousel", GroupProvenanceId.ProvenanceSequenceIdentity, groupId, 1, 1)
13
9
  (0, RcsbGroupBuilder_1.buildGroup)("pfv", DwEnums_1.GroupProvenanceId.ProvenanceSequenceIdentity, groupId, undefined, [
@@ -28,6 +24,7 @@ RcsbRequestContextManager_1.rcsbRequestCtxManager.initializeArchesClient({
28
24
  (0, RcsbGroupBuilder_1.buildGroup)("pfv_2", DwEnums_1.GroupProvenanceId.ProvenanceSequenceIdentity, groupId, undefined, [
29
25
  SingleFacets_1.GO_PROCESS_FACET.attributeName,
30
26
  SingleFacets_1.GO_COMPONENT_FACET.attributeName,
31
- SingleFacets_1.GO_FUNCTION_FACET.attributeName
27
+ SingleFacets_1.GO_FUNCTION_FACET.attributeName,
28
+ SingleFacets_1.PHENOTYPE_FACET.attributeName
32
29
  ]).then((m) => {
33
30
  });
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.onLoad = exports.getJsonFromUrl = void 0;
3
+ exports.getJsonFromUrl = getJsonFromUrl;
4
+ exports.onLoad = onLoad;
4
5
  function getJsonFromUrl() {
5
6
  const url = location.search;
6
7
  var query = url.substring(1);
@@ -11,10 +12,8 @@ function getJsonFromUrl() {
11
12
  });
12
13
  return result;
13
14
  }
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AbstractMenuItemComponent } from "../AbstractMenuItemComponent";
3
2
  interface FilterItemProps {
4
3
  elements: string[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AbstractMenuItemComponent } from "../AbstractMenuItemComponent";
3
2
  export interface PaginationItemState {
4
3
  after: number;
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const RcsbTabs_1 = require("../RcsbFvWeb/RcsbFvComponents/RcsbTabs");
7
7
  const client_1 = require("react-dom/client");
8
- const bootstrap_fv_display_module_scss_1 = tslib_1.__importDefault(require("../scss/bootstrap-fv-display.module.scss"));
8
+ const classes = tslib_1.__importStar(require("../scss/bootstrap-fv-display.module.scss"));
9
9
  const ItemComponent_1 = require("./Components/ItemComponent");
10
10
  class GroupPfvUI {
11
11
  static fvUI(element, uiComponent) {
@@ -13,7 +13,7 @@ class GroupPfvUI {
13
13
  }
14
14
  static addBootstrapElement(elementId) {
15
15
  const div = GroupPfvUI.htmlElementUI(elementId);
16
- div.className = bootstrap_fv_display_module_scss_1.default.bootstrapFvComponentScope;
16
+ div.className = classes.bootstrapFvComponentScope;
17
17
  return div;
18
18
  }
19
19
  static htmlElementUI(elementId) {
@@ -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;
42
41
  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;
30
29
  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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
3
2
  import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector";
4
3
  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, elementEntrySelectId, elementInstanceSelectId, entryIdList, config = {}, additionalConfig) {
13
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
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) {
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;
42
41
  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;
11
10
  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, elementSelectId, upAcc, config = {}, additionalConfig) {
16
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
+ static buildUniprotMultipleEntitySequenceFv(elementFvId_1, elementSelectId_1, upAcc_1) {
16
+ return tslib_1.__awaiter(this, arguments, void 0, function* (elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
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")