@civicactions/cmsds-open-data-components 3.8.3 → 3.8.4-alpha.0
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/main.css +76 -30
- package/dist/main.css.map +1 -1
- package/dist/main.js +246 -89
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +64 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
2
|
import {jsx as $hgUW1$jsx, jsxs as $hgUW1$jsxs, Fragment as $hgUW1$Fragment} from "react/jsx-runtime";
|
|
3
|
-
import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Tooltip as $hgUW1$Tooltip, Dropdown as $hgUW1$Dropdown, Choice as $hgUW1$Choice, Pagination as $hgUW1$Pagination, Badge as $hgUW1$Badge, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel
|
|
3
|
+
import {Accordion as $hgUW1$Accordion, AccordionItem as $hgUW1$AccordionItem, Button as $hgUW1$Button, CloseIconThin as $hgUW1$CloseIconThin, ArrowIcon as $hgUW1$ArrowIcon, Spinner as $hgUW1$Spinner, Alert as $hgUW1$Alert, Dialog as $hgUW1$Dialog, TextField as $hgUW1$TextField, Tooltip as $hgUW1$Tooltip, TooltipIcon as $hgUW1$TooltipIcon, Dropdown as $hgUW1$Dropdown, Choice as $hgUW1$Choice, Pagination as $hgUW1$Pagination, Badge as $hgUW1$Badge, Table as $hgUW1$Table, TableHead as $hgUW1$TableHead, TableRow as $hgUW1$TableRow, TableCell as $hgUW1$TableCell, TableBody as $hgUW1$TableBody, Tabs as $hgUW1$Tabs, TabPanel as $hgUW1$TabPanel} from "@cmsgov/design-system";
|
|
4
4
|
import $hgUW1$react, {createContext as $hgUW1$createContext, useState as $hgUW1$useState, useRef as $hgUW1$useRef, useEffect as $hgUW1$useEffect, useContext as $hgUW1$useContext, useMemo as $hgUW1$useMemo, useCallback as $hgUW1$useCallback} from "react";
|
|
5
5
|
import {NavLink as $hgUW1$NavLink, useLocation as $hgUW1$useLocation, useSearchParams as $hgUW1$useSearchParams, Link as $hgUW1$Link, useNavigate as $hgUW1$useNavigate} from "react-router-dom";
|
|
6
6
|
import $hgUW1$qs from "qs";
|
|
@@ -9,6 +9,7 @@ import {useQuery as $hgUW1$useQuery, QueryClient as $hgUW1$QueryClient, QueryCli
|
|
|
9
9
|
import {useMediaQuery as $hgUW1$useMediaQuery} from "react-responsive";
|
|
10
10
|
import $hgUW1$dompurify from "dompurify";
|
|
11
11
|
import $hgUW1$lodashtruncate from "lodash.truncate";
|
|
12
|
+
import $hgUW1$moment from "moment";
|
|
12
13
|
import $hgUW1$swaggeruireact from "swagger-ui-react";
|
|
13
14
|
import {SpanOpenAPIVersion as $hgUW1$SpanOpenAPIVersion, SpanVersionStamp as $hgUW1$SpanVersionStamp} from "@civicactions/swagger-ui-layout";
|
|
14
15
|
import "swagger-ui-react/swagger-ui.css";
|
|
@@ -1374,11 +1375,123 @@ function $1a2bf34e2a8f6b80$export$59a943b34a82e690(textString, textLength = 240)
|
|
|
1374
1375
|
|
|
1375
1376
|
|
|
1376
1377
|
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
const $17711e94d2ce0ee4$var$DatasetDateItem = (props)=>{
|
|
1385
|
+
const { type: type, date: date, boldLabel: boldLabel = false, displayTooltips: displayTooltips = true } = props;
|
|
1386
|
+
const dateText = {
|
|
1387
|
+
modified: "Last Modified",
|
|
1388
|
+
released: "Released",
|
|
1389
|
+
refresh: "Planned Update"
|
|
1390
|
+
};
|
|
1391
|
+
const tooltipContent = {
|
|
1392
|
+
modified: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
1393
|
+
children: [
|
|
1394
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
|
|
1395
|
+
children: "Last Modified: "
|
|
1396
|
+
}),
|
|
1397
|
+
" The date the ",
|
|
1398
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
|
|
1399
|
+
"dataset was last updated."
|
|
1400
|
+
]
|
|
1401
|
+
}),
|
|
1402
|
+
released: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
1403
|
+
children: [
|
|
1404
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
|
|
1405
|
+
children: "Released: "
|
|
1406
|
+
}),
|
|
1407
|
+
" The date the most ",
|
|
1408
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
|
|
1409
|
+
"recent dataset was made available",
|
|
1410
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
|
|
1411
|
+
"to the public."
|
|
1412
|
+
]
|
|
1413
|
+
}),
|
|
1414
|
+
refresh: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
1415
|
+
children: [
|
|
1416
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("strong", {
|
|
1417
|
+
children: "Planned Update:"
|
|
1418
|
+
}),
|
|
1419
|
+
" The date the ",
|
|
1420
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("br", {}),
|
|
1421
|
+
"dataset is scheduled to be updated."
|
|
1422
|
+
]
|
|
1423
|
+
})
|
|
1424
|
+
};
|
|
1425
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1426
|
+
className: `dataset-date-item${boldLabel ? " bold-label" : ""}`,
|
|
1427
|
+
children: [
|
|
1428
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
1429
|
+
className: "dataset-data-item-label",
|
|
1430
|
+
children: [
|
|
1431
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1432
|
+
children: dateText[type]
|
|
1433
|
+
}),
|
|
1434
|
+
": ",
|
|
1435
|
+
(0, $hgUW1$moment)(date).format("MMMM D, YYYY")
|
|
1436
|
+
]
|
|
1437
|
+
}),
|
|
1438
|
+
displayTooltips === true && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Tooltip), {
|
|
1439
|
+
"aria-label": dateText[type],
|
|
1440
|
+
className: "ds-c-tooltip__trigger-icon ds-u-display--inline ds-u-padding-left--0 ds-uw-padding-right--0",
|
|
1441
|
+
title: tooltipContent[type],
|
|
1442
|
+
placement: "top",
|
|
1443
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$TooltipIcon), {})
|
|
1444
|
+
})
|
|
1445
|
+
]
|
|
1446
|
+
});
|
|
1447
|
+
};
|
|
1448
|
+
var $17711e94d2ce0ee4$export$2e2bcd8739ae039 = $17711e94d2ce0ee4$var$DatasetDateItem;
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
const $20de4fedf33d4f9a$var$DatasetDate = (props)=>{
|
|
1452
|
+
const { date: date, updatedBoldLabel: updatedBoldLabel = false, releasedBoldLabel: releasedBoldLabel = false, refreshBoldLabel: refreshBoldLabel = false, displayTooltips: displayTooltips = true } = props;
|
|
1453
|
+
const { modified: modified, released: released, refresh: refresh } = date;
|
|
1454
|
+
// Create an array of date items to render
|
|
1455
|
+
const dateItems = [];
|
|
1456
|
+
if (modified) dateItems.push(/*#__PURE__*/ (0, $hgUW1$jsx)((0, $17711e94d2ce0ee4$export$2e2bcd8739ae039), {
|
|
1457
|
+
displayTooltips: displayTooltips,
|
|
1458
|
+
type: "modified",
|
|
1459
|
+
date: modified,
|
|
1460
|
+
boldLabel: updatedBoldLabel
|
|
1461
|
+
}, "modified"));
|
|
1462
|
+
if (released) dateItems.push(/*#__PURE__*/ (0, $hgUW1$jsx)((0, $17711e94d2ce0ee4$export$2e2bcd8739ae039), {
|
|
1463
|
+
displayTooltips: displayTooltips,
|
|
1464
|
+
type: "released",
|
|
1465
|
+
date: released,
|
|
1466
|
+
boldLabel: releasedBoldLabel
|
|
1467
|
+
}, "released"));
|
|
1468
|
+
if (refresh) dateItems.push(/*#__PURE__*/ (0, $hgUW1$jsx)((0, $17711e94d2ce0ee4$export$2e2bcd8739ae039), {
|
|
1469
|
+
displayTooltips: displayTooltips,
|
|
1470
|
+
type: "refresh",
|
|
1471
|
+
date: refresh,
|
|
1472
|
+
boldLabel: refreshBoldLabel
|
|
1473
|
+
}, "refresh"));
|
|
1474
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1475
|
+
className: "dataset-date",
|
|
1476
|
+
children: dateItems.map((item, index)=>/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$react).Fragment, {
|
|
1477
|
+
children: [
|
|
1478
|
+
item,
|
|
1479
|
+
index < dateItems.length - 1 && /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1480
|
+
className: "bullet-point",
|
|
1481
|
+
children: "\u2022"
|
|
1482
|
+
})
|
|
1483
|
+
]
|
|
1484
|
+
}, index))
|
|
1485
|
+
});
|
|
1486
|
+
};
|
|
1487
|
+
var $20de4fedf33d4f9a$export$2e2bcd8739ae039 = $20de4fedf33d4f9a$var$DatasetDate;
|
|
1488
|
+
|
|
1489
|
+
|
|
1377
1490
|
const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
1378
1491
|
const desktop = (0, $hgUW1$useMediaQuery)({
|
|
1379
1492
|
minWidth: 1024
|
|
1380
1493
|
});
|
|
1381
|
-
const { title: title, modified: modified, description: description,
|
|
1494
|
+
const { title: title, modified: modified, description: description, url: url, downloadUrl: downloadUrl, largeFile: largeFile = false, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks, refresh: refresh, released: released, showDateDetails: showDateDetails = false, showTopics: showTopics = false, theme: theme, topicSlugs: topicSlugs, location: location } = props;
|
|
1382
1495
|
let linkContainerClasses = "ds-u-margin-bottom--2";
|
|
1383
1496
|
if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
|
|
1384
1497
|
else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
|
|
@@ -1387,19 +1500,52 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1387
1500
|
linkContainerClasses = "ds-u-padding-x--0";
|
|
1388
1501
|
linkClasses += " ds-l-col--4 ds-l-md-col--auto";
|
|
1389
1502
|
}
|
|
1503
|
+
let themes;
|
|
1504
|
+
if (theme && showTopics) themes = /*#__PURE__*/ (0, $hgUW1$jsx)("ul", {
|
|
1505
|
+
className: "theme-list item-theme",
|
|
1506
|
+
children: theme.map((topic, index)=>{
|
|
1507
|
+
const title = topic || "Unknown Topic";
|
|
1508
|
+
const prefix = "topics";
|
|
1509
|
+
// Use the provided slug or fallback to a simple slug generation
|
|
1510
|
+
const slug = topicSlugs?.[title];
|
|
1511
|
+
const link = `/${prefix}/${slug}`;
|
|
1512
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1513
|
+
className: "ds-u-fill--primary ds-u-radius--pill",
|
|
1514
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
|
|
1515
|
+
to: link,
|
|
1516
|
+
state: {
|
|
1517
|
+
fromUrl: location.pathname,
|
|
1518
|
+
fromTitle: false,
|
|
1519
|
+
fromSearchList: location.pathname.includes("search")
|
|
1520
|
+
},
|
|
1521
|
+
children: title
|
|
1522
|
+
})
|
|
1523
|
+
}, `dist-${title}-${index}`);
|
|
1524
|
+
})
|
|
1525
|
+
});
|
|
1526
|
+
const date = {
|
|
1527
|
+
modified: modified,
|
|
1528
|
+
released: released,
|
|
1529
|
+
refresh: refresh
|
|
1530
|
+
};
|
|
1390
1531
|
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1391
1532
|
className: "dc-c-search-list-item ds-u-padding-top--3",
|
|
1392
1533
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1393
1534
|
className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
|
|
1394
1535
|
children: [
|
|
1536
|
+
themes,
|
|
1395
1537
|
/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1396
1538
|
className: "ds-l-row ds-u-align-items--start",
|
|
1397
1539
|
children: [
|
|
1398
|
-
/*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
1399
|
-
id: `dataset-${
|
|
1540
|
+
!showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
1541
|
+
id: `dataset-${url}-updated-date`,
|
|
1400
1542
|
className: `ds-l-col--12 ds-u-text-align--right ${paginationEnabled ? "ds-u-padding-top--2" : "ds-u-padding-top--0"}`,
|
|
1401
1543
|
children: [
|
|
1402
|
-
|
|
1544
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1545
|
+
className: "ds-u-font-weight--bold",
|
|
1546
|
+
children: "Updated:"
|
|
1547
|
+
}),
|
|
1548
|
+
" ",
|
|
1403
1549
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
|
|
1404
1550
|
date: modified
|
|
1405
1551
|
})
|
|
@@ -1408,8 +1554,8 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1408
1554
|
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
1409
1555
|
className: "ds-l-col--12 ds-text-heading--2xl",
|
|
1410
1556
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Link), {
|
|
1411
|
-
"aria-describedby": `dataset-${
|
|
1412
|
-
to:
|
|
1557
|
+
"aria-describedby": `dataset-${url}-updated-date`,
|
|
1558
|
+
to: `${url}`,
|
|
1413
1559
|
children: title
|
|
1414
1560
|
})
|
|
1415
1561
|
})
|
|
@@ -1423,7 +1569,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1423
1569
|
})
|
|
1424
1570
|
}),
|
|
1425
1571
|
downloadUrl ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1426
|
-
className: `ds-u-margin-top--3 ds-u-padding-left--0`,
|
|
1572
|
+
className: `ds-u-margin-top--3 ds-u-padding-left--0 download-button`,
|
|
1427
1573
|
children: largeFile ? /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1428
1574
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $b61856b23f5f58a2$export$2e2bcd8739ae039), {
|
|
1429
1575
|
downloadUrl: downloadUrl
|
|
@@ -1440,6 +1586,13 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1440
1586
|
]
|
|
1441
1587
|
})
|
|
1442
1588
|
}) : "",
|
|
1589
|
+
showDateDetails && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1590
|
+
className: "dataset-dates",
|
|
1591
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $20de4fedf33d4f9a$export$2e2bcd8739ae039), {
|
|
1592
|
+
date: date,
|
|
1593
|
+
displayTooltips: false
|
|
1594
|
+
})
|
|
1595
|
+
}),
|
|
1443
1596
|
/*#__PURE__*/ (0, $hgUW1$jsxs)("ul", {
|
|
1444
1597
|
className: `ds-l-row ds-u-padding--0 ds-u-flex-direction--row ds-u-justify-content--between ds-u-md-justify-content--start ds-u-margin-top--3 ds-u-margin-x--0 ${!dataDictionaryLinks ? "ds-u-justify-content--center ds-u-md-justify-content--start" : ""}`,
|
|
1445
1598
|
children: [
|
|
@@ -1448,7 +1601,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1448
1601
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1449
1602
|
className: linkClasses,
|
|
1450
1603
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1451
|
-
to:
|
|
1604
|
+
to: `${url}#data-table`,
|
|
1452
1605
|
children: [
|
|
1453
1606
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1454
1607
|
id: "data-table"
|
|
@@ -1463,7 +1616,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1463
1616
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1464
1617
|
className: linkClasses,
|
|
1465
1618
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1466
|
-
to:
|
|
1619
|
+
to: `${url}#overview`,
|
|
1467
1620
|
children: [
|
|
1468
1621
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1469
1622
|
id: "overview"
|
|
@@ -1478,7 +1631,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1478
1631
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1479
1632
|
className: linkClasses,
|
|
1480
1633
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1481
|
-
to:
|
|
1634
|
+
to: `${url}#data-dictionary`,
|
|
1482
1635
|
children: [
|
|
1483
1636
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1484
1637
|
id: "data-dictionary"
|
|
@@ -1493,7 +1646,7 @@ const $52c6454cae137465$var$DatasetSearchListItem = (props)=>{
|
|
|
1493
1646
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
|
|
1494
1647
|
className: linkClasses,
|
|
1495
1648
|
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1496
|
-
to:
|
|
1649
|
+
to: `${url}#api`,
|
|
1497
1650
|
children: [
|
|
1498
1651
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $b38839fd67928f42$export$2e2bcd8739ae039), {
|
|
1499
1652
|
id: "api"
|
|
@@ -1518,80 +1671,6 @@ var $52c6454cae137465$export$2e2bcd8739ae039 = $52c6454cae137465$var$DatasetSear
|
|
|
1518
1671
|
|
|
1519
1672
|
|
|
1520
1673
|
|
|
1521
|
-
const $c068004d499082cc$var$DatasetListItem = (props)=>{
|
|
1522
|
-
const desktop = (0, $hgUW1$useMediaQuery)({
|
|
1523
|
-
minWidth: 1024
|
|
1524
|
-
});
|
|
1525
|
-
const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
|
|
1526
|
-
let linkContainerClasses = "ds-u-margin-bottom--2";
|
|
1527
|
-
if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
|
|
1528
|
-
else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
|
|
1529
|
-
let linkClasses = "ds-u-display--block ds-u-text-align--left";
|
|
1530
|
-
if (desktop) {
|
|
1531
|
-
linkContainerClasses = "ds-u-padding-x--0";
|
|
1532
|
-
linkClasses += " ds-l-col--4 ds-l-md-col--auto";
|
|
1533
|
-
}
|
|
1534
|
-
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
1535
|
-
className: "dc-c-list-item ds-u-padding-top--4",
|
|
1536
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1537
|
-
className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
|
|
1538
|
-
children: [
|
|
1539
|
-
/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1540
|
-
className: "ds-l-row ds-u-align-items--start",
|
|
1541
|
-
children: [
|
|
1542
|
-
/*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
1543
|
-
id: `dataset-${identifier}-updated-date`,
|
|
1544
|
-
className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? "ds-u-padding-top--3" : "ds-u-padding-top--0"}`,
|
|
1545
|
-
children: [
|
|
1546
|
-
"Updated ",
|
|
1547
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
|
|
1548
|
-
date: modified
|
|
1549
|
-
})
|
|
1550
|
-
]
|
|
1551
|
-
}),
|
|
1552
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
1553
|
-
className: "ds-l-col--12 ds-text-heading--2xl",
|
|
1554
|
-
children: title
|
|
1555
|
-
})
|
|
1556
|
-
]
|
|
1557
|
-
}),
|
|
1558
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1559
|
-
className: "ds-l-row",
|
|
1560
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
1561
|
-
className: "ds-l-col--12 ds-l-md-col--12 ds-u-margin-top--2",
|
|
1562
|
-
children: [
|
|
1563
|
-
"The ",
|
|
1564
|
-
title,
|
|
1565
|
-
" dataset was updated."
|
|
1566
|
-
]
|
|
1567
|
-
})
|
|
1568
|
-
}),
|
|
1569
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1570
|
-
className: "ds-l-row",
|
|
1571
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
1572
|
-
className: "ds-l-col--12",
|
|
1573
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
1574
|
-
"aria-describedby": `dataset-${identifier}-updated-date`,
|
|
1575
|
-
to: `/dataset/${identifier}`,
|
|
1576
|
-
children: [
|
|
1577
|
-
"View the Dataset for ",
|
|
1578
|
-
title,
|
|
1579
|
-
" "
|
|
1580
|
-
]
|
|
1581
|
-
})
|
|
1582
|
-
})
|
|
1583
|
-
})
|
|
1584
|
-
]
|
|
1585
|
-
})
|
|
1586
|
-
});
|
|
1587
|
-
};
|
|
1588
|
-
var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetListItem;
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
1674
|
|
|
1596
1675
|
|
|
1597
1676
|
const $789279954d8eff7f$var$ApiDocumentation = ({ endpoint: endpoint })=>{
|
|
@@ -4232,11 +4311,14 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
4232
4311
|
title: item.title,
|
|
4233
4312
|
modified: item.modified,
|
|
4234
4313
|
description: item.description,
|
|
4235
|
-
|
|
4314
|
+
url: `/dataset/${item.identifier}`,
|
|
4236
4315
|
downloadUrl: showDownloadIcon ? getDownloadUrl(item) : null,
|
|
4237
4316
|
largeFile: showLargeFile,
|
|
4238
4317
|
paginationEnabled: enablePagination,
|
|
4239
|
-
dataDictionaryLinks: dataDictionaryLinks
|
|
4318
|
+
dataDictionaryLinks: dataDictionaryLinks,
|
|
4319
|
+
location: {
|
|
4320
|
+
pathname: window.location.pathname
|
|
4321
|
+
}
|
|
4240
4322
|
}, item.identifier);
|
|
4241
4323
|
}) : /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Alert), {
|
|
4242
4324
|
variation: "error",
|
|
@@ -4286,6 +4368,81 @@ var $e873081a6e8f024e$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2b
|
|
|
4286
4368
|
|
|
4287
4369
|
|
|
4288
4370
|
|
|
4371
|
+
const $c068004d499082cc$var$DatasetListItem = (props)=>{
|
|
4372
|
+
const desktop = (0, $hgUW1$useMediaQuery)({
|
|
4373
|
+
minWidth: 1024
|
|
4374
|
+
});
|
|
4375
|
+
const { title: title, modified: modified, identifier: identifier, paginationEnabled: paginationEnabled, dataDictionaryLinks: dataDictionaryLinks } = props;
|
|
4376
|
+
let linkContainerClasses = "ds-u-margin-bottom--2";
|
|
4377
|
+
if (dataDictionaryLinks) linkContainerClasses += " ds-l-col--6 ds-u-padding-right--0";
|
|
4378
|
+
else linkContainerClasses += " ds-l-col--auto ds-u-padding-left--0";
|
|
4379
|
+
let linkClasses = "ds-u-display--block ds-u-text-align--left";
|
|
4380
|
+
if (desktop) {
|
|
4381
|
+
linkContainerClasses = "ds-u-padding-x--0";
|
|
4382
|
+
linkClasses += " ds-l-col--4 ds-l-md-col--auto";
|
|
4383
|
+
}
|
|
4384
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)("li", {
|
|
4385
|
+
className: "dc-c-list-item ds-u-padding-top--4",
|
|
4386
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
4387
|
+
className: `dc-c-searchlist-item ${paginationEnabled ? "ds-u-border-top--1" : "ds-u-border-bottom--1 ds-u-padding-bottom--3"}`,
|
|
4388
|
+
children: [
|
|
4389
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
4390
|
+
className: "ds-l-row ds-u-align-items--start",
|
|
4391
|
+
children: [
|
|
4392
|
+
/*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
4393
|
+
id: `dataset-${identifier}-updated-date`,
|
|
4394
|
+
className: `ds-l-col--12 ds-u-text-align--left ds-text-heading--sm ${paginationEnabled ? "ds-u-padding-top--3" : "ds-u-padding-top--0"}`,
|
|
4395
|
+
children: [
|
|
4396
|
+
"Updated ",
|
|
4397
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $bd76a91923d7e8a7$export$2e2bcd8739ae039), {
|
|
4398
|
+
date: modified
|
|
4399
|
+
})
|
|
4400
|
+
]
|
|
4401
|
+
}),
|
|
4402
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
4403
|
+
className: "ds-l-col--12 ds-text-heading--2xl",
|
|
4404
|
+
children: title
|
|
4405
|
+
})
|
|
4406
|
+
]
|
|
4407
|
+
}),
|
|
4408
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
4409
|
+
className: "ds-l-row",
|
|
4410
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
|
|
4411
|
+
className: "ds-l-col--12 ds-l-md-col--12 ds-u-margin-top--2",
|
|
4412
|
+
children: [
|
|
4413
|
+
"The ",
|
|
4414
|
+
title,
|
|
4415
|
+
" dataset was updated."
|
|
4416
|
+
]
|
|
4417
|
+
})
|
|
4418
|
+
}),
|
|
4419
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
4420
|
+
className: "ds-l-row",
|
|
4421
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
4422
|
+
className: "ds-l-col--12",
|
|
4423
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Link), {
|
|
4424
|
+
"aria-describedby": `dataset-${identifier}-updated-date`,
|
|
4425
|
+
to: `/dataset/${identifier}`,
|
|
4426
|
+
children: [
|
|
4427
|
+
"View the Dataset for ",
|
|
4428
|
+
title,
|
|
4429
|
+
" "
|
|
4430
|
+
]
|
|
4431
|
+
})
|
|
4432
|
+
})
|
|
4433
|
+
})
|
|
4434
|
+
]
|
|
4435
|
+
})
|
|
4436
|
+
});
|
|
4437
|
+
};
|
|
4438
|
+
var $c068004d499082cc$export$2e2bcd8739ae039 = $c068004d499082cc$var$DatasetListItem;
|
|
4439
|
+
|
|
4440
|
+
|
|
4441
|
+
|
|
4442
|
+
|
|
4443
|
+
|
|
4444
|
+
|
|
4445
|
+
|
|
4289
4446
|
|
|
4290
4447
|
const $550bcc185f420ff5$var$DatasetList = (props)=>{
|
|
4291
4448
|
const { rootUrl: rootUrl, enableSort: enableSort = true, enablePagination: enablePagination = true, defaultPageSize: defaultPageSize = 10, defaultSort: defaultSort = {
|
|
@@ -7501,5 +7658,5 @@ var $90fb213ab8eeb2e7$export$2e2bcd8739ae039 = $90fb213ab8eeb2e7$var$useScrollTo
|
|
|
7501
7658
|
|
|
7502
7659
|
|
|
7503
7660
|
|
|
7504
|
-
export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $
|
|
7661
|
+
export {$e49d4387bed21287$export$2e2bcd8739ae039 as ApiRowLimitNotice, $a8accc31bf9e0bda$export$2e2bcd8739ae039 as CMSTopNav, $c49454ea7d1c4579$export$2e2bcd8739ae039 as ErrorBoundary, $046ded0064bd0a3d$export$2e2bcd8739ae039 as FAQAccordion, $b939b31651e82908$export$2e2bcd8739ae039 as HeaderNav, $1555e1cb3eb7b3e3$export$2e2bcd8739ae039 as HeaderNavIconLink, $fea9297ba4dd394c$export$2e2bcd8739ae039 as HeaderSearch, $9a8892c5ac150556$export$2e2bcd8739ae039 as HeaderSiteTitle, $3c72c298c3a7f21f$export$2e2bcd8739ae039 as HeaderTagline, $403833a4b442d5df$export$2e2bcd8739ae039 as MobileMenuButton, $f57121650539d8c5$export$2e2bcd8739ae039 as NavBar, $953b286f7778640e$export$2e2bcd8739ae039 as SidebarNavigation, $b0968edc60d7d3a4$export$2e2bcd8739ae039 as SidebarPage, $4f153ca537d853e5$export$2e2bcd8739ae039 as SubMenu, $59a079354baa335c$export$2e2bcd8739ae039 as Hero, $52c6454cae137465$export$2e2bcd8739ae039 as DatasetSearchListItem, $17711e94d2ce0ee4$export$2e2bcd8739ae039 as DatasetDateItem, $20de4fedf33d4f9a$export$2e2bcd8739ae039 as DatasetDate, $789279954d8eff7f$export$2e2bcd8739ae039 as ApiDocumentation, $af099c546cb226c7$export$2e2bcd8739ae039 as ResourceHeader, $626282d9a03c51d5$export$2e2bcd8739ae039 as ResourcePreview, $072291d44ce1834a$export$2e2bcd8739ae039 as ResourceFooter, $ec3e23baa005dc03$export$2e2bcd8739ae039 as Breadcrumb, $bd76a91923d7e8a7$export$2e2bcd8739ae039 as TransformedDate, $d98f94c79ddf4e0e$export$2e2bcd8739ae039 as DataTable, $bdb071ea3a6d3466$export$2e2bcd8739ae039 as SearchInput, $5644ebd2c3dbfd7b$export$eea3a12df15499ca as buildRows, $2ed0091f7e32d1e6$export$2e2bcd8739ae039 as DataTablePageResults, $1a2bf34e2a8f6b80$export$59a943b34a82e690 as truncateText, $c96c4b9ef7203c1f$export$2e2bcd8739ae039 as APIPage, $026cb986f9fea2b1$export$2e2bcd8739ae039 as PageNotFound, $e873081a6e8f024e$export$2e2bcd8739ae039 as DatasetSearch, $550bcc185f420ff5$export$2e2bcd8739ae039 as DatasetList, $9384a736d4d6f425$export$2e2bcd8739ae039 as DatasetListSubmenu, $a0f13962e513caa1$export$2e2bcd8739ae039 as Dataset, $a35cf16d1488f54e$export$2e2bcd8739ae039 as DatasetTable, $b9af6ce5e2c06331$export$2e2bcd8739ae039 as Header, $a6df0aa147323304$export$2e2bcd8739ae039 as Footer, $669d2782ec2e2250$export$2e2bcd8739ae039 as SpecsAndLimits, $8b67b7ee3fcfb629$export$2e2bcd8739ae039 as StoredQueryPage, $f61ecf9f84951a61$export$2e2bcd8739ae039 as FilteredResource, $bef7bff2823feea2$export$2e2bcd8739ae039 as QueryTitle, $7264a673914aa746$export$2b9377795161999 as buildOperatorOptions, $7264a673914aa746$export$e284ae5d89467c8f as convertUTCToLocalDate, $7264a673914aa746$export$6b5e57d20078142b as cleanText, $7264a673914aa746$export$8049e8f40a9bdfb8 as buildCustomColHeaders, $11500a65bd7d9cf1$export$2e2bcd8739ae039 as HeaderContext, $43a30d745a7bbc86$export$2e2bcd8739ae039 as DataTableContext, $ebda441784d176a5$export$2e2bcd8739ae039 as ManageColumnsContext, $844981eac9b63865$export$eccc29c8d0ff408 as ACAContext, $efc410f5f7ac5ef3$export$2e2bcd8739ae039 as useSearchAPI, $1d3d480a9cfaabe0$export$2e2bcd8739ae039 as useDatastore, $aa4450dcbeef3ac0$export$385a5aba38cc3325 as transformTableSortToQuerySort, $eb7821d186b1a389$export$2e2bcd8739ae039 as useAddLoginLink, $90fb213ab8eeb2e7$export$2e2bcd8739ae039 as useScrollToTop, $b4aa9c66f2e86959$export$2e2bcd8739ae039 as useMetastoreDataset, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039 as withQueryProvider, $6d5c0212e738499b$export$34e95918366a058e as acaToParams, $6da0396069e23175$export$bc27cf7ecf44639d as defaultMetadataMapping};
|
|
7505
7662
|
//# sourceMappingURL=main.js.map
|