@vitessce/feature-list 3.6.17 → 3.6.18
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/index.js +5 -4
- package/dist-tsc/FeatureList.d.ts +1 -1
- package/dist-tsc/FeatureList.d.ts.map +1 -1
- package/dist-tsc/FeatureList.js +1 -1
- package/dist-tsc/FeatureListSubscriber.d.ts.map +1 -1
- package/dist-tsc/FeatureListSubscriber.js +3 -2
- package/package.json +5 -5
- package/src/FeatureList.js +2 -2
- package/src/FeatureListSubscriber.js +3 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, useState, useEffect, useCallback } from "react";
|
|
6
|
-
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useGridItemSize, useCoordination, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
|
|
6
|
+
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useGridItemSize, useCoordination, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
8
|
function getDefaultExportFromCjs(x) {
|
|
9
9
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -21581,7 +21581,7 @@ function FeatureList(props) {
|
|
|
21581
21581
|
[primaryColumnName]
|
|
21582
21582
|
];
|
|
21583
21583
|
}, [showFeatureTable, primaryColumnName, hasFeatureLabels]);
|
|
21584
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
21584
|
+
return width2 > 0 && height2 > 0 ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
21585
21585
|
"input",
|
|
21586
21586
|
{
|
|
21587
21587
|
className: classes.searchBar,
|
|
@@ -21606,7 +21606,7 @@ function FeatureList(props) {
|
|
|
21606
21606
|
width: width2,
|
|
21607
21607
|
height: height2 - 34
|
|
21608
21608
|
}
|
|
21609
|
-
));
|
|
21609
|
+
)) : null;
|
|
21610
21610
|
}
|
|
21611
21611
|
const $b5e257d569688ac6$var$defaultContext = {
|
|
21612
21612
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
@@ -21801,7 +21801,7 @@ const useStyles = makeStyles()((theme) => ({
|
|
|
21801
21801
|
}));
|
|
21802
21802
|
function FeatureListSubscriber(props) {
|
|
21803
21803
|
const {
|
|
21804
|
-
coordinationScopes,
|
|
21804
|
+
coordinationScopes: coordinationScopesRaw,
|
|
21805
21805
|
removeGridComponent,
|
|
21806
21806
|
variablesLabelOverride,
|
|
21807
21807
|
theme,
|
|
@@ -21815,6 +21815,7 @@ function FeatureListSubscriber(props) {
|
|
|
21815
21815
|
helpText = ViewHelpMapping.FEATURE_LIST
|
|
21816
21816
|
} = props;
|
|
21817
21817
|
const loaders = useLoaders();
|
|
21818
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
21818
21819
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
21819
21820
|
const { classes } = useStyles();
|
|
21820
21821
|
const [{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function FeatureList(props: any): JSX.Element;
|
|
1
|
+
export default function FeatureList(props: any): JSX.Element | null;
|
|
2
2
|
//# sourceMappingURL=FeatureList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureList.d.ts","sourceRoot":"","sources":["../src/FeatureList.js"],"names":[],"mappings":"AAmBA,
|
|
1
|
+
{"version":3,"file":"FeatureList.d.ts","sourceRoot":"","sources":["../src/FeatureList.js"],"names":[],"mappings":"AAmBA,oEA0HC"}
|
package/dist-tsc/FeatureList.js
CHANGED
|
@@ -81,5 +81,5 @@ export default function FeatureList(props) {
|
|
|
81
81
|
[primaryColumnName],
|
|
82
82
|
];
|
|
83
83
|
}, [showFeatureTable, primaryColumnName, hasFeatureLabels]);
|
|
84
|
-
return (_jsxs(_Fragment, { children: [_jsx("input", { className: classes.searchBar, type: "text", placeholder: "Search", value: searchTerm, onChange: handleChange }), _jsx(SelectableTable, { columns: columns, columnLabels: columnLabels, data: data, hasColorEncoding: hasColorEncoding, idKey: "key", valueKey: "value", onChange: onChange, allowMultiple: enableMultiSelect, allowUncheck: enableMultiSelect, showTableHead: columnLabels.length > 1, width: width, height: height - 34 })] }));
|
|
84
|
+
return (width > 0 && height > 0) ? (_jsxs(_Fragment, { children: [_jsx("input", { className: classes.searchBar, type: "text", placeholder: "Search", value: searchTerm, onChange: handleChange }), _jsx(SelectableTable, { columns: columns, columnLabels: columnLabels, data: data, hasColorEncoding: hasColorEncoding, idKey: "key", valueKey: "value", onChange: onChange, allowMultiple: enableMultiSelect, allowUncheck: enableMultiSelect, showTableHead: columnLabels.length > 1, width: width, height: height - 34 })] })) : null;
|
|
85
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureListSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureListSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeatureListSubscriber.d.ts","sourceRoot":"","sources":["../src/FeatureListSubscriber.js"],"names":[],"mappings":"AA2BA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,6CAlBG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,sBAAsB,EAApC,MAAM;IAEQ,4BAA4B,EAA1C,MAAM;IAES,iBAAiB,EAAhC,OAAO;IAEQ,SAAS,EAAxB,OAAO;IAC0B,IAAI,EAArC,cAAc,GAAC,UAAU;IAGkB,OAAO,EAAlD,cAAc,GAAC,eAAe,GAAC,IAAI;CAC7C,eAyIA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { pluralize as plur, capitalize, commaNumber } from '@vitessce/utils';
|
|
4
|
-
import { TitleInfo, useReady, useUrls, useGridItemSize, useFeatureLabelsData, useObsFeatureMatrixIndices, useCoordination, useLoaders, useExpandedFeatureLabelsMap, } from '@vitessce/vit-s';
|
|
4
|
+
import { TitleInfo, useReady, useUrls, useGridItemSize, useFeatureLabelsData, useObsFeatureMatrixIndices, useCoordination, useLoaders, useExpandedFeatureLabelsMap, useCoordinationScopes, } from '@vitessce/vit-s';
|
|
5
5
|
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
6
6
|
import { makeStyles } from '@vitessce/styles';
|
|
7
7
|
import FeatureList from './FeatureList.js';
|
|
@@ -38,8 +38,9 @@ const useStyles = makeStyles()(theme => ({
|
|
|
38
38
|
* @param {'featureIndex'|'featureLabels'|null} props.sortKey The information to use for sorting.
|
|
39
39
|
*/
|
|
40
40
|
export function FeatureListSubscriber(props) {
|
|
41
|
-
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort = 'alphabetical', sortKey = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST, } = props;
|
|
41
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort = 'alphabetical', sortKey = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST, } = props;
|
|
42
42
|
const loaders = useLoaders();
|
|
43
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
43
44
|
const [width, height, containerRef] = useGridItemSize();
|
|
44
45
|
const { classes } = useStyles();
|
|
45
46
|
// Get "props" from the coordination space.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/feature-list",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.18",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"react-virtualized": "^9.22.6",
|
|
22
22
|
"uuid": "^9.0.0",
|
|
23
23
|
"react-aria": "^3.28.0",
|
|
24
|
-
"@vitessce/styles": "3.6.
|
|
25
|
-
"@vitessce/constants-internal": "3.6.
|
|
26
|
-
"@vitessce/utils": "3.6.
|
|
27
|
-
"@vitessce/vit-s": "3.6.
|
|
24
|
+
"@vitessce/styles": "3.6.18",
|
|
25
|
+
"@vitessce/constants-internal": "3.6.18",
|
|
26
|
+
"@vitessce/utils": "3.6.18",
|
|
27
|
+
"@vitessce/vit-s": "3.6.18"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
package/src/FeatureList.js
CHANGED
|
@@ -114,7 +114,7 @@ export default function FeatureList(props) {
|
|
|
114
114
|
];
|
|
115
115
|
}, [showFeatureTable, primaryColumnName, hasFeatureLabels]);
|
|
116
116
|
|
|
117
|
-
return (
|
|
117
|
+
return (width > 0 && height > 0) ? (
|
|
118
118
|
<>
|
|
119
119
|
<input
|
|
120
120
|
className={classes.searchBar}
|
|
@@ -138,5 +138,5 @@ export default function FeatureList(props) {
|
|
|
138
138
|
height={height - 34}
|
|
139
139
|
/>
|
|
140
140
|
</>
|
|
141
|
-
);
|
|
141
|
+
) : null;
|
|
142
142
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
useFeatureLabelsData, useObsFeatureMatrixIndices,
|
|
7
7
|
useCoordination, useLoaders,
|
|
8
8
|
useExpandedFeatureLabelsMap,
|
|
9
|
+
useCoordinationScopes,
|
|
9
10
|
} from '@vitessce/vit-s';
|
|
10
11
|
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
11
12
|
import { makeStyles } from '@vitessce/styles';
|
|
@@ -47,7 +48,7 @@ const useStyles = makeStyles()(theme => ({
|
|
|
47
48
|
*/
|
|
48
49
|
export function FeatureListSubscriber(props) {
|
|
49
50
|
const {
|
|
50
|
-
coordinationScopes,
|
|
51
|
+
coordinationScopes: coordinationScopesRaw,
|
|
51
52
|
removeGridComponent,
|
|
52
53
|
variablesLabelOverride,
|
|
53
54
|
theme,
|
|
@@ -62,6 +63,7 @@ export function FeatureListSubscriber(props) {
|
|
|
62
63
|
} = props;
|
|
63
64
|
|
|
64
65
|
const loaders = useLoaders();
|
|
66
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
65
67
|
const [width, height, containerRef] = useGridItemSize();
|
|
66
68
|
const { classes } = useStyles();
|
|
67
69
|
|