react-mutation-mapper 0.8.76 → 0.8.78
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.
- package/dist/component/column/Annotation.d.ts +2 -2
- package/dist/component/filter/ProteinImpactTypeBadgeSelector.d.ts +1 -0
- package/dist/index.es.js +10 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -3
- package/package.json +3 -3
|
@@ -19,7 +19,7 @@ export declare type AnnotationProps = {
|
|
|
19
19
|
myCancerGenomeData?: IMyCancerGenomeData;
|
|
20
20
|
civicGenes?: RemoteData<ICivicGeneIndex | undefined>;
|
|
21
21
|
civicVariants?: RemoteData<ICivicVariantIndex | undefined>;
|
|
22
|
-
|
|
22
|
+
userDisplayName?: string;
|
|
23
23
|
};
|
|
24
24
|
export declare type GenericAnnotationProps = {
|
|
25
25
|
annotation: IAnnotation;
|
|
@@ -30,7 +30,7 @@ export declare type GenericAnnotationProps = {
|
|
|
30
30
|
mergeOncoKbIcons?: boolean;
|
|
31
31
|
oncoKbContentPadding?: number;
|
|
32
32
|
pubMedCache?: MobxCache;
|
|
33
|
-
|
|
33
|
+
userDisplayName?: string;
|
|
34
34
|
};
|
|
35
35
|
export interface IAnnotation {
|
|
36
36
|
isHotspot: boolean;
|
|
@@ -8,6 +8,7 @@ export declare type ProteinImpactTypeBadgeSelectorProps = BadgeSelectorProps & {
|
|
|
8
8
|
counts?: {
|
|
9
9
|
[proteinImpactType: string]: number;
|
|
10
10
|
};
|
|
11
|
+
excludedProteinTypes?: string[];
|
|
11
12
|
};
|
|
12
13
|
export declare function getProteinImpactTypeOptionLabel(option: Option): JSX.Element;
|
|
13
14
|
export declare function getProteinImpactTypeBadgeLabel(option: BadgeSelectorOption, selectedValues: {
|
package/dist/index.es.js
CHANGED
|
@@ -700,9 +700,9 @@ function sortValue$4(annotation) {
|
|
|
700
700
|
]);
|
|
701
701
|
}
|
|
702
702
|
function GenericAnnotation(props) {
|
|
703
|
-
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableMyCancerGenome = props.enableMyCancerGenome, enableOncoKb = props.enableOncoKb; props.pubMedCache; var
|
|
703
|
+
var annotation = props.annotation, enableCivic = props.enableCivic, enableHotspot = props.enableHotspot, enableMyCancerGenome = props.enableMyCancerGenome, enableOncoKb = props.enableOncoKb; props.pubMedCache; var userDisplayName = props.userDisplayName, mergeOncoKbIcons = props.mergeOncoKbIcons, oncoKbContentPadding = props.oncoKbContentPadding;
|
|
704
704
|
return (React.createElement("span", { style: { display: 'flex', minWidth: 100 } },
|
|
705
|
-
enableOncoKb && (React.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,
|
|
705
|
+
enableOncoKb && (React.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, userDisplayName: userDisplayName, contentPadding: oncoKbContentPadding })),
|
|
706
706
|
enableCivic && (React.createElement(Civic, { civicEntry: annotation.civicEntry, civicStatus: annotation.civicStatus, hasCivicVariants: annotation.hasCivicVariants })),
|
|
707
707
|
enableMyCancerGenome && (React.createElement(MyCancerGenome, { linksHTML: annotation.myCancerGenomeLinks })),
|
|
708
708
|
enableHotspot && (React.createElement(HotspotAnnotation, { isHotspot: annotation.isHotspot, is3dHotspot: annotation.is3dHotspot, status: annotation.hotspotStatus }))));
|
|
@@ -2365,8 +2365,10 @@ var ProteinImpactTypeBadgeSelector = /** @class */ (function (_super) {
|
|
|
2365
2365
|
backgroundColor: _this.proteinImpactTypeColors[value],
|
|
2366
2366
|
},
|
|
2367
2367
|
}); }).filter(function (type) {
|
|
2368
|
-
|
|
2369
|
-
|
|
2368
|
+
var _a;
|
|
2369
|
+
return !(((_a = _this.props.excludedProteinTypes) === null || _a === void 0 ? void 0 : _a.includes(type.value)) ||
|
|
2370
|
+
(type.value === ProteinImpactType.OTHER &&
|
|
2371
|
+
type.badgeContent === 0));
|
|
2370
2372
|
});
|
|
2371
2373
|
},
|
|
2372
2374
|
enumerable: false,
|
|
@@ -2377,7 +2379,8 @@ var ProteinImpactTypeBadgeSelector = /** @class */ (function (_super) {
|
|
|
2377
2379
|
configurable: true,
|
|
2378
2380
|
writable: true,
|
|
2379
2381
|
value: function () {
|
|
2380
|
-
return (React.createElement(
|
|
2382
|
+
return (React.createElement("table", null,
|
|
2383
|
+
React.createElement(BadgeSelector, __assign({ options: this.options, getOptionLabel: getProteinImpactTypeOptionLabel, getBadgeLabel: getProteinImpactTypeBadgeLabel, useOnlyFeature: true }, this.props))));
|
|
2381
2384
|
}
|
|
2382
2385
|
});
|
|
2383
2386
|
Object.defineProperty(ProteinImpactTypeBadgeSelector, "defaultProps", {
|
|
@@ -2439,7 +2442,8 @@ var MutationStatusBadgeSelector = /** @class */ (function (_super) {
|
|
|
2439
2442
|
configurable: true,
|
|
2440
2443
|
writable: true,
|
|
2441
2444
|
value: function () {
|
|
2442
|
-
return React.createElement(
|
|
2445
|
+
return (React.createElement("table", null,
|
|
2446
|
+
React.createElement(BadgeSelector, __assign({ options: this.options }, this.props))));
|
|
2443
2447
|
}
|
|
2444
2448
|
});
|
|
2445
2449
|
Object.defineProperty(MutationStatusBadgeSelector, "defaultProps", {
|