gramene-search 1.2.92 → 1.2.94
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/.parcel-cache/2126881b633272fa.txt +2 -2
- package/.parcel-cache/425346ba6a54d932 +0 -0
- package/.parcel-cache/878e3ffbad677982 +0 -0
- package/.parcel-cache/a6c49560dea3583b +0 -0
- package/.parcel-cache/cdecf11601322051 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/dist/Study.5f95cb67.js +137 -0
- package/dist/Study.5f95cb67.js.map +1 -0
- package/dist/index.css +45 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +222 -136
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/src/bundles/api.js +48 -19
- package/src/bundles/views.js +34 -10
- package/src/components/geneSearchUI.js +54 -33
- package/src/components/results/Expression.js +35 -53
- package/src/components/results/Study.js +73 -0
- package/src/components/results/expression.css +6 -0
- package/src/components/styles.css +36 -3
- package/src/demo.js +6 -2
- /package/.parcel-cache/{3b8e7c6ab7756ca5 → 11d1ed8b6259bb81} +0 -0
- /package/.parcel-cache/{a624395455dab5d7 → 31cffa0c08330755} +0 -0
- /package/.parcel-cache/{32c80d3a9b1b4a25 → 34cd372d03cfca2a} +0 -0
- /package/.parcel-cache/{c4f98e65ba2af684 → b352b4d02fce877b} +0 -0
- /package/.parcel-cache/{68fedc00409faa07 → b506b571fb8c5cd8} +0 -0
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var $gXNCa$reactjsxruntime = require("react/jsx-runtime");
|
|
|
9
9
|
var $gXNCa$reduxbundlerreact = require("redux-bundler-react");
|
|
10
10
|
var $gXNCa$react = require("react");
|
|
11
11
|
var $gXNCa$reactbootstrap = require("react-bootstrap");
|
|
12
|
+
var $gXNCa$reactswitch = require("react-switch");
|
|
12
13
|
var $gXNCa$reacticonsio5 = require("react-icons/io5");
|
|
13
14
|
var $gXNCa$reacticonsbs = require("react-icons/bs");
|
|
14
15
|
var $gXNCa$reacticonsgr = require("react-icons/gr");
|
|
@@ -31,6 +32,49 @@ function $parcel$export(e, n, v, s) {
|
|
|
31
32
|
function $parcel$interopDefault(a) {
|
|
32
33
|
return a && a.__esModule ? a.default : a;
|
|
33
34
|
}
|
|
35
|
+
var $parcel$global =
|
|
36
|
+
typeof globalThis !== 'undefined'
|
|
37
|
+
? globalThis
|
|
38
|
+
: typeof self !== 'undefined'
|
|
39
|
+
? self
|
|
40
|
+
: typeof window !== 'undefined'
|
|
41
|
+
? window
|
|
42
|
+
: typeof global !== 'undefined'
|
|
43
|
+
? global
|
|
44
|
+
: {};
|
|
45
|
+
var $parcel$modules = {};
|
|
46
|
+
var $parcel$inits = {};
|
|
47
|
+
|
|
48
|
+
var parcelRequire = $parcel$global["parcelRequire7a41"];
|
|
49
|
+
if (parcelRequire == null) {
|
|
50
|
+
parcelRequire = function(id) {
|
|
51
|
+
if (id in $parcel$modules) {
|
|
52
|
+
return $parcel$modules[id].exports;
|
|
53
|
+
}
|
|
54
|
+
if (id in $parcel$inits) {
|
|
55
|
+
var init = $parcel$inits[id];
|
|
56
|
+
delete $parcel$inits[id];
|
|
57
|
+
var module = {id: id, exports: {}};
|
|
58
|
+
$parcel$modules[id] = module;
|
|
59
|
+
init.call(module.exports, module, module.exports);
|
|
60
|
+
return module.exports;
|
|
61
|
+
}
|
|
62
|
+
var err = new Error("Cannot find module '" + id + "'");
|
|
63
|
+
err.code = 'MODULE_NOT_FOUND';
|
|
64
|
+
throw err;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
parcelRequire.register = function register(id, init) {
|
|
68
|
+
$parcel$inits[id] = init;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
$parcel$global["parcelRequire7a41"] = parcelRequire;
|
|
72
|
+
}
|
|
73
|
+
parcelRequire.register("7u0Mi", function(module, exports) {
|
|
74
|
+
module.exports = Promise.resolve(require("./Study.5f95cb67.js")).then(()=>parcelRequire("7zuJ6"));
|
|
75
|
+
|
|
76
|
+
});
|
|
77
|
+
|
|
34
78
|
|
|
35
79
|
$parcel$export(module.exports, "bundles", () => $5df6c55c1bef3469$export$2e2bcd8739ae039);
|
|
36
80
|
$parcel$export(module.exports, "resultList", () => $2fec4872fbf7ebd2$export$2e2bcd8739ae039);
|
|
@@ -150,6 +194,40 @@ $9d9aeaf9299e61a1$var$grameneMaps.reactGrameneMaps = (0, $gXNCa$reduxbundler.cre
|
|
|
150
194
|
actionCreator: "doFetchGrameneMaps"
|
|
151
195
|
};
|
|
152
196
|
});
|
|
197
|
+
const $9d9aeaf9299e61a1$var$expressionStudies = (0, $gXNCa$reduxbundler.createAsyncResourceBundle)({
|
|
198
|
+
name: "expressionStudies",
|
|
199
|
+
actionBaseType: "EXPRESSION_STUDIES",
|
|
200
|
+
persist: true,
|
|
201
|
+
getPromise: ({ store: store })=>{
|
|
202
|
+
return fetch(`${store.selectGrameneAPI()}/experiments?rows=-1`).then((res)=>res.json()).then((res)=>(0, ($parcel$interopDefault($gXNCa$lodash))).groupBy(res, "taxon_id"));
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
$9d9aeaf9299e61a1$var$expressionStudies.reactExpressionStudies = (0, $gXNCa$reduxbundler.createSelector)("selectExpressionStudiesShouldUpdate", (shouldUpdate)=>{
|
|
206
|
+
if (shouldUpdate) return {
|
|
207
|
+
actionCreator: "doFetchExpressionStudies"
|
|
208
|
+
};
|
|
209
|
+
});
|
|
210
|
+
const $9d9aeaf9299e61a1$var$expressionSamples = (0, $gXNCa$reduxbundler.createAsyncResourceBundle)({
|
|
211
|
+
name: "expressionSamples",
|
|
212
|
+
actionBaseType: "EXPRESSION_SAMPLES",
|
|
213
|
+
persist: true,
|
|
214
|
+
getPromise: ({ store: store })=>{
|
|
215
|
+
return fetch(`${store.selectGrameneAPI()}/assays?rows=-1`).then((res)=>res.json()).then((samples)=>(0, ($parcel$interopDefault($gXNCa$lodash))).groupBy(samples, "experiment")).then((studies)=>{
|
|
216
|
+
Object.keys(studies).forEach((study)=>{
|
|
217
|
+
studies[study].forEach((sample)=>{
|
|
218
|
+
sample.order = +sample.group.replace("g", "");
|
|
219
|
+
});
|
|
220
|
+
studies[study].sort((a, b)=>a.order - b.order);
|
|
221
|
+
});
|
|
222
|
+
return studies;
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
$9d9aeaf9299e61a1$var$expressionSamples.reactExpressionSamples = (0, $gXNCa$reduxbundler.createSelector)("selectExpressionSamplesShouldUpdate", (shouldUpdate)=>{
|
|
227
|
+
if (shouldUpdate) return {
|
|
228
|
+
actionCreator: "doFetchExpressionSamples"
|
|
229
|
+
};
|
|
230
|
+
});
|
|
153
231
|
const $9d9aeaf9299e61a1$var$curatedGenes = (0, $gXNCa$reduxbundler.createAsyncResourceBundle)({
|
|
154
232
|
name: "curatedGenes",
|
|
155
233
|
actionBaseType: "CURATED_GENES",
|
|
@@ -163,24 +241,6 @@ $9d9aeaf9299e61a1$var$curatedGenes.reactCuratedGenes = (0, $gXNCa$reduxbundler.c
|
|
|
163
241
|
actionCreator: "doFetchCuratedGenes"
|
|
164
242
|
};
|
|
165
243
|
});
|
|
166
|
-
// const grameneExpressionStudies = createAsyncResourceBundle( {
|
|
167
|
-
// name: 'grameneExpressionStudies',
|
|
168
|
-
// actionBaseType: 'GRAMENE_EXPRESSION_STUDIES',
|
|
169
|
-
// persist: true,
|
|
170
|
-
// getPromise: ({store}) => {
|
|
171
|
-
// return fetch(`${store.selectGrameneAPI()}/experiments?rows=-1`)
|
|
172
|
-
// .then(res => res.json())
|
|
173
|
-
// .then(res => _.keyBy(res, '_id'))
|
|
174
|
-
// }
|
|
175
|
-
// });
|
|
176
|
-
// grameneExpressionStudies.reactGrameneExpressionStudies = createSelector(
|
|
177
|
-
// 'selectGrameneExpressionStudiesShouldUpdate',
|
|
178
|
-
// (shouldUpdate) => {
|
|
179
|
-
// if (shouldUpdate) {
|
|
180
|
-
// return { actionCreator: 'doFetchGrameneExpressionStudies' }
|
|
181
|
-
// }
|
|
182
|
-
// }
|
|
183
|
-
// );
|
|
184
244
|
//
|
|
185
245
|
// const grameneExpressionAssays = createAsyncResourceBundle( {
|
|
186
246
|
// name: 'grameneExpressionAssays',
|
|
@@ -532,8 +592,7 @@ var // function selectFacetIDs(store, field) {
|
|
|
532
592
|
// .then(res => res.json())
|
|
533
593
|
// .then(docs => {return {taxonomy: docs, numFound: docs.length}})
|
|
534
594
|
// });
|
|
535
|
-
$9d9aeaf9299e61a1$export$2e2bcd8739ae039
|
|
536
|
-
= [
|
|
595
|
+
$9d9aeaf9299e61a1$export$2e2bcd8739ae039 = [
|
|
537
596
|
$9d9aeaf9299e61a1$var$grameneSuggestions,
|
|
538
597
|
$9d9aeaf9299e61a1$var$grameneSearch,
|
|
539
598
|
$9d9aeaf9299e61a1$var$grameneMaps,
|
|
@@ -541,7 +600,9 @@ $9d9aeaf9299e61a1$export$2e2bcd8739ae039 //, grameneExpressionStudies, grameneEx
|
|
|
541
600
|
$9d9aeaf9299e61a1$var$grameneTaxDist,
|
|
542
601
|
$9d9aeaf9299e61a1$var$grameneOrthologs,
|
|
543
602
|
$9d9aeaf9299e61a1$var$curatedGenes,
|
|
544
|
-
$9d9aeaf9299e61a1$var$grameneGeneAttribs
|
|
603
|
+
$9d9aeaf9299e61a1$var$grameneGeneAttribs,
|
|
604
|
+
$9d9aeaf9299e61a1$var$expressionSamples,
|
|
605
|
+
$9d9aeaf9299e61a1$var$expressionStudies
|
|
545
606
|
];
|
|
546
607
|
|
|
547
608
|
|
|
@@ -1175,27 +1236,32 @@ const $24971af0a229e0e3$var$grameneViews = {
|
|
|
1175
1236
|
{
|
|
1176
1237
|
id: "help",
|
|
1177
1238
|
name: "Help / Demo",
|
|
1178
|
-
show: "
|
|
1239
|
+
show: "disabled",
|
|
1240
|
+
shouldScroll: false
|
|
1179
1241
|
},
|
|
1180
1242
|
{
|
|
1181
1243
|
id: "taxonomy",
|
|
1182
1244
|
name: "Taxonomic distribution",
|
|
1183
|
-
show: "on"
|
|
1245
|
+
show: "on",
|
|
1246
|
+
shouldScroll: false
|
|
1184
1247
|
},
|
|
1185
1248
|
{
|
|
1186
1249
|
id: "list",
|
|
1187
1250
|
name: "Gene list",
|
|
1188
|
-
show: "on"
|
|
1189
|
-
|
|
1190
|
-
{
|
|
1191
|
-
id: "attribs",
|
|
1192
|
-
name: "Gene attributes",
|
|
1193
|
-
show: "off"
|
|
1251
|
+
show: "on",
|
|
1252
|
+
shouldScroll: false
|
|
1194
1253
|
},
|
|
1195
1254
|
{
|
|
1196
1255
|
id: "expression",
|
|
1197
1256
|
name: "Gene expression",
|
|
1198
|
-
show: "off"
|
|
1257
|
+
show: "off",
|
|
1258
|
+
shouldScroll: false
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
id: "attribs",
|
|
1262
|
+
name: "Gene attributes",
|
|
1263
|
+
show: "disabled",
|
|
1264
|
+
shouldScroll: false
|
|
1199
1265
|
}
|
|
1200
1266
|
]
|
|
1201
1267
|
};
|
|
@@ -1204,7 +1270,23 @@ const $24971af0a229e0e3$var$grameneViews = {
|
|
|
1204
1270
|
switch(type){
|
|
1205
1271
|
case "GRAMENE_VIEW_TOGGLED":
|
|
1206
1272
|
newState = Object.assign({}, state);
|
|
1207
|
-
newState.options
|
|
1273
|
+
newState.options.forEach((view)=>{
|
|
1274
|
+
view.shouldScroll = false;
|
|
1275
|
+
if (view.id === payload) {
|
|
1276
|
+
view.show = view.show === "on" ? "off" : "on";
|
|
1277
|
+
view.shouldScroll = view.show === "on";
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
return newState;
|
|
1281
|
+
case "GRAMENE_VIEW_CLICKED":
|
|
1282
|
+
newState = Object.assign({}, state);
|
|
1283
|
+
newState.options.forEach((view)=>{
|
|
1284
|
+
view.shouldScroll = false;
|
|
1285
|
+
if (view.id === payload) {
|
|
1286
|
+
view.show = view.show === "on" ? "on" : "on";
|
|
1287
|
+
view.shouldScroll = view.show === "on";
|
|
1288
|
+
}
|
|
1289
|
+
});
|
|
1208
1290
|
return newState;
|
|
1209
1291
|
default:
|
|
1210
1292
|
return state;
|
|
@@ -1217,6 +1299,12 @@ const $24971af0a229e0e3$var$grameneViews = {
|
|
|
1217
1299
|
payload: idx
|
|
1218
1300
|
});
|
|
1219
1301
|
},
|
|
1302
|
+
dontToggleGrameneView: (idx)=>({ dispatch: dispatch , getState: getState })=>{
|
|
1303
|
+
dispatch({
|
|
1304
|
+
type: "GRAMENE_VIEW_CLICKED",
|
|
1305
|
+
payload: idx
|
|
1306
|
+
});
|
|
1307
|
+
},
|
|
1220
1308
|
selectGrameneViews: (state)=>state.grameneViews
|
|
1221
1309
|
};
|
|
1222
1310
|
var $24971af0a229e0e3$export$2e2bcd8739ae039 = $24971af0a229e0e3$var$grameneViews;
|
|
@@ -2015,6 +2103,7 @@ var $541b8b0d8c5501d2$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
|
|
|
2015
2103
|
|
|
2016
2104
|
|
|
2017
2105
|
|
|
2106
|
+
|
|
2018
2107
|
const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
2019
2108
|
const gene = props.geneDocs[props.searchResult.id];
|
|
2020
2109
|
let paralogs_url;
|
|
@@ -4706,83 +4795,71 @@ var $76e15aea9236bd47$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
|
|
|
4706
4795
|
|
|
4707
4796
|
|
|
4708
4797
|
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
children:
|
|
4798
|
+
|
|
4799
|
+
|
|
4800
|
+
|
|
4801
|
+
const $261baeb81c4d4d8a$var$LazyStudy = /*#__PURE__*/ (0, ($parcel$interopDefault($gXNCa$react))).lazy(()=>(parcelRequire("7u0Mi")));
|
|
4802
|
+
const $261baeb81c4d4d8a$var$StudyList = (props)=>{
|
|
4803
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion), {
|
|
4804
|
+
alwaysOpen: true,
|
|
4805
|
+
defaultActiveKey: props.studies.length === 1 ? "study_0" : undefined,
|
|
4806
|
+
children: props.studies.map((study, idx)=>{
|
|
4807
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Accordion).Item, {
|
|
4808
|
+
eventKey: "study_" + idx,
|
|
4809
|
+
children: [
|
|
4810
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Header, {
|
|
4811
|
+
children: study.description
|
|
4812
|
+
}),
|
|
4813
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Body, {
|
|
4814
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$react.Suspense), {
|
|
4815
|
+
fallback: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("div", {
|
|
4816
|
+
children: "Loading..."
|
|
4817
|
+
}),
|
|
4818
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($261baeb81c4d4d8a$var$LazyStudy, {
|
|
4819
|
+
id: study._id
|
|
4820
|
+
})
|
|
4821
|
+
})
|
|
4822
|
+
})
|
|
4823
|
+
]
|
|
4824
|
+
}, idx);
|
|
4825
|
+
})
|
|
4718
4826
|
});
|
|
4719
4827
|
};
|
|
4720
|
-
const $261baeb81c4d4d8a$var$Study = (0, $gXNCa$reduxbundlerreact.connect)("selectGrameneSearch", "selectAtlasStudies", "doRequestStudyMetadata", $261baeb81c4d4d8a$var$StudyCmp);
|
|
4721
4828
|
const $261baeb81c4d4d8a$var$Expression = (props)=>{
|
|
4722
|
-
const [taxon, setTaxon] = (0, $gXNCa$react.useState)(0);
|
|
4723
|
-
const [study, setStudy] = (0, $gXNCa$react.useState)(0);
|
|
4724
4829
|
let searchTaxa = {};
|
|
4725
|
-
let availableTaxa = [];
|
|
4726
4830
|
if (props.grameneSearch) {
|
|
4727
4831
|
const taxon_id_facet = props.grameneSearch.facet_counts.facet_fields.taxon_id;
|
|
4728
4832
|
taxon_id_facet.filter((tid, idx)=>idx % 2 === 0).forEach((tid)=>searchTaxa[tid] = true);
|
|
4729
4833
|
}
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("select", {
|
|
4739
|
-
id: "taxonomySelect",
|
|
4740
|
-
value: taxon,
|
|
4741
|
-
onChange: (e)=>{
|
|
4742
|
-
setTaxon(e.target.value);
|
|
4743
|
-
setStudy(0);
|
|
4744
|
-
},
|
|
4745
|
-
children: [
|
|
4746
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("option", {
|
|
4747
|
-
value: "",
|
|
4748
|
-
children: "Select..."
|
|
4749
|
-
}),
|
|
4750
|
-
availableTaxa.map((tid, idx)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("option", {
|
|
4751
|
-
value: tid,
|
|
4752
|
-
children: props.grameneTaxonomy[tid].name
|
|
4753
|
-
}, idx))
|
|
4754
|
-
]
|
|
4755
|
-
}),
|
|
4756
|
-
taxon > 0 && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
|
|
4834
|
+
const availableTaxa = Object.keys(props.expressionStudies).filter((tid)=>searchTaxa[tid] || searchTaxa[tid + "001"]).sort((a, b)=>props.grameneMaps[a + "001"].left_index - props.grameneMaps[b + "001"].left_index);
|
|
4835
|
+
return availableTaxa && props.grameneTaxonomy && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion), {
|
|
4836
|
+
alwaysOpen: true,
|
|
4837
|
+
defaultActiveKey: availableTaxa.length === 1 ? "tax_0" : undefined,
|
|
4838
|
+
children: availableTaxa.map((tid, idx)=>{
|
|
4839
|
+
const n = props.expressionStudies[tid].length;
|
|
4840
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Accordion).Item, {
|
|
4841
|
+
eventKey: "tax_" + idx,
|
|
4757
4842
|
children: [
|
|
4758
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.
|
|
4759
|
-
htmlFor: "studySelect",
|
|
4760
|
-
children: "Select Study:"
|
|
4761
|
-
}),
|
|
4762
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("select", {
|
|
4763
|
-
id: "studySelect",
|
|
4764
|
-
value: study,
|
|
4765
|
-
onChange: (e)=>setStudy(e.target.value),
|
|
4843
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Accordion).Header, {
|
|
4766
4844
|
children: [
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
value: sid,
|
|
4773
|
-
children: props.atlasStudies.byID[sid].description
|
|
4774
|
-
}, idx))
|
|
4845
|
+
props.grameneTaxonomy[tid].name,
|
|
4846
|
+
" - ",
|
|
4847
|
+
n,
|
|
4848
|
+
" ",
|
|
4849
|
+
n === 1 ? "study" : "studies"
|
|
4775
4850
|
]
|
|
4851
|
+
}),
|
|
4852
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Body, {
|
|
4853
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($261baeb81c4d4d8a$var$StudyList, {
|
|
4854
|
+
studies: props.expressionStudies[tid]
|
|
4855
|
+
})
|
|
4776
4856
|
})
|
|
4777
4857
|
]
|
|
4778
|
-
})
|
|
4779
|
-
|
|
4780
|
-
sid: study
|
|
4781
|
-
})
|
|
4782
|
-
]
|
|
4858
|
+
}, idx);
|
|
4859
|
+
})
|
|
4783
4860
|
});
|
|
4784
4861
|
};
|
|
4785
|
-
var $261baeb81c4d4d8a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)("selectConfiguration", "selectGrameneSearch", "selectGrameneTaxonomy", "
|
|
4862
|
+
var $261baeb81c4d4d8a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)("selectConfiguration", "selectGrameneSearch", "selectGrameneTaxonomy", "selectGrameneMaps", "selectExpressionStudies", $261baeb81c4d4d8a$var$Expression);
|
|
4786
4863
|
|
|
4787
4864
|
|
|
4788
4865
|
|
|
@@ -4856,7 +4933,6 @@ const $693dd8c7a5607c3a$var$StatusCmp = (props)=>{
|
|
|
4856
4933
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("div", {
|
|
4857
4934
|
style: {
|
|
4858
4935
|
padding: "5px",
|
|
4859
|
-
backgroundColor: "dimgray",
|
|
4860
4936
|
color: "cornsilk",
|
|
4861
4937
|
fontSize: "small"
|
|
4862
4938
|
},
|
|
@@ -5055,20 +5131,39 @@ const $693dd8c7a5607c3a$var$FiltersCmp = (props)=>{
|
|
|
5055
5131
|
};
|
|
5056
5132
|
const $693dd8c7a5607c3a$export$92a576f896a9bf72 = (0, $gXNCa$reduxbundlerreact.connect)("selectGrameneFilters", "doNegateGrameneFilter", "doDeleteGrameneFilter", "doChangeGrameneFilterOperation", "doMoveOrCopyGrameneFilter", "doMarkGrameneFilterTargets", "doUnmarkGrameneFilterTargets", "doToggleGrameneFilterMenu", "doClearGrameneFilters", $693dd8c7a5607c3a$var$FiltersCmp);
|
|
5057
5133
|
const $693dd8c7a5607c3a$var$ResultsCmp = (props)=>{
|
|
5058
|
-
let activeViews = props.grameneViews.options
|
|
5059
|
-
v.idx = idx;
|
|
5060
|
-
return v.show === "on";
|
|
5061
|
-
});
|
|
5134
|
+
let activeViews = props.grameneViews.options;
|
|
5062
5135
|
return props.grameneFilters.rightIdx > 0 ? /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("div", {
|
|
5063
5136
|
style: {
|
|
5064
5137
|
padding: "10px"
|
|
5065
5138
|
},
|
|
5066
|
-
children: activeViews.map((v)=>{
|
|
5139
|
+
children: activeViews.map((v, idx)=>{
|
|
5067
5140
|
let p = Object.assign({}, props);
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5141
|
+
const divRef = (0, $gXNCa$react.useRef)(null);
|
|
5142
|
+
(0, $gXNCa$react.useEffect)(()=>{
|
|
5143
|
+
if (v.shouldScroll) {
|
|
5144
|
+
const navBarHeight = 106;
|
|
5145
|
+
const scrollPosition = divRef.current.offsetTop - navBarHeight;
|
|
5146
|
+
window.scrollTo({
|
|
5147
|
+
top: scrollPosition,
|
|
5148
|
+
behavior: "smooth"
|
|
5149
|
+
});
|
|
5150
|
+
}
|
|
5151
|
+
}, [
|
|
5152
|
+
v.shouldScroll
|
|
5153
|
+
]);
|
|
5154
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
|
|
5155
|
+
ref: divRef,
|
|
5156
|
+
children: [
|
|
5157
|
+
v.show === "on" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("div", {
|
|
5158
|
+
style: {
|
|
5159
|
+
borderTopWidth: "medium"
|
|
5160
|
+
},
|
|
5161
|
+
className: "gramene-view-header",
|
|
5162
|
+
children: v.name
|
|
5163
|
+
}),
|
|
5164
|
+
v.show === "on" && /*#__PURE__*/ (0, ($parcel$interopDefault($gXNCa$react))).createElement($693dd8c7a5607c3a$var$inventory[v.id], p)
|
|
5165
|
+
]
|
|
5166
|
+
}, idx);
|
|
5072
5167
|
})
|
|
5073
5168
|
}) : null;
|
|
5074
5169
|
};
|
|
@@ -5079,41 +5174,32 @@ const $693dd8c7a5607c3a$var$ViewsCmp = (props)=>/*#__PURE__*/ (0, $gXNCa$reactjs
|
|
|
5079
5174
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("b", {
|
|
5080
5175
|
children: "Views"
|
|
5081
5176
|
}),
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
}),
|
|
5106
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("li", {
|
|
5107
|
-
className: "gramene-view-disabled",
|
|
5108
|
-
children: "Disabled"
|
|
5109
|
-
})
|
|
5110
|
-
]
|
|
5111
|
-
})
|
|
5112
|
-
]
|
|
5113
|
-
})
|
|
5177
|
+
props.grameneViews.options.filter((view)=>view.show !== "disabled").map((view, idx)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
|
|
5178
|
+
style: {
|
|
5179
|
+
textWrap: "nowrap"
|
|
5180
|
+
},
|
|
5181
|
+
children: [
|
|
5182
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$reactswitch))), {
|
|
5183
|
+
onChange: ()=>props.doToggleGrameneView(view.id),
|
|
5184
|
+
checked: view.show === "on",
|
|
5185
|
+
height: 18,
|
|
5186
|
+
width: 30,
|
|
5187
|
+
handleDiameter: 16,
|
|
5188
|
+
checkedIcon: false,
|
|
5189
|
+
uncheckedIcon: false
|
|
5190
|
+
}),
|
|
5191
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
5192
|
+
className: `gramene-view-span-${view.show}`,
|
|
5193
|
+
onClick: (e)=>{
|
|
5194
|
+
props.dontToggleGrameneView(view.id);
|
|
5195
|
+
},
|
|
5196
|
+
children: view.name
|
|
5197
|
+
})
|
|
5198
|
+
]
|
|
5199
|
+
}, idx))
|
|
5114
5200
|
]
|
|
5115
5201
|
});
|
|
5116
|
-
const $693dd8c7a5607c3a$export$5cb791131c501f6a = (0, $gXNCa$reduxbundlerreact.connect)("selectGrameneViews", "doToggleGrameneView", $693dd8c7a5607c3a$var$ViewsCmp);
|
|
5202
|
+
const $693dd8c7a5607c3a$export$5cb791131c501f6a = (0, $gXNCa$reduxbundlerreact.connect)("selectGrameneViews", "doToggleGrameneView", "dontToggleGrameneView", $693dd8c7a5607c3a$var$ViewsCmp);
|
|
5117
5203
|
|
|
5118
5204
|
|
|
5119
5205
|
|