react-mutation-mapper 0.8.27 → 0.8.32
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.
|
@@ -12,6 +12,7 @@ export declare type AnnotationProps = {
|
|
|
12
12
|
oncoKbCancerGenes?: RemoteData<CancerGene[] | Error | undefined>;
|
|
13
13
|
usingPublicOncoKbInstance: boolean;
|
|
14
14
|
mergeOncoKbIcons?: boolean;
|
|
15
|
+
oncoKbContentPadding?: number;
|
|
15
16
|
pubMedCache?: MobxCache;
|
|
16
17
|
resolveEntrezGeneId?: (mutation: Mutation) => number;
|
|
17
18
|
resolveTumorType?: (mutation: Mutation) => string;
|
|
@@ -27,6 +28,7 @@ export declare type GenericAnnotationProps = {
|
|
|
27
28
|
enableMyCancerGenome: boolean;
|
|
28
29
|
enableOncoKb: boolean;
|
|
29
30
|
mergeOncoKbIcons?: boolean;
|
|
31
|
+
oncoKbContentPadding?: number;
|
|
30
32
|
pubMedCache?: MobxCache;
|
|
31
33
|
userEmailAddress?: string;
|
|
32
34
|
};
|
|
@@ -15,11 +15,12 @@ export interface IOncoKbProps {
|
|
|
15
15
|
hugoGeneSymbol: string;
|
|
16
16
|
userEmailAddress?: string;
|
|
17
17
|
disableFeedback?: boolean;
|
|
18
|
+
contentPadding?: number;
|
|
18
19
|
}
|
|
19
20
|
export declare function sortValue(indicator?: IndicatorQueryResp | undefined | null): number[];
|
|
20
21
|
export declare function download(indicator?: IndicatorQueryResp | undefined | null): string;
|
|
21
22
|
export default class OncoKB extends React.Component<IOncoKbProps, {}> {
|
|
22
|
-
constructor(props:
|
|
23
|
+
constructor(props: IOncoKbProps);
|
|
23
24
|
showFeedback: boolean;
|
|
24
25
|
tooltipDataLoadComplete: boolean;
|
|
25
26
|
render(): JSX.Element;
|
package/dist/index.es.js
CHANGED
|
@@ -1859,17 +1859,11 @@ var OncoKB = /** @class */ (function (_super) {
|
|
|
1859
1859
|
].map(function (dataType) { return (createElement(AnnotationIcon, { type: dataType, tooltipOverlay: _this.tooltipContent(dataType), indicator: _this.props.indicator, availableDataTypes: _this.props.availableDataTypes })); })));
|
|
1860
1860
|
}
|
|
1861
1861
|
else {
|
|
1862
|
-
//
|
|
1863
|
-
//
|
|
1864
|
-
//
|
|
1865
|
-
//
|
|
1866
|
-
|
|
1867
|
-
// {this.props.availableDataTypes?.map(() => (
|
|
1868
|
-
// <AnnotationIconWithTooltip icon={<i />} />
|
|
1869
|
-
// ))}
|
|
1870
|
-
// </>
|
|
1871
|
-
// );
|
|
1872
|
-
return null;
|
|
1862
|
+
// workaround: use content padding value to draw an empty icon when there is no indicator data.
|
|
1863
|
+
// this is to keep the icon alignment consistent with the rest of the column.
|
|
1864
|
+
// ideally we should implement grouped columns to avoid these kind of workarounds
|
|
1865
|
+
// (see https://github.com/cBioPortal/cbioportal/issues/8723)
|
|
1866
|
+
return createElement("i", { style: { paddingRight: this.props.contentPadding } });
|
|
1873
1867
|
}
|
|
1874
1868
|
}
|
|
1875
1869
|
});
|
|
@@ -2297,9 +2291,9 @@ function sortValue$4(annotation) {
|
|
|
2297
2291
|
]);
|
|
2298
2292
|
}
|
|
2299
2293
|
function GenericAnnotation(props) {
|
|
2300
|
-
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableMyCancerGenome = props.enableMyCancerGenome, enableOncoKb = props.enableOncoKb, pubMedCache = props.pubMedCache, userEmailAddress = props.userEmailAddress, mergeOncoKbIcons = props.mergeOncoKbIcons;
|
|
2294
|
+
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableMyCancerGenome = props.enableMyCancerGenome, enableOncoKb = props.enableOncoKb, pubMedCache = props.pubMedCache, userEmailAddress = props.userEmailAddress, mergeOncoKbIcons = props.mergeOncoKbIcons, oncoKbContentPadding = props.oncoKbContentPadding;
|
|
2301
2295
|
return (createElement("span", { style: { display: 'flex', minWidth: 100 } },
|
|
2302
|
-
enableOncoKb && (createElement(OncoKB, { usingPublicOncoKbInstance: annotation.usingPublicOncoKbInstance, hugoGeneSymbol: annotation.hugoGeneSymbol, geneNotExist: !annotation.oncoKbGeneExist, isCancerGene: annotation.isOncoKbCancerGene, status: annotation.oncoKbStatus, indicator: annotation.oncoKbIndicator, availableDataTypes: annotation.oncoKbAvailableDataTypes, mergeAnnotationIcons: mergeOncoKbIcons, pubMedCache: pubMedCache, userEmailAddress: userEmailAddress })),
|
|
2296
|
+
enableOncoKb && (createElement(OncoKB, { usingPublicOncoKbInstance: annotation.usingPublicOncoKbInstance, hugoGeneSymbol: annotation.hugoGeneSymbol, geneNotExist: !annotation.oncoKbGeneExist, isCancerGene: annotation.isOncoKbCancerGene, status: annotation.oncoKbStatus, indicator: annotation.oncoKbIndicator, availableDataTypes: annotation.oncoKbAvailableDataTypes, mergeAnnotationIcons: mergeOncoKbIcons, pubMedCache: pubMedCache, userEmailAddress: userEmailAddress, contentPadding: oncoKbContentPadding })),
|
|
2303
2297
|
enableCivic && (createElement(Civic, { civicEntry: annotation.civicEntry, civicStatus: annotation.civicStatus, hasCivicVariants: annotation.hasCivicVariants })),
|
|
2304
2298
|
enableMyCancerGenome && (createElement(MyCancerGenome, { linksHTML: annotation.myCancerGenomeLinks })),
|
|
2305
2299
|
enableHotspot && (createElement(HotspotAnnotation, { isHotspot: annotation.isHotspot, is3dHotspot: annotation.is3dHotspot, status: annotation.hotspotStatus }))));
|