gramene-search 1.6.8 → 1.6.10

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
- 156006950
2
- 1729099800436043000
1
+ 158404126
2
+ 1729191235100827000
@@ -1,2 +1,2 @@
1
- 156005280
2
- 1729099795714539000
1
+ 158403413
2
+ 1729191229232116000
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ var $gXNCa$reactsimpletreemenu = require("react-simple-tree-menu");
24
24
  var $gXNCa$aggridreact = require("ag-grid-react");
25
25
  require("ag-grid-community/styles/ag-grid.css");
26
26
  require("ag-grid-community/styles/ag-theme-quartz.css");
27
+ require("@fortawesome/fontawesome-free/css/all.min.css");
27
28
  var $gXNCa$gramenedbxrefs = require("gramene-dbxrefs");
28
29
  var $gXNCa$reacticonsai = require("react-icons/ai");
29
30
  var $gXNCa$gramenesearchvis = require("gramene-search-vis");
@@ -3287,6 +3288,7 @@ var $54c74a4689d5a778$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
3287
3288
 
3288
3289
 
3289
3290
 
3291
+
3290
3292
  const $283508ffcf8a47c4$var$ggURL = {
3291
3293
  IRRI: "https://gringlobal.irri.org/gringlobal/accessiondetail?id=",
3292
3294
  ARS: "https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=",
@@ -3480,7 +3482,8 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3480
3482
  const columnDefs = [
3481
3483
  {
3482
3484
  field: "pop",
3483
- headerName: "Study",
3485
+ headerName: "Study/Population",
3486
+ flex: 1,
3484
3487
  cellRenderer: (params)=>{
3485
3488
  if (params.data.summary || params.data.tally === 1) return params.value;
3486
3489
  return null;
@@ -3489,6 +3492,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3489
3492
  {
3490
3493
  field: "conseq",
3491
3494
  headerName: "VEP consequence",
3495
+ flex: 1,
3492
3496
  cellRenderer: (params)=>{
3493
3497
  if (params.data.summary || params.data.tally === 1) return params.value;
3494
3498
  return null;
@@ -3497,6 +3501,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3497
3501
  {
3498
3502
  field: "status",
3499
3503
  headerName: "Allele status",
3504
+ flex: 1,
3500
3505
  cellRenderer: (params)=>{
3501
3506
  if (params.data.summary || params.data.tally === 1) return params.value;
3502
3507
  return null;
@@ -3505,6 +3510,24 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3505
3510
  {
3506
3511
  field: "accession",
3507
3512
  headerName: "Order Germplasm",
3513
+ flex: 1,
3514
+ headerComponent: (props)=>{
3515
+ return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
3516
+ style: {
3517
+ display: "flex",
3518
+ alignItems: "center"
3519
+ },
3520
+ children: [
3521
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("i", {
3522
+ className: "fas fa-shopping-cart"
3523
+ }),
3524
+ "\xa0",
3525
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
3526
+ children: props.displayName
3527
+ })
3528
+ ]
3529
+ });
3530
+ },
3508
3531
  cellRenderer: (params)=>{
3509
3532
  if (params.value) return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($283508ffcf8a47c4$var$AccessionLink, {
3510
3533
  germplasm: params.value.germplasm,
@@ -3521,9 +3544,24 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3521
3544
  return null;
3522
3545
  }
3523
3546
  },
3547
+ {
3548
+ field: "synonym",
3549
+ headerName: "Synonym",
3550
+ filter: false,
3551
+ sortable: false,
3552
+ flex: 1,
3553
+ cellRenderer: (params)=>{
3554
+ console.log(params.data);
3555
+ if (params.data.accession) return params.data.accession.germplasm.ens_id;
3556
+ return null;
3557
+ }
3558
+ },
3524
3559
  {
3525
3560
  field: "search",
3526
3561
  headerName: "All LOF Genes",
3562
+ sortable: false,
3563
+ filter: false,
3564
+ flex: 1,
3527
3565
  cellRenderer: (params)=>{
3528
3566
  if (params.data.accession) {
3529
3567
  const currentURL = new URL(window.location.href);
@@ -3544,7 +3582,8 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3544
3582
  }
3545
3583
  ];
3546
3584
  const defaultColDef = {
3547
- sortable: false,
3585
+ sortable: true,
3586
+ filter: "agTextColumnFilter",
3548
3587
  cellStyle: (params)=>{
3549
3588
  if (params.data.summary) return {
3550
3589
  cursor: "pointer"
@@ -3558,7 +3597,8 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
3558
3597
  className: "ag-theme-quartz",
3559
3598
  style: {
3560
3599
  height: tableHeight,
3561
- width: "100%"
3600
+ width: "100%",
3601
+ maxWidth: "1200px"
3562
3602
  },
3563
3603
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$aggridreact.AgGridReact), {
3564
3604
  rowData: getVisibleRowData(),