gramene-search 1.6.6 → 1.6.8

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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 152020407
2
- 1729029155640539000
1
+ 156006950
2
+ 1729099800436043000
@@ -1,2 +1,2 @@
1
- 152019833
2
- 1729029148314911000
1
+ 156005280
2
+ 1729099795714539000
package/dist/index.js CHANGED
@@ -3287,87 +3287,12 @@ var $54c74a4689d5a778$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
3287
3287
 
3288
3288
 
3289
3289
 
3290
-
3291
3290
  const $283508ffcf8a47c4$var$ggURL = {
3292
3291
  IRRI: "https://gringlobal.irri.org/gringlobal/accessiondetail?id=",
3293
3292
  ARS: "https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=",
3294
3293
  ICRISAT: "https://genebank.icrisat.org/IND/PassportSummary?ID=",
3295
3294
  sorbmutdb: "https://www.depts.ttu.edu/igcast/sorbmutdb.php"
3296
3295
  };
3297
- const $283508ffcf8a47c4$var$metaRenderer = (params)=>{
3298
- if (params.value.field === "accessions") {
3299
- const accs = params.value.accessions;
3300
- return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion), {
3301
- children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Accordion).Item, {
3302
- children: [
3303
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Header, {
3304
- children: accs.length
3305
- }),
3306
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Accordion).Body, {
3307
- children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("p", {
3308
- children: 'This is where the "table" goes'
3309
- })
3310
- })
3311
- ]
3312
- })
3313
- });
3314
- }
3315
- if (params.value.field === "germplasm") {
3316
- const genebank = params.value.stock_center;
3317
- const url = $283508ffcf8a47c4$var$ggURL[genebank];
3318
- if (params.value.germplasm_dbid && url && params.value.germplasm_dbid !== "0") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("a", {
3319
- target: "_blank",
3320
- href: `${url}${params.value.germplasm_dbid}`,
3321
- children: [
3322
- params.value.pub_id,
3323
- " (",
3324
- genebank,
3325
- ")"
3326
- ]
3327
- });
3328
- if (genebank === "sorbmutdb") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("form", {
3329
- id: params.value.pub_id,
3330
- action: url,
3331
- method: "post",
3332
- target: "_blank",
3333
- children: [
3334
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
3335
- type: "hidden",
3336
- name: "search",
3337
- value: params.value.gene_id.replace("SORBI_3", "Sobic.")
3338
- }),
3339
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
3340
- type: "hidden",
3341
- name: "submit",
3342
- value: "Search"
3343
- }),
3344
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("button", {
3345
- type: "submit",
3346
- className: "button-like-link",
3347
- children: "SorbMutDB"
3348
- })
3349
- ]
3350
- });
3351
- }
3352
- if (params.value.field === "search") {
3353
- const currentURL = new URL(window.location.href);
3354
- currentURL.search = "";
3355
- currentURL.searchParams.set("category", "Germplasm");
3356
- currentURL.searchParams.set("fq_field", `VEP__merged__${params.value.pop_type}__attr_ss`);
3357
- currentURL.searchParams.set("fq_value", params.value.ens_id);
3358
- currentURL.searchParams.set("name", params.value.ens_id);
3359
- return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Button), {
3360
- size: "sm",
3361
- href: currentURL.toString(),
3362
- children: "Search"
3363
- });
3364
- }
3365
- return params.value.label;
3366
- };
3367
- const $283508ffcf8a47c4$var$sortByLabel = (valueA, valueB, nodeA, nodeB, isDescending)=>{
3368
- if (valueA.label === valueB.label) return 0;
3369
- return valueA.label > valueB.label ? 1 : -1;
3370
- };
3371
3296
  const $283508ffcf8a47c4$var$rice_studies = {
3372
3297
  "1": {
3373
3298
  label: "Rice 3K",
@@ -3428,10 +3353,10 @@ const $283508ffcf8a47c4$var$study_info = {
3428
3353
  "oryza_sativazs97": $283508ffcf8a47c4$var$rice_studies
3429
3354
  };
3430
3355
  const $283508ffcf8a47c4$var$AccessionLink = ({ germplasm: germplasm, gene_id: gene_id })=>{
3356
+ const genebank = germplasm.stock_center;
3357
+ const url = $283508ffcf8a47c4$var$ggURL[genebank];
3431
3358
  if (germplasm.germplasm_dbid) {
3432
3359
  const germ_id = germplasm.germplasm_dbid;
3433
- const genebank = germplasm.stock_center;
3434
- const url = $283508ffcf8a47c4$var$ggURL[genebank];
3435
3360
  if (germ_id && url && germ_id !== "0") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("a", {
3436
3361
  target: "_blank",
3437
3362
  href: `${url}${germ_id}`,
@@ -3442,30 +3367,30 @@ const $283508ffcf8a47c4$var$AccessionLink = ({ germplasm: germplasm, gene_id: ge
3442
3367
  ")"
3443
3368
  ]
3444
3369
  });
3445
- if (genebank === "sorbmutdb") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("form", {
3446
- id: germplasm.pub_id,
3447
- action: url,
3448
- method: "post",
3449
- target: "_blank",
3450
- children: [
3451
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
3452
- type: "hidden",
3453
- name: "search",
3454
- value: gene_id.replace("SORBI_3", "Sobic.")
3455
- }),
3456
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
3457
- type: "hidden",
3458
- name: "submit",
3459
- value: "Search"
3460
- }),
3461
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("button", {
3462
- type: "submit",
3463
- className: "button-like-link",
3464
- children: "SorbMutDB"
3465
- })
3466
- ]
3467
- });
3468
3370
  }
3371
+ if (genebank === "sorbmutdb") return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("form", {
3372
+ id: germplasm.pub_id,
3373
+ action: url,
3374
+ method: "post",
3375
+ target: "_blank",
3376
+ children: [
3377
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
3378
+ type: "hidden",
3379
+ name: "search",
3380
+ value: gene_id.replace("SORBI_3", "Sobic.")
3381
+ }),
3382
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("input", {
3383
+ type: "hidden",
3384
+ name: "submit",
3385
+ value: "Search"
3386
+ }),
3387
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("button", {
3388
+ type: "submit",
3389
+ className: "button-like-link",
3390
+ children: "SorbMutDB"
3391
+ })
3392
+ ]
3393
+ });
3469
3394
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
3470
3395
  children: germplasm.pub_id
3471
3396
  });
@@ -3534,7 +3459,6 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3534
3459
  if (row.summary) initialExpanded[row.group] = row.tally < $283508ffcf8a47c4$var$THRESHOLD;
3535
3460
  });
3536
3461
  const [expandedGroups, setExpandedGroups] = (0, $gXNCa$react.useState)(initialExpanded);
3537
- // const gridRef = useRef();
3538
3462
  // Toggle group visibility
3539
3463
  const toggleGroup = (group)=>{
3540
3464
  setExpandedGroups((prevExpandedGroups)=>({
@@ -3622,9 +3546,6 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3622
3546
  const defaultColDef = {
3623
3547
  sortable: false,
3624
3548
  cellStyle: (params)=>{
3625
- // if (!params.data.summary) {
3626
- // return {paddingLeft: '30px'};
3627
- // }
3628
3549
  if (params.data.summary) return {
3629
3550
  cursor: "pointer"
3630
3551
  };