gramene-search 2.23.0 → 2.23.1
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 +31 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10206,6 +10206,21 @@ var $54c74a4689d5a778$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
|
|
|
10206
10206
|
|
|
10207
10207
|
|
|
10208
10208
|
|
|
10209
|
+
// Grid row height. Overrides the ag-theme-quartz default (42px) via the
|
|
10210
|
+
// `rowHeight` prop, and drives the container height calc below so the two
|
|
10211
|
+
// can't drift apart.
|
|
10212
|
+
const $283508ffcf8a47c4$var$ROW_HEIGHT = 36;
|
|
10213
|
+
// Header allowance in the container height calc (quartz header ≈ 49px).
|
|
10214
|
+
const $283508ffcf8a47c4$var$HEADER_HEIGHT_ALLOWANCE = 50;
|
|
10215
|
+
// Compact "Search" button so it sits comfortably inside a ROW_HEIGHT row —
|
|
10216
|
+
// react-bootstrap's `size="sm"` alone is ~31px, which crowds a 36px row.
|
|
10217
|
+
// Bump padding/fontSize here if the button should be taller.
|
|
10218
|
+
const $283508ffcf8a47c4$var$SEARCH_BUTTON_STYLE = {
|
|
10219
|
+
whiteSpace: 'nowrap',
|
|
10220
|
+
lineHeight: 1.4,
|
|
10221
|
+
padding: '1px 8px',
|
|
10222
|
+
fontSize: 12
|
|
10223
|
+
};
|
|
10209
10224
|
const $283508ffcf8a47c4$var$ggURL = {
|
|
10210
10225
|
xIRRI: 'https://gringlobal.irri.org/gringlobal/accessiondetail?id=',
|
|
10211
10226
|
IRRI: 'https://www.irri.org/genesys-rice#/a/',
|
|
@@ -10500,6 +10515,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
10500
10515
|
currentURL.searchParams.set('name', accession.germplasm.ens_id);
|
|
10501
10516
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Button), {
|
|
10502
10517
|
size: "sm",
|
|
10518
|
+
style: $283508ffcf8a47c4$var$SEARCH_BUTTON_STYLE,
|
|
10503
10519
|
href: currentURL.toString(),
|
|
10504
10520
|
children: "Search"
|
|
10505
10521
|
});
|
|
@@ -10519,7 +10535,7 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
10519
10535
|
}
|
|
10520
10536
|
};
|
|
10521
10537
|
const nVisible = getVisibleRowData().length;
|
|
10522
|
-
const tableHeight =
|
|
10538
|
+
const tableHeight = $283508ffcf8a47c4$var$HEADER_HEIGHT_ALLOWANCE + Math.min(nVisible, 10) * $283508ffcf8a47c4$var$ROW_HEIGHT;
|
|
10523
10539
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("div", {
|
|
10524
10540
|
style: {
|
|
10525
10541
|
overflowX: "auto",
|
|
@@ -10537,8 +10553,20 @@ const $283508ffcf8a47c4$var$GridWithGroups = ({ groups: groups, gene_id: gene_id
|
|
|
10537
10553
|
rowData: getVisibleRowData(),
|
|
10538
10554
|
columnDefs: columnDefs,
|
|
10539
10555
|
getRowNodeId: (data)=>data.id,
|
|
10540
|
-
|
|
10541
|
-
defaultColDef: defaultColDef
|
|
10556
|
+
rowHeight: $283508ffcf8a47c4$var$ROW_HEIGHT,
|
|
10557
|
+
defaultColDef: defaultColDef,
|
|
10558
|
+
// ag-grid sets `user-select: none` on cells by default, which is why
|
|
10559
|
+
// accession / consequence text couldn't be selected and copied.
|
|
10560
|
+
// `enableCellTextSelection` restores native selection; `ensureDomOrder`
|
|
10561
|
+
// keeps DOM order matching visual order so a multi-row copy comes out
|
|
10562
|
+
// as displayed rather than scrambled by row virtualization/sorting.
|
|
10563
|
+
//
|
|
10564
|
+
// NB: ag-grid's isAnimateRows() returns false whenever ensureDomOrder
|
|
10565
|
+
// is set, so `animateRows` was removed rather than left as dead config.
|
|
10566
|
+
// Correct copy order matters more here than row-slide animation; drop
|
|
10567
|
+
// `ensureDomOrder` and restore `animateRows={true}` to trade back.
|
|
10568
|
+
enableCellTextSelection: true,
|
|
10569
|
+
ensureDomOrder: true
|
|
10542
10570
|
})
|
|
10543
10571
|
})
|
|
10544
10572
|
});
|